From f0635af77e5966b8b8164d479bc7bca480dff597 Mon Sep 17 00:00:00 2001 From: Eduardo Schulz Date: Wed, 28 Aug 2024 16:32:59 -0300 Subject: [PATCH] add script to test throughput and retransmissions --- scripts/iperf3.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 scripts/iperf3.sh diff --git a/scripts/iperf3.sh b/scripts/iperf3.sh new file mode 100755 index 0000000..8c6443b --- /dev/null +++ b/scripts/iperf3.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +tms=1 +sizes=(128 512 1024 1472) + +if [ -z "$1" ] || [ -z "$2" ] +then + echo "Must specify an ip address" + echo "./iperf3.sh <how many iterations of every test : optional>" +fi + +if [ $3 ]; then + times = $3 +fi + +for s in ${sizes[@]}; +do + for ((c = 1; c<=$tms; c++)) + do + echo "$s - $c" + iperf3 -c $1 --set-mss $s -T $s$2 -R + done +done + +