LearningAid

OSPF

The link-state interior routing protocol. Work through the three steps below: learn the cards, test yourself, then tick off what you can explain.

1. Learn

Three animated cards. Watch the bar move down each row, then read the notes.

Animated card of the seven OSPF neighbor states

Neighbor states

  • Down, Init, 2-Way, ExStart, Exchange, Loading, Full.
  • Init means a Hello was seen but your own router ID is not in it yet.
  • The DR/BDR election happens at 2-Way on broadcast networks.
  • Routers only go to Full with the DR and BDR. Two DROther routers stay in 2-Way, which is normal.

Stuck in ExStart or Exchange? Check for an MTU mismatch first.

Download PNG

Animated card of the five OSPF packet types

Packet types

  • Hello (type 1) finds neighbors and keeps them alive.
  • DBD (type 2) summarises the link-state database.
  • LSR (type 3) asks for specific LSAs.
  • LSU (type 4) carries the LSAs.
  • LSAck (type 5) acknowledges them.
  • OSPF runs directly over IP, protocol number 89, not TCP or UDP.

Hello and Dead timers must match to form a neighbor. Defaults are 10s and 40s on broadcast links.

Download PNG

Animated card of six OSPF LSA types

LSA types

  • Type 1 Router: each router lists its own links. Stays within the area.
  • Type 2 Network: made by the DR for a multi-access segment.
  • Type 3 Summary: made by the ABR, carries routes between areas.
  • Type 4 ASBR Summary: made by the ABR, tells how to reach the ASBR.
  • Type 5 External: made by the ASBR for redistributed routes.
  • Type 7 NSSA External: external routes inside an NSSA.

The ABR converts Type 7 into Type 5 at the NSSA edge. Stub areas block Type 5.

Download PNG

2. Practice

Nine quick questions. Pick an answer to see the result.

Score: 0 / 0

3. Master

Tick each item only when you can explain it out loud without looking.

0 of 0 done
OSPF mastered. Nice work.