From: Harlan Stenn Date: Fri, 15 Oct 2010 06:56:35 +0000 (-0400) Subject: Documentation updates from Dave Mills X-Git-Tag: NTP_4_2_7P64~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=269707ea81ae10d4340af06e7923227dd40524b0;p=thirdparty%2Fntp.git Documentation updates from Dave Mills bk: 4cb7fb23pG-HgMjJ1qZrlSgMSwN95g --- diff --git a/html/authopt.html b/html/authopt.html index eb8088db4..8d6e23dc9 100644 --- a/html/authopt.html +++ b/html/authopt.html @@ -17,7 +17,7 @@ color: #FF0000; giffrom Alice's Adventures in Wonderland, Lewis Carroll

Our resident cryptographer; now you see him, now you don't.

Last update: - 02-Oct-2010 23:55 + 14-Oct-2010 22:27 UTC


Related Links

@@ -54,9 +54,9 @@ color: #FF0000; the algorithm must be ether SHA or SHA1.
host name
Specifies the string used when constructing the names for the host, sign - and certificate files generated by the ntp-keygen program with the -s name option.
+ and certificate files generated by the ntp-keygen program with the -s subject_name option.
ident name
-
Specifies the string used in constructing the identity files generated by the ntp-keygen program with the -i name option.
+
Specifies the string used in constructing the identity files generated by the ntp-keygen program with the -i issuer_name option.
pw password
Specifies the password to decrypt files previously encrypted by the ntp-keygen program with the -p option.
randfile file
@@ -73,7 +73,7 @@ color: #FF0000; for a trusted key, in the range 1 to 65534, inclusive.
revoke [logsec]
-
Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in seconds. These values need to be updated frequently in order to deflect brute-force attacks on the algorithms; however, updating some values is a relatively expensive operation. The default interval is 17 (about 36 h). For poll intervals above the specified interval, the values will be updated for every message sent.
+
Specifies the interval between re-randomization of certain cryptographic values used by the Autokey scheme, as a power of 2 in seconds. This command is available only if the AUtokey public key support has been enabled. See the Autokey Public-Key Authenticationa page for further information.
trustedkey [keyid | (lowid ... highid)] [...]
Specifies the key ID(s) which are trusted for the purposes of authenticating peers with symmetric key cryptography. Key IDs diff --git a/html/confopt.html b/html/confopt.html index b1a035c19..053dbb337 100644 --- a/html/confopt.html +++ b/html/confopt.html @@ -12,7 +12,7 @@ Walt Kelly

The chicken is getting configuration advice.

Last update: - 12-Oct-2010 1:14 + 14-Oct-2010 21:22


Related Links

@@ -60,17 +60,17 @@ Walt Kelly
Send and receive packets authenticated by the Autokey scheme described in the Autokey Public Key Authentication page. This option is mutually exclusive with the key option.
burst
-
When the server is reachable, send a burst of eight packets instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the calldelay command to allow additional time for a modem or ISDN call to complete. This option is valid only with the server command and type s addresses. It is a recommended option when the maxpoll option is greater than 10 (1024 s). Additional information about this option is on the Poll Program page.
-
iburst
-
When the server is unreachable, send a burst of eight packets instead of the usual one. The packet spacing is normally 2 s; however, the spacing between the first and second packets can be changed with the calldelay command to allow additional time for a modem or ISDN call to complete. This option is valid only with the server command and type s addresses. It is a recommended option with this command. Additional information about this option is on the Poll Program page.
-
key key
+
When the server is reachable, send a burst of packets instead of the usual one. This option is valid only with the server command and type s addresses. It is a recommended option when the maxpoll option is greater than 10 (1024 s). Additional information about this option is on the Poll Program page.
+
iburst
+
When the server is unreachable, send a burst of packets instead of the usual one. This option is valid only with the server command and type s addresses. It is a recommended option with this command. Additional information about this option is on the Poll Program page.
+
key key
Send and receive packets authenticated by the symmetric key scheme described in the Authentication Support page. The key specifies the key identifier with values from 1 to 65534, inclusive. This option is mutually exclusive with the autokey option.
minpoll minpoll
maxpoll maxpoll
These options specify the minimum and maximum poll intervals for NTP messages, in seconds as a power of two. The maximum poll interval defaults to 10 (1024 s), but can be increased by the maxpoll option to an upper limit of 17 (36 hr). The minimum poll interval defaults to 6 (64 s), but can be decreased by the minpoll option to a lower limit of 3 (8 s). Additional information about this option is on the Poll Program page.
mode option
Pass the option to a reference clock driver, where option is an integer in the range from 0 to 255, inclusive. This option is valid only with type r addresses.
noselect
-
Marks the server or peer to be ignored by the selection algorithm but visible to the monitoring program. This option is ignored with the broadcast command.
+
Marks the server or peer to be ignored by the selection algorithm as unreachable, but visible to the monitoring program. This option is valid only with the server and peer commands.
preempt
Specifies the association as preemptable rather than the default persistent. This option is ignored with the broadcast command and is most useful with the manycastclient and pool commands.
prefer
@@ -88,9 +88,9 @@ or outgoing NTP packets. Versions 1-4 are the choices, with version 4 the defaul

Auxiliary Commands

broadcastclient
-
Enable reception of broadcast server messages to any local interface (type b address). Ordinarily, upon receiving a broadcast message for the first time, the broadcast client measures the nominal server propagation delay using a brief client/server exchange, after which it continues in listen-only mode. If a nonzero value is specified in the broadcastdelay command, the value becomes the delay and the volley is not executed. Note: the novolley option has been deprecated for future enhancements. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the Authentication Options page. Note that the novolley keyword is incompatible with public key authentication.
-
manycastserver address [...]
-
Enable reception of manycast client messages (type m)to the multicasts group address(es) (type m) specified. At least one address is required. Note that, in order to avoid accidental or malicious disruption, both the server and client should operate using symmetric key or public key authentication as described in the Authentication Options page.
+
Enable reception of broadcast server messages to any local interface (type b address). Ordinarily, upon receiving a broadcast message for the first time, the broadcast client measures the nominal server propagation delay using a brief client/server exchange, after which it continues in listen-only mode. If a nonzero value is specified in the broadcastdelay command, the value becomes the delay and the volley is not executed. Note: the novolley option has been deprecated for future enhancements. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the Authentication Options page. Note that the volley is required with public key authentication in order to run the Autokey protocol..
+
manycastserver address [...]
+
Enable reception of manycast client messages (type m) to the multicasts group address(es) (type m) specified. At least one address is required. Note that, in order to avoid accidental or malicious disruption, both the server and client should operate using symmetric key or public key authentication as described in the Authentication Options page.
multicastclient address [...]
Enable reception of multicast server messages to the multicast group address(es) (type m) specified. Upon receiving a message for the first time, the multicast client measures the nominal server propagation delay using a brief client/server exchange with the server, then enters the broadcast client mode, in which it synchronizes to succeeding multicast messages. Note that, in order to avoid accidental or malicious disruption in this mode, both the server and client should operate using symmetric key or public key authentication as described in the Authentication Options page.
diff --git a/html/decode.html b/html/decode.html index 009a8404c..afede786e 100644 --- a/html/decode.html +++ b/html/decode.html @@ -11,7 +11,7 @@ giffrom Alice's Adventures in Wonderland, Lewis Carroll

Caterpillar knows all the error codes, which is more than most of us do.

Last update: - 14-Oct-2010 3:34 + 14-Oct-2010 16:31 UTC


Related Links

@@ -475,10 +475,10 @@

The flash status word is displayed by the ntpq program rv command. It consists of a number of bits coded in hexadecimal as follows:

- - - - + + + + @@ -496,7 +496,7 @@ - + @@ -508,55 +508,55 @@ - + - + - + - + - + - + - + - + - +
CodeTagMessageDescriptionCodeTagMessageDescription
00010004 TEST3 pkt_unsyncprotocol unsynchronizedserver not synchronized
00080010 TEST5 pkt_authbad authentication authentication failure
0020 TEST6 pkt_stratumbad synch or stratuminvalid leap or stratum
0040 TEST7 pkt_headerbad header header distance exceeded
0080 TEST8 pkt_autokeybad autokeyAutokey sequence error
0100 TEST9 pkt_cryptobad cryptoAutokey protocol error
0200 TEST10 peer_stratumpeer bad synch or stratum invalid header or stratum
0400 TEST11 peer_distpeer distance threshold exceeded distance threshold exceeded
0800 TEST12 peer_looppeer synchronization loop synchronization loop
1000 TEST13 peer_unreachpeer unreachable or nonselectable unreachable or nonselect

Kiss Codes

diff --git a/html/drivers/driver16.html b/html/drivers/driver16.html index 95308ba16..a054fcd9a 100644 --- a/html/drivers/driver16.html +++ b/html/drivers/driver16.html @@ -2,30 +2,30 @@ - - - - - Bancomm bc635VME Time and Frequency Processor - - + + + + + Bancomm bc635VME Time and Frequency Processor + + - -

bc635VME/bc350VXI Time and Frequency Processor

-
-

Synopsis

-

Address: 127.127.16.u
- Reference ID: BTFP
- Driver ID: GPS_BANCOMM
- Bancomm Device /dev/btfp0
- Requires: Bancomm bc635 TFP device module driver for SunOS 4.x/SunOS 5.x

-

Description

-

This is the clock driver for the Bancomm bc635VME Time and Frequency Processor. It requires the BANCOMM bc635VME bc350VXI Time and Frequency Processor Module Driver for SunOS 4.x/SunOS 5.x UNIX Systems.

-

Most of this code is originally from refclock_bancomm.c with thanks. It has been modified and tested on an UltraSparc IIi-cEngine running Solaris 2.6. A port for HPUX is not available henceforth.

-

Additional Information

-

Reference Clock Drivers

-
- - + +

bc635VME/bc350VXI Time and Frequency Processor

+
+

Synopsis

+

Address: 127.127.16.u
+ Reference ID: BTFP
+ Driver ID: GPS_BANCOMM
+ Bancomm Device /dev/btfp0
+ Requires: Bancomm bc635 TFP device module driver for SunOS 4.x/SunOS 5.x

+

Description

+

This is the clock driver for the Bancomm bc635VME Time and Frequency Processor. It requires the BANCOMM bc635VME bc350VXI Time and Frequency Processor Module Driver for SunOS 4.x/SunOS 5.x UNIX Systems.

+

Most of this code is originally from refclock_bancomm.c with thanks. It has been modified and tested on an UltraSparc IIi-cEngine running Solaris 2.6. A port for HPUX is not available henceforth.

+

Additional Information

+

Reference Clock Drivers

+
+ + \ No newline at end of file diff --git a/html/drivers/driver2.html b/html/drivers/driver2.html index 20bad64a2..50af737e6 100644 --- a/html/drivers/driver2.html +++ b/html/drivers/driver2.html @@ -2,28 +2,28 @@ - - - - Trak 8820 GPS Receiver - - + + + + Trak 8820 GPS Receiver + + - -

Trak 8820 GPS Receiver

-
-

Synopsis

-

Address: 127.127.2.u
- Reference ID: GPS
- Driver ID: GPS_TRAK
- Serial Port: /dev/traku; 9600 baud, 8-bits, no parity
- Features: tty_clk

-

Description

-

This driver supports the Trak 8820 GPS Station Clock. The claimed accuracy at the 1-PPS output is 200-300 ns relative to the broadcast signal; however, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.

-

For best accuracy, this radio requires the tty_clk line discipline, which captures a timestamp at the * on-time character of the timecode. Using this discipline the jitter is in the order of 1 ms and systematic error about 0.5 ms. If unavailable, the buffer timestamp is used, which is captured at the \r ending the timecode message. This introduces a systematic error of 23 character times, or about 24 ms at 9600 bps, together with a jitter well over 8 ms on Sun IPC-class machines.

-

Using the menus, the radio should be set for 9600 bps, one stop bit and no parity. It should be set to operate in computer (no echo) mode. The timecode format includes neither the year nor leap-second warning.

-

In operation, this driver sends a RQTS\r request to the radio at initialization in order to put it in continuous time output mode. The radio then sends the following message once each second:

-
*RQTS U,ddd:hh:mm:ss.0,q<cr><lf>
+	
+		

Trak 8820 GPS Receiver

+
+

Synopsis

+

Address: 127.127.2.u
+ Reference ID: GPS
+ Driver ID: GPS_TRAK
+ Serial Port: /dev/traku; 9600 baud, 8-bits, no parity
+ Features: tty_clk

+

Description

+

This driver supports the Trak 8820 GPS Station Clock. The claimed accuracy at the 1-PPS output is 200-300 ns relative to the broadcast signal; however, in most cases the actual accuracy is limited by the precision of the timecode and the latencies of the serial interface and operating system.

+

For best accuracy, this radio requires the tty_clk line discipline, which captures a timestamp at the * on-time character of the timecode. Using this discipline the jitter is in the order of 1 ms and systematic error about 0.5 ms. If unavailable, the buffer timestamp is used, which is captured at the \r ending the timecode message. This introduces a systematic error of 23 character times, or about 24 ms at 9600 bps, together with a jitter well over 8 ms on Sun IPC-class machines.

+

Using the menus, the radio should be set for 9600 bps, one stop bit and no parity. It should be set to operate in computer (no echo) mode. The timecode format includes neither the year nor leap-second warning.

+

In operation, this driver sends a RQTS\r request to the radio at initialization in order to put it in continuous time output mode. The radio then sends the following message once each second:

+
*RQTS U,ddd:hh:mm:ss.0,q<cr><lf>
 on-time = '*'
 ddd = day of year
 hh:mm:ss = hours, minutes, seconds
@@ -34,34 +34,34 @@ q = quality indicator (phase error), 0-6:
      4 > 100 ns
      3 > 10 ns
      2 < 10 ns
- The alarm condition is indicated by 0 at Q, which means the radio has a phase error greater than 20 us relative to the broadcast time. The absence of year, DST and leap-second warning in this format is also alarmed. -

The continuous time mode is disabled using the RQTX\r request, following which the radio sends a RQTX DONE<cr><lf> response. In the normal mode, other control and status requests are effective, including the leap-second status request RQLS<cr>. The radio responds with RQLS yy,mm,dd<cr><lf>, where yy,mm,dd are the year, month and day. Presumably, this gives the epoch of the next leap second, RQLS 00,00,00 if none is specified in the GPS message. Specified in this form, the information is generally useless and is ignored by the driver.

-

Monitor Data

-

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

-

Fudge Factors

-

-
-
time1 time -
Specifies the time offset calibration factor, in seconds and fraction, with default 0.0. -
time2 time -
Not used by this driver. -
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 GPS. -
flag1 0 | 1 -
Not used by this driver. -
flag2 0 | 1 -
Not used by this driver. -
flag3 0 | 1 -
Not used by this driver. -
flag4 0 | 1 -
Not used by this driver. -

Additional Information

-

Reference Clock Drivers

-
-
- - + The alarm condition is indicated by 0 at Q, which means the radio has a phase error greater than 20 us relative to the broadcast time. The absence of year, DST and leap-second warning in this format is also alarmed. +

The continuous time mode is disabled using the RQTX\r request, following which the radio sends a RQTX DONE<cr><lf> response. In the normal mode, other control and status requests are effective, including the leap-second status request RQLS<cr>. The radio responds with RQLS yy,mm,dd<cr><lf>, where yy,mm,dd are the year, month and day. Presumably, this gives the epoch of the next leap second, RQLS 00,00,00 if none is specified in the GPS message. Specified in this form, the information is generally useless and is ignored by the driver.

+

Monitor Data

+

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

+

Fudge Factors

+

+
+
time1 time +
Specifies the time offset calibration factor, in seconds and fraction, with default 0.0. +
time2 time +
Not used by this driver. +
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 GPS. +
flag1 0 | 1 +
Not used by this driver. +
flag2 0 | 1 +
Not used by this driver. +
flag3 0 | 1 +
Not used by this driver. +
flag4 0 | 1 +
Not used by this driver. +

Additional Information

+

Reference Clock Drivers

+
+
+ + \ No newline at end of file diff --git a/html/drivers/driver5.html b/html/drivers/driver5.html index 1b539acaa..cad7a0368 100644 --- a/html/drivers/driver5.html +++ b/html/drivers/driver5.html @@ -2,71 +2,71 @@ - - - TrueTime GPS/GOES/OMEGA Receivers - - + + + TrueTime GPS/GOES/OMEGA Receivers + + - -

TrueTime GPS/GOES/OMEGA Receivers

-
-

Synopsis

- Address: 127.127.5.u
- Reference ID: GPS, OMEGA, GOES
- Driver ID: TRUETIME
- Serial Port: /dev/trueu; 9600 baud, 8-bits, no parity
- Features: tty_clk -

Description

-

This driver supports several models models of Kinemetrics/TrueTime timing receivers, including 468-DC MK III GOES Synchronized Clock, GPS- DC MK III and GPS/TM-TMD GPS Synchronized Clock, XL-DC (a 151-602-210, reported by the driver as a GPS/TM-TMD), GPS-800 TCU (an 805-957 with the RS232 Talker/Listener module), OM-DC OMEGA Synchronized Clock, and very likely others in the same model family that use the same timecode formats.

-

Most of this code is originally from refclock_wwvb.c with thanks. It has been so mangled that wwvb is not a recognizable ancestor.

-

Timcode format: ADDD:HH:MM:SSQCL A - control A (this is stripped before we see it) Q - Quality indication (see below) C - Carriage return L - Line feed Quality codes indicate possible error of

-
-
468-DC GOES Receiver
- GPS-TM/TMD Receiver -
? +/- 500 milliseconds # +/- 50 milliseconds
- * +/- 5 milliseconds . +/- 1 millisecond
- space less than 1 millisecond -
OM-DC OMEGA Receiver: -
> +/- 5 seconds
- ? +/- 500 milliseconds # +/- 50 milliseconds
- * +/- 5 milliseconds . +/- 1 millisecond
- A-H less than 1 millisecond. Character indicates which station is being received as follows
- A = Norway, B = Liberia, C = Hawaii, D = North Dakota, E = La Reunion, F = Argentina, G = Australia, H = Japan
- The carriage return start bit begins on 0 seconds and extends to 1 bit time. -
-

Notes on 468-DC and OMEGA receiver:

-

Send the clock a R or C and once per second a timestamp will appear. Send a R to get the satellite position once (GOES only).

-

Notes on the 468-DC receiver:

-

Since the old east/west satellite locations are only historical, you can't set your clock propagation delay settings correctly and still use automatic mode. The manual says to use a compromise when setting the switches. This results in significant errors. The solution; use fudge time1 and time2 to incorporate corrections. If your clock is set for 50 and it should be 58 for using the west and 46 for using the east, use the line

-

fudge 127.127.5.0 time1 +0.008 time2 -0.004

-

This corrects the 4 milliseconds advance and 8 milliseconds retard needed. The software will ask the clock which satellite it sees.

-

The PCL720 from PC Labs has an Intel 8253 look-alike, as well as a bunch of TTL input and output pins, all brought out to the back panel. If you wire a PPS signal (such as the TTL PPS coming out of a GOES or other Kinemetrics/Truetime clock) to the 8253's GATE0, and then also wire the 8253's OUT0 to the PCL720's INPUT3.BIT0, then we can read CTR0 to get the number of microseconds since the last PPS upward edge, mediated by reading OUT0 to find out if the counter has wrapped around (this happens if more than 65535us (65ms) elapses between the PPS event and our being called.)

-

Monitor Data

-

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

-

Fudge Factors

-
-
time1 time -
Specifies the time offset calibration factor, in seconds and fraction, to be used for the West satellite, with default 0.0. -
time2 time -
. Specifies the time offset calibration factor, in seconds and fraction, to be used for the East satellite, with default 0.0. -
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 TRUE. -
flag1 0 | 1 -
Silence the clock side of ntpd, just reading the clock without trying to write to it. -
flag2 0 | 1 -
Generate a debug file /tmp/true%d. -
flag3 0 | 1 -
Not used by this driver. -
flag4 0 | 1 -
Not used by this driver. -
-

Additional Information

-

Reference Clock Drivers

-
- - + +

TrueTime GPS/GOES/OMEGA Receivers

+
+

Synopsis

+ Address: 127.127.5.u
+ Reference ID: GPS, OMEGA, GOES
+ Driver ID: TRUETIME
+ Serial Port: /dev/trueu; 9600 baud, 8-bits, no parity
+ Features: tty_clk +

Description

+

This driver supports several models models of Kinemetrics/TrueTime timing receivers, including 468-DC MK III GOES Synchronized Clock, GPS- DC MK III and GPS/TM-TMD GPS Synchronized Clock, XL-DC (a 151-602-210, reported by the driver as a GPS/TM-TMD), GPS-800 TCU (an 805-957 with the RS232 Talker/Listener module), OM-DC OMEGA Synchronized Clock, and very likely others in the same model family that use the same timecode formats.

+

Most of this code is originally from refclock_wwvb.c with thanks. It has been so mangled that wwvb is not a recognizable ancestor.

+

Timcode format: ADDD:HH:MM:SSQCL A - control A (this is stripped before we see it) Q - Quality indication (see below) C - Carriage return L - Line feed Quality codes indicate possible error of

+
+
468-DC GOES Receiver
+ GPS-TM/TMD Receiver +
? +/- 500 milliseconds # +/- 50 milliseconds
+ * +/- 5 milliseconds . +/- 1 millisecond
+ space less than 1 millisecond +
OM-DC OMEGA Receiver: +
> +/- 5 seconds
+ ? +/- 500 milliseconds # +/- 50 milliseconds
+ * +/- 5 milliseconds . +/- 1 millisecond
+ A-H less than 1 millisecond. Character indicates which station is being received as follows
+ A = Norway, B = Liberia, C = Hawaii, D = North Dakota, E = La Reunion, F = Argentina, G = Australia, H = Japan
+ The carriage return start bit begins on 0 seconds and extends to 1 bit time. +
+

Notes on 468-DC and OMEGA receiver:

+

Send the clock a R or C and once per second a timestamp will appear. Send a R to get the satellite position once (GOES only).

+

Notes on the 468-DC receiver:

+

Since the old east/west satellite locations are only historical, you can't set your clock propagation delay settings correctly and still use automatic mode. The manual says to use a compromise when setting the switches. This results in significant errors. The solution; use fudge time1 and time2 to incorporate corrections. If your clock is set for 50 and it should be 58 for using the west and 46 for using the east, use the line

+

fudge 127.127.5.0 time1 +0.008 time2 -0.004

+

This corrects the 4 milliseconds advance and 8 milliseconds retard needed. The software will ask the clock which satellite it sees.

+

The PCL720 from PC Labs has an Intel 8253 look-alike, as well as a bunch of TTL input and output pins, all brought out to the back panel. If you wire a PPS signal (such as the TTL PPS coming out of a GOES or other Kinemetrics/Truetime clock) to the 8253's GATE0, and then also wire the 8253's OUT0 to the PCL720's INPUT3.BIT0, then we can read CTR0 to get the number of microseconds since the last PPS upward edge, mediated by reading OUT0 to find out if the counter has wrapped around (this happens if more than 65535us (65ms) elapses between the PPS event and our being called.)

+

Monitor Data

+

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

+

Fudge Factors

+
+
time1 time +
Specifies the time offset calibration factor, in seconds and fraction, to be used for the West satellite, with default 0.0. +
time2 time +
. Specifies the time offset calibration factor, in seconds and fraction, to be used for the East satellite, with default 0.0. +
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 TRUE. +
flag1 0 | 1 +
Silence the clock side of ntpd, just reading the clock without trying to write to it. +
flag2 0 | 1 +
Generate a debug file /tmp/true%d. +
flag3 0 | 1 +
Not used by this driver. +
flag4 0 | 1 +
Not used by this driver. +
+

Additional Information

+

Reference Clock Drivers

+
+ + \ No newline at end of file diff --git a/html/pic/fig_3_1.gif b/html/pic/fig_3_1.gif index d0aafaccf..a280a8903 100644 Binary files a/html/pic/fig_3_1.gif and b/html/pic/fig_3_1.gif differ diff --git a/html/warp.html b/html/warp.html index 90bb68217..240c6caf2 100644 --- a/html/warp.html +++ b/html/warp.html @@ -9,7 +9,7 @@

How NTP Works

Last update: - 14-Oct-2010 3:26 + 14-Oct-2010 16:45 UTC

Related Links

@@ -28,7 +28,8 @@

gif

Figure 1. NTP Daemon Processes and Algorithms

-

The overall organization of the NTP daemon is shown in Figure 1. It is useful in this context to consider the daemon as both a client of upstream servers and as a server for downstream clients. It includes a pair of peer/poll processes for each reference clock or remote server used as a synchronization source. The poll process sends NTP packets at intervals ranging from 8 s to 36 hr. The peer process receives NTP packets and performs the packet sanity tests of the flash status word. Packets that fail one or more of these tests are summarily discarded. Otherwise, the peer process runs the on-wire protocol that uses four raw timestamps: the origin timestamp T1 upon departure of the client request, the receive timestamp T2 upon arrival at the server, the transmit timestamp T3 upon departure of the server reply, and the destination timestamp T4 upon arrival at the client. These timestamps, which are recorded by the rawstats option of the filegen command, are used to calculate the clock offset and roundtrip delay samples:

+

The overall organization of the NTP daemon is shown in Figure 1. It is useful in this context to consider the daemon as both a client of upstream servers and as a server for downstream clients. It includes a pair of peer/poll processes for each reference clock or remote server used as a synchronization source. Packets are exchanged between the client and server using the on-wire protocol described in the white paper Analysis and Simulation of the NTP On-Wire Protocols. The protocol is resistant to lost, replayed or spoofed packets.

+

The poll process sends NTP packets at intervals ranging from 8 s to 36 hr. The peer process receives NTP packets and performs the packet sanity tests of the flash status word. Packets that fail one or more of these tests are summarily discarded. Otherwise, the peer process runs the on-wire protocol that uses four raw timestamps: the origin timestamp T1 upon departure of the client request, the receive timestamp T2 upon arrival at the server, the transmit timestamp T3 upon departure of the server reply, and the destination timestamp T4 upon arrival at the client. These timestamps, which are recorded by the rawstats option of the filegen command, are used to calculate the clock offset and roundtrip delay samples:

offset = [(T2 - T1) + (T3 - T4)] / 2
delay = (T4 - T1) - (T3 - T2).