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 postscript landscape "Arial, 18"
11 #set terminal postscript eps font 'Helvetica,20' enhanced color
12 set terminal pngcairo enhanced font 'Verdana,10'
19 set xlabel "Packet Timestamp (hh:mm:ss)"
20 set ylabel "Packet Frequency (pps)"
22 set timefmt "%H:%M:%S"
23 #set xrange ["06:00:00":"10:00:00"]
32 #set output 'wemo_switch.ps'
33 #set output 'wemo_switch.eps'
34 set output '../result/wemo_switch.png'
35 set title "WeMo Switch Time Series Plot of Packets"
36 plot "../result/wemo_switch.dat" using 1:2 with lines
38 #set output 'wemo_switch2.ps'
39 #plot "wemo_switch.dat" using 1:2
42 #set output '../result/wemo_switch.ps'
43 #set output '../result/wemo_switch.eps'
44 set output '../result/wemo_switch.png'
45 set title "WeMo Switch"
46 plot "../result/wemo_switch.dat" using 1:2 with lines
49 #set output '../result/wemo_insight.eps'
50 set output '../result/wemo_insight.png'
51 set title "WeMo Insight"
52 plot "../result/wemo_insight.dat" using 1:2 with lines
55 #set output '../result/tplink_switch.eps'
56 set output '../result/tplink_switch.png'
57 set title "TP-Link Switch"
58 plot "../result/tplink_switch.dat" using 1:2 with lines
61 #set output '../result/dlink_switch.eps'
62 set output '../result/dlink_switch.png'
63 set title "D-Link Switch"
64 plot "../result/dlink_switch.dat" using 1:2 with lines
67 #set output '../result/amcrest_camera.eps'
68 set output '../result/amcrest_camera.png'
69 set title "Amcrest Camera"
70 plot "../result/amcrest_camera.dat" using 1:2 with lines
73 #set output '../result/netgear_arlo_camera.eps'
74 set output '../result/netgear_arlo_camera.png'
75 set title "Netgear Arlo Camera"
76 plot "../result/netgear_arlo_camera.dat" using 1:2 with lines
79 #set output '../result/lifx_lightbulb_1.eps'
80 set output '../result/lifx_lightbulb_1.png'
81 set title "LiFX Light Bulb #1"
82 plot "../result/lifx_lightbulb_1.dat" using 1:2 with lines
85 #set output '../result/lifx_lightbulb_2.eps'
86 set output '../result/lifx_lightbulb_2.png'
87 set title "LiFX Light Bulb #2"
88 plot "../result/lifx_lightbulb_2.dat" using 1:2 with lines
91 #set output '../result/philips_hue.eps'
92 set output '../result/philips_hue.png'
93 set title "Philips Hue"
94 plot "../result/philips_hue.dat" using 1:2 with lines
97 #set output '../result/tplink_lightbulb.eps'
98 set output '../result/tplink_lightbulb.png'
99 set title "TP-Link Light Bulb"
100 plot "../result/tplink_lightbulb.dat" using 1:2 with lines
103 #set output '../result/nxeco_sprinkler.eps'
104 set output '../result/nxeco_sprinkler.png'
105 set title "Nxeco Sprinkler"
106 plot "../result/nxeco_sprinkler.dat" using 1:2 with lines
109 #set output '../result/blossom_sprinkler.eps'
110 set output '../result/blossom_sprinkler.png'
111 set title "Blossom Sprinkler"
112 plot "../result/blossom_sprinkler.dat" using 1:2 with lines
115 #set output '../result/dlink_alarm.eps'
116 set output '../result/dlink_alarm.png'
117 set title "D-Link Alarm"
118 plot "../result/dlink_alarm.dat" using 1:2 with lines
121 #set output '../result/dlink_alarm.eps'
122 set output '../result/dlink_alarm.png'
123 set title "D-Link Alarm"
124 plot "../result/dlink_alarm.dat" using 1:2 with lines
126 # D-Link motion sensor
127 #set output '../result/dlink_motion_sensor.eps'
128 set output '../result/dlink_motion_sensor.png'
129 set title "D-Link Motion Sensor"
130 plot "../result/dlink_motion_sensor.dat" using 1:2 with lines
133 #set output '../result/nest_thermostat.eps'
134 set output '../result/nest_thermostat.png'
135 set title "Nest Thermostat"
136 plot "../result/nest_thermostat.dat" using 1:2 with lines
139 #set output '../result/amazon_echo_dot.eps'
140 set output '../result/amazon_echo_dot.png'
141 set title "Amazon Ech Odit"
142 plot "../result/amazon_echo_dot.dat" using 1:2 with lines
145 #set output '../result/smartthings_hub.eps'
146 set output '../result/smartthings_hub.png'
147 set title "SmartThings Hub"
148 plot "../result/smartthings_hub.dat" using 1:2 with lines