This BGP convergence time calculator is an estimator of how long BGP takes to react to a failure. It negotiates the hold time with the peer, adds the time to detect the failure by hold timer, link-down or BFD, and then adds the cost of propagating the change, including the minimum route advertisement interval (MRAI) and rounds of path exploration. It gives best, typical and worst estimates.
Result
The result updates automatically as you change any input.
Formula and worked steps
Formulas used
- Negotiated hold time = the lower of the two peers' hold times; keepalive = hold / 3 (RFC 4271)
- Detection = hold time (silent failure), or BFD interval x multiplier, or the link-down time
- Best case = detection + hops x per-hop processing
- Typical = best + rounds x MRAI / 2; worst = best + rounds x MRAI
- RFC 4271 suggests MRAI of 30 s for eBGP and 5 s for iBGP
- This is an estimator built from timer values, not a measurement. Real convergence depends on topology, update batching, route reflectors, route-flap damping, the number of prefixes and the vendor implementation.
- The number of path-exploration rounds is an input. Published measurements show that convergence delay grows with the length of the longest backup path; set it from your topology.
- Many implementations send the first update immediately and apply MRAI only to later updates, and some do not apply it to iBGP at all; confirm the behaviour of your devices.
References
- RFC 4271: A Border Gateway Protocol 4 (BGP-4), section 10 timers
- RFC 5880: Bidirectional Forwarding Detection (BFD)
- RFC 5882: Generic Application of BFD
- RFC 4098: Terminology for Benchmarking BGP Device Convergence in the Control Plane
- Labovitz, Ahuja, Bose, Jahanian: Delayed Internet Routing Convergence (SIGCOMM 2000; IEEE/ACM ToN 9(3), 2001)
- SIGCOMM 2000 abstract: An Experimental Study of Delayed Internet Routing Convergence
What is BGP convergence?
BGP convergence is the time between a topology change, such as a link failure, and the moment all routers have a consistent, correct view and forward traffic along the new path. It has three parts: detecting the failure, propagating the news through the network and reprogramming the forwarding tables. BGP is slow by design: it favours stability and scale over speed.
Detecting the failure
A BGP session is monitored by two timers. Keepalives are sent at an interval, and if the neighbour hears nothing for the hold time, it declares the session dead. RFC 4271 suggests a hold time of 90 seconds and a keepalive of 30 seconds, one third of the hold time. Cisco IOS and FRRouting default to a 60-second keepalive and 180-second hold time. When two peers propose different hold times, they use the lower one. Waiting for the hold timer is the slowest form of detection: a silent failure can take minutes to notice.
Faster detection
Most networks do not wait for the hold timer. On a directly connected eBGP session, fast external fallover tears down the session as soon as the interface goes down. For failures that leave the link up, such as a failed switch in between, Bidirectional Forwarding Detection (RFC 5880) sends small packets at intervals of tens or hundreds of milliseconds, and declares a failure after a number of misses. An interval of 300 ms with a multiplier of 3 detects a failure in 0.9 seconds.
Propagation, MRAI and path exploration
After detection, a router withdraws the routes it learned over the failed session, and its neighbours choose alternatives and advertise them. The minimum route advertisement interval (MRAI) limits how often a router may send updates for the same prefix to the same peer: RFC 4271 suggests 30 seconds for eBGP and 5 seconds for iBGP. During a withdrawal, a router may try a succession of alternative paths, each advertised and then withdrawn as the failure becomes known along the path. This is called path exploration, and each round can wait up to one MRAI. Measurements by Labovitz and colleagues showed that convergence after a failure took minutes in the Internet and that the delay grew with the length of the longest backup path.
How the BGP convergence calculator works
Formulas
The tool takes the detection time and adds hops times a per-hop processing time for the best case, in which no timer is pending. It then adds the path-exploration cost: rounds times the MRAI for the worst case, and half of that for the typical estimate, since an update arrives on average halfway through a timer. The hold time shown is the negotiated one, the lower of the two values, with a keepalive of one third.
Worked example: BFD and MRAI of 30 seconds
With BFD at 300 ms × 3, detection takes 0.9 seconds. Across four hops at 50 ms each the update takes 0.2 seconds, so the best case is 1.1 seconds. With three rounds of path exploration at a 30-second MRAI, the typical estimate is 1.1 + 45 = 46.1 seconds and the worst case 1.1 + 90 = 91.1 seconds. Without BFD, relying on a 90-second hold timer, the worst case becomes 90 + 0.2 + 90 = 180.2 seconds. The difference between the two designs is the argument for BFD in one line.
Lowering the timers
You can shorten hold and keepalive timers, for example to 9 and 3 seconds, but there is a trade-off. Short timers make sessions fragile: a busy control plane that delays keepalives can reset the session and cause a flap, with the cost of re-learning the whole table. BFD achieves faster detection without stressing BGP itself, because BFD runs in hardware on many platforms. Where it is available, use BFD and keep BGP timers conservative.
What the estimator leaves out
It does not model FIB programming time on large tables, which can add seconds, or route reflectors and route-flap damping, both of which change propagation. It also leaves out techniques that shorten convergence, such as prefix-independent convergence, which repoints many prefixes at once to a backup next hop, and additional paths. Treat the result as an order-of-magnitude figure for comparing designs.
Why it matters for network engineers
Convergence time is the availability of your internet and WAN services. If a multi-homed site loses one provider, every minute of slow BGP convergence is a minute of broken sessions. Knowing which component dominates tells you what to fix: detection (use BFD), propagation (reduce MRAI on iBGP, use route reflectors sensibly) or exploration (simplify policy and path lengths). Table size affects the last step, since the router must update a large FIB; check capacity with the FIB size calculator.
Best practices and common mistakes
Use BFD on every eBGP session that supports it, and prefer interface tracking for directly connected peers. Set MRAI to the lowest value your platform and design allow on iBGP, and leave eBGP at its default unless you have tested the change. Use graceful restart or similar features to keep traffic flowing during control plane restarts. Aggregate where you can: the route summarization calculator shows how summaries hide changes inside an aggregate and reduce the updates seen elsewhere.
Common mistakes are leaving only the hold timer to detect failures, tuning timers aggressively on unstable links, and quoting a single convergence number without stating the failure type and the detection method. Another is confusing BGP convergence with the time for a user to recover: applications also have reconnect timers. Test the design by pulling a link in a maintenance window and timing the real result. If your network also runs layer 2 redundancy, compare it with the failover times from the spanning tree convergence calculator.
Labelling the result
Whenever you present figures from this tool, label them as an estimate and state the assumptions: the detection method, the MRAI, the number of exploration rounds and the processing time. The assumptions are the useful part, because they show which parameter to change.
FAQs
What are the default BGP keepalive and hold times?
RFC 4271 suggests 30 seconds keepalive and 90 seconds hold. Cisco IOS and FRRouting default to 60 and 180 seconds. Peers use the lower of their two hold times.
What is MRAI in BGP?
The minimum route advertisement interval limits how often updates for a prefix are sent to a peer. RFC 4271 suggests 30 seconds for eBGP and 5 seconds for iBGP.
How does BFD speed up BGP convergence?
BFD detects forwarding failures in milliseconds, so the BGP session is torn down without waiting for the hold timer. With 300 ms and a multiplier of 3, detection takes 0.9 seconds.
What is path exploration?
After a withdrawal, routers try successive alternative paths before settling, and each step may wait for the MRAI timer. Convergence time grows with the length of the longest backup path.
Next, try the FIB size calculator, the route summarization calculator and spanning tree convergence time, or browse all Routing & Switching calculators and the full list of network calculators.