PacketLab
OSPF · Network types and elections

Timers

Observe timer mismatch, align the link and distinguish detection from convergence.

Understand

Hello interval sets the periodic discovery cadence. Dead interval is the time without a valid Hello before declaring a neighbor lost. On common router broadcast and point-to-point defaults these are 10/40 seconds; NBMA and point-to-multipoint commonly use 30/120. Verify the actual interface instead of assuming defaults.

Hello and dead intervals must match across a link. Faster Hellos consume more CPU and packet capacity and can flap under congestion. Interface-down signals or BFD may detect a failure before the dead timer. Detection is followed by LSA flooding, SPF and forwarding installation; a small timer alone does not guarantee a particular restoration time.

Lab setup

Use a fresh lab for this lesson; changes from other lessons are not cumulative. All outputs are illustrative excerpts, not recorded router tests. Transit cost is explicitly 10 and Loopback0 cost is 1. Interface names may vary by image.

Lab topologyIllustrative topology
192.0.2.0/30area 0R1Lo0 · 10.255.0.1/32R2Lo0 · 10.255.0.2/32
Solid lines are physical links, configured as point-to-point. Interfaces and areas are listed below. Router symbol: GNS3, GPL-2.0. Original layout.
RouterInterfaceIPv4 addressArea
R1Gi1192.0.2.1/300
R2Gi1192.0.2.2/300

Loopback0 is 10.255.0.<router number>/32; area assignments: R1: area 0, R2: area 0.

Complete baseline configurations

R1

Configuration
configure terminal
hostname R1
router ospf 1
 router-id 10.255.0.1
 passive-interface Loopback0
 exit
interface Loopback0
 ip address 10.255.0.1 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
 exit
interface GigabitEthernet1
 ip address 192.0.2.1 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 0
 no shutdown
 exit
end

R2

Configuration
configure terminal
hostname R2
router ospf 1
 router-id 10.255.0.2
 passive-interface Loopback0
 exit
interface Loopback0
 ip address 10.255.0.2 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
 exit
interface GigabitEthernet1
 ip address 192.0.2.2 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 0
 no shutdown
 exit
end

Apply

Begin at the pair baseline with default timers. Change only R1 to 1/4 seconds to create a mismatch, then align R2. Existing adjacency may persist briefly until expiry.

R1 · deliberate mismatch

Configuration
configure terminal
interface GigabitEthernet1
 ip ospf hello-interval 1
 ip ospf dead-interval 4
end
Illustrative output · excerpt
R1# show ip ospf interface GigabitEthernet1 | include intervals
  Timer intervals configured, Hello 1, Dead 4, Wait 4, Retransmit 5
R2# show ip ospf interface GigabitEthernet1 | include intervals
  Timer intervals configured, Hello 10, Dead 40, Wait 40, Retransmit 5

Compare both ends; one-sided timer tuning prevents a stable adjacency.

R2 · align timers

Configuration
configure terminal
interface GigabitEthernet1
 ip ospf hello-interval 1
 ip ospf dead-interval 4
end

Verify and interpret

Illustrative output · excerpt
R1# show ip ospf neighbor
Neighbor ID     Pri State   Dead Time Address     Interface
10.255.0.2        0 FULL/-  00:00:03  192.0.2.2  GigabitEthernet1

The live countdown is below the configured 4-second dead interval. Measure a silent loss separately from an administrative shutdown.

Restore the baseline on both routers with the commands below; do not leave only one end at 1/4.

R1 and R2 · independently

Configuration
configure terminal
interface GigabitEthernet1
 no ip ospf hello-interval
 no ip ospf dead-interval
end

Subsecond fast-Hello modes and BFD have platform-specific prerequisites. Test them under realistic load before adopting them.

Technical references

OSPFv2 standard · Router configuration guide

Key Takeaways

  • Verify interface timers on both endpoints.
  • Hellos and dead intervals must match.
  • One-sided tuning can break adjacency.
  • Failure detection and route convergence are separate stages.
  • Restore timer changes on both ends of an experiment.

Timers Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. What does the dead interval measure?
2. Can one side use 1/4 and the other 10/40?
3. What is a common point-to-point default?
4. Which may detect a local link failure immediately?
5. Why avoid untested aggressive timers?
6. After aligning 1/4 timers, a 3-second countdown means what?