Pcornel
Networking · Infrastructure

OSPF LSAs & LSDB

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

Back to the Topic

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 type
  • show ip ospf database router <rid> — one router's links
  • show 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 database
show ip ospf database router <rid>
show ip ospf database network
show 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

TypeName / roleTypical origin / scope
1Router LSAEvery OSPF router; describes links inside one area
2Network LSADR on a multiaccess segment; describes attached routers inside one area
3Summary / inter-areaABR advertises reachability between areas
4ASBR SummaryABR advertises how to reach an ASBR
5AS ExternalASBR advertises external routes; not flooded into stub areas
7NSSA ExternalASBR 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

Confirmation

Confirm action

Continue?