Chapter 2 - Routing Protocols (OSPF)
Chapter 2 - Routing Protocols (OSPF)
Interior Gateway Protocol (IGP): Open Shortest Path First Protocol (OSPF)
R2 Link States
Connected to 10.5.0.0/16; cost 2
Connected to R1 (10.2.0.0/16); cost 20
Connected to R5 (10.9.0.0/16); cost 10
R3 Link States
Connected to 10.6.0.0/16; cost 2
Connected to R1 (10.3.0.0/16); cost 5
Connected to R4 (10.7.0.0/16); cost 10
R4 Link States
Connected to 10.8.0.0/16; cost 2
Connected to R1 (10.4.0.0/16); cost 20
Connected to R3 (10.7.0.0/16); cost 10
Connected to R5 (10.10.0.0/16); cost 10
R5 Link States
Connected to 10.11.0.0/16; cost 2
Connected to R2 (10.9.0.0/16); cost 10
Connected to R3 (10.10.0.0/16); cost 10
Link State Database of R1
R1 Link States
Connected to 10.1.0.0/16; cost 2
Connected to R2 (10.2.0.0/16); cost 20
Connected to R3 (10.3.0.0/16); cost 5
Connected to R4 (10.4.0.0/16); cost 20
R2 Link States
Connected to 10.5.0.0/16; cost 2
Connected to R1 (10.2.0.0/16); cost 20
Connected to R5 (10.9.0.0/16); cost 10
R3 Link States
Connected to 10.6.0.0/16; cost 2
Connected to R1 (10.3.0.0/16); cost 5
Connected to R4 (10.7.0.0/16); cost 10
R4 Link States
Connected to 10.8.0.0/16; cost 2
Connected to R1 (10.4.0.0/16); cost 20
Connected to R3 (10.7.0.0/16); cost 10
5+10 Connected to R5 (10.10.0.0/16); cost 10
R5 Link States
20+10 Connected to 10.11.0.0/16; cost 2
Connected to R2 (10.9.0.0/16); cost 10
Connected to R3 (10.10.0.0/16); cost 10
Operation of OSPF
• Step 6
– When the databases are complete, each router uses the
SPF algorithm to calculate a loop-free shortest path to
every known destination, with itself as the root.
• Step 7
– Each router builds its router table based on SPF
computation.
• They see their own OSPF router-id in each other's Hello packet
• Two OSPF neighbors do not exchange any routing information - the
only packets they exchange is Hello packets. These Hello packets act
as keep alive between neighbors
DOWN
INIT
2-WAY
EXSTART
EXCHANGE
LOADING
FULL
DOWN
INIT
2-WAY
EXSTART
EXCHANGE
LOADING
FULL
DOWN
INIT
2-WAY
EXSTART
EXCHANGE
LOADING
FULL