From c4ea007aa24d97dc9d42a46b784651abce938d02 Mon Sep 17 00:00:00 2001 From: Langspielplatte Date: Fri, 13 Jan 2023 09:53:07 +0100 Subject: [PATCH] Adds RTT CDF plot. --- plot_transmission_timeline.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/plot_transmission_timeline.py b/plot_transmission_timeline.py index 0cbe628..0b7e62a 100755 --- a/plot_transmission_timeline.py +++ b/plot_transmission_timeline.py @@ -211,9 +211,10 @@ if __name__ == "__main__": else: plt.show() + #goodput cdf plt.clf() - print("Calculate and polt CDF...") + print("Calculate and polt goodput CDF...") plot_cdf(transmission_df, "goodput") plt.xlabel("goodput [mbps]") plt.ylabel("CDF") @@ -221,5 +222,19 @@ if __name__ == "__main__": if args.save: plt.savefig("{}{}_cdf_plot.pdf".format(args.save, "goodput")) + else: + plt.show() + + # rtt cdf + plt.clf() + + print("Calculate and polt rtt CDF...") + plot_cdf(transmission_df, "ack_rtt") + plt.xlabel("ACK RTT [s]") + plt.ylabel("CDF") + plt.legend(["BBR"]) + + if args.save: + plt.savefig("{}{}_cdf_plot.pdf".format(args.save, "ack_rtt")) else: plt.show() \ No newline at end of file