I tried to find out the maximum up- and down- DSL throughput I can achieve on my local machine.
I tried it with iptraf
:
On my server with $IP
I started:
iptraf -s
and on my local machine:
iperf -c $IP
will output
------------------------------------------------------------
Client connecting to $IP, TCP port 5001
TCP window size: 21.8 KByte (default)
------------------------------------------------------------
[ 3] local 10.116.135.6 port 50423 connected with $IP port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.3 sec 8.00 MBytes 6.51 Mbits/sec
If I start it in a loop:
while true;do iperf -c $IP |tail -n 1; done
this creates the output:
[ 3] 0.0-11.6 sec 7.50 MBytes 5.45 Mbits/sec
[ 3] 0.0-10.3 sec 8.25 MBytes 6.75 Mbits/sec
[ 3] 0.0-10.2 sec 7.88 MBytes 6.45 Mbits/sec
[ 3] 0.0-10.2 sec 8.25 MBytes 6.81 Mbits/sec
...
To measure over 10 minutes every second, you can also:
iperf -c $IP -i 1 -t 600
This will only show the maximum bandwidth over 10 minutes:
I=600;
iperf -c $IP -i 1 -t $I | awk -F ' +' '{print $5}'|sort|tail -n 1