graceful restart
termKept in this browser · My desk
Graceful restart: a family of routing protocol extensions that let a router restart its control plane while its forwarding hardware keeps working, with neighbours (helpers) continuing to forward through it for a bounded time instead of routing around it and back.
Defined for OSPF in RFC 3623 (2003), OSPFv3 in RFC 5187, BGP in RFC 4724 (2007), IS-IS in RFC 8706 (2020) and for long-lived BGP stale routes in RFC 9494 (2023). The restarting router announces its intention (grace-LSAs in OSPF, a capability in BGP), the helpers keep its routes, marked stale in BGP, and the restart ends when the router has resynchronized or a timer expires: an OSPF grace period of at most 1,800 s, a BGP restart time of at most 4,095 s. RFC 3623 notes that the same idea is also called non-stop forwarding.
When it is wrong. Graceful restart assumes the forwarding plane survived. RFC 3623 warns that after an unplanned restart a router is unlikely to guarantee its forwarding table and requires a way to turn the option off; a helper that keeps forwarding into dead hardware turns a short outage into a black hole for the whole grace period. BFD is the referee: RFC 5882 says that when BFD runs in the forwarding plane on both ends (the C bit), its failure should abort a graceful restart, and when it shares fate with the control plane it should not, and Juniper documents a statement for that case. Vendors also differ on topology changes: RFC 3623 helpers abort on one, FortiOS can keep a restart going through one. Defaults differ too: FRR uses a 120 s OSPF grace period and a 120 s BGP restart time, with OSPF helper support off unless enabled.
Also known as: nonstop forwarding, non-stop forwarding, graceful restart helper, gr helper, helper mode, long-lived graceful restart, llgr
Sources
- 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