OSPF neighbours, the hello packet, router ID and cost
Sign in to read this lesson
OSPF routers must become neighbours before they exchange information. A router sends hello packets; if hellos come back, an adjacency forms. Some fields in the hello (hello/dead interval, area ID, authentication, stub area flag) must be the same on both sides. Every router has a unique router ID: first the router-id command, then the highest loopback IP, then the highest active interface IP. OSPF's metric is cost: the reference bandwidth (default 100 Mbps) divided by the interface bandwidth. The path with the lowest total cost wins; the load is shared across equal-cost paths.
What you will learn
- OSPF routers first become neighbours and then exchange LSAs. A router sends hellos, and if it receives hellos from the other side, an adjacency forms.
- These hello fields must be the same on both sides: hello/dead interval, area ID, authentication (password), stub area flag. If one differs, no adjacency forms.
- Router ID order: 1) the
router-idcommand, 2) the highest loopback IP, 3) the highest active physical interface IP. A loopback never goes down, which is why it is preferred. - Cost = reference bandwidth / interface bandwidth. Default reference 100 Mbps: 100 Mbps → 1, 10 Mbps → 10, 1 Mbps → 100. The lower the cost, the better the path.
- OSPF load-balances across equal-cost paths (by default 4 paths go into the routing table). Authentication: plaintext or MD5, per interface or for a whole area.
The lesson has 5 key points, an explanation and 5 questions. It opens with a package.