PacketLab
OSPF · Database and path selection

LSAs and flooding

Separate packet delivery, LSA identity and route installation.

Understand

An LSA is a database record; an LSU is a packet carrying one or more records. Database-description packets summarize records, requests identify missing records and acknowledgments support reliable flooding. Retransmission lists track outstanding delivery to adjacent neighbors.

OSPFv2 typeOrigin and scope
1 · RouterEach router, per area; describes its links.
2 · NetworkDR for a transit multi-access network; area scope. None on our point-to-point links.
3 · Summary networkABR; advertises reachability between areas. It is not necessarily an aggregated prefix.
4 · ASBR summaryABR; describes reachability to an ASBR in another area.
5 · ExternalASBR, or NSSA translator; domain scope excluding stub/NSSA areas.
7 · NSSA externalNSSA ASBR; stays in that NSSA, eligible records may be translated into Type 5.

OSPFv2 LSA identity combines type, link-state ID and advertising router. Sequence number, checksum and age select the newer instance. Ordinary self-originated records refresh around 1800 seconds; MaxAge is 3600 seconds and is used for flushing. Refresh is not the same as expiration. Exact acknowledgment and duplicate handling depend on flooding context; a duplicate does not automatically require SPF.

Lab setup

Use a fresh lab for this lesson; changes from other lessons are not cumulative. All outputs are illustrative excerpts, not recorded router tests. Transit cost is explicitly 10 and Loopback0 cost is 1. Interface names may vary by image.

Lab topologyIllustrative topology
192.0.2.0/30area 0192.0.2.4/30area 1R1Lo0 · 10.255.0.1/32R2Lo0 · 10.255.0.2/32R3Lo0 · 10.255.0.3/32
Solid lines are physical links, configured as point-to-point. Interfaces and areas are listed below. Router symbol: GNS3, GPL-2.0. Original layout.
RouterInterfaceIPv4 addressArea
R1Gi1192.0.2.1/300
R2Gi1192.0.2.2/300
R2Gi2192.0.2.5/301
R3Gi1192.0.2.6/301

Loopback0 is 10.255.0.<router number>/32; area assignments: R1: area 0, R2: area 0, R3: area 1.

Complete baseline configurations

R1

Configuration
configure terminal
hostname R1
router ospf 1
 router-id 10.255.0.1
 passive-interface Loopback0
 exit
interface Loopback0
 ip address 10.255.0.1 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
 exit
interface GigabitEthernet1
 ip address 192.0.2.1 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 0
 no shutdown
 exit
end

R2

Configuration
configure terminal
hostname R2
router ospf 1
 router-id 10.255.0.2
 passive-interface Loopback0
 exit
interface Loopback0
 ip address 10.255.0.2 255.255.255.255
 ip ospf 1 area 0
 ip ospf cost 1
 exit
interface GigabitEthernet1
 ip address 192.0.2.2 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 0
 no shutdown
 exit
interface GigabitEthernet2
 ip address 192.0.2.5 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 1
 no shutdown
 exit
end

R3

Configuration
configure terminal
hostname R3
router ospf 1
 router-id 10.255.0.3
 passive-interface Loopback0
 exit
interface Loopback0
 ip address 10.255.0.3 255.255.255.255
 ip ospf 1 area 1
 ip ospf cost 1
 exit
interface GigabitEthernet1
 ip address 192.0.2.6 255.255.255.252
 ip ospf network point-to-point
 ip ospf cost 10
 ip ospf 1 area 1
 no shutdown
 exit
end

Apply

The border baseline has R1–R2 in area 0 and R2–R3 in area 1. Add a passive /24 on R1, then trace its area-0 router-LSA and R2’s Type 3 into area 1.

R1

Configuration
configure terminal
interface Loopback10
 ip address 10.10.10.1 255.255.255.0
 ip ospf network point-to-point
 ip ospf cost 1
 ip ospf 1 area 0
 exit
router ospf 1
 passive-interface Loopback10
end

Verify and interpret

Illustrative output · excerpt
R1# show ip ospf database router 10.255.0.1
  LS Type: Router Links
  Link State ID: 10.255.0.1
  Advertising Router: 10.255.0.1
  Link connected to: a Stub Network
   Network/subnet number: 10.10.10.0
   Network Mask: 255.255.255.0
   Metric: 1

R3# show ip ospf database summary 10.10.10.0
  LS Type: Summary Links(Network)
  Link State ID: 10.10.10.0
  Advertising Router: 10.255.0.2
  Network Mask: /24
  Metric: 11

R2 originates its own summary LSA; it does not flood R1’s area-0 router-LSA unchanged into area 1.

Illustrative output · excerpt
R3# show ip route ospf | include 10.10.10
O IA 10.10.10.0/24 [110/21] via 192.0.2.5, GigabitEthernet1

R3 adds its cost 10 to the ABR’s advertised 11. Compare LSDB and routing entries rather than treating them as interchangeable.

Shut R1 Loopback10, compare the changed router-LSA and disappearing Type 3, then restore it. A change inside one area can alter inter-area reachability, even though the detailed Type 1 topology remains area-local.

Technical references

OSPFv2 standard · Router configuration guide

Key Takeaways

  • LSAs are records; LSUs are packets.
  • Type 1 and 2 describe area topology.
  • ABRs originate Type 3 records for other areas.
  • Refresh at 1800 seconds differs from MaxAge at 3600.
  • An LSDB record must still pass route calculation and installation.

LSAs and flooding Quiz

Six questions · four options each · select one answer per question. Submit all answers to see your score and explanations.

1. Which carries multiple LSAs?
2. Which originates a Type 2?
3. Does R3 receive R1’s Type 1 unchanged across R2?
4. What identifies a v2 LSA?
5. What is ordinary MaxAge?
6. Why does R3’s route cost equal 21?