# Script to plot total bytes graphs for network traffic analysis # # by Rahmadi Trimananda (rahmadi.trimananda@uci.edu) # Programming Language Research Group @ University of California, Irvine # Fall 2017 # ************ # # BASIC SETUP # # ************ # #set terminal postscript landscape "Arial, 18" #set terminal postscript eps font 'Helvetica,20' enhanced color set terminal pngcairo enhanced font 'Verdana,10' set autoscale unset key unset log unset label set logscale y 2 set xtics 600 set ytics auto set xlabel "Packet Timestamp (hh:mm:ss)" set ylabel "Packet Bytes (bytes)" set xdata time set timefmt "%H:%M:%S" #set xrange ["06:00:00":"10:00:00"] #set yrange [0:200] set xrange [:] set yrange [1:] # ***************** # # PER DEVICE SETUP # # ***************** # # WeMo switch #set output '../result_tb/wemo_switch_incoming.ps' #set output '../result_tb/wemo_switch_incoming.eps' set output '../result_tb/wemo_switch_packet_size_incoming.png' set title "WeMo Switch Total Bytes Incoming Traffic" plot "../result_tb/wemo_switch_incoming.dat" using 1:2 with lines set output '../result_tb/wemo_switch_packet_size_outgoing.png' set title "WeMo Switch Total Bytes Outgoing Traffic" plot "../result_tb/wemo_switch_outgoing.dat" using 1:2 with lines