Prerequisite: Protocols in Application Layer
Network Time Protocol (NTP) is an application-layer protocol that synchronizes the clocks of computers across a network. Developed by David Mills in 1981, it ensures accurate and consistent time for all devices on a TCP/IP network.
- Synchronizes computer clocks to ensure accurate time across the network.
- Essential for seamless communication and coordination between devices.
- Operates at the application layer of the TCP/IP model.
- Uses NTP servers as reference clocks to update client devices.
- Widely used in systems requiring precise time, such as logging, security, and scheduling tasks.
Working of Network Time Protocol
NTP operates at the application layer of the TCP/IP model. It uses a hierarchical time synchronization system known as stratum levels. At the highest level are highly accurate time sources such as atomic clocks or GPS clocks.
- These primary time sources are referred to as Stratum 0 devices.
- Stratum 0 devices are directly connected to Stratum 1 NTP servers.
- Stratum 1 servers distribute accurate time information to Stratum 2 servers, which may further pass it to Stratum 3 servers, and so on.
- Each lower stratum receives time information from a higher stratum to maintain accuracy.
- Client systems (hosts) synchronize their clocks by requesting time updates from nearby NTP servers.
- This hierarchical structure ensures that all devices in the network maintain consistent and synchronized time.

Applications of NTP
- Used in a production system where the live sound is recorded.
- Used in the development of Broadcasting infrastructures.
- Used where file system updates needed to be carried out across multiple computers depending on synchronized clock times.
- Used to implement security mechanism which depend on consistent time keeping over the network.
- Used in network acceleration systems which rely on timestamp accuracy to calculate performance.
Advantages of NTP
- It provides internet synchronization between the devices.
- It provides enhanced security within the premises.
- It is used in the authentication systems like Kerberos.
- It provides network acceleration which helps in troubleshooting problems.
- Used in file systems that are difficult in network synchronization.
Disadvantages of NTP
- When the servers are down the sync time is affected across a running communication.
- Servers are prone to error due to various time zones and conflict may occur.
- Minimal reduction of time accuracy.
- When NTP packets are increased synchronization is conflicted.
- Manipulation can be done in synchronization