Martin T | 4 Apr 2011 14:38
Picon

Iperf ignoring "UDP buffer size" and "TCP window size"

If I execute Iperf(version 2.0.5 (08 Jul 2010) pthreads) client with
"iperf -c 192.168.2.1 -u -fm -t60 -d -b 10m -w 4m" command, Iperf
server with "iperf -s u -w 4m" command, Iperf client with "iperf -c
192.168.1.1 -t 60 -w 2m" command etc, I get the "TCP window size: 50.0
KByte (WARNING: requested 2.00 MByte)", "UDP buffer size: 0.01 MByte
(WARNING: requested 4.00 MByte)" or similar warning. In other words
the value of the "-w" flag seems to be ignored. One example:

[root <at>  ~]# iperf -c 192.168.2.1 -u -fm -t60 -d -b 10m -w 4M
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size: 0.04 MByte (WARNING: requested 4.00 MByte)
------------------------------------------------------------
------------------------------------------------------------
Client connecting to 192.168.2.1, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 0.01 MByte (WARNING: requested 4.00 MByte)
------------------------------------------------------------
[  4] local 192.168.1.1 port 31589 connected with 192.168.2.1 port 5001
[  3] local 192.168.1.1 port 5001 connected with 192.168.2.1 port 38678

What might cause this?

I Googled with 'iperf "WARNING: requested *"', but found anything useful.

regards,
martin

------------------------------------------------------------------------------
(Continue reading)

Marc Herbert | 4 Apr 2011 17:10
Picon

Re: Iperf ignoring "UDP buffer size" and "TCP window size"


------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users

Marc Herbert | 4 Apr 2011 17:11
Picon

Re: Iperf ignoring "UDP buffer size" and "TCP window size"

On Mon, 4 Apr 2011, Martin T wrote:

> If I execute Iperf(version 2.0.5 (08 Jul 2010) pthreads) client with
> "iperf -c 192.168.2.1 -u -fm -t60 -d -b 10m -w 4m" command, Iperf
> server with "iperf -s u -w 4m" command, Iperf client with "iperf -c
> 192.168.1.1 -t 60 -w 2m" command etc, I get the "TCP window size: 50.0
> KByte (WARNING: requested 2.00 MByte)", "UDP buffer size: 0.01 MByte
> (WARNING: requested 4.00 MByte)" or similar warning. 

This warning message means that your operating system denies the
request from iperf. Probably because your request is deemed too big
and would consume too much kernel memory. You either need to configure
your operating system to be more generous, or be less greedy yourself.

Marc.

------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users

Jon Dugan | 4 Apr 2011 16:50
Gravatar

Re: Iperf ignoring "UDP buffer size" and "TCP window size"

Hi Martin,

Iperf isn't ignoring the -w flag, it's asking the OS for 4M of space
but the OS is denying the request.  Most likely this is due to the
limits on the system being set too low.  You can find information on
raising those limits on this page:

http://fasterdata.es.net/fasterdata/host-tuning/

Jon

On Mon, Apr 4, 2011 at 7:38 AM, Martin T <m4rtntns@...> wrote:
> If I execute Iperf(version 2.0.5 (08 Jul 2010) pthreads) client with
> "iperf -c 192.168.2.1 -u -fm -t60 -d -b 10m -w 4m" command, Iperf
> server with "iperf -s u -w 4m" command, Iperf client with "iperf -c
> 192.168.1.1 -t 60 -w 2m" command etc, I get the "TCP window size: 50.0
> KByte (WARNING: requested 2.00 MByte)", "UDP buffer size: 0.01 MByte
> (WARNING: requested 4.00 MByte)" or similar warning. In other words
> the value of the "-w" flag seems to be ignored. One example:
>
> [root <at>  ~]# iperf -c 192.168.2.1 -u -fm -t60 -d -b 10m -w 4M
> ------------------------------------------------------------
> Server listening on UDP port 5001
> Receiving 1470 byte datagrams
> UDP buffer size: 0.04 MByte (WARNING: requested 4.00 MByte)
> ------------------------------------------------------------
> ------------------------------------------------------------
> Client connecting to 192.168.2.1, UDP port 5001
> Sending 1470 byte datagrams
> UDP buffer size: 0.01 MByte (WARNING: requested 4.00 MByte)
(Continue reading)

Martin T | 7 Apr 2011 01:43
Picon

Re: Iperf ignoring "UDP buffer size" and "TCP window size"

Jon, Marc:

thank you for information! I modified following kernel parameters:

#UDP socket receive buffer
net.ipv4.udp_rmem_min
#UDP socket send buffer
net.ipv4.udp_wmem_min
#TCP socket receive max buffer size
net.core.rmem_max
#TCP socket send max buffer size
net.core.wmem_max

..under Debian like this(all values are in bytes):

test: ~# sysctl -w net.ipv4.udp_rmem_min=4194304
net.ipv4.udp_rmem_min = 4194304
test: ~# sysctl -w net.ipv4.udp_wmem_min=4194304
net.ipv4.udp_wmem_min = 4194304
test: ~# sysctl -w net.core.rmem_max=8388608
net.core.rmem_max = 8388608
test: ~# sysctl -w net.core.wmem_max=8388608
net.core.wmem_max = 8388608
test: ~#

Please correct me if those kernel parameters are not the correct
ones(I doubt about "net.ipv4.udp_rmem_min" and "net.ipv4.udp_wmem_min"
because of "_min") or if values are stupid.

However, I managed to start both Iperf server and client in both TCP
(Continue reading)

Marc Herbert | 7 Apr 2011 02:16
Picon

Re: Iperf ignoring "UDP buffer size" and "TCP window size"

Martin,

 This should answer your Linux tuning questions:

http://www.psc.edu/networking/projects/tcptune/#Linux

Cheers,

Marc

------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users

Jon Dugan | 7 Apr 2011 05:32

Re: Iperf ignoring "UDP buffer size" and "TCP window size"

Excerpts from Martin T's message of Wed Apr 06 18:43:12 -0500 2011:
> Jon, Marc:
> 
> thank you for information! I modified following kernel parameters:
> 
> #UDP socket receive buffer
> net.ipv4.udp_rmem_min
> #UDP socket send buffer
> net.ipv4.udp_wmem_min
> #TCP socket receive max buffer size
> net.core.rmem_max
> #TCP socket send max buffer size
> net.core.wmem_max
> 
> ..under Debian like this(all values are in bytes):
> 
> test: ~# sysctl -w net.ipv4.udp_rmem_min=4194304
> net.ipv4.udp_rmem_min = 4194304
> test: ~# sysctl -w net.ipv4.udp_wmem_min=4194304
> net.ipv4.udp_wmem_min = 4194304
> test: ~# sysctl -w net.core.rmem_max=8388608
> net.core.rmem_max = 8388608
> test: ~# sysctl -w net.core.wmem_max=8388608
> net.core.wmem_max = 8388608
> test: ~#
> 
> 
> Please correct me if those kernel parameters are not the correct
> ones(I doubt about "net.ipv4.udp_rmem_min" and "net.ipv4.udp_wmem_min"
> because of "_min") or if values are stupid.
(Continue reading)

清 廖 | 20 Apr 2011 12:54
Picon
Favicon

sender reachs 54M to send packets when link disconnect (802.11g)

Dear all,
I use 802.11g and 54M bandwidth to send udp packet.

When I use only one transmit link to send udp packet, the sender shows the bandwidth is about 24M and the receiver shows the throughput is also about 24M and lost packet is 0%. I thinks it is normal.

But when I use two transmit links to send udp packet in the same channel, the sender shows the bandwidth is 54M and receiver shows the throughput is very low and the lost packet percentage is about 100%.

Furthermore, when link disconnects the sender also reach 54M to send packets.

Could anyone tell me why the sender will reach 54M to send packets when link disconnect or packet loss is high?
Thanks a lot!

Best,
Qing
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users
Marc Herbert | 20 Apr 2011 15:45
Picon

Re: sender reachs 54M to send packets when link disconnect (802.11g)

Hi,

   What seems to happen is that your sending operating system is 
dropping all the packets internally. Since UDP is not reliable your 
operating system is perfectly allowed to do that.

How would you like your operating system to behave instead?

Cheers,

Marc

On Wed, 20 Apr 2011, 清 廖 wrote:

> Dear all,
> I use 802.11g and 54M bandwidth to send udp packet.
> 
> When I use only one transmit link to send udp packet, the sender shows the bandwidth is about 24M and the
> receiver shows the throughput is also about 24M and lost packet is 0%. I thinks it is normal.
> 
> But when I use two transmit links to send udp packet in the same channel, the sender shows the bandwidth is 54M
> and receiver shows the throughput is very low and the lost packet percentage is about 100%.
> 
> Furthermore, when link disconnects the sender also reach 54M to send packets.
> 
> Could anyone tell me why the sender will reach 54M to send packets when link disconnect or packet loss is high?
> Thanks a lot!
> 
> Best,
> Qing
> 
> 
------------------------------------------------------------------------------
Benefiting from Server Virtualization: Beyond Initial Workload 
Consolidation -- Increasing the use of server virtualization is a top
priority.Virtualization can reduce costs, simplify management, and improve 
application availability and disaster protection. Learn more about boosting 
the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users
er krishna | 26 Apr 2011 11:49
Picon

udp bandwidth in iperf

Hi All,

I am trying to use iperf on RHEL 6 and I am getting wrong result in UDP case. My network max spped is 1gbp/s , but with 2.6.32 kernel it is giving me 38 gbp/s. With 2.6.18 kernel I was getting ~800 mbp/s speed. Following command has run for client:

 [root <at> pvm61ext3 iperf-2.0.5]# iperf -c 139.185.51.53  -u -b 300M
------------------------------------------------------------
Client connecting to 139.185.51.53, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size:  256 KByte (default)
------------------------------------------------------------
[  3] local 139.185.48.101 port 6574 connected with 139.185.51.53 port 5001
[ ID] Interval       Transfer     Bandwidth
[  3]  0.0-10.0 sec  44.4 GBytes  38.1 Gbits/sec
[  3] Sent 256383 datagrams
read failed: Connection refused
[  3] WARNING: did not receive ack of last datagram after 2 tries.


Following command has run for server:

[root <at> pvm61ocfs iperf-2.0.5]# iperf -s -w 128k


Can anybody please help me here to understand why it is happening. Is this a kernel bug or iperf bug ?


Krishna

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Iperf-users mailing list
Iperf-users@...
https://lists.sourceforge.net/lists/listinfo/iperf-users

Gmane