-
Notifications
You must be signed in to change notification settings - Fork 3
/
run-sample.sh
executable file
·33 lines (26 loc) · 1.07 KB
/
run-sample.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
source setup.sh
qsize=100
down="downlink-4g-no-cross-subway.pps"
duration=690
port=44444
tuning_period=500
init_alpha=150
user=`whoami`
anal_script="mm-thr"
target=0 #Application's desired Target delay: "0" means Target = 2 x minRTT
#target=50
delay=10 #Unidirectioanl delay: 10ms
anal_script="mm-throughput-graph-modified"
cmd="sudo ./client \$MAHIMAHI_BASE 1 $port & sleep $duration && killall client"
downlink=${down}
uplink=wired48
trace_="$uplink-$downlink"
log="$queue-$delay-$trace_-$qsize-$target-$duration"
sudo ./server $port $target $init_alpha $tuning_period &
sudo -u $user mm-delay $delay mm-link traces/$uplink traces/$downlink --uplink-log=log/up-mul-$log --downlink-log=log/down-mul-$log --uplink-queue=droptail --uplink-queue-args=\"packets=$qsize\" --downlink-queue=droptail --downlink-queue-args=\"packets=$qsize\" -- sh -c "$cmd"
sudo killall server client
echo $log >>log/summary.tr
./$anal_script 500 log/down-mul-$log 1>log/fig-$log.svg 2>>log/summary.tr
echo "---------------------------------------">>log/summary.tr
cat log/summary.tr
firefox log/fig-$log.svg