Pcornel
Networking · Routing › OSPF › OSPF Fundamentals

LSDB (Link-State Database)

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

Back to the Topic

Answer

The LSDB (link-state database) holds all LSAs a router knows for an area. All routers in the same area should have identical LSDBs; SPF runs on this database to calculate routes. View it with show ip ospf database.

Remember

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

First checks

  • show ip ospf database — LSDB summary
  • show ip ospf database database-summary — counts
  • show ip ospf statistics — SPF runs

Commands

show ip ospf database
show ip ospf database router <router-id>
show ip ospf database summary <prefix>
show ip ospf database database-summary
show ip ospf retransmission-list

Verify in this order

LSAs flooded → synchronized LSDB → SPF input

Where it usually breaks

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

LSDB · technical reference

ItemMeaning
LSDBScoped OSPF LSA collection
SynchronizationDatabase exchange/flooding aligns instances
SPF inputTopology calculation consumes LSDB
Not RIBInstalled routes are a later local decision

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

Confirmation

Confirm action

Continue?