Skip to content

Commit

Permalink
add script to test throughput and retransmissions
Browse files Browse the repository at this point in the history
  • Loading branch information
eduardoschulz committed Aug 28, 2024
1 parent eb46178 commit f0635af
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions scripts/iperf3.sh
Original file line number Diff line number Diff line change
@@ -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 <addr> <title> <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


0 comments on commit f0635af

Please sign in to comment.