1 # Script to plot time series graphs for network traffic analysis
3 # by Rahmadi Trimananda (rahmadi.trimananda@uci.edu)
4 # Programming Language Research Group @ University of California, Irvine
10 set terminal pngcairo enhanced font 'Verdana,10'
16 set xtics rotate by 60 right
18 set xlabel "Packet Timestamp (hh:mm:ss)"
19 set ylabel "Packet Size (bytes)"
21 set timefmt "%H:%M:%S"
28 # SmartThings Multipurpose Sensor local
30 set output './result/smartthings-mp-sensor_switch_eth0_timestamp_local_incoming.png'
31 set title "SmartThings Multipurpose Sensor Incoming Local Traffic (eth0)"
32 plot "./result/smartthings-mp-sensor_switch_eth0_local_incoming.dat" using 1:2 with lines
33 set output './result/smartthings-mp-sensor_switch_eth0_timestamp_local_outgoing.png'
34 set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (eth0)"
35 plot "./result/smartthings-mp-sensor_switch_eth0_local_outgoing.dat" using 1:2 with lines
37 set output './result/smartthings-mp-sensor_switch_eth1_timestamp_local_incoming.png'
38 set title "SmartThings Multipurpose Sensor Incoming Local Traffic (eth1)"
39 plot "./result/smartthings-mp-sensor_switch_eth1_local_incoming.dat" using 1:2 with lines
40 set output './result/smartthings-mp-sensor_switch_eth1_timestamp_local_outgoing.png'
41 set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (eth1)"
42 plot "./result/smartthings-mp-sensor_switch_eth1_local_outgoing.dat" using 1:2 with lines
44 #set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_incoming.png'
45 #set title "SmartThings Multipurpose Sensor Incoming Local Traffic (wlan1)"
46 #plot "./result/smartthings-mp-sensor_switch_wlan1_local_incoming.dat" using 1:2 with lines
47 set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_outgoing.png'
48 set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (wlan1)"
49 plot "./result/smartthings-mp-sensor_switch_wlan1_local_outgoing.dat" using 1:2 with lines
51 # SmartThings Multipurpose Sensor remote
53 set output './result/smartthings-mp-sensor_switch_eth0_timestamp_remote_incoming.png'
54 set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (eth0)"
55 plot "./result/smartthings-mp-sensor_switch_eth0_remote_incoming.dat" using 1:2 with lines
56 set output './result/smartthings-mp-sensor_switch_eth0_timestamp_remote_outgoing.png'
57 set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (eth0)"
58 plot "./result/smartthings-mp-sensor_switch_eth0_remote_outgoing.dat" using 1:2 with lines
60 set output './result/smartthings-mp-sensor_switch_eth1_timestamp_remote_incoming.png'
61 set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (eth1)"
62 plot "./result/smartthings-mp-sensor_switch_eth1_remote_incoming.dat" using 1:2 with lines
63 set output './result/smartthings-mp-sensor_switch_eth1_timestamp_remote_outgoing.png'
64 set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (eth1)"
65 plot "./result/smartthings-mp-sensor_switch_eth1_remote_outgoing.dat" using 1:2 with lines
67 #set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_incoming.png'
68 #set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (wlan1)"
69 #plot "./result/smartthings-mp-sensor_switch_wlan1_remote_incoming.dat" using 1:2 with lines
70 #set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_outgoing.png'
71 #set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (wlan1)"
72 #plot "./result/smartthings-mp-sensor_switch_wlan1_remote_outgoing.dat" using 1:2 with lines
74 # SmartThings Multipurpose Sensor phone local
76 set output './result/smartthings-mp-sensor_phone_wlan1_timestamp_local_incoming.png'
77 set title "SmartThings Multipurpose Sensor Phone Incoming Local Traffic (wlan1)"
78 plot "./result/smartthings-mp-sensor_phone_wlan1_local_incoming.dat" using 1:2 with lines
79 set output './result/smartthings-mp-sensor_phone_wlan1_timestamp_local_outgoing.png'
80 set title "SmartThings Multipurpose Sensor Phone Outgoing Local Traffic (wlan1)"
81 plot "./result/smartthings-mp-sensor_phone_wlan1_local_outgoing.dat" using 1:2 with lines