A routed network is redundant when a destination can be reached by more than one path and the routers move traffic to a surviving path quickly enough that the applications do not notice. The routing protocols explained in the primers on Open Shortest Path First (OSPF), Intermediate System to Intermediate System (IS-IS) and the Border Gateway Protocol (BGP) already find another path; this sixth part of the series on redundant architectures is about how long that takes and the mechanisms that shorten it. It covers equal-cost multipath () and its hashing, Bidirectional Forwarding Detection () as one link in the chain, graceful restart and nonstop routing, graceful shutdown for planned work, IP fast reroute from loop-free alternates (LFAs) to Topology Independent Loop-Free Alternate (), and the convergence of , then reads three operators' reports in which layer 3 redundancy did not hold. After reading, you can compute how many flows a next-hop failure moves under each hashing method, check a loop-free alternate with its inequalities, estimate a convergence time from the timers that actually apply, and say which mechanism shortens which step.
Five steps, five clocks
The hub of this series quoted how (RFC) 5714 breaks a routed failover into steps; here the breakdown becomes a map of this article, one row per step, with the time RFC 5714 gives for each and the mechanisms that attack it (RFC 5714, IP Fast Reroute Framework, January 2010, section 4):
| Step | Typical time in RFC 5714 | What shortens it | Section below |
|---|---|---|---|
| 1. Detect the failure | A few milliseconds at the physical layer, up to several tens of seconds with routing protocol Hellos | Link-down events, BFD | BFD in the chain |
| 2. React locally | Flood new updates and recompute, "perhaps after some hold-down delay" | Precomputed repair paths: , remote LFA, TI-LFA; BGP prefix independent convergence | Fast reroute; BGP |
| 3. Tell the other routers | 10 to 100 milliseconds per hop | BGP update groups; avoiding the minimum route advertisement interval | BGP |
| 4. Recompute | A few milliseconds for a link-state protocol | Shortest path first () back-off tuned for one failure | Microloops and SPF delay |
| 5. Load the forwarding hardware | "may be several hundred milliseconds" | Hierarchical forwarding tables (prefix independent convergence, PIC) | BGP |
RFC 5714 adds two observations that frame everything below. Packets sent towards the failure before it is detected are lost "unavoidably", and among steps 3 to 5 "in many routers it is step 5 that is both the largest factor and that has the greatest variance between routers", which is also why transient loops form while routers disagree (same section). Graceful restart and nonstop routing do not shorten these steps; they aim to avoid the whole sequence when only a control plane restarts. The hub's timer table gives the default detection times by protocol, and part 2 turns them into availability.
Equal-cost multipath: one flow, one path
When a routing protocol finds several paths of equal cost to a destination, a router may install all of them and spread traffic over them, and every failure of one path becomes a question of which flows move. RFC 2991 explains why the spreading is per flow and not per packet: round-robin or random choice of next hop makes the path maximum transmission unit () vary packet by packet, "negating the usefulness of ", and different latencies reorder packets, which makes the Transmission Control Protocol (TCP) retransmit as if they were lost, so "reordering can be detrimental to network performance"; ping and traceroute "may even present completely wrong results" (RFC 2991, Multipath Issues in Unicast and Multicast Next-Hop Selection, November 2000, section 2). A hash of the header fields that identify a flow picks the next hop instead, and every packet of the flow takes the same one. Static routes and longest match shows when routes tie, and the FortiGate routing article shows one 's tie-breaking order.
What a failed next hop moves
RFC 2992 measures the cost of a change in the set of next hops as disruption, "the fraction of total flows whose path changes in response to some change in the router" (RFC 2992, Analysis of an Equal-Cost Multi-Path Algorithm, November 2000, section 2.2). The flows of the failed path must move in any scheme; the question is how many others move with them. It compares three methods:
- Modulo-N: the hash modulo the number of next hops picks one. Removing a next hop renumbers the rest, and "the disruption is (N-1)/N" (section 3).
- Hash-threshold: each next hop owns an equal region of the hash space. Removing next hop K of N makes the remaining regions grow and shift, with disruption
((K-1)K + (N-K)(N-K+1)) / (2N(N-1)), between 1/4 and 1/2: least when the removed region is in the middle, greatest at the ends (section 2.2). - Highest random weight (HRW): each flow scores every next hop and takes the highest, so removing one moves only its own flows, "always 1/N", at a higher computing cost (section 3).
Worked from those formulas:
| Next hops N | Modulo-N | Hash-threshold, end removed | Hash-threshold, middle removed | HRW (the minimum) |
|---|---|---|---|---|
| 2 | 50% | 50% | 50% | 50% |
| 4 | 75% | 50% | 33.3% (K = 2) | 25% |
| 5 | 80% | 50% | 30% (K = 3, RFC 2992's own figure 1) | 20% |
| 8 | 87.5% | 50% | 28.6% (K = 4) | 12.5% |
| 16 | 93.8% | 50% | 26.7% (K = 8) | 6.25% |
A simulation of 200,000 flows hashed with agrees to the third decimal: with four next hops and the third removed, modulo moved 75.05% of flows, hash-threshold 33.37% and HRW 24.71%; with eight and the fifth removed, 87.43%, 28.57% and 12.44% (the experiment takes a few lines of hashing and counting in the Python playground). RFC 2991 recommends HRW where forwarders keep per-flow state "and that forwarders without per-flow state use hash-threshold" (RFC 2991, section 4.1). For a TCP flow through a stateless router, moving to another equal path costs reordering; for a flow through a firewall or a load balancer on one path only, it costs the connection, which is why the stateful devices of part 7 care. The same modulo arithmetic inside one link aggregation group (LAG) is worked in link aggregation and the Link Aggregation Control Protocol (LACP).
Resilient hashing
Implementations now offer the minimum disruption without HRW's cost, through a table of buckets between the hash and the next hops. 's resilient next-hop groups explain the idea against RFC 2992: with hash-threshold, "When a next hop is removed from the group, the ranges are recomputed", while with a bucket table "when a next hop is deleted the buckets that held it are simply reassigned to other next hops"; buckets that traffic has not used for an idle timer can be moved to rebalance, and an unbalanced timer bounds how long the table may stay uneven (Linux kernel documentation, Resilient Next-hop Groups). FRRouting (FRR) can make every multipath group it creates resilient, with 1 to 256 buckets and both timers configurable (FRRouting documentation, Zebra). Juniper's switches offer resilient hashing for link aggregation and ECMP groups that keeps a flow's member "if its path is unaffected by the LAG/ECMP group's member change", with stated limits: unicast traffic only, at most 1,024 groups of 256 members, and no guarantee of an even spread (Juniper, Hashing Algorithms for LAG and ECMP). RFC 7938, on BGP routing in large data centres, names the price: "The downside of consistent hashing is increased load on hardware resource utilization" (RFC 7938, Use of BGP for Routing in Large-Scale Data Centers, August 2016, section 6.4).
How wide, and how even
In a Clos fabric, ECMP is "the fundamental load-sharing mechanism", the number of paths between two leaves equals the number of middle-stage devices, and "an ECMP fan-out of 32 would be required when building a Clos network" from 64-port devices (RFC 7938, section 6.1). Most BGP implementations treat paths as equal for ECMP "if they match up to and including step (e)" of BGP's decision process, and paths through different neighbouring autonomous systems need a feature "sometimes known as 'multipath relax' or 'multipath multiple-AS'" (sections 6.1 and 6.2). Implementations put their own ceilings on it:
| Implementation | Paths | Default hash | Seed or polarization control |
|---|---|---|---|
| Linux kernel | Per route | Layer 3: source and destination addresses, plus the flow label for IPv6 (fib_multipath_hash_policy 0) | fib_multipath_hash_seed, random by default |
| FRRouting | Generally compiled for 64; BGP maximum-paths 1 to 128 | The kernel's, once installed | The kernel's |
| Fortinet FortiOS 8.0.0 | ecmp-max-paths; 1 disables ECMP | Source IP based | Weight, usage and source-destination modes |
| Juniper switches | Platform | Fields by , configurable | Different offsets of one RTAG7 seed for LAG and ECMP "to avoid polarization" |
| Cisco Express Forwarding (CEF) | Platform | Source and destination addresses by default | A unique identifier seeds each router's hash |
The rows come from the Linux documentation, which also warns that "there is no guarantee that a next hop distribution effected by a given seed will keep stable across kernel versions" (Linux kernel documentation, IP Sysctl); FRR's, which says it "is generally compiled with a limit of 64 way ECMP" and that once routes are installed "FRR currently has little control over what nexthops are chosen to forward packets on" (FRRouting documentation, Zebra; FRRouting documentation, BGP); Fortinet's, in which source-IP balancing "is the default selection" and "Setting ecmp-max-paths to the lowest value of 1 is equivalent to disabling ECMP" (Fortinet, FortiOS 8.0.0 Administration Guide, Equal cost multi-path); Juniper's hashing page (as above); and Cisco's technote on polarization (Cisco, CEF Polarization, document 116376, updated 26 July 2013).
Hashing spreads flows, not bytes. RFC 7424 describes the problem of long-lived large flows that land on one member, and as an example of how to recognize them, "a flow that is at or above 10% of link bandwidth for a time period of at least one second could be declared a large flow", to be placed on a chosen link rather than left to the hash (RFC 7424, Mechanisms for Optimizing LAG and ECMP Component Link Utilization in Networks, January 2015, section 4.3.2). A backup or a storage replication stream is one flow to the hash, whatever its size.
Polarization: the second router agrees with the first
Two tiers of routers that hash the same fields with the same function make the same choice twice, and the second choice is no choice at all. Cisco's technote describes the effect: in its two-tier example, traffic that the first router sent towards one distribution router is hashed again there with the same algorithm and inputs, and one of that router's links receives no traffic (Cisco, document 116376, as above). RFC 7938 notes the same risk when ECMP is stacked on link aggregation, which "increases the risk of flow polarization, as less entropy will be available at the second stage of ECMP" (RFC 7938, section 6.1).
The arithmetic is stark. In a simulation of 200,000 flows, a first router sending by hash modulo 2 put 99,950 flows on branch A; a second router on that branch with the same hash and seed sent all 99,950 down its first link and none down its second, because every flow that reached it had already been selected for an even hash. With a seed of its own, the same router split them 50,032 and 49,918. The remedies the vendors document follow from that: a different seed per device (the Linux default is a random one; Cisco's universal algorithm seeds each router with a unique ID), different offsets of a seed for different stages (Juniper), and, in Cisco's list, alternating the hash inputs or the number of links between layers (sources as above). The LACP member link and state reader shows the same effect inside one bundle, flow by flow.
BFD in the chain
Detection is step 1, and BFD is how a routed network brings it from tens of seconds to below one. The two existing articles cover it fully: BFD: when a link is up and dead at the same time for the protocol, its clients and where it is fooled, and Sizing BFD timers for the arithmetic; the BFD timer calculator does it for any configuration. Three points belong here because they connect BFD to the rest of this article.
First, on point-to-point fibre the fastest detector is often the interface itself. For external BGP (EBGP) sessions, RFC 7938 observes that "many BGP implementations can shut down local EBGP peering sessions in response to the 'link down' event", a feature "sometimes called 'fast fallover'", and that relying on BGP keepalives alone "may result in high convergence delays, on the order of multiple seconds" (RFC 7938, section 7.1); in FRR, bgp fast-external-failover "is the default" (FRRouting documentation, BGP). BFD earns its place where the link stays up and the path is dead.
Second, BFD protects static routes too: FortiOS removes a static route "if the FortiGate can't reach the route's destination" and restores it when the destination returns, so a floating backup route takes over (Fortinet, FortiOS 8.0.0 Administration Guide, BFD). Seamless BFD, RFC 7880, is a variant "with a large proportion of negotiation aspects eliminated" for monitoring paths quickly from one end (RFC 7880, Seamless Bidirectional Forwarding Detection (S-BFD), July 2016, Abstract).
Third, BFD and graceful restart pull in opposite directions, which the next section explains.
Graceful restart: keep forwarding while the control plane restarts
A router's routing software can restart while its forwarding hardware keeps working, and without help its neighbours see a dead peer and route around it, then route back when it returns. BGP's graceful restart specification describes the cost: such a restart "results in a 'routing flap'", and "Such routing flaps may create transient forwarding blackholes and/or transient forwarding loops" (RFC 4724, Graceful Restart Mechanism for BGP, January 2007, section 1). Graceful restart asks the neighbours, the helpers, to keep forwarding through the restarting router for a bounded time.
. The restarting router floods grace link-state advertisements (LSAs) announcing "a specified amount of time or 'grace period'", during which neighbours keep announcing it as fully adjacent "but only if the network topology remains static" (RFC 3623, Graceful OSPF Restart, November 2003, section 1). The grace period "should not exceed LSRefreshTime (1800 second)" (section 2.1), and a helper stops helping when the grace period expires or when "A change in link-state database contents indicates a network topology change" (RFC 3623, section 3.2). OSPF for IPv6 does the same under RFC 5187 (RFC Editor, RFC 5187 metadata).
BGP. A speaker advertises the Graceful Restart capability, code 64, with a restart time in a 12-bit field, at most 4,095 seconds, and per address family a bit saying whether its forwarding state survived; after a restart, neighbours keep its routes marked stale, and delete them if the session is not back within the restart time or once the End-of-RIB marker arrives (RFC 4724, sections 3 and 4.2). RFC 8538 extends the procedures to a speaker that "receives a BGP NOTIFICATION message or the Hold Time expires", and adds a subcode that "requests a full session restart instead of a Graceful Restart"; FRR documents that without that capability "GR is not activated when receiving CEASE/HOLDTIME expire notifications" (RFC 8538, Notification Message Support for BGP Graceful Restart, March 2019, Abstract; FRRouting documentation, BGP). Long-lived graceful restart (LLGR), RFC 9494 of November 2023, keeps stale routes much longer, a 24-bit stale time of up to 16,777,215 seconds (194 days), marks them with the LLGR_STALE community and requires that "such long-lived stale routes be treated as the least preferred" (RFC 9494, Long-Lived Graceful Restart for BGP, Abstract and section 3).
. Restart signalling is in RFC 8706 of February 2020, which obsoleted RFC 5306 (RFC Editor, RFC 8706 metadata).
The implementations set different defaults and make different exceptions:
| Implementation | Restart or grace time | Helper behaviour | Divergence worth knowing |
|---|---|---|---|
| FRRouting, OSPF | Grace period 120 s by default, 1 to 1,800 | Helper disabled by default; strict checking on | Helps planned and unplanned restarts unless planned-only |
| FRRouting, BGP | Restart time 120 s by default, 0 to 4,095 | Per neighbour: graceful restart, helper only or disabled | LLGR stale time 0 by default, which means off |
| Juniper Junos OS | restart-time and stale-routes-time configurable | Restarting and helper statements per protocol | dont-help-shared-fate-bfd-down to skip helping when BFD fails |
| Fortinet FortiOS 8.0.0, OSPF | restart-period, 180 s in its example | Helper mode on the neighbour | restart-on-topology-change keeps the restart going after a topology change |
The sources are FRR's OSPF and BGP documentation (FRRouting documentation, OSPFv2; FRRouting documentation, BGP), Juniper's High Availability User Guide (Juniper, Junos OS High Availability User Guide, Configuring Graceful Restart Options for BGP and Using Control Plane Dependent BFD along with Graceful Restart Helper Mode, published 15 November 2026) and Fortinet's guide, under which, with that option enabled, the restarting router "will not exit the graceful restart mode even when a topology change is detected" (Fortinet, FortiOS 8.0.0 Administration Guide, OSPF graceful restart upon a topology change). That last option relaxes the very rule RFC 3623 wrote for safety: the RFC's graceful restart reverts automatically "to a standard OSPF restart for safety when network topology changes are detected" (RFC 3623, section 1).
When graceful restart is the wrong answer
Graceful restart assumes that the forwarding plane survived. RFC 3623 says plainly that for an unplanned outage "it seems unlikely that a router could guarantee the sanity of its forwarding table(s) across an unplanned restart", and that implementations offering it "must allow a network operator to turn the option off" (RFC 3623, section 5). A helper that keeps forwarding into a router whose hardware has died turns a short outage into a long black hole, for up to the grace period or the restart time.
BFD is the tool that tells the two cases apart, and RFC 5882 sets the rules. If BFD runs in the forwarding plane on both ends, its C bit set, "a BFD session failure implies that data can no longer be forwarded, so any Graceful Restart in progress at the time of the BFD session failure SHOULD be aborted in order to avoid black holes"; if BFD shares fate with the control plane on either end, its failure "cannot be disentangled from other events taking place in the control plane", and graceful restart should not be aborted, at the risk that "a simultaneous failure or restart of the forwarding plane will not be detected" (RFC 5882, Generic Application of Bidirectional Forwarding Detection (BFD), June 2010, sections 4.3.1 and 4.3.2). RFC 4724 leaves the same door open: a speaker that learns "its peer's forwarding state is not viable", for example through BFD, "MAY delete all the stale routes" (RFC 4724, section 4.2). Juniper documents the trap on its own platforms: -dependent BFD that fails sends the router into helper mode, which "makes the control plane dependent BFD unusable in conjunction with graceful restart", hence the statement that skips helping (Juniper, High Availability User Guide, as above).
Nonstop routing: the backup that already knows
Graceful restart needs every neighbour to help. Nonstop routing removes the neighbours from the equation by keeping a second copy of the routing protocols running on the standby control processor. Juniper's description: nonstop active routing (NSR) "saves routing protocol information by running the routing protocol process (rpd) on the backup Routing Engine", so it "is self-contained and does not rely on helper routers", and Juniper calls it "a natural replacement for graceful restart" (Juniper, High Availability User Guide, Nonstop Active Routing Concepts). It needs graceful Routing Engine switchover underneath, the hardware side covered in part 3, and it has edges the guide lists by platform, among them that on EX9214 switches "the VRRP primary state might change during graceful Routing Engine switchover, even when nonstop active routing is enabled", and a 20 to 40 second delay of OSPF updates on EX4400 Virtual Chassis when the backup Routing Engine reboots (same guide, Platform-Specific NSR Behavior). The default gateway part shows what a VRRP role change costs. Other vendors' nonstop routing documents were not read for this article.
Taking a router out on purpose
Most of the failovers a network sees are planned: maintenance, upgrades, moves. For those, the protocols have ways to drain traffic before the session or the adjacency goes away, so that the five steps happen while the old path still works.
- BGP graceful shutdown. RFC 8326 standardizes the well-known community GRACEFUL_SHUTDOWN, 65535:0, so that paths about to go away are kept but made least preferred, with LOCAL_PREF set "lower than any of the alternative paths" and "The RECOMMENDED value is 0", and the operator "waits for route re-advertisement over the EBGP session and for BGP routing convergence on both ASBRs", the EBGP session and the autonomous system border routers (ASBRs) at its two ends, before shutting the session (RFC 8326, Graceful BGP Session Shutdown, March 2018, sections 4 and 4.2). FRR's
neighbor ... graceful-shutdownmarks routes from a neighbour with the community and local preference 0 (FRRouting documentation, BGP); FortiOS 8.0.0 added RFC 8326 support with a delay before the session closes, or a soft mode that never closes it (Fortinet, FortiOS 8.0.0, Graceful BGP shutdown). - OSPF stub router. RFC 6987 lets a router advertise its transit links with MaxLinkMetric, "the 16-bit binary value of all ones: 0xffff", so that others route around it while it stays reachable (RFC 6987, OSPF Stub Router Advertisement, September 2013, section 3). IS-IS has the overload bit, explained in the IS-IS primer.
Both are the routing half of change windows that do not become incidents: the change starts by moving traffic away and checking that it moved.
Fast reroute: a repair path computed before the failure
IP fast reroute changes step 2. Instead of waiting for the network to converge, the router next to the failure switches at once to a backup next hop it computed in advance, and RFC 5714 sets the goal of "a mechanism for the router(s) adjacent to the failure to rapidly invoke a repair path, which is unaffected by any subsequent re-convergence" (RFC 5714, section 4). RFC 5286 states the motive in numbers: "A router's convergence time is generally on the order of hundreds of milliseconds; the application traffic may be sensitive to losses greater than tens of milliseconds" (RFC 5286, Basic Specification for IP Fast Reroute: Loop-Free Alternates, September 2008, section 1).
Loop-free alternates, checked by hand
A neighbour N of the protecting router S is a loop-free alternate for destination D if sending to N cannot bring the packet back to S. RFC 5286 writes the conditions with Distance_opt(X, Y), the shortest-path distance:
Inequality 1, loop-free: Distance_opt(N, D) < Distance_opt(N, S) + Distance_opt(S, D)
Inequality 2, downstream path: Distance_opt(N, D) < Distance_opt(S, D)
Inequality 3, node-protecting: Distance_opt(N, D) < Distance_opt(N, E) + Distance_opt(E, D)
E is the primary next hop; inequality 3 asks for protection against E itself failing, not just the link to it (RFC 5286, sections 1 and 3.2 and figure 1). The RFC's own first figure has S connected to E at cost 5 and to N1 at cost 8, E connected to D at cost 4 and N1 to D at cost 3. Worked:
| Quantity | Value |
|---|---|
| Primary path S, E, D | 5 + 4 = 9 |
| Distance_opt(N1, D) | 3 |
| Distance_opt(N1, S) | 8 |
| Inequality 1: 3 < 8 + 9 = 17 | Holds: N1 is a loop-free alternate |
| Inequality 2: 3 < 9 | Holds: N1 is also downstream |
| Inequality 3: 3 < Distance_opt(N1, E) + Distance_opt(E, D) = 7 + 4 = 11 | Holds: N1 protects against the loss of E itself |
The OSPF cost and adjacency checker computes the shortest-path costs that go into the inequalities, and Dijkstra and the twenty-minute algorithm explains the computation.
How often an alternate exists
Loop-free alternates depend on the topology, and the published numbers vary widely. RFC 6571 simulated eleven service provider core topologies, of 16 to 600 nodes, and found per-link LFA coverage between 16% and 98% and per-prefix coverage between 67% and 99%, with a median of 94% per prefix; it concludes that this "illustrates the need for case-by-case analysis when considering LFAs for core networks" (RFC 6571, Loop-Free Alternate (LFA) Applicability in Service Provider (SP) Networks, June 2012, sections 4.2 and 4.3). Juniper's documentation gives a lower rule of thumb: "In a typical network topology, approximately 40 to 60 percent of the destinations can be protected by LFA" (Juniper, Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS and OSPF).
Rings are the classic gap. Nokia's guide describes a ring in which "prefixes that use link C-B as the primary next hop have no LFA next hop because of the ring topology", because the only other neighbour "would loop the packets back to node C" (Nokia, SR Linux R26.7 Segment Routing Guide, Loop-free alternates). Computed for a ring of six routers with equal costs, router C has no loop-free alternate for any destination: for each one, the other neighbour's distance to it equals its distance back to C plus C's own distance, so inequality 1 fails with equality. The destination opposite C is reached over two equal paths, and ECMP's second path is the only protection there.
Remote LFA and TI-LFA
Remote LFA, RFC 7490 of April 2015, extends the idea by tunnelling the packet to a router a few hops away from which it will not come back, which is how Nokia's ring gets its protection (RFC 7490, Remote Loop-Free Alternate (LFA) Fast Reroute (FRR); Nokia, as above). TI-LFA, RFC 9855 of October 2025, uses segment routing to steer the repair along any path of the interior gateway protocol () topology, "to provide guaranteed coverage in any two-connected networks using a link-state IGP", and chooses as the repair path "the expected post-convergence paths" so that the traffic does not move twice (RFC 9855, Topology Independent Fast Reroute Using Segment Routing, Abstract; RFC Editor, RFC 9855 metadata). Juniper's implementation offers protection against link, node, and shared risk link group failures, and points out the planning consequence: capacity is planned for the post-failure path, which the backup already follows (Juniper, as above). FRR's IS-IS and OSPF daemons implement local LFA, remote LFA and TI-LFA (FRRouting documentation, IS-IS; FRRouting documentation, OSPFv2). The Multiprotocol Label Switching (MPLS) primer explains the label stacks these repairs push.
Microloops and the SPF delay
A repair at the point of failure does not stop routers further away from disagreeing for a moment. RFC 5715 defines the problem: "A micro-loop is a packet forwarding loop that may occur transiently among two or more routers in a hop-by-hop packet forwarding paradigm", caused by "the inconsistent FIBs that occur as a result of the difference in time taken by routers to execute the transition process", FIBs being the forwarding information bases (RFC 5715, A Framework for Loop-Free Convergence, January 2010, Abstract and section 1). In a BGP-routed data centre, RFC 7938 gives a concrete case, a router that has lost a prefix bouncing packets back along its default route, and a concrete remedy: static discard routes slightly more specific than the default for the duration of convergence (RFC 7938, section 7.5).
How soon a router recomputes is itself a timer. RFC 8405 standardizes a back-off for link-state routing: a single event is computed almost at once, a burst of events from one component failure a little later, and a network still changing after the learning interval much later, until it has been quiet for a hold-down interval (RFC 8405, Shortest Path First (SPF) Back-Off Delay Algorithm for Link-State IGPs, June 2018, sections 3 and 5). Its default values, "If this SPF Back-Off algorithm is enabled by default", are INITIAL_SPF_DELAY 50 ms, SHORT_SPF_DELAY 200 ms, LONG_SPF_DELAY 5,000 ms, TIME_TO_LEARN_INTERVAL 500 ms and HOLDDOWN_INTERVAL 10,000 ms (section 6). Worked through its state machine for routing events at 0, 0.12, 0.30, 0.70 and 1.40 seconds:
| Time | Event | State after | SPF computation |
|---|---|---|---|
| 0.00 s | First event | SHORT_WAIT | Scheduled at 0.05 s |
| 0.05 s | Runs | ||
| 0.12 s | Second event | SHORT_WAIT | Scheduled at 0.32 s |
| 0.30 s | Third event | SHORT_WAIT | Already scheduled |
| 0.32 s | Runs | ||
| 0.50 s | Learning interval ends | LONG_WAIT | |
| 0.70 s | Fourth event | LONG_WAIT | Scheduled at 5.70 s |
| 1.40 s | Fifth event | LONG_WAIT | Already scheduled |
| 5.70 s | Runs | ||
| 11.40 s | Ten seconds without events | QUIET |
A single link failure gets a 50 ms computation; a network that keeps changing waits five seconds, which is the point: "this allows the IGP network to stabilize" (section 3). The schedule mitigates microloops only if every router keeps it: "For the standard algorithm to be effective in mitigating micro-loops, it is RECOMMENDED that all routers in the IGP domain, or at least all the routers in the same area/level, have exactly the same configured values" (section 6), and the procedure "reduces the probability and/or duration of micro-loops" without preventing all of them (section 8).
BGP: multihoming and why it converges slowly
BGP's redundancy is multihoming: more than one provider, more than one exit, more than one path to each prefix. Its convergence is slow by design, and RFC 4271 states the suggested timers: a HoldTime of 90 seconds, keepalives at a third of it, and a minimum route advertisement interval (MRAI) of 30 seconds on external sessions and 5 seconds on internal ones, with jitter that multiplies each timer by a random factor between 0.75 and 1.0 (RFC 4271, A Border Gateway Protocol 4 (BGP-4), January 2006, section 10). The BGP primer explains the hold timer; BGP and the routing chokepoint explains what happens when the wrong routes propagate.
RFC 7938 walks through what these timers do in a large fabric. The MRAI "may present significant convergence delays when a BGP speaker 'waits' for the new path to be learned from its peers and has no local backup path information", while withdrawals "are commonly not affected by this timer" (RFC 7938, section 7.2). Updates relayed through many devices arrive with "UPDATE message 'dispersion', that could be as long as multiple seconds" unless implementations send them to "update groups" synchronously, and route flap damping, which might seem to help, "is not recommended" in that design because of its false positives (section 7.3, citing RFC 7196, Making Route Flap Damping Usable, May 2014). The same section points at the cure for step 5: when many prefixes share one ECMP group, a hierarchical forwarding table needs "only a single change" (section 7.4).
The paths BGP hides
A BGP speaker advertises one best path per prefix, and an internal network that learns only the best path from its border routers or its route reflectors has no backup when that path fails until a new one is advertised. RFC 6774 states the limitation, "The BGP4 protocol specifies the selection and propagation of a single best path for each prefix", and notes that adding a session between a route reflector and a client can carry an Nth best path (RFC 6774, Distribution of Diverse BGP Paths, November 2012, Abstract). RFC 7911, , July 2016, solves it in the protocol: without it "a route with the same NLRI as a previously advertised route implicitly replaces the previous advertisement", the network layer reachability information (NLRI) being the prefix itself; with it "each path is identified by a Path Identifier in addition to the address prefix", which helps "routing convergence in a network by providing potential alternate or backup paths" (RFC 7911, Advertisement of Multiple Paths in BGP, Abstract and section 1). The cost is state: an implementation "must now maintain a per-path, instead of per-prefix, peer advertisement state", which "comes with its own memory and processing cost" (RFC 6774, section 2.1). FRR offers ADD-PATH transmission of all paths, the best per neighbouring autonomous system or a selected number (FRRouting documentation, BGP); FortiOS 8.0.0 supports it "according to RFC 7911", in its example with four additional paths (Fortinet, FortiOS 8.0.0, BGP multiple path support).
Prefix independent convergence
A router that holds a million BGP prefixes and loses a next hop may have to rewrite a million forwarding entries, and that is step 5 at its worst. BGP Prefix Independent Convergence (PIC) organizes the forwarding table so that prefixes point to a shared list of paths and a failure rewrites the list, not the prefixes. It is still an : draft-ietf-rtgwg-bgp-pic-24 of 1 November 2026, intended as Informational, with the state "Revised I-D Needed - Issue raised by ", AD being the responsible Area Director, in the datatracker of the Internet Engineering Task Force (IETF) (IETF datatracker, draft-ietf-rtgwg-bgp-pic). Its abstract sets the goal of restoring traffic "in a time period that does not depend on the number of BGP prefixes", and warns that the benefits "are hinged on the existence of more than one path", which is what ADD-PATH and diverse paths supply (same draft, Abstract).
Its appendix D puts numbers on the difference, assuming one million affected prefixes, a forwarding update of 10 to 100 microseconds per prefix, about 500 ms of IGP convergence and about 50 ms of local protection. Worked:
| Failure | Without PIC | With PIC |
|---|---|---|
| Local IGP failure | 1,000,000 × 10 to 100 µs = 10 to 100 s | about 50 ms |
| Local BGP next-hop failure | 1,000,000 × 100 to 200 µs = 100 to 200 s | about 50 ms |
| Remote IGP failure | 10 to 100 s | about 500 ms |
| Remote BGP next-hop failure | 100 to 200 s | about 500 ms |
The draft distinguishes PIC core, when the BGP next hop stays reachable over another IGP path, from PIC edge, when the next hop itself is lost and a precomputed alternative next hop takes over; with local protection such as LFA installed in the path list, restoration happens "within the timeframe of local detection (e.g. 50ms)" (same draft, sections 6.1 and 6.2). Juniper's documentation of PIC edge for layer 3 virtual private networks gives the scale that motivates it: "a provider edge (PE) router might be configured with 200,000 or more IP prefixes" (Juniper, BGP PIC for Layer 3 VPNs). (The appendix's own table labels its last row "Local BGP Failure" a second time; the row's values are those of a remote failure, as above.)
Brazil: what an exchange asks of its participants' routing
B3's access manual writes layer 3 redundancy into its rules. Participants must contract "two distinct network providers that use distinct physical routes" (our translation here and below), except where no such providers exist; the routers at their edge must support BGP; and for its access mode the conditions include "dual connections, providing high availability" and "optimized routing, for fast convergence", with point-to-point /30 links on which "the configuration of the BGP protocol is a prerequisite" (B3, Manual for Access to the Technology Infrastructure (in Portuguese), version 8.5, 13 February 2026, sections 3.2 and 5.1). Physical and power redundancy discusses the two- rule; this part's mechanisms are what make the second carrier usable in seconds.
When layer 3 redundancy failed: three operators' reports
The hub's table of landmark outages includes Meta's October 2021 withdrawal of its own routes; the three reports below add cases in which the routed redundancy was in place and the failure reached every path at once. Each is told from the operator's own account, with durations computed from its times.
Cloudflare, 17 July 2020. A backbone link between Newark and Chicago failed at 20:25 Coordinated Universal Time (), and the backbone between Atlanta and Washington congested. To relieve it, engineers changed the configuration of a router in Atlanta, and "This configuration contained an error that caused all traffic across our backbone to be sent to Atlanta"; instead of removing Atlanta's routes, "a one line change started leaking all BGP routes into the backbone", with "an increased local-preference of 200" against the 100 that local routes from compute nodes carried, so higher preference pulled other locations' traffic to Atlanta (Cloudflare, Cloudflare outage on July 17, 2020, published 18 July 2020 UTC). Traffic dropped "by about 50% across our network" from 21:12 until the Atlanta router was disabled at 21:39 UTC, 27 minutes, with full recovery including logs at 22:10, 58 minutes after the start. Among the affected locations were "São Paulo, Curitiba, and Porto Alegre" (same report). The remedies: a maximum-prefix limit on backbone sessions, which "would have shut down the backbone in Atlanta, but our network is built to function properly without a backbone", and a change of local preference for local server routes (same report). The redundancy of many paths became one path because one router's policy made itself the best.
Google Cloud, 2 June 2019. Google ran its network control plane under several instances of its cluster management software in each location, so that "failure of any individual instance has no impact on network capacity". A maintenance event in one location, a configuration that marked those instances as eligible for it, and a bug "allowing it to deschedule multiple independent software clusters at once, crucially even if those clusters were in different physical locations" stopped the control plane in several locations together (Google Cloud Service Health, Google Cloud Networking Incident #19009, issue summary of 6 June 2019). The network was designed "to 'fail static' and run for a period of time without the control plane being present", and it did, for several minutes; then "BGP routing between specific impacted physical locations was withdrawn" (same report). The maintenance event started at 11:45 US/Pacific and full service resumed at 16:10, and the report gives regional durations of between 3 hours 19 minutes and 4 hours 25 minutes; Compute Engine instances in four regions, southamerica-east1 among them, "were inaccessible for the duration of the incident" (same report). That region is in Osasco, São Paulo (Google Cloud, Regions and zones, last updated 10 November 2026). Recovery was slow because configuration had to be rebuilt; the fixes include persisting it locally, which "will reduce recovery time by an order of magnitude", and running in fail-static mode "for a longer period in the event of loss of the control plane" (Google Cloud, as above). The redundant instances shared one scheduler, and the scheduler was the single point of failure.
Cloudflare, 21 June 2022. Cloudflare had rebuilt 19 of its busiest data centres, São Paulo among them, around an added layer of spine routers designed for resilience and maintenance, an architecture it calls Multi-Colo (). A change to standardize reached the spines, where "a re-ordering of terms caused us to withdraw a critical subset of prefixes": two terms that advertised site-local prefixes moved below a term that rejected everything else (Cloudflare, Cloudflare outage on June 21, 2022, published 21 June 2022). The outage began at 06:27 UTC; the first data centre was back at 06:58, 31 minutes later, and all were back at 07:42, 75 minutes after the start, delayed because "network engineers walked over each other's changes, reverting the previous reverts" (same report). "Even though these locations are only 4% of our total network, the outage impacted 50% of total requests", 12.5 times their share. The report's own diagnosis is about staging, not routing: "the stagger policy did not include an MCP data center until the final step", and the remedies include an automated "commit-confirm" rollback (same report).
Read together, the three reports repeat the hub's pattern. Each network had many paths; in each, one change or one shared piece of software reached all of them, and BGP faithfully propagated the result. The incident timeline and root cause analysis builder structures such a timeline, and the change blast-radius mapper asks before the change which paths it can reach.
How layer 3 failures are found
- The ECMP set. A route with all its next hops installed shows each one; FRR's documentation prints a 16-way example, in excerpt (addresses as in the documentation):
eva# show ip route 4.4.4.4/32
D>* 4.4.4.4/32 [150/0] via 192.168.161.1, enp39s0, weight 1, 00:00:02
* via 192.168.161.2, enp39s0, weight 1, 00:00:02
...
* via 192.168.161.16, enp39s0, weight 1, 00:00:02
The * on every line marks a next hop installed in the forwarding table, and Linux's ip route show lists the same group as nexthop via lines (FRRouting documentation, Zebra). A next hop missing from the list after a failure is expected; one still present while its path drops traffic is the case that BFD over ECMP cannot see, as the BFD article explains. The routing table explainer reads such output, and the FortiGate route selection explainer walks one vendor's choice among ties.
- Uneven links. Per-member counters that differ widely under many flows point to polarization or large flows; the remedies are the seeds and the large-flow placement above.
- A helper holding stale routes. A neighbour in graceful restart helper mode keeps routes marked stale until the restart time or grace period ends; if the restarting router's forwarding plane is dead, those minutes are a black hole. Check which BFD mode the sessions run in (the C bit) and whether the helper aborts on BFD down.
- Transient loops after a failure. Time-to-live exceeded messages for a destination during convergence, or packets counted twice on a link pair, are microloops; the SPF timers and discard routes above bound them.
- Paths that exist and are not known. If a border router's failure leaves internal routers waiting for new advertisements, the backup paths were hidden; ADD-PATH or diverse paths make them known in advance, and PIC lets the forwarding table use them.
The flow path reasoner helps write down which routers and links a flow crosses before and after a failure, which is the first step of each of these checks.
What to remember
- A routed failover is detection, local reaction, propagation, recomputation and loading the forwarding hardware; RFC 5714 puts the last step at up to several hundred milliseconds and calls it the largest and most variable.
- ECMP hashes per flow; when one of N next hops fails, modulo-N moves (N-1)/N of all flows, hash-threshold between 1/4 and 1/2, HRW and resilient hashing only the failed path's 1/N.
- Routers that hash the same fields with the same seed in successive tiers polarize: in the simulation, one link of the second router carried every flow and the other none; per-device seeds fix it.
- BFD shortens detection; on point-to-point fibre, fast fallover on link down is often faster still.
- Graceful restart keeps forwarding through a restarting control plane for a bounded time (OSPF grace period up to 1,800 s, BGP restart time up to 4,095 s, LLGR up to 194 days) and is wrong when the forwarding plane died: BFD with the C bit set should abort it.
- Nonstop routing keeps a live copy of the routing processes on the standby processor and needs no helpers; graceful shutdown (65535:0, LOCAL_PREF 0) and the OSPF stub router drain traffic before planned work.
- Loop-free alternates follow RFC 5286's inequalities and cover anywhere from 16% to 99% depending on topology, none at all in an even ring with equal costs; TI-LFA (RFC 9855, October 2025) guarantees coverage in any two-connected network with segment routing.
- BGP converges slowly by design (HoldTime 90 s, MRAI 30 s external); ADD-PATH makes backup paths known, and PIC, still a draft, makes failover independent of the number of prefixes: 10 to 100 seconds for a million prefixes against about 50 ms.
- Three operators' reports show layer 3 redundancy defeated by one policy (Cloudflare 2020), one shared scheduler (Google 2019) and one change reaching every spine (Cloudflare 2022), each with São Paulo among the affected locations.
Sources
- RFC 5714, IP Fast Reroute Framework, January 2010, Informational: section 4 (accessed 16 November 2026)
- RFC 2991, Multipath Issues in Unicast and Multicast Next-Hop Selection, November 2000, Informational: sections 2 and 4.1 (accessed 16 November 2026)
- RFC 2992, Analysis of an Equal-Cost Multi-Path Algorithm, November 2000, Informational: sections 2.2 and 3, disruption of hash-threshold, modulo-N and HRW (accessed 16 November 2026)
- RFC 7938, Use of BGP for Routing in Large-Scale Data Centers, August 2016, Informational: sections 6.1, 6.2, 6.4, 7.1 to 7.5 (accessed 16 November 2026)
- RFC 7424, Mechanisms for Optimizing Link Aggregation Group (LAG) and Equal-Cost Multipath (ECMP) Component Link Utilization in Networks, January 2015: section 4.3.2 (accessed 16 November 2026)
- Linux kernel documentation, Resilient Next-hop Groups (accessed 16 November 2026)
- Linux kernel documentation, IP Sysctl: fib_multipath_hash_policy and fib_multipath_hash_seed (accessed 16 November 2026)
- FRRouting documentation, Zebra (latest): ECMP limit, resilient next-hop groups, the 16-way example output (accessed 16 November 2026)
- FRRouting documentation, BGP (latest): maximum-paths, graceful restart and its timers, LLGR, graceful-shutdown, fast-external-failover, ADD-PATH (accessed 16 November 2026)
- FRRouting documentation, OSPFv2 (latest): graceful restart and helper defaults, TI-LFA (accessed 16 November 2026)
- FRRouting documentation, IS-IS (latest): local LFA, remote LFA and TI-LFA (accessed 16 November 2026)
- Fortinet, FortiOS 8.0.0 Administration Guide, Equal cost multi-path: algorithms, default, ecmp-max-paths (accessed 16 November 2026)
- Fortinet, FortiOS 8.0.0 Administration Guide, BFD: BFD for static routes (accessed 16 November 2026)
- Fortinet, FortiOS 8.0.0 Administration Guide, OSPF graceful restart upon a topology change (accessed 16 November 2026)
- Fortinet, FortiOS 8.0.0 Administration Guide, Graceful BGP shutdown (accessed 16 November 2026)
- Fortinet, FortiOS 8.0.0 Administration Guide, BGP multiple path support (accessed 16 November 2026)
- Juniper Networks, Hashing Algorithms for LAG and ECMP: RTAG7 seed offsets, resilient hashing and its limits (accessed 16 November 2026)
- Juniper Networks, Junos OS High Availability User Guide, published 15 November 2026: Nonstop Active Routing Concepts, Platform-Specific NSR Behavior, Configuring Graceful Restart Options for BGP, Using Control Plane Dependent BFD along with Graceful Restart Helper Mode (accessed 16 November 2026)
- Juniper Networks, Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS and OSPF: LFA coverage, post-convergence path, protection modes (accessed 16 November 2026)
- Juniper Networks, BGP PIC for Layer 3 VPNs: PIC edge (accessed 16 November 2026)
- Nokia, SR Linux R26.7 Segment Routing Guide, Loop-free alternates: LFA, remote LFA, the ring example (accessed 16 November 2026)
- Cisco, CEF Polarization, document 116376, updated 26 July 2013: polarization and its remedies (accessed 16 November 2026)
- RFC 7880, Seamless Bidirectional Forwarding Detection (S-BFD), July 2016: Abstract (accessed 16 November 2026)
- RFC 5882, Generic Application of Bidirectional Forwarding Detection (BFD), June 2010: sections 4.3.1 and 4.3.2 (accessed 16 November 2026)
- RFC 4724, Graceful Restart Mechanism for BGP, January 2007, updated by RFC 8538: sections 1, 3 and 4.2 (accessed 16 November 2026)
- RFC 8538, Notification Message Support for BGP Graceful Restart, March 2019: Abstract (accessed 16 November 2026)
- RFC 9494, Long-Lived Graceful Restart for BGP, November 2023: Abstract and section 3 (accessed 16 November 2026)
- RFC 3623, Graceful OSPF Restart, November 2003: sections 1, 2.1, 3.2 and 5 (accessed 16 November 2026)
- RFC Editor, RFC 5187 metadata, OSPFv3 Graceful Restart, June 2008 (accessed 16 November 2026)
- RFC Editor, RFC 8706 metadata, Restart Signaling for IS-IS, February 2020, obsoletes RFC 5306 (accessed 16 November 2026)
- RFC 8326, Graceful BGP Session Shutdown, March 2018: sections 4 and 4.2 (accessed 16 November 2026)
- RFC 6987, OSPF Stub Router Advertisement, September 2013, obsoletes RFC 3137: section 3 (accessed 16 November 2026)
- RFC 5286, Basic Specification for IP Fast Reroute: Loop-Free Alternates, September 2008, updated by RFC 8518: sections 1 and 3.2 and figure 1 (accessed 16 November 2026)
- RFC 6571, Loop-Free Alternate (LFA) Applicability in Service Provider (SP) Networks, June 2012: sections 4.2 and 4.3, table 1 (accessed 16 November 2026)
- RFC 7490, Remote Loop-Free Alternate (LFA) Fast Reroute (FRR), April 2015 (accessed 16 November 2026)
- RFC 9855, Topology Independent Fast Reroute Using Segment Routing, October 2025, Proposed Standard: Abstract (accessed 16 November 2026)
- RFC Editor, RFC 9855 metadata: date and status (accessed 16 November 2026)
- RFC 5715, A Framework for Loop-Free Convergence, January 2010: Abstract and section 1 (accessed 16 November 2026)
- RFC 8405, Shortest Path First (SPF) Back-Off Delay Algorithm for Link-State IGPs, June 2018: sections 3 to 6 and 8 (accessed 16 November 2026)
- RFC 4271, A Border Gateway Protocol 4 (BGP-4), January 2006: section 10, timers and jitter (accessed 16 November 2026)
- RFC 7196, Making Route Flap Damping Usable, May 2014 (accessed 16 November 2026)
- RFC 6774, Distribution of Diverse BGP Paths, November 2012: Abstract and section 2.1 (accessed 16 November 2026)
- RFC 7911, Advertisement of Multiple Paths in BGP, July 2016, Proposed Standard: Abstract and section 1 (accessed 16 November 2026)
- IETF datatracker, draft-ietf-rtgwg-bgp-pic-24, BGP Prefix Independent Convergence, 1 November 2026: state, Abstract, sections 6.1 and 6.2, appendix D (accessed 16 November 2026)
- B3, Manual de Acesso à Infraestrutura Tecnológica da B3, version 8.5, 13 February 2026: sections 3.2 and 5.1 (accessed 16 November 2026)
- Cloudflare Blog, Cloudflare outage on July 17, 2020, published 18 July 2020 UTC (accessed 16 November 2026)
- Google Cloud Service Health, Google Cloud Networking Incident #19009, 2 June 2019, issue summary of 6 June 2019 (accessed 16 November 2026)
- Google Cloud, Compute Engine, Regions and zones, last updated 10 November 2026: southamerica-east1 in Osasco, São Paulo (accessed 16 November 2026)
- Cloudflare Blog, Cloudflare outage on June 21, 2022, published 21 June 2022 (accessed 16 November 2026)