El6383 high-speed networks: labs instructor: yang xu

[ad_1]

EL6383 High-speed Networks: Labs Instructor: Yang Xu
Lab 3: Bufferbloat
Name: ________________________ ID: ___________________ Date: ______________________
1. Objectives
– Understand the bufferbloat problem
– Observe the bufferbloat problem on mininet
2. Lab Tutorial
2.1 Reference to go through
1) BufferBloat: https://github.com/mininet/mininet/wiki/Bufferbloat
2) Iperf: https://iperf.fr/
3) Google: A universal reference
2.2 Home Network Emulation Setup
Figure 1 Typical home network environment
In this exercise we will study the dynamics of TCP in home networks. Take a look at Figure 1 which shows a “typical” home network with a Home Router connected to an end host. The Home Router is connected via Cable or DSL to a Headend router at the Internet access provider’s office. We are going to study what happens when we download data from a remote server to the End Host in this home network.
In a real network it’s hard to measure cwnd (because it’s private to the Server) and the buffer occupancy (because it’s private to the router). To make our measurement job easier, we are going to emulate the network in Mininet.
EL6383 High-speed Networks: Labs Instructor: Yang Xu
2.3 BufferBloat Environment Setup
Figure 2. BufferBloat Environment Setup
In this lab, the environment is already provided as git repository. Get the repository by cloning it using the following command, > git clone https://github.com/bovenyan/bufferbloat
Run the emulator, > cd bufferbloat/ > sudo ./run.sh
After Mininet is running, you can measure the delay from H1 to H2 with the command: > mininet> h1 ping –c 10 h2
2.4 Exercise 1: Sketch the CWND of Web page downloads and “Streaming Videos”
Measure how long it takes to download a web page from H1, mininet> h2 wget http://10.0.0.1
1. Answer: _________________ seconds.
2. Sketch how you think cwnd evolves over time at H1. Mark multiples of RTT on the x-axis:
EL6383 High-speed Networks: Labs Instructor: Yang Xu
To see how the dynamics of a long flow (which enters the AIMD phase) differs from a short flow (which never leaves slow-start), we are going to repeat Part 2 for a “streaming video flow”. Instead of actually watching videos on your machine, we are going to set up a long-lived high speed TCP connection instead, to emulate a long-lived video flow. You can generate long flows using the iperf command, and we have wrapped it in a script which you can run as follows: mininet> h1 ./iperf.sh
You can see the throughput of TCP flow from H1 to H2 by running: mininet> h2 tail -f ./iperf-recv.txt
You can quit viewing throughput by pressing CTRL-C.
3. Sketch how you think cwnd evolves over time at H1. You might find it useful to use ping to measure how the delay evolves over time, after the iperf has started: mininet> h1 ping -c 100 h2
EL6383 High-speed Networks: Labs Instructor: Yang Xu
To see how our long-lived iperf flow affects our web page download, download the webpage again – while iperf is running. Write down how long it takes. mininet> h2 wget http://10.0.0.1
4. Answer: _________________ seconds
5. Why does the web page take so much longer to download? Please write your explanation below. Answer:
2.5 Measuring the real cwnd and buffer occupancy values.
Stop and restart Mininet and the monitor script, then re-run the above experiment as follows. mininet> exit bash# sudo ./run.sh
Monitor TCP CWND and Buffer Occupancy in Mininet. In another bash terminal, go to bufferbloat directory and type the following giving a name for your experiment. bash# ./monitor.sh <EXP_NAME>
Don’t worry if you see “ERROR: Module tcp_probe does not exist in /proc/modules”, it just means this module is not previously loaded. mininet> h1 ./iperf.sh
(wait for 70 seconds …) mininet> h2 wget http://10.0.0.1
Wait for the wget to complete, then stop the python monitor script followed by the instructions on the screen. The cwnd values are saved in:
_tcpprobe.txt and the buffer occupancy in _sw0-qlen.txt
Plot the TCP cwnd and queue occupancy from the output file bash# ./plot_figures.sh <EXP_NAME>
6. Adjust command line parameters to generate the figure you want. The script will also host a webserver on the machine and you can use the url the script provided to access to your figures if it is a
EL6383 High-speed Networks: Labs Instructor: Yang Xu
remote machine w/ public IP. Sample Figures. If you are unable to see the cwnd, ensure you run wget after you started the monitor.sh script. By now you will have realized that the buffer in the Headend router is so large that when it fills up with iperf packets, it delays the short wget flow. Next we’ll look at two ways to reduce the problem.
2.6 Alleviate BufferBloat by making the buffer smaller
Make the router buffer smaller. Reduce it from 100 packets to 20 packets. Stop any running Mininet and start Mininet again, but this time we will make the buffers 20 packets long instead: prompt> sudo ./run-minq.sh
Let’s also run the monitor script on the side: prompt> sudo ./monitor.sh <EXP_NAME>
Repeat the steps in Parts 2 and 3: mininet> h2 wget http://10.0.0.1 mininet> h1 ping -c 10 h2 mininet> h1 ./iperf.sh mininet> h1 ping -c 30 h2 mininet> h2 wget http://10.0.0.1
7. What do you think the cwnd and queue occupancy will be like in this case?
8. Plot the figure for cwnd and queue occupancy, this time using the script “./plot_figures_minq.sh” prompt> ./plot_figures_minq.sh
EL6383 High-speed Networks: Labs Instructor: Yang Xu
Then again, use the url to see your figures. Sample figures.
9. Why does reducing the queue size reduce the download time for wget? Please put your explanation below.
Answer:
2.7 Try different queues
The problem seems to be that packets from the short flow are stuck behind a lot of packets from the long flow. What if we maintain a separate queue for each flow and then put iperf and wget traffic into different queues?
For this experiment, we put the iperf and wget/ping packets into separate queues in the Headend router. The scheduler implements fair queueing so that when both queues are busy, each flow will receive half of the bottleneck link rate.
Start Mininet again, but this time we will create two queues, one for each type of traffic. prompt> sudo ./run-diff.sh
Repeat the steps in Parts 2 and 3 mininet> h2 wget http://10.0.0.1 mininet> h1 ping -c 10 h2 mininet> h1 ./iperf.sh mininet> h1 ping -c 30 h2 mininet> h2 wget http://10.0.0.1
10. You should see the ping delay (and the wget download time) doesn’t change much before and after we start the iperf.
3. To submit in report
EL6383 High-speed Networks: Labs Instructor: Yang Xu
The answers and the snapshots associated with questions 1-10.

Calculate the price
Make an order in advance and get the best price
Pages (550 words)
$0.00
*Price with a welcome 15% discount applied.
Pro tip: If you want to save more money and pay the lowest price, you need to set a more extended deadline.
We know how difficult it is to be a student these days. That's why our prices are one of the most affordable on the market, and there are no hidden fees.

Instead, we offer bonuses, discounts, and free services to make your experience outstanding.
How it works
Receive a 100% original paper that will pass Turnitin from a top essay writing service
step 1
Upload your instructions
Fill out the order form and provide paper details. You can even attach screenshots or add additional instructions later. If something is not clear or missing, the writer will contact you for clarification.
Pro service tips
How to get the most out of your experience with Australia Assessments
One writer throughout the entire course
If you like the writer, you can hire them again. Just copy & paste their ID on the order form ("Preferred Writer's ID" field). This way, your vocabulary will be uniform, and the writer will be aware of your needs.
The same paper from different writers
You can order essay or any other work from two different writers to choose the best one or give another version to a friend. This can be done through the add-on "Same paper from another writer."
Copy of sources used by the writer
Our college essay writers work with ScienceDirect and other databases. They can send you articles or materials used in PDF or through screenshots. Just tick the "Copy of sources" field on the order form.
Testimonials
See why 20k+ students have chosen us as their sole writing assistance provider
Check out the latest reviews and opinions submitted by real customers worldwide and make an informed decision.
Human Resources Management (HRM)
It's great. I recommend the writer.
Customer 454223, April 9th, 2020
Psychology
Good discussion.
Customer 462359, April 4th, 2022
Military
Excellent job
Customer 456821, June 30th, 2022
Psychology
Thank you.
Customer 463363, September 23rd, 2022
History
The work was really good and done on time.
Customer 454439, June 1st, 2020
Business
well done
Customer 452441, April 14th, 2022
Business and administrative studies
Excellent.
Customer 458115, May 16th, 2022
Marketing
Could have been more through and provided me specific details. Some answers we more of a summary or recap thank analysis.
Customer 464471, August 21st, 2023
Business and administrative studies
Thank you very much! Efficient and professional! I was literally "blocked" since 3 days
Customer 462519, February 3rd, 2022
ASCI 491: Operational Applications in Aeronautics
Well articulated.
Customer 457731, April 12th, 2022
Nursing
The paper was delivered on time but I requested for a revision. Overall, it was on time and satisfied with the provided 2 versions of the revised paper. Thank you!
Customer 454455, June 7th, 2020
Technology
Great writer
Customer 454057, May 20th, 2020
11,595
Customer reviews in total
96%
Current satisfaction rate
3 pages
Average paper length
37%
Customers referred by a friend
OUR GIFT TO YOU
15% OFF your first order
Use a coupon FIRST15 and enjoy expert help with any task at the most affordable price.
Claim my 15% OFF Order in Chat