NTP Reference Library


Maya glyph alautun

Note: PostScript documents are not included in this distribution due to their large size. They will be retrieved automatically upon request from archive server ftp.udel.edu.

Briefing Slides

Background Description

The Network Time Protocol (NTP) is widely used in the Internet to synchronize computer clocks to national standard time. The NTP architecture, protocol and algorithms have evolved over almost two decades to the present NTP Version 3 specification and implementations for Unix and Windows. The architecture and security models provide for operation in point-to-point (unicast) and point-to-multipoint (multicast), and include provisions for cryptographic authentication. Previous funded research has resulted in a continuous series of improvements in accuracy and reliability of the protocol and supporting algorithms. Used in the Internet of today with computers ranging from personal workstations to supercomputers, NTP provides accuracies generally in the range of a millisecond or two in LANs and up to a few tens of milliseconds in global WANs.

The current research effort represents a significant enhancement to the existing protocol, architecture and algorithms of NTP Version 3 and an evolutionary step to NTP Version 4. Specifically, these involve provisions for an autonomous configuration capability and a revised security model based on public key cryptography. Both of these enhancements are necessary in order for large, diversified synchronization subnets to survive electronic warfare attacks on the network routing functions or source selection and clock discipline algorithms used by the time server and client population. The design of robust protocols and algorithms which survive such attacks presents a significant challenge, especially in networks with well over 100,000 servers, such as the existing Internet and fully operational DSI.

In order to provide specific accuracy and reliability requirements, NTP presently requires configuration engineering specific to each time server and client site. However, in a tactical network subject to damage and repair, as well as a widely deployed real-time simulation network such as the Defense Simulation Internet (DSI), manual configuration engineering is not acceptable. Our research effort is designed to develop an autonomous configuration capability using multicast methods to achieve diversity and redundancy, as well as directory services and service location protocols as available.

Our approach uses a set of distributed algorithms to provide a completely automatic, dynamic server discovery and configuration capability as a generic feature of the NTP architecture and protocol. The algorithms automatically organize the synchronization subnets in response to server and network outages or attacks on the security infrastructure. A distributed algorithm under development operates on a ftp://ftp.udel.edu/pub/people/mills distributed by the enhanced NTP protocol to select the best subnet topology, subject to specified accuracy and reliability constraints. Another algorithm calculates clock offsets between each pair of servers in the local neighborhood, then distributes the data to all other servers. Other algorithms already implemented filter and combine the data from all subnet members in the local neighborhood to provide the best accuracy and reliability. None of these algorithms require advance information of any kind, other than that collected in real time by the enhanced NTP protocol.

A robust security model has long been an intrinsic feature in the current and previous NTP versions. However, this model does not scale well to very large networks which may fragment and reform frequently due to attack and repair. The current model, which is based on private key cryptography with predistributed keys, does not work well in multicasting modes and imposes an excessive burden on the key management and distribution system in cases where keys can be compromised and countermeasures are required. These problems are exacerbated by the need to coordinate key management and time synchronization, since each of these services depends on the other.

Our approach involves the use of public key cryptography and crafted algorithms which provide reliable key distribution and management, while avoiding excessive processing and memory resources. The algorithms use shared keys for mutually redundant symmetric server modes ("creche" servers), dynamically computed keys for traditional client/server modes, and backwards computable hash functions for multicast modes. When necessary, private data are exchanged using RSA encryption with certificates, but this is done infrequently in a manner that does not affect the quality of synchronization. We expect to make use of secure RPC services and secure DNS services as they become available.

We expect to combine the algorithmic mechanisms for autonomous configuration with traditional means involving multicast and directory services, as well as service location protocols now under development by IETF task forces. We expect also to incorporate the ongoing work of the IETF IPSEC community as appropriate to the specific NTP protocol and security models. The combined mechanisms are to be implemented as extensions to the existing NTP Version 3 protocol and implementation for Unix and Windows and made available to the research community at large. We expect to deploy the new implementation in the DARTnet research community for distributed testing with other DARTnet applications, such as multimedia conferencing. Finally, we expect to develop and publish a definitive protocol specification and vulnerability analysis.

Selected Publications

  1. Mills, D.L., A. Thyagarajan and B.C. Huffman. Internet timekeeping around the globe. Proc. Precision Time and Time Interval (PTTI) Applications and Planning Meeting (Long Beach CA, December 1997). (PostScript), (Slides: PostScript).

  2.  
  3. Mills, D.L. A precision radio clock for WWV transmissions. Electrical Engineering Report 97-8-1, University of Delaware, August 1997, 25 pp. (Abstract: PostScript), (Body: PostScript)

  4.  
  5. Mills, D.L. Clock discipline algorithms for the Network Time Protocol Version 4. Electrical Engineering Report 97-3-3, University of Delaware, March 1997, 35 pp. (Abstract: PostScript), (Body: PostScript).

  6.  
  7. Mills, D.L. Authentication scheme for distributed, ubiquitous, real-time protocols. Proc. Advanced Telecommunications/Information Distribution Research Program (ATIRP) Conference (College Park MD, January 1997), 293-298. (PostScript) (Slides: PostScript)

  8.  
  9. Mills, D.L. The network computer as precision timekeeper. Proc. Precision Time and Time Interval (PTTI) Applications and Planning Meeting (Reston VA, December 1996), 96-108. (Body: PostScript) (Slides: PostScript).

  10.  
  11. Mills, D.L. Proposed authentication enhancements for the Network Time Protocol version 4. Electrical Engineering Report 96-10-3, University of Delaware, October 1996, 36 pp. (Abstract: PostScript), (Body: PostScript).

  12.  
  13. Mills, D.L. Simple network time protocol (SNTP) version 4 for IPv4, IPv6 and OSI. Network Working Group Report RFC-2030, University of Delaware, October 1996, 18 pp. (ASCII) . Major revision and update of: Ibid. Network Working Group Report RFC-1769, University of Delaware, March 1995, 14 pp. (ASCII). Also published (with figures) as Ibid Electrical Engineering Department Report 96-10-2, University of Delaware, October 1996, 14 pp. (Abstract: PostScript), (Body: PostScript)

  14.  
  15. Mills, D.L. Improved algorithms for synchronizing computer network clocks. IEEE/ACM Trans. Networks (June 1995), 245-254. (PostScript). Revised from: ibid. Proc. ACM SIGCOMM 94 Symposium (London UK, September 1994), 317-327. (PostScript).

  16.  
  17. Mills, D.L, and A. Thyagarajan. Network time protocol version 4 proposed changes. Electrical Engineering Department Report 94-10-2, University of Delaware, October 1994, 32 pp. (Abstract: PostScript), (Body: PostScript).

  18.  
  19. Mills, D.L. Unix kernel modifications for precision time synchronization. Electrical Engineering Department Report 94-10-1, University of Delaware, October 1994, 24 pp. (Abstract: PostScript), (Body: PostScript). Major revision and update of: Network Working Group Report RFC-1589, University of Delaware, March 1994. 31 pp. (ASCII).

  20.  
  21. Mills, D.L. Precision synchronization of computer network clocks. ACM Computer Communication Review 24, 2 (April 1994). 28-43. (PostScript). Condensed from: Ibid. Electrical Engineering Department Report 93-11-1, University of Delaware, November 1993, 66 pp. (Abstract: PostScript), (Body: PostScript).

  22.  
  23. Mills, D.L. Modelling and analysis of computer network clocks. Electrical Engineering Department Report 92-5-2, University of Delaware, May 1992, 29 pp. (Abstract: PostScript), (Body: PostScript).

  24.  
  25. Mills, D.L. Network Time Protocol (Version 3) specification, implementation and analysis. Network Working Group Report RFC-1305, University of Delaware, March 1992, 113 pp. (Abstract: PostScript), (Body: PostScript), (Appendices: PostScript). Revised from: Electrical Engineering Department Report 90-6-1, University of Delaware, June 1990. (Abstract: PostScript), (Body: PostScript), (Appendices: PostScript).

  26.  
  27. Mills, D.L. On the chronology and metrology of computer network timescales and their application to the Network Time Protocol. ACM Computer Communications Review 21, 5 (October 1991), 8-17. (PostScript).

  28.  
  29. Mills, D.L. Internet time synchronization: the Network Time Protocol. IEEE Trans. Communications COM-39, 10 (October 1991), 1482-1493. (PostScript). Also in: Yang, Z., and T.A. Marsland (Eds.). Global States and Time in Distributed Systems. IEEE Computer Society Press, Los Alamitos, CA, 1994, 91-102. Condensed from: Ibid. Network Working Group Report RFC-1129, University of Delaware, October 1989. (Abstract: PostScript), (Body: PostScript). Also published as: Electrical Engineering Department Report 89-9-1, University of Delaware, September 1989. (Abstract: PostScript), (Body: PostScript).

  30.  
  31. Mills, D.L. On the accuracy and stability of clocks synchronized by the Network Time Protocol in the Internet system. ACM Computer Communication Review 20, 1 (January 1990), 65-75. (PostScript).

  32.  
  33. Mills, D.L. Measured performance of the Network Time Protocol in the Internet system. Network Working Group Report RFC-1128. University of Delaware, October 1989. (Abstract: PostScript), (Body: PostScript). Also published as: Electrical Engineering Department Report 89-9-3, University of Delaware, September 1989. (Abstract: PostScript), (Body: PostScript).

David L. Mills (mills@udel.edu)