Re: SNTP server + ntpd 4.2.4 client



David Woolley <david@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> writes:

Noob wrote:
=20
I've been running ntpd 4.2.4 to synchronize my system clock using remot=
e=20
stratum 2 servers as a reference. (The RTT to these servers is in the=20
30-50 ms range.) The accuracy is in the 1-2 ms range, based on the=20
reported offset.

Offset doesn't tell you the accuracy, it only gives you an idea of the=20
variability of the error. Theoretically, the error could be as much as=20
15 to 25ms, plus the error from the stratum one to the stratum 2.

Agreed. The accuracy is bounded by the round trip time. The offset
fluctuations will give and estimate of those variations in round trip time.
But that time could be biased (ie outbound packets always take 10ms moere
than inbound packets for example) and your clock would be biased.

It is highly unlikely that packets take zero time to go out and 50ms to get
back however.



=20
I've been asked to evaluate the following time server, in order to reac=
h=20
a better accuracy than what the current setup provides.

You are not going to get better accuracy by changing ntp program (well the
evidence is that chrony is a somewhat better client, but in your case the
difference will be negligible) . YOu are going to get a better time by
using a server that is closer to you and has more predictable round trip
times (ethernet, not ADSL)

going to get better accuracy
=20
http://www.heoldesign.com/index.php?id=3D58
=20
(AFAIU, this time server implements SNTP, not the full NTP.)

Then it is not a server.


There are many network timeservers that implement full NTP, so I'm not=20
sure what they are doing with just SNTP; maybe it is aimed at the=20
Windows w32time market.

Also, you can use a GPS timing receiver, with 1pps output, directly.

Yes. IF you want better accuracy, get yourself a Garmin 18LVC, wire it up
and use the PPM output. They you will have a few microsecond accuracy. YOu
will never get your network ntp under a few ms.



=20
The idea would be to put this (stratum 1) time server in the same LAN a=
s=20
my box, and add it my ntp.conf. (The RTT on the LAN is on the order of =

It is NOT a stratum 1.
A stratum 1 gets its time from an atomic clock.
It you attach a GPS to one of your (Linux) machines, you will get 2usec
accuracy on that machine. On the machines attached on your lan yyou will
get 10s of usec accuracy, if they are unix type machines. As far as I know
windows does not impliment a proper clock control API so you will have be
happy with a few msec for those.



100 =B5s.)
=20
Will it work?

It's a violation of NTP, so you the result will only be compliant as an=20
SNTP client. It may or may not work, depending on whether or not early=20
w32time implementations conformed to SNTP. Early versions of w32time=20
didn't set enough of the response fields to sensible values to guarantee =

that ntpd would work as a client.


=20
Is it a problem that the time server only implements SNTP?
=20
What kind of accuracy may I expect?

If it works, you can probably expect most of the errors to be within=20
your box.
.



Relevant Pages

  • Re: Time
    ... Use another time server - ... A list of the Simple Network Time Protocol (SNTP) time servers that are available on the ... Internet ... | system clock with time.nist.gov. ...
    (microsoft.public.windowsxp.perform_maintain)
  • Re: NTP Loses sync over time.
    ... SNTP is not NTP and one can expect SNTP implementations to drift by ... the full clock frequency error between polls. ... A minute a day exceeds the capture range of the full version 4 NTP ... If the server is using a broken source ...
    (comp.protocols.time.ntp)
  • Re: Synchronize clocks without a reference clock
    ... to each other even if you weren't using orphan mode, ... minimum of 2 stratum difference" hack that has been the standard ... still picking a single clock to follow, only now it's a random one. ... isolated site it may still happen that a very slow or very fast server ...
    (comp.protocols.time.ntp)
  • Re: getting time from WWV
    ... A discussion of various time sync methods for a local ntp server: ... but NIST has developed an inexpensive atomic clock. ... GPS synchronized Stratum 2 clock ... synchronization is lost. ...
    (comp.os.linux.hardware)
  • Re: Help with clock division question.
    ... >All central offices synchronize their digital equipment to a source traceable ... >to a Stratum 1 clock. ... What stratum would timing derived from GPS generally be regarded ...
    (sci.electronics.design)