Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF Packet Types Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=208

Back to the Topic

Answer

OSPF uses five packet types: Hello finds and keeps neighbours; Database Description, Link State Request, Link State Update and Link State Acknowledgment synchronise the database and carry changes. They travel directly in IP (protocol 89), not in TCP or UDP.

Remember

Each state of a forming adjacency uses particular packets, so the state tells you which exchange to look at. OSPF has no port number — a firewall has to permit IP protocol 89 and the multicast addresses 224.0.0.5 and 224.0.0.6.

First checks

  • show ip ospf neighbor — how far the exchange has got.
  • show ip ospf traffic — packets sent and received per type, and errors.
  • show ip ospf interface <interface> — the values this router sends in its Hellos.
  • debug ip ospf adj — the exchange packet by packet; use briefly.

Commands

show ip ospf traffic
debug ip ospf adj

Verify in this order

Hello accepted both ways (2-Way) → Database Description exchange completes → requested LSAs arrive in Updates and are acknowledged → Full → later changes flooded and acknowledged

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=208

Confirmation

Confirm action

Continue?