~ubuntu-branches/debian/squeeze/ntp/squeeze-201010051545

« back to all changes in this revision

Viewing changes to html/driver1.htm

  • Committer: Bazaar Package Importer
  • Author(s): Matt Zimmerman
  • Date: 2004-10-11 16:10:27 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20041011161027-icyjbji8ujym633o
Tags: 1:4.2.0a-10ubuntu2
Use ntp.ubuntulinux.org instead of pool.ntp.org

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 3.2//EN">
2
 
<html>
3
 
<head>
4
 
<meta name="generator" content="HTML Tidy, see www.w3.org">
5
 
<meta http-equiv="Content-Type" content=
6
 
"text/html; charset=iso-8859-1">
7
 
<meta name="GENERATOR" content=
8
 
"Mozilla/4.01 [en] (Win95; I) [Netscape]">
9
 
<title>Undisciplined Local Clock</title>
10
 
</head>
11
 
<body>
12
 
<h3>Undisciplined Local Clock</h3>
13
 
 
14
 
<hr>
15
 
<h4>Synopsis</h4>
16
 
 
17
 
Address: 127.127.1.<i>u</i> <br>
18
 
Reference ID: <tt>LCL</tt> <br>
19
 
Driver ID: <tt>LOCAL</tt> 
20
 
 
21
 
<h4>Description</h4>
22
 
 
23
 
<p>This driver is intended for use in an isolated network where no
24
 
external source of synchronization such as a radio clock or modem
25
 
is available. It allows a designated time server to act as a
26
 
primary server to provide synchronization to other clients on the
27
 
network. Pick a machine that has a good clock oscillator (Digital
28
 
machines are good, Sun machines are not) and configure it with this
29
 
driver. Set the clock using the best means available, like
30
 
eyeball-and-wristwatch. Then, point all the other machines at this
31
 
one or use broadcast (not multicast) mode to distribute time.</p>
32
 
 
33
 
<p>Another application for this driver is if a particular server
34
 
clock is to be used as the clock of last resort when all other
35
 
normal synchronization sources have gone away. This is especially
36
 
useful if that server has an ovenized oscillator. For this you
37
 
would configure this driver at a stratum greater than any other
38
 
likely sources of time (say 3 or 4) to prevent the server taking
39
 
over when legitimate sources are still available.</p>
40
 
 
41
 
<p>A third application for this driver is when an external
42
 
discipline source is available, such as the NIST <tt>lockclock</tt>
43
 
program, which synchronizes the local clock via a telephone modem
44
 
and the NIST Automated Computer Time Service (ACTS), or the Digital
45
 
Time Synchronization Service (DTSS), which runs on DCE machines. In
46
 
this case the stratum should be set at zero, indicating a bona fide
47
 
stratum-1 source. In the case of DTSS, the local clock can have a
48
 
rather large jitter, depending on the interval between corrections
49
 
and the intrinsic frequency error of the clock oscillator. In
50
 
extreme cases, this can cause clients to exceed the 128-ms slew
51
 
window and drop off the NTP subnet.</p>
52
 
 
53
 
<p>In the case where a NTP time server is synchronized to some
54
 
device or protocol that is not external to the NTP daemon itself,
55
 
some means should be provided to pass such things as error and
56
 
health values to the NTP daemon for dissemination to its clients.
57
 
If this is not done, there is a very real danger that the device or
58
 
protocol could fail and with no means to tell NTP clients of the
59
 
mishap. When ordinary Unix system calls like <tt>adjtime()</tt> are
60
 
used to discipline the kernel clock, there is no obvious way this
61
 
can be done without modifying the code for each case. However, when
62
 
a modified kernel with the <tt>ntp_adjtime()</tt> system call&nbsp;
63
 
is available, that routine can be used for the same purpose as the
64
 
<tt>adjtime()</tt> routine and in addition provided with the
65
 
estimated error, maximum error, and leap-indicator values. This is
66
 
the preferred way to synchronize the kernel clock and pass
67
 
information to the NTP clients.</p>
68
 
 
69
 
<p>In the default mode the behavior of the clock selection
70
 
algorithm is modified when this driver is in use. The algorithm is
71
 
designed so that this driver will never be selected unless no other
72
 
discipline source is available. This can be overridden with the
73
 
<tt>prefer</tt> keyword of the <tt>server</tt> configuration
74
 
command, in which case only this driver will be selected for
75
 
synchronization and all other discipline sources will be ignored.
76
 
This behavior is intended for use when an external discipline
77
 
source controls the system clock. See the <a href="prefer.htm">
78
 
Mitigation Rules and the <tt>prefer</tt> Keyword</a> page for a
79
 
detailed description of the exact behavior.</p>
80
 
 
81
 
<p>The stratum for this driver is set at 3 by default, but can be
82
 
changed by the <tt>fudge</tt> configuration command and/or the <tt>
83
 
ntpdc</tt> utility. The reference ID is <tt>LCL</tt> by default,
84
 
but can be changed using the same mechanisms. <b>*NEVER*</b>
85
 
configure this driver to operate at a stratum which might possibly
86
 
disrupt a client with access to a bona fide primary server, unless
87
 
the local clock oscillator is reliably disciplined by another
88
 
source. <b>*NEVER NEVER*</b> configure a server which might devolve
89
 
to an undisciplined local clock to use multicast mode.</p>
90
 
 
91
 
<p>This driver provides a mechanism to trim the local clock in both
92
 
time and frequency, as well as a way to manipulate the leap bits.
93
 
The <tt>fudge time1</tt> parameter adjusts the time (in seconds)
94
 
and the <tt>fudge time2</tt> parameter adjusts the frequency (in
95
 
parts per million). Both parameters are additive and operate only
96
 
once; that is, each command (as from <tt>ntpdc</tt>) adds signed
97
 
increments in time or frequency to the nominal local clock time and
98
 
frequency.</p>
99
 
 
100
 
<h4>Monitor Data</h4>
101
 
 
102
 
No <tt>filegen clockstats</tt> monitor data are produced by this
103
 
driver. 
104
 
 
105
 
<h4>Fudge Factors</h4>
106
 
 
107
 
<dl>
108
 
<dt><tt>time1 <i>time</i></tt></dt>
109
 
 
110
 
<dd>Specifies the time offset calibration factor, in seconds and
111
 
fraction, with default 0.0.</dd>
112
 
 
113
 
<dt><tt>time2 <i>time</i></tt></dt>
114
 
 
115
 
<dd>Specifies the frequency offset calibration factor, in parts per
116
 
million, with default 0.0.</dd>
117
 
 
118
 
<dt><tt>stratum <i>number</i></tt></dt>
119
 
 
120
 
<dd>Specifies the driver stratum, in decimal from 0 to 15, with
121
 
default 3.</dd>
122
 
 
123
 
<dt><tt>refid <i>string</i></tt></dt>
124
 
 
125
 
<dd>Specifies the driver reference identifier, an ASCII string from
126
 
one to four characters, with default <tt>LCL</tt>.</dd>
127
 
 
128
 
<dt><tt>flag1 0 | 1</tt></dt>
129
 
 
130
 
<dd>Not used by this driver.</dd>
131
 
 
132
 
<dt><tt>flag2 0 | 1</tt></dt>
133
 
 
134
 
<dd>Not used by this driver.</dd>
135
 
 
136
 
<dt><tt>flag3 0 | 1</tt></dt>
137
 
 
138
 
<dd>Not used by this driver.</dd>
139
 
 
140
 
<dt><tt>flag4 0 | 1</tt></dt>
141
 
 
142
 
<dd>Not used by this driver.</dd>
143
 
</dl>
144
 
 
145
 
<p>Additional Information</p>
146
 
 
147
 
<p><a href="refclock.htm">Reference Clock Drivers</a></p>
148
 
 
149
 
<hr>
150
 
<a href="index.htm"><img align="left" src="pic/home.gif" alt=
151
 
"gif"></a> 
152
 
 
153
 
<address><a href="mailto:mills@udel.edu">David L. Mills
154
 
&lt;mills@udel.edu&gt;</a></address>
155
 
</body>
156
 
</html>
157