Expressvpn Glossary
Network Time Protocol (NTP)
What is Network Time Protocol?
Network Time Protocol (NTP) is a networking protocol used to synchronize the clocks of devices on a network, such as computers, servers, and routers. It aligns local device time with reference time sources to reduce clock drift, where a device’s internal clock gradually deviates from accurate time.
How does the Network Time Protocol work?
NTP typically exchanges time information over the User Datagram Protocol (UDP) using port 123, the standard port for NTP traffic.
It uses a hierarchy of time sources called strata. Reference clocks such as atomic clocks or GPS receivers are commonly treated as stratum 0 time sources. Stratum 1 servers connect directly to these reference clocks, and higher-stratum servers receive time from lower-stratum sources and redistribute it to other systems.
To synchronize, a client sends requests to one or more servers. The client and server record timestamps for when the request is sent and received, and when the response is sent and received. NTP uses these timestamps to estimate clock offset and network delay.
NTP typically adjusts the local clock gradually (slewing) rather than making abrupt jumps. It can compare results from multiple servers and filter inconsistent responses to reduce jitter. In client-server deployments, NTP can authenticate time synchronization data using Network Time Security (NTS).
Types of NTP setups
NTP supports several deployment models for different network sizes, accuracy requirements, and security constraints:
- Client-server: The most common setup. Clients poll designated time servers that synchronize to upstream time sources.
- Symmetric peers: Servers poll each other and exchange time information to support mutual synchronization and redundancy.
- Broadcast or multicast: A server distributes time to multiple clients without per-client request/response exchanges, though these modes are less common and need careful security controls.
- Public pools and internal servers: Organizations may use public NTP pool services or operate internal time servers for controlled access and consistency.
Why is the Network Time Protocol important?
NTP is important because many security and system tools depend on accurate, synchronized time, including:
- Transport Layer Security (TLS): To verify that certificates are currently valid.
- Time-based or expiring authentication tokens: To confirm the token issue and expiration times.
- Kerberos: To validate authentication tickets and enforce clock-skew limits that help prevent replay attacks.
- Session timeouts: To enforce inactivity timeouts and reauthentication windows.
- Multi-factor authentication (MFA): To verify time-based one-time passcodes.
If system clocks drift, these systems may reject valid credentials, invalidate certificates, or disrupt active sessions. Accurate timekeeping also helps keep security logs in the correct order, supporting auditing and investigations. In distributed systems, it helps services coordinate more reliably and reduces confusion caused by inconsistent timestamps.
Where is the Network Time Protocol used?
NTP runs across many types of systems, including routers, firewalls, and virtual private network (VPN) gateways; cloud infrastructure and container clusters; operating systems and enterprise networks; telecommunications platforms and financial trading systems; and Internet of Things (IoT) devices and industrial control systems.
Risks and privacy concerns
NTP can create security and privacy risks when misconfigured, exposed unnecessarily, or used without authentication and access controls. Because it commonly uses UDP, attackers may be able to spoof or tamper with time responses and shift device clocks, disrupting authentication systems and reducing the reliability of logs.
Public-facing or poorly restricted NTP servers can also be abused in reflected distributed denial-of-service (DDoS) amplification attacks, especially through control or monitoring queries. Replay and packet-manipulation risks can also affect time-synchronization traffic, depending on the deployment mode and protections in use. If an NTP server is compromised or incorrectly configured, it may distribute incorrect time to many clients, potentially affecting large parts of a network.
These risks can be reduced by limiting which systems can query NTP servers, restricting control queries, isolating time infrastructure, and using authentication mechanisms such as NTS in client-server deployments. Broadcast mode should be used only within trusted networks.
Further reading
- DoS vs. DDoS attacks: Key differences and how to protect yourself
- What is network jitter, and how does it impact internet performance?
- Rate limiting for network security: What it is and how it works
- What is NTLM? Understanding this legacy authentication protocol
- What is Kerberoasting and why it matters for cybersecurity