ntp.conf:很少有人提及的事

[你可以到ntp.org下个ntp server的源代码,里面有HTML格式的文档,内容很全面。]

[REF: http://doc.ntp.org/]

Comprehensive List of Clock Drivers

Following is a list showing the type and title of each driver currently implemented. The compile-time identifier for each is shown in parentheses. Click on a selected type for specific description and configuration documentation, including the clock address, reference ID, driver ID, device name and serial line speed. For those drivers without specific documentation, please contact the author listed in the Copyright Notice page.

  • Type 1 Undisciplined Local Clock (LOCAL)
  • ......

Reference Clock Support

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 Reference Clock Drivers page. Additional information can be found in the pages linked there, including the Debugging Hints for Reference Clock Drivers and How To Write a Reference Clock Driver pages. In addition, support for a PPS signal is available as described in Pulse-per-second (PPS) Signal Interfacing page.

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.

For the purposes of configuration, ntpd 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 127.127.t.u, where t is an integer denoting the clock type and u 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.

The server command is used to configure a reference clock, where the address argument in that command is the clock address. The keyversion and ttloptions are not used for reference clock support. The mode option is added for reference clock support, as described below. The prefer 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 Mitigation Rules and the prefer Keyword page. The minpoll and maxpoll options have meaning only for selected clock drivers. See the individual clock driver document pages for additional information.

The fudge command is used to provide additional information for individual clock drivers and normally follows immediately after the server command. The address argument specifies the clock address. The refid and stratum 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 fudge command as well.

The stratum number of a reference clock is by default zero. Since the ntpd 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 stratum 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 refid option is used for this purpose. Except where noted, these options apply to all clock drivers.

Reference Clock Commands

server 127.127.t.u [prefer] [mode int] [minpoll int] [maxpoll int]
This command can be used to configure reference clocks in special ways. The options are interpreted as follows:

prefer
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 Mitigation Rules and the prefer Keyword page for further information.
mode int
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 parse drivers.
minpoll int
maxpoll int
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 minpoll and maxpoll default to 6 (2^16 = 64 s). For modem reference clocks, minpolldefaults to 10 (2^10 = 1024 s = 17.1 m) and maxpoll defaults to 14 (2^14 = 16384 s = 4.5 h). The allowable range is 4 (16 s) to 17 (36.4 h) inclusive.
fudge 127.127.t.u [time1 sec] [time2 sec] [stratum int] [refid string] [flag1 0|1] [flag2 0|1] [flag3 0|1] [flag4 0|1]
This command can be used to configure reference clocks in special ways. It must immediately follow the server command which configures the driver. Note that the same capability is possible at run time using the ntpdc program. The options are interpreted as follows:

time1 sec
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.
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 enable command described in the Miscellaneous Options page and operates as described in theReference Clock Drivers page.
time2 secs
Specifies a fixed-point decimal number in seconds, which is interpreted in a driver-dependent way. See the descriptions of specific drivers in the reference clock drivers page.
stratum int
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.
refid string
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.
flag1 flag2 flag3 flag4
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 flag4 is used to enable recording monitoring data to the clockstats file configured with the filegen command. Further information on the filegen command can be found in the Monitoring Options page.
时间: 2024-08-01 21:08:47

ntp.conf:很少有人提及的事的相关文章

中越战争的意义之大,很少有人知道

中越战争的意义之大,很少有人知道 由于本人的理论认知水平有限,如翻译过来的东西有何言词不当,敬请各位网友谅解.如果文章讲述的事情跟大家知道的有出入,敬请批评指正.如果文章表述的观点有损现在正在实施的中俄战略伙伴关系,敬请贵网马上屏蔽此贴. 中越战争——冷战的转折点 冷战的转折点其实就是1979年的中越战争,这场规模有限,时间短促,方式落后的战争当时虽然引起整个世界的震动,但不久就被人遗忘,没人会想到从这一年开始,仅12年整个苏联东欧集团就彻底崩溃.而在此之前的34年里,以美国为首的西方国家想尽各

很少有人会告诉你的Android开发基本常识

原文:很少有人会告诉你的Android开发基本常识. 文章介绍了一些关于开发.测试.版本管理.工具使用等方面的知识.

Android开发经验谈-很少有人会告诉你的Android开发基本常识

本文介绍Android开发过程中的一些基本常识,大多是一些流程.专业术语和解决问题的方法等. 软件开发流程 一个完整的软件开发流程离不开策划.交互.视觉.软件.测试.维护和运营这七个环节,这七个环节并不是孤立的,它们是开发一款成功产品的前提,但每一项也都可以形成一个学科,是一个独立的岗位,随着敏捷开发的流行,以及来到了体验为王的时代,现代软件开发更多的是注重效率和敏捷,而不是循规蹈矩的遵循这些开发流程,比如软件开发的岗位不再仅仅是个技术岗位,它需要去参与前期的设计和评审.可以在视觉和交互方面提出

Python IAQ中文版 - Python中少有人回答的问题

Python中少有人回答的问题 The Python IAQ: Infrequently Answered Questions 1 Q: 什么是"少有人回答的问题(Infrequently Answered Question)" ? 一个问题之所以很少有人回答,要么是因为很少有人知道问题的答案,要么是因为它涉及到一个晦涩而隐蔽的知识点(但可能是你关心的).我过去认为是我在Java IAQ中发明了这个词组,但是它也出现在了以数据丰富而著称的About.com Urban Legends网

不完美才美—少有人知道的幸福之路

2017年11月12日看了这本书,里面一段话很有感触,我发了个朋友圈. 在你的生命中,有没有一个人,你可以在凌晨4点不假思索地给Ta打电话诉说你的烦恼? 如果有的话,你就比没人可以打电话的人长寿. 哈佛精神科医生George Vaillant的研究发现. 其实很多人都觉得是没有的,有人直截了当说没有.有人说可以打给爸爸妈妈,有人开玩笑说下午4点也没有啊.有人@评论里的人说我想到了你,而你说没有. 看这本书让我想了一些没有想过的问题,也让我在烦躁焦虑中获得一点心灵的宁静.这本书大概有点心灵鸡汤,但

《医生,不医死》:台湾急诊科大夫的急诊科故事:鸡贼人鸡贼事,病人的不信任,负责任的、不负责任的医生。三星

作者是台湾某医院急诊科大夫.本书是这位大夫讲的急诊科的故事.涉及医学专业的部分很少,也许最适合的读者是医生. 全书共三部分,第一部分是作者在急诊科遇到的鸡贼人鸡贼事,比如: 父母有病,子女不去看望,要求不要做抢救,反而是护工比较尽职尽责:保姆生病,主人抱怨:外国劳工有病,雇主恨不得赶紧给送回国:病人之间互相攀比,得了癌症的觉得旁边的病友比自己更重才对. 中间一部分,说的是病人对医生的不信任,动辄诉讼,医生的无奈.好歹比大陆强一点,没提到有暴力事件: 后面一部分是对医生的责任的一些思考. 全书是繁

读书笔记:《少有人走的路1----心智成熟的旅程》

读书笔记:<少有人走的路1----心智成熟的旅程> 这不能算做一本励志的书,只是从心理学的角度分析我们大多数人的心理和行为,原来我们大多数人或多或少都有心理方面的问题,从本书中第一次了解了规矩.爱.信仰和恩典,也算是一种重生了. 2012年3月读完第一遍,2012年10月断断续续地读完了第二遍,透过全书重新理解了四条规矩.爱的定义.相信科学也是一种信仰.人生中充满恩典,这本书应该是对我人生影响最大的第二本书了,第一本书就是<搞定1>,通过实践GTD让我遇到了第二本好书. 第一部分:

我对于男人喜欢喷香水是觉得很恶心的一件事

我对于男人喷香水是觉得很恶心的一件事,并且还是干IT的,不管怎样我觉得都要相信自身的魅力,无论是气味如何,自然才是最重要的, 除非你最近得了什么怪病,有很严重的体味,照顾周围的人的味觉和出于礼貌,我觉得这是可以接受的. 另外对于一些本身智商很聪明的人我们都希望他/她们不要浪费自己的才华,自己刚刚去鉴定过智商为116, 极少情况是118, 因此估计暂且认为自己的智商只能是普通人中偏高的而已.而门萨的入门级别是120,甚至有些国外的要求是在130以上.因此,我绝对不能算是聪明的那类. 可是我仍然觉得

为什么软件开发,人多,事少,还会工作量大?

本文所要分享的是软件开发过程中,亲身经历过的“怪现象”.为什么说怪呢,人多力量大,似乎才符合常理,但是往往在软件项目开展的过程中会出现人多.事少.工作量大的情况,这跟我们以往的认知大相径庭. 首先,要解释下标题的意思.人多,指的是同一个项目团队.同一个小组或者同一个部门的范围内:事少, 指的是做出的效果,真正的产出少:工作量大,指的是,工作时间长,工作忙,实际的投入大. 其实,人多事少工作量大,说白了就是效率低,而影响效率的,原因千万种,有人员问题.沟通问题.流程问题.管理问题.技术问题,下面零