-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add script to test throughput and retransmissions
- Loading branch information
1 parent
eb46178
commit f0635af
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|