Subject: Re: ssh performance, incoming slow, outgoing fast
To: James Sharp <jsharp@psychoses.org>
From: Wayne Cuddy <wcuddy@crb-web.com>
List: netbsd-help
Date: 03/01/2002 11:05:40
Ok, I am using the sip driver using the ukphy mii. The card is a Netgear
FA-311.  I have had no success using the 'mediaopt' option for ifconfig.  I
have, however, been able to use the 'media' option with ifconfig.  It appears
that I can pass, via the 'media' option to ifconfig, the list that is
displayed during boot from the ukphy driver.  It lists the following:

ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto

The interesting this is that when I force the card to 100baseTX-FDX the output
from 'ifconfig sip0' shows the card is running 100baseTX full-duplex without
autoselect but the performance sucks.  If I simply specify 'auto' the card
auto-negotiates 100baseTX full-duplex and works like a charm.  My question is
why does it perform well with autoselect but not when I force it even though
it
appears to use the same media-type?

Once everything is configured for autoselect I can FTP an 11 meg file in
about 1 second, and scp the same file in about 9 seconds.  I am correct is
assuming it takes that much longer because of the ssh encryption?

Thanks,
Wayne

On Thu, Feb 28, 2002 at 05:24:12PM -0500, James Sharp wrote:
> > On Thu, Feb 28, 2002 at 05:02:42PM -0500, Wayne Cuddy wrote:
> > > I have 2 NetBSD 1.5.3_ALPHA boxes and a single Debian Linux box connection to
> > > a 100/10 NetGear switch.  If I transfer files from NetBSD to Linux, at 100MB,
> > > using either sftp or scp the transfer speeds are what I would expect.  However
> > > if I attempt to transfer files to a NetBSD box the speed drops below 10MB!!
> > > I tested this moving from between NetBSD boxes and got the same result.  Has
> > > anyone seen this type of behavior before?
> > >
> > > Thanks,
> > > Wayne
> >
> > Ok, I agree that this could be a auto-negotiation issue.  Can you guys give me
> > some pointers on how to force the media to 100Base full-duplex on NetBSD?
> >
> 
> ifconfig <interfaceid> media 100BaseTX mediaopt full-duplex
> 
> ex...
> 
> ifconfig fxp0 media 100BaseTX mediaopt full-duplex
> 
> (might be 100Base-TX...I can never remember the exact command)
> 
>