Adding combining plots script
[pingpong.git] / plot_scripts / plot_ts_graph
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 # Fall 2017
6
7 # ************ #
8 # BASIC SETUP  #
9 # ************ #
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'
13 set autoscale
14 unset key
15 unset log
16 unset label
17 set xtics 600
18 set ytics auto
19 set xlabel "Packet Timestamp (hh:mm:ss)"
20 set ylabel "Packet Frequency (pps)"
21 set xdata time
22 set timefmt "%H:%M:%S"
23 #set xrange ["06:00:00":"10:00:00"]
24 #set yrange [0:200]
25 set xrange [:]
26 set yrange [0:]
27
28 # ***************** #
29 # PER DEVICE SETUP  #
30 # ***************** #
31 # WeMo switch
32 #set output '../result_ts/wemo_switch_incoming.ps'
33 #set output '../result_ts/wemo_switch_incoming.eps'
34 set output '../result_ts/wemo_switch_timestamp_incoming.png'
35 set title "WeMo Switch Incoming Traffic"
36 plot "../result_ts/wemo_switch_incoming.dat" using 1:2 with lines
37 set output '../result_ts/wemo_switch_timestamp_outgoing.png'
38 set title "WeMo Switch Outgoing Traffic"
39 plot "../result_ts/wemo_switch_outgoing.dat" using 1:2 with lines
40
41
42 # WeMo Insight
43 #set output '../result_ts/wemo_insight_incoming.eps'
44 set output '../result_ts/wemo_insight_timestamp_incoming.png'
45 set title "WeMo Insight Incoming Traffic"
46 plot "../result_ts/wemo_insight_incoming.dat" using 1:2 with lines
47 set output '../result_ts/wemo_insight_timestamp_outgoing.png'
48 set title "WeMo Insight Outgoing Traffic"
49 plot "../result_ts/wemo_insight_outgoing.dat" using 1:2 with lines
50
51 # TP-Link switch
52 #set output '../result_ts/tplink_switch_incoming.eps'
53 set output '../result_ts/tplink_switch_timestamp_incoming.png'
54 set title "TP-Link Switch Incoming Traffic"
55 plot "../result_ts/tplink_switch_incoming.dat" using 1:2 with lines
56 set output '../result_ts/tplink_switch_timestamp_outgoing.png'
57 set title "TP-Link Switch Outgoing Traffic"
58 plot "../result_ts/tplink_switch_outgoing.dat" using 1:2 with lines
59
60 # D-Link switch
61 #set output '../result_ts/dlink_switch_incoming.eps'
62 set output '../result_ts/dlink_switch_timestamp_incoming.png'
63 set title "D-Link Switch Incoming Traffic"
64 plot "../result_ts/dlink_switch_incoming.dat" using 1:2 with lines
65 set output '../result_ts/dlink_switch_timestamp_outgoing.png'
66 set title "D-Link Switch Outgoing Traffic"
67 plot "../result_ts/dlink_switch_outgoing.dat" using 1:2 with lines
68
69
70 # Amcrest camera
71 #set output '../result_ts/amcrest_camera_incoming.eps'
72 set output '../result_ts/amcrest_camera_timestamp_incoming.png'
73 set title "Amcrest Camera Incoming Traffic"
74 plot "../result_ts/amcrest_camera_incoming.dat" using 1:2 with lines
75 set output '../result_ts/amcrest_camera_timestamp_outgoing.png'
76 set title "Amcrest Camera Outgoing Traffic"
77 plot "../result_ts/amcrest_camera_outgoing.dat" using 1:2 with lines
78
79 # Netgear Arlo camera
80 #set output '../result_ts/netgear_arlo_camera_incoming.eps'
81 set output '../result_ts/netgear_arlo_camera_timestamp_incoming.png'
82 set title "Netgear Arlo Camera Incoming Traffic"
83 plot "../result_ts/netgear_arlo_camera_incoming.dat" using 1:2 with lines
84 set output '../result_ts/netgear_arlo_camera_timestamp_outgoing.png'
85 set title "Netgear Arlo Camera Outgoing Traffic"
86 plot "../result_ts/netgear_arlo_camera_outgoing.dat" using 1:2 with lines
87
88 # LiFX light bulb
89 #set output '../result_ts/lifx_lightbulb_1_incoming.eps'
90 set output '../result_ts/lifx_lightbulb_1_timestamp_incoming.png'
91 set title "LiFX Light Bulb #1 Incoming Traffic"
92 plot "../result_ts/lifx_lightbulb_1_incoming.dat" using 1:2 with lines
93 set output '../result_ts/lifx_lightbulb_1_timestamp_outgoing.png'
94 set title "LiFX Light Bulb #1 Outgoing Traffic"
95 plot "../result_ts/lifx_lightbulb_1_outgoing.dat" using 1:2 with lines
96
97 # LiFX light bulb
98 #set output '../result_ts/lifx_lightbulb_2_incoming.eps'
99 set output '../result_ts/lifx_lightbulb_2_timestamp_incoming.png'
100 set title "LiFX Light Bulb #2 Incoming Traffic"
101 plot "../result_ts/lifx_lightbulb_2_incoming.dat" using 1:2 with lines
102 set output '../result_ts/lifx_lightbulb_2_timestamp_outgoing.png'
103 set title "LiFX Light Bulb #2 Outgoing Traffic"
104 plot "../result_ts/lifx_lightbulb_2_outgoing.dat" using 1:2 with lines
105
106 # Philips Hue
107 #set output '../result_ts/philips_hue_incoming.eps'
108 set output '../result_ts/philips_hue_timestamp_incoming.png'
109 set title "Philips Hue Incoming Traffic"
110 plot "../result_ts/philips_hue_incoming.dat" using 1:2 with lines
111 set output '../result_ts/philips_hue_timestamp_outgoing.png'
112 set title "Philips Hue Outgoing Traffic"
113 plot "../result_ts/philips_hue_outgoing.dat" using 1:2 with lines
114
115 # TP-Link Light Bulb
116 #set output '../result_ts/tplink_lightbulb_incoming.eps'
117 set output '../result_ts/tplink_lightbulb_timestamp_incoming.png'
118 set title "TP-Link Light Bulb Incoming Traffic"
119 plot "../result_ts/tplink_lightbulb_incoming.dat" using 1:2 with lines
120 set output '../result_ts/tplink_lightbulb_timestamp_outgoing.png'
121 set title "TP-Link Light Bulb Outgoing Traffic"
122 plot "../result_ts/tplink_lightbulb_outgoing.dat" using 1:2 with lines
123
124 # Nxeco sprinkler
125 #set output '../result_ts/nxeco_sprinkler_incoming.eps'
126 set output '../result_ts/nxeco_sprinkler_timestamp_incoming.png'
127 set title "Nxeco Sprinkler Incoming Traffic"
128 plot "../result_ts/nxeco_sprinkler_incoming.dat" using 1:2 with lines
129 set output '../result_ts/nxeco_sprinkler_timestamp_outgoing.png'
130 set title "Nxeco Sprinkler Outgoing Traffic"
131 plot "../result_ts/nxeco_sprinkler_outgoing.dat" using 1:2 with lines
132
133 # Blossom sprinkler
134 #set output '../result_ts/blossom_sprinkler_incoming.eps'
135 set output '../result_ts/blossom_sprinkler_timestamp_incoming.png'
136 set title "Blossom Sprinkler Incoming Traffic"
137 plot "../result_ts/blossom_sprinkler_incoming.dat" using 1:2 with lines
138 set output '../result_ts/blossom_sprinkler_timestamp_outgoing.png'
139 set title "Blossom Sprinkler Outgoing Traffic"
140 plot "../result_ts/blossom_sprinkler_outgoing.dat" using 1:2 with lines
141
142 # D-Link alarm
143 #set output '../result_ts/dlink_alarm_incoming.eps'
144 set output '../result_ts/dlink_alarm_timestamp_incoming.png'
145 set title "D-Link Alarm Incoming Traffic"
146 plot "../result_ts/dlink_alarm_incoming.dat" using 1:2 with lines
147 set output '../result_ts/dlink_alarm_timestamp_outgoing.png'
148 set title "D-Link Alarm Outgoing Traffic"
149 plot "../result_ts/dlink_alarm_outgoing.dat" using 1:2 with lines
150
151 # D-Link alarm
152 #set output '../result_ts/dlink_alarm_incoming.eps'
153 set output '../result_ts/dlink_alarm_timestamp_incoming.png'
154 set title "D-Link Alarm Incoming Traffic"
155 plot "../result_ts/dlink_alarm_incoming.dat" using 1:2 with lines
156 set output '../result_ts/dlink_alarm_timestamp_outgoing.png'
157 set title "D-Link Alarm Outgoing Traffic"
158 plot "../result_ts/dlink_alarm_outgoing.dat" using 1:2 with lines
159
160 # D-Link motion sensor
161 #set output '../result_ts/dlink_motion_sensor_incoming.eps'
162 set output '../result_ts/dlink_motion_sensor_timestamp_incoming.png'
163 set title "D-Link Motion Sensor Incoming Traffic"
164 plot "../result_ts/dlink_motion_sensor_incoming.dat" using 1:2 with lines
165 set output '../result_ts/dlink_motion_sensor_timestamp_outgoing.png'
166 set title "D-Link Motion Sensor Outgoing"
167 plot "../result_ts/dlink_motion_sensor_outgoing.dat" using 1:2 with lines
168
169 # Nest Thermostat
170 #set output '../result_ts/nest_thermostat_incoming.eps'
171 set output '../result_ts/nest_thermostat_timestamp_incoming.png'
172 set title "Nest Thermostat Incoming Traffic"
173 plot "../result_ts/nest_thermostat_incoming.dat" using 1:2 with lines
174 set output '../result_ts/nest_thermostat_timestamp_outgoing.png'
175 set title "Nest Thermostat Outgoing Traffic"
176 plot "../result_ts/nest_thermostat_outgoing.dat" using 1:2 with lines
177
178 # Amazon Echo Dot
179 #set output '../result_ts/amazon_echo_dot_incoming.eps'
180 set output '../result_ts/amazon_echo_dot_timestamp_incoming.png'
181 set title "Amazon Echo Dot Incoming Traffic"
182 plot "../result_ts/amazon_echo_dot_incoming.dat" using 1:2 with lines
183 set output '../result_ts/amazon_echo_dot_timestamp_outgoing.png'
184 set title "Amazon Echo Dot Outgoing Traffic"
185 plot "../result_ts/amazon_echo_dot_outgoing.dat" using 1:2 with lines
186
187 # SmartThings hub
188 #set output '../result_ts/smartthings_hub_incoming.eps'
189 set output '../result_ts/smartthings_hub_timestamp_incoming.png'
190 set title "SmartThings Hub Incoming Traffic"
191 plot "../result_ts/smartthings_hub_incoming.dat" using 1:2 with lines
192 set output '../result_ts/smartthings_hub_timestamp_outgoing.png'
193 set title "SmartThings Hub Outgoing Traffic"
194 plot "../result_ts/smartthings_hub_outgoing.dat" using 1:2 with lines
195