Temporary fix for router's IP as client for WAN trace and paths for new tests for...
[pingpong.git] / plot_scripts / plot_ts_graph_smartthings-plug
1 # Script to plot time series graphs for network traffic analysis
2 #
3 # by Rahmadi Trimananda (rahmadi.trimananda@uci.edu)
4 # Programming Language Research Group @ University of California, Irvine
5 # Winter 2018
6
7 # ************ #
8 # BASIC SETUP  #
9 # ************ #
10 set terminal pngcairo enhanced font 'Verdana,10'
11 set autoscale
12 unset key
13 unset log
14 unset label
15 set xtics 50
16 set xtics rotate by 60 right
17 set ytics auto
18 set xlabel "Packet Timestamp (hh:mm:ss)"
19 set ylabel "Packet Size (bytes)"
20 set xdata time
21 set timefmt "%H:%M:%S"
22 set xrange [:]
23 set yrange [0:]
24
25 # ***************** #
26 # PER DEVICE SETUP  #
27 # ***************** #
28 # SmartThings Plug switch local
29 # eth0
30 set output './result/smartthings-plug_switch_eth0_timestamp_local_incoming.png'
31 set title "SmartThings Plug Switch Incoming Local Traffic (eth0)"
32 plot "./result/smartthings-plug_switch_eth0_local_incoming.dat" using 1:2 with lines
33 set output './result/smartthings-plug_switch_eth0_timestamp_local_outgoing.png'
34 set title "SmartThings Plug Switch Outgoing Local Traffic (eth0)"
35 plot "./result/smartthings-plug_switch_eth0_local_outgoing.dat" using 1:2 with lines
36 # eth1
37 set output './result/smartthings-plug_switch_eth1_timestamp_local_incoming.png'
38 set title "SmartThings Plug Switch Incoming Local Traffic (eth1)"
39 plot "./result/smartthings-plug_switch_eth1_local_incoming.dat" using 1:2 with lines
40 set output './result/smartthings-plug_switch_eth1_timestamp_local_outgoing.png'
41 set title "SmartThings Plug Switch Outgoing Local Traffic (eth1)"
42 plot "./result/smartthings-plug_switch_eth1_local_outgoing.dat" using 1:2 with lines
43 # wlan1
44 #set output './result/smartthings-plug_switch_wlan1_timestamp_local_incoming.png'
45 #set title "SmartThings Plug Switch Incoming Local Traffic (wlan1)"
46 #plot "./result/smartthings-plug_switch_wlan1_local_incoming.dat" using 1:2 with lines
47 set output './result/smartthings-plug_switch_wlan1_timestamp_local_outgoing.png'
48 set title "SmartThings Plug Switch Outgoing Local Traffic (wlan1)"
49 plot "./result/smartthings-plug_switch_wlan1_local_outgoing.dat" using 1:2 with lines
50
51 # SmartThings Plug switch remote
52 # eth0
53 set output './result/smartthings-plug_switch_eth0_timestamp_remote_incoming.png'
54 set title "SmartThings Plug Switch Incoming Remote Traffic (eth0)"
55 plot "./result/smartthings-plug_switch_eth0_remote_incoming.dat" using 1:2 with lines
56 set output './result/smartthings-plug_switch_eth0_timestamp_remote_outgoing.png'
57 set title "SmartThings Plug Switch Outgoing Remote Traffic (eth0)"
58 plot "./result/smartthings-plug_switch_eth0_remote_outgoing.dat" using 1:2 with lines
59 # eth1
60 set output './result/smartthings-plug_switch_eth1_timestamp_remote_incoming.png'
61 set title "SmartThings Plug Switch Incoming Remote Traffic (eth1)"
62 plot "./result/smartthings-plug_switch_eth1_remote_incoming.dat" using 1:2 with lines
63 set output './result/smartthings-plug_switch_eth1_timestamp_remote_outgoing.png'
64 set title "SmartThings Plug Switch Outgoing Remote Traffic (eth1)"
65 plot "./result/smartthings-plug_switch_eth1_remote_outgoing.dat" using 1:2 with lines
66 # wlan1
67 #set output './result/smartthings-plug_switch_wlan1_timestamp_remote_incoming.png'
68 #set title "SmartThings Plug Switch Incoming Remote Traffic (wlan1)"
69 #plot "./result/smartthings-plug_switch_wlan1_remote_incoming.dat" using 1:2 with lines
70 #set output './result/smartthings-plug_switch_wlan1_timestamp_remote_outgoing.png'
71 #set title "SmartThings Plug Switch Outgoing Remote Traffic (wlan1)"
72 #plot "./result/smartthings-plug_switch_wlan1_remote_outgoing.dat" using 1:2 with lines
73
74 # SmartThings Plug phone local
75 # wlan1
76 set output './result/smartthings-plug_phone_wlan1_timestamp_local_incoming.png'
77 set title "SmartThings Plug Phone Incoming Local Traffic (wlan1)"
78 plot "./result/smartthings-plug_phone_wlan1_local_incoming.dat" using 1:2 with lines
79 set output './result/smartthings-plug_phone_wlan1_timestamp_local_outgoing.png'
80 set title "SmartThings Plug Phone Outgoing Local Traffic (wlan1)"
81 plot "./result/smartthings-plug_phone_wlan1_local_outgoing.dat" using 1:2 with lines
82