Docsity

Computer Networks Homework: University of California, Davis, EEC 189Q, Fall 2004, Assignments of Computer Systems Networking and Telecommunications

Toggle sidebar
bg1
UNIVERSITY OF CALIFORNIA, DAVIS
__________________________________________________________________________________
BERKELEY • DAVIS • IRVINE • LOS ANGELES • RIVERSIDE • SAN DIEGO • SAN FRANCISCO
__________________________________________________________________________________
________________________________
SANTA BARBARA • SANTA CRUZ
________________________________
EEC 189Q-Computer Networks Fall 2004
HW 5
1. (12%) Bridging and spanning tree algorithm: Consider the extended LAN shown in the figure below.
a) (4%) Mark the ports (edges from bridges to LANs) that are not selected by the spanning tree
algorithm.
b) (4%) Suppose the rule for selecting the root and breaking the ties among the bridges with the
same distance to root is changed from lowest-id-wins to highest-id-wins. What will be the
effect?
c) (4%) Suppose a router has built up the routing table shown below.
Network Number Network Mask Next Hop
132.17.128.0
132.17.128.0
196.6.80.0
196.6.0.0
0.0.0.0
255.255.128.0
255.255.192.0
255.255.255.192
255.255.0.0
0.0.0.0
R1
R2
R3
R4
R5
B3
B2
B5
B1
L1
L3
L5
L7
B6 B4
L9
L8
L10
L4
B7
L6
L2
L11
pf2

Partial preview of the text

Download Computer Networks Homework: University of California, Davis, EEC 189Q, Fall 2004 and more Assignments Computer Systems Networking and Telecommunications in PDF only on Docsity!

UNIVERSITY OF CALIFORNIA, DAVIS


BERKELEY__________________________________________________________________________________ • DAVIS • IRVINE • LOS ANGELES • RIVERSIDE • SAN DIEGO • SAN FRANCISCO


SANTA BARBARA________________________________ • SANTA CRUZ

EEC 189Q-Computer Networks Fall 2004

HW 5

  1. (12%) Bridging and spanning tree algorithm: Consider the extended LAN shown in the figure below.

a) (4%) Mark the ports (edges from bridges to LANs) that are not selected by the spanning tree algorithm.

b) (4%) Suppose the rule for selecting the root and breaking the ties among the bridges with the same distance to root is changed from lowest-id-wins to highest-id-wins. What will be the effect?

c) (4%) Suppose a router has built up the routing table shown below.

Network Number Network Mask Next Hop 132.17.128. 132.17.128. 196.6.80. 196.6.0. 0.0.0.

255.255.128. 255.255.192. 255.255.255. 255.255.0. 0.0.0.

R R R R R

B

B

B

B

L

L

L

L

B6 B

L

L

L

L

B

L

L

L

Chuah Fall 2003

Where will the router send packets addressed to each of the following destinations? i. 132.17.97. ii. 132.17.231. iii. 196.6.80. iv. 196.6.80.

  1. (10%) In TCP, each SYN and FIN segment takes up one unit in sequence number space. Is this

necessary? If so, give an example of an ambiguity that would arise otherwise; if not, explain why.

  1. (10%) Suppose that you are using TCP implementation over a 1 Gbps link with a round trip delay of

100 ms to transfer 10 MB file, and the TCP receive window is 1MB. If TCP sends 1 KB packets (assuming no congestion and no lost packets), how many RTTs does it take to send the file starting with congestion window of 1KB? Assume that the congestion threshold is 2 MB.

  1. (18%) TCP Congestion Control. Consider the following plot of TCP window size as a function of time. Assuming TCP Reno is the protocol experiencing the behavior shown above, answer the following questions. In all cases, you should provide a short discussion justifying your answer.

(a) Identify the intervals of time when TCP slow start is operating. (b) Identify the intervals of time when TCP congestion avoidance is operating. (c) After the 16th^ transmission round, is segment loss detected by a triple duplicate ACK or by a timeout? (d) After the 22nd^ transmission round, is segment loss detected by a triple duplicate ACK or by a timeout? (e) What is the initial value of Threshold at the first transmission round? (f) What is the value of Threshold at the 18th^ transmission round? (g) What is the value of Threshold at the 24th^ transmission round? (h) During what transmission round is the 70th^ segment sent? (i) Assuming a packet loss is detected after 26th^ round by the receipt of a triple duplicate ACK, what will be the values of the congestion-window size and of Threshold?