Using NTP to Synchronise a Digital Signage System

  |   By

Digital signage is advancing quite rapidly for such a burgeoning new industry. Fantastic new innovations and content styles are being developed all the time and there are some really fantastic campaigns out there and more and more adventurous implementations are springing up all the time.

One of a growing number of trends is the use of complicated, scheduled and synchronised campaigns on multiple machines. These are incredibly eye-catching especially when the content is synchronised to provide passers-by with an almost interactive experience.

Synchronised content can be really challenging to implement and this sort of content is certainly not for the beginner as setting up such a sophisticated campaign can be really difficult.

One of the essential aspects of these types of scheduled digital signage campaigns is to ensure all displays are synchronized together. Synchronization is perhaps the most crucial aspect of these types of sophisticated digital signage campaigns. There are multiple methods of synchronising this type of campaign.

One solution is to a network time server which receives a single time source and distributes it amongst all devices on that network using the time protocol NTP (Network Time Protocol).

NTP servers receive the time from an external source (normally GPS or long wave radio) so there is no need to have the network connected to the internet although it is just as possible to synchronise to an internet time source although this can be problematic if there is any disturbance in the internet connection.

Any large network of digital signage displays also need to be protected, especially if media players or PCs are being used to generate content. The best option for ensuring total security is to place both the screen and media device in a display enclosure, often referred to as an LCD enclosure.

Rubidium Oscillators Additional Precision for NTP Serve (Part 2)

  |   By

Continued…

However, there are some occasions when a time server can lose connection with the atomic clock and not receive the time code for a prolonged period of time. Sometimes this may be because of downtime by the atomic clock controllers for maintenance or that nearby interference is blocking the transmission.

Obviously the longer the signal is down the more potential drift may occur on the network as the crystal oscillator in the NTP server is the only thing keeping time. For most applications this should never be a problem as the most prolonged period of downtime is not normally more than three or four hours and the NTP server would not have drifted by much in that time and the occurrence of this downtime is quite rare (maybe once or twice a year).

However, for some ultra precise high end applications rubidium crystal oscillators are beginning to be used as they don’t drift as much as quartz. Rubidium (often used in atomic clocks themselves instead of caesium) is far more accurate an oscillator than quartz and provides better accuracy for when there is no signal to a NTP time server allowing the network to maintain a more accurate time.

Rubidium itself is an alkali metal, similar in properties to potassium. It is very slightly radioactive although poses no risk to human health (and is often used in medicine imaging by injecting it into a patient). It has a half life of 49 billion years (the time it takes to decay by half – in comparison some of the most lethal radioactive materials have half-lives of under a second).

The only real danger posed by rubidium is that it reacts rather violently to water and can cause fire

Rubidium Oscillators Additional Precision for NTP Serve (Part 1)

  |   By

Oscillators have been essential in the development of clocks and chronology. Oscillators are just electronic circuitry that produces a repetitive electronic signal. Often crystals such as quartz are used to stabilise the frequency of the oscillation,

Oscillators are the primary technology behind electronic clocks. Digital watches and battery powered analogue clock are all controlled by an oscillating circuit usually containing a quartz crystal.

And while electronic clocks are many times more accurate than a mechanical clock, a quartz oscillator will still drift by a second or two each week.

Atomic clocks of course are far more accurate. They still, however, use oscillators, most commonly caesium or rubidium but they do so in a hyper fine state often frozen in liquid nitrogen or helium. These clocks in comparison to electronic clocks will not drift by a second in even a million years (and with the more modern atomic clocks 100 million years).

To utilise this chronological accuracy a network time server that uses NTP (Network Time Protocol) can be used to synchronise complete computer networks. NTP servers use a time signal from either GPS or long wave radio that comes direct from an atomic clock (in the case of GPS the time is generated in a clock onboard the GPS satellite).

NTP servers continually check this source of time and then adjust the devices on a network to match that time. In between polls (receiving the time source) a standard oscillator is used by the time server to keep time. Normally these oscillators are quartz but because the time server is in regular communication with the atomic clock say every minute or two, then the normal drift of a quartz oscillator is not a problem as a few minutes between polls would not lead to any measurable drift.

To be continued…

Dealing with Time across the Globe

  |   By

No matter where we are in the world we all need to know the time at some point in the day but while each day lasts for the same amount of time no matter where you are on Earth the same timescale is not used globally.

The impracticality of Australians having to wake up at 17.00 or those in the US having to start work at 14.00 would rule out suing a single timescale, although the idea was discussed when the Greenwich was named the official prime meridian (where the dateline officially is) for the world some 125 years ago.

While the idea of a global timescale was rejected for the above reasons, it was later decided that 24 longitudinal lines would split the world up into different timezones. These would emanate from GMT around with those on the opposite side of the planet being +12 hours.

However, by the 1970’s a growth in global communications meant that a universal timescale was finally adopted and is still in much use today despite many people having never heard of it.

UTC, Coordinated Universal Time, is based on GMT (Greenwich Meantime) but is kept by a constellation of atomic clocks. It also accounts for variations in earth’s rotation with additional seconds known as ‘leap seconds’ added once of twice a year to counteract the slowing of the Earth’s spin caused by gravitational and tidal forces.

While most people have never heard of UTC or use it directly its influence on our lives in undeniable with computer networks all synchronised to UTC via NTP time servers (Network Time Protocol).

Without this synchronisation to a single timescale many of the technologies and applications we take for granted today would be impossible. Everything from global trading on stocks and shares to internet shopping, email and social networking are only made possible thanks to UTC and the NTP time server.

European Time Synchronisation with DCF-77

  |   By

The DCF 77 signal is a long wave transmission broadcast at 77 KHz from Frankfurt in Germany. DCF -77 is transmitted by Physikalisch-Technische Bundesanstalt, the German national physics laboratory.

DCF-77 is an accurate source of UTC time and is generated by atomic clocks that ensure its precision. DCF-77 is a useful source of time that can be adopted all over Europe by technologies needing an accurate time reference.

Radio controlled clocks and network time servers receive the time signal and in the case of time servers distribute this time signal across a computer network. Most computer network use NTP to distribute the DCF 77 time signal.

There are advantages of using a signal like DCF for time synchronisation. DCF is long wave and is therefore susceptible to interference from other electrical devices but they can penetrate buildings that give the DCF signal an advantage over that other source of UTC time generally available – GPS (Global Positioning System) – which requires a open view of the sky to receive satellite transmissions.

Other long wave radio signals are available in other countries that are similar to DCF-77. In the UK the MSF -60 signal is broadcast by NPL (National Physical Laboratory) from Cumbria while in the USA, NIST (National Institute of Standards and Time) transmit the WVBB signal from Boulder, Colorado.

NTP time servers are an efficient method of receiving these long wave transmissions and then using the time code as a synchronisation source. NTP servers can receive DCF, MSF and WVBB as well as many of them also being able to receive the GPS signal too.

UTC What Time is it?

  |   By

From the early days of the industrial revolution, when railway lines and the telegraph spanned across time zones it became apparent that a global timescale was required that would allow the same time to be used no matter where you were in the world.

The first attempt at a global timescale was GMT – Greenwich Meantime. This was based on the Greenwich Meridian where the sun is directly above at 12 noon. GMT was chosen, primarily because of the influence of the British empire on the rest if the globe.

Other timescales had been developed such British Railway Time but GMT was the first time a truly global system of time was used throughout the world.

GMT remained as the global timescale through the first half of the twentieth century although people began referring to as UT (Universal Time).

However, when atomic clocks were developed in the middle of the twentieth century it soon became apparent that GMT was not accurate enough. A global timescale based on the time told by atomic clocks was desired to represent these new accurate chronometers.

International Atomic Time (TAI) was developed for this purpose but problems in using atomic clocks soon became apparent.

It was thought that the Earth’s revolution on its axis was an exact 24 hours. But thanks to atomic clocks it was discovered the Earth’s spin varies and since the 1970’s has been slowing. This slowing of the Earth’s rotation needed to be accounted for otherwise the discrepancies could build up and night would slowly drift in to day (albeit in many millennia).

Coordinated Universal Time was developed to counter this. Based on both TAI and GMT, UTC allows for the slowing of the Earth’s rotation by adding leap seconds every year or two (and sometimes twice a year).

UTC is now a truly global timescale and is adopted by nations and technologies across the globe. Computer networks are synchronised to UTC via network time servers and they use the protocol NTP to ensure accuracy.

Radio Controlled Clocks Atomic Clocks on Shortwave

  |   By

Atomic clocks are a marvel compared to other forms of timekeepers. It would take over 100,000 years for an atomic clock to lose a second in time which is staggering especially when you compare it to digital and mechanical clocks that can drift that much in a day.

But atomic clocks are not practical pieces of equipment to have around the office or home. They are bulky, expensive and require laboratory conditions to operate effectively. But making use of an atomic clock is straightforward enough especially as atomic time keepers like NIST (National Institute of Standards and Time) and NPL (National Physical Laboratory) broadcast the time as told by their atomic clocks on short wave radio.

NIST transmits its signal, known as WWVB from Boulder, Colorado and it is broadcast on an extremely low frequency (60,000 Hz). The radio waves from WWVB station can cover all of the continental United States plus much of Canada and Central America.

The NPL signal is broadcast in Cumbria in the UK and it is transmitted along similar frequencies. This signal, known as MSF is available throughout most of the UK and similar systems are available in other countries such as Germany, Japan and Switzerland.

Radio controlled atomic clocks receive these long wave signals and correct themselves according to any drift the clock detects. Computer networks also take advantage of these atomic clocks signals and use the protocol NTP (Network Time Protocol) and dedicated NTP time servers to synchronise hundreds and thousands of different computers.

NTP or SNTP That is the Question?

  |   By

While there are several protocols available for time synchronisation the majority of network time is synchronised using either NTP or SNTP.

Network Time Protocol (NTP) and Simple Network Time Protocol (SNTP) have been around since the inception of the Internet (and in the case of NTP, several years beforehand) and are by far the most popular and widespread time synchronisation protocols.

However, the difference between the two is slight and deciding which protocol is best for a ntp time server or a particular time synchronisation application can be troublesome.

As its name suggests, SNTP is a simplified version of Network Time Protocol but the question is often asked: ‘what exactly is the difference?’

The main difference between the two versions of the protocol is in the algorithm that is used. NTP’s algorithm can query multiple reference clocks an calculate which is the most accurate.

SNTP use for low processing devices – it is suited to less powerful machines, do not require the high level accuracy of NTP. NTP can also monitor any offset and jitter (small variations in waveform resulting from voltage supply fluctuations, mechanical vibrations or other sources) whilst SNTP does not.

Another major difference is in the way the two protocols adjust for any drift in network devices. NTP will speed up or slow down a system clock to match the time of the reference clock coming into the NTP server (slewing) while SNTP will simply step forward or backward the system clock.

This stepping of the system time can cause potential problems with time sensitive applications especially of the step is quite large.

NTP is used when accuracy is important and when time critical applications are reliant on the network. However, its complex algorithm is not suited to simple machines or those with less powerful processors. SNTP on the other hand is best suited for these simpler devices as it takes up less computer resources, however it is not suited for any device where accuracy is critical or where time critical applications are reliant on the network.

Atomic Clocks the Key to Network Synchronisation

  |   By

Sourcing the correct time for network synchronisation is only possible thanks to atomic clocks. Compared to standard timing devices and atomic clock is millions of times more accurate with the latest designs providing accurate time to within a second in a 100,000 years.

Atomic clocks use the unchanging resonance of atoms during different energy states to measure time providing an atomic tick that occurs nearly 9 billion times a second in the case of the caesium atom. In fact the resonance of caesium is now the official definition of a second having been adopted by the International System of Unit (SI).

Atomic clocks are the base clocks used for the international time, UTC (Coordinated Universal Time). And they also provide the basis for NTP servers to synchronise computer networks and time sensitive technologies such as those used by air traffic control and other high level time sensitive applications.

Finding an atomic clock source of UTC is a simple procedure. Particularly with the presence of online time sources such as those provided by Microsoft and the National Institute for Standards and Time (windows.time.com and nist.time.gov).

However, these NTP servers are what are known as stratum 2 devices that mean they are connected to another device which in turn gets the time from an atomic clock (in other words a second-hand source of UTC).

While the accuracy of these stratum 2 servers is unquestionable, it can be affected by the distance the client is from the time servers, they are also outside the firewall meaning that any communication with an online time server requires an open UDP (User Datagram Protocol) port to allow the communication.

This can cause vulnerabilities in the network and are not used for this reason in any system that requires complete security. A more secure (and reliable) method of receiving UTC is to use a dedicated NTP time server. These time synchronisation devices receive the time direct from atomic clocks either broadcast on long wave by places like NIST or NPL (National Physical Laboratory – UK). Alternatively UTC can be derived from the GPS signal broadcast by the constellation of satellites in the GPS network (Global Positioning System).

Atomic Clock to be attached to International Space Station

  |   By

One of the world’s most accurate atomic clocks is to be launched into orbit and attached to the International Space Station (ISS) thanks to an agreement signed by the French space agency.

The PHARAO (Projet d’Horloge Atomique par Refroidissement d’Atomes en Orbite) atomic clock is to attached to the ISS in an effort to more accurately test Einstein’s theory of relatively as well as increasing the accuracy of Coordinated Universal Time (UTC) amongst other geodesy experiments.

PHARAO is a next generation caesium atomic clock with an accuracy that corresponds to less than a second’s drift every 300,000 years. PHARAO is to be launched by the European Space Agency (ESA) in 2013.

Atomic clocks are the most accurate timekeeping devices available to mankind yet they are susceptible to changes in gravitational pull, as predicted by Einstein’s theory, as time itself is slewed by the Earth’s pull. By placing this accurate atomic clock into orbit the effect of Earth’s gravity is lessened allowing PHARAO to be more accurate than Earth based clock.

While atomic clocks are not new to orbit, as many satellites; including the GPS network (Global Positioning System) contain atomic clocks, however, PHARAO will be among the most accurate clocks ever launched into space, allowing it to be used for far more detailed analysis.

Atomic clocks have been around since the 1960’s but their increasing development has paved the way for more and more advanced technologies. Atomic clocks form the basis of many modern technologies from satellite navigation to allowing computer networks to communicate effectively across the globe.

Computer networks receive time signals from atomic clocks via NTP time servers (Network Time Protocol) which can accurately synchronise a computer network to within a few milliseconds of UTC.