OSPF LSAs & LSDB
Cheat sheet · https://pcornel.dk/topic.php?topic=55
Answer
The LSDB (Link-State Database) is OSPF's local topology database for the relevant flooding scope or area. LSAs are the entries in that database; SPF uses the LSDB as input to calculate route candidates. The LSDB is therefore not the same as the routing table (RIB).
Remember
Think of the chain: LSA → LSDB → SPF → RIB → CEF. A FULL neighbor state proves adjacency and database synchronization, not that a specific route is in the RIB or can be forwarded.
First checks
show ip ospf database— LSA summary per area and typeshow ip ospf database router <rid>— one router's linksshow ip ospf database database-summary— LSA counts per type
Commands
show ip ospf database [router|network|summary|external]- Inspect OSPF LSDB and LSA types.
show ip ospf databaseshow ip ospf database router <rid>show ip ospf database networkshow ip ospf database summary <prefix>show ip ospf database external <prefix>show ip ospf border-routers
Verify in this order
router floods LSAs → identical area LSDB → SPF → OSPF routes in RIB
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
OSPF LSA quick reference
| Type | Name / role | Typical origin / scope |
|---|---|---|
| 1 | Router LSA | Every OSPF router; describes links inside one area |
| 2 | Network LSA | DR on a multiaccess segment; describes attached routers inside one area |
| 3 | Summary / inter-area | ABR advertises reachability between areas |
| 4 | ASBR Summary | ABR advertises how to reach an ASBR |
| 5 | AS External | ASBR advertises external routes; not flooded into stub areas |
| 7 | NSSA External | ASBR inside NSSA; translated at the NSSA boundary when appropriate |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=55