

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
Problem set 7 for the cs/ece 438: communication networks for computers course, focusing on congestion control and performance analysis. The problems cover topics such as random early detection, tcp and network delay, token bucket, and tcp congestion performance. Students are required to find drop probabilities, distinguish between network delays, derive formulas, and plot congestion window and slow start threshold versus time.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


th
Congestion Control and Performance Analysis
Assigned reading: Peterson and Davie: Chapter 6. All problems carry equal weight. For full credit, show all work.
1. Random Early Detection Consider a RED gateway with MaxP = 0.015, and with an average queue length halfway between the two thresholds MinP and MaxP.
a. Find the drop probability P (^) count , for count = 1 and count = 50 b. Calculate the probability that none of the 50 packets are dropped. c. Repeat parts a. with MaxP = 0. d. Repeat parts b. with MaxP = 0. e. What is the impact of the larger value of MaxP? How will this affect the operation of RED?
2. TCP and Network Delay Consider the following two causes of a 1-second network delay (assume ACKs return instantaneously). - One intermediate router with a 1-second outbound per-packet bandwidth delay and no competing traffic. - One intermediate router with a 100-ms outbound per-packet bandwidth delay and with a steadily replenished (from another source) 10 packets in the queue.
a. How might a transport protocol in general distinguish between these two cases? b. Suppose TCP Vegas sends over the above connections, with an initial CongestionWindow of 3 packets. What will happen to CongestionWindow in each case? Assume BaseRTT = 1 second and β is one packet per second.
3. Token Bucket The token bucket scheme places a limit on the length of time at which traffic can depart at the maximum rate. Let the token bucket be defined by a buck size B octets and a token arrival rate of R octets/sec, and let the maximum output data rate be M octets/sec. a. Derive a formula for S , which is the length of the maximum-rate burst. That is, for how long can a flow transmit at the maximum output rate when governed by a token bucket? b. What is the value of S for B = 250 KB, R = 2 MBps and M = 25 MBps? (Hint: the formula for S is not as simple as it might appear, because more tokens arrive while the burst is being output.) 4. TCP Congestion Performance Consider a TCP system implementing slow start and congestion avoidance with fast retransmit and fast recovery. When a connection is setup the congestion window is initialized to one segment and the slow start threshold to 64 segments. To simplify the problem, assume that the timeout is equal to the RTT (an exact estimate) and specify time in units of RTT, such that one time slot is one RTT.
Packet transmissions are such that at each time slot the sender sends all packets in the congestion window. If ACK's are received in the next time slot, there is no timeout. In addition, to simplify matters either the entire window is acknowledged or none of its segments are acknowledged.
For a particular connection, ACK's are received in time slots 1-6, 8-22, 24-33, 35-38, and 40-50. Timeouts occur in slots 7, 23 and 34; in slot 40, three duplicate ACK's are received for the packets sent in time slot 38.
For the system described, plot both the congestion window and the slow start threshold (on the same graph) versus time (slots). Remember to consider the differences between slow start and congestion avoidance with fast retransmit and fast recovery when changing the congestion window.
5. Network Performance Measurements, Part I The eesn* workstations provide an echo service for TCP and UDP packets. This service can be accessed by connecting to port number 7 on any of the workstations. Write a program to measure the round trip time for a UDP packet sent to the echo service on one of the eesn* workstations. Run the following tests to a machine other than the one that you are logged into; otherwise, you will obtain artificially high values. Do not turn your code in for this problem (nor for problem 6), just the requested results.
a. Calculate the mean and variance of the RTT time (in microseconds) for (UDP) packets of size 100, 200, ..., 1000. You should use a sample size of 100 trials. Turn in a plot of the mean and variance versus packet size. b. For 1000-byte packets, what is the average end to end data rate? (Assume that the delays are uniform in each direction, so the one-way delay is half the RTT.)
6. Network Performance Measurements, Part II Repeat problem 5 (both parts) for TCP packets. Exclude the time required for a connection in your RTT measurements. You may use the same connection for all the trials.
=
n
i
1
The sample variance is 2 1
n
i
=