Time Synchronisation Getting it Right

  |   By

Time is essential for computers, networks and technology. It is the only reference technology has to ascertain if a task has happened or is due to take place. As time, in the from of timestamps, is so important for technology, when there is uncertainty over time, due to different devices on a network having different times, it can cause untold errors.

The problem with time in computing is that all devices, from routers to desktop PCs, have their own onboard timepiece that governs the system clocks. These system clocks are just normal electronic oscillators, they type commonly found in battery powered watches, and while these are adequate for humans to tell the time, the drifting of these clocks can see devices on a network, seconds and even minutes out of sync.

There are two rules for time synchronisation:

  • All devices on a network should be synchronised together
  • The network should be synchronised to UTC (Coordinated Universal Time)

 

NTP

To synchronise a network you need to make use of Network Time Protocol (NTP). NTP is designed for accurate network time synchronisation.  IT works by using a single source of time which it then distributes it to all devices on the NTP network.

NTP continually checks the devices for any drift and then adjusts to ensure the entire network is within a few milliseconds of the reference time.

UTC

Coordinated Universal Time is a global timescale that is kept true by atomic clocks. By synchronising a network to UTC you are in effect ensuring your network is synchronised to every other UTC network on the planet.

Using UTC as a reference source is a simple affair too. NTP time servers are the best way to find a secure source of UTC time. They use either GPS (Global Positioning System) as a source of this atomic clock time or specialist radio signals keeping the UTC time source external to the network for security reasons.

A single NTP server can synchronise a network of hundreds and even thousands of devices ensuring the entire network is to within a few milliseconds of UTC.

The Time According to UTC (Coordinated Universal Time)

  |   By

The modern world is a small one. These days, in business you are just as likely to be communicating across the Atlantic as you are trading with you neighbour but this can cause difficulties – as anybody trying to get hold of somebody across the other-side of the world will know.

The problem, of course, is time. There are 24 time zones on Earth which means that people you may wish to talk to across the other side of the world, are in bed when you are awake – and vice versa.

Communication is not jus a problem for us humans either; much of our communication is conducted through computers and other technologies that can cause even more problems. Not just because time-zones are different but clocks, whether they are those that power a computer, or an office wall clock, can drift.

Time synchronisation is therefore important to ensure that the device you are communicating with has the same time otherwise whatever transaction you are conducting may result in errors such as the application failing, data getting lost or the machines believing an action has taken place  when it has not.

Coordinated Universal Time

Coordinated Universal Time (UTC) is an international timescale. It pays no heed to time-zones and is kept true by a constellation of atomic clocks – accurate timepieces that do not suffer from drift.

UTC also compensates for the slowing of the Earth’s spin by adding leap seconds to ensure there is no drift that would eventually cause noon to drift towards night (albeit in many millennia; so slow is the slowing of the Earth).

Most technologies and computer networks across the globe use UTC as their source of time, making global communication more feasible.

Network Time Protocol and NTP Time Servers

Receiving UTC time for a computer network is the job of the NTP time server. These devices use Network Time Protocol to distribute the time to all technologies on the NTP network. NTP time servers receive the source of time from a number of different sources.

  • The internet – although  internet time sources can be insecure and unreliable
  • The GPS (Global Positioning System) – using the onboard atomic clocks from navigation satellites.
  • Radio signals – broadcast by national physics laboratories like NPL and NIST.

Using Atomic Clocks for Time Synchronisation

  |   By

The atomic clock is unrivalled in its chronological accuracy. No other method of maintaining time comes close to the precision of an atomic clock. These ultra-precise devices can keep time for thousands of years without losing a second in drift – in comparison to electronic clocks, perhaps the next most accurate devices, which can drift up to a second a day.

Atomic clocks are not practical devices to have around though. They use advanced technologies such as super-coolant liquids, lasers and vacuums – they also require a team of skilled technicians to keep the clocks running.

Atomic clocks are deployed in some technologies. The Global Positioning System (GPS) relies on atomic clocks that operate onboard the unmanned orbiting satellites. These are crucial for working out accurate distances. Because of the speed of light that the signals travel, a one second inaccuracy in any GPS atomic clock would lead to positing information being out by thousands of kilometres – but the actual accuracy of GPS is within a few metres.

While these wholly accurate and precise instruments for measuring time are unparalleled and the expensive of running such devices is unobtainable to most people, synchronising your technology to an atomic clock, in actual fact, is relatively simple.

The atomic clocks onboard the GPS satellites are easily utilised to synchronise many technologies to. The signals that are used to provide positioning information can also be used as a source of atomic clock time.

The simplest way to receive these signals is to use a GPS NTP server (Network Time Protocol). These NTP servers use the atomic clock time signal from the GPS satellites as a reference time, the protocol NTP is then used to distribute this time around a network, checking each device with the GPS time and adjusting to ensure accuracy.

Entire computer networks can be synchronised to the GPS atomic clock time by using just one NTP GPS server, ensuring that all devices are within milliseconds of the same time.