網 路 時間 協定
|
---|
|
|
|
网络时间协议(
NTP
该协议
历史[编辑]
1979
现在还有其他
1985
1988
1989
1992
时钟层[编辑]
NTP
- 阶层0(Stratum 0)
- 这些
是 高 精度 计时设备,例 如原子 鐘 (如铯、铷)、GPS时钟或 其他無線 電 時 鐘 。它们生成 非常 精 确的脉冲秒 信号 ,触 发所连接计算机上 的 中斷 和 时间戳。阶层0设备也称为参考 (基 准 )时钟。 - 阶层1
- 这些与阶层0设备
相 连、在 几微秒 误差内 同 步 系 统时钟的 计算机 。阶层1服 务器可能 与 其他阶层1服 务器对等相 连,以进行 完 整 性 检查和 备份。[10]它们也被称 为主要 (primary)时间服 务器。[2][3] - 阶层2
- 这些计算
机 通 过网络与阶层1服 务器同 步 。提供 阶层2的 计算机 将 查询多 个阶层1服 务器。阶层2计算机 也可能 与 其他阶层2计算机 对等相 连,为对等 组中的 所有 设备提供 更 健全 穩定的 时间。 - 阶层3
- 这些计算
机 与 阶层2的 服 务器同 步 。它们使用 与 阶层2相 同 的 算法 进行对等和 数 据 采 样,并可以自己 作 为服务器担任 阶层4计算机 ,以此类推。
阶层
时间戳[编辑]
NTP
NTP
时钟同 步 算法 [编辑]
- ,
往返
- ,
其中:
- t0
是 请求数 据 包 传输的 客 户端时间戳, - t1
是 请求数 据 包 回 复的服 务器时间戳, - t2
是 响应数 据 包 传输的 服 务器时间戳 - t3
是 响应数 据 包 回 复的客 户端时间戳。[1]:19
“
软件实现[编辑]
参考 实现[编辑]
NTP
SNTP[编辑]
一个复杂度更低的NTP实现,
Windows时间服 务[编辑]
从Windows 2000
W32Time
Windows 10
Ntimed[编辑]
闰秒[编辑]
2038年 問題 [编辑]
安全 问题[编辑]
2014
NTP
参 见[编辑]
备注[编辑]
参考 资料[编辑]
- ^ 1.0 1.1 1.2 1.3 1.4 1.5 1.6 1.7 David L. Mills. Computer Network Time Synchronization: The Network Time Protocol. Taylor & Francis. 12 December 2010: 12– [2017-01-04]. ISBN 978-0-8493-5805-0. (
原始 内容 存 档于2014-07-18). - ^ 2.0 2.1 2.2 Executive Summary: Computer Network Time Synchronization. [2011-11-21]. (
原始 内容 存 档于2011-11-02). - ^ 3.0 3.1 3.2 3.3 NTP FAQ. The NTP Project. [2011-08-27]. (
原始 内容 存 档于2011-09-06). - ^ Port Numbers. The Internet Assigned Numbers Authority (IANA). [2017-01-04]. (
原始 内容 存 档于2001-06-04). - ^ Page 16. [2017-01-04]. (
原始 内容 存 档于2018-01-01). - ^ David L. Mills. Computer Network Time Synchronization: The Network Time Protocol on Earth and in Space, Second Edition. CRC Press. 15 November 2010: 377. ISBN 978-1-4398-1464-2.
- ^ Network Time Synchronization Research Project. [24 December 2014]. (
原始 内容 存 档于2014-12-23). - ^ NTP Needs Money: Is A Foundation The Answer?.
信 息 周 刊 . March 23, 2015 [April 4, 2015]. (原始 内容 存 档于2015-04-10). - ^ NTP's Fate Hinges On 'Father Time'.
信 息 周 刊 . March 11, 2015 [April 4, 2015]. (原始 内容 存 档于2015-04-10). - ^ Network Time Protocol: Best Practices White Paper. [15 October 2013]. (
原始 内容 存 档于2013-10-01). - ^ David L. Mills. The NTP Era and Era Numbering. 12 May 2012 [24 September 2016]. (
原始 内容 存 档于2016-10-26). - ^ W. Richard Stevens; Bill Fenner; Andrew M. Rudoff. UNIX Network Programming. Addison-Wesley Professional. 2004: 582– [2017-01-04]. ISBN 978-0-13-141155-5. (
原始 内容 存 档于2019-03-30). - ^
特 拉 华大学 Digital Systems Seminar presentation by David Mills, 2006-04-26 - ^ Gotoh, T.; Imamura, K.; Kaneko, A. Improvement of NTP time offset under the asymmetric network with double packets method. Conference on Precision Electromagnetic Measurements: 448–449. 2002. ISBN 0-7803-7242-5. doi:10.1109/CPEM.2002.1034915.
- ^ Network Time Protocol Version 4: Protocol and Algorithms Specification: 54. June 2010 [2012-08-26]. (
原始 内容 存 档于2019-04-22).Primary servers and clients complying with a subset of NTP, called the Simple Network Time Protocol (SNTPv4) [...], do not need to implement the mitigation algorithms [...] The fully developed NTPv4 implementation is intended for [...] servers with multiple upstream servers and multiple downstream servers [...] Other than these considerations, NTP and SNTP servers and clients are completely interoperable and can be intermixed [...]
- ^ RFC 2030
- ^ RFC 4330
- ^ RFC 5905
- ^ Archiveddocs. Windows Time Service Technical Reference: Windows Time Service. docs.microsoft.com. [2022-03-12]. (
原始 内容 存 档于2022-07-06) (美国 英 语). - ^ Windows Time Service page at NTP.org. Support.ntp.org. 2008-02-25 [2011-01-12]. (
原始 内容 存 档于2021-04-09). - ^ Archiveddocs. How Windows Time Service Works: Windows Time Service. docs.microsoft.com. [2022-03-12]. (
原始 内容 存 档于2022-07-08) (美国 英 语). - ^ Support boundary to configure the Windows Time service for high accuracy environments.
微 软. 2011-10-19 [2017-01-04]. (原始 内容 存 档于2009-01-12). - ^ Ned Pyle. High Accuracy W32time Requirements.
微 软. 2007-10-23 [2012-08-26]. (原始 内容 存 档于2012-10-17). - ^ dahavey. Windows Server 2016
精 确时间. docs.microsoft.com. [2022-03-12]. (原始 内容 存 档于2022-03-12) (中 文 (中国 大 陆)). - ^ dahavey. Support boundary for high-accuracy time. docs.microsoft.com. [2022-03-12]. (
原始 内容 存 档于2021-05-02) (美国 英 语). - ^ Poul-Henning, Kamp. 20140926 – Playing with time again. PHK's Bikeshed. [4 June 2015]. (
原始 内容 存 档于2017-02-13). - ^ Poul-Henning, Kamp. Network time synchronization software, NTPD replacement.. ntimed git repository README file. Github. [4 June 2015]. (
原始 内容 存 档于2015-08-02). - ^ Poul-Henning, Kamp. 20150111 – What happened next?. PHK's Bikeshed. 2015-01-11 [4 June 2015]. (
原始 内容 存 档于2016-11-14). - ^ David Mills. The NTP Timescale and Leap Seconds. [15 October 2013]. (
原始 内容 存 档于2013-09-07). - ^ Network Time Protocol Version 4: Autokey Specification. IETF. 2010 [2014-10-16]. (
原始 内容 存 档于2014-10-13). - ^ NTP Security Analysis. [11 October 2013]. (
原始 内容 存 档于2013-09-07). - ^ Jose Selvi. Bypassing HTTP Strict Transport Security (PDF). 2014-10-16 [2014-10-16]. (
原始 内容 存 档 (PDF)于2014-10-18). - ^ Aanchal Malhotra; Isaac E. Cohen; Erik Brakke & Sharon Goldberg. Attacking the Network Time Protocol (PDF). NDSS. 20 October 2015. (
原始 内容 存 档 (PDF)于2015-10-22). - ^ Attacking the Network Time Protocol. www.cs.bu.edu. [2015-10-27]. (
原始 内容 存 档于2015-10-24). - ^ Security Notice. Support.ntp.org. 2009-12-10 [2011-01-12].[
失效 連結 ] - ^ results returned by a search on "Network Time Protocol"[
永久 失效 連結 ] at [1] (页面存 档备份,存 于互联网档案 馆)[原 創 研究 ?] - ^ in RFC 778, RFC 891, RFC 956, RFC 958, RFC 1305, RFC 5905, and the NTPv4 specification (页面
存 档备份,存 于互联网档案 馆) - ^ Code Audit. Support.ntp.org. 2009-06-13 [2011-01-12].
- ^ Goodin, Dan. New DoS attacks taking down game sites deliver crippling 100Gbps floods. Ars Technica. 2014-01-13 [2014-01-25]. (
原始 内容 存 档于2014-01-25). - ^ Lee, Dave. Huge hack 'ugly sign of future' for internet threats. BBC. 2014-02-11 [2014-02-12]. (
原始 内容 存 档于2021-03-08). - ^ DRDoS / Amplification Attack using ntpdc monlist command. support.ntp.org. 2010-04-24 [2014-04-13]. (
原始 内容 存 档于2014-02-19). - ^ Network Time Protocol Vulnerabilities (Update C) | ICS-CERT. Ics-cert.us-cert.gov. [2015-04-15]. (
原始 内容 存 档于2014-12-20). - ^ Cunningham, Andrew. Apple automatically patches Macs to fix severe NTP security flaw. arstechnica. Dec 23, 2014 [Apr 29, 2015]. (
原始 内容 存 档于2015-05-15). - ^ NTP vulnerability on versions prior to 4.2.8 -- we OK?. Apple Support Communities. [2017-01-04]. (
原始 内容 存 档于2014-12-24). - ^ Fairhead, Harry. NTP The Latest Open Source Security Problem. I Programmer. 23 December 2014 [2017-01-04]. (
原始 内容 存 档于2014-12-24).
拓 展 阅读[编辑]
- Definitions of Managed Objects for Network Time Protocol Version 4 (NTPv4). RFC 5907.
- Network Time Protocol (NTP) Server Option for DHCPv6. RFC 5908.
外部 链接[编辑]
官 方 网站 (英文 )公共 NTP服 务器列 表 (页面存 档备份,存 于互联网档案 馆) (英文 )- NTP节点镜像
群 (页面存 档备份,存 于互联网档案 馆) - IETF NTP working group (页面
存 档备份,存 于互联网档案 馆) - Time and NTP paper (页面
存 档备份,存 于互联网档案 馆) - NTP Survey 2005
- Current NIST leap seconds file compatible with ntpd[
永久 失效 連結 ] - David L. Mills, A Brief History of NTP Time: Confessions of an Internet Timekeeper (页面
存 档备份,存 于互联网档案 馆) - Keith Marzullo's homepage (页面
存 档备份,存 于互联网档案 馆) - NTP Server Test Online Tool (页面
存 档备份,存 于互联网档案 馆)