Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Chapter 5

6. Consider the topology network of Fig. 5-12(a) (ignore the link weight). Distance vector
routing is used, and the following vectors have just come in to router C: from B: (5,0,8,12,6,2);
from D: (16,12,6,0,9,10); from E: (7,6,3,9,0,4). The cost of the links from C to B, D and E are 6, 3
and 5, respectively. What is C’s new routing table? ( Give both the outgoing line to use and the
cost.)

Answer:

C’s routing table construction process

C via B C via D C via E Minimum cost Outgoing line

7+5=1
To A 5+6=11 16+3=19 11 B
2

6+5=1
To B 0+6=6 12+3=15 6 B
1

To C 8+6=14 6+3=9 3+5=8 0 /

To 9+5=1
12+6=18 0+3=3 3 D
D 4

To E 6+6=12 9+3=12 0+5=5 5 E

To F 2+6=8 10+3=13 4+5=9 8 B

8. In fig.5-13 the boolean OR of the two sets of ACF bits are 111 in every row. Is this just an
accident here , or does it hold for all networks under all circumstances?
Answer:

It always holds. If a packet has arrived on a line, it must be acknowledged. If no packet has
arrived on a line, it must be sent there. The cases 00 (has not arrived and will not be sent) and
11 (has arrived and will be sent back) are logically incorrect and thus do not exist.

30. Assume there are large number of consecutive IP Addresses available starting from
198.16.0.0. Suppose four organizations A,B,C and D apply for 4000, 2000, 4000, and 8000 IP
addresses, respectively. Please assign IP addresses for them. Show the scheme in the w.x.y.z/s
notation and give the first and last IP address assigned.

Answer:

A: 198.16.0.0/20 198.16.0000xxxx.X Host number=212>4000

B: 198.16.16.0/21 198.16.00010xxx.X Host number=211>2000

C: 198.16.32.0/20 198.16.0010xxxx.X Host number=212>4000

D: 198.16.64.0/19 198.16.010xxxxx.X Host number=213>8000

30. To start with, all the requests are rounded up to a power of two. The starting

address, ending address, and mask are as follows:

A: 198.16.0.0 – 198.16.15.255 written as 198.16.0.0/20

B: 198.16.16.0 – 198.16.23.255 written as 198.16.16.0/21

C: 198.16.32.0 – 198.16.47.255 written as 198.16.32.0/20

D: 198.16.64.0 – 198.16.95.255 written as 198.16.64.0/19

31. The router has been allocated four new IP Address blocks: 57.6.96.0/21; 57.6.104.0/21;
57.6.112.0/21; 57.6.120.0/21. If all of them go through the same outgoing line, can they be
aggregated? And how to do?

Answer:

31.
128 64 32 16 8 4 2 1

57.6.96.0/21 0 1 1 0 0 x x x

57.6.104.0/2 0 1 1 0 1 x x x
1

57.6.112.0/2 0 1 1 1 0 x x x
1

57.6.120.0/2 0 1 1 1 1 x x x
1

31. They can be aggregated to 57.6.96.0/19.

33. A router has the following routing table.

Address/Mask Next hop

135.46.56.0/22 (135.46.001110xx.X) Interface 0

135.46.60.0/22 (135.46.001111xx.X) Interface 1

192.53.40.0/23 (192.53.0010100x.X) Router 1

default Router 2

How will the router deal with the packet with the following IP destination Address?

(1) 135.46.63.10 =135.46.00111111.10

(2) 135.46.57.14 = 135.46.00111001.14

(3) 135.46.52.2 = 135.46.00110100.2

(4) 192.53.40.7

(5) 192.53.56.7 = 192.53.00111000.7

Answer:

33. The packets are routed as follows:

(a) Interface 1

(b) Interface 0
(c) Router 2

(d) Router 1

(e) Router 2

Supplement:

1. List the difference between DV routing and LS routing.

Answer:

DV ROUTING (RIP) LS ROUTING (OSPF)

Who (receiptor) Sending to neighbor router Flooding to all router

What (information) Routing table (all network and Link state (LSP, only neighbor
cost and next hop) list and cost)

When (time) Only when changes happen Periodically exchange routing


exchange routing message message

2. IP packet’s total length is 3820 bytes, its data part is 3800bytes (fixed header=20bytes).
Assume next link only support 1420 bytes of data. Ask how to frament IP packet? Show the
fields of IHL, ID, DF, MF, OFFSET in the IP header.

Answer:
IHL ID MF DF OFFSET
Orignal IP packet 3820 12345 0 0 0
IP fragment 1 1420 12345 1 0 0
IP fragment 2 1420 12345 1 0 175
IP fragment 3 1020 12345 0 0 350

You might also like