Ospf
Ospf
Dynamic Routing
Protocols part2
+
CH2 Outline
RIP
OSPF
+
CH2 p3 Outline
The first step in the link-state routing process is that each router
learns about its own links, its own directly connected networks.
+
Say Hello
The third step in the link-state routing process is that each router
builds a link-state packet (LSP) containing the state of each
directly connected link.
+Flooding the LSP and
Building the Link-State Database
The final step in the link-state routing process is that each router
uses the database to construct a complete map of the topology
and computes the best path to each destination network.
+
Adding Routes to the Routing Table
• IS-IS
• was designed by ISO
• popular in provider networks
+
OSPF Routing Protocol
+
OSPF
● In link state routing, each router shares its knowledge about its
neighborhood with every router in the area.
•Area.
•OSPF Routers
Classifications.
•OSPF Packets
+
Link and Link State
I
Area
R Area
2 3
ABR/B
Area
R 0
ASBR
To another
AS
+
OSPF Routers Classifications
+
Types of OSPF Packets
Exchanging Hello packets Exchanging LSAs Creating SPF Tree Updating routing table
1 2 3 and 5
4
+
1. Establish Neighbor Adjacencies
● An OSPF-enabled router
sends Hello packets out all
OSPF-enabled interfaces to
determine if neighbors are
present on those links.
● If a neighbor is present, the
OSPF-enabled router
attempts to establish a
neighbor adjacency with that
neighbor.
+
Establish Neighbor Adjacencies
● Routers then execute the SPF algorithm that creates the SPF tree.
+
5- Updating routing table
● From the SPF tree, the best paths are inserted into the routing
table.
+
OSPF Routing Protocol
+
OSPF Operational States
* A Cisco router includes the Router IDs of all neighbors in the init (or higher) state in its Hello
packets.
+
Init State
It is in Down state and it starts sending Hello packet It receives a Hello packet with a router ID that is not within its neighbor list
+
Init State
Init state specifies that the router has received a Hello packet
from its neighbor, but the receiving router's ID was not included
in the hello packet.
+
2-Way State
● When the router sees its own router ID in the Hello packet
received from the neighbor, it will transit to the 2-Way state.
its Router ID listed in the list of neighbors, it will transit from the Init state to the Two-Way state its Router ID not listed in the list of neighbors, it will transit to the Init state
*The transtion to 2-Way state happens if the router is in the Init state
+
2-Way State
● The router with the higher router ID acts as the master for the
Exchange state.
+
Exchange state
● If the DBD packet has a more current LSA or has an LSA that
is not in its LSDB, the router transitions to the Loading state.
+
Loading State
● After all LSRs have been satisfied for a given router, the
adjacent routers are considered synchronized (have identical
LSDBs ) and in a full state.
Establishing Bidirectional Communication
172.16.5.1/24 Port2
A B
Port1 172.16.5.2/24
Down state
hello
I am router id 172.16.5.1, and I see no one To 224.0.0.5
Initial State
Router B neighbor List
172.16.5.1/24,in Port2
Unicast to A
hello
I am router id 172.16.5.2, and I see 172.16.5.1
Two-way State
Discovering the Network Routes
172.16.5.1/24 Port2
A B
Port1 172.16.5.2/24
Exstart state
DBD
I will start exchange because I have router id 172.16.5.1
DBD
No, I’ll start exchange because I have a higher RID
exchange State
DBD
Here is a summary of my LSDB
DBD
Here is a summary of my LSDB
Adding the Link-State Entries
172.16.5.1/24 Port2
A B
Port1 172.16.5.2/24
LSAck LSAck
Thanks for the information!
Loading state
LSR
I need complete entry for network 172.16.6.0/24
LSU
Here is the entry for network 172.16.6.0/24
LSAck
Thanks for the information!
Full State
+
OSPF Routing Protocol
+
From CH2 p3 A Slides
Previous slides
Next slides
Dijkstra Animated Example
+
Dijkstra Animated Example
+
Dijkstra Animated Example
+
Dijkstra Animated Example
+
C C C
Dijkstra Animated Example
+
C C C
Dijkstra Animated Example
+
C C C
C
C
Dijkstra Animated Example
+
C C C
C C
Dijkstra Animated Example
+
C C C
C C
B
Dijkstra Animated Example
+
C C C
C C
B
+