forked from JoshGelua/Bufferbloat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun.sh
30 lines (23 loc) · 890 Bytes
/
run.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/bin/bash
set -e
# Note: Mininet must be run as root. So invoke this shell script
# using sudo.
time=60
bwnet=10
# TODO: If you want the RTT to be 4ms what should the delay on each
# link be? Set this value correctly.
delay=1
iperf_port=5001
modprobe tcp_probe
# make sure we don't use a cached cwnd
sysctl -w net.ipv4.tcp_no_metrics_save=1
for qsize in 20 100; do
dir=bb-q$qsize
python bufferbloat.py --dir=$dir --time=$time --bw-net=$bwnet --delay=$delay --maxq=$qsize
# TODO: Ensure the input file names match the ones you use in
# bufferbloat.py script. Also ensure the plot file names match
# the required naming convsention when submitting your tarball.
python plot_tcpprobe.py -f $dir/cwnd.txt -o $dir/cwnd-iperf.png -p $iperf_port
python plot_queue.py -f $dir/q.txt -o $dir/q.png
python plot_ping.py -f $dir/ping.txt -o $dir/rtt.png
done