Blasting UDP packets on a 1-Gbps link

From: Long Le (le_at_unc.edu)
Date: 06/21/04

  • Next message: Yohan: "Re: PPPoE"
    Date: Mon, 21 Jun 2004 08:19:45 -0400
    To: freebsd-net@freebsd.org
    
    

    Hi all,

    I've been trying to get iperf to blast UDP packets for 10 minutes on
    a 1-Gbps link. However, iperf stops after a few seconds and complains
    that it can't write to the socket because no buffer space is available.

    'netstat -m' shows that there are lots of mbufs available. I modified
    iperf source code to set the socket's send buffer to 200000 bytes (*)
    but it didn't really help much. In another attempt, I modified iperf
    source code such that it would not quit after failing to write to
    the socket. However, this caused iperf to hang. I use iperf 1.7.0
    and FreeBSD 4.5. The machine I am using has a 1-GHz CPU and 1 Gbytes
    of memory. I could try to write my own program to blast UDP packets
    but would prefer to use available software if possible.

    Has anyone successfully blasted UDP packets on a 1-Gbps link for a
    sustained period and can anyone give me some useful hints?

    Thanks,
    Long

    (*) Apparently, iperf doesn't have an option to set the socket buffer for
    UDP sockets. And there seems to be a limit that doesn't allow to set a
    larger buffer size than around 200000 bytes (this is not related to iperf
    but FreeBSD in general).

    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Yohan: "Re: PPPoE"

    Relevant Pages

    • Re: Blasting UDP packets on a 1-Gbps link
      ... > it can't write to the socket because no buffer space is available. ... In another attempt, I modified iperf ... I could try to write my own program to blast UDP packets but ... I believe this happens regardless of socket buffer size, ...
      (freebsd-net)
    • Re: Losing UDP packets with MFC Sockets
      ... Losing UDP packets is what is SUPPOSED to happen! ... While changes of buffer sizes may give the illusion that you have solved the problem, ... >buffer size of the socket and store the received packet while the PC is ... MVP Tips: http://www.flounder.com/mvp_tips.htm ...
      (microsoft.public.vc.mfc)
    • Re: Losing UDP packets with MFC Sockets
      ... buffer after OnReceive notification? ... >> We are developing a tool which uses UDP packets to receive data from a UDP ... >> buffer size of the socket and store the received packet while the PC is ...
      (microsoft.public.vc.mfc)