Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

OSPF LSA Header Field Reference

Direct answer

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.

When to use this

Use it when reading OSPF database output or captures, or deciding which copy of an LSA is newer and why routers disagree.

First 30 seconds

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.

Operational verification

LSA originated with a sequence number → flooded to all FULL neighbours in the scope → each router keeps the newest copy (sequence, checksum, age) → identical LSDB in the area → 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
Key commandshow ip ospf database
Scope / prerequisiteUse it when reading OSPF database output or captures, or deciding which copy of an LSA is newer and why routers disagre…
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.

3 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 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 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

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.

Key checks
  • show ip ospf database — every LSA with link ID, advertising router, age, sequence and checksum.
  • show ip ospf database router <rid> (or network, 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.

FieldMeaning
LS ageSeconds since origination; increases by InfTransDelay at each hop and while stored; never above MaxAge
OptionsCapabilities (E, MC, N/P, EA, DC bits)
LS type1–5 in RFC 2328
Link State IDMeaning depends on the type
Advertising RouterRouter ID of the originator
LS sequence numberSigned 32-bit; larger is newer
LS checksumFletcher checksum over the LSA, excluding LS age
LengthHeader 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

StepRule
1Higher sequence number wins
2Same sequence: higher checksum wins
3Same checksum: an instance at MaxAge wins
4Otherwise, 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

ObservationMeaning
A router's sequence number rises every few secondsIt is re-originating constantly: a flapping link or a duplicate router ID
LSAs with age near 3600Being flushed; the originator withdrew them or has gone
Same LSA ID from two routers with different contentsDuplicate router ID

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.

Field structure, identity and state ownership

FieldSizeMeaning
LS Age2 bytesSeconds since the LSA was originated
Options1 byteCapability bits
LS Type1 byte1 Router, 2 Network, 3 Summary, 4 ASBR Summary, 5 External, 7 NSSA
Link State ID4 bytesWhat the LSA describes; the meaning depends on the type
Advertising Router4 bytesRouter ID of the originator
LS Sequence Number4 bytesVersion counter, starting at 0x80000001
LS Checksum2 bytesChecksum of the LSA, age excluded
Length2 bytesLength 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
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 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%
Technical changelog & impact

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.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

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.

Aliases that resolve here
lsa headerospf sequence numberls ageadvertising routerlink state id
Embedded reference data

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 boundaryKnown-good for OSPF LSA Header Field ReferenceSuspicious signatureNext proof
Identity/lengthExact object/peer and coherent structureWrong identity, type or boundaryRaw packet/LSDB object + peer state
Field semanticsLS 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 designsame 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 topologyCompare same object across both sides
State consequenceField predicts expected protocol/route transitionObject looks valid but local state disagreesLSDB/SPF or BGP policy → RIB/FIB
ClosureOriginal workload succeeds for the explained reasonProtocol state recovered only transientlyRepeat state/capture + regression test
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

Confirmation

Confirm action

Continue?