computer network Chapter4 & 5 solution, Exercises of Computer Networks

solution computer network Chapter4 & 5 solution computer network Chapter4 & 5 solution

Typology: Exercises

2017/2018

Uploaded on 11/30/2018

shahtab
shahtab 🇲🇾

4

(1)

2 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
NET2201 COMPUTER NETWORKS
TUTORIAL QUESTIONS FOR CHAPTERS 4 AND 5: NETWORK LAYER
1. 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)
0
x
-
-
3,x
6,x
6,x
1
xv
7,v
6,v
-
6,x
6,x
2
xvu
7,v
-
-
6,x
6,x
3
xvuw
7,v
-
-
-
6,x
4
xvuwy
7,v
-
-
-
-
5
xvuwyt
-
-
-
-
-
6
xvuwytz
-
-
-
-
-
pf3

Partial preview of the text

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

  1. 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 - - - - - -
  1. 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