Category: Time Synchronisation

UTC A global Timescale

  |   By

Coordinated Universal Time (UTC – from the  French Temps Universel Coordonné) is an international timescale based on the time told by atomic clocks. Atomic clocks are accurate to within a second in several million years. They are so accurate that International Atomic Time, the time relayed by these devices, is even more accurate than the spin of the Earth.

The Earth’s rotation is affected by the gravity of the moon and can therefore slow or speed up. For this reason, International Atomic Time (TAI from the French Temps Atomique International) has to have ‘Leap seconds’ added to keep it in line with the original timescale GMT (Greenwich meantime) also referred to as UT1, which is based on solar time.

This new timescale known as UTC is now used all over the world allowing computer networks and communications to be conducted at opposite sides of the globe.

UTC is governed not by an individual country or administration but a collaboration of atomic clocks all over the world which ensures political neutrality and also added accuracy.

UTC is transmitted in numerous ways across the globe and is utilised by computer networks, airlines and satellites to ensure accurate synchronisation no matter what the location on the Earth.

In the USA NIST (National Institute of Standards and Technology) broadcast UTC from their atomic clock in Fort Collins, Colorado. The National Physics Laboratories of the UK and Germany have similar systems in Europe.

The internet is also another source of UTC time. Over a thousand time servers across the web can be used to receive a UTC time source, although many are not precise enough for most networking needs.

Another, secure and more accurate method of receiving UTC is to use the signals transmitted by the USA’s Global Positioning System. The satellites of the GPS network all contain atomic clocks that are used to enable positioning. These clocks transmit the time which can be received using a GPS receiver.

Many dedicated time servers are available that can receive a UTC time source from either the GPS network or the National physics Laboratory’s transmissions (all of which are broadcast at 60 kHz longwave).

Most time servers use NTP (Network Time Protocol) to distribute and synchronise computer networks to UTC time.

Network Time Protocol (NTP), Understanding Synchronisation.

  |   By

Network Time Protocol seems to have been around for ever. In fact it is indeed one of the Internet’s oldest protocols having been developed in the 1980’s by Professor David Mills and his team from Delaware University.

In a laid-back world it perhaps doesn’t matter if computer networks are not synchronised. The only consequences of timing errors could be that an email arrives before it was sent but in industries such as airline seat reservation, the stock exchange or satellite communication, fractions of a second can cause serious errors such as selling seats more than once, the loss of millions of dollars or even fraud.

Computers are logical machines and as time is linear to a computer any event that happens on one machine must happen before news of that event reaches another. When networks are not synchronised computers struggle to deal with events that have obviously occurred (such as an email being sent) but according to their clock and time stamp it hasn’t yet, just think back to the millennium bug where it was feared clocks would jump back to 1900!

For this very reason NTP was developed.  NTP uses an algorithm (Marzullo’s algorithm) to synchronise the time with the current version of NTP can maintain time over the public Internet to within 10 milliseconds and can perform even better over LANs. NTP time servers work within the TCP/IP suite and rely on UDP (User Datagram Protocol).

NTP servers are normally dedicated NTP devices that use a single time reference to synchronise a network to. This time reference is most often a UTC (Coordinated Universal Time) source. UTC is a global time scale distributed by atomic clocks via the Internet, specialist long wave radio transmissions or via the GPS (Global Positioning System) network.

The NTP algorithm uses this time reference to determine the amount to advance or retreat the system or network clock. NTP analyses the timestamp’s values including the frequency of errors and its stability. A NTP server will maintain an estimate the quality of both the reference clocks and itself.

NTP is hierarchical. The distance from the timing reference is divided into strata. Stratum 0 is the atomic clock reference; Stratum 1 is the NTP server, while Stratum 2 is a server that receives timing information from the NTP server. NTP can support almost limitless strata although the further away from the timing reference you go the less accurate it will be.

As each stratum level can both receive and send timing signals, the advantage of this hierarchical system is that thousands of machines can be synchronised with only the need for one NTP server.

NTP contains its a security measure called authentication. Authentication verifies that each timestamp has come from the intended time reference by analysing a set of encryption keys that are sent with the time reference.  NTP analyses it and confirms whether it has come from the time source by verifying it against a set of trusted keys in its configuration files.

However, authentication is unavailable from timing sources from across the Internet which is why Microsoft and Novell amongst others strongly recommend only external time references are used such as a dedicated GPS NTP server or one that receives the national time and frequency long wave transmission.

Receiving the Time with Time Servers and the MSF transmitter

  |   By

MSF is the name given to the dedicated time broadcast provided by the National Physical Laboratory in the UK, It is an accurate and reliable source of UK civil time, based on the time scale UTC (Coordinated Universal Time).

MSF is used throughout the UK and indeed other parts of Europe to receive a UTC time source which can be used by radio clocks and to synchronise computer networks by using a NTP time server.

It is available 24 hours a day across the whole of the UK although in some areas the signal can be weaker and it is susceptible to interference and local topography. The signal operates on a frequency of 60 kHz and carries a time and date code which relays the following information in binary format: Year, month, day of month,  day of week,  hour,  minute,  British Summer Time (in effect or imminent) and DUT1 (the difference between UTC and UT1 which is based on the Earths rotation)

The MSF signal is transmitted from Anthorn Radio Station in Cumbria but was only recently moved there after residing in Rugby, Warwickshire since it was started in the 1960’s. The signal’s carrier frequency is at 60 kHz, controlled by caesium atomic clocks at the radio station.

Caesium atomic clocks are the most reliably accurate atomic clocks anywhere, neither losing nor gaining a second in several millions of years.

To receive the MSF signal simple radio clocks can be used to display the exact UTC time or alternatively MSF referenced time servers can receive the long-wave transmission and distribute the timing information around computer networks using NTP (Network Time Protocol).

The only real alternative to the MSF signal in the UK is to use the onboard caesium clocks of the GPS network (Global Positioning System) that relay accurate time information that can be used as a UTC time source.

Six Reasons why you need a Dedicated Network Time Server!

  |   By

Security
Having inaccurate time or running a network that is not synchronised can leave a computer system vulnerable to security threats and even fraud. Timestamps are the only point of reference for a computer to track applications and events. If these are inaccurate all sorts of problems can occur such as emails arriving before they were sent. It also makes possible such time sensitive transactions as e-commerce, online reservation and trading in stocks and share where exact timing with a network time server is essential and prices can fall or rise by millions in a second.

Protection:
Failure to synchronise a computer network can allow hackers and malicious uses the opportunity to get at your system, even fraudsters can take advantage. Even those machines that are synchronised can fall victim, especially when the use the Internet as a timing reference which allows an open door for malicious users to inject a virus into your network. Using Radio or GPS atomic clocks provide accurate time behind your firewall maintaining you security.

Accuracy:
NTP Time Servers ensure that all networked computers are synchronized automatically to the accurate time and date, now and in the future, automatically updating the network during daylight saving and leap seconds.

Legality:
If computer data is ever to be used in a court of law then it essential that the information comes from a network that is synchronised. If the system is not then the evidence may be inadmissible.

Happy users:
Stop users complaining about incorrect time on their workstations

Control:
You have control of the configuration. For example you can automatically changes the time forward and back each Spring and Autumn for daylight saving time or set your server time to be locked to UTC time only or any time zone you choose.

The Atomic Clock and the NTP Time Server

  |   By

Most people have heard of atomic clocks, their accuracy and precision are well known. An ato0mic clock has the potential to keep time for several hundred million years and not lose a second in drift. Drift is the process where clocks lose or gain time because of the inaccuracies in the mechanisms that make them work.

Mechanical clocks, for instance, have been around for hundreds of years but even the most expensive and well engineered will drift at least a second a day. Whilst electronic clocks are more accurate they also will drift by about a second a week.

Atomic clocks have no comparison when it comes to time keeping. Because an atomic clock is based on the oscillation of an atom (in most cases the caesium 133 atom) which has an exact and finite resonance (caesium is 9,192,631,770 every second) this makes them accurate to within a billionth of a second (a nanosecond).

While this type of accuracy is unparalleled it has made possible technologies and innovations that have changed the world. Satellite communication is only possible thanks to the time keeping of atomic clocks, so is satellite navigation. As the speed of light (and therefore radio waves) travel at over 300,000km a second an inaccuracy of a second could see a navigation system be hundreds of thousands of miles out.

Precise accuracy is also essential in many modern computer applications. Global communication, particularly financial transactions have to be done precisely. In Wall Street or the London stock exchange a second can see the value of stock rise or fall by millions. Online reservation also requires the accuracy and perfect synchronisation only atomic clocks can provide otherwise tickets could be sold more than once and cash machines could end up paying out your wages twice if you found a cash machine with a slow clock.

Whilst this may sound desirable to the more dishonest of us, it doesn’t take much imagination to understand what problems a lack of accuracy and synchronisation could cause. For this reason an International timescale based on the time told by atomic clocks has been developed.

UTC (Coordinated Universal Time) is the same everywhere and can account for the slowing of the Earth’s rotation by adding leap seconds to keep UTC inline with GMT (Greenwich Meantime). All computer networks that participate in global communication need to be synchronised to UTC. Because UTC is based on the time told by atomic clocks it is the most precise timescale possible. For a computer network to receive and keep synchronised to UTC  it first needs access to an atomic clock. These are expensive and large pieces of equipment and are generally only to be found in large scale physics laboratories.

Fortunately the time told by these clocks can still be received by a network time server wither by utilising time and frequency long wave broadcasts transmitted by national physics laboratories or from the GPS (Global Positioning system). NTP (network time protocol) can then distribute this UTC time to the network and use the time signal to keep all devices on the network perfectly synchronised to UTC.

Accuracy in Timekeeping Atomic clocks and Time Servers

  |   By

The development of atomic clocks throughout the twentieth century has been fundamental to many of the technologies we employ everyday. Without atomic clocks many of the innovations of the twentieth century would simply not exist.

Satellite communication, global positioning, computer networks and even the Internet would not be able to function in the way we are used to if it wasn’t for atomic clocks and their ultra-precision in timekeeping.

Atomic clocks are incredibly accurate chronometers not losing a second in millions of years. In comparison digital clocks may lose a second every week and the most intricately accurate mechanical clocks lose even more time.

The reason for an atomic clock’s incredible precision is that it is based on an oscillation of a single atom. An oscillation is merely a vibration at a particular energy level in the case of most atomic clocks they are based on the resonance of the caesium atom which oscillates at exactly 9,192,631,770 times every second.

Many technologies now rely on atomic clocks for their unbridled accuracy. The global positing system is a prime example. GPS satellites all have onboard an atomic clock and it is this timing information that is used to work out positioning. Because GPS satellites communicate using radio waves and they travel at the speed of light (180,000 miles a second in a vacuum), tiny inaccuracies in the time could make positioning inaccurate by hundreds of miles.

Another application that requires the use of atomic clocks is in computer networks. When computers talk to each other across the globe it is imperative that they all use the same timing source. If they didn’t, time sensitive transactions such as Internet shopping, online reservations, the stock exchange and even sending an email would be near to impossible. Emails would arrive before they were sent and the same item on an Internet shopping site could be sold to more than one person.

For this reason a global timescale called UTC (Coordinated Universal Time) based on the time told by atomic clocks has been developed. UTC is delivered to computer networks via times servers. Most time servers utilise NTP (network time protocol) to distribute and synchronize the networks.

NTP time servers can receive UTC time from a number of sources most commonly the onboard atomic clocks of the GPS system can be used as a UTC source by a time server connected to a GPS antenna.

Another method that is quite commonly used by NTP time servers is to utilise the long wave radio transmission broadcast by several countries’ national physics laboratories.  Whilst not available everywhere and quite susceptible to local topography the broadcasts do provide a secure method of receiving timing source.

If neither of these methods is available then a UTC timing source can be received from the Internet although accuracy and security are not guaranteed.

NTP Time Server Frequently Asked Questions

  |   By

Q. What is NTP?
A. NTP – Network Time Protocol is an Internet protocol for time synchronisation, whilst other time synchronisation protocols are available NTP is by far the most widely used having been around since the mid 1980’s when the Internet was still in its infancy.

Q. What is UTC?
A.  UTC – Coordinated Universal Time is a global timescale based on the time told by atomic clocks. Because these clocks are so accurate every year or so ‘leap seconds’ have to be added as UTC is even more accurate than the Earth’s rotation which slows and speeds up thanks to the Moon’s gravity.

Q. What is a Network Time Server?
A. A network time server also known as a NTP time server is a network device that receives a UTC time signal and then distributes it among the other devices on a network. The time protocol NTP then ensures that all machines are kept synchronised to that time.

Q. Where does a network time server receive a UTC time from?
A. There are several sources where a UTC time reference can be taken. The Internet is the most obvious with hundreds of different time servers relaying their UTC time signals. However these are notoriously inaccurate depending on many variable the Internet is also not a secure source and not suitable for any computer network where security issues are a concern. The other methods that provide a more accurate, secure and reliable source of UTC time is to either use the transmissions of the GPS (global positioning system) network or the national time and frequency transmissions broadcast on long-wave.

Q. Can I receive a radio time signal from anywhere?
A. Unfortunately not. Only certain countries have a time signal broadcast from their national physics laboratories and these signals are finite and vulnerable to interference. In the USA the signal is broadcast from Colorado and is known as WWVB, in the UK it is broadcast from Cumbria and is called MSF. Similar systems exist in Germany, Japan, France and Switzerland.

Q. What about the GPS signal?
A. A satellite navigation system relies on the time signals from the onboard atomic clocks in the GPS satellites. It is this time signal that is used to triangulate positioning and it can also be received by a network time server fitted with a GPS antenna. GPS is available everywhere in the World but an antenna does need to have a clear view of the sky.

Q. If I have large network then I will need multiple network time servers?
A. Not necessarily. NTP is hierarchical and divided into ‘stratum’ an atomic clock is a stratum 0 device, a time server that receives the clocks signal is a stratum 1 device and a network device that receives a signal from a time server is a stratum 2 device. NTP can support 12 stratum (realistically, although more is possible) and each strata can be used as a device to synchronise to. Therefore a stratum 2 device can synchronise other machine lower down the strata and so on. This means no matter how big a network is, only one network time server would be required.

A Brief History of NTP Time

  |   By

NTP (network time protocol) is an Internet protocol. Protocols are simply a set of instructions that a computer will follow and NTP has been designed and developed to synchronize computer networks.

It was developed in the 1985 by Professor David Mills from the University of Delaware when the Internet was still in its infancy. Professor Mills realised the need for synchronisation amongst computers when they were talking to each other.

NTP uses Marzullo’s Algorithm which is an agreement algorithm used to select sources for estimating accurate time from a number of noisy time sources.  NTP works by distributing a single time source. Whilst this time reference can be anything such as a wrist watch, it makes little sense to synchronise a network to anything other than UTC time.

UTC (Coordinated Universal Time) is a global time scale based on the time told by atomic clocks. Atomic clocks boast such high levels of accuracy that they do not lose or gain a second in over a million years.

By synchronizing to a UTC time source a network can in affect be synchronised to every other network that uses UTC time.

Once a time source has been selected the NTP daemon (or service on Windows) not only distributes the time reference it also continually checks for accuracy and errors.

NTP is a hierarchical system. The distance from a time server is referred to as a stratum level. A stratum 0 server is a time source itself such as an atomic clock, a stratum 1 server is the NTP time server whilst a stratum 2 server is  a device that receives the time from the time server and stratum 3 servers receive the time signal via a stratum 2 server.

Arranging the network into strata means that a NTP time server can distribute time to hundreds or even thousands of machines without the network or time server itself becoming congested with traffic.  Although it must be noted that the lower down the stratum level a device a fall in accuracy can be expected.

The actual UTC time signal can be received from a number of ways. From across the Internet although this can cause security issues as the time signal can’t be authenticated which is NTP’s inbuilt security measure. It is far safer to receive a time signal from a radio signal broadcast by several national physics laboratories or even the GPS network  whose onboard atomic clocks can be utilised as a timing source if the NTP time server is fitted with a GPS receiver.

Time Servers: Maintaining Precise Time on Your Computers

  |   By

Computer networks rely on timekeeping for nearly all their applications, from sending an email to saving data, a timestamp is necessary for computer to keep track. All routers and switches need to run at the same rate, out of sync devices can lead to data being lost and even entire connections.

All PC’s and networking devices use clocks to maintain an internal system time. These clocks, called Real Time Clock chips (RTC) provide time and date information. The chips are battery backed so that even during power outages, they can maintain time.

However, personal computers are not designed to be perfect clocks, their design has been optimized for mass production and low-cost rather than maintaining accurate time. However, these internal clocks are prone to drift and although for many application this can be quite adequate, often machines need to work together on a network and if the computers drift at different rates the computers will become out of sync with each other and problems can arise particularly with time sensitive transactions.

For some transactions it is necessary for computers to be perfectly synchronised, even a few seconds difference between machines can have serious effects, such as finding an airline ticket you had booked had been sold moments later to another customer or you could draw your savings out of a cash machine and when your account is empty you could quickly going to another machine and withdraw it all again.

Time servers are like other computer servers in the sense they are usually located on a network. A time server gathers timing information, usually from an external hardware source and then synchronises the network to that time.

Most time servers use NTP (Network Time Protocol) which is one of the Internet’s oldest protocols still used, invented by Dr David Mills from the University of Delaware, it has been in utilized since 1985. NTP is a protocol designed to synchronize the clocks on computers and networks across the Internet or Local Area Networks (LANs).

NTP utilises an external timing reference and then synchronises all devices on the network to that time.

Often time servers are synchronised to a UTC (Coordinated Universal time) source which is the global standard time scale and allows computers all over the world to synchronised to exactly the same time. This has obvious importance in industries where exact timing is crucial such as the stock exchange or airline industry.

There are various sources that a time server can use as a timing reference. The Internet is an obvious source, however, internet timing references from the Internet such as nist.gov and windows.time can not be authenticated, leaving the time server and therefore the network vulnerable to security threats.

Understanding Computer Timestamps with NTP

  |   By

The way a computer deals with time is totally different to the ways humans perceive it. We arrange time into seconds, minutes, hours, days, weeks, months and years, while computers on the other hand arrange time as a single number representing the seconds that have passed from a single point in time, known as the prime epoch.

Most computers use NTP (Network Time Protocol) to deal with time and on networks many are synchronised using a dedicated NTP time server.  NTP knows nothing about days, years or centuries, only the seconds from the prime epoch.  This prime epoch is set (for most systems) at midnight at the turn of the century twentieth century that for a human would be recorded as something like: 00:00 – 01,01,1900.

Computers, however, count time as the number of seconds past this point. If a computer was around in 1900 its timestamp on midnight January 1 would be 0 while in 1972 at the same date the timestamp would be 2,272,060,800, which represents the number of seconds since 1900.

The timestamps restart every 136 years with the next wrap around due in 2036, this has caused uneasiness amongst some who fear a Millennium Bug type scenario, although most doubt such events would occur, however, when a wrap-around of the timestamp does happen an era integer will be added (+1), to allow computers to deal with time spans that cover more than one wrap-around.  If computers and NTP need to deal with time that spans before the prime epoch a negative integer is used (for the year 1500 a -3 will be used to represent three cycles of 136 years).

Timestamps are used in virtually every transaction that modern computers are tasked to do such as sending emails, debugging and programming. Because time is linear, a computer knows that each timestamp is always greater than the previous one and therefore computers and NTP find it difficult to deal with inaccuracies in time, particularly when time suddenly appears to go backwards.

This can happen if computers are not synchronised to the same time. If an email is sent to a machine with a slower clock, it appears to the computer to have been received before it has been sent.  Lack of synchronisation can serious problems and can even leave a system vulnerable to malicious attacks and even fraud.

Because of this, most computer networks are synchronised to UTC (Coordinated Universal Time). UTC is a global timescale and the same for everybody worldwide it is based on the time told by atomic clocks which are highly accurate, neither gaining nor losing a second in millions of years.

Most computer networks use a dedicated NTP time server to receive a UTC time to synchronise their computers too.  UTC is available from across the Internet (although unsecured), via the GPS network (Global Positioning System), or by receiving national time and frequency broadcasts via long wave.

NTP synchronises a computer by checking the received UTC time and adding to or holding a computer’s timestamp until it perfectly matches UTC. By using a dedicated NTP time server UTC can be maintained on a network to a few milliseconds of UTC time.