I'm inclined to believe that it is your caps/non-caps on the bandwidth designations (i.e. -b 10M -l 32K -w 128K
). I can't test it because we don't know what version you're running. Iperf does make a distinction between bits and bytes:
-f, --format [kmKM] format to report: Kbits, Mbits, KBytes, MBytes
Though, the sections you were modifying were strictly K
or M
:
-b, --bandwidth #[KM] for UDP, bandwidth to send at in bits/sec
(default 1 Mbit/sec, implies -u)
-l, --len #[KM] length of buffer to read or write (default 8 KB)
-w, --window #[KM] TCP window size (socket buffer size)
I can, however, tell you that getting your version up to current will render this issue obsolete. Iperf version 2.0.5 (08 Jul 2010) makes no distinction between the 2 different types in those fields.
Here is your exact cli syntax working for one of my private servers.
Server:
root@AFP001SRV01:~# iperf -s -u
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 208 KByte (default)
------------------------------------------------------------
[ 3] local 127.0.0.1 port 5001 connected with 127.0.0.1 port 40974
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 3] 0.0-10.0 sec 550 KBytes 449 Kbits/sec 0.017 ms 0/ 383 (0%)
^C
root@AFP001SRV01:~#
Client:
root@AFP001SRV01:~# iperf -c 127.0.0.1 -b 10m -l 32k -w 128k
WARNING: option -b implies udp testing
------------------------------------------------------------
Client connecting to 127.0.0.1, UDP port 5001
Sending 32768 byte datagrams
UDP buffer size: 256 KByte (WARNING: requested 128 KByte)
------------------------------------------------------------
[ 3] local 127.0.0.1 port 40542 connected with 127.0.0.1 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 12.0 MBytes 10.0 Mbits/sec
[ 3] Sent 383 datagrams
[ 3] Server Report:
[ 3] 0.0-10.0 sec 550 KBytes 449 Kbits/sec 0.008 ms 0/ 383 (0%)
root@AFP001SRV01:~#