[ntp:questions] oncore refclock resets to wrong edge

Wolfgang S. Rupprecht wolfgang+gnus20031104T194919 at dailyplanet.dontspam.wsrcc.com
Wed Nov 5 03:59:00 UTC 2003


My m12 oncore has the interesting bug that the negative edge marks the
tick.  In order to make everything work I have a "CLEAR" keyword in
the oncore-specific config file.  So far so good.

While playing with "ntpq" in interactive mode I noticed that my driver
went quite insane. from the clockstats:

52948 10250.191 127.127.30.0 3276989450.000000000 2003 309  2 50 50 50 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000
52948 10251.191 127.127.30.0 3276989451.000001999 2003 309  2 50 51 51 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000
52948 10252.191 127.127.30.0 3276989452.000001999 2003 309  2 50 52 52 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000
52948 10252.273 127.127.30.0 Resetting timing to Assert.
52948 10254.191 127.127.30.0 3276989453.198682999 2003 309  2 50 54 53 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000
52948 10255.192 127.127.30.0 3276989454.198767999 2003 309  2 50 55 54 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000
52948 10256.192 127.127.30.0 3276989455.198826999 2003 309  2 50 56 55 rstat 8000 dop  0.0 nsat  9,8 traim 0 sigma 0 neg-sawtooth   0 sat 880888888000

Notice that instead of ticking ~2us late it started ticking 200mS
late.  Thats *milli* seconds.  The command that seems to have done
this evil deed was "cv", which I assumed meant "clock vars" but
perhaps it really means "clear vars???"  What happened here?  Why
didn't I have to enter an authentication key to screw up things this
badly?  

The ntpd-4.2.0 did gripe about my "authenticate yes" command so I took
it out.  Was this the fatal flaw?  What should I have put in its place
to say "don't let any scumbag much with the settings".

Confused in Fremont,

-wolfgang
-- 
Wolfgang S. Rupprecht 		     http://www.wsrcc.com/wolfgang/
           The From: address is valid.  Don't mess with it.



More information about the questions mailing list