[ntp:questions] ntpdate function

E-Mail Sent to this address will be added to the BlackLists Null at BlackList.Anitech-Systems.invalid
Wed Apr 10 21:08:22 UTC 2013


Jacek Igalson wrote:
> 1. Could you be more specific about code comparison, please

Compare the source code for the applications you are getting the data from.
  What are the differences in timestamp (system time) acquisition?
  What are the differences in when / where packets are time stamped?
  What are the differences in how the latency is calculated?
  ...

<http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/>
<http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-dev/ntp-dev-4.2.7p364.tar.gz>
ntp-dev-4.2.7p364\ntpdate\ntpdate.c


> 2. ntpdate can be used with option -p, 1 to 8 sampling.
>    Difference of delay is 0.05586 sec to 0.05359 sec.
>    Result from ntpq is 28 msec.
>    To big to be a statistical explanation

You are comparing the ping Average, to the ntpdate delay?

 e.g.

 ping -n 8 ntp.example.net
   Minimum = 82ms, Maximum = 84ms, Average = 83ms

vs

 ntpdate -4 -q -v -p 8 ntp.example.net
  server 192.0.43.10, stratum 1, offset -0.015873, delay 0.10370




 ICMP echo may have a lower priority than NTP;

 Ping and NTP may be taking the time from different places
  in the platform / OS, and/or with different function calls;
   {e.g. one at reception of packet in network adapter,
     another at user application level}

 Ping may be calculating the round trip time
  differently than ntpdate delay;

 ...


-- 
E-Mail Sent to this address <BlackList at Anitech-Systems.com>
  will be added to the BlackLists.



More information about the questions mailing list