From: Harlan Stenn Date: Fri, 29 Oct 2004 09:52:47 +0000 (-0400) Subject: Updates from Dave Mills X-Git-Tag: NTP_4_2_3~104^2^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4428cf2a602dfef814259c03b2a8eabb01c50e0f;p=thirdparty%2Fntp.git Updates from Dave Mills bk: 418212efm4UDdUmYS6fAk-Zr5s7juA --- diff --git a/html/build/hints.html b/html/build/hints.html index 6ccfb5cbb6..b9e230ba23 100644 --- a/html/build/hints.html +++ b/html/build/hints.html @@ -9,7 +9,7 @@

Hints and Kinks

- from Alice's Adventures in Wonderland, Lewis Carroll + gif from Alice's Adventures in Wonderland, Lewis Carroll

Mother in law has all the answers.

Last update: 12:56 AM UTC Saturday, March 20, 2004


diff --git a/html/build/hints/solaris-dosynctodr.html b/html/build/hints/solaris-dosynctodr.html index 89a12b27d0..fc7fae9355 100644 --- a/html/build/hints/solaris-dosynctodr.html +++ b/html/build/hints/solaris-dosynctodr.html @@ -25,7 +25,7 @@ - +
@@ -35,12 +35,12 @@ - Sun Microsystems + Sun Microsystemsgif
Home * Buy * My Sun(sm)sun.com Global Sections
- +
@@ -58,7 +58,7 @@ -
Search SunSolve
+ @@ -86,9 +86,9 @@ Y2K Central
Security Information
-
sopkoEdit
+
  - +


------
+
@@ -177,7 +177,7 @@ - +
@@ -191,7 +191,7 @@
SRDB ID   Synopsis4 Sep 1999

- +
Problem Description Top
Ever since upgrading to Solaris 2.6, the system clock has been drifting and
@@ -200,7 +200,7 @@ didn''t complete' and 'time reset (step)' a lot in the /var/adm/messages
 file. The system either was previously working fine with the freeware
 xntpd or the configuration was copied from another system that was 
 using the freeware version.
--- 23-Apr-99 08:22 US/Eastern --
+-- 23-Apr-99 08:22 US/Eastern --
Problem Solution Top
The common lore for setting up xntpd on Solaris using
@@ -221,7 +221,7 @@ clock, the hard clock is also controlled. Setting
 defaulkt behavior, having exactly the opposite effect 
 as that intended.
 
-Do not set dosynctodr to 0.
+Do not set dosynctodr to 0.
diff --git a/html/drivers/driver18.html b/html/drivers/driver18.html index b4abfe348d..6b0e86a419 100644 --- a/html/drivers/driver18.html +++ b/html/drivers/driver18.html @@ -10,55 +10,51 @@ -

NIST Modem Time Service

+

Automated Computer Time Service (ACTS)


Synopsis

Address: 127.127.18.u
- Reference ID: NIST
- Driver ID: ACTS_NIST
- Serial Port: /dev/actsu; 1200 baud, 8-bits, no parity
- Features: tty_clk
+ Reference ID: NIST | USNO | PTB | WWVB
+ Driver ID: ACTS_MODEM
Serial Port: /dev/actsu; 9600 baud, 8-bits, no parity
+ Features: tty_clk
Requires: /usr/include/sys/termios.h header file with modem control

Description

-

This driver supports the NIST Automated Computer Time Service (ACTS). It periodically dials a prespecified telephone number, receives the NIST timecode data and calculates the local clock correction. It designed primarily for use when neither a radio clock nor connectivity to Internet time servers is available. For the best accuracy, the individual telephone line/modem delay needs to be calibrated using outside sources.

-

The ACTS is located at NIST Boulder, CO, telephone 303 494 4774. A toll call from Newark, DE, costs between three and four cents, although it is not clear what carrier and time of day discounts apply. The modem dial string will differ depending on local telephone configuration, etc., and is specified by the phone command in the configuration file. The argument to this command is an AT command for a Hayes compatible modem.

-

The driver can operate in either of two modes, as determined by the mode parameter in the server configuration command. In mode 0 the driver operates continuously at intervals determined by the fudge time1 parameter, as described above. In mode 1 the driver is enabled only when no other sources of synchronization are available and when we have gone more than MAXOUTAGE (3600 s) since last synchronized by other sources of synchronization.

-

The accuracy produced by this driver should be in the range of a millisecond or two, but may need correction due to the delay characteristics of the individual modem involved. For undetermined reasons, some modems work with the ACTS echo-delay measurement scheme and some don't. This driver tries to do the best it can with what it gets. Initial experiments with a Practical Peripherals 9600SA modem here in Delaware suggest an accuracy of a millisecond or two can be achieved without the scheme by using a fudge time1 value of 65.0 ms. In either case, the dispersion for a single call involving ten samples is about 1.3 ms.

-

For reliable call management, this driver requires a 1200-bps modem with a Hayes-compatible command set and control over the modem data terminal ready (DTR) control line. Present restrictions require the use of a POSIX-compatible programming interface, although other interfaces may work as well. The ACTS telephone number and modem setup string are hard-coded in the driver and may require changes for nonstandard modems or special circumstances.

-

The fudge time1 parameter represents a propagation-delay correction factor which is added to the value computed by ACTS when the echo-delay scheme is used. This scheme does not work with all modems; for those that don't, fudge flag2 should be set to disable the feature. In this case the fudge time1 parameter represents the total propagation delay due to all causes and must be determined by external calibration.

-

The ACTS call interval is determined by a counter initially set to the fudge time2 parameter. At each poll interval, minpoll (usually 64 s) is subtracted from the counter. When the counter is equal to or less than zero, the fudge flag1 is set, which causes up to three call attempts to be made to ACTS. The fudge flag1 is reset after a valid clock update has been determined or by a device fault, timeout or manually using ntpdc. After a valid clock update, the counter is reset for the next interval. Setting the fudge time2 parameter to zero disables automatic call attempts. Manual call attempts can be made at any time by setting fudgeflag1 using ntpdc.

-

The NIST timecode message is transmitted at 1200 bps in the following format:

-
-jjjjj yy-mm-dd hh:mm:ss tt l uuu mmmmm UTC(NIST) *
-
-jjjjj = modified Julian day
-yy-mm-dd = year, month, day
-hh:mm:ss = hours, minutes, seconds
-tt = DST indicator (see driver listing)
-l = leap-second warning (see driver listing)
-uuu = DUT1 correction (see driver listing)
-mmmmm = modem calibration (see driver listing)
-on-time = '*'
-

The timecode message is transmitted continuously after a signon banner, which this driver ignores. The driver also ignores all but the yy-mm-dd, hh:mm:ss and on-time character '*' fields, although it checks the format of all fields of the message. A timestamp is captured at the '*' character, as required by the ACTS specification, and used as the reference time of the timecode. If a message with an on-time character of '#' is received, the driver updates the propagation delay. The driver disconnects when (a) ten valid messages have been received, (b) no message has been received for 15 s, (c) an on-time character of '#' is received. These messages are processed by a trimmed-mean filter to reduce timing noise and then by the usual NTP algorithms to develop the clock correction.

-

Since the accumulated error grows with the interval between calls, it is important that the intrinsic frequency error be minimized. This can be done by observing difference in offsets between two calls placed some hours apart and calculating the uncorrected frequency error. This error, as a fixed-point value in parts-per-million, should be installed in the ntp.drift file before the daemon is started. Some experimentation may be necessary in order to reduce the intrinsic frequency error to the order of 1 ppm.

-

The behavior of the clock selection algorithm is modified when this driver is in use. The algorithm is designed so that this driver will never be selected unless no other discipline source is available. This can be overridden with the prefer keyword of the server configuration command, in which case only this driver will be selected for synchronization and all other discipline sources will be ignored.

-

Unlike other drivers, each ACTS call generates one clock correction and that correction is processed immediately. There is no wait to allow the clock filter to accumulate samples. In addition, the watchdog timeout of the local clock algorithm is disabled, so that a correction received from this driver that exceeds CLOCK_MAX (128 ms) causes an immediate step/slew.

-

Since the interval between updates can be much longer than used with ordinary NTP peers, the local clock procedure has been modified to operate in either of two modes, depending on whether the interval between updates is less than or greater than CLOCK_MAXSEC (1200 s). If less than this value, the local clock procedure operates using the standard NTP phase-lock loop as with other NTP peers. If greater than this value, the procedure operates using a modified frequency-lock loop suggested by Judah Levine in his lockclock algorithm designed specifically for ACTS.

-

Call Management

-

Since ACTS will be a toll call in most areas of the country, it is necessary to carefully manage the call frequency. This can be done in two ways, by specifying the interval between calls, or by setting a flag bit manually or via a cron job. The call interval is determined by a counter initially set to the fudge time2 parameter. At each poll interval, minpoll (usually 64 s) is subtracted from the counter. When the counter is equal to or less than zero, the fudge flag1 is set, which causes up to three call attempts to be made. The fudge flag1 is reset after ten offset samples have been determined in a single call or by a device fault, timeout or manually using ntpdc. Upon successful completion of a call, the eight samples have been shifted into the clock filter, the local clock updated and the counter reset for the next interval. Setting the fudge time2 parameter to zero disables automatic call attempts.

-

Manual call attempts can be made at any time by setting fudge flag1 using ntpdc. For example, the ntpdc command

-
-fudge 127.127.18.1 flags 1
-

will ask for a key identifier and password and, if authenticated by the server, will set flag1. There may be a short delay until the expiration of the current poll timeout.

-

The flag1 can be set from a cron job in the following way. Construct a file with contents

-
keyid 11
-passwd dialup
-fudge 127.127.18.1 flags 1
-quit
-

Then, run the following program at specified times as required.

-
/usr/local/bin/ntpdc <file
-

Monitor Data

-

When enabled by the flag4 fudge flag, every received timecode is written as-is to the clockstats file.

+

This driver supports the US (NIST and USNO) and European (PTB (Germany), NPL (UK), etc.) modem time services, as well as Spectracom GPS and WWVB receivers connected via a modem. The driver periodically dials a number from a telephone list, receives the timecode data and calculates the local clock correction. It is designed primarily for backup when neither a radio clock nor connectivity to Internet time servers are available.

+

For best results the indicated time must be corrected for the modem and telephone circuit propagation delay, which can be 200 ms or more. For the NIST service, corrections are determined automatically by measuring the roundtrip delay of echoed characters. With this service the absolute accuracy is typically a millisecond or two. Corrections for the other services must be determined by other means. With these services variations from call to call and between messages during a call are typically a rew milliseconds, occasionally higher.

+

This driver requires a 9600-bps modem with a Hayes-compatible command set and control over the modem data terminal ready (DTR) control line. The actual line speed ranges from 1200 bps with USNO to 14,400 bps with NIST. The modem setup string is hard-coded in the driver and may require changes for nonstandard modems or special circumstances.

+

There are three modes of operation selected by the mode keyword in the server configuration command. In manual mode (2) the calling program is initiated by setting fudge flag1. This can be done using ntpdc, either manually or via a cron job. In auto mode (0) flag1 is set automatically at each poll event. In backup mode (1) flag1 is set automatically at each poll event, but only if the prefer peer is unreachable.

+

When flag1 is set, the calling program dials each number listed in the phones command of the configuration file in turn. The number is specified by the Hayes ATDT prefix followed by the number itself, including the prefix and long-distance digits and delay code, if necessary. The flag1 is reset and the calling program terminated if (a) valid clock update has been determined, (b) no more numbers remain in the list, (c) a device fault or timeout occurs or (d) fudge flag1 is reset manually using ntpdc.

+

The driver is transparent to the message format of each modem time service and Spectracom radio. It selects the parsing algorithm depending on the message length. There is some hazard should the message be corrupted. However, the data format is checked carefully and only if all checks succeed is the message accepted. Corrupted lines are discarded without complaint. Once the service is known, the reference identifier for the driver is set to NIST, USNO, PTB or WWVB as appropriate.

+

Ordinarily, the serial port is connected to a modem; however, if fudge flag3 is set, it can be connected directly to a device or another computer for testing or calibration. In principle, fudge flag2 enables port locking, allowing the modem to be shared when not in use by this driver. At least on Solaris with the current NTP I/O routines, this results in lots of ugly error messages.

+

The minpoll and maxpoll keywords of the server configuration command can be used to limit the intervals between calls. Ordinarily, the poll interval follows the system poll interval, but not less than the minpoll specification. should ramp up over time to over a day.

+

The behavior of the clock selection algorithm is modified when this driver is in use. The algorithm is designed so that this driver will be selected only when the prefer peer is unreachable or unspecified. This can be overridden by assigning this driver as the prefer peer, in which case only this driver will be selected for synchronization and all other discipline sources will be ignored.

+

US Phone Numbers and Formats

+

Note: Phone numbers include the entire Hayes modem command, including the ATDT and other control codes as may be necessary. For most cases only the ATDT may be necessary.

+

National Institute of Science and Technology (NIST)

+

Phone: (303) 494-4774 (Boulder, CO); (808) 335-4721 (Hawaii) +

+

Data Format

+

National Institute of Standards and Technology
+ Telephone Time Service, Generator 3B
+ Enter question mark "?" for HELP
MJD YR MO DA H M S ST S UT1 msADV <OTM>
47999 90-04-18 21:39:15 50 0 +.1 045.0 UTC(NIST) *
+ 47999 90-04-18 21:39:16 50 0 +.1 045.0 UTC(NIST) #
+ ...

+

MJD, YR, ST, UT1 and UTC(NIST) are not used by this driver. The <OTM> on-time character "*" changes to "#" when the delay correction is valid.

+

US Naval Observatory (USNO)

+

Phone: (202) 762-1594 (Washington, DC); (719) 567-6742 (Boulder, CO) +

+

Data Format (two lines, repeating at one-second intervals)

+

jjjjj nnn hhmmss UTC

+

* on-time character
+ jjjjj modified Julian day number (not used)
+ nnn day of year
+ hhmmss second of day +

+

European Phone Numbers and Formats

+

Spectracom GPS and WWVB Receivers

+

If a modem is connected to a Spectracom receiver, this driver will call it and retrieve the time in one of two formats, 0 and 2. Ordinarily, the receiver requires a T in order to return the timecode. As this driver does not send data via the modem, it must either be configured in continuous mode or be polled by another local driver.

+

Monitor Data

+

Every received timecode is written as-is to the clockstats file.

Fudge Factors

time1 time @@ -68,14 +64,13 @@ quit
stratum number
Specifies the driver stratum, in decimal from 0 to 15, with default 0.
refid string -
Specifies the driver reference identifier, an ASCII string from one to four characters, with default NIST. +
Set by the driver to (one of) NIST, USNO, PTB or WWVB.
flag1 0 | 1 -
Not used by this driver. +
Initiate a call if 1. Automatically reset by program.
flag2 0 | 1 -
Not used by this driver. +
Enables port locking if 1, disables if 0 (default).
flag3 0 | 1 -
Not used by this driver. -
flag4 0 | 1 +
Enables direct connection if 1, or modem if 0 (default). If set, the driver will send a single character 'T' at every poll event.
flag4 0 | 1
Not used by this driver.

Additional Information

diff --git a/html/drivers/driver29.html b/html/drivers/driver29.html index e595019521..32c491e240 100644 --- a/html/drivers/driver29.html +++ b/html/drivers/driver29.html @@ -12,7 +12,7 @@

Trimble Palisade Receiver

-

+

gif

Synopsis

Product Area Bundled Network
Product
diff --git a/html/drivers/driver38.html b/html/drivers/driver38.html index 4b32023457..4e4c463bb6 100644 --- a/html/drivers/driver38.html +++ b/html/drivers/driver38.html @@ -12,10 +12,10 @@

hopf Serial Line Receivers (6021 and  kompatible)


Synopsis

-
+
- +
- +
@@ -53,7 +53,7 @@
gif

diff --git a/html/drivers/driver39.html b/html/drivers/driver39.html index 267b2331c7..57dc86be52 100644 --- a/html/drivers/driver39.html +++ b/html/drivers/driver39.html @@ -13,11 +13,11 @@
- +
- +

Synopsis

- +
@@ -41,7 +41,7 @@
gif
diff --git a/html/drivers/driver44.html b/html/drivers/driver44.html index 4caad796ef..7a6c5cd911 100755 --- a/html/drivers/driver44.html +++ b/html/drivers/driver44.html @@ -13,11 +13,11 @@

Synopsis

- +
- +
Adress
@@ -71,14 +71,11 @@
flag1 0 | 1
When set to 1 the driver will feed ntp with timestampe even if the radio signal is lost. In this case an internal backup clock generates the timestamps. This is ok as long as the receiver is synced once since the receiver is able to keep time for a long period.
Default setting is 0 = don't synchronize to CMOS clock. -
flag2 0 | 1
You can allow the NeoClock4X driver to use the quartz clock even if it is never synchronized to a radio clock. This is usally not a good idea if you want preceise timestamps since the CMOS clock is maybe not adjusted to a dst status change. So PLEASE switch this only on if you now what you're doing.
Default setting is 0 = don't synchronize to unsynchronized CMOS clock. -
flag3 0 | 1 -
Not used by this driver. -
+
Not used by this driver.
flag4 0 | 1
It is recommended to allow extensive logging while you setup the NeoClock4X receiver. If you activate flag4 every received data is logged. You should turn off flag4 as soon as the clock works as expected to reduce logfile cluttering.
Default setting is 0 = don't log received data and converted utc time. diff --git a/html/drivers/driver5.html b/html/drivers/driver5.html index 939849ae68..1b539acaa2 100644 --- a/html/drivers/driver5.html +++ b/html/drivers/driver5.html @@ -64,7 +64,7 @@
Not used by this driver.

Additional Information

-

Reference Clock Drivers

+

Reference Clock Drivers


diff --git a/html/drivers/driver8.html b/html/drivers/driver8.html index 16de33a59e..b7cf6d457c 100644 --- a/html/drivers/driver8.html +++ b/html/drivers/driver8.html @@ -69,7 +69,7 @@

  • server 127.127.8.0-3 mode 8

    IGEL clock
    -
    + gif

  • server 127.127.8.0-3 mode 9

    Trimble SVeeSix GPS receiverTAIP protocol (GPS / <<1us)
    diff --git a/html/ntpd.html b/html/ntpd.html index 2a1c26b126..7e4243d7ba 100644 --- a/html/ntpd.html +++ b/html/ntpd.html @@ -12,7 +12,7 @@

    ntpd - Network Time Protocol (NTP) daemon

    giffrom Alice's Adventures in Wonderland, Lewis Carroll

    The mushroom knows all the command line options.

    -

    Last update: 03:15 AM UTC Monday, October 13, 2003

    +

    Last update: 01:46 AM UTC Thursday, October 28, 2004


    Related Links

    @@ -64,13 +64,10 @@

    When ntpd starts it looks at the value of umask, and if zero ntpd will set the umask to 022.

    Command Line Options

    -
    -4 -
    Force DNS resolution of following host names to the IPv4 namespace. -
    -6 -
    Force DNS resolution of following host names to the IPv6 namespace. -
    -a -
    Require cryptographic authentication for broadcast client, multicast client and symmetric passive associations. This is the default. -
    -A +
    -a +
    Require cryptographic authentication for broadcast client, multicast client and symmetric passive associations. This is the default. + +
    -A
    Do not require cryptographic authentication for broadcast client, multicast client and symmetric passive associations. This is almost never a good idea.
    -b
    Enable the client to synchronize to broadcast servers.