Network Time Protocol
From Free net encyclopedia
The Network Time Protocol (NTP) is a protocol for synchronising the clocks of computer systems over packet-switched, variable-latency data networks. NTP uses UDP port 123 as its transport layer. It is designed particularly to resist the effects of variable latency.
NTP is one of the oldest internet protocols still in use (since before 1985). NTP was originally designed by Dave Mills of the University of Delaware, who still maintains it, along with a team of volunteers.
Contents |
Overview
NTP uses Marzullo's algorithm with the UTC time scale, including support for features such as leap seconds. NTPv4 can usually maintain time to within 10 milliseconds (1/100 s) over the public Internet, and can achieve accuracies of 200 microseconds (1/5000 s) or better in local area networks under ideal conditions.
The NTP Unix daemon is a user-level process that runs continuously on a machine that supports NTP, and most of the protocol is implemented in this user process. To get the best performance from NTP, it is important to have the standard NTP clock phase-locked loop implemented in the operating system kernel, rather than using only the intervention of the external NTP daemon: all recent versions of the Linux and Solaris operating systems have this support.
NTP uses a hierarchical system of "clock strata", where stratum 1 systems are synchronised to an accurate external clock such as a GPS clock or other radio clock. NTP stratum 2 systems derive their time from one or more stratum 1 systems, and so on. (Note that this is different from the notion of clock strata used in telecommunications systems.)
The 64-bit timestamps used by NTP consist of a 32-bit seconds part and a 32-bit fractional second part, giving NTP a time scale of 232 seconds (136 years), with a theoretical resolution of 2−32 seconds (0.233 nanoseconds). Although the NTP timescale wraps around every 232 seconds, implementations should disambiguate NTP time using a knowledge of the approximate time from other sources. Since this only requires time accurate to a few decades, this is not a problem in general use.
The operational details of NTP are illustrated in RFC 778, RFC 891, RFC 956, RFC 958, and RFC 1305. (NTP should not be confused with the DAYTIME (RFC 867) or TIME (RFC 868) protocols.) The current version is NTP version 4; however, as of 2005, only NTP up to version 3 has been documented in RFCs. The IETF NTP Working Group has formed to standardise the work of the NTP community since RFC 1305 et al.
A less complex form of NTP that does not require storing information about previous communications is known as the Simple Network Time Protocol or SNTP. It is used in some embedded devices and in applications where high accuracy timing is not required. See RFC 1361, RFC 1769, and RFC 2030.
See also
- Allan variance
- Clock synchronization
- ntpd
- Synchronization
- International Atomic Time
- Timeserver
- NTP vandalism
External links
- NTP Public Services Project This is the home for the NTP (Network Time Protocol) Public Services Project which provides public support for the NTP Project and the IETF NTP Working Group. Also a Wiki with lists of NTP servers.
- IETF NTP working group
- pool.ntp.org Public pool of NTP Servers
- David Mills' NTP project page
- NTP version 4 Release Notes
- USNO NTP Servers
- NIST Internet Time Service
- Time and NTP paper
NTP-related software
- NetworkTime Simple NTP client for BeOS
- PresenTense Network Time Management Software
- Abouttime careware NTP client for Windows
- Chrony a Unix time program compatible with NTP
- Dimension 4 SNTP client for Windows
- Meinberg Windows Port of NTP Free port of the reference implementation from ntp.org, including a comfortable installer
- NIST Timesoftware list
- OpenNTPD[1] a BSD licenced SNTP program developed by the OpenBSD project
- Automachron a freeware SNTP client for Windows
- NTP Time Server Monitor Configuration and monitoring tool for Windows
- NTP/SNTP Time Client Sync with any public or private NTP servers.
Other time synchronization protocols
- HTTP Time Protocol (HTP) Time synchronization with HTTP headers
- ICMP protocol Time synchronization with ICMP timestamps (basis for timed )
- Daytime protocol Daytime synchronization protocol via TCP port 13
- Time protocol Time synchronization protocol via TCP port 37ca:Network Time Protocol
cs:NTP da:Network Time Protocol de:Network Time Protocol es:Network Time Protocol fr:Network time protocol it:NTP nl:Network Time Protocol ja:Network Time Protocol pl:NTP pt:Network Time Protocol ru:NTP fi:NTP (tietotekniikka) sv:Network Time Protocol th:Network Time Protocol