Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

LSA concepts

Direct answer

LSAs (Link-State Advertisements) are the messages OSPF uses to describe topology: routers (Type 1), multiaccess networks (Type 2), inter-area routes (Type 3), ASBRs (Type 4) and external routes (Type 5/7). Each is identified by type, link-state ID and advertising router.

When to use this

Use it when the design or fault is specifically about the typed, scoped and versioned Link-State Advertisements that carry topology and reachability facts into the OSPF LSDB. Stay on that boundary until configuration intent, live protocol state and the adjacent forwarding dependency agree.

First 30 seconds

1. LSAs describe topology: 1 router, 2 network, 3 summary, 4 ASBR summary, 5 external, 7 NSSA external.

2. Area type controls which LSAs are allowed.

3. LSAs refresh every 30 minutes.

4. MaxAge 3600 s removes them.

5. Duplicate RIDs cause LSA flapping.

Operational verification

routers originate LSAs → flooding by scope → LSDB → SPF

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 typed, scoped and versioned Link-State Advertisements that ca…
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.

5 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 Operational verification and known-good state Verify boundary
show ip ospf database
show ip ospf database summary 10.20.0.0
show ip ospf database external 192.168.50.0
show ip ospf database database-summary

The first lists all LSAs grouped by type. The next two show a single LSA in full — the prefix, mask, metric and the advertising router. The last gives the count per type, which quickly shows, for instance, whether external LSAs are present in an area at all.

Known-good: for each route, the LSA type matches the route's code, the advertising router is the expected one, and area boundaries pass or block the types the design says they should.

Step 2 Verification and output interpretation Verify boundary

Use LSDB commands to inspect LSA type, Link State ID, Advertising Router, sequence, age and scope. Compare the same LSA instance on multiple routers when validating flooding. A higher sequence number generally represents newer content for the same instance, while MaxAge behavior participates in flushing old information. Then correlate the LSA to the resulting OSPF route and RIB/CEF state. If a prefix is absent from the RIB, first determine whether the relevant LSA is absent, present but not selected by OSPF calculation, or selected by OSPF but losing installation to another route.

Step 3 Verification & troubleshooting Narrow the fault

1. Read the route's code in show ip route to know which LSA type is behind it.

2. Look the LSA up by type: show ip ospf database router | network | summary | asbr-summary | external | nssa-external <id>.

3. Note the Advertising Router and continue on that router.

4. If the LSA is missing, check the originator first, then the area border: stub settings, area range and filter lists decide what crosses.

Step 4 Failure signatures and troubleshooting branches Narrow the fault
  • External routes are missing in one area. It is a stub area; type 5 LSAs are not admitted.
  • An O E2 route takes an odd path. Type 2 ignores the cost inside OSPF; use metric type 1 if the internal distance should count.
  • An O IA route is missing. The ABR does not create the type 3: an area range … not-advertise, a filter list, or no route to summarise.
  • A type 5 LSA is in the database but the route is not installed. There is no path to the originating router — the type 4 LSA is missing.
  • Type 7 routes do not appear outside the NSSA. The ABR is not translating them.
  • The number of external LSAs is very large. Redistribution without a filter.
Step 5 When the problem is really fixed Narrow the fault
  • The route's LSA is in the database with the expected type and advertising router.
  • The route is installed with the matching code.
  • Area borders admit and block the LSA types the design intends.
  • External routes use the intended metric type.
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.

observation · 1
Command lookup Jump straight to Cisco syntax
Key points

Do not infer service health from one role or command. For LSA concepts, distinguish configured intent, election/database state, installed forwarding state and the original workload result.

Key checks
  • show ip ospf database — LSA types present
  • show ip ospf database summary — type 3
  • show ip ospf database external — type 5
ReferenceWhat it is1 section · depth on demand

What it is

A link-state advertisement (LSA) is the unit of information in OSPF: a small record in which a router describes one part of the network — its own links, a multi-access segment, a prefix from another area, or a route from outside OSPF. The link-state database is the set of all LSAs.

ReferenceWhy it matters1 section · depth on demand

Why it matters

Each LSA type has its own originator, its own content and its own reach. Knowing which type carries a given route tells you which router to look at and where the route can be summarised or filtered. The codes in the routing table map directly to the types: O comes from types 1 and 2, O IA from type 3, O E1/O E2 from type 5 and O N1/O N2 from type 7.

ReferenceImportant terms & boundaries7 sections · depth on demand

Key points

  • Every LSA has a header with its type, link-state ID, advertising router, sequence number, age and checksum.
  • Types 1 and 2 describe topology and stay inside their area.
  • Type 3 carries a prefix from one area into another; each ABR creates its own.
  • Type 5 carries a redistributed prefix through the whole OSPF domain, except into stub areas; type 4 tells other areas how to reach the router that originated it.
  • Type 7 is the external LSA used inside an NSSA; the ABR translates it to type 5.
  • The advertising router field always names the router to go and look at.

Common OSPFv2 LSA map

Type 1 Router: generated by every OSPF router per area. Type 2 Network: generated by a DR for a transit multiaccess network. Type 3 Summary: generated by ABRs for inter-area reachability. Type 4 ASBR Summary: identifies reachability toward an ASBR. Type 5 External: external reachability from an ASBR. Type 7 NSSA External: external information inside an NSSA before translation as appropriate.

In depth

LSA concepts: what OSPF advertises and how far it travels

An LSA (link-state advertisement) describes one piece of the topology. RFC 2328 defines five LSA types for OSPFv2, each originated by a specific kind of router and flooded within a defined scope. NSSAs add type 7.

TypeNameOriginated byFlooded
1Router LSAEvery routerWithin its area
2Network LSADR on a broadcast or NBMA segmentWithin the area
3Summary LSA (network)ABRInto an area, describing networks in other areas
4Summary LSA (ASBR)ABRInto an area, describing how to reach an ASBR
5AS-external LSAASBRThroughout the AS, except stub areas
7NSSA external LSAASBR inside an NSSAWithin the NSSA; translated to type 5 at the ABR
R1# show ip ospf database external 0.0.0.0
            OSPF Router with ID (10.0.0.1) (Process ID 1)
                Type-5 AS External Link States
  LS age: 201
  Options: (No TOS-capability, DC)
  LS Type: AS External Link
  Link State ID: 0.0.0.0 (External Network Number )
  Advertising Router: 10.0.0.9
  LS Seq Number: 80000012
  Network Mask: /0
        Metric Type: 2 (Larger than any link state path)
        Metric: 1
        External Route Tag: 1

LSA header fields

FieldRole
LS ageSeconds since origination; refreshed before MaxAge (3600 s)
LS type, Link State ID, Advertising RouterIdentify the LSA uniquely
Sequence numberNewer version wins
ChecksumIntegrity

Route codes and the LSAs behind them

Code in show ip routeLearned from
OTypes 1 and 2 (intra-area)
O IAType 3
O E1 / O E2Type 5 (E2 keeps the external metric; E1 adds internal cost)
O N1 / O N2Type 7

Why the types matter

Area design is really about which LSA types reach which routers. Stub areas block types 4 and 5, totally stubby areas also block type 3, and summarisation reduces the number of type 3 and 5 LSAs.

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

LSAs (Link-State Advertisements) are the units of topology information in OSPF. Each LSA is identified by type, link-state ID and advertising router, and has a sequence number and age to decide which copy is newest.

LSA conceptMeaning
Flooding scopeLink, area or domain (AS)
Sequence numberHigher = newer
LS ageIncrements; 3600 s = MaxAge (flushed)
RefreshOriginator re-floods every 30 minutes
ChecksumDetects corruption

OSPFv3 renames and adds LSA types (e.g. Link LSA, Intra-Area-Prefix LSA) but uses the same concepts.

Mechanics and state ownership

An LSA is identified by three values: its type, its link-state ID and the advertising router. What the link-state ID means depends on the type — the router's own ID for a Router LSA, the DR's interface address for a Network LSA, the network address for summary and external LSAs. A changed LSA is issued with a higher sequence number and replaces the old one everywhere.

Reach differs by type. Router and Network LSAs never leave their area. A Summary LSA is not passed along unchanged: an ABR calculates the route and writes a new type 3 for each area it advertises into, with its own cost. An External LSA, in contrast, is flooded unchanged through all normal areas, so routers elsewhere also need a type 4 LSA to find a path to the router that originated it.

Area types are defined by which LSAs they admit. A stub area takes no type 5 (and gets a default route instead), a totally stubby area also takes no type 3 apart from the default, and an NSSA carries its own external routes as type 7.

For external routes, the metric type decides how cost is counted: type 2, the default, uses only the external metric; type 1 adds the cost inside OSPF.

State model and technical mechanics

An LSA is an OSPF database object that describes a specific class of topology or reachability information. Different LSA types have different originators and flooding scopes, such as an area-local router/network description, an inter-area summary or external information injected by an ASBR. Each instance is identified by header fields including type, Link State ID and Advertising Router, and freshness is managed with sequence numbers, age and checksum. Flooding seeks to make routers within the applicable scope agree on the newest valid instance. SPF and route calculation consume LSAs later, so the existence of an LSA and the existence of an installed route are different facts.

Limits and common misconceptions

An LSA is not a packet-forwarding entry and an LSDB entry does not guarantee a usable route. LSA type numbers should not be memorized without their scope/origin semantics, and a high LSA age alone is not necessarily a fault if refresh behavior is normal. Different areas can legitimately have different detailed LSDB content. Do not infer that a prefix was “learned from a neighbor” in the simple distance-vector sense; OSPF floods database objects and each router calculates routes from the database.

ReferenceConfiguration & state1 section · depth on demand

Design and configuration model

Design OSPF so LSA scope matches the intended hierarchy. Keep area boundaries and redistribution points explicit because they determine which devices originate transformed reachability information. Avoid treating LSA-type manipulation as a generic filtering tool; use supported area, summarization and route-policy mechanisms at their proper boundaries. Stable Router IDs matter because the Advertising Router field is part of LSA identity. When changing summarization or redistribution, consider both new and withdrawn LSAs and the receiving routers’ route calculation, not only the source configuration.

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 → LSA concepts. 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

Common OSPFv2 LSA types

Fast lookup for common OSPFv2 LSA roles.

TypeCommon nameTypical origin / purpose
1RouterEach router; describes links inside an area
2NetworkDR; describes a transit multiaccess network
3SummaryABR; inter-area reachability
4ASBR SummaryABR; reachability to an ASBR
5ExternalASBR; external reachability
7NSSA ExternalASBR inside NSSA; external information with NSSA scope/translation behavior

LSA concepts · technical reference

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

ItemMeaning
IdentityType + Link State ID + Advertising Router
FreshnessSequence, age and checksum
ScopeLink/area/AS depending on LSA type
Route effectDerived later by SPF/route calculation

LSA concepts operational reference

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

BoundaryKnown-good for LSA conceptsSuspicious signatureNext proof
IntentMatches the typed, scoped and versioned Link-State Advertisements that carry topology and reachability facts into the OSPF LSDB designConfiguration differs from design/peerCompare effective configuration
Control-plane stateStable expected election/adjacency/LSA/role statethe expected LSA type absent, an LSA flooded in the wrong scope, stale or repeatedly changing sequence/age state, confusion between advertising-router and next-hop identity, or a present LSA being treated as proof that the destination must exist in the RIB/FIBInspect peer/database/election detail
ForwardingExpected RIB/FIB or virtual-gateway pathControl state exists but traffic path disagreesARP/MAC/RIB/FIB/CEF proof
ClosureOriginal test passes for explained reasonSymptom moved, was bypassed or role was forcedRegression test
Confirmation

Confirm action

Continue?