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 pdfcairo enhanced font 'Verdana,10'
16 set xtics rotate by 60 right
18 set xlabel "Packet Timestamp (hh:mm:ss)"
19 set ylabel "Traffic Volume (bytes)"
21 set timefmt "%H:%M:%S"
28 set label "1-ON" at "16:00:31", 60000 tc rgb "blue"
29 set label "1-OFF" at "16:01:26", 50000 tc rgb "red"
30 set label "2-ON" at "16:02:29", 60000 tc rgb "blue"
31 set label "2-OFF" at "16:03:34", 50000 tc rgb "red"
32 set label "3-ON" at "16:04:32", 60000 tc rgb "blue"
33 set label "3-OFF" at "16:05:32", 50000 tc rgb "red"
34 set label "4-ON" at "16:07:41", 60000 tc rgb "blue"
35 set label "4-OFF" at "16:08:40", 50000 tc rgb "red"
36 set label "5-ON" at "16:09:42", 60000 tc rgb "blue"
37 set label "5-OFF" at "16:10:43", 50000 tc rgb "red"
38 set label "6-ON" at "16:11:46", 60000 tc rgb "blue"
39 set label "6-OFF" at "16:12:46", 50000 tc rgb "red"
44 # WeMo Insight switch local
46 set output './result/wemo-insight_switch_wlan1_timestamp_local_incoming_outgoing.pdf'
47 set title "WeMo Insight Switch Incoming/Outgoing Local Traffic (wlan1)"
48 plot "./result/wemo-insight_switch_wlan1_local_incoming.dat" using 1:2 with lines lc 8 dt 4 title "Incoming", "./result/wemo-insight_switch_wlan1_local_outgoing.dat" using 1:2 with lines lc 6 title "Outgoing"
53 set label "1-ON" at "16:18:55", 80000 tc rgb "blue"
54 set label "1-OFF" at "16:19:56", 120000 tc rgb "red"
55 set label "2-ON" at "16:20:59", 80000 tc rgb "blue"
56 set label "2-OFF" at "16:22:00", 120000 tc rgb "red"
57 set label "3-ON" at "16:23:03", 80000 tc rgb "blue"
58 set label "3-OFF" at "16:24:07", 120000 tc rgb "red"
59 set label "4-ON" at "16:26:13", 80000 tc rgb "blue"
60 set label "4-OFF" at "16:27:09", 120000 tc rgb "red"
61 set label "5-ON" at "16:28:15", 80000 tc rgb "blue"
62 set label "5-OFF" at "16:29:12", 120000 tc rgb "red"
63 set label "6-ON" at "16:30:13", 80000 tc rgb "blue"
64 set label "6-OFF" at "16:31:18", 60000 tc rgb "red"
69 # WeMo Insight switch remote
71 set output './result/wemo-insight_switch_wlan1_timestamp_remote_incoming_outgoing.pdf'
72 set title "WeMo Insight Switch Incoming/Outgoing Remote Traffic (wlan1)"
73 plot "./result/wemo-insight_switch_wlan1_remote_incoming.dat" using 1:2 with lines lc 8 dt 4 title "Incoming", "./result/wemo-insight_switch_wlan1_remote_outgoing.dat" using 1:2 with lines lc 6 title "Outgoing"