In 20 years, you will be more dissapointed by what you didn't do than by what you did.

OSPF Neighbor States: Step‑by‑Step

Understanding OSPF Neighbor States and Adjacency Formation

Open Shortest Path First (OSPF) is a link-state IGP (Interior Gateway Protocol) designed for efficient, scalable, and fast convergence in enterprise and service provider networks. Before routers can exchange routing information, they must become neighbors and go through a well-defined finite-state machine to synchronize their Link-State Databases (LSDBs). A deep understanding of each OSPF neighbor state and the LSA exchange process is critical for troubleshooting and optimizing OSPF behavior in complex topologies.

 

OSPF Neighbor State

OSPF adjacency formation progresses through a series of states, each representing a specific phase in the neighbor relationship:

1. Down 

  • This is the initial state.

  • No Hello packets have been received from the neighbor.

  • The router may still be sending Hello packets.

2. Attempt (only for NBMA networks)

  • The router actively sends unicast Hello packets to a configured neighbor.

  • No Hello has been received yet from that neighbor.

3. Init 

  • A Hello packet has been received from the neighbor.

  • However, the router's own Router ID is not yet seen in the neighbor's Hello packet.

  • Communication is unidirectional.

4. 2-Way 

  • Bi-directional communication is established.

  • The router sees its own Router ID in the neighbor's Hello packet.

  • DR and BDR election occurs on broadcast and NBMA networks.

  • On point-to-point networks, routers may move directly to the next state.

5. ExStart 

  • Routers negotiate master-slave roles.

  • They select initial sequence numbers for Database Description (DBD) packets.

  • This phase prevents simultaneous DBD packet exchange and ensures order.

6. Exchange 

  • Routers exchange DBD packets summarizing their LSAs.

  • Each LSA summary includes type, ID, advertising router, and sequence number.

  • Routers build a list of LSAs they need from their neighbor.

7. Loading 

  • The router sends Link State Request (LSR) packets for missing or outdated LSAs.

  • The neighbor responds with Link State Update (LSU) packets containing the full LSA.

  • Routers install received LSAs in the LSDB.

8. Full 

  • LSDBs are fully synchronized.

  • The routers are fully adjacent.

  • On broadcast and NBMA networks, only DR and BDR form Full adjacencies with other routers



Comments

3 Responses to "OSPF Neighbor States: Step‑by‑Step"

Anonymous said... August 8, 2025 at 2:02 PM

This step-by-step guide on OSPF neighbor states is very clear and helpful. Thanks for explaining each phase so well!

Anonymous said... August 8, 2025 at 2:03 PM

The diagrams and explanation of each OSPF neighbor state really help visual learners. Great job illustrating INIT, 2-Way, EXSTART, EXCHANGE, LOADING, and FULL.

Anonymous said... August 8, 2025 at 2:04 PM

I appreciate how you break down each OSPF phase with bullet points and clear descriptions. This will definitely help with troubleshooting neighbor relationships in complex topologies.

Post a Comment

Popular Posts