Convergence is four steps, and one usually dominates
Convergence is the time between a failure and every router forwarding on the new best path. In OSPF it has four stages: detect the failure, flood a new LSA, run SPF, and install the result.
On small screens, swipe sideways or focus the diagram and use the arrow keys.
On broadcast and point-to-point links the default hello is 10 seconds and the dead interval 40 seconds, so a silent failure (a switch between routers, a dying transceiver that stays up) can take up to 40 seconds to detect. Flooding, SPF and installation usually take milliseconds on modern routers. That is why detection is where to look first.
Detect faster with BFD
Bidirectional Forwarding Detection (BFD) sends small, frequent packets between two routers and reports a failure to the routing protocol after a few misses. OSPF asks BFD to watch each neighbour and drops the adjacency when BFD declares it down. Detection time is the interval multiplied by the multiplier.
interface GigabitEthernet0/0
bfd interval 300 min_rx 300 multiplier 3
ip ospf bfd
!
router ospf 1
bfd all-interfacesR2, global configuration. Use either 'ip ospf bfd' on one interface or 'bfd all-interfaces' under the process. The neighbour needs BFD on its side as well.
R2#show bfd neighbors NeighAddr LD/RD RH/RS State Int 10.0.23.2 4097/4098 Up Up Gi0/0
Fast hello, the alternative
interface GigabitEthernet0/0
ip ospf dead-interval minimal hello-multiplier 4Sets the dead interval to one second and sends four hellos per second. Configure both ends. This raises control-plane load, so prefer BFD where it is available.
Control SPF and LSA bursts
On small screens, swipe sideways or focus the diagram and use the arrow keys.
After detection, the router floods a new LSA and runs SPF. Throttle timers let the first event run quickly but slow down repeated ones, so a link that flaps does not keep every router busy.
router ospf 1
timers throttle spf 50 200 5000
timers throttle lsa all 0 200 5000
timers lsa arrival 100Values are in milliseconds: start, hold and maximum wait. Defaults differ between releases, so check yours before changing them.
R2#show ip ospf | include throttle|SPF Initial SPF schedule delay 50 msecs Minimum hold time between two consecutive SPFs 200 msecs Maximum wait time between two consecutive SPFs 5000 msecs
Point-to-point network types also help. A point-to-point link needs no DR election, so the adjacency forms and recovers sooner than on a broadcast link between two routers.
Check your understanding
BFD runs with interval 300 ms and multiplier 3. About how long until a silent failure is detected?
Which stage normally takes the longest with default OSPF timers?
A link flaps every few seconds. Which setting limits repeated SPF runs?