Octet

What are the OSPF hello and dead timers, and what are the defaults?

Show the answer

Say this first

Hellos discover neighbors and keep them alive. The dead interval is how long a router waits without a hello before it declares the neighbor down. Defaults are 10 and 40 seconds on broadcast and point-to-point networks, and 30 and 120 seconds on NBMA and point-to-multipoint. Both must match between neighbors.

Go deeper

Defaults by network type (IOS)

Network typeHelloDead
Broadcast10 s40 s
Point-to-point10 s40 s
Non-broadcast (NBMA)30 s120 s
Point-to-multipoint30 s120 s

The dead interval defaults to four times the hello. If you change only the hello, IOS also moves the dead interval to four times the new hello unless you set dead explicitly.

Changing them

Cisco IOS
interface GigabitEthernet0/0/0
 ip ospf hello-interval 5
 ip ospf dead-interval 20

Sub-second detection with OSPF alone uses ip ospf dead-interval minimal hello-multiplier 4, which sets dead to 1 second and sends 4 hellos per second. In practice I use BFD instead, which is lighter on the CPU.

What else hellos carry

Router ID, area ID, mask, hello and dead intervals, options (including the stub bit), router priority, DR and BDR addresses, and the list of neighbors already heard on the link.

Traps

  • Thinking only the hello must match. The dead interval must match too.
How did you do?