Using Internet Time for Computer Synchronization

By on

Ensuring your network is synchronized is a vital part of modern computing. Failure to do so, and having different machines telling different times is a recipe for disaster and can cause untold problems, not to mention making it almost impossible to debug or log errors.

And it is not just your own network you need to synchronize to either. With so many networks talking to each other, it is important that all networks synchronize to the same time-scale.

UTC (Coordinated Universal Time) is just such a global timescale. It is controlled by an international constellation of atomic clocks and enables computers all over the world to talk to each other in perfect synchronicity.

But how do you sync to UTC?

The internet is awash with sources of internet time. Most modern operating systems, especially in the Windows flavour, are set up to do this automatically (just by clicking the time/date tab on the clock menu). The computer will then regularly check the time server (usually at Microsoft or NIST, although others can be used) and adjust the computer to ensure its time matches.

Most internet time servers are known as stratum 2 devices. This means they take the time from another device but where does that get the time from?

NTP time servers

The answer is that somewhere on the stratum tree there will be a stratum 1 device. This will be a time server that receives the time direct from an atomic clock source. Often this is by GPS but there are radio referenced alternatives in several countries. These stratum 1 NTP (Network Time Protocol) time servers then provide the stratum 2 devices with the correct time – and its these devices we get our internet time from.

Drawbacks to Internet time

There are several drawbacks to relying on the Internet for time synchronisation. Accuracy is one consideration. Normally, a stratum 2 device will provide ample enough precision for most networks; however, for some users who require high levels of accuracy or deal in a lot of time sensitive transactions a stratum 2 time server may not be accurate enough.

Another problem with internet time servers is that they require an open port in the firewall. Keeping the NTP access on UDP port 123 open all the time could lead to security issues, especially as internet time sources can’t be authenticated or guaranteed.

Using a Stratum 1 NTP Time server

Stratum 1 NTP time servers are easily installed on most networks. Not only will they provide a higher accurate source of time but as they receive the time externally (from GPS or radio) they are highly secure and can’t be hijacked by malicious users or viral software.

hello

This post was written by:

Richard N Williams is a technical author and a specialist in the NTP Server and Time Synchronisation industry. Richard N Williams on Google+