Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 23 Apr 2000 09:25:38 -0700 (PDT)
From:      Bhishan Hemrajani <bhishan@cytosine.dhs.org>
To:        C J Michaels <cjm2@earthling.net>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: cable download varies w/FreeBSD
Message-ID:  <200004231625.e3NGPcc46860@cytosine.dhs.org>
In-Reply-To: <NDBBILKDCLLECBCLPMBIEECLCAAA.cjm2@earthling.net> from C J Michaels at "Apr 23, 2000 11:38:25 am"

next in thread | previous in thread | raw e-mail | index | archive | help
<snip>
> 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<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> 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 <full-duplex> 100baseTX 10baseT/UTP <full-duplex> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200004231625.e3NGPcc46860>