graceful restart

term

networkingISP & telecom

Kept 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

← Back to G Back to the glossary