Adding new devices; Fixing bugs in concatenation.
[pingpong.git] / run.sh
1 #!/bin/sh
2
3 # This lists down all the calls to the main_flow.sh script.
4 # Basically, we make one call per one device that we want to analyze.
5 ROUTER=Router
6 ROUTER_MAC=b0:b9:8a:73:69:8f
7 PHONE=Nexus_5_Black
8 PHONE_MAC=64:89:9a:86:a9:7d
9 #PHONE=Motorola
10 #PHONE_MAC=a8:96:75:2f:0c:9c
11
12 #PREFIX=wemo
13 #DEVICE=WeMo_Switch
14 #DEVICE_MAC=94:10:3e:36:60:09
15 #PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/wemo/setup
16 #PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/wemo/local
17 #PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/wemo/remote
18
19 #PREFIX=tplink
20 #DEVICE=TPLink_Switch
21 #DEVICE_MAC=50:c7:bf:33:1f:09
22 #PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/tplink/setup
23 #PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/tplink/local
24 #PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/tplink/remote
25
26 #PREFIX=wemo-insight
27 #DEVICE=WeMo_Insight_Switch
28 #DEVICE_MAC=14:91:82:25:10:77
29 #PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/wemo-insight/setup
30 #PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/wemo-insight/local
31 #PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/wemo-insight/remote
32
33 #PREFIX=dlink
34 #DEVICE=DLink_Switch
35 #DEVICE_MAC=90:8d:78:e3:81:0c
36 #PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/dlink/setup
37 #PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/dlink/local
38 #PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/dlink/remote
39
40 # For smartthings-plug we need to uncomment the eth1 command line below instead of wlan1
41 PREFIX=smartthings-plug
42 DEVICE=SmartThings_Plug
43 DEVICE_MAC=d0:52:a8:a3:60:0f
44 PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/smartthings-plug/setup
45 PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/smartthings-plug/local
46 PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/smartthings-plug/remote
47
48 #PREFIX=smartthings-mp-sensor
49 #DEVICE=SmartThings_Multipurpose_Sensor
50 #DEVICE_MAC=d0:52:a8:a3:60:0f
51 #PATH_SETUP=/scratch/traffic_measurements/Switches-Feb2018/smartthings-mp-sensor/setup
52 #PATH_LOCAL=/scratch/traffic_measurements/Switches-Feb2018/smartthings-mp-sensor/local
53 #PATH_REMOTE=/scratch/traffic_measurements/Switches-Feb2018/smartthings-mp-sensor/remote
54
55 PATH_SETUP_WLAN1_JSON=$PREFIX.wlan1.setup.json
56 PATH_SETUP_ETH0_JSON=$PREFIX.eth0.setup.json
57 PATH_SETUP_ETH1_JSON=$PREFIX.eth1.setup.json
58 PATH_LOCAL_WLAN1_DNS_JSON=$PREFIX.wlan1.local.dns.json
59 PATH_LOCAL_WLAN1_JSON=$PREFIX.wlan1.local.json
60
61 PATH_LOCAL_ETH0_DNS_JSON=$PREFIX.eth0.local.dns.json
62 PATH_LOCAL_ETH0_JSON=$PREFIX.eth0.local.json
63 PATH_LOCAL_ETH1_DNS_JSON=$PREFIX.eth1.local.dns.json
64 PATH_LOCAL_ETH1_JSON=$PREFIX.eth1.local.json
65 PATH_REMOTE_WLAN1_DNS_JSON=$PREFIX.wlan1.remote.dns.json
66 PATH_REMOTE_WLAN1_JSON=$PREFIX.wlan1.remote.json
67 PATH_REMOTE_ETH0_DNS_JSON=$PREFIX.eth0.remote.dns.json
68 PATH_REMOTE_ETH0_JSON=$PREFIX.eth0.remote.json
69 PATH_REMOTE_ETH1_DNS_JSON=$PREFIX.eth1.remote.dns.json
70 PATH_REMOTE_ETH1_JSON=$PREFIX.eth1.remote.json
71 PATH_GNUPLOT=./plot_scripts/plot_ts_graph_$PREFIX
72 PATH_GNUPLOT_LABELED=./plot_scripts/plot_ts_graph_$PREFIX\_labeled
73 PATH_GNUPLOT_COMBINED=./plot_scripts/plot_ts_graph_$PREFIX\_combined
74 PATH_DIR_RESULT=result
75 PATH_RESULT_SETUP_WLAN1=$PREFIX\_switch_wlan1_setup
76 PATH_RESULT_SETUP_ETH1=$PREFIX\_switch_eth1_setup
77 PATH_RESULT_SETUP_ETH0=$PREFIX\_switch_eth0_setup
78 PATH_RESULT_LOCAL_WLAN1=$PREFIX\_switch_wlan1_local
79 PATH_RESULT_LOCAL_ETH1=$PREFIX\_switch_eth1_local
80 PATH_RESULT_LOCAL_ETH0=$PREFIX\_switch_eth0_local
81 PATH_RESULT_REMOTE_WLAN1=$PREFIX\_switch_wlan1_remote
82 PATH_RESULT_REMOTE_ETH1=$PREFIX\_switch_eth1_remote
83 PATH_RESULT_REMOTE_ETH0=$PREFIX\_switch_eth0_remote
84 PATH_RESULT_PHONE_LOCAL_WLAN1=$PREFIX\_phone_wlan1_local
85 PATH_RESULT_PHONE_REMOTE_WLAN1=$PREFIX\_phone_wlan1_remote
86
87 #python ./base_gexf_generator.py $PATH_SETUP/$PATH_SETUP_WLAN1_JSON $PATH_DIR_RESULT/$PATH_RESULT_SETUP_WLAN1.gexf
88 #python ./base_gexf_generator.py $PATH_SETUP/$PATH_SETUP_ETH0_JSON $PATH_DIR_RESULT/$PATH_RESULT_SETUP_ETH0.gexf
89 #python ./base_gexf_generator.py $PATH_SETUP/$PATH_SETUP_ETH1_JSON $PATH_DIR_RESULT/$PATH_RESULT_SETUP_ETH1.gexf
90
91 #python ./base_gexf_generator.py $PATH_LOCAL/$PATH_LOCAL_WLAN1_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_WLAN1.gexf
92 #python ./parser/parse_packet_frequency.py $PATH_LOCAL/$PATH_LOCAL_WLAN1_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_WLAN1 $DEVICE $DEVICE_MAC
93 #python ./base_gexf_generator.py $PATH_LOCAL/$PATH_LOCAL_ETH0_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_ETH0.gexf
94 #python ./parser/parse_packet_frequency.py $PATH_LOCAL/$PATH_LOCAL_ETH0_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_ETH0 $ROUTER $ROUTER_MAC
95 #python ./base_gexf_generator.py $PATH_LOCAL/$PATH_LOCAL_ETH1_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_ETH1.gexf
96 python ./parser/parse_packet_frequency.py $PATH_LOCAL/$PATH_LOCAL_ETH1_JSON $PATH_DIR_RESULT/$PATH_RESULT_LOCAL_ETH1 $DEVICE $DEVICE_MAC
97
98 #python ./base_gexf_generator.py $PATH_REMOTE/$PATH_REMOTE_WLAN1_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_WLAN1.gexf
99 #python ./parser/parse_packet_frequency.py $PATH_REMOTE/$PATH_REMOTE_WLAN1_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_WLAN1 $DEVICE $DEVICE_MAC
100 #python ./base_gexf_generator.py $PATH_REMOTE/$PATH_REMOTE_ETH0_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_ETH0.gexf
101 #python ./parser/parse_packet_frequency.py $PATH_REMOTE/$PATH_REMOTE_ETH0_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_ETH0 $ROUTER $ROUTER_MAC
102 #python ./base_gexf_generator.py $PATH_REMOTE/$PATH_REMOTE_ETH1_DNS_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_ETH1.gexf
103 python ./parser/parse_packet_frequency.py $PATH_REMOTE/$PATH_REMOTE_ETH1_JSON $PATH_DIR_RESULT/$PATH_RESULT_REMOTE_ETH1 $DEVICE $DEVICE_MAC
104
105 #python ./parser/parse_packet_frequency.py $PATH_LOCAL/$PATH_LOCAL_WLAN1_JSON $PATH_DIR_RESULT/$PATH_RESULT_PHONE_LOCAL_WLAN1 $PHONE $PHONE_MAC
106 #python ./parser/parse_packet_frequency.py $PATH_REMOTE/$PATH_REMOTE_WLAN1_JSON $PATH_DIR_RESULT/$PATH_RESULT_PHONE_REMOTE_WLAN1 $PHONE $PHONE_MAC
107
108 #gnuplot $PATH_GNUPLOT
109 gnuplot $PATH_GNUPLOT_LABELED   # only the WLAN1/ETH1 part - basically just the device perspective
110 #gnuplot $PATH_GNUPLOT_COMBINED