Pcornel
Networking · Network & Protocols › OSPF Protocol Reference

OSPF Router & Network LSA Field Reference

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

Back to the Topic

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 boundaryKnown-good for OSPF Router & Network LSA Field ReferenceSuspicious signatureNext proof
Identity/lengthExact object/peer and coherent structureWrong identity, type or boundaryRaw packet/LSDB object + peer state
Field semanticsType-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 designmissing 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 wrongCompare 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=263

Confirmation

Confirm action

Continue?