Routing Algorithms
Routing Algorithms
Autonomous systems
E.g.
1. Delay occurred in the path
2. Reliability of the path
3. cost
Distance Vector Routing
if the path via the neighbor has a lower cost, the router
updates its local table to forward packets to the
neighbor.
Distance Vector Routing (Concept)
Distance Vector Routing (An Example)
26 41 18 37
Distance Vector Routing
(The Count to Infinity Problem)
At the first packet exchange, B does not hear anything from A. Fortunately,
C says: Do not worry; I have a path to A of length 2
Little does B know that C's path runs through B itself
B thinks it can reach A via C, with a path length of 3
D and E do not update their entries for A on the first exchange
Distance Vector Routing
(The Count to Infinity Problem)
1)P[empty] T[A(0)]
2)P[A(0)] T[B(5),C(2),D(3)]
3)P[A(0),C(2)] T[B(5),D(3),E(6)]
4)P[A(0),C(2),D(3)] T[B(5),E(6)]
5) P[A(0),C(2),D(3),B(5)] T[E(6)]
6) P[A(0),C(2),D(3),B(5),E(6)] T[empty]
Question
solution
P [empty] T[A(0)]
P[A(0)] T[B(2) G(6)]
P[A(0),B(2)] T[G(6),E(4),C(9)]
P[A(0),B(2),E(4)] T[G(5)*,C(9),F(6)]
P[A(0),B(2),E(4),G(5)] T[C(9),F(6),H(9)]
P[A(0),B(2),E(4),G(5),F(6)] T[C(9),H*(8)]
P[A(0),B(2),E(4),G(5),F(6),H(8)] T[C(9),D(10)]
P[A(0),B(2),E(4),G(5),F(6),H(8),C(9)] T[D(10)]
P[A(0),B(2),E(4),G(5),F(6),H(8),C(9),D(10)]
T[empty]
Path Vector Routing
Initial routing tables in path vector routing
Stabilized tables for four autonomous systems
Path Vector Routing
Initial routing tables in path vector routing