More scripts to plot graphs with labels.
[pingpong.git] / plot_scripts / plot_ts_graph_smartthings-mp-sensor
diff --git a/plot_scripts/plot_ts_graph_smartthings-mp-sensor b/plot_scripts/plot_ts_graph_smartthings-mp-sensor
new file mode 100644 (file)
index 0000000..b06bf41
--- /dev/null
@@ -0,0 +1,82 @@
+# Script to plot time series graphs for network traffic analysis
+#
+# by Rahmadi Trimananda (rahmadi.trimananda@uci.edu)
+# Programming Language Research Group @ University of California, Irvine
+# Winter 2018
+
+# ************ #
+# BASIC SETUP  #
+# ************ #
+set terminal pngcairo enhanced font 'Verdana,10'
+set autoscale
+unset key
+unset log
+unset label
+set xtics 50
+set xtics rotate by 60 right
+set ytics auto
+set xlabel "Packet Timestamp (hh:mm:ss)"
+set ylabel "Packet Size (bytes)"
+set xdata time
+set timefmt "%H:%M:%S"
+set xrange [:]
+set yrange [0:]
+
+# ***************** #
+# PER DEVICE SETUP  #
+# ***************** #
+# SmartThings Multipurpose Sensor local
+# eth0
+set output './result/smartthings-mp-sensor_switch_eth0_timestamp_local_incoming.png'
+set title "SmartThings Multipurpose Sensor Incoming Local Traffic (eth0)"
+plot "./result/smartthings-mp-sensor_switch_eth0_local_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_switch_eth0_timestamp_local_outgoing.png'
+set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (eth0)"
+plot "./result/smartthings-mp-sensor_switch_eth0_local_outgoing.dat" using 1:2 with lines
+# eth1
+set output './result/smartthings-mp-sensor_switch_eth1_timestamp_local_incoming.png'
+set title "SmartThings Multipurpose Sensor Incoming Local Traffic (eth1)"
+plot "./result/smartthings-mp-sensor_switch_eth1_local_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_switch_eth1_timestamp_local_outgoing.png'
+set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (eth1)"
+plot "./result/smartthings-mp-sensor_switch_eth1_local_outgoing.dat" using 1:2 with lines
+# wlan1
+#set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_incoming.png'
+#set title "SmartThings Multipurpose Sensor Incoming Local Traffic (wlan1)"
+#plot "./result/smartthings-mp-sensor_switch_wlan1_local_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_local_outgoing.png'
+set title "SmartThings Multipurpose Sensor Outgoing Local Traffic (wlan1)"
+plot "./result/smartthings-mp-sensor_switch_wlan1_local_outgoing.dat" using 1:2 with lines
+
+# SmartThings Multipurpose Sensor remote
+# eth0
+set output './result/smartthings-mp-sensor_switch_eth0_timestamp_remote_incoming.png'
+set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (eth0)"
+plot "./result/smartthings-mp-sensor_switch_eth0_remote_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_switch_eth0_timestamp_remote_outgoing.png'
+set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (eth0)"
+plot "./result/smartthings-mp-sensor_switch_eth0_remote_outgoing.dat" using 1:2 with lines
+# eth1
+set output './result/smartthings-mp-sensor_switch_eth1_timestamp_remote_incoming.png'
+set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (eth1)"
+plot "./result/smartthings-mp-sensor_switch_eth1_remote_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_switch_eth1_timestamp_remote_outgoing.png'
+set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (eth1)"
+plot "./result/smartthings-mp-sensor_switch_eth1_remote_outgoing.dat" using 1:2 with lines
+# wlan1
+#set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_incoming.png'
+#set title "SmartThings Multipurpose Sensor Incoming Remote Traffic (wlan1)"
+#plot "./result/smartthings-mp-sensor_switch_wlan1_remote_incoming.dat" using 1:2 with lines
+#set output './result/smartthings-mp-sensor_switch_wlan1_timestamp_remote_outgoing.png'
+#set title "SmartThings Multipurpose Sensor Outgoing Remote Traffic (wlan1)"
+#plot "./result/smartthings-mp-sensor_switch_wlan1_remote_outgoing.dat" using 1:2 with lines
+
+# SmartThings Multipurpose Sensor phone local
+# wlan1
+set output './result/smartthings-mp-sensor_phone_wlan1_timestamp_local_incoming.png'
+set title "SmartThings Multipurpose Sensor Phone Incoming Local Traffic (wlan1)"
+plot "./result/smartthings-mp-sensor_phone_wlan1_local_incoming.dat" using 1:2 with lines
+set output './result/smartthings-mp-sensor_phone_wlan1_timestamp_local_outgoing.png'
+set title "SmartThings Multipurpose Sensor Phone Outgoing Local Traffic (wlan1)"
+plot "./result/smartthings-mp-sensor_phone_wlan1_local_outgoing.dat" using 1:2 with lines
+