Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

LSDB (Link-State Database)

Direct 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.

When to use this

Use it when the design or fault is specifically about the area-scoped Link-State Database that records OSPF topology advertisements before SPF and RIB selection. Stay on that boundary until configuration intent, live control/security state and the adjacent dependency agree.

First 30 seconds

1. The LSDB must be identical on all routers in an area.

2. Compare counts between routers.

3. Frequent SPF runs indicate instability.

4. Large LSDBs suggest summarising or area redesign.

5. Check for stale or MaxAge LSAs.

Operational verification

LSAs flooded → synchronized LSDB → SPF input

Evidence · next step

Check the origin router LSDB, then walk the flooding/ABR path toward this router.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard · Cisco IOS XE
Key commandshow ip ospf database
Scope / prerequisiteUse it when the design or fault is specifically about the area-scoped Link-State Database that records OSPF topology ad…
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

7 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 First 30 seconds Verify boundary

Immediate answer: Trace one missing prefix to the expected LSA type, advertising router and area instead of starting with the routing table alone.

Verification chain: originating state → LSA generation → area flooding → local LSDB entry → SPF candidate → RIB → FIB

Stop condition: An LSA in the LSDB shows control-plane knowledge, not that policy, route preference or forwarding installs the prefix.

Step 2 Operational verification and known-good state Verify boundary
show ip ospf database
show ip ospf database router 2.2.2.2
show ip ospf database database-summary

The first lists the database by LSA type with link ID, advertising router, age, sequence number and checksum per LSA. The second shows one router's LSA in full: every link it reports, with the neighbour or network and the cost. The third gives the number of LSAs per type per area.

Known-good: one Router LSA for each router in the area, ages below 1800 or just refreshed, and the same counts on other routers of the area.

Step 3 Verification and output interpretation Verify boundary

Verify the LSDB by area and LSA class, then compare relevant instances across routers that should share the same scope. Check Advertising Router, Link State ID, sequence and age when investigating a mismatch. Correlate database state with neighbor Full state: Full suggests synchronization completed, but the specific expected LSA must still be verified. After confirming the LSDB, inspect OSPF route calculation, RIB installation and CEF separately. On ABRs, check each attached area rather than assuming a single LSDB command view represents all topology. A useful verification chain is interface/role → neighbor or LSDB object → OSPF calculation → RIB → CEF, with each transition independently confirmed.

Step 4 Step-by-step troubleshooting Narrow the fault

Boundary rule: An LSA in the LSDB shows control-plane knowledge, not that policy, route preference or forwarding installs the prefix.

Step 5 Verification & troubleshooting Narrow the fault

1. show ip ospf database → under Router Link States there is one line per router in the area. Are all expected routers there?

2. To find a prefix: inside the area look in the originating router's LSA (show ip ospf database router <router-id>); from another area use show ip ospf database summary <prefix>; redistributed routes are under external.

3. show ip ospf database database-summary → compare the counts with a neighbour in the same area.

4. LSA present but no route: continue with SPF and route selection.

5. An age close to 3600, or a sequence number that rises quickly, points to an origination problem or a duplicate router ID.

Step 6 Failure signatures and troubleshooting branches Narrow the fault
  • A router is missing from the Router Link States. It has no Full adjacency into the area, or it is in another area.
  • A prefix is missing from the originating router's LSA. The interface is not enabled for OSPF on that router.
  • Counts differ between two routers of the same area. An adjacency is not Full, or LSAs are stuck in retransmission (show ip ospf retransmission-list).
  • One LSA's sequence number keeps rising. A flapping link on the originating router, or a duplicate router ID.
  • A sudden flood of external LSAs. Redistribution was configured without a filter.
  • Adv Router is not-reachable in an LSA's detail. The LSA is there, but SPF finds no two-way path to its originator.
Step 7 When the problem is really fixed Narrow the fault
  • Every router of the area appears in the database.
  • The prefix in question is in the expected LSA.
  • LSA counts match between routers of the same area.
  • Sequence numbers and ages behave normally — no racing, nothing stuck near maximum age.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

command output · 1
Command lookup Jump straight to Cisco syntax
Key points

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

Key checks
  • show ip ospf database — LSDB summary
  • show ip ospf database database-summary — counts
  • show ip ospf statistics — SPF runs
ReferenceWhat it is1 section · depth on demand

What it is

The link-state database (LSDB) is the collection of all LSAs a router holds for an area — its map of the area. Every router in the same area must hold an identical copy.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Every OSPF route is calculated from the database, so one question splits any routing problem in two: is the information in the database? If the LSA is missing, the fault is in origination or flooding. If it is there, the fault is in the calculation or in route selection. The database also shows the topology exactly as OSPF sees it, which is often not quite as the diagram says.

ReferenceImportant terms & boundaries6 sections · depth on demand

Key points

  • One database per area; an area border router holds one for each of its areas.
  • Common LSA types: 1 Router, 2 Network, 3 Summary, 4 ASBR summary, 5 External, 7 NSSA external.
  • An LSA is identified by type, link-state ID and advertising router, and carries a sequence number, an age and a checksum.
  • A higher sequence number is a newer version.
  • Age counts up; at 3600 seconds the LSA is removed. The originator refreshes it every 1800 seconds.
  • Within an area the database must be the same on all routers.

In depth

The LSDB: the area map every router holds

The link-state database holds all LSAs a router knows for an area. The Catalyst 9000 OSPF guide states that every device in an area keeps an identical LSDB, and runs SPF on it to compute least-cost paths. An ABR has one LSDB per attached area.

R1# show ip ospf database
            OSPF Router with ID (10.0.0.1) (Process ID 1)
                Router Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum Link count
10.0.0.1        10.0.0.1        412         0x80000021 0x00A1B2 5
10.0.0.2        10.0.0.2        388         0x8000001C 0x003C4D 4
                Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.10.0.1       10.0.0.1        1201        0x80000004 0x00D3E1
                Summary Net Link States (Area 0)
Link ID         ADV Router      Age         Seq#       Checksum
10.30.0.0       10.0.0.5        640         0x80000002 0x00117A
                Type-5 AS External Link States
Link ID         ADV Router      Age         Seq#       Checksum Tag
0.0.0.0         10.0.0.9        201         0x80000012 0x0045C0 1
R1# show ip ospf database database-summary

Fields

FieldMeaning
Link IDWhat the LSA describes (router ID, DR interface address, prefix)
ADV RouterThe originating router
AgeSeconds since origination; LSAs are refreshed before they reach MaxAge (3600 s)
Seq#Increases with each new version; the higher number wins
ChecksumDetects corruption

Using the LSDB in troubleshooting

QuestionCommand
Does every router in the area agree?Compare database-summary counts across routers
Who originates a prefix?show ip ospf database summary <prefix> or external <prefix>
Which links does a router report?show ip ospf database router <router-id>
Is a router flapping?Sequence numbers rising quickly for its LSA

LSDB size

The LSDB grows with routers, links and prefixes per area. Areas, summarisation and stub areas keep it small. The guide's LSA group pacing default (240 s) spreads LSA refreshes over time instead of refreshing them all at once.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Quick reference

The LSDB (link-state database) is the collection of LSAs a router holds for each area. Every router in an area must have an identical LSDB; SPF runs on it to build the routing table.

show ip ospf database
show ip ospf database database-summary
show ip ospf database router self-originate

Documented example, not captured output.

LSDB symptomMeaning
Different LSA counts on routers in one areaFlooding problem
LSAs with high age not refreshingOriginator unreachable
Frequent sequence number changesFlapping link
Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Mechanics and state ownership

Flooding follows simple rules. When an LSA arrives, the router compares it with the copy it already has. If the new one is newer, it is stored, acknowledged, sent on out of all other interfaces in the area, and an SPF run is scheduled. If it is the same, it is acknowledged and nothing more happens. If it is older, the router answers with its own newer copy. Each LSA is retransmitted to a neighbour until that neighbour acknowledges it.

Ageing keeps the database clean. Each LSA's age increases, the originator re-issues it every 30 minutes, and anything that reaches 60 minutes without refresh is discarded — which is how information from a router that has vanished eventually disappears. To withdraw something at once, the originator floods the LSA with the maximum age.

Because of these rules, routers that are adjacent and Full have the same database. A difference between two routers in an area therefore always leads back to an adjacency that is not Full, or to LSAs that are not being acknowledged.

State model and technical mechanics

The LSDB stores OSPF’s link-state advertisements for the area or other applicable flooding scope. Routers with synchronized adjacencies exchange database summaries, request missing/newer LSAs and flood updates so their databases converge toward the same view for that scope. An ABR maintains separate area LSDBs, so “the LSDB” is not necessarily one universal database on the router. SPF operates on topology information in the LSDB, then OSPF performs route calculations and proposes routes to the local RIB. The RIB can still reject an OSPF candidate in favor of a more preferred route, which means LSDB presence and forwarding state can legitimately differ.

Limits and common misconceptions

A synchronized LSDB is not the routing table and does not show the data plane. Two routers in different areas should not be expected to have identical detailed LSDBs. Full adjacency also does not show every desired external or inter-area LSA is in scope. Conversely, an LSA present in the database can legitimately produce no installed route because of route type selection, a better route source, unresolved forwarding or policy. Treat LSDB state as precise control-plane evidence at one stage in a longer chain.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Keep area design, Router IDs and adjacency behavior stable to preserve predictable LSDB scope. Summarize and redistribute at intentional boundaries so the database contains the level of detail the design expects. Avoid trying to “fix the route table” by manipulating LSDB objects directly; configuration should correct the source topology, area or policy that caused the database state. When introducing new links or prefixes, document which LSA class and area should carry them so verification has a concrete expected database object rather than only an expected ping result.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 2328

Authoritative/upstream documentation reviewed for bounded claims in Routing → OSPF → OSPF Fundamentals → LSDB. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%
Embedded reference data

Quick lookup tables

LSDB · technical reference

Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.

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

LSDB operational reference

Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.

BoundaryKnown-good for LSDBSuspicious signatureNext proof
IntentMatches the area-scoped Link-State Database that records OSPF topology advertisements before SPF and RIB selection designConfiguration differs from design/peerCompare effective configuration
Control/security stateStable expected neighbor/database/binding/election statethe required LSA absent from the expected area, divergent sequence/origin between routers, an LSA present but operators still troubleshoot adjacency instead of SPF/RIB selection, or stale topology surviving repeated instabilityInspect protocol/security detail and adjacent state
ForwardingExpected Layer-2 or RIB/FIB/gateway pathControl state exists but traffic path disagreesMAC/ARP/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or protection disabledRegression test
Confirmation

Confirm action

Continue?