OSPF neighbors and adjacency
Why OSPF forms adjacencies
OSPF (Open Shortest Path First) is an interior, link-state routing protocol. Routers exchange information about links so each can build a topology for its area and calculate routes. An area is a logical routing subdivision; our first network uses only backbone area 0 (0.0.0.0). A neighbor is a discovered peer; an adjacency is a relationship used to synchronize routing databases. Not every neighbor must become fully adjacent on a shared segment. OSPF control packets use IP protocol 89, not TCP or UDP ports.
A first two-router example
The diagram is a fictional OSPFv2 point-to-point link. Router IDs are distinct 32-bit identifiers written like IPv4 addresses; they need not be reachable interface addresses. Hello messages discover neighbors and maintain their presence. The Hello interval is the sending cadence; the dead interval is how long without a valid Hello before declaring a neighbor down. Both timers and the area must agree here. Values are explicit lab settings, not universal defaults. Assume compatible authentication, network parameters and working bidirectional connectivity.
R1 ID 192.0.2.1 R2 ID 192.0.2.2Area 0 Area 0Hello 10 s Hello 10 sDead 40 s Dead 40 s192.0.2.5/30 ----- 192.0.2.6/30Point-to-point Point-to-pointFrom discovery to Full
For this ordinary point-to-point case, expect progression from Down to Init (a Hello received), then 2-Way (the peer lists our ID). ExStart negotiates database exchange roles and sequence numbers; Exchange summarizes database contents, Loading requests needed LSAs (link-state advertisements), and Full means database synchronization with that neighbor is complete. Loading may be brief or skipped when nothing is missing. Attempt is a special state for certain NBMA neighbors, not part of every sequence. Database Description, Link State Request, Link State Update and Link State Acknowledgment packets support synchronization and reliable flooding. A Full adjacency is evidence of control-plane operation, not a guarantee of application reachability.
Diagnose a mismatch before changing anything
If R2 uses area 1, the Hello is not accepted for this area-0 link. If it sends Hello every 5 s while R1 expects 10 s, correct timer agreement is missing even if the link is physically up. If neighbors stop in ExStart or Exchange, an incompatible interface MTU is one possible cause; do not assume it is the only one. Compare router IDs, interface state, area, timers, network type, addressing, authentication compatibility and MTU using approved read-only evidence. Never print keys or bypass authentication as a fix.
Practice and next step
On paper, change only R2 dead interval to 30 s. Predict whether the ordinary matching-timer condition holds, then state which setting differs. Restore the original values in the paper model. Next, learn how synchronized topology information becomes a least-cost route.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
OSPF neighbors and adjacency — knowledge check
Apply OSPF single-area concepts to fictional routing situations.
What is the difference between a neighbor and a Full adjacency?
Two otherwise compatible point-to-point OSPFv2 peers use area 0 and area 1 on their shared link. What is wrong?
R1 expects Hello 10 s and Dead 40 s. R2 uses Hello 10 s and Dead 30 s. Which setting prevents ordinary timer agreement?
Two point-to-point peers remain in ExStart. Which is a plausible cause to investigate?
Why should you verify application reachability separately after neighbors reach Full?