SOLUTION: Network slowness

From: Kevin Colagio (kdc@rochester.rr.com)
Date: Mon Jan 06 2003 - 00:16:31 EST


Many thanks to everyone who offered suggestions to the problem.

After much debate (OK, since it's a personal machine, it was about a 10
minute debate) I decided to do a re-install (I had new hardware to add
anyway). After installing the system, I had no problems. I applied the
Solaris 8 Patch Cluster and BOOM! back to having problems....so...

Digging into the Solaris 8 cluster, I found that the patch 110723-05 is an
updated driver for the eri interface. Backing out that patch and rebooting
solved the problem. :)

Again, I'd like to thank everyone for offering suggestions and ideas on what
the problem could be. I don't know what changed in the patch, but I'm
hoping someone at Sun sees this and can forward it onto the right people
(I'm more than happy to answer any questions they have) so that the next
version of that patch isn't a problem.

Kevin Colagio
kdc@rochester.rr.com
System Administrator and Perpetual Student.

-----Original Message-----
From: Kevin Colagio [mailto:kdc@rochester.rr.com]
Sent: Friday, December 20, 2002 12:55 AM
To: Kevin Colagio; sunmanagers@sunmanagers.org
Subject: RE: Network slowness -- *sigh* And nothing yet resolved...

I had many responses to the last round and 90% of them suggested setting the
port speed by hand to static values. Some asked what I was using for ndd
commands (listed below) and others sent over /etc/system mods (also listed
below). All with no change in the way it worked.

I've rebooted the system after any /etc/system change, and had at least 2
people mention that ndd does not work consistently.

------------ /etc/system mods -----------------
set eri:adv_autoneg_cap=0
set eri:adv_100T4_cap=0
set eri:adv_100fdx_cap=1
set eri:adv_100hdx_cap=0
set eri:adv_10fdx_cap=0
set eri:adv_10hdx_cap=0
------------ end /etc/system mods -------------

------------ ndd commands ---------------------
ndd -set /dev/eri adv_autoneg_cap 0
ndd -set /dev/eri adv_100T4_cap 0
ndd -set /dev/eri adv_100fdx_cap 1
ndd -set /dev/eri adv_100hdx_cap 0
ndd -set /dev/eri adv_10fdx_cap 0
ndd -set /dev/eri adv_10hdx_cap 0
---------- end ndd commands --------------------

There were a few mentions of patches, so being diligent, I went to
sunsolve.sun.com and confirmed that I did have the latest patches
(109882-06, 110723-05, and 111179-06 [a PROM update]). Still no change.

Someone did mention changing the hosts line in /etc/nsswitch.conf to just be
files and then add the destination IP to the hosts file, but name <--> IP
resolution isn't the issue.

Another mention was that there may have been a Linksys <--> Sun
compatibility issue, but when I searched for it at the Sun Managers site, I
couldn't find it.

Running snoop and looking for broadcasts, pings, etc... was also mentioned,
but I ran Ethereal and nothing particularly strange showed up.

The MTU was another possible option, but both the Linksys and the Sun are
set for 1500.

Someone said to turn off port forwarding, but that was already off as the
test to see if that would work didn't change anything.

Another suggestion was to change IP addresses, tried that, no difference.

Lowering the Sun's IP address (thinking that maybe the NAT box had a limited
range) was also tried due to someone's suggestion. No luck with that
either.

I also confirmed that NIS is NOT running.

"Try hooking the Sun directly to the cable modem." Unfortunately, this is a
mess to try and do, but it is the one thing that I haven't been able to
confirm or deny.

And lastly (I think), the network and subnet masks are set the same.

Thanks for all the ideas and info. I think I'm just going to go find
another NIC card somewhere.

Kevin Colagio
kdc@rochester.rr.com
System Administrator and Perpetual Student.

-----Original Message-----
From: Kevin Colagio [mailto:kdc@rochester.rr.com]
Sent: Tuesday, December 17, 2002 11:28 PM
To: sunmanagers@sunmanagers.org
Cc: Kevin Colagio
Subject: RE: Network slowness -- And the saga continues, but getting
closer...?

Another round of good suggestions, but still no resolution. Here's the
latest set of ideas.... (I'm hoping they trigger something for someone).

1) Try plugging the Sun into a different switch port. (I can get from the
PC to the Sun with no problem...so the ports are working right).
2) Is there anything in the messages/syslog files giving some indication?
(Nothing. zip, zero, zilch. :( ).
3) When you plug in the cable, it should report a speed and other info (See
note below)
4) Try turning off nscd (Killed it, no change.)
5) Try turning the PC off and see if the performance gets better. (no
change).
6) Compare speed and mode settings with the switch. (See note below)
7) Check netstat for collisions (Pasted info below)
8) Are you running full duplex? (See note below)

Note: The switch is a 10/100 switch capable of doing half for full duplex.
The other two (non-Sun) boxes plugged in come up 100/Full. When the Sun box
boots, the Linksys shows it as being 100/Full. Once the message,
"configuring network interface" shows up, it drops to 100/Half. Nothing I
do with ndd seems to take it back to the 100/Full.

There are no collisions reported as shown in this netstat output (excuse any
formatting problems...may be best to copy and paste into Notepad if you are
on a PC). This was captured via a telnet session.

www.MyReefs.com:/ [6]% netstat -i 10
    input eri0 output input (Total) output
packets errs packets errs colls packets errs packets errs colls
52380 0 34217 3 0 52634 0 34471 3 0
15 0 1 0 0 15 0 1 0 0
2 0 2 0 0 2 0 2 0 0
15 0 18 0 0 15 0 18 0 0
12 0 2 0 0 12 0 2 0 0
2 0 2 0 0 2 0 2 0 0
2 0 2 0 0 2 0 2 0 0
12 0 2 0 0 12 0 2 0 0
2 0 2 0 0 2 0 2 0 0
2 0 3 0 0 2 0 3 0 0
12 0 2 0 0 12 0 2 0 0
2 0 2 0 0 2 0 2 0 0

I think part of the problem is a disagreement between the switch and the Sun
box as to what speed it's running at, but that makes no sense as to why
local connections are fast and remote ones are slow (to the point of
stalling). Again, if I telnet from the PC to the Sun, it's very
responsive....if I telnet in from work to the Sun, it's unusably slow.
Also, when I hit my websites, there seems to be no issues what-so-ever (even
when I hit them from a remote location).

Any other ideas out there? I know I'm stumped.

Thanks again for all the help in working on this.

Kevin Colagio
kdc@rochester.rr.com
System Administrator and Perpetual Student.

-----Original Message-----
From: sunmanagers-admin@sunmanagers.org
[mailto:sunmanagers-admin@sunmanagers.org]On Behalf Of Kevin Colagio
Sent: Monday, December 16, 2002 9:29 PM
To: sunmanagers@sunmanagers.org
Subject: RE: Network slowness -- No fix yet....

Thanks to those who responded so far....here are the ideas I have received:

1) check /etc/nsswitch.conf (Note: I never had a problem resolving a name)
2) Set the port speed manually, no autonegotiation (set it, but that didn't
change how it was recognized...)
3) Comparison to a Linux router box....this isn't Linux, it's a Solaris box
with a Linksys router...I'm not running iptables or anything else on the Sun
box... I did try setting the MTU to 1500, but didn't notice a difference.
4) Setup my Sun box as a DNS server for the LAN and point the other systems
there (again, I'm not having any problems resolving).

The problem is only when data is going back and forth between the Sun box
and another system, not when trying to locate a host or resolve a name.

I have also tried the following:

1) (again) set the MTU on the Linksys box.
2) set the port speed manually on the Sun box (The Linksys does 10 or
100...I can't set it anywhere)
3) setup forwarding on the Linksys so that anything hitting port 23 on the
Linksys went to port 23 on the Sun (do not pass go, do not collect $200).

None of the above made any impact.

I also ran chkrootkit, just as a precaution....nothing.

Any other ideas?

Thanks again!

Kevin Colagio
kdc@rochester.rr.com
System Administrator and Perpetual Student.

-----Original Message-----
From: Kevin Colagio [mailto:kdc@rochester.rr.com]
Sent: Sunday, December 15, 2002 11:28 PM
To: sunmanagers@sunmanagers.org
Subject: Network slowness

Background info:
I have a Sunblade 100 running Solaris 8. This box sits behind a cable modem
connection and a Linksys Router w/ 4 switched ports. My PC is on another
port (hey! I need a game machine, right?). So it looks basically like
this:

                                    |----Sunblade 100
---Cable---|cable modem|----|Linksys|----PC

The Linksys' WAN port is configured as a DHCP client.
The Linksys is configured to perform as a NAT box.
The Linksys has an internal address of 172.16.23.1/255.255.255.0

The Sunblade 100 has an IP address of 172.16.23.254/255.255.255.0
The Sunblade has a /etc/defaultrouter file with 172.16.23.1
The Sunblade's nameserver entries (in /etc/resolv.conf) is the same as the
entries on the Linksys.
The Sunblade is my DMZ box.

The PC has an IP address of 172.16.23.2/255.255.255.0
The PC has the same router and DNS entries as the Sun.

The problem:
When I try and make a "remote" (outside of some unknown space) connection,
the connection is VERY slow. For example, an ftp from the command line
results in the server timing out on my client. People can't FTP files into
my box. If I try and telnet in from work, it's impossible to do anything
because the transfers are so slow. (vi becomes unusable). However, if I
telnet from the PC to the Sun directly, no problem. If I use the external
IP address of the router, no problem with the PC -> Sun connection. If I
use the PC to get the same file that the Sun choked on, no problem...and
it's fast. Telneting out to a common site gives similar results (Sun: slow
as cold molasses; PC: no problem).

Does anyone have any suggestions? If you need more info to make a guess,
just let me know.

Thanks in advance.

Kevin Colagio
kdc@rochester.rr.com
System Administrator and Perpetual Student.
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:25:32 EDT