| Network Time Protocol (NTP) is one of the Internet's | | | | the day each timestamp is ephemeral, in other words it |
| oldest protocols still in use. Invented by Dr David Mills | | | | is always greater than the previous timestamp as time |
| from the University of Delaware it has been utilized | | | | never runs backwards. NTP analyses the timestamp |
| since 1985. NTP is designed to synchronize the clocks | | | | values including the frequency of errors and the |
| on computers and networks across the Internet or | | | | stability. A NTP server will maintain an estimate of the |
| Local Area Networks (LANs). | | | | quality of its reference clocks and of itself. |
| NTP (currently version 4) is actually three things in one; | | | | The distance from the reference clock is known as |
| a software program that runs in the background of | | | | the stratum levels and they exist to prevent cycles in |
| Windows or UNIX; a protocol that exchanges time | | | | the NTP. Stratum 0 are devices such as reference |
| values between servers and clients; and a suite of | | | | clocks connected directly to a computer. Stratum 1 are |
| algorithms that process the time values to advance or | | | | computers attached to stratum 0 devices, while |
| retreat the system clock. | | | | Stratum 2 are computers that send NTP requests to |
| NTP uses an algorithm (Marzullo's algorithm) to | | | | Stratum 1 servers. NTP can support up to 256 strata. |
| synchronise time on a network using a time reference. | | | | NTP timestamps are in two formats but they relay the |
| Although networks can be synchronized with internal | | | | seconds from a set point in time (known as the prime |
| clocks or Internet based timing references, it is highly | | | | epoch, set at 00:00 1 January 1900) The NTP algorithm |
| recommended by Microsoft and others that an | | | | then uses this timestamp to determine the amount to |
| external timing reference should be used to guarantee | | | | advance or retreat the system or network clock. |
| authentication. An absolute timing reference should use | | | | The NTP program (known as a daemon on UNIX and |
| UTC (Coordinated Universal Time or Temps Universel | | | | a service on Windows) runs in the system |
| Coordonné) which supports such features as | | | | background. NTP refuses to believe the time it is told |
| leap seconds - added to compensate for the slowing | | | | until several packet exchanges have taken place, each |
| of the Earth's rotation. | | | | passing a set of tests. Only if the replies from a server |
| NTP works within the TCP/IP suite and relies on UDP, | | | | satisfy the test, known as protocol specifications, the |
| a less complex form of NTP exists called Simple | | | | server is considered. It usually takes about five minutes |
| Network Time Protocol (SNTP) that does not require | | | | (five good samples) until a NTP server is accepted as |
| the storing of information about previous | | | | a synchronization source. |
| communications, needed by NTP. It is used in some | | | | A typical GPS time server can provide timing |
| devices and applications where high accuracy timing is | | | | information to within a few nanoseconds of UTC as |
| not as important, it is also included in most Windows | | | | long as there is an antenna situated with a good view |
| operating systems but more recent versions have the | | | | of the sky. |
| full NTP already installed, which is also free to | | | | There are also a number of national time and |
| download via the Internet. | | | | frequency radio transmissions that can be used to |
| Synchronisation with NTP is relatively simple, it | | | | synchronise a NTP server. In Britain the signal (called |
| synchronises time with reference to a reliable clock | | | | MSF) is broadcast by the National Physics Laboratory |
| source such as an atomic clock, although these are | | | | in Cumbria which serves as the United Kingdom's |
| extremely expensive and are generally only to be | | | | national time reference, there are also similar systems |
| found in large-scale physics laboratories, however NTP | | | | in Colorado, US (WWVB) and in Frankfurt, Germany |
| can use either the Global Positioning system (GPS ) | | | | (DCF-77). These signals provides UTC time to an |
| network or specialist radio transmission to receive | | | | accuracy of 100 microseconds, however, the radio |
| UTC time from these clocks. | | | | signal has a finite range and is vulnerable to |
| NTP uses timestamps to represent the current time of | | | | interference. |