The World in Synchronisation

  |   By

Time synchronisation plays an ever more important role in the modern world with more and more technologies reliant on accurate and reliable time.

Time synchronisation is not just important but can also be crucial in the safe running of systems such as air traffic control that simply couldn’t function without accurate synchronisation. Think of the catastrophes that could happen in the air of aircraft were out of synchronisation with each other?

In global commerce too accurate and reliable time synchronisation is highly important. When the world’s stock markets open in the morning and traders from across the world buy stock on their computers. As stock fluctuates second by second if machines are out of synchronisation it could cost millions.

But synchronisation is also imperative in modern computer networking; it keeps systems secure and enables proper control and debugging of systems. Even if a computer network is not involved in any time sensitive transactions a lack of synchronisation can leave it vulnerable to malicious attacks and can also be susceptible to data loss.

Accurate synchronisation is possible in computer networking thanks to two developments: UTC and NTP.

UTC is a timescale -coordinated universal time, it is based on GMT but is controlled by an array of atomic clocks making it accurate to within a few nanoseconds.

NTP is a software protocol – Network Time Protocol, designed to accurately synchronise computer networks to a single time source. Both of these implementations come together in a single device which is relied upon the world over to synchronise computer networks – the NTP server.

An NTP time server or network time server is a device that receives the time from an atomic clock, UTC source and distributes it across a network. Because the time source is continually checked by the time server and is from an atomic clock it makes the network accurate to within a few milliseconds of UTC providing synchronisation on a global scale.

The Body Clock Natures Own NTP Server

  |   By

Developing new methods of telling the time accurately and precisely has developed to a new obsession amongst chronologists in the twenty first century. Since the development of the first atomic clocks in the 1950’s with millisecond accuracy the race was started with organisation such as the US’s NIST (National Institute for Standards and Time) and the UK’s NPL (National Physical Laboratory) developing increasingly accurate atomic clocks.

Atomic clocks are used as the time source for high technologies and applications such as satellite navigation and air traffic control, they are also the source for time signals used by NTP servers to synchronise computer networks.

An NTP server works by continually adjusting the computers system clock to ensure it matches the time relayed by the atomic clock. In doing this the NTP server can keep a computer network to within a few milliseconds of atomic clock controlled UTC (Coordinated Universal Time).

However, as remarkable this technology may seem it appears Mother Nature has already been doing the very same thing with our own body clocks.

The human body clock is only just being understood by medical science (the study of which is called Chronobiology) but what is known is that the body clock extremely important in the functioning of our day to day lives; it is also highly accurate and works in a very similar way to the NTP server.

Whilst a NTP time server receives a time signal from an atomic clock and adjust the system clocks on computers to match, our body clocks do the very same thing. The body clock runs in a circadian rhythm in other words a 24 hour clock. When the sun rises in the morning part of the brain that governs the body clock called the suprachiasmatic nucleus – which is located in the brain’s hypothalamus, automatically corrects for the sun’s movement.

In this way the human body clock adjusts for the darker winters and lighter months of the summer which is why you may find it more difficult to wake in the winter. The body clock adjusts itself every day to ensure it is synchronised to the rotation of the sun just as a NTP time server synchronises a computer’s system clock to ensure it is running accurately  to its timing source – the atomic clock.

The Clocks to Spring Forward at the Weekend

  |   By

It’s that time of year again when we lose an hour over the weekend as the clocks go forward to British Summer Time. Twice a year we alter the clocks but in an age of UTC (Coordinated Universal Time) and time server synchronisation is it really necessary?

The changing of the clocks is something that was discussed just before World War I when London builder William Willet suggested the idea as a way of improving the nation’s health (although his initial idea was to advance the clocks twenty minutes on each Sunday in April).

His idea wasn’t taken up although it sowed the seed of an idea and when the First World War erupted it was adopted by many nations as a way to economise and maximise daylight although many of these nations discarded the concept after the war, several including the UK and USA kept it.

Daylight saving has altered over the years but since 1972 it has remained as British Summer Time (BST) in the summer and Greenwich Meantime in the winter (GMT). However, despite is use for nearly a century the changing of the clocks remains controversial. For four years Britain experimented without daylight changing but it was proved unpopular in Scotland and the North where the mornings were darker.

This timescale hopping does cause confusion (I for one will miss that hour extra in bed on Sunday) but as the world of commerce adopts the global civil timescale (which fortunately is the same as GMT as UTC is adjusted with leap seconds to ensure GMT is unaffected by the slowing of the Earth’s rotation) is it still necessary?

The world of time synchronisation certainly doesn’t need to adjust for daylight saving. UTC is the same the world over and thanks to devices such as the NTP server can be synchronised so the entire world runs the same time.

NTP Synchronization and FAQ

  |   By

With a variety of acronyms and timescales the world of time synchronisation can be quite confusing here are some frequently asked questions we hope will help enlighten you.

What is NTP?

NTP is a protocol designed to synchronize computer networks across the internet or LAN (Local Area Networks). It is not the only time synchronization protocol available but it is the most widely used and the oldest having been conceived in the late 1980’s.

What are UTC and GMT?

UTC or Coordinated Universal Time is a global timescale, it is controlled by highly accurate atomic clocks but kept the same as GMT (Greenwich Meantime) by the use of leap seconds, added when the Earth’s rotation slows down. Strictly speaking GMT is the old civil timescale and based on when the sun is above the meridian line, however, as the two systems are identical in time thanks to leap seconds, UTC is often referred to as GMT and vice versa.

And a NTP Time Server?

These are devices that synchronize a computer network to UTC by receiving a time signal and distributing it with the protocol NTP which ensures all devices are running accurately to the timing reference.

Where to get UTC time from?

There are two secure methods of receiving UTC. The first is to utilize the long wave time signals broadcast by NIST (WWVB) NPL in the UK (MSF) and the German NPL (DCF) The other method is to use a the GPS network. GPS satellites broadcast an atomic clock signal that can be utilised and converted to UTC by the GPS NTP server.

NTP GPS Server Using Satellite Time Signals

  |   By

The NTP GPS server is a dedicated device that uses the time signal from the GPS (Global Positioning System) network. GPS is now a common tool for motorists with satellite navigation devices fitted to most new cars. But GPS is far more than just an aid for positioning, at the very heart of the GPS network is the atomic clocks that are inside each GPS satellite.

The GPS system works by transmitting the time from these clocks along with the position and velocity of the satellite. A satellite navigation receiver will work out when it receives this time how long it took to arrive and therefore how far the signal travelled. Using three or more of these signals the satellite navigation device can work out exactly where it is.

GPS can only do this because of the atomic clocks that it uses to transmit the time signals. These time signals travel, like all radio signals, at the speed of light so an inaccuracy of just 1 millisecond (1/1000 of a second) could result in the satellite navigation being nearly 300 kilometres out.

Because these clocks have to be so accurate, they make an ideal source of time for a NTP time server. NTP (Network Time Protocol) is the software that distributes the time from the time server to the network. GPS time and UTC (Coordinated Universal Time) the civil timescale is not quite the same thing but are base don the same timescale so NTP has no trouble converting it. Using a dedicated NTP GPS server a network can be realistically synchronised to within a few milliseconds of UTC

The GPS clock is another term often given to a GPS time server. The GPS network consists of 21 active satellites (and a few spare) 10,000 miles in orbit above the Earth and each satellite circles the Earth twice a day. Designed for satellite navigation, A GPS receiver needs at least three satellites to maintain a position. However, in the case of a GPS clock just one satellite is required making it far easier to obtain a reliable signal.

Each satellite continuously transmits its own position and a time code. The time code is generated by an onboard atomic clock and is highly accurate, it has to be as this information is used by the GPS receiver to triangulate a position and if it was just half a second out the Sat Nav  unit would be inaccurate by thousands of miles.

The Importance of the Atomic Clock

  |   By

Most people have vaguely heard of the atomic clock and presume they know what one is but very few people know just how important atomic clocks are for the running of our day to day lives in the twenty first century.

There are so many technologies that are reliant on atomic clocks and without many of the tasks we take for granted would be impossible. Air traffic control, satellite navigation and internet trading are just a few of the applications that are reliant on the ultra precise chronometry of an atomic clock.

Exactly what an atomic clock is, is often misunderstood. In simple terms an atomic clock is a device that uses the oscillations of atoms at different energy states to count ticks between seconds. Currently caesium is the preferred atom because it has over 9 billion ticks every second and because these oscillations never change it makes them a highly accurate method of keeping time.

Atomic clocks despite what many people claim are only ever found in large scale physics laboratories such as NPL (UK National Physical Laboratory) and NIST (US National Institute of Standards and Time). Often people suggest they have an atomic clock that controls their computer network or that they have an atomic clock on their wall. This is not true and what people are referring to is that they have a clock or time server that receives the time from an atomic clock.

Devices like the NTP time server often receive atomic clock signals form places such as NIST or NPL via long wave radio. Another method for receiving time from atomic clocks is using the GPS network (Global Positioning System).

The GPS network and satellite navigation are in fact a good example of why atomic clock synchonization is much needed with such high level of accuracy. Modern atomic clocks such as those found at NIST, NPL and inside orbiting GPS satellites are accurate to within a second every 100 million years or so. This accuracy is crucial when you examine how something like a cars GPS satellite navigation system works.

A GPS system works by triangulating the time signals sent from three or more separate GPS satellites and their onboard atomic clocks. Because these signals travel at the speed of light (nearly 100,000km a second) an inaccuracy of even one whole millisecond could put the navigational information out by 100 kilometres.

This high level of accuracy is also required for technologies such as air traffic control ensuring our crowded skies remain safe and is even critical for many Internet transactions such as trading in derivatives where the value can rise and fall every second.

The Hidden Cost of Free Time

  |   By

If you are reading this then you are probably aware of the importance time plays in IT systems and computer networks. Most computer administrators appreciate that precise time and accurate synchronisation are an important aspect of keeping a computer network error free and secure.

And yet, despite its importance many network administrators still rely on the Internet as a source of UTC time for their networks (UTC – Coordinated Universal Time), primarily because they see it as a quick and more importantly a free method of time synchronisation.

However, the drawbacks in using these free services may cost a lot more than the money saved on a dedicated NTP time server.

NTP (Network Time Protocol) is now present on nearly all computers and it is NTP that is used to synchronise computer systems. However, if an Internet time source is used then the source is outside the network firewall and this creates a serious vulnerability. Any external time source will require a port to be left open in the firewall to allow the time information packets through and this opening is too easy a way to exploit a network which can become victim to a DDOS attack (Distributed Denial of Service) or even allow malicious programmes through to take control of the machines themselves.

Another problem is the availability of stratum 1 time sources across the internet. Most online time sources come from stratum 2 time servers. These are devices that receive the time from a time server (stratum 1) that originally gets the information from an atomic clock (stratum 0).  While stratum 2 devices can be just as accurate as stratum 1 time servers, across the internet without NTP authentication the actual accuracy can not be guaranteed.

Furthermore, internet time sources have never been considered accurate or precise with surveys showing over half being inaccurate by over a second and the rest dependent on the distance from client as to whether they can provide any useful accuracy. Even organisations such as NIST publish  advisory notices on their time server pages about it unable to guarantee security or accuracy and yet millions of networks are still receiving time from across the internet.

With the decline in cost of dedicated radio referenced NTP time servers or GPS NTP server there has never been a better time to get one. And when you consider the cost of a computer breach or crashed network the NTP server will have paid for itself many times over.

Common Network Time Synchronisation (NTP) Server Errors (Part 2)

  |   By

Radio signal goes dead for several hours

The long wave transmissions such as MSF (NPL) or WWVB (NIST) are broadcast from large antennas that often need maintenance. This often requires a shut down of the broadcast while it is being done. These outages are normally posted with at least three months notice on the websites of the signals controllers (and can be automatically emailed if you register) to give prior notice.

These outages only tend to last a few hours leaving your computer network reliant on the electronic system clocks but it is doubtful there will be too much drift in that time (and any drift will be accounted for once the signal is back on. If these outages could be a potential problem than a simple solution is to invest in a dual system that will receive both GPS time server and radio signals ensuring a continuous time signal.

No time signal coming in despite the time server being powered up

This is most often caused by either lack of power going to the antenna or failing to connect to site the antenna where it can have a clear view of the sky. GPS antennas may have battery or power connections so it is always worth checking before switching the device on. Ensuring the antenna can ‘view’ the satellites when using GPS time servers is also important, remembering that windows and skylights may prevent signals getting through.

When using radio time reference such as MSF, DCF or WWVB the NTP server antennas can receive the long wave signal indoors but they are vulnerable to topography and local interference. If there is no signal or only a weak signal then try moving the antenna around until the signal strength increases enough.

Often users of these time and frequency signals find that the signal is weak throughout the day but is boosted at night. This is because the signals are ground state but have a residual skywave which can bounce of the ionosphere during the coolness of the night (ionospheric propagation).

Some users of these signals may find that despite being well within range the local topography can prevent a strong enough signal from getting through.

Common Network Time Synchronisation (NTP) Server Errors (Part 1)

  |   By

NTP servers are the easiest, most accurate and secure method of receiving a UTC time source (Coordinated Universal Time). Most dedicated NTP time servers will run in the background automatically synchronising the devices on a network completely automatically.

However, there are some common problems that occasionally occur in using a network time server but fortunately most can be solved relatively easily.

Losing A GPS time signal

GPS is one of the most efficient sources of UTC time. The GPS signal is available literally anywhere on the planet where there is a clear view of the sky. At any one time there are at least three satellites within range of any location and unlike radio referenced transmissions there are no maintenance outages so the signal is always uninterrupted.

However, some people find that they keep losing their GPS signal when using a GPS NTP time server. Very rarely this can be caused by extra terrestrial occurrences (solar flares – not little green men), however more commonly signal loss occurs when there has been insufficient time give for the initial acquisition lock.

To ensure a continuous signal make sure you follow manufacturer’s recommendation for obtaining acquisition. This usually means leaving the GPS time server to get a good lock for at least 24 hours (so all satellites have been in view). If not enough time is given to this then it is possible the GPS time server will lose a satellite and therefore timing information.

One second delay in a radio clock compared to internet or GPS

This is a very frequent occurrence when using a radio time server using signals such as the MSF transmission broadcast by the UK’s National Physical Laboratory. This occurs normally after the insertion of a Leap Second. Leap seconds are introduced once or twice a year to compensate for the slowing of the Earth’s rotation and to keep UTC in line with the Greenwich Meridian.
While NTP will automatically account for leap seconds with signals like the MSF it can often take some time as there is no Leap Second announcement. This announcement normally allows NTP to prepare for the leap second (which normally occurs in the last second of the last day in June or December). As signals such as MSF do not announce the upcoming leap second it can take some time for it to be accounted for. In some cases it can take a few days in others minutes. A simple solution is to manually announce the leap second.

However, if this is not done, NTP will eventually discover the leap second and adjust the network clocks.

Contiued……

Network Time Server Dual Signals

  |   By

A network time server (commonly referred to as the NTP time server after the protocol used in synchronisation – Network Time Protocol) is a device that receives a single time signal and distributes it to all devices on a network.

Network time servers are preferred as a synchronisation tool rather than the much simpler internet time servers because they are far more secure. Using the internet as a basis for time information would mean using a source outside the firewall which could allow malicious users to take advantage.

Network time servers on the other hand work inside the firewall by receiving source of UTC time (Coordinated Universal Time) from either the GPS network or specialist radio transmissions broadcast from national physics laboratories.

Both of these signals are incredibly accurate and secure with both methods providing millisecond accuracy to UTC. However, there are downsides to both systems. The radio signals broadcast by nation time and frequency laboratories are susceptible to interference and locality, while the GPS signal, although available literally everywhere on the globe can occasional be lost too (often due to bad weather interfering with the line-of-sight GPS signals.

For computer networks where high levels of accuracy are imperative, dual systems are often incorporated. These network time servers receive the time signal from both the GPS network and the radio transmissions and select an average for even more accuracy.  However, the real advantage of using a dual system is that if one signal fails, for what ever the reason, the network will not have to rely on the inaccurate system clocks as the other method of receiving UTC time should still be operational.