# file to plot iperf3 results for file 10.201.1.2:param:pacing_gain:1:10.0ms # file to plot iperf3 results for file 10.201.1.2:param:pacing_gain:1:10.0ms set term png noenhanced size 600, 400 set key font ',10' set macro set grid xtics set grid ytics set key width -12 set label "Data Dir: param-sweep.new " at character .5,.5 font ",9" set label "netem delay 5 ms, loss rate 0.01\% " at character 42,.5 font ",9" set title "Throughput: 4 parallel streams; bbr2 vs cubic; overlapped \n parameter sweep of pacing_gain (1), sum of 2 streams each \n nersc-tbn-1 to 10.201.1.2 \n 10Gbps host to 10Gbps host, rtt = 10.0ms" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128.all.dat" using 1:2 nooutput prefix "all1" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128.all.dat" using 3:4 nooutput prefix "all2" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr2" cr_title = "title 'cubic'" br_title = "title 'bbr2'" set xlabel "time \(seconds\)" set ylabel "Bandwidth \(Gbits/second\)" set y2label "TCP Retransmits" set ytics nomirror set y2tics set output "gnuplot/10.201.1.2:param:pacing_gain:1:10.0ms.png" set xrange [1:all1_max_x] set yrange [0:ceil(all2_max_x * 1.4)] set y2range [0:ceil(all2_max_y * 2 + 1)] cubic_title = sprintf("title 'cubic'") bbr2_title = sprintf("title 'bbr2'") stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic128" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr2128" cubic_title_128 = sprintf("title 'cubic: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 128, cubic128_mean_x, .00963300 ) bbr2_title_128 = sprintf("title 'bbr2: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 128, bbr2128_mean_x, 0 ) stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:192:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic192" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:192:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr2192" cubic_title_192 = sprintf("title 'cubic: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 192, cubic192_mean_x, .01021900 ) bbr2_title_192 = sprintf("title 'bbr2: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 192, bbr2192_mean_x, 0 ) stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:256:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic256" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:256:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr2256" cubic_title_256 = sprintf("title 'cubic: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 256, cubic256_mean_x, .01041700 ) bbr2_title_256 = sprintf("title 'bbr2: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 256, bbr2256_mean_x, 0 ) stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:320:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic320" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:320:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr2320" cubic_title_320 = sprintf("title 'cubic: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 320, cubic320_mean_x, .00974600 ) bbr2_title_320 = sprintf("title 'bbr2: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 320, bbr2320_mean_x, 0 ) stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:64:10.0ms.even.sum.dat" using 3:4 nooutput prefix "cubic64" stats "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:64:10.0ms.odd.sum.dat" using 3:4 nooutput prefix "bbr264" cubic_title_64 = sprintf("title 'cubic: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 64, cubic64_mean_x, .01016500 ) bbr2_title_64 = sprintf("title 'bbr2: %s=%d, %.2f Gbps, %.4f%% retrans'", "pacing_gain", 64, bbr264_mean_x, 0 ) plot \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.odd.sum.dat" using 1:3 @bbr2_title_128 with linespoints pt 5 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:192:10.0ms.odd.sum.dat" using 1:3 @bbr2_title_192 with linespoints pt 5 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:256:10.0ms.odd.sum.dat" using 1:3 @bbr2_title_256 with linespoints pt 5 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:320:10.0ms.odd.sum.dat" using 1:3 @bbr2_title_320 with linespoints pt 5 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:64:10.0ms.odd.sum.dat" using 1:3 @bbr2_title_64 with linespoints pt 5 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:128:10.0ms.even.sum.dat" using 1:3 @cubic_title_128 with linespoints pt 3 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:192:10.0ms.even.sum.dat" using 1:3 @cubic_title_192 with linespoints pt 3 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:256:10.0ms.even.sum.dat" using 1:3 @cubic_title_256 with linespoints pt 3 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:320:10.0ms.even.sum.dat" using 1:3 @cubic_title_320 with linespoints pt 3 ps .5, \ "pscheduler_both_p4:pacing_gain_1/10.201.1.2:1:pacing_gain:64:10.0ms.even.sum.dat" using 1:3 @cubic_title_64 with linespoints pt 3 ps .5, \