| #!/bin/sh |
| if test $# -ne 2 |
| then |
| echo error use $0 log timeskip |
| exit |
| fi |
| ../FreeBSD/prtcwndlog -a $2 -r -g -l $1.recv > $1.rcv.txt |
| ../FreeBSD/prtcwndlog -r -g -l $1.send | grep FLIGHT > $1.flight.txt |
| ../FreeBSD/prtcwndlog -r -g -l $1.send | grep ARWND > $1.arwnd.txt |
| ../FreeBSD/prtcwndlog -r -g -l $1.send | grep RWND | grep -v ARWND > $1.rwnd.txt |
| ../FreeBSD/prtcwndlog -r -g -l $1.send | grep OUT_QUEUE > $1.outq.txt |
| gnuplot <<! |
| set output 'plotall.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot000-100.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.000:.100] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot100-200.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.100:.200] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot200-300.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.200:.300] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot300-400.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.300:.400] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot400-500.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.400:.500] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot500-600.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.500:.600] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot600-700.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.600:.700] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot700-800.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.700:.800] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plotp800-900.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.800:.900] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plotp900-1s.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [.900:1.000] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1000-1100.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.000:1.100] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1100-1200.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.100:1.200] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1200-1300.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.200:1.300] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1300-1400.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.300:1.400] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1400-1500.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.400:1.500] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1500-1600.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.500:1.600] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1600-1700.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.600:1.700] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plot1700-1800.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.700:1.800] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plotp1800-1900.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.800:1.900] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| unset multiplot |
| clear |
| reset |
| set output 'plotp1900-2s.ps' |
| set terminal post landscape 'Times-Roman' 12 |
| set terminal post color |
| set xlabel 'time' |
| set ylabel 'size' |
| set multiplot |
| set key outside Right title 'Legend' box 1 |
| set xrange [1.900:2.000] |
| plot '$1.rcv.txt' title 'read', \ |
| '$1.flight.txt' title 'snd-flt', \ |
| '$1.arwnd.txt' title 'snd-arw', \ |
| '$1.outq.txt' title 'snd-q' |
| |
| |
| |
| |