e01.org

Network Time Protocol

The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was designed by David L. Mills of the University of Delaware. NTP is intended to synchronize participating computers to within a few milliseconds of Coordinated Universal Time (UTC). It uses the intersection algorithm, a modified version of Marzullo's algorithm, to select accurate time servers and is designed to mitigate the effects of variable network latency. NTP can usually maintain time to within tens of milliseconds over the public Internet, and can achieve better than one millisecond accuracy in local area networks under ideal conditions. Asymmetric routes and network congestion can cause errors of 100 ms or more. The protocol is usually described in terms of a client–server model, but can as easily be used in peer-to-peer...

The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was designed by David L. Mills of the University of Delaware. NTP is intended to synchronize participating computers to within a few milliseconds of Coordinated Universal Time (UTC). It uses the intersection algorithm, a modified version of Marzullo's algorithm, to select accurate time servers and is designed to mitigate the effects of variable network latency. NTP can usually maintain time to within tens of milliseconds over the public Internet, and can achieve better than one millisecond accuracy in local area networks under ideal conditions. Asymmetric routes and network congestion can cause errors of 100 ms or more. The protocol is usually described in terms of a client–server model, but can as easily be used in peer-to-peer relationships where both peers consider the other to be a potential time source. Implementations send and receive timestamps using the User Datagram Protocol (UDP); the service is normally on port number 123, and in some modes both sides use this port number. They can also use broadcasting or multicasting, where clients passively listen to time updates after an initial round-trip calibrating exchange. NTP supplies a warning of any impending leap second adjustment, but no information about local time zones or daylight saving time is transmitted. The current protocol is version 4 (NTPv4), which is backward compatible with version 3. \theta = \frac{(t_1 - t_0) + (t_2 - t_3 )}{2} , and the round-trip delay δ by \delta = {(t_3 - t_0 ) - ( t_2- t_1 )} , where t 0 is the client's timestamp of the request packet transmission, t 1 is the server's timestamp of the request packet reception, t 2 is the server's timestamp of the response packet transmission and t 3 is the client's timestamp of the response packet reception. To derive the expression for the offset, note that for the request packet, t_0 + \theta + \delta/2 = t_1 and for the response packet, t_3 + \theta - \delta/2 = t_2 Solving for θ yields the definition of the time offset. The values for θ and δ are passed through filters and subjected to statistical analysis ("mitigation"). Outliers are discarded and an estimate of time offset is derived from the best three remaining candidates. The clock frequency is then adjusted to reduce the offset gradually ("discipline"), creating a feedback loop. Accurate synchronization is achieved when both the incoming and outgoing routes between the client and the server have symmetrical nominal delay. If the routes do not have a common nominal delay, a systematic bias exists of half the difference between the forward and backward travel times. A number of approaches have been proposed to measure asymmetry, but among practical implementations only chrony seems to have one included. Microsoft Windows accurate time guide and more Time and NTP paper NTP Survey 2005 Current NIST leap seconds file compatible with ntpd

References

  1. ^ Martin, Jim; Burbank, Jack; Kasch, William; Mills, Professor David L. (June 2010). Network Time Protocol Version 4: Protocol and Algorithms Specification (Report). Internet Engineering Task Force. p. 12. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  2. ^ 2 −64 seconds is about 54 zeptoseconds (light would travel 16.26 picometers, or approximately 0.31 × Bohr radius ), and 2 64 seconds is about 585 billion years . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  3. ^ Alexander, Steve (1 March 1997). "DHCP Options and BOOTP Vendor Extensions" . IETF Datatracker . section-8.3 . Retrieved 25 January 2026 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  4. ^ Lear, Eliot; Eggert, Paul (1 April 2007). Timezone Options for DHCP (Report). Internet Engineering Task Force . Retrieved 26 January 2026 . {{ cite report }} : CS1 maint: url-status ( link ) Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  5. ^ David L. Mills (March 1992). Network Time Protocol (Version 3) - Specification, Implementation and Analysis . Network Working Group. doi : 10.17487/RFC1305 . RFC 1305 . Obsolete. The clock-selection procedure was modified to remove the first of the two sorting/discarding steps and replace with an algorithm first proposed by Marzullo and later incorporated in the Digital Time Service. These changes do not significantly affect the ordinary operation of or compatibility with various versions of NTP, but they do provide the basis for formal statements of correctness. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  6. ^ Lichvar, Miroslav (2 July 2025). "Network Time Protocol Version 5" . www.ietf.org . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  7. ^ D. Mills ; J. Burbank; W. Kasch (August 2010). J. Martin (ed.). Network Time Protocol Version 4: Protocol and Algorithms Specification . Internet Engineering Task Force . doi : 10.17487/RFC5905 . ISSN 2070-1721 . RFC 5905 . 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 [...] Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  8. ^ Telecommunication systems use a different definition for clock strata . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  9. ^ "Combining PTP with NTP to Get the Best of Both Worlds" . www.redhat.com . Programs from the linuxptp package can be used in a combination with an NTP daemon. A PTP clock on a NIC is synchronized by ptp4l and is used as a reference clock by chronyd or ntpd for synchronization of the system clock. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  10. ^ "IMS-PZF: PZF (DCF77) Correlation Receiver (Eurocard)" . Meinberg Funkuhren GmbH & Co KG . Retrieved 19 June 2025 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  11. ^ "Is there any flag in an NTP response to indicate Google's leap second smearing is in effect?" . Groups.google.com . Retrieved 22 June 2026 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  12. ^ "Event Messages and Status Words" . docs.ntpsec.org . Refid codes are used in kiss-o'-death (KoD) packets, the reference identifier field in ntpq and ntpmon billboard displays and log messages. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  13. ^ "Network Time Protocol (NTP) Parameters" . www.iana.org . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  14. ^ dahavey. "Support boundary for high-accuracy time" . docs.microsoft.com . Archived from the original on 2 May 2021 . Retrieved 24 July 2021 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  15. ^ "ntpd(8) - OpenBSD manual pages" . man.openbsd.org . It implements the Simple Network Time Protocol version 4, as described in RFC 5905, and the Network Time Protocol version 3, as described in RFC 1305. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  16. ^ Raymond, Eric S. (30 March 2017). "NTPsec: a Secure, Hardened NTP Implementation | Linux Journal" . Linux Journal . Retrieved 26 January 2024 . {{ cite web }} : CS1 maint: deprecated archival service ( link ) Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  17. ^ "Pentest-Report NTPsec 01.2017" (PDF) . Cure53. 2017. Archived (PDF) from the original on 4 July 2019 . Retrieved 3 July 2019 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  18. ^ "chrony/chrony.git - Official Git repository for the Chrony project" . git.tuxfamily.org . Retrieved 31 July 2021 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  19. ^ Aas, Josh. "More Memory Safety for Let's Encrypt: Deploying ntpd-rs" . Let's Encrypt . Let's Encrypt . Retrieved 18 December 2024 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  20. ^ "Network Time Security - ntpd-rs documentation" . docs.ntpd-rs.pendulum-project.org . Retrieved 13 January 2025 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  21. ^ "Switching from OpenNTPd to Chrony - anarcat" . anarc.at . So in effect, systemd-timesyncd became the default NTP daemon in Debian in bookworm, which I find somewhat surprising. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  22. ^ "ntpdate(8): set date/time via NTP - Linux man page" . linux.die.net . Retrieved 12 April 2020 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  23. ^ Harlan Stenn (2 September 2012). "NTP.Org — Deprecating ntpdate" . Retrieved 30 October 2012 . The combination of ntpd and sntp now implements the functions of ntpdate. As soon as a few remaining issues with sntp are resolved the ntpdate program will be retired. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  24. ^ Obleukhov, Oleg (18 March 2020). "Building a more accurate time service at Facebook scale" . Engineering at Meta . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  25. ^ "chrony – Frequently Asked Questions" . chrony.tuxfamily.org . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  26. ^ a b "NTP Security Analysis" . Archived from the original on 7 September 2013 . Retrieved 11 October 2013 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  27. ^ David Mills. "The NTP Timescale and Leap Seconds" . Archived from the original on 7 September 2013 . Retrieved 15 October 2013 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  28. ^ "Security Notice" . Support.NTP.org . 10 December 2009 . Retrieved 12 January 2011 . [ permanent dead link ] Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  29. ^ "sourcestats.c, function estimate_asymmetry()" . git.tuxfamily.org (chrony) . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  30. ^ Dieter Sibold; Stephen Röttger (2012). Analysis of NTP's Autokey Protocol (PDF) . IETF 83. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  31. ^ H. Stenn; D. Sibold (July 2019). D. Reilly (ed.). Network Time Protocol Best Current Practices . Internet Engineering Task Force . doi : 10.17487/RFC8633 . ISSN 2070-1721 . BCP 223. RFC 8633 . Best Current Practice 223. sec. 4.2. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  32. ^ "nts.time.nl homepage" . nts.time.nl . Retrieved 19 August 2021 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  33. ^ Langer, Martin (5 December 2019). "Setting up NTS-Secured NTP with NTPsec" . Weberblog.net . Retrieved 19 August 2021 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  34. ^ "How to use NTS | Netnod" . Netnod . Retrieved 19 August 2021 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  35. ^ "Network Time Security · Cloudflare Time Services docs" . developers.cloudflare.com . 13 August 2024 . Retrieved 12 January 2025 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  36. ^ "[MS-SNTP]: Network Time Protocol (NTP) Authentication Extensions" . 24 June 2021. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  37. ^ "How the Windows Time Service Works" . technet.microsoft.com. 12 March 2010. Archived from the original on 24 September 2011 . Retrieved 19 September 2011 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  38. ^ David L. Mills (October 1991). "Internet Time Synchronization: The Network Time Protocol" (PDF) . IEEE Transactions on Communications . 39 (10): 1482– 1493. Bibcode : 1991ITCom..39.1482M . doi : 10.1109/26.103043 . Archived (PDF) from the original on 10 June 2016 . Retrieved 6 November 2017 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  39. ^ Both, David. "Manage NTP with Chrony" . Opensource.com . Archived from the original on 29 June 2019 . Retrieved 29 June 2019 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  40. ^ Aanchal Malhotra; Isaac E. Cohen; Erik Brakke & Sharon Goldberg (20 October 2015). "Attacking the Network Time Protocol" (PDF) . NDSS . Archived from the original (PDF) on 22 October 2015 . Retrieved 27 October 2015 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  41. ^ "Cisco IOS Software Network Time Protocol Packet Vulnerability" . Cisco Systems . 23 September 2009. Archived from the original on 11 June 2020 . Retrieved 11 June 2020 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  42. ^ a b c "Future Plans", Network Time Synchronization Research Project , archived from the original on 23 December 2014 , retrieved 24 December 2014 Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  43. ^ Lee, Dave (11 February 2014). "Huge Hack 'Ugly Sign of Future' for Internet Threats" . BBC. Archived from the original on 11 February 2014 . Retrieved 12 February 2014 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  44. ^ Goodin, Dan (13 January 2014). "New DoS attacks taking down game sites deliver crippling 100Gbps floods" . Ars Technica . Archived from the original on 24 January 2014 . Retrieved 25 January 2014 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  45. ^ Poul-Henning, Kamp. "20140926 – Playing with time again" . PHK's Bikeshed . Archived from the original on 20 December 2019 . Retrieved 4 June 2015 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  46. ^ University of Delaware Digital Systems Seminar presentation by David Mills, 2006-04-26 Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  47. ^ "Windows Server 2016 Accurate Time" . technet.microsoft.com . Archived from the original on 2 December 2016 . Retrieved 7 December 2016 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  48. ^ Poul-Henning, Kamp. "Network time synchronization software, NTPD replacement" . ntimed git repository README file . Github. Archived from the original on 2 August 2015 . Retrieved 4 June 2015 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  49. ^ Liska, Allan (10 December 2016). NTP Security: A Quick-Start Guide . Apress. pp. 80–. ISBN 978-1-4842-2412-0 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  50. ^ a b " 'ntpq -p' output" . NLUG.ML1.co.uk . Archived from the original on 12 November 2018 . Retrieved 12 November 2018 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  51. ^ "NTP's Fate Hinges On 'Father Time' " . InformationWeek . 11 March 2015. Archived from the original on 10 April 2015 . Retrieved 4 April 2015 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  52. ^ a b c d e f David L. Mills (12 December 2010). Computer Network Time Synchronization: The Network Time Protocol . Taylor & Francis. pp. 12–. ISBN 978-0-8493-5805-0 . Archived from the original on 18 July 2014 . Retrieved 16 October 2016 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  53. ^ David L. Mills (15 November 2010). Computer Network Time Synchronization: The Network Time Protocol on Earth and in Space, Second Edition . CRC Press. p. 377. ISBN 978-1-4398-1464-2 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  54. ^ D.L. Mills (25 February 1981), Time Synchronization in DCNET Hosts , archived from the original on 30 December 1996 Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  55. ^ Jose Selvi (16 October 2014). "Bypassing HTTP Strict Transport Security" (PDF) . Archived from the original (PDF) on 18 October 2014 . Retrieved 16 October 2014 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  56. ^ a b Lichvar, Miroslav (18 September 2018). "chrony – chrony.conf(5)" . Chrony project . Retrieved 2 August 2020 . This directive enables hardware timestamping of NTP packets sent to and received from the specified network interface. Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  57. ^ Fairhead, Harry (23 December 2014). "NTP The Latest Open Source Security Problem" . I Programmer. Archived from the original on 24 December 2014 . Retrieved 24 December 2014 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  58. ^ "Attacking the Network Time Protocol" . www.cs.bu.edu . Archived from the original on 24 October 2015 . Retrieved 27 October 2015 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  59. ^ Lichvar, Miroslav (20 July 2016). "Combining PTP with NTP to Get the Best of Both Worlds" . Red Hat Enterprise Linux Blog . Red Hat . Archived from the original on 30 July 2016 . Retrieved 19 November 2017 . Starting with Red Hat Enterprise Linux 7.0 (and now in Red Hat Enterprise Linux 6.8) a more versatile NTP implementation is also provided via the chrony package Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
  60. ^ W. Richard Stevens; Bill Fenner; Andrew M. Rudoff (2004). UNIX Network Programming . Addison-Wesley Professional. pp. 582–. ISBN 978-0-13-141155-5 . Archived from the original on 30 March 2019 . Retrieved 16 October 2016 . Wikipedia revision 1375597400, retrieved 2026-11-18 · 1794956400.0
source: e01 Encyclopedia · licence: CC BY-SA 4.0 · page · source revision

Cite this

"Network Time Protocol". 1789753324. e01 Encyclopedia. CC BY-SA 4.0. https://en.wikipedia.org/w/index.php?oldid=1375597400

JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy

Save to pass ·