Download computer network Chapter4 & 5 solution and more Exercises Computer Networks in PDF only on Docsity!
NET2201 COMPUTER NETWORKS
TUTORIAL QUESTIONS FOR CHAPTERS 4 AND 5 : NETWORK LAYER
Consider the following network. With the indicated link costs, use Dijkstra’s shortest- path algorithm to compute the shortest path from x to all network nodes. Show how the algorithm works in a table. ( 7 marks) Step N’ D ( t ), p ( t ) D ( u ), p ( u ) D ( v ), p ( v ) D ( w ), p ( w ) D ( y ), p ( y ) D ( z ), p ( z ) 0 x - - 3,x 6,x 6,x 8,x 1 xv 7,v 6,v - 6,x 6,x 8,x 2 xvu 7,v - - 6,x 6,x 8,x 3 xvuw 7,v - - - 6,x 8,x 4 xvuwy 7,v - - - - 8,x 5 xvuwyt - - - - - 8,x 6 xvuwytz - - - - - -
Consider the network shown below, and assume that each node initially knows the costs of each of its neighbors. Consider the distance-vector algorithm and show the distance table entries at node z. (8 marks) t = 0s Cost to From u v x y z v - - - - - x - - - - - z - 6 2 - 0 t = 1s Cost to From u v x y z v 1 0 3 - 6 x - 3 0 3 2 z 7 5 2 5 0 t = 2s Cost to From u v x y z v 1 0 3 3 5 x 4 3 0 3 2 z 6 5 2 5 0 t = 3s Cost to From u v x y z v 1 0 3 3 5 x 4 3 0 3 2 z 6 5 2 5 0