From owner-freebsd-net@FreeBSD.ORG Fri Dec 19 19:46:36 2008 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 822D61065678 for ; Fri, 19 Dec 2008 19:46:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.freebsd.org (Postfix) with ESMTP id 59B7B8FC14 for ; Fri, 19 Dec 2008 19:46:36 +0000 (UTC) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 295045C75; Fri, 19 Dec 2008 14:31:12 -0500 (EST) X-Virus-Scanned: amavisd-new+ClamAV at codefab.com Received: from [10.152.145.215] (72-165-115-225.dia.static.qwest.net [72.165.115.225]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTPSA id 6A66B5C30; Fri, 19 Dec 2008 14:31:10 -0500 (EST) Message-Id: From: Chuck Swiger To: chodong2003@yahoo.com In-Reply-To: <889762.96728.qm@web58407.mail.re3.yahoo.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v930.3) Date: Fri, 19 Dec 2008 11:31:09 -0800 References: <889762.96728.qm@web58407.mail.re3.yahoo.com> X-Mailer: Apple Mail (2.930.3) Cc: freebsd-net@freebsd.org Subject: Re: Packet Loss Under FreeBSD 7.0 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, 19 Dec 2008 19:46:36 -0000 On Dec 19, 2008, at 9:42 AM, richard lll wrote: > I am new to FreeBSD and I am developing a program that does heavy > use of UDP multicast over the LAN. This program is incurring 90-100 > percent packet loss on FreeBSD. Packet loss occurs even when a I > send just 3 packets. When I send 1000 packets I get 100% packet > loss. netstat on FreeBSD shows all the packets, but none/few make it > to my program. How are you sending your traffic? send() over a socket(), or via BPF or something else? Does adding something like a usleep(1000) call after each packet being sent do anything to help with the packet lossage? Regards, -- -Chuck