From owner-freebsd-net@FreeBSD.ORG Fri Apr 1 14:03:43 2011 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 075941065670 for ; Fri, 1 Apr 2011 14:03:43 +0000 (UTC) (envelope-from ulsanrub@gmail.com) Received: from mail-iy0-f182.google.com (mail-iy0-f182.google.com [209.85.210.182]) by mx1.freebsd.org (Postfix) with ESMTP id BFC988FC0A for ; Fri, 1 Apr 2011 14:03:42 +0000 (UTC) Received: by iyj12 with SMTP id 12so4470890iyj.13 for ; Fri, 01 Apr 2011 07:03:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=M8bKFWig5KPy5W8kP7DL3LLXVTYDGMgHgJmjk1zO/cs=; b=WFDjqCwA+boCOWk54BElkAJE91HwtTlWImudzZmvKQ6U3dFlBUyjFdftuOiVBfpcGS w7IfnCmDFm+g6zryH0JZUTn9AlMrMOncWvazuQ4c0LH1u9U+gmngymzIG2Xz9kvbfa02 7QJjNvBu4108WVFS//IJrAQ6rViLJ1XFhQrxA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=kirP8b6dM+IYJa5EeIyI3GX9wGLE7IAkP3IEe/NftUOytaG177lDcoYlu+FmSRna/v qCpJeiA+sou8onR04jRA9TMp93WQwVe8lp2foc8+oTDs0gkD/HQCy/XysIL2N1Z+iQIG s9/Gi1VB+evOfhKmxUd014EIHqxZuTpz1h3tI= MIME-Version: 1.0 Received: by 10.43.65.132 with SMTP id xm4mr5451001icb.424.1301666621723; Fri, 01 Apr 2011 07:03:41 -0700 (PDT) Received: by 10.42.240.71 with HTTP; Fri, 1 Apr 2011 07:03:41 -0700 (PDT) In-Reply-To: <4D945B55.6080600@freebsd.org> References: <4D945B55.6080600@freebsd.org> Date: Fri, 1 Apr 2011 10:03:41 -0400 Message-ID: From: Kyungsoo Lee To: Julian Elischer Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: Michael Proto , freebsd-net Subject: Re: UDP on FreeBSD X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 Apr 2011 14:03:43 -0000 Thank you for your responses. :) On Thu, Mar 31, 2011 at 6:45 AM, Julian Elischer wrote: > On 3/30/11 2:32 PM, Michael Proto wrote: > >> On Wed, Mar 30, 2011 at 3:43 PM, Kyungsoo Lee wrote: >> >>> Hi All, >>> >>> I want to check UDP on FreeBSD. >>> >>> I am using IPERF on FreeBSD for wireless testing with Proxim 8470 FC >>> PCMCIA >>> card on IBM T42 and T61. >>> >>> When I'm transmitting data from FreeBSD to FreeBSD or CentOS using Iperf >>> with -u -b 100M on iperf, they had lost lots of packets. Sniffer near the >>> two nodes shows the sender could not send all packets. Iperf sender said >>> that they try to send 85469 packets but they lost 68824 packets. I think >>> that the UDP buffer on the sender could not handle all packets. >>> >>> But if I'm trying to send data from CentOS to FreeBSD using Iperf with -u >>> -b >>> 100M option on iperf, the sender tries 18636 packets so they lost few >>> packets like 1 or 2 packets.As a result, they have similar bandwidth >>> result >>> on the report. I think that it happens from different implement between >>> FreeBSD and Linux. >>> >>> But I want to double check that this is normal for FreeBSD or not. If I >>> have >>> some missing points, let me know please. >>> >>> Thank you! >>> _______________________________________________ >>> 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" >>> >>> Just a guess, but have you tried adjusting the net.inet.udp.maxdgram >> sysctl? I believe the default is somewhat low for UDP transmit. I >> don't know what size packets iperf is using but increasing the >> maxdgram value might help your testing. >> > > this is many years out of date but a decade or so ago freebsd would return > ENOBUFS > and linux would block when the outgoing queues filled up. > the answer then was that teh programs are all written for Linux and didn't > check for ENOBUFS > but that may be out of date now in many different ways. > >> >> -Proto >> >> _______________________________________________ >> 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" >> >> >