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 Plug switch local
30 set output './result/smartthings-plug_switch_eth_timestamp_local_incoming.png'
31 set title "SmartThings Plug Switch Incoming Local Traffic (eth0)"
32 plot "./result/smartthings-plug_switch_eth_local_incoming.dat" using 1:2 with lines
33 set output './result/smartthings-plug_switch_eth_timestamp_local_outgoing.png'
34 set title "SmartThings Plug Switch Outgoing Local Traffic (eth0)"
35 plot "./result/smartthings-plug_switch_eth_local_outgoing.dat" using 1:2 with lines
37 #set output './result/smartthings-plug_switch_wlan_timestamp_local_incoming.png'
38 #set title "SmartThings Plug Switch Incoming Local Traffic (wlan1)"
39 #plot "./result/smartthings-plug_switch_wlan_local_incoming.dat" using 1:2 with lines
40 set output './result/smartthings-plug_switch_wlan_timestamp_local_outgoing.png'
41 set title "SmartThings Plug Switch Outgoing Local Traffic (wlan1)"
42 plot "./result/smartthings-plug_switch_wlan_local_outgoing.dat" using 1:2 with lines
44 # SmartThings Plug switch remote
46 set output './result/smartthings-plug_switch_eth_timestamp_remote_incoming.png'
47 set title "SmartThings Plug Switch Incoming Remote Traffic (eth0)"
48 plot "./result/smartthings-plug_switch_eth_remote_incoming.dat" using 1:2 with lines
49 set output './result/smartthings-plug_switch_eth_timestamp_remote_outgoing.png'
50 set title "SmartThings Plug Switch Outgoing Remote Traffic (eth0)"
51 plot "./result/smartthings-plug_switch_eth_remote_outgoing.dat" using 1:2 with lines
53 #set output './result/smartthings-plug_switch_wlan_timestamp_remote_incoming.png'
54 #set title "SmartThings Plug Switch Incoming Remote Traffic (wlan1)"
55 #plot "./result/smartthings-plug_switch_wlan_remote_incoming.dat" using 1:2 with lines
56 set output './result/smartthings-plug_switch_wlan_timestamp_remote_outgoing.png'
57 set title "SmartThings Plug Switch Outgoing Remote Traffic (wlan1)"
58 plot "./result/smartthings-plug_switch_wlan_remote_outgoing.dat" using 1:2 with lines
60 # SmartThings Plug phone local
62 set output './result/smartthings-plug_phone_wlan_timestamp_local_incoming.png'
63 set title "SmartThings Plug Phone Incoming Local Traffic (wlan1)"
64 plot "./result/smartthings-plug_phone_wlan_local_incoming.dat" using 1:2 with lines
65 set output './result/smartthings-plug_phone_wlan_timestamp_local_outgoing.png'
66 set title "SmartThings Plug Phone Outgoing Local Traffic (wlan1)"
67 plot "./result/smartthings-plug_phone_wlan_local_outgoing.dat" using 1:2 with lines