Octet

What are the five OSPF packet types and what does each do?

Show the answer

Say this first

Type 1 Hello finds and keeps neighbors. Type 2 Database Description (DBD) lists LSA headers during the database exchange. Type 3 Link State Request (LSR) asks for LSAs the router is missing. Type 4 Link State Update (LSU) carries the LSAs. Type 5 Link State Acknowledgment (LSAck) confirms receipt.

Go deeper

Where each appears

TypeNameUsed in
1HelloNeighbor discovery, keepalive, DR election
2DBDEXSTART (master and slave) and EXCHANGE (LSA headers)
3LSRLOADING, and EXCHANGE as soon as gaps are seen
4LSUAnswers to LSRs and all later flooding
5LSAckAcknowledges LSUs so flooding is reliable

All five ride directly on IP, protocol 89. OSPF builds its own reliability: an LSU that is not acknowledged is retransmitted every retransmit-interval (5 seconds by default).

The common header

Version (2 for OSPFv2, 3 for OSPFv3), type, length, router ID, area ID, checksum, and authentication type and data in OSPFv2.

Traps

  • Confusing packet types (1 to 5) with LSA types (1 to 7). Interviewers mix them on purpose.
How did you do?