Subject: pinging from NetBSD router slow than from workstation
To: None <netbsd-help@netbsd.org>
From: Jeremy C. Reed <reed@reedmedia.net>
List: netbsd-help
Date: 07/05/2005 11:33:12
My router and workstation are both running NetBSD/i386 2.0.2.

The workstation is using the router for connectivity. The router is 
running ipnat.

I pinged a variety of servers on different networks and the round-trip 
times are at least twice as slow on the router itself. It seems like the 
ping times on the workstation should be slighly slower.

For example:

On my router:

#  time /sbin/ping -c 5 www.washington.edu
PING www.washington.edu (140.142.3.7): 56 data bytes
64 bytes from 140.142.3.7: icmp_seq=0 ttl=57 time=95.812 ms
64 bytes from 140.142.3.7: icmp_seq=1 ttl=57 time=102.938 ms
64 bytes from 140.142.3.7: icmp_seq=2 ttl=57 time=84.297 ms
64 bytes from 140.142.3.7: icmp_seq=3 ttl=57 time=69.290 ms
64 bytes from 140.142.3.7: icmp_seq=4 ttl=57 time=111.203 ms

----www.washington.edu PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 69.290/92.708/111.203/16.397 ms
    10.70s real     0.06s user     3.35s system


And on my workstation using my router as its gateway:

$ time /sbin/ping -c 5 www.washington.edu
PING www.washington.edu (140.142.3.7): 56 data bytes
64 bytes from 140.142.3.7: icmp_seq=0 ttl=56 time=29.192 ms
64 bytes from 140.142.3.7: icmp_seq=1 ttl=56 time=78.032 ms
64 bytes from 140.142.3.7: icmp_seq=2 ttl=56 time=28.858 ms
64 bytes from 140.142.3.7: icmp_seq=3 ttl=56 time=29.491 ms
64 bytes from 140.142.3.7: icmp_seq=4 ttl=56 time=29.349 ms

----www.washington.edu PING Statistics----
5 packets transmitted, 5 packets received, 0.0% packet loss
round-trip min/avg/max/stddev = 28.858/38.984/78.032/21.830 ms

real    0m4.166s
user    0m0.001s
sys     0m0.018s


Any suggestions on how I can track down or explain why my router has 
slower ping times -- especially since in both cases the packets go through 
it?


  Jeremy C. Reed

  	  	 	 BSD News, BSD tutorials, BSD links
 	  	 	 http://www.bsdnewsletter.com/