-
Notifications
You must be signed in to change notification settings - Fork 2
/
run.sh
executable file
·35 lines (28 loc) · 1.01 KB
/
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
31
32
33
34
35
#!/bin/bash
# Note: Mininet must be run as root. So invoke this shell script
# using sudo.
time=30
iperf_port=5001
python init_dir.py
for cong in reno cubic westwood vegas; do
for min_rto in 1000; do
for qsize in 4; do
for i in 1 2 3; do
echo "Running without attacker"
sudo mn --clean
dir=data-q$qsize-p0.0-i$i
python topology.py --dir $dir --t $time --maxq $qsize --min_rto $min_rto --disable_attacker true --cong $cong
echo "Running with attacker"
# Always have a "." in the interburst_period numbers. E.g., use "4.0" not "4"
for interburst_period in 0.4 0.45 0.5 0.55 0.6 0.65 0.7 0.75 0.8 0.85 0.9 0.95 1.0 1.05 1.2 1.4 1.6 1.8 2.0 3.0 4.0 5.0; do
sudo mn --clean
dir=data-q$qsize-p$interburst_period-i$i
python topology.py --dir $dir --t $time --maxq $qsize --burst_period $interburst_period --min_rto $min_rto --cong $cong
done
done
done
done
./findThroughputs.sh
python cleanData.py --cong $cong
done
sudo python -m SimpleHTTPServer 80