Professional Documents
Culture Documents
Routing Algorithm and its Properties Routing Algorithm and its Properties (Contd)
Properties required from a Routing protocol are Stability is an important goal, an algorithm must
o Correctness
come to conclusion quickly, so that routing
o Simplicity
o Robustness decisions are not held up for long
o Stability Fairness means all hosts’ traffic is treated equally
o Fairness
o Optimality Optimality means that the network resources are
Without correctness a routing protocol is useless utilized to their maximum efficiency
A simple protocol is an efficient one, that requires less Fairness and optimality are often contradicting
processing at the router
goals
Robustness: Once a network comes up, it may undergo
changes, failures etc. many times. The routing protocol
must be able to handle all sorts of changes, without
requiring all jobs to be aborted and system rebooting
1
Routing Algorithm and its Properties (Contd)
Conflict between fairness and optimality
What do we need to optimize???
A B One metric could be mean packet delay
Another one could be network throughput
But both of them are again conflicting goals
C C1 Increasing network throughput would mean having
more and more packets in the buffers of the
routers so that they do not sit idle
A1 B1 However this would increase mean packet delay
To reduce mean packet delay we should have a
smaller queue at the routers
Hence these two goals prove to be in contradiction
Faisal Amjad CPS 422 Faisal Amjad CPS 422
2
B (2,A) C ( ∞,-) B (2,A) C ( ∞,-)
7 7
2 3 2 3
2 E( ∞,-) 2 3 2 E( ∞,-) 2 3
A F( ∞,-) D ( ∞,-) A F( ∞,-) D ( ∞,-)
6 1 2 6 1 2
2 2
G (6,A) 4 G (6,A) 4
H ( ∞,-) H ( ∞,-)
We have labeled all the nodes of the graph Node with a Label having the shortest path will be made
Nodes adjacent to A are labeled with their distance from permanent, in this case B (indicated by a filled circle)
A, alongwith the node identity from which this probe was This node (B) now becomes the working node and
made subsequent probe will be made from it
Nodes not adjacent to A are labeled with infinity
All nodes adjacent to B are probed and labels now changed All nodes adjacent to E are probed and labels now changed
according to their distances according to their distances
Node with the label having shortest distance will be made Note that the label of G has to change since its distance is
permanent next lesser from E (5) rather than directly from A (6)
Which node (with a tentative label) has the shortest
distance label ??
Now all tentative nodes are scanned and the one with Now all neighbors of G are probed and labeled, in this case
shortest distance will be made permanent, and made the H
working node
3
B (2,A) C ( 9,B) B (2,A) C ( 9,B)
7 7
2 3 2 3
2 E( 4,B) 2 3 2 E( 4,B) 2 3
A F( 6,-E D ( ∞,-) A F( 6,E) D ( ∞,-)
6 1 2 6 1 2
2 2
G (5,E) 4 G (5,E) 4
H ( 9,G) H ( 8,F)
Since F has smallest distance, it is made permanent Since H has smallest distance, it is made permanent
B (2,A) C ( 9,B)
7
2 3
2 E( 4,B) 2 3
A F( 6,E) D ( 10,H)
6 1 2
2
G (5,E) 4
H ( 8,F)