-
Notifications
You must be signed in to change notification settings - Fork 0
/
outage-tcpdump-iperf.config
53 lines (40 loc) · 2.42 KB
/
outage-tcpdump-iperf.config
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
[DEFAULT]
user: vuva
sender = pc21.filab.uni-hannover.de
router = pc38.filab.uni-hannover.de
receiver = pc48.filab.uni-hannover.de
[clocksync]
host:%(sender)s
command: sudo killall -INT ptpd2;cd /users/vuva/Downloads/ptpd-2.3.1/src; sudo ./ptpd2 -i eth5 -s -u 10.1.4.3 -f /users/vuva/logs/ptp/ptpclient.log -a -r 4 -S /users/vuva/logs/ptp/clock.log; sleep 100;sudo killall -INT ptpd2; echo "clocks synced";
[start]
host:%(receiver)s
command:killall -INT iperf3; iperf3 -s;
after: {'clocksync':'clocks synced'}
[receiver]
host:%(receiver)s
command:sudo killall -INT tcpdump; sudo tcpdump dst 10.1.1.2 and src 10.1.2.2 or 10.1.3.2 -i eth5 -w ~/logs/outage/dump-receiver.pcapng -j adapter;
after: {'start':'Server listening'}
[sender]
host:%(sender)s
command: sleep 10; iperf3 -c 10.1.1.2 -t %(SL_EXPTIME)s
after: {'start':'Server listening'}
[sender-tshark]
host:%(sender)s
command:sudo killall -INT tcpdump; sudo tcpdump dst 10.1.1.2 and src 10.1.2.2 or 10.1.3.2 -i any -w ~/logs/outage/dump-sender.pcapng -j adapter;
after: {'start':'Server listening'}
[router]
host:%(router)s
command:killall -INT python3; sudo iptables -D FORWARD -i eth5 -j DROP; sudo iptables -D FORWARD -i eth2 -j DROP; sleep 15; python3 outage.py -ond exp -onp %(SL_ONTIME)s -offd exp -offp %(SL_OFFTIME)s -i eth2 & python3 outage.py -ond exp -onp %(SL_ONTIME)s -offd exp -offp %(SL_OFFTIME)s -i eth5;
after: {'start':'Server listening'}
[cleanupRecv]
host: %(receiver)s
command: killall -INT iperf3; sudo killall -INT tcpdump; sudo killall -INT tshark; sudo tshark -r ~/logs/outage/dump-receiver.pcapng -l -i eth5 -T fields -e frame.number -e frame.time_epoch -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e ip.proto -e frame.len -e tcp.seq -e tcp.ack -e tcp.options.mptcp.rawdataseqno -e tcp.options.mptcp.rawdataack > ~/logs/outage/%(SL_EX)s-receiver-%(SL_I)s.csv ;echo "Iperf server down."
after: {'sender':'iperf Done.'}
[cleanupRouter]
host: %(router)s
command: sleep 10; killall -INT python3;
after: {'sender':'iperf Done.'}
[cleanupSender]
host: %(sender)s
command: sudo killall -INT tcpdump; sudo killall -INT tshark; sudo tshark -r ~/logs/outage/dump-sender.pcapng -l -i eth2 -i eth4 -T fields -e frame.number -e frame.time_epoch -e ip.src -e tcp.srcport -e ip.dst -e tcp.dstport -e ip.proto -e frame.len -e tcp.seq -e tcp.ack -e tcp.options.mptcp.rawdataseqno -e tcp.options.mptcp.rawdataack > ~/logs/outage/%(SL_EX)s-sender-%(SL_I)s.csv
after: {'sender':'iperf Done.'}