Networking Forums

Networking Forums > Computer Networking > Linux Networking > there is a slight delat in ping reply

Reply
Thread Tools Display Modes

there is a slight delat in ping reply

 
 
d
Guest
Posts: n/a

 
      07-31-2006, 02:15 PM
I have a DELL 2650 installed with FC5. After setting up the network I
executed some ping test to test the connections. Within the LAN the
ping replies are as expected. However, when I ping servers outside the
LAN I've noticed a slight delay in the reply of what I think is the DNS
lookup. After that the replies are as expected. Example:

linux% ping cnet.com
PING cnet.com (216.239.113.101) 56(84) bytes of data.
(*** here is where the delay is; about 2 seconds or so ***)

64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
icmp_seq=1 ttl=247 time=102 ms
64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
icmp_seq=2 ttl=247 time=85.7 ms
64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
icmp_seq=3 ttl=247 time=93.3 ms
64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
icmp_seq=4 ttl=247 time=241 ms
64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
icmp_seq=5 ttl=247 time=92.6 ms

All the above replies are as expected. I can't put my figure on the
problem. I've checked my /etc/resolv.conf. It looks OK. Contains only
the COMCAST DNS IP addresses and that's it. I have another Linux
server of RH9 flavor and I don't see this problem.

 
Reply With Quote
 
 
 
 
Ken Roberts
Guest
Posts: n/a

 
      07-31-2006, 02:18 PM

d wrote:
> I have a DELL 2650 installed with FC5. After setting up the network I
> executed some ping test to test the connections. Within the LAN the
> ping replies are as expected. However, when I ping servers outside the
> LAN I've noticed a slight delay in the reply of what I think is the DNS
> lookup. After that the replies are as expected. Example:
>
> linux% ping cnet.com
> PING cnet.com (216.239.113.101) 56(84) bytes of data.
> (*** here is where the delay is; about 2 seconds or so ***)
>
> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> icmp_seq=1 ttl=247 time=102 ms
> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> icmp_seq=2 ttl=247 time=85.7 ms
> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> icmp_seq=3 ttl=247 time=93.3 ms
> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> icmp_seq=4 ttl=247 time=241 ms
> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> icmp_seq=5 ttl=247 time=92.6 ms
>
> All the above replies are as expected. I can't put my figure on the
> problem. I've checked my /etc/resolv.conf. It looks OK. Contains only
> the COMCAST DNS IP addresses and that's it. I have another Linux
> server of RH9 flavor and I don't see this problem.



So do a "host cnet.com" and then ping by IP address to see if the delay
still exists.

Also, does cancelling the ping and then immediately restarting it still
give you the delay?

 
Reply With Quote
 
Allen McIntosh
Guest
Posts: n/a

 
      07-31-2006, 02:38 PM
Ken Roberts wrote:
> d wrote:


>> However, when I ping servers outside the
>> LAN I've noticed a slight delay in the reply of what I think is the DNS
>> lookup. After that the replies are as expected. Example:
>>
>> linux% ping cnet.com
>> PING cnet.com (216.239.113.101) 56(84) bytes of data.
>> (*** here is where the delay is; about 2 seconds or so ***)
>>
>> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
>> icmp_seq=1 ttl=247 time=102 ms

> So do a "host cnet.com" and then ping by IP address to see if the delay
> still exists.
>
> Also, does cancelling the ping and then immediately restarting it still
> give you the delay?


See if the delay goes away when you use ping -n
 
Reply With Quote
 
d
Guest
Posts: n/a

 
      07-31-2006, 09:56 PM

Allen McIntosh wrote:
> Ken Roberts wrote:
> > d wrote:

>
> >> However, when I ping servers outside the
> >> LAN I've noticed a slight delay in the reply of what I think is the DNS
> >> lookup. After that the replies are as expected. Example:
> >>
> >> linux% ping cnet.com
> >> PING cnet.com (216.239.113.101) 56(84) bytes of data.
> >> (*** here is where the delay is; about 2 seconds or so ***)
> >>
> >> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> >> icmp_seq=1 ttl=247 time=102 ms

> > So do a "host cnet.com" and then ping by IP address to see if the delay
> > still exists.
> >
> > Also, does cancelling the ping and then immediately restarting it still
> > give you the delay?

>
> See if the delay goes away when you use ping -n


Results:
- ping IP (fast reply no delays)
- ping -n IP (fast reply no delays)
- ping hostname (2-3 second delay)
- ping -n hostname (2-3 second delay)
- host hostname (seems normal)
- dig hostname (seems nornal)

 
Reply With Quote
 
d
Guest
Posts: n/a

 
      07-31-2006, 10:43 PM

d wrote:
> Allen McIntosh wrote:
> > Ken Roberts wrote:
> > > d wrote:

> >
> > >> However, when I ping servers outside the
> > >> LAN I've noticed a slight delay in the reply of what I think is the DNS
> > >> lookup. After that the replies are as expected. Example:
> > >>
> > >> linux% ping cnet.com
> > >> PING cnet.com (216.239.113.101) 56(84) bytes of data.
> > >> (*** here is where the delay is; about 2 seconds or so ***)
> > >>
> > >> 64 bytes from c17-sha-redirect-lb.cnet.com (216.239.113.101):
> > >> icmp_seq=1 ttl=247 time=102 ms
> > > So do a "host cnet.com" and then ping by IP address to see if the delay
> > > still exists.
> > >
> > > Also, does cancelling the ping and then immediately restarting it still
> > > give you the delay?

> >
> > See if the delay goes away when you use ping -n

>
> Results:
> - ping IP (fast reply no delays)
> - ping -n IP (fast reply no delays)
> - ping hostname (2-3 second delay)
> - ping -n hostname (2-3 second delay)
> - host hostname (seems normal)
> - dig hostname (seems nornal)


Its more like a 4-5 second delay after I hit the RETURN key and before
the replies starting coming to the screen. This is strange. on't know
what to make of it.

 
Reply With Quote
 
Rick Jones
Guest
Posts: n/a

 
      07-31-2006, 11:02 PM
d <(E-Mail Removed)> wrote:
> I have a DELL 2650 installed with FC5. After setting up the network I
> executed some ping test to test the connections. Within the LAN the
> ping replies are as expected. However, when I ping servers outside the
> LAN I've noticed a slight delay in the reply of what I think is the DNS
> lookup. After that the replies are as expected. Example:


> linux% ping cnet.com
> PING cnet.com (216.239.113.101) 56(84) bytes of data.
> (*** here is where the delay is; about 2 seconds or so ***)


If the delay is after the header is displayed, I'd think that implies
the DNS lookup was already done - after all, where else could it get
the IP it displayed.

Unless, perhaps the ping program, for whatever reason is doing a "PTR"
lookup on the source IP of the first ping reply, but I'm not sure why
it would do that.

I would suggest taking a system call trace of the ping command. The
system calls associated with a DNS query are pretty easy to see -
generally they involve SOCK_DGRAM and port 53, and/or operations on
FD's where calls with such settings have been made.

rick jones
--
oxymoron n, commuter in a gas-guzzling luxury SUV with an American flag
these opinions are mine, all mine; HP might not want them anyway...
feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...
 
Reply With Quote
 
d
Guest
Posts: n/a

 
      08-01-2006, 03:17 AM

Rick Jones wrote:
> d <(E-Mail Removed)> wrote:
> > I have a DELL 2650 installed with FC5. After setting up the network I
> > executed some ping test to test the connections. Within the LAN the
> > ping replies are as expected. However, when I ping servers outside the
> > LAN I've noticed a slight delay in the reply of what I think is the DNS
> > lookup. After that the replies are as expected. Example:

>
> > linux% ping cnet.com
> > PING cnet.com (216.239.113.101) 56(84) bytes of data.
> > (*** here is where the delay is; about 2 seconds or so ***)

>
> If the delay is after the header is displayed, I'd think that implies
> the DNS lookup was already done - after all, where else could it get
> the IP it displayed.
>
> Unless, perhaps the ping program, for whatever reason is doing a "PTR"
> lookup on the source IP of the first ping reply, but I'm not sure why
> it would do that.
>
> I would suggest taking a system call trace of the ping command. The
> system calls associated with a DNS query are pretty easy to see -
> generally they involve SOCK_DGRAM and port 53, and/or operations on
> FD's where calls with such settings have been made.
>
> rick jones
> --
> oxymoron n, commuter in a gas-guzzling luxury SUV with an American flag
> these opinions are mine, all mine; HP might not want them anyway...
> feel free to post, OR email to rick.jones2 in hp.com but NOT BOTH...


It was a COMCAST DNS IP address change that got me. I looked at the
DNS settings on the 3 other PCs on the LAN, one which is DHCP
configured, to see if each was set the same. The DHCP configured PC
had 68.87.64.xxx and the manually set PCs had 68.81.64.xxx. Though the
secondary DNS IP was correct I guess the delay I saw was due to the
lookup timing out first from the incorrect IP address. Thanks to
everyone for the suggestions and time spent on my problem.

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Ping reply through the same interface Dmitry Perets Windows Networking 2 08-30-2007 03:31 PM
ping -ip reply errors Dave_s Windows Networking 0 12-14-2006 01:38 AM
Wierd ping reply from 2000sp4 Robert Gray Windows Networking 1 10-06-2006 05:35 PM
ping reply pzlist@mp.pl Linux Networking 1 08-31-2006 06:04 PM
noticing a slight delay in ping lookup d Linux Networking 0 07-31-2006 02:15 PM



1 2 3 4 5 6 7 8 9 10 11