Link-State Protocol
Cheat sheet · https://pcornel.dk/topic.php?topic=1088
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, areasshow ip ospf neighbor— adjacenciesshow ip route ospf— routes learned
Commands
show ip ospf neighborshow ip ospf databaseshow ip ospf database database-summaryshow 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
| Item | Meaning |
|---|---|
| LSA | Topology/reachability description |
| LSDB | Database of LSAs in scope |
| SPF | Calculates paths from topology |
| RIB/CEF | Separate 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