-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_star.sh
executable file
·105 lines (88 loc) · 3.25 KB
/
run_star.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
# Vary the random number generators run
# --RngRun=1
# NS_GLOBAL_VALUE="RngRun=1"
if [ $# -ne 1 ] ; then
echo "Usage: $0 <init_run>"
exit 1
fi
init_run=$1
trap "kill 0; exit 0" SIGINT SIGTERM EXIT
function spawn_sim {
for (( run=$init_run; run<$(($init_run + 500)); run++ ))
do
RunValue="RngRun="$run
#echo $RunValue
export NS_GLOBAL_VALUE=$RunValue
ulimit -Sv 1000000 # 1.0GB memory limit
#echo $1
time ./waf --run "$1 --star=1 --simprefix=Star$2"
done
}
# Normal TCP
spawn_sim "scratch/oldi_sim" VanillaTcp &
# Lossless Normal TCP
#spawn_sim "scratch/oldi_sim --lossless=1" LosslessVanillaTcp &
# Large CWND TCP
#spawn_sim "scratch/oldi_sim --initCwnd=200 --noSlowStart=1" LCwndTcp &
spawn_sim "scratch/oldi_sim --initCwnd=200" LCwndTcp &
# Lossless Large CWND TCP
#spawn_sim "scratch/oldi_sim --lossless=1 --initCwnd=200" LosslessLCwndTcp &
# DCTCP
spawn_sim "scratch/oldi_sim --dctcp=1" Dctcp &
# Lossless DCTCP
#spawn_sim "scratch/oldi_sim --dctcp=1 --lossless=1" LosslessDctcp &
# Large CWND DCTCP
#spawn_sim "scratch/oldi_sim --dctcp=1 --initCwnd=200 --noSlowStart=1" LCwndDctcp &
spawn_sim "scratch/oldi_sim --dctcp=1 --initCwnd=200" LCwndDctcp &
# Lossless Large CWND DCTCP
#spawn_sim "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=200" LosslessLCwndDctcp &
# Lossless Large CWND D2TCP
#spawn_sim "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1" LosslessLCwndDctcp &
#spawn_sim "scratch/oldi_sim --d2tcp=1 --lossless=1 --initCwnd=200" LosslessLCwndD2tcp &
# Lossless Medium CWND DCTCP
#spawn_sim "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=100" LosslessMCwndDctcp &
#spawn_sim "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=50" LosslessMCwndDctcp &
while true
do
sleep 10
done
# PacketSpray Lossless Large CWND TCP
#spawn_sim "scratch/oldi_sim --pktspray=1 --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 PacketSprayLosslessLCwndDctcp" &
#for (( run=$init_run; run<$(($init_run + 200)); run++ ))
#do
# RunValue="RngRun="$run
# echo $RunValue
# export NS_GLOBAL_VALUE=$RunValue
#
# # Normal TCP
# time ./waf --run "scratch/oldi_sim VanillaTcp"
#
# # Lossless Normal TCP
# time ./waf --run "scratch/oldi_sim --lossless=1 LosslessVanillaTcp"
#
# # Large CWND TCP
# time ./waf --run "scratch/oldi_sim --initCwnd=200 --noSlowStart=1 LCwndTcp"
#
# # Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --lossless=1 --initCwnd=200 --noSlowStart=1 LosslessLCwndTcp"
#
# # DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 Dctcp"
#
# # Lossless DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 LosslessDctcp"
#
# # Large CWND DCTCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --initCwnd=200 --noSlowStart=1 LCwndDctcp"
#
# # Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 LosslessLCwndDctcp"
#
# # Lossless Medium CWND TCP
# time ./waf --run "scratch/oldi_sim --dctcp=1 --lossless=1 --initCwnd=100 LosslessMCwndDctcp"
#
# # PacketSpray Lossless Large CWND TCP
# time ./waf --run "scratch/oldi_sim --pktspray=1 --dctcp=1 --lossless=1 --initCwnd=200 --noSlowStart=1 PacketSprayLosslessLCwndDctcp"
#
#done