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.
LSA concepts
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.
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
show ip ospf databaseVerification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 E2route takes an odd path. Type 2 ignores the cost inside OSPF; use metric type 1 if the internal distance should count. - An
O IAroute is missing. The ABR does not create the type 3: anarea 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 · 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.
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.
show ip ospf database— LSA types presentshow ip ospf database summary— type 3show 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.
| Type | Name | Originated by | Flooded |
|---|---|---|---|
| 1 | Router LSA | Every router | Within its area |
| 2 | Network LSA | DR on a broadcast or NBMA segment | Within the area |
| 3 | Summary LSA (network) | ABR | Into an area, describing networks in other areas |
| 4 | Summary LSA (ASBR) | ABR | Into an area, describing how to reach an ASBR |
| 5 | AS-external LSA | ASBR | Throughout the AS, except stub areas |
| 7 | NSSA external LSA | ASBR inside an NSSA | Within 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
| Field | Role |
|---|---|
| LS age | Seconds since origination; refreshed before MaxAge (3600 s) |
| LS type, Link State ID, Advertising Router | Identify the LSA uniquely |
| Sequence number | Newer version wins |
| Checksum | Integrity |
Route codes and the LSAs behind them
Code in show ip route | Learned from |
|---|---|
| O | Types 1 and 2 (intra-area) |
| O IA | Type 3 |
| O E1 / O E2 | Type 5 (E2 keeps the external metric; E1 adds internal cost) |
| O N1 / O N2 | Type 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.
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 concept | Meaning |
|---|---|
| Flooding scope | Link, area or domain (AS) |
| Sequence number | Higher = newer |
| LS age | Increments; 3600 s = MaxAge (flushed) |
| Refresh | Originator re-floods every 30 minutes |
| Checksum | Detects 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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%Quick lookup tables
Common OSPFv2 LSA types
Fast lookup for common OSPFv2 LSA roles.
| Type | Common name | Typical origin / purpose |
|---|---|---|
| 1 | Router | Each router; describes links inside an area |
| 2 | Network | DR; describes a transit multiaccess network |
| 3 | Summary | ABR; inter-area reachability |
| 4 | ASBR Summary | ABR; reachability to an ASBR |
| 5 | External | ASBR; external reachability |
| 7 | NSSA External | ASBR inside NSSA; external information with NSSA scope/translation behavior |
LSA concepts · technical reference
Compact OSPF/FHRP mechanics, design and evidence boundaries for fast lookup.
| Item | Meaning |
|---|---|
| Identity | Type + Link State ID + Advertising Router |
| Freshness | Sequence, age and checksum |
| Scope | Link/area/AS depending on LSA type |
| Route effect | Derived later by SPF/route calculation |
LSA concepts operational reference
Topic-specific bounded interpretation: known-good state, suspicious signatures and the next technical proof boundary.
| Boundary | Known-good for LSA concepts | Suspicious signature | Next proof |
|---|---|---|---|
| Intent | Matches the typed, scoped and versioned Link-State Advertisements that carry topology and reachability facts into the OSPF LSDB design | Configuration differs from design/peer | Compare effective configuration |
| Control-plane state | Stable expected election/adjacency/LSA/role state | the 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/FIB | Inspect peer/database/election detail |
| Forwarding | Expected RIB/FIB or virtual-gateway path | Control state exists but traffic path disagrees | ARP/MAC/RIB/FIB/CEF proof |
| Closure | Original test passes for explained reason | Symptom moved, was bypassed or role was forced | Regression test |