[Sumover-dev] [svn commit] r4649 - vic/branches/cc/cc

sumover-dev at cs.ucl.ac.uk sumover-dev at cs.ucl.ac.uk
Thu Feb 25 15:31:44 GMT 2010


Author: soohyunc
Date: Thu Feb 25 15:31:44 2010
New Revision: 4649

Added:
   vic/branches/cc/cc/drop.sh   (contents, props changed)

Log:
gnuplot scripts for drawing (received seqno)/(dropped seqno)/cwnd/ALI etc.



Added: vic/branches/cc/cc/drop.sh
==============================================================================
--- (empty file)
+++ vic/branches/cc/cc/drop.sh	Thu Feb 25 15:31:44 2010
@@ -0,0 +1,100 @@
+#!/bin/sh
+
+gnuplot -persist << EOF
+
+set style line 1 lt 1 pt 4 lw 1.5
+set style line 2 lt 2 pt 4 lw 1.5
+set style line 3 lt 3 pt 4 lw 1.5
+set style line 4 lt 4 pt 4 lw 1.5
+set style line 5 lt 5 pt 4 lw 1.5
+
+set mxtics 2
+set mytics 2
+set grid
+
+set xrange [$1:$2]
+set yrange [$3:$4]
+
+plot \
+	"encs.xg" with impulses title "start encoding", \
+	"ence.xg" with impulses title "end encoding", \
+	"inXR.xg" with impulses title "ackvec arrival", \
+	"seqno.xg" ls 3 title "packet", \
+	"drop.xg" lc 1 pt 2 lw 1.2  title "drop"
+
+EOF
+
+gnuplot -persist << EOF
+set terminal postscript eps enhanced color
+set output "drop.eps"
+
+set title "time-seqno plot"
+set xlabel "time (sec)"
+set ylabel "seqno"
+
+set mxtics 2
+set mytics 2
+
+set xrange [$1:$2]
+set yrange [$3:$4]
+
+plot \
+"encs.xg" with impulses title "start encoding", \
+"ence.xg" with impulses title "end encoding" lc 4 lt 1, \
+"inXR.xg" with impulses title "ackvec arrival" lt 1 lc 2, \
+"seqno.xg" pt 4 lc 3 title "packet", \
+"drop.xg" lc 1 pt 2 lw 1.2 title "drop"
+
+EOF
+
+gnuplot -persist << EOF
+set terminal postscript eps enhanced color
+set output "enct.eps"
+
+set title "encoding time"
+set xlabel "num encoding"
+set ylabel "time (sec)"
+
+set yrange [0:0.005]
+set mxtics 2
+set mytics 2
+
+plot \
+"enct.xg" with lines title "encoding time", \
+"grt.xg" with lines lt 1 lc 3 title "grabbing time"
+
+EOF
+
+gnuplot -persist << EOF
+set terminal postscript eps enhanced color
+set output "cwnd.eps"
+
+set title "cwnd"
+set xlabel "vic run time (sec)"
+set ylabel "cwnd"
+
+set mxtics 5
+set mytics 2
+set xrange [$1:$2]
+set yrange [0:]
+set grid xtics ytics mytics
+
+plot "cwnd.xg" w lp lc 3 pt 4 ps .4 title "cwnd"
+EOF
+
+gnuplot -persist << EOF
+set terminal postscript eps enhanced color
+set output "ALI.eps"
+
+set title "average loss interval"
+set xlabel "vic run time (sec)"
+set ylabel "ALI"
+
+set mxtics 5
+set mytics 2
+set xrange [$1:$2]
+set yrange [0:]
+set grid xtics ytics mytics
+
+plot "ALI.xg" w lp lc 1 pt 5 ps .4 title "ALI"
+EOF



More information about the Sumover-dev mailing list