Bringing down time constraint to packet level so that we will exclude those pairs...
[pingpong.git] / plot_scripts / plot_ts_graph_tplink
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 50
16 set xtics rotate by 60 right
17 set ytics auto
18 set xlabel "Packet Timestamp (hh:mm:ss)"
19 set ylabel "Packet Size (bytes)"
20 set xdata time
21 set timefmt "%H:%M:%S"
22 set xrange [:]
23 set yrange [0:]
24
25 # ***************** #
26 # PER DEVICE SETUP  #
27 # ***************** #
28 # TPLink switch local
29 # eth0
30 set output './result/tplink_switch_eth_timestamp_local_incoming.png'
31 set title "TP-Link Switch Incoming Local Traffic (eth0)"
32 plot "./result/tplink_switch_eth_local_incoming.dat" using 1:2 with lines
33 set output './result/tplink_switch_eth_timestamp_local_outgoing.png'
34 set title "TP-Link Switch Outgoing Local Traffic (eth0)"
35 plot "./result/tplink_switch_eth_local_outgoing.dat" using 1:2 with lines
36 # wlan1
37 set output './result/tplink_switch_wlan_timestamp_local_incoming.png'
38 set title "TP-Link Switch Incoming Local Traffic (wlan1)"
39 plot "./result/tplink_switch_wlan_local_incoming.dat" using 1:2 with lines
40 set output './result/tplink_switch_wlan_timestamp_local_outgoing.png'
41 set title "TP-Link Switch Outgoing Local Traffic (wlan1)"
42 plot "./result/tplink_switch_wlan_local_outgoing.dat" using 1:2 with lines
43
44 # TPLink switch remote
45 # eth0
46 set output './result/tplink_switch_eth_timestamp_remote_incoming.png'
47 set title "TP-Link Switch Incoming Remote Traffic (eth0)"
48 plot "./result/tplink_switch_eth_remote_incoming.dat" using 1:2 with lines
49 set output './result/tplink_switch_eth_timestamp_remote_outgoing.png'
50 set title "TP-Link Switch Outgoing Remote Traffic (eth0)"
51 plot "./result/tplink_switch_eth_remote_outgoing.dat" using 1:2 with lines
52 # wlan1
53 set output './result/tplink_switch_wlan_timestamp_remote_incoming.png'
54 set title "TP-Link Switch Incoming Remote Traffic (wlan1)"
55 plot "./result/tplink_switch_wlan_remote_incoming.dat" using 1:2 with lines
56 set output './result/tplink_switch_wlan_timestamp_remote_outgoing.png'
57 set title "TP-Link Switch Outgoing Remote Traffic (wlan1)"
58 plot "./result/tplink_switch_wlan_remote_outgoing.dat" using 1:2 with lines
59
60 # TPLink phone local
61 # wlan1
62 set output './result/tplink_phone_wlan_timestamp_local_incoming.png'
63 set title "TP-Link Phone Incoming Local Traffic (wlan1)"
64 plot "./result/tplink_phone_wlan_local_incoming.dat" using 1:2 with lines
65 set output './result/tplink_phone_wlan_timestamp_local_outgoing.png'
66 set title "TP-Link Phone Outgoing Local Traffic (wlan1)"
67 plot "./result/tplink_phone_wlan_local_outgoing.dat" using 1:2 with lines
68