Use it when reading OSPF database output or captures, or deciding which copy of an LSA is newer and why routers disagree.
OSPF LSA Header Field Reference
The OSPFv2 LSA header is the common 20-byte header on every LSA: age, options, type, link-state ID, advertising router, sequence number, checksum and length. Type, link-state ID and advertising router identify the LSA; sequence number and age decide which copy is newer.
1. show ip ospf database router <rid> on two routers in the same area.
2. Same Link State ID, Advertising Router, sequence number and checksum on both?
3. Different → flooding problem (adjacency not FULL, MTU, ACL).
4. Sequence number rising fast → the originator keeps changing (flapping link).
5. Age at 3600 → the LSA is being flushed.
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 Field/LSDB/capture verification and known-good sequence Verify boundary
show ip ospf database
show ip ospf database router 10.0.0.1
show ip ospf database | include 10.0.0.1
The summary lists each LSA with Link ID, ADV Router, Age, Seq# and Checksum, grouped by type and area. The detailed form prints the full header and body of one LSA. Run the same command on two routers in the area and compare Seq# and Checksum for the LSA in question.
Known-good: the LSA is present on all routers of the area with identical sequence number and checksum, an age below about 1800, and a sequence number that rises slowly — once per half hour.
Step 2 Failure signatures and field-level troubleshooting Narrow the fault
- Sequence number or checksum differs between routers. One has an older copy; flooding between them is failing.
- The sequence number climbs fast. The originator keeps reissuing the LSA: a flapping interface or neighbour — or two routers with the same router ID overwriting each other.
- The age is near 3600. The originator has stopped refreshing; it is down or unreachable, and the LSA is about to expire.
- An LSA from a router that was removed is still present. It stays until it ages out, up to an hour.
- Two LSAs for the same network. Check the advertising router; they are separate LSAs from separate routers, which is usually correct.
Step 3 When the problem is really fixed Narrow the fault
- The LSA has the same sequence number and checksum on every router in the area.
- Its age resets about every 30 minutes and the sequence number rises by one each time.
- No sequence number is increasing rapidly.
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.
An LSA is identified by LS type + Link State ID + Advertising Router. Newer = higher sequence number, then checksum, then age rules. MaxAge (3600 s) flushes an LSA; LSAs are refreshed every 30 minutes, so age normally stays below 1800. Routers in the same area must show identical header values for the same LSA.
show ip ospf database— every LSA with link ID, advertising router, age, sequence and checksum.show ip ospf database router <rid>(ornetwork,summary,external) — one LSA with its header.show ip ospf database database-summary— LSA counts per type and area.- Wireshark filter
ospf.msg == 4(LS Update) — LSA headers in flooding.
ReferenceWhat it is1 section · depth on demand
Mechanics & mental model
Every OSPF LSA begins with the same 20-byte header. It says what kind of LSA it is, which router created it, and which version it is. Three of its fields together identify the LSA; three others decide which of two copies is the newer.
ReferenceWhy it matters1 section · depth on demand
Why it matters operationally
The columns of show ip ospf database — Link ID, ADV Router, Age, Seq#, Checksum — are these header fields. Reading them correctly answers the questions that matter when routes are wrong: who originated this, is it current, and do all routers hold the same copy.
ReferenceImportant terms & boundaries2 sections · depth on demand
In depth
The 20-byte LSA header decides identity, age and which copy is newer
RFC 2328 defines the LSA header fields: LS age, Options, LS type, Link State ID, Advertising Router, LS sequence number, LS checksum and length.
| Field | Meaning |
|---|---|
| LS age | Seconds since origination; increases by InfTransDelay at each hop and while stored; never above MaxAge |
| Options | Capabilities (E, MC, N/P, EA, DC bits) |
| LS type | 1–5 in RFC 2328 |
| Link State ID | Meaning depends on the type |
| Advertising Router | Router ID of the originator |
| LS sequence number | Signed 32-bit; larger is newer |
| LS checksum | Fletcher checksum over the LSA, excluding LS age |
| Length | Header plus body, in bytes |
Sequence numbers
The RFC reserves 0x80000000. A router starts with InitialSequenceNumber 0x80000001 and increments for every new instance. At MaxSequenceNumber 0x7fffffff, the old instance must be flushed (prematurely aged) before numbering restarts.
Which instance is newer
| Step | Rule |
|---|---|
| 1 | Higher sequence number wins |
| 2 | Same sequence: higher checksum wins |
| 3 | Same checksum: an instance at MaxAge wins |
| 4 | Otherwise, if the ages differ by more than MaxAgeDiff, the younger one wins |
Refresh and aging
Each originator refreshes its LSAs every LSRefreshTime (30 minutes), even without changes. LSAs that reach MaxAge (1 hour) are removed from routing calculations and flooded so all routers delete them.
C9300# show ip ospf database router self-originate | include Age|Seq|Checksum
LS age: 812
LS Seq Number: 80000214
Checksum: 0xA1C2
Symptoms
| Observation | Meaning |
|---|---|
| A router's sequence number rises every few seconds | It is re-originating constantly: a flapping link or a duplicate router ID |
| LSAs with age near 3600 | Being flushed; the originator withdrew them or has gone |
| Same LSA ID from two routers with different contents | Duplicate router ID |
Documented example, not captured output.
Field structure, identity and state ownership
| Field | Size | Meaning |
|---|---|---|
| LS Age | 2 bytes | Seconds since the LSA was originated |
| Options | 1 byte | Capability bits |
| LS Type | 1 byte | 1 Router, 2 Network, 3 Summary, 4 ASBR Summary, 5 External, 7 NSSA |
| Link State ID | 4 bytes | What the LSA describes; the meaning depends on the type |
| Advertising Router | 4 bytes | Router ID of the originator |
| LS Sequence Number | 4 bytes | Version counter, starting at 0x80000001 |
| LS Checksum | 2 bytes | Checksum of the LSA, age excluded |
| Length | 2 bytes | Length of the whole LSA including the header |
Identity. LS Type, Link State ID and Advertising Router together name an LSA. Two LSAs with the same Link State ID but different advertising routers are different LSAs — normal when two ABRs both advertise the same network.
Which copy is newer. A higher sequence number wins. The originator increases it by one each time it reissues the LSA.
Age. The originator refreshes each of its LSAs every 30 minutes with a new sequence number, so in a healthy network ages stay below about 1800. An LSA that reaches 3600 (MaxAge) is removed. To withdraw an LSA early, the originator floods it with the age set to 3600.
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 Network & Protocols → OSPF LSA Header Field Reference. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://www.rfc-editor.org/rfc/rfc2328.html · confidence 94%What changed and what may be affected
Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.
Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
OSPF LSA Header Field Reference field-level operational reference
Identity-first field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.
| Field boundary | Known-good for OSPF LSA Header Field Reference | Suspicious signature | Next proof |
|---|---|---|---|
| Identity/length | Exact object/peer and coherent structure | Wrong identity, type or boundary | Raw packet/LSDB object + peer state |
| Field semantics | LS Age, Options, LS Type, Link State ID, Advertising Router, LS Sequence Number, LS Checksum and Length, interpreted as identity → instance → lifetime/integrity rather than as independent labels match intended design | same LSA identity with divergent sequence or checksum, a stale instance persisting on one side, age racing toward flush unexpectedly, repeated re-origination, an Advertising Router that is unreachable or duplicated, impossible Length, or a header that is internally coherent while the type-specific body still describes the wrong topology | Compare same object across both sides |
| State consequence | Field predicts expected protocol/route transition | Object looks valid but local state disagrees | LSDB/SPF or BGP policy → RIB/FIB |
| Closure | Original workload succeeds for the explained reason | Protocol state recovered only transiently | Repeat state/capture + regression test |
Operational notes
Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.
OSPF LSA Header Fields
Common LSA identity/version fields.
Identity
Instance
Workflow
1. Identify type.
2. Compare LSID + Adv Router.
3. Compare sequence/checksum.
4. Check age.
5. Compare both LSDBs.