Re: Reading time offset from ntp variables using ntpq
- From: mayer@xxxxxxxxxxx (Danny Mayer)
- Date: Fri, 17 Feb 2006 03:36:45 GMT
Richard B. Gilbert wrote:
Daniel Kabs wrote:
Hello David!
> As to which timestamp is "correct" you will need to read the
> architecture briefing on the NTP project page.
That's not fair. I just wanted to use NTP as a tool to measure the
time drift of my system clock and now you pull the dreaded "read the
architecture briefing" weapon on me. What have I done to you to
deserve this? :-)
> While at it, understand
> the raw offset measurement does not reflect the actual clock offset,
> as the latter is determined by the clock discipline algorithm
> described in the briefings on the project page. [...]
You are talking about "clock discipline". That's confusing me as I am
running ntpd using option "disable ntp" which (according to your
implementation documentation) should disable time and frequency
discipline.
Cheers
Daniel
You could probably use any of the four time stamps if you measure over a
long enough period.
The four timestamps are:
Reference: the time the local clock was last set. (This makes no sense
to me but that's what the RFC says! It would make more sense if it were
the time the reply was received by the client.)
Originate: the time the request packet left your system
Receive: the time the request packet arrived at the server
Transmit: the time the reply packet departed the server
I would guess that the transmit timestamp would provide the best
accuracy if you have to measure over a short interval. Since the drift
of your local clock is changing constantly, if slowly, I would recommend
measuring over an interval of at least twenty-four hours.
If the environment in which your devices are used is not similar in
temperature and temperature variation, the whole effort is probably a
waste of time!!
No, that doesn't matter. Different devices are expected to have not only
different temperatures but also different clock accuracies,
fluctuations, etc.
And interesting variation on having NTP discipline your clock, you could
instead use it to measure the temperature fluctuations of your clock!
Danny
_______________________________________________
questions mailing list
questions@xxxxxxxxxxxxxxxxx
https://lists.ntp.isc.org/mailman/listinfo/questions
.
- Follow-Ups:
- Re: Reading time offset from ntp variables using ntpq
- From: Hal Murray
- Re: Reading time offset from ntp variables using ntpq
- References:
- Re: HowTo calibrate system clock frequency using NTP
- From: David L. Mills
- Re: HowTo calibrate system clock frequency using NTP
- From: Daniel Kabs
- Re: HowTo calibrate system clock frequency using NTP
- From: David L. Mills
- Re: HowTo calibrate system clock frequency using NTP
- From: Daniel Kabs
- Re: HowTo calibrate system clock frequency using NTP
- From: David L. Mills
- Re: HowTo calibrate system clock frequency using NTP
- From: David L. Mills
- Reading time offset from ntp variables using ntpq (was: HowTo calibrate system clock frequency using NTP)
- From: Daniel Kabs
- Re: Reading time offset from ntp variables using ntpq
- From: David L. Mills
- Re: HowTo calibrate system clock frequency using NTP
- Prev by Date: Re: running ntpd as user in solaris 9
- Next by Date: Re: Reading time offset from ntp variables using ntpq
- Previous by thread: Re: Reading time offset from ntp variables using ntpq
- Next by thread: Re: Reading time offset from ntp variables using ntpq
- Index(es):
Relevant Pages
|