Professional Documents
Culture Documents
Tutorial No. 5
Instructions:
Discuss ‘Review Questions’ and ‘End Problems’ from Chapter 4 from the book
“Computer Networking – A Top-Down Approach”, 5th Edition (International
Edition)
Only some of the following questions can be discussed during the tutorial
session. You are expected to solve the remaining questions as your homework
and discuss any related queries with the demonstrators or the instructor.
Please bring your textbooks in the tutorial sessions.
6. (P15) Consider the network setup in Figure 1. Suppose that the ISP instead assigns
the router the address 126.13.89.67 and that the network address of the home
network is 192.168/16.
a. Assign addresses to all interfaces in the home network.
b. Suppose each host has two ongoing TCP connections, all to port 80 at host
128.119.40.86.Provide the corresponding entries in the NAT translation table.
Figure 1: NAT network
7. (P16) Consider the topology shown in Figure 2. Denote the three subnets with hosts
(starting clockwise at 12:00) as Networks A, B, and C. Denote the subnets without
hosts as Networks D, E, and F.
a. Assign network addresses to each of these six subnets, with the following
constraints: All addresses must be allocated from 214.97.254/23; Subnet A
should have enough addresses to support 250 interfaces; Subnet B should
have enough addresses to support 120 interfaces; and Subnet C should have
enough addresses to support 120 interfaces. Of course, subnets D, E and F
should each be able to support two interfaces. For each subnet, the
assignment should take the form a.b.c.d/x or a.b.c.d/x – e.f.g.h/y.
b. Using your answer to part (a), provide the forwarding tables (using longest
prefix matching) for each of the three routers.
9. (P23) Consider the network shown in figure 4, 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.
10. (P24) Consider a general topology and a synchronous version of the distance-vector
algorithm. Suppose that at each iteration, a node exchanges its distance vectors with
its neighbors and receives their distance vectors. Assuming that the algorithm begins
with each node knowing only the costs to its immediate neighbors, what is the
maximum number of iterations required before the distributed algorithm
converges? Justify your answer.
11. (P27-modified) Consider the network shown in figure 5. Using Dijkstra’s algorithm,
and showing your work using a table (one that shows step by step evolution of link-
state algo for a given source and with a separate column for costs w.r.t each
possible destination), compute the shortest path from x to all network nodes.