Routing Algorithms
Routing Algorithms
Routing Algorithms
Adaptive algorithm:
Reflect change in topology Get information locally from adjacent routers
Computer Networks
Routing Algorithms(Static)
Set of all optimal routes from: Source to a given destination
A sink tree!
Goal of routing algorithm find sink trees that are there! Shortest Path Routing:
Dijkstra Uses topology Greedy approach Possible shorter path of equal length need not be unique
Computer Networks
Multipath Routing
Multiple paths from Node a to node b. Randomly choose one of the paths
Computer Networks
Dijkstra (example)
f 10 5 a 4 b 3 c d 5 1 6 e 4 Shortest path from AD is via b and c
Computer Networks
Multipath Routing
Forward traffic based on a random number Example:Path from a to d
via b: 0.0 - 0.65 via f: 0.65 -1.0
Computer Networks
Multipath Routing
Advantages:
Reliability disjoint entries multiple routes possible
Computer Networks
Static Routing
Disadvantages:
SSSP and Multipath:
Require complete knowledge of Network topology to make a good decision.
Computer Networks
Computer Networks
Dynamic Routing
Distributed Routing:
Dynamic routing Changing topology of the network Need to recompute route continuously
Computer Networks
Router a
Router i Via i a b c d e f g h i j k l
Router b Via j a b c d e f g h i j k l
Via a a b c d e f g h i j k l
0 12 25 40 14 23 18 . . . . .
24 36 18 27 7 20 31 . . . . .
? 12 10 13
Computer Networks
Computer Networks
. . .
e i
. . .
f j
. . .
g k
. . .
h l
Computer Networks
. . . . .
x b
1
d
3 3
2 2 1 4 6 6 8
4 4 4 4 6 6 8
1 exchange 2 exchange
3 3 5 5 7 7
3 5 5 7 7