Network time protocol (NTP): definition and functionality (2024)

RDVectorShutterstock

Computer system clocks show users what time it is quickly and conveniently. System time is relevant not only for the user, but also for the computer itself. Time stamps play a crucial role in the communication between two or more systems, and also in the correct flow of cross-network processes or services. To prevent system complications due to different system times, the so-called network time protocol was published in 1985.

Contents

  1. What is NTP?
  2. How does the NTP work?
  3. An overview of NTP’s most important features
  4. Which operating systems support the NTP protocol?
  5. What are the NTP alternatives?
  6. pool.ntp.org: an internet cluster of thousands of NTP servers
    1. How UNIX/Linux users can use the NTP pool
    2. Set pool.ntp.org as time server source under Windows

What is NTP?

The network time protocol is the result of the development work of David L. Mills, a professor at the University of Delaware. A first official specification of the protocol, which is part of the internet protocol family, was published in September 1985 in RFC 958. It describes NTP as a protocol for synchronizing multiple network clocks through a set of spread-out clients and servers. Its predecessors are the time protocol, and ICMP timestamp message, whose functions were combined in the network time protocol. NTP is based on the user datagram protocol (UDP), which enables connectionless data transport. The UDP port number for this is 123.

NTP provides the basic protocol mechanisms necessary to synchronize the time of different systems to an accuracy of one nanosecond. It also contains regulations to specify the accuracy and probable sources of error of the local system clock. The protocol only specifies the type of data representation and message formats, but doesn’t provide synchronization and filter algorithms.

Definition

NTP (network time protocol) is a protocol for clock synchronization in computer systems described in RFC 958. It is based on the connectionless UDP protocol (port 123) and belongs to the internet protocol family. For the synchronization process, NTP relies on coordinated universal time (UTC), which is obtained from the individual clients and servers in a hierarchical system.

How does the NTP work?

To synchronize the clocks of computers down to a nanosecond, the network time protocol uses the coordinated universal time (UTC), which has been in place since 1972. This is determined by various methods, including radio and satellite systems. Important services such as the global positioning system (GPS) are equipped with special receivers to receive the corresponding signals. Since it would neither be cost-effective nor feasible to equip each computer with this kind of receiver, there are so-called primary time servers, which also have a UTC receiver. Using protocols such as NTP, these servers synchronize the clocks of computers in their network.

In this synchronization process, there are different hierarchically-structured degrees of distance to the UTC source, also known as “strata” (Latin for “layers”). For example, all technical devices that take their time from a primary time server or a satellite navigation system are classified in the stratum-0 category. Examples of this are atomic or radio clocks. A computer that obtains UTC from this kind of atomic or radio clock corresponds to stratum-1, and so on. Each system is both the client of the preceding stratum and server for systems of the following stratum (at least potentially).

Note

Various algorithms are used to eliminate short-term and local time fluctuations during NTP synchronization. For example, time measurement procedures for one packet to travel between destinations (the time a data packet needs to go from source to destination and back again), can compensate for local deviations based on the Berkeley algorithm. For example, the Marzullo algorithm is used for troubleshooting processors.

An overview of NTP’s most important features

The basic features of the network time protocol, which is now available in its fourth version (NTPv4), can be summarized as follows:

  • NTP provides a reference clock that acts as a fixed point for all synchronization processes. All clocks are coordinated according to this clock or time. Right from the start, the coordinated universal time (UTC), which is recognized as a uniform world time clock, was used for this purpose.
  • NTP is a protocol that automatically searches for the best time sources for synchronization. To minimize any error accumulation affecting the synchronization, several sources can be combined with each other. If possible, the network time protocol recognizes and ignores time sources that temporarily or permanently submit strongly deviating values.
  • NTP is highly scalable. There may be several reference clocks in each synchronization network. Furthermore, each network node is able to transmit time information in a hierarchical structure bidirectional (point-to-point) or unidirectional (in one direction).
  • NTP is very accurate. Thanks to the possibility of selecting the best candidate for synchronization, a result right up to one nanosecond is possible.
  • NTP can bridge temporary network connection problems: for this purpose, the log uses past readings to determine the current time or deviations.

Which operating systems support the NTP protocol?

Originally, the network time protocol was developed especially for UNIX systems, in which the protocol is still implemented in the form of the background process ntpd. This serves both as a client that can synchronize the local system and as an NTP server for other systems. For a long time, this service was also the first choice for implementing NTP in Linux distributions – newer versions increasingly rely on the client application timesyncd, which is part of the system manager. MacOS and Windows operating systems now also use the network time protocol to obtain UTC via the internet with simple system processes and without additional software.

What are the NTP alternatives?

Although NTP is regarded worldwide as the time synchronization standard, it is not flawless, especially in terms of security. For example, because it is based on the connectionless UDP protocol, a hacker could send packets to an NTP server with fake sender addresses through IP-spoofing. The address of the targeted system is selected as the sender address. The server sends its response, which is considerably larger than the request sent by the attacker, back to the alleged sender – the targeted system. If the attacker now does this on a large scale by sending a large number of such manipulated requests, he can overload the target system – more on this can be found in the following article: DoS und DDoS.

As a result, several projects have focused on developing alternative, more secure solutions that can be used in place of the NTP:

  • tlsdate: tlsdate was coded by Jacob Appelbaum in 2012, and published on GitHub. Instead of UDP, tlsdate uses the TCP protocol for data transport. The service encrypts the connection establishment via TLS to prevent manipulation of the data packets. In addition, tlsdate uses the TLS functions “ServerHello” and “ClientHello” to synchronize the time. However, the NTP alternative only works with TLS 1.1 and 1.2.
  • Ntimed: Ntimed is focused specifically on security and performance. For this purpose, the ntpd’s program code, on which Ntimed is based, was optimized. The software package, which consists of client, server, and master files, is available for free on the official Ntimed GitHub directory.
  • NTPsec: NTPsec is also a variant of the classic ntpd service. However, over 175,000 lines of code have been stored compared to the original. In addition, the development team has replaced a number of unsafe string functions such as “strcpy,” “sprint,” or “gets” with secure counterparts. These and other differences can be seen in detail on the official websiteof the open source project.

Apart from the software alternatives, the precision time protocol (PTP)also offers an alternative. Unlike the network time protocol, the focus of this network protocol for Linux systems is particularly high synchronization accuracy. The synchronization rate with PTP is also down to the nanosecond, which even beats the accuracy of NTP. In addition, the protocol requires minimal processor power and network bandwidth, making it ideal for simple, cost-effective devices.

Note

While there is some freedom of choice between synchronization protocols or services, synchronization itself is a process that is essential for the functionality of various network applications (especially on the internet). For example, database transactions or e-mail communication would fail if the client and server are not on the same time. An even more important role is played by an exact system time in air traffic control, at which values accurate to the microsecond are indispensable for smooth operations.

pool.ntp.org: an internet cluster of thousands of NTP servers

The pool.ntp.org project, initiated by Adrian von Bidder and managed by Ask Bjørn Hansen since July 2005, is a huge virtual cluster of over 4,000 NTP time servers. The majority of the servers distributed around the world, which are used by several million systems, are located in Europe. The NTP pool has grown steadily over time due to the project’s community. Anyone who has a server with a static IP address that is permanently connected to the internet can have it included in the cluster. Despite increasing demand, the service can be used free of charge and without any restrictions.

How UNIX/Linux users can use the NTP pool

If you want to use the NTP server pool to synchronize your device’s system time, you can do this with UNIX or Linux using the ntpd service. For this, you only need to configure the NTP drift file:

driftfile /var/lib/ntp/ntp.driftserver 0.pool.ntp.orgserver 1.pool.ntp.orgserver 2.pool.ntp.orgserver 3.pool.ntp.org

Make sure that the system time is set at least to be roughly accurate. To check the status of the ntpd service, enter the following command after a few minutes:

ntpq -pn

The NTP client will present a list of the IP addresses from the pool of randomly used time servers. If one of these servers is marked with an asterisk (*), the system time is now synchronized as required.

Set pool.ntp.org as time server source under Windows

Since the network time protocol is now automatically supported by Windows, the NTP pool is also available to users of Microsoft systems at all times. It is only necessary to enter a suitable address range from pool.ntp.org in the internet time settings. To do this, open the control panel and select “date and time”:

The “internet time” tab takes you to the time server menu, where you can enter the address of your desired NTP server from the pool.ntp.org pool:

If the changes were successful, Windows will adjust the system time at the next synchronization time:

  • Know-how

Related articles

Network time protocol (NTP): definition and functionality (5)RDVectorShutterstock

Simple network time protocol (SNTP)

An exact system time on a computer is especially important when devices need to exchange data. Cross-system processes quickly come to a standstill if the generated time stamps are very different from the time that applies to the system. Synchronization methods that keep the clocks of the individual network participants in sync are utterly indispensable. One of the simplest methods to achieve time…

Simple network time protocol (SNTP)

Network time protocol (NTP): definition and functionality (6)

SCTP (Stream Control Transmission Protocol) – the reliable, message-oriented transport protocol

If two computer systems are to exchange data, they must agree on a common protocol basis. For example, the selected transport protocol determines how the information is to be transferred. One of the more recent representatives of this protocol division is the Stream Control Transmission Protocol (SCTP), which the IETF (Internet Engineering Task Force) published in 2000 as an alternative to known…

SCTP (Stream Control Transmission Protocol) – the reliable, message-oriented transport protocol

Network time protocol (NTP): definition and functionality (7)

CalDAV - What’s behind the network protocol?

The network protocol CalDAV allows you to synchronize calendar data such as appointments and meetings on your PC, smartphone or tablet. The events are then displayed presentably in iCalender format and managed in a WebDAV environment. We’ll explain what CalDAV is exactly and how you can use it yourself.

CalDAV - What’s behind the network protocol?
Network time protocol (NTP): definition and functionality (2024)

FAQs

Network time protocol (NTP): definition and functionality? ›

Network Time Protocol (NTP) is an internet protocol used to synchronize with computer clock time sources in a network. It belongs to and is one of the oldest parts of the TCP/IP suite. The term NTP applies to both the protocol and the client-server programs that run on computers.

What is the function of NTP protocol? ›

NTP is a protocol that synchronizes the clock on a computer to a reference source on the Internet [1]. To protect against false reference sources, the protocol messages can be encrypted.

What are the basics of NTP? ›

An NTP server is a time source, while an NTP client is a system or device that tries to synchronize its clock with a server. Servers can be primary or secondary. A primary server gets UTC time signals from a highly precise source, such as an atomic clock or, more typically, a GPS signal source.

What is the network time protocol simplified? ›

Simple Network Time Protocol (SNTP) and Network Time Protocol (NTP) are used to keep device clocks synchronized. By using timestamps that are kept synchronized, SNTP and NTP can track processes and interactions between systems.

What is NTP and how to configure it? ›

Network Time Protocol (NTP) is a protocol that enables the user to synchronize devices by distributing an accurate clock across the network. In predefined intervals, a device sends "time query" messages to a Network Time Server. The server then sends the date and time to the device.

Does NTP work without internet? ›

Typically, devices rely on an internet time server and a clock source, such as a GPS satellite, to synchronize time across devices. However, in an offline scenario, where devices are not connected to the internet, time synchronization must be achieved via a local Network Time Protocol (NTP) server.

What is NTP for dummies? ›

NTP is an internet protocol that's used to synchronise the clocks on computer networks to within a few milliseconds of universal coordinated time (UTC).

What is the need for NTP? ›

Logging and Monitoring Accuracy: NTP helps ensure consistent timestamps across multiple devices in the network, so you can be sure that the timestamp you see in the logger is reflecting the true time. Automation servers and scripts: Any automation requires the execution of commands at precise times.

What NTP should I use? ›

In most cases it's best to use pool.ntp.org to find an NTP server (or 0.pool.ntp.org, 1.pool.ntp.org, etc if you need multiple server names). The system will try finding the closest available servers for you.

What happens if the NTP server is down? ›

If it cannot sync with an external time server, the local clock will keep ticking, but will lose accuracy over time. The local hardware clock will drift by 1-10 seconds per day. That drift can be much higher in the case of a VM.

What is a network protocol and how does it work? ›

In networking, a protocol is a set of rules for formatting and processing data. Network protocols are like a common language for computers. The computers within a network may use vastly different software and hardware; however, the use of protocols enables them to communicate with each other regardless.

What are the three 3 types of network protocols? ›

There are three main types of network protocols. These include network management protocols, network communication protocols and network security protocols: Communication protocols include basic data communication tools like TCP/IP and HTTP.

What is the function of NTP? ›

Network Time Protocol (NTP) is an internet protocol used to synchronize with computer clock time sources in a network. It belongs to and is one of the oldest parts of the TCP/IP suite.

What is an example of NTP protocol? ›

For example, a stratum 1 time server has a radio or atomic clock directly attached to it. It then sends its time to a stratum 2 time server through NTP, and so on. A machine that runs NTP automatically chooses the machine with the lowest stratum number that it is configured to communicate with NTP as its time source.

How do I connect my computer to NTP? ›

NTP Server Setup

Open Services console using by typing services. msc at run window (Windows Key + R). Click in Standard Services and look for Windows Time service. Once you find the service, click on it and set the Start Up type as Automatic and click on Start to start the service.

What is the purpose of NTP authentication? ›

The additional authentication will allow users to verify that the responses they receive actually originated from a NIST server and that they were not modified in transit either by a malicious third party or by a network error.

What is the role of NTP in transcription? ›

During transcription, RNA polymerase II elongates RNA by adding nucleotide triphosphates (NTPs) complementary to a DNA template. Structural studies have suggested that NTPs enter and exit the active site via the narrow secondary pore but details have remained unclear.

What is the function of network management protocol? ›

Network management protocols decide the kind of data to be collected by the different managed nodes and specify how these data are made available to the manager. These protocols also decide which configuration parameters of the managed devices can be read by the network manager. TCP/IP networks (see Section 2.3.

Top Articles
SPEURO Quote - S&P Europe 350 GICS Level Sector MFM Index
5 Practices to Avoid When Hanging Art
English Bulldog Puppies For Sale Under 1000 In Florida
Katie Pavlich Bikini Photos
Gamevault Agent
Pieology Nutrition Calculator Mobile
Hocus Pocus Showtimes Near Harkins Theatres Yuma Palms 14
Hendersonville (Tennessee) – Travel guide at Wikivoyage
Compare the Samsung Galaxy S24 - 256GB - Cobalt Violet vs Apple iPhone 16 Pro - 128GB - Desert Titanium | AT&T
Vardis Olive Garden (Georgioupolis, Kreta) ✈️ inkl. Flug buchen
Craigslist Dog Kennels For Sale
Things To Do In Atlanta Tomorrow Night
Non Sequitur
Crossword Nexus Solver
How To Cut Eelgrass Grounded
Pac Man Deviantart
Alexander Funeral Home Gallatin Obituaries
Shasta County Most Wanted 2022
Energy Healing Conference Utah
Geometry Review Quiz 5 Answer Key
Hobby Stores Near Me Now
Icivics The Electoral Process Answer Key
Allybearloves
Bible Gateway passage: Revelation 3 - New Living Translation
Yisd Home Access Center
Home
Shadbase Get Out Of Jail
Gina Wilson Angle Addition Postulate
Celina Powell Lil Meech Video: A Controversial Encounter Shakes Social Media - Video Reddit Trend
Walmart Pharmacy Near Me Open
Marquette Gas Prices
A Christmas Horse - Alison Senxation
Ou Football Brainiacs
Access a Shared Resource | Computing for Arts + Sciences
Vera Bradley Factory Outlet Sunbury Products
Pixel Combat Unblocked
Movies - EPIC Theatres
Cvs Sport Physicals
Mercedes W204 Belt Diagram
Mia Malkova Bio, Net Worth, Age & More - Magzica
'Conan Exiles' 3.0 Guide: How To Unlock Spells And Sorcery
Teenbeautyfitness
Where Can I Cash A Huntington National Bank Check
Topos De Bolos Engraçados
Sand Castle Parents Guide
Gregory (Five Nights at Freddy's)
Grand Valley State University Library Hours
Holzer Athena Portal
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Selly Medaline
Latest Posts
Article information

Author: Ouida Strosin DO

Last Updated:

Views: 6039

Rating: 4.6 / 5 (56 voted)

Reviews: 95% of readers found this page helpful

Author information

Name: Ouida Strosin DO

Birthday: 1995-04-27

Address: Suite 927 930 Kilback Radial, Candidaville, TN 87795

Phone: +8561498978366

Job: Legacy Manufacturing Specialist

Hobby: Singing, Mountain biking, Water sports, Water sports, Taxidermy, Polo, Pet

Introduction: My name is Ouida Strosin DO, I am a precious, combative, spotless, modern, spotless, beautiful, precious person who loves writing and wants to share my knowledge and understanding with you.