graceful restart
termoGuardado neste navegador · Minha bancada
Graceful restart: família de extensões dos protocolos de roteamento que deixam um roteador reiniciar o plano de controle enquanto o hardware de encaminhamento continua funcionando, com os vizinhos (helpers) seguindo encaminhando por ele por um tempo limitado em vez de rotear em volta e depois de volta.
Definido para o OSPF na RFC 3623 (2003), para o OSPFv3 na RFC 5187, para o BGP na RFC 4724 (2007), para o IS-IS na RFC 8706 (2020) e, para rotas BGP stale de longa duração, na RFC 9494 (2023). O roteador que reinicia anuncia a intenção (grace-LSAs no OSPF, uma capability no BGP), os helpers mantêm as rotas dele, marcadas como stale no BGP, e o reinício termina quando o roteador se ressincroniza ou um timer expira: um grace period do OSPF de no máximo 1.800 s, um restart time do BGP de no máximo 4.095 s. A RFC 3623 observa que a mesma ideia também é chamada de non-stop forwarding.
Quando é errado. O graceful restart supõe que o plano de encaminhamento sobreviveu. A RFC 3623 avisa que, depois de um reinício não planejado, é improvável que o roteador garanta sua tabela de encaminhamento, e exige um modo de desligar a opção; um helper que continua encaminhando para um hardware morto transforma uma queda curta num black hole por todo o grace period. O BFD é o árbitro: a RFC 5882 diz que, quando o BFD roda no plano de encaminhamento nas duas pontas (o bit C), a falha dele deveria abortar o graceful restart, e quando compartilha o destino do plano de controle não deveria, e a Juniper documenta um comando para esse caso. Os fabricantes também divergem nas mudanças de topologia: os helpers da RFC 3623 abortam diante de uma, o FortiOS pode manter um reinício através dela. Os padrões também diferem: o FRR usa grace period de OSPF de 120 s e restart time de BGP de 120 s, com o helper de OSPF desligado a menos que seja habilitado.
Também conhecido como: nonstop forwarding, non-stop forwarding, graceful restart helper, gr helper, helper mode, long-lived graceful restart, llgr
Fontes
- RFC 4724, Graceful Restart Mechanism for BGP, January 2007, updated by RFC 8538, sections 1, 3 and 4.2 (read 2026-11-16): capability 64, a 12-bit restart time, a forwarding-state bit per address family, stale routes kept until the End-of-RIB marker or the restart time, and deleted early if the peer's forwarding state is known not viable
- RFC 3623, Graceful OSPF Restart, November 2003, Abstract and sections 1, 2.1, 3.2 and 5 (read 2026-11-16): also called non-stop forwarding; grace-LSAs and a grace period not above LSRefreshTime (1800 s); helpers stop on a topology change; a router is unlikely to guarantee its forwarding tables across an unplanned restart, and the option must be able to be turned off
- Fortinet, FortiOS 8.0.0 Administration Guide, OSPF graceful restart upon a topology change (read 2026-11-16): restart-on-topology-change keeps the router in graceful restart mode when a topology change is detected during a restart
- RFC 9494, Long-Lived Graceful Restart for BGP, November 2023 (read 2026-11-16): stale routes kept far longer, a 24-bit stale time, the LLGR_STALE and NO_LLGR communities, long-lived stale routes least preferred
- RFC 5882, Generic Application of Bidirectional Forwarding Detection (BFD), June 2010, sections 4.3.1 and 4.3.2 (read 2026-11-16): with the C bit set on both ends a BFD failure should abort a graceful restart to avoid black holes; with BFD sharing fate with the control plane it should not
- FRRouting documentation, OSPFv2, latest (read 2026-11-16): when graceful restart is enabled the default grace period is 120 seconds; helper support disabled for all neighbours by default
- FRRouting documentation, BGP, latest (read 2026-11-16): restart-time 0 to 4095, default 120; long-lived graceful restart stale-time default 0, the feature off
- Juniper Networks, Junos OS High Availability User Guide, published 15 November 2026, Graceful Restart Concepts and Using Control Plane Dependent BFD along with Graceful Restart Helper Mode (read 2026-11-16): restarting and helper routers; dont-help-shared-fate-bfd-down