From owner-freebsd-questions Wed Sep 25 11:17: 6 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D0EA537B401 for ; Wed, 25 Sep 2002 11:17:03 -0700 (PDT) Received: from mail.cob.rit.edu (mail.cob.rit.edu [129.21.238.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3827943E91 for ; Wed, 25 Sep 2002 11:17:03 -0700 (PDT) (envelope-from knappster@knappster.net) Received: from cobtech10 (roam01333.rit.edu [129.21.238.104]) (authenticated bits=0) by mail.cob.rit.edu (8.12.5/8.12.5) with ESMTP id g8PIH2nu072075; Wed, 25 Sep 2002 14:17:02 -0400 (EDT) (envelope-from knappster@knappster.net) Reply-To: From: "Andy Knapp" To: "'Cody Swanson'" Cc: Subject: RE: Performance issues with natd Date: Wed, 25 Sep 2002 14:17:04 -0400 Message-ID: <000001c264bf$c054cfb0$68ee1581@cobtech10> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.4024 In-Reply-To: <20020925181038.VGQH16629.rwcrmhc51.attbi.com@rwcrwbc58> Importance: Normal X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I agree with the hardware diagnosis. I have almost the same setup on a nat box that I run, and everything works perfectly. I get good transfer speeds, and I use two 3c905b cards from 3com. I would say check and re-check your hardware. Good luck. Andy Knapp -----Original Message----- From: owner-freebsd-questions@FreeBSD.ORG [mailto:owner-freebsd-questions@FreeBSD.ORG] On Behalf Of fozekizer@attbi.com Sent: Wednesday, September 25, 2002 2:11 PM To: Cody Swanson Cc: questions@FreeBSD.ORG Subject: Re: Performance issues with natd it is not necessarily a NATD issue. your setup looks fine. the cards, however, are not exactly new. might wanna check your hardware. if not your hardware, then maybe someone here can give you a way to improve the transfer rate but i really think it has most to do with your hardware. > Hello all, > > I just setup a 4.6.2 machine locally on my network at home to replace > an aging Linux NAT box I had going. Clients behind the new box can > only get 100k/sec downloads while clients behind the old Linux box > (running ipchains) get 400k/sec+ downloads off the same cable modem. > Locally on the new FreeBSD box I can get 400k/sec downloads with lynx, > it just seems as if the NAT is not framing packets right. Also, I have > tried downloads from other freeBSD machines, Linux machines and > windows2000 machines from inside the network. All max out at around > 100k/sec on a download through the NAT box. Again, if I download on > the box it self I can see 400k/sec. > > The machine is a PIII500 with 512mb ram. I have a 3com 3c905 nic for > the internal LAN and a D-Link 530TX revA card for the external link to > my cable modem. I rebuilt the GENERIC kernel with the following > options: > > options IPFIREWALL > options IPDIVERT > > And I added the following lines to rc.conf (as noted in the handbook) > > gateway_enable="YES" > kern_securelevel_enable="NO" > ifconfig_xl0="inet 192.168.1.254 netmask 255.255.255.0" > ifconfig_vr0="DHCP" firewall_enable="YES" > firewall_type="OPEN" > natd_enable="YES" > natd_interface="vr0" > natd_flags="" > > Also, here is a copy of an ifconfig of the internal interface: > > pinky# ifconfig -xl0 > > xl0: flags=8843 mtu 1500 > inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255 > inet6 fe80::260:97ff:fed5:5601%xl0 prefixlen 64 scopeid 0x2 > ether 00:60:97:d5:56:01 > media: Ethernet autoselect (100baseTX ) > status: active > > At first I thought this was a windows TCP window size issue, but then > when my freebsd and Linux boxes showed similar results I concluded > it's an issue with my Nat config. Is there anything I can do to > increase the throughput? I heard that 3com 3c905's are not the best > card going but I have tried swapping the card out with an intel and it > made no difference in speed. Any help would be greatly appreciated. > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message