

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Material Type: Assignment; Class: Communication Networks; Subject: Electrical and Computer Engr; University: University of Illinois - Urbana-Champaign; Term: Fall 2006;
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


NOTE: This assignment is due on a Friday, so you may ask for help on it after Wednesday’s class, unlike previous assignments. However, there is no automatic extension on this assignment, so any assignments not handed in by the start of class on November 17th will receive no credit.
(a) Show how rdt3.0 can become unreliable if the network reorders packets. In particular, show a sequence of messages, states, and network loss / delay events in a diagram similar to Figure 3. (p213) of the textbook. (b) Notice that when the sender of rdt3.0 receives a “duplicate ACK” for the last packet, this ACK is ignored. Suppose that instead, rdt3.0 implemented a version of Fast Retransmit and resent the packet whenever it received such an ACK. I.e. it would include the following transition rule in state ”Wait for ACK0”:
rdtrcv(rcvpkt) && notcorrupt(rcvpkt) && isACK(rcvpkt,1) udtsend(sendpkt), start timer
Show how with this modification, a single delayed ACK from the receiver can result in unnecessary retransmissions of subsequent packets.
(a) Calculate the transfer time for TCP using slow start (b) Calculate the transfer time supposing TCP used additive increase, starting with a window size of 1 MSS and increasing it by 1 MSS every RTT.
Suppose there are two connections, A and B, sharing a 10 Kbit link. Let us simplify the TCP congestion control protocol to include the following assumptions:
(a) Suppose A’s window is currently 9000 bits and B’s window is 1000 bits, and both their RTTs are 1s. Show how the window sizes change after 20s (b) Suppose A and B both have a window of 1000 bits, A has RTT of 1s and B has RTT of 2s. Show how the window sizes change after 20s. (Assume that whenever the aggregate bandwidth exceeds 10 Kbit, the next window of each of the connection will be cut in half.)
You may want to use a spreadsheet or a computer program to calculate the answers to this question. Recall that the RTT estimation algorithm is:
RTTEstimate = RTTEstimate · (1 − α) + RTTSample · α
Suppose that a TCP connection has experienced a constant RTT of 500ms, so that RTTEstimate is now 500ms. Now suppose the RTT drops to 200ms for the next N measurements, and then returns to 500ms.
(a) Consider the following strategy for setting the timeout:
Timeout = 2 · RT T Estimate
What is the smallest value of N so that a premature timeout will occur when the RTT returns to 500ms? Let α = 0.1 in this case. (b) Now suppose the timeout is set using a deviation estimate:
DeviationEstimate = DeviationEstimate · (1 − β) + |RTTSample − RTTEstimate| · β
Timeout = RT T Estimate + 4 · DeviationEstimate with β = 0.25. What will the timeout value be after N measurements of 200ms, using the value of N from the previous question? (Assume that DeviationEstimate is 0 before the RTT drops to 200ms.)