SHARE
SPREAD
HELP

The Tradition of Sharing

Help your friends and juniors by posting answers to the questions that you know. Also post questions that are not available.


To start with, Sr2Jr’s first step is to reduce the expenses related to education. To achieve this goal Sr2Jr organized the textbook’s question and answers. Sr2Jr is community based and need your support to fill the question and answers. The question and answers posted will be available free of cost to all.

 

#
Authors:
James F. Kurose, Keith W. Ross
Chapter:
The Network Layer
Exercise:
Problems
Question:28 | ISBN:9780132856201 | Edition: 6

Question

Consider the network shown below, and assume that each node initially knows the costs to each of its neighbors. Consider the distance-vector algorithm and show the distance table entries at node z.


TextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbookTextbook

Answer

Distance vector routing algorithm exchanges the information with the neighbors and works asynchronously.

 

According to the distance vector algorithm, any node m computes the distance vector using the following formulas:

 

 

Note: NA is used when there is no distance value.

 

Construct the distance vector table for node z from the network diagram:

Now update the table with costs of all the neighboring nodes.

Update the table with minimum costs using the distance vector routing algorithm:

 

Example: v to y, two paths are available. v-u-y and v-x-y with costs 3 and 6 respectively. So, v-u-y is the path with minimum cost. Hence update the table with this value.

 

Therefore, at node z, the above table will be computed by the distance vector routing algorithm.

 

1 0

Discussions

Post the discussion to improve the above solution.