Title: Routing Algorithm
1Routing Algorithm
2Contents
- Routing Protocol and Algorithm
- Classifications
- Link State Routing Algorithm
- Distance Vector Routing Algorithm
- LS Algorithm vs. DV Algorithm
- Hierarchical Routing
3Routing Protocol and Algorithm
- Determining the path(route)
destination host
source host
4Classifications
- Global vs. decentralized
- global(link state algorithm) complete
information about connectivity and link costs - Static vs. dynamic
- static routes change very slowly
- Load-sensitive vs. load-insensitive
- load-sensitive link costs reflect congestion
- Typical used
- Dynamic link state routing algorithm
- Dynamic distance vector routing algorithm
5Link State Routing Algorithm
- Each node broadcasts the identities and costs to
its directly attached neighbors - Dijkstras algorithm
6Link State Routing Algorithm
7Distance Vector Routing Algorithm
- Iterative, asynchronous, distributed
- Distance table
- 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)minwDz(Y,w)
8Distance Vector Routing Algorithm
- Initialization
- DX(,v) inifinite, DX(v,v)c(x,v)
- Send minwDX(y,w) to each neighbor when they
changes - C(X,V) changes
- Neighbor node send its update
9Distance Vector Routing Algorithm
2
1
7
10Distance Vector Routing Algorithm
2
1
7
11Distance Vector Routing Algorithm
2
1
7
12Distance Vector Routing Algorithm
4
1
1
50
13Distance Vector Routing Algorithm
4
1
1
50
14Distance Vector Routing Algorithm
4
1
1
50
15Distance Vector Routing Algorithm
4
1
1
50
16Distance Vector Routing Algorithm
4
1
60
50
17Distance Vector Routing Algorithm
4
1
60
Routing loop
50
18Distance Vector Routing Algorithm
4
1
60
50
19Distance Vector Routing Algorithm
4
1
60
50
20Distance Vector Routing Algorithm
4
1
60
Too many iterations! (count-to-infinity problem)
50
21Distance Vector Routing Algorithm
4
1
60
50
22Distance Vector Routing Algorithm
4
1
60
50
23Distance Vector Routing Algorithm
4
1
60
50
24Distance Vector Routing Algorithm
4
1
60
50
25Distance Vector Routing Algorithm
- Poisoned reverse
- Cannot solve general count-to-infinity problem
4
1
60
50
26LS Algorithm vs. DV Algorithm
27Hierarchical Routing
- View network as interconnected routers
- Scale
- Administrative autonomy
- Organize routers into autonomy systems(AS)
28Hierarchical Routing
Autonomy system(AS)Gateway routerIntra-ASInter-
AS
29Hierarchical Routing
Topological view for inter-AS routing protocol
30END