🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: demon.ip.support.nt
Article #127

Re: Why does windows2000 ping have a resolution of 10ms?

#127
From: Simon
Date: Sun, 10 Mar 2002 09:41
40 lines
3413 bytes
* Bob Cousins <bob@$nospam$lintilla.demon.co.uk> wrote:
> Simon wrote:
>>* Simon <usenet@sis-domain.demon.co.uk> wrote:
>>> An Intel EtherExpress Pro 100 on Linux 2.4.5 using ping from 
>>> netkit-base-0.17:
>>> 
>>> 64 octets from 158.152.1.222: icmp_seq=0 ttl=255 time=155.4 ms
>>> 64 octets from 158.152.1.222: icmp_seq=1 ttl=255 time=140.0 ms
>>> 64 octets from 158.152.1.222: icmp_seq=2 ttl=255 time=150.0 ms
>>> ...results carry on accurate to 10ms until the ping is stopped
>>
>>To follow up my own post, this is over the PPP stack (using pppd 2.4.1) and
>>not the NIC.  Must acquire more caffeine...
> 
> Ooops..
> 
> Actually, I am fairly certain the ping application calculates the time
> interval, but it is possible the NIC driver affects the resolution,
> for example depending on how interrupts get handled and how the
> request queues are managed.

Looking at the ping source code, it looks as though the application uses the
system timer to calculate the reply times.  From this, I think the most
likely causes might be either interrupts or drivers.

> Linux source code is obviously freely available, if you look at the
> source to ping you will see it uses the system timer. The Unix socket
> interface does not carry timestamps of packets. Winsock derives from
> the Unix socket API, so is similar.

This agrees with my knowledge of the TCP & IP protocols.  If I can get my head
around the PPP and/or serial port drivers in the kernel, I'll see if those
would affect the timing in any way (the Linux box with more accurate timing
is running a newer version of the kernel).


-- 
 Simon <simon@sis-domain.demon.co.uk> **** PGP: 099977D0
"We demand rigidly defined areas of doubt and uncertainty."
                  - Douglas Adams
Technical Details
Message-ID: <eo9f6a.9a.ln@sis-domain.demon.co.uk>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!sis-domain.demon.co.uk!simon
References: <EuZLqJATKJh8EwS3@little.demon.co.uk> <MPG.16efdfd3d98514899896d0@news-central.giganews.com> <tfob8u08b1ki0aj37odct94f5naflt5vt1@4ax.com> <1015457895.3495.1.nnrp-10.c2de3c6e@news.demon.co.uk> <goUi7KAqufi8Ewut@little.demon.co.uk> <k7dk8uso968031p0mqd3olu1uopc46lt6e@4ax.com> <b3ud6a.qc.ln@sis-domain.demon.co.uk> <s30e6a.ae.ln@sis-domain.demon.co.uk> <o0bl8ukokh07fu7bl8n7g4fo9pjlo15u9n@4ax.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 100788,aed7066cfaab3934
X-Google-Attributes: gid100788,public
X-Google-Thread: 112d46,aed7066cfaab3934
X-Google-Attributes: gid112d46,public
X-Google-Thread: 108f6a,8e363564729a85d,start
X-Google-Attributes: gid108f6a,public
X-Google-ArrivalTime: 2002-03-10 01:47:04 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!supernews.com!news.tele.dk!small.news.tele.dk!212.74.64.35!colt.net!dispose.news.demon.net!news.demon.co.uk!demon!sis-domain.demon.co.uk!simon
From: Simon <usenet@sis-domain.demon.co.uk>
Newsgroups: demon.ip.support.nt,demon.service.isdn,demon.ip.support.unix
Subject: Re: Why does windows2000 ping have a resolution of 10ms?
Date: Sun, 10 Mar 2002 09:41:34 +0000
Message-ID: <eo9f6a.9a.ln@sis-domain.demon.co.uk>
References: <EuZLqJATKJh8EwS3@little.demon.co.uk> <MPG.16efdfd3d98514899896d0@news-central.giganews.com> <tfob8u08b1ki0aj37odct94f5naflt5vt1@4ax.com> <1015457895.3495.1.nnrp-10.c2de3c6e@news.demon.co.uk> <goUi7KAqufi8Ewut@little.demon.co.uk> <k7dk8uso968031p0mqd3olu1uopc46lt6e@4ax.com> <b3ud6a.qc.ln@sis-domain.demon.co.uk> <s30e6a.ae.ln@sis-domain.demon.co.uk> <o0bl8ukokh07fu7bl8n7g4fo9pjlo15u9n@4ax.com>
Reply-To: simon@sis-domain.demon.co.uk
NNTP-Posting-Host: sis-domain.demon.co.uk
X-NNTP-Posting-Host: sis-domain.demon.co.uk:194.222.148.82
X-Trace: news.demon.co.uk 1015753620 nnrp-10:29921 NO-IDENT sis-domain.demon.co.uk:194.222.148.82
X-Complaints-To: abuse@demon.net
User-Agent: tin/1.5.8-20010221 ("Blue Water") (UNIX) (Linux/2.4.5 (i686))
Originator: simon@sis-domain.demon.co.uk
Lines: 40