556b5434287d12a09c03f654c7f6a0b8ce49bc3e
[pingpong.git] / plot_scripts / plot_ts_graph_wemo
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 # Winter 2018
6
7 # ************ #
8 # BASIC SETUP  #
9 # ************ #
10 set terminal pngcairo enhanced font 'Verdana,10'
11 set autoscale
12 unset key
13 unset log
14 unset label
15 set xtics 200
16 set ytics auto
17 set xlabel "Packet Timestamp (hh:mm:ss)"
18 set ylabel "Packet Size (bytes)"
19 set xdata time
20 set timefmt "%H:%M:%S"
21 set xrange [:]
22 set yrange [0:]
23
24 # ***************** #
25 # PER DEVICE SETUP  #
26 # ***************** #
27 # WeMo switch local
28 set output './result/wemo_switch_timestamp_local_incoming.png'
29 set title "WeMo Switch Incoming Local Traffic"
30 plot "./result/wemo_switch_local_incoming.dat" using 1:2 with lines
31 set output './result/wemo_switch_timestamp_local_outgoing.png'
32 set title "WeMo Switch Outgoing Local Traffic"
33 plot "./result/wemo_switch_local_outgoing.dat" using 1:2 with lines
34
35 # WeMo switch internet
36 set output './result/wemo_switch_timestamp_internet_incoming.png'
37 set title "WeMo Switch Incoming Internet Traffic"
38 plot "./result/wemo_switch_internet_incoming.dat" using 1:2 with lines
39 set output './result/wemo_switch_timestamp_internet_outgoing.png'
40 set title "WeMo Switch Outgoing Internet Traffic"
41 plot "./result/wemo_switch_internet_outgoing.dat" using 1:2 with lines
42