Subject: asymetric ping
To: None <netbsd-help@NetBSD.org>
From: James K. Lowden <jklowden@schemamania.org>
List: netbsd-help
Date: 07/20/2005 22:09:46
I think I'm having a local Ethernet problem.  I've swapped cables and
rebooted the hardware, even used different interfaces to the extent I can,
but my LAN is still partly broken, afaict.  

Ping times one way are < 1 ms; the other way > 60 ms.  In one direction, I
can ftp a file at 20% of the Ethernet's raw bit capacity; the other way
doesn't work at all.  I'm afraid my quite-new Soekris box is flaking out
on me.  

Details follow, but here's the kicker: ping localhost is *really* slow on
Cherry:

bash-3.00# ping -c15  localhost
PING localhost (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=255 time=47.141 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=255 time=95.676 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=255 time=95.261 ms
...
----localhost PING Statistics----
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 47.141/80.453/95.676/11.152 ms

What in the world could cause that?  

Thanks for any help.  Details follow.  

--jkl

OAK-[ex0]---100baseTX---+
                        |
                        +--[sip0]--CHERRY
                                     |
                                   [sip2]
                                     |
                                  (internet)


[There are other nodes, but they're powered off. Cherry and Oak are both
plugged into an old hub.]

Ping Cherry -> Oak:

# ping -c15 oak
PING oak.schemamania.org (192.168.1.5): 56 data bytes
64 bytes from 192.168.1.5: icmp_seq=0 ttl=255 time=57.281 ms
64 bytes from 192.168.1.5: icmp_seq=1 ttl=255 time=92.153 ms
64 bytes from 192.168.1.5: icmp_seq=2 ttl=255 time=86.697 ms
...
----oak.schemamania.org PING Statistics----
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 37.582/78.588/92.153/18.424 ms

# ifconfig sip0
sip0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        address: 00:00:24:c1:50:c0
        media: Ethernet autoselect (100baseTX)
        status: active
        inet 192.168.1.254 netmask 0xffffff00 broadcast 192.168.1.255
        inet alias 192.168.1.16 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::200:24ff:fec1:50c0%sip0 prefixlen 64 scopeid 0x1

Ping Oak -> Cherry:

jklowden@oak$ ping -c 15 cherry
PING cherry.schemamania.org (192.168.1.254): 56 data bytes
64 bytes from 192.168.1.254: icmp_seq=0 ttl=255 time=0.300 ms
64 bytes from 192.168.1.254: icmp_seq=1 ttl=255 time=0.314 ms
...
----cherry.schemamania.org PING Statistics----
15 packets transmitted, 15 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 0.300/0.322/0.344/0.012 ms

jklowden@oak$ ifconfig ex0
ex0:
flags=8a63<UP,BROADCAST,NOTRAILERS,RUNNING,ALLMULTI,SIMPLEX,MULTICAST> mtu
1500
        address: 00:10:4b:22:15:d8
        media: Ethernet autoselect (100baseTX)
        status: active
        inet 192.168.1.5 netmask 0xffffff00 broadcast 192.168.1.255
        inet6 fe80::210:4bff:fe22:15d8%ex0 prefixlen 64 scopeid 0x1

Using FTP, Oak as server:

ftp> get /netbsd t
local: t remote: /netbsd
229 Entering Extended Passive Mode (|||65216|)
100% |*************************************|  7389 KB  205.40 KB/s   
00:00 ETA
226 Transfer complete.
7567027 bytes received in 00:36 (204.78 KB/s)
ftp> put /netbsd t
local: /netbsd remote: t
229 Entering Extended Passive Mode (|||65215|)
150 Opening BINARY mode data connection for 't'.
  0% |                                     | 65536       0.74 KB/s  -
stalled -^C
send aborted. Waiting for remote to finish abort.
421 Service not available, remote server timed out. Connection closed
65536 bytes sent in 02:25 (0.43 KB/s)