Commit 389fdd62 authored by Deathcrow's avatar Deathcrow

Adding gnuplot scripts as examples to repository

parent ca317f54
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
show timestamp
set title "$1" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
set y2label "Mbps"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd" noenhanced pi 10000 w lp, \\
"$1" using 1:(\$8>=2147483647 ? 0 : \$8) title "snd_ssthresh" noenhanced pi 10000 w lp, \\
"$2" using 1:(\$4) title "bandwidth" noenhanced axes x1y2 pi 100 w lp
# "$1" using 1:14 title "lastQ" pi 10000 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
set size square
show timestamp
set size ratio 0.75
set title "$1 $2" noenhanced
set xlabel "time (seconds)"
set ylabel "Mbps"
set y2label "SRTT in ms"
set y2tics border nomirror
plot "$3" using 1:(\$4) title "bw_0" noenhanced w lines, \\
"$4" using 1:(\$4) title "bw_1" noenhanced w lines, \\
"$1" using 1:(\$10 / 1000) title "srtt_0 in ms" noenhanced axes x1y2 pi 100000 w lp, \\
"$2" using 1:(\$10 / 1000) title "srtt_1 in ms" noenhanced axes x1y2 pi 100000 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
set size square
show timestamp
set size ratio 0.75
set title "$1 $2" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
set y2label "SRTT in ms"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd_0" noenhanced w lines, \\
"$2" using 1:7 title "snd_cwnd_1" noenhanced w lines, \\
"$1" using 1:(\$10 / 1000) title "srtt_0 in ms" noenhanced axes x1y2 pi 100000 w lp, \\
"$2" using 1:(\$10 / 1000) title "srtt_1 in ms" noenhanced axes x1y2 pi 100000 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
show timestamp
set size ratio 0.75
set title "$1 $2" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
set y2label "Mbps"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd_0" noenhanced w lines, \\
"$2" using 1:7 title "snd_cwnd_1" noenhanced w lines, \\
"$3" using 1:(\$4) title "bw_0" noenhanced axes x1y2 pi 100 w lp, \\
"$4" using 1:(\$4) title "bw_1" noenhanced axes x1y2 pi 100 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
show timestamp
set title "$1" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh, ...)"
set y2label "srtt"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd" noenhanced pi 10000 w lp, \\
"$1" using 1:(\$8>=2147483647 ? 0 : \$8) title "snd_ssthresh" noenhanced pi 10000 w lp, \\
"$1" using 1:(\$10 / 1000) title "srtt in ms" axes x1y2 pi 100000 w lp
# "$1" using 1:14 title "lastQ" pi 10000 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
show timestamp
set title "$1"
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh, ...)"
set y2label "srtt"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd" pi 10000 w lp, \\
"$1" using 1:(\$8>=2147483647 ? 0 : \$8) title "snd_ssthresh" pi 10000 w lp, \\
"$1" using 1:10 title "srtt" axes x1y2 pi 100000 w lp, \\
"$1" using 1:14 title "lastQ" pi 10000 w lp
EOF
#! /bin/bash
gnuplot -persist <<EOF
set mouse
#set multiplot
set style data linespoints
set size ratio 0.75
show timestamp
set title "$1" noenhanced
set xlabel "time (seconds)"
set ylabel "Segments (cwnd, ssthresh)"
set y2label "decongest count"
set y2tics border nomirror
plot "$1" using 1:7 title "snd_cwnd" noenhanced pi 100 w lp, \\
"$1" using 1:(\$8>=2147483647 ? 0 : \$8) title "snd_ssthresh" noenhanced pi 1000 w lp, \\
"$1" using 1:16 title "reno_count" noenhanced pi 100 w lp, \\
"$1" using 1:14 title "lastQ" noenhanced pi 100 w lp, \\
"$1" using 1:15 title "decongest_count" noenhanced axes x1y2 pi 100 w lp
EOF
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment