-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexp-outage.sh
42 lines (36 loc) · 1.35 KB
/
exp-outage.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
#/bin/bash
export n=$3
export SL_ONTIME=5
export SL_OFFTIME=3
export SL_EXPTIME=$2
export SL_FILE=$2
EXP_TYPE=$1
for ((i=1;i<=n;i++)); do
echo "==== Running Test No. $i/$n ===="
export SL_I=$i
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=redundant'
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=redundant'
sleep 10
export SL_EX=$EXP_TYPE"-interupted-re-on"$SL_ONTIME"-off"$SL_OFFTIME
~/sshlauncher/sshlauncher outage-$EXP_TYPE.config
sleep 20
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=roundrobin'
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=roundrobin'
sleep 10
export SL_EX=$EXP_TYPE"-interupted-rr-on"$SL_ONTIME"-off"$SL_OFFTIME
~/sshlauncher/sshlauncher outage-$EXP_TYPE.config
sleep 20
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=default'
ssh [email protected] 'sudo sysctl -w net.mptcp.mptcp_scheduler=default'
sleep 10
export SL_EX=$EXP_TYPE"-interupted-lowrtt-on"$SL_ONTIME"-off"$SL_OFFTIME
~/sshlauncher/sshlauncher outage-$EXP_TYPE.config
sleep 20
sudo ip link set dev eth2 multipath off
sleep 10
export SL_EX=$EXP_TYPE"-interupted-sp-on"$SL_ONTIME"-off"$SL_OFFTIME
~/sshlauncher/sshlauncher outage-$EXP_TYPE.config
sudo ip link set dev eth2 multipath on
sleep 20
done
echo done