OSPF LSA Header Field Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=261
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>(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.
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 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 |
Read-only verification commands unless stated otherwise. Confirm syntax for your platform and release. Full reference: https://pcornel.dk/topic.php?topic=261