Professional Documents
Culture Documents
Routing Algorithm
Routing Algorithm
Routing Algorithm
Contents
Routing Protocol and Algorithm Classifications Link State Routing Algorithm Distance Vector Routing Algorithm LS Algorithm vs. DV Algorithm Hierarchical Routing
source host
2 B 2 1 1 3 D 5 1 2 F
A C
source router
least-cost path
Classifications
global(link state algorithm) : complete information about connectivity and link costs
Typical used
Each node broadcasts the identities and costs to its directly attached neighbors Dijkstras algorithm
Oscillation(page 307)
2+e 1 0 0 0 1 D 0 1+e 0 1 0 C e 1 0 0 e 1+e A 1+e 2+e 0 B 1 0
DX(Y,Z) : cost of the direct link from X to Z + Zs currently known minmum-cost path to Y DX(Y,Z)=c(X,Z)+minw{Dz(Y,w)}
Initialization:
X DX Y Z Y 2 Z 7
Z Dz X Y X 7 Y 1
X DX Y Z Y 2 3 Z 8 7
Z Dz X Y X 7 9 Y 3 1
X DX Y Z Y 2 3 Z 8 7
Z Dz X Y X 7 9 Y 3 1
Decrease
DY X
X 4
Z 6
Y 1 4 1
50
Z Dz X X 50 Y 5
Decrease
DY X
X 1
Z 6
Y 1 4 1
50
Z Dz X X 50 Y 5
Decrease
DY X
X 1
Z 6
Y 1 4 1
50
Z Dz X X 50 Y 2
Decrease
DY X
X 1
Z 6
Y 1 4 1
50
Z Dz X X 50 Y 2
Increase
DY X
X 4
Z 6
Y 60 4 1
50
Z Dz X X 50 Y 5
Increase
DY X
X 60
Z 6
Y 60 4 1 Routing loop
50
Z Dz X X 50 Y 5
Increase
DY X
X 60
Z 6
Y 60 4 1
50
Z Dz X X 50 Y 7
Increase
DY X
X 60
Z 8
Y 60 4 1
50
Z Dz X X 50 Y 7
Increase
DY X
X 60
Z 8
Poisoned reverse
60 4
DY X
X 4
Y 1
50
Z Dz X X 50 Y 5
Poisoned reverse
60 4
DY X
X 60
Y 1
50
Z Dz X X 50 Y 5
Poisoned reverse
60 4
DY X
X 60
Y 1
50
Z Dz X X 50 Y 61
Poisoned reverse
60 4
DY X
X 60
Z 51
Y 1
50
Z Dz X X 50 Y 61
Poisoned reverse
60 4
DY X
X 60
Z 51
Y 1
50
Z Dz X X 50 Y
DV
Maybe small Slow(count-toinfinity problem) Bad
Hierarchical Routing
Hierarchical Routing
C.c B.a B.a C.a C.b
A.b
Hierarchical Routing
B.a C.a
A.a
END