From owner-freebsd-net@FreeBSD.ORG Thu Jul 7 09:01:04 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 32E8D106564A for ; Thu, 7 Jul 2011 09:01:04 +0000 (UTC) (envelope-from perryh@pluto.rain.com) Received: from agora.rdrop.com (agora.rdrop.com [IPv6:2607:f678:1010::34]) by mx1.freebsd.org (Postfix) with ESMTP id 14E958FC15 for ; Thu, 7 Jul 2011 09:01:04 +0000 (UTC) Received: from agora.rdrop.com (66@localhost [127.0.0.1]) by agora.rdrop.com (8.13.1/8.12.7) with ESMTP id p6790xw8080788 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 7 Jul 2011 02:01:00 -0700 (PDT) (envelope-from perryh@pluto.rain.com) Received: (from uucp@localhost) by agora.rdrop.com (8.13.1/8.12.9/Submit) with UUCP id p6790xS7080787; Thu, 7 Jul 2011 02:00:59 -0700 (PDT) Received: from fbsd81 ([192.168.200.81]) by pluto.rain.com (4.1/SMI-4.1-pluto-M2060407) id AA23423; Thu, 7 Jul 11 01:51:27 PDT Date: Thu, 07 Jul 2011 08:52:12 -0700 From: perryh@pluto.rain.com To: kob6558@gmail.com Message-Id: <4e15d62c.nkl6i2oVCMDWLBPl%perryh@pluto.rain.com> References: <7575C8FD-4E99-4A27-833F-312230078E9E@mac.com> In-Reply-To: User-Agent: nail 11.25 7/29/05 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-net@freebsd.org, spork@bway.net Subject: size-dependent packet loss (Re: bce packet loss) 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: Thu, 07 Jul 2011 09:01:04 -0000 Kevin Oberman wrote: > ... Years ago, when coaxial Ethernet the norm ... Aha! Another old-timer who has been around long enough to remember 10Mb Ethernet! Maybe something in the following will ring a bell? I have a (to me) very strange problem, for which I have a usable workaround but no actual solution, when I try to send "large" packets from an ancient Sun-3/50 (or 3/60, the same thing happens with either) through any hub I have ever tried to connect it to: * Packets up to about 750 or 800 bytes get through just fine, but the loss rate goes up sharply as size increases beyond that and reaches 100% somewhere around 900 or 950 bytes. (A hub that is smart enough to show such things logs a "late collision" error when it drops one of these large-ish packets.) * The problem does not seem to be related to high overall data rate: it arises even sending only one packet per second (e.g. ping). The obvious explanation is "physical layer problems", e.g. bad 10Base2 termination, but that does not hold up under investigation: * There is no problem _receiving_ large packets via the same connection: I can FTP an arbitrarily large file from an i386 (running either FreeBSD or Windows) through the hub _to_ the Sun box, but an attempt to FTP a 1KB file _from_ the Sun through the hub will never complete because the data packet is always dropped (unless I arrange to set the MTU to, say, 640 bytes so that large packets aren't used). It does not matter which end is controlling the FTP session: a "put" issued from the Sun or a "get" issued from the i386 -- either of which transfers the file from the Sun to the i386 -- will fail; a "get" from the Sun or a "put" from the i386 will work (transferring the file in the other direction). * If I move the 10Base2 tee connector from the hub to a 10Base2 port on the i386, so that the Sun and i386 boxes are connected directly by 10Base2 and no hub is involved, everything works properly in both directions. This pretty well eliminates cabling/termination as a factor. (Of course, this approach requires the i386 to have a 10Base2 connection; most of mine are new enough that they don't.) * It does not matter if the connection from the Sun-3 to the hub is made via coax using the built-in 10Base2 transceiver, coax using an external transceiver, or 10BaseT (necessarily using an external transceiver, since these Suns have only AUI and 10Base2 built in); nor does it seem to matter what brand of hub is used or even whether it is 10Mb-only or 10/100. Nor does it seem possible to blame the hub: I've tried several, of different brands, and all behave the same way; and there's no problem communicating among i386 systems through any of these hubs. Restricting the MTU to 640, and the NFS read and write data sizes (which must be a power of 2) to 512, is a usable workaround, but I would really like to understand what is going on!