OSPF Router & Network LSA Field Reference
Cheat sheet · https://pcornel.dk/topic.php?topic=263
Answer
The Router LSA (Type 1) lists each router's links and costs within an area, and the Network LSA (Type 2), sent by the DR, lists routers attached to a multiaccess segment. Together they form the intra-area topology that SPF calculates on.
Remember
Type 1: one per router per area; link types point-to-point, transit (to a DR's Type 2), stub (a prefix) and virtual link, each with a cost. Type 2: originated by the DR, lists every router attached to the segment. A link appears only when the adjacency is FULL; a two-way-only DROther does not list the other DROthers.
First checks
show ip ospf database router <rid>— the router's links, link types and metrics.show ip ospf database network <dr-ip>— attached routers on a multiaccess segment.show ip ospf neighbor— FULL adjacencies behind each link.show ip ospf interface <if>— network type, DR/BDR and cost.
Verify in this order
adjacency FULL → router lists the link with its cost in its Type 1 LSA → DR originates the Type 2 for the segment → both flooded in the area → SPF builds the intra-area topology
Where it usually breaks
underlay/interface reachability → protocol adjacency/session → received/originated state → policy → best path/RIB → FIB/adjacency → traffic path
OSPF Router & Network LSA Field Reference field-level operational reference
| Field boundary | Known-good for OSPF Router & Network LSA 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 | Type-1 router flags, link count, Link ID, Link Data, link type and metric; Type-2 network mask and attached Router-ID list, correlated with the LSA header identity and the DR that originated the pseudonode match intended design | missing or wrong Type-1 link, unexpected metric, wrong link-type interpretation, stale Type-2 after DR change, expected Router ID absent from attached-router list, Type-2 present where network-type assumptions differ, or complete-looking LSDB objects that nevertheless yield an unexpected SPF graph because one edge/pseudonode is wrong | 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=263