Pcornel
Networking · Routing › OSPF › OSPF Fundamentals

Link-State Protocol

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

Back to the Topic

Answer

OSPF is a link-state routing protocol: each router describes its links in LSAs, floods them to all routers in the area, and every router builds the same topology database (LSDB). Each router then runs SPF to calculate its own best paths.

Remember

Do not infer service health from one command. For Link-State Protocol, distinguish configured intent, protocol/security state, installed forwarding state and the original workload result.

First checks

  • show ip ospf — process, router ID, areas
  • show ip ospf neighbor — adjacencies
  • show ip route ospf — routes learned

Commands

show ip ospf neighbor
show ip ospf database
show ip ospf database database-summary
show ip route ospf

Verify in this order

adjacencies → LSA flooding → LSDB → SPF → routes

Where it usually breaks

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

Link-State Protocol · technical reference

ItemMeaning
LSATopology/reachability description
LSDBDatabase of LSAs in scope
SPFCalculates paths from topology
RIB/CEFSeparate route installation and forwarding stages

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

Confirmation

Confirm action

Continue?