Annotation of embedaddon/ntp/html/clockopt.html, revision 1.1.1.1

1.1       misho       1: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
                      2: 
                      3: <html>
                      4: 
                      5:        <head>
                      6:                <meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
                      7:                <meta name="generator" content="HTML Tidy, see www.w3.org">
                      8:                <title>Reference Clock Options</title>
                      9:                <link href="scripts/style.css" type="text/css" rel="stylesheet">
                     10:        </head>
                     11: 
                     12:        <body>
                     13:                <h3>Reference Clock Options</h3>
                     14:                <img src="pic/stack1a.jpg" alt="gif" align="left">Master Time Facility at the <a href="http://www.eecis.udel.edu/%7emills/lab.html">UDel Internet Research Laboratory</a>
                     15:                <p>Last update:
                     16:                        <!-- #BeginDate format:En2m -->04-Oct-2009  19:42<!-- #EndDate -->
                     17:                UTC</p>
                     18: <br clear="left">
                     19:                <h4>Related Links</h4>
                     20:                <script type="text/javascript" language="javascript" src="scripts/refclock.txt"></script>
                     21:                <script type="text/javascript" language="javascript" src="scripts/audio.txt"></script>
                     22:                <script type="text/javascript" language="javascript" src="scripts/clockopt.txt"></script>
                     23:                <h4>Table of Contents</h4>
                     24:                <ul>
                     25:                        <li class="inline"><a href="#ref">Reference Clock Support</a>
                     26:                        <li class="inline"><a href="#cmd">Reference Clock Commands</a>
                     27:                </ul>
                     28:                <hr>
                     29:                <h4 id="ref">Reference Clock Support</h4>
                     30:                <p>The NTP Version 4 daemon supports some three dozen different radio, satellite and modem reference clocks plus a special pseudo-clock used for backup or when no other clock source is available. Detailed descriptions of individual device drivers and options can be found in the <a href="refclock.html">Reference Clock Drivers</a> page. Additional information can be found in the pages linked there, including the <a href="rdebug.html">Debugging Hints for Reference Clock Drivers</a> and <a href="howto.html">How To Write a Reference Clock Driver</a> pages. In addition, support for a PPS signal is available as described in <a href="pps.html">Pulse-per-second (PPS) Signal Interfacing</a> page.</p>
                     31:                <p>A reference clock will generally (though not always) be a radio timecode receiver which is synchronized to a source of standard time such as the services offered by the NRC in Canada and NIST and USNO in the US. The interface between the computer and the timecode receiver is device dependent, but is usually a serial port. A device driver specific to each reference clock must be selected and compiled in the distribution; however, most common radio, satellite and modem clocks are included by default. Note that an attempt to configure a reference clock when the driver has not been compiled or the hardware port has not been appropriately configured results in a scalding remark to the system log file, but is otherwise non hazardous.</p>
                     32:                <p>For the purposes of configuration, <tt>ntpd</tt> treats reference clocks in a manner analogous to normal NTP peers as much as possible. Reference clocks are identified by a syntactically correct but invalid IP address, in order to distinguish them from normal NTP peers. Reference clock addresses are of the form <tt>127.127.<i>t.u</i></tt>, where <i><tt>t</tt></i> is an integer denoting the clock type and <i><tt>u</tt></i> indicates the unit number in the range 0-3. While it may seem overkill, it is in fact sometimes useful to configure multiple reference clocks of the same type, in which case the unit numbers must be unique.</p>
                     33:                <p>The <tt>server</tt> command is used to configure a reference clock, where the <i><tt>address</tt></i> argument in that command is the clock address. The <tt>key</tt>, <tt>version</tt> and <tt>ttl</tt> options are not used for reference clock support. The <tt>mode</tt> option is added for reference clock support, as described below. The <tt>prefer</tt> option can be useful to persuade the server to cherish a reference clock with somewhat more enthusiasm than other reference clocks or peers. Further information on this option can be found in the <a href="prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page. The <tt>minpoll</tt> and <tt>maxpoll</tt> options have meaning only for selected clock drivers. See the individual clock driver document pages for additional information.</p>
                     34:                <p>The <tt>fudge</tt> command is used to provide additional information for individual clock drivers and normally follows immediately after the <tt>server</tt> command. The <i><tt>address</tt></i> argument specifies the clock address. The <tt>refid</tt> and <tt>stratum</tt> options control can be used to override the defaults for the device. There are two optional device-dependent time offsets and four flags that can be included in the <tt>fudge</tt> command as well.</p>
                     35:                <p>The stratum number of a reference clock is by default zero. Since the <tt>ntpd</tt> daemon adds one to the stratum of each peer, a primary server ordinarily displays an external stratum of one. In order to provide engineered backups, it is often useful to specify the reference clock stratum as greater than zero. The <tt>stratum</tt> option is used for this purpose. Also, in cases involving both a reference clock and a pulse-per-second (PPS) discipline signal, it is useful to specify the reference clock identifier as other than the default, depending on the driver. The <tt>refid</tt> option is used for this purpose. Except where noted, these options apply to all clock drivers.</p>
                     36:                <h4 id="cmd">Reference Clock Commands</h4>
                     37:                <dl>
                     38:                        <dt id="server"><tt>server 127.127.<i>t.u</i> [prefer] [mode <i>int</i>] [minpoll <i>int</i>] [maxpoll <i>int</i>]</tt>
                     39:                        <dd>This command can be used to configure reference clocks in special ways. The options are interpreted as follows:
                     40:                                <dl>
                     41:                                        <dt><tt>prefer</tt>
                     42:                                        <dd>Marks the reference clock as preferred. All other things being equal, this host will be chosen for synchronization among a set of correctly operating hosts. See the <a href="prefer.html">Mitigation Rules and the <tt>prefer</tt> Keyword</a> page for further information.
                     43:                                        <dt><tt>mode <i>int</i></tt>
                     44:                                        <dd>Specifies a mode number which is interpreted in a device-specific fashion. For instance, it selects a dialing protocol in the ACTS driver and a device subtype in the <tt>parse</tt> drivers.
                     45:                                        <dt><tt>minpoll <i>int</i></tt>
                     46:                                        <dt><tt>maxpoll <i>int</i></tt>
                     47:                                        <dd>These options specify the minimum and maximum polling interval for reference clock messages in seconds, interpreted as dual logarithms (2 ^ x). For most directly connected reference clocks, both <tt>minpoll</tt> and <tt>maxpoll</tt> default to 6 (2^16 = 64 s). For modem reference clocks, <tt>minpoll</tt> defaults to 10 (2^10 = 1024 s = 17.1 m) and <tt>maxpoll</tt> defaults to 14 (2^14 = 16384 s = 4.5 h). The allowable range is 4 (16 s) to 17 (36.4 h) inclusive.
                     48:                                </dl>
                     49:                        <dt id="fudge"><tt>fudge 127.127.<i>t.u</i> [time1 <i>sec</i>] [time2 <i>sec</i>]
                     50:                                        [stratum <i>int</i>] [refid <i>string</i>] [flag1 0|1]
                     51:                                        [flag2 0|1] [flag3 0|1] [flag4 0|1]</tt>
                     52:                        <dd>This command can be used to configure reference clocks in special ways. It must immediately follow the <tt>server</tt> command which configures the driver. Note that the same capability is possible at run time using the <tt><a href="ntpdc.html">ntpdc</a></tt> program. The options are interpreted as follows:
                     53:                                <dl>
                     54:                                        <dt><tt>time1 <i>sec</i></tt>
                     55:                                        <dd>Specifies a constant to be added to the time offset produced by the driver, a fixed-point decimal number in seconds. This is used as a calibration constant to adjust the nominal time offset of a particular clock to agree with an external standard, such as a precision PPS signal. It also provides a way to correct a systematic error or bias due to serial port or operating system latencies, different cable lengths or receiver internal delay. The specified offset is in addition to the propagation delay provided by other means, such as internal DIPswitches. Where a calibration for an individual system and driver is available, an approximate correction is noted in the driver documentation pages.
                     56:                                        <dd>Note: in order to facilitate calibration when more than one radio clock or PPS signal is supported, a special calibration feature is available. It takes the form of an argument to the <tt>enable</tt> command described in the <a href="miscopt.html">Miscellaneous Options</a> page and operates as described in the <a href="refclock.html">Reference Clock Drivers</a> page.
                     57:                                        <dt><tt>time2 <i>secs</i></tt>
                     58:                                        <dd>Specifies a fixed-point decimal number in seconds, which is interpreted in a driver-dependent way. See the descriptions of specific drivers in the <a href="refclock.html">reference clock drivers</a> page.
                     59:                                        <dt><tt>stratum <i>int</i></tt>
                     60:                                        <dd>Specifies the stratum number assigned to the driver, an integer between 0 and 15. This number overrides the default stratum number ordinarily assigned by the driver itself, usually zero.
                     61:                                        <dt><tt>refid <i>string</i></tt>
                     62:                                        <dd>Specifies an ASCII string of from one to four characters which defines the reference identifier used by the driver. This string overrides the default identifier ordinarily assigned by the driver itself.
                     63:                                        <dt><tt>flag1 flag2 flag3 flag4</tt>
                     64:                                        <dd>These four flags are used for customizing the clock driver. The interpretation of these values, and whether they are used at all, is a function of the particular clock driver. However, by convention <tt>flag4</tt> is used to enable recording monitoring data to the <tt>clockstats</tt> file configured with the <tt>filegen</tt> command. Further information on the <tt>filegen</tt> command can be found in the <a href="monopt.html">Monitoring Options</a> page.
                     65:                                </dl>
                     66:                </dl>
                     67:                <hr>
                     68:                <script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
                     69:        </body>
                     70: 
                     71: </html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>