In this assignment, you will build another custom topology and learn about TCP congestion control. You’ll also learn about the TCP sawtooth and see how TCP works to share bandwidth across multiple flows .
Over 80% of peak traffic on the Internet is transmitted via TCP . Therefore, it is important to understand how TCP’s congestion control helps prevent congestion collapse in networks. Congestion collapse occurs when packets use a large amount of bandwidth in one section of the network but are dropped at a downstream link. This means the network is congested at the downstream link and the senders must reduce their sending rate for packets to not be dropped. TCP’s congestion control responds to these packet drops and enables a congested section of the network to recover.
To explore congestion control, you will create the following topology for N = 1, 2, 3, 4, 5 at a link speed of 10 Mbps per link and a delay of 1 ms (note the 10 Mbps speed differs from the lecture video to ensure the topology runs smoothly on a virtual machine). You will then need to generate simultaneous TCP CUBIC flows using
iperf, from each of the sender hosts to the lone receiver, and record the achieved throughput. Note that
iperf defaults to TCP CUBIC so you do not need to set a command line option. A provided script will plot the time series of throughput vs time for each sender, for each experiment (N = 1, 2, 3, 4, 5).
parking_lot_assignment_3directory. Then install the following packages for this assignment:
sudo apt-get -y install python-argparse
sudo pip install termcolor
git commit -a -m "Saving work"
parkinglot.pyfile. You will need to complete two functions within the file to complete the assignment. Both functions are marked with
TODOcomments for your convenience.
__init__function of the
ParkingLotTopoclass. The class defines the topology used in the assignment. The framework code creates a parking lot topology for N=3. Your task is to generalize it for any N >= 1.
run_parkinglot_exptfunction. The function generates TCP flows between the senders and the receiver using
iperf, and monitors the throughput of each flow. Your task is to start and stop
iperffor the additional senders in the topology.
sudo python parkinglot.py --bw <link_bandwidth> --dir <output_dir> -t <expt_duration> -n <n>
parkinglot-sweep.shto generate a set of plots and the necessary log files:
python -m SimpleHTTPServer
bwm.txtfile, which contains the bandwidth measurements, for each of N = 2, 3, 4, and 5 on the assignment submission page.
This rubric is here to help you understand the expectations for the assignment. It is the same rubric that the person evaluating your project will use. We recommend you look at the rubric before you begin working on your project and again before you decide to submit it.
|Criteria||Does Not Meet Expectations||Meets Expectations||Exceeds Expectations|
|Parking lot code|
|Complete the topology as described in steps 3 and 4.||The topology is not generalized for N >= 1. The iperf flows are not started between the receivers and host.||The topology is generalized for N >= 1 and the iperf flows are correctly started.||There is no “Exceeds Expectations” option for this criteria.|
|Topology bandwidth output|
|Output looks reasonable.||Output does not pass the sanity check when it is submitted. The bandwidth logs do not show equal share of bandwidth between flows.||Output does pass the sanity check. The bandwidth logs show the hosts sharing an equal share of the total bandwidth.||There is no “Exceeds Expectations” option for this criteria.|
 Based on CS 244 assignment.
 Sandvine Global Internet Phenomena Report, Fall 2011. TCP is largely video over HTTP (along with some web browsing and P2P.) BitTorrent over uTP and UDP accounts for the bulk of UDP traffic.