Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF LSA Header Field Reference

Cheat sheet · https://pcornel.dk/topic.php?topic=261

Back to the Topic

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.

Remember

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.

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

Commands

show ip ospf database

Verify in this order

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

Where it usually breaks

underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path

OSPF LSA Header Field Reference field-level operational reference

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

Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=261

Confirmation

Confirm action

Continue?