dntpd - Improve offset correction precision
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 Mar 2014 16:28:55 +0000 (09:28 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 15 Mar 2014 16:28:55 +0000 (09:28 -0700)
commit4c77cdeb9acda04d7fd188dd86c72a08204482ed
tree221fda20862653d5d66ee6103f0309be3a83202d
parent4e89c94a8bbff04e0d96321c9abb0dc85c172149
dntpd - Improve offset correction precision

* Offset corrections are more accurate with more samples (whereas frequency
  corrections are more accurate when the first and last sample are far apart
  in the time domain).

* Even though dntpd uses a standard deviation test to conditionalize offset
  corrections, it is still possible to get false positives with only 4
  samples.

* Once dntpd has gone into maintainance mode increase the number of
  required samples for an offset correction from 4 to 8.  This makes
  the standard deviation more accurate, reduces false positives, and
  improves stability.

* Retain the original mechanic during aquisition so dntpd applies corrections
  sooner rather than later when first started.
usr.sbin/dntpd/client.c