Week 14 Routing Concepts Static and Dynamic Routing
Week 14 Routing Concepts Static and Dynamic Routing
Network A Network B
2
22.3
22.4
IP performs:
search for a matching host address
search for a matching network address
incoming
which interface ?
5
10
2 hops
1 hop 1 hop
R1 R2
1 hop 1 hop
R3
11
point to point
connection
route to this
way only, no need
for update
12
13
22.14
Routing Theory and
Convergence!
All of the routers now have a consistent and accurate view of the
network.
Later, we will see how RIP handles this operation.
Link-State Theory
The network is viewed as a graph, showing the complete topology of the
network.
How do routers build this topology?
1 – Flooding of link-state information
The first thing that happens is that each node, router, on the network
announces its own piece of link-state information to other all other
routers on the network: who their neighboring routers are and the cost
of the link between them.
Example: “Hi, I’m RouterA, and I can reach RouterB via a T1 link and I
can reach RouterC via an Ethernet link.”
Each router sends these announcements to all of the routers in the
network.
Data Comm & Networking
1 – Flooding of link-state
information
3 – SPF Algorithm
2 – Building a
Topological
Database
5 – Routing Table
3 – SPF Algorithm
2 – Building a
Topological 4 – SPF Tree
Database
bananas
B
2
15
A E
B B
B
2
15 15 2
15
A
2
C
+ E
= 2
A E
A C
5
5
D
D
2
A C
2 cherries
D
B B
2 2
15 15
+ =
2 2 2
A C E A C A C E
5 2 5 2
D D D
A C E
5 2 10
donuts
B B
2
15 E 15
2
A C
2 5 2 10
A C E 2 E
A C
5 2
+
D
= 5 2 10
D
D
2 10
Now lets attach the two graphs and we have all the nodes, their links
between them and their and leafs!
B B
B
15
2 + 2
= 15
2
2 E
E A C
2 E
A C
5 2 10
5 2 10
2 10
D D
D
bananas
B
2
15
apples 2 cherries
E eggs
A C
5 2 10
donuts
bananas
B
2
15
apples 2 cherries
E eggs
A C
5 2 10
donuts
bananas
B
2
15
apples 2 cherries
E
eggs
A C
5 2 10
D
donuts
D
donuts
5 – Routing Table
3 – SPF Algorithm
2 – Building a
Topological 4 – SPF Tree
Database
**