From owner-freebsd-questions Sun Apr 23 9:25:54 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id B3A4637B691 for ; Sun, 23 Apr 2000 09:25:43 -0700 (PDT) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.10.0/8.10.0) id e3NGPcc46860; Sun, 23 Apr 2000 09:25:38 -0700 (PDT) From: Bhishan Hemrajani Message-Id: <200004231625.e3NGPcc46860@cytosine.dhs.org> Subject: Re: cable download varies w/FreeBSD In-Reply-To: from C J Michaels at "Apr 23, 2000 11:38:25 am" To: C J Michaels Date: Sun, 23 Apr 2000 09:25:38 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 1. I would personally check the MTU setting (which can be checked with > ifconfig on BSD) and see if it matches that of the Win box. You will need > to find out how to check that on windows. > Both are set to 1500. > 2. Make sure the network card that is plugging into the cable modem is > explicitly set to 10BaseT half-duplex. If it's configuring to full duplex > or 100BaseTX you may see this problem. > de1: flags=8843 mtu 1500 inet 24.1.xxx.xxx netmask 0xffffff00 broadcast 24.1.xxx.255 ether 00:40:05:a2:c9:49 media: autoselect (10baseT/UTP) status: active supported media: autoselect 100baseTX 100baseTX 10baseT/UTP 10baseT/UTP It doesn't say if it is half-duplex, does it? (in media) > 3. Disable NAT completely and see if it makes any difference, so we can > eliminate NAT as a possible cause. I elminated NAT, and I got a little bit faster speed. > > Also, what version of FreeBSD are you running? I'm running 3.4-RELEASE. Also, I kind of figured out the problem. I found out that there were some tweaks for cable modems. I applied the following tweaks, and I eventually got the same speed: # sysctl -w net.inet.tcp.sendspace=186880 # sysctl -w net.inet.tcp.recvspace=186880 I got these values from www.speedguide.net. I want to apply another tweak which changes the buffer for the IRQ that the NIC card uses. I'm not sure on how to do this on FreeBSD, but it can be done on Windows. Here is some more information on it: http://www.speedguide.net/Cable_modems/cable_irq.shtml But, the one thing that confuses me is, why was it that when I disabled NAT I got a little bit faster speeds? And also, I've noticed that now I sometimes get better speeds on the FreeBSD box than on the Windows boxes that are running behind it. Is this just because NAT Is slow, or am I doing something wrong? Thank you for all of your help. --bhishan > > -- > Chris > > -----Original Message----- > From: owner-freebsd-questions@FreeBSD.ORG > [mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Bhishan > Hemrajani > Sent: Wednesday, April 12, 2000 6:25 PM > To: freebsd-questions@FreeBSD.ORG > Subject: cable download varies w/FreeBSD > > > I am having a little problem with download speeds > in FreeBSD. I currently have cable with COX@HOME. > I am running my machine as a nat server in order > for the computer's on my network to access the > internet. > > However, when I download a file through nat, > the speed varies from where I download the file > directly with the cable modem. > When I download through nat, the speed is about > 15-30kb/sec. But, when I hook the cable modem > up to one of the windows computers I get about > 150-300kb/sec. > > At first I thought nat must be slow, but when I > download a file on the nat machine, it is still > around the same speed. > > Is there a reason for this? The exact > file I am trying to download is: > http://www.juston.com/vfs/pview.cgi/pretender/path/WinOnCD.rar > > Thank you. > > --bhishan [Attachment, skipping...] To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message