Archive for the ‘ntp server’ Category

Synchronizing a Computer Network with a Dedicated Network Time Server

Friday, March 12th, 2010

Synchronization is vital for most computer networks. Timestamps are the only reference a computer can use to analyse when and if processes or applications are completed. Synchronized timestamps are also vital for security, debugging and error logging.

Failure to keep a network adequately synchronized can lead to all sorts of problems. Applications fail to commence, time sensitive transactions will fail and errors and data loss will become commonplace.

However, ensuring synchronization no matter the size of network is straight forward and not costly, thank to the dedicated network time server and the time protocol NTP.

Network Time Protocol (NTP)

NTP has been around even longer than the internet but is the most widely used synchronization protocol available. NTP is free to use and makes synchronization very straight forward. It works by taking a single time source (or multiple ones) and distributes it amongst the network. It will maintain high levels of accuracy even when it loses the original time signal and can make judgements on how accurate each time reference.

NTP Time Server

These come in several forms. Firstly there are a number of virtual time servers across the internet that distributes time free of charge. However, as they are internet based a network is taking a risk leaving a firewall port open for this time communication. Also there is no control over the time signal so if it goes down (or becomes unstable or wholly inaccurate) your network can be left without adequate synchronization.

Dedicated NTP time servers use GPS or radio references to receive the time. This is far more secure and as GPS and radio signals like WWVB (from NIST) are generated by atomic clocks there accuracy is second to none.

Because the NTP protocol is hierarchical it also means that only one dedicated time server needs to be used for a network, no matter the size, as other devices on the network can act as time servers after having rece9ved the time from the primary NTP server.

Network Time Protocol and Computer Time Synchronization

Tuesday, February 23rd, 2010

Ask any network administrator or IT engineer and ask them how important network time synchronization is and you’ll normally get the same answer – very.

Time is used in almost all aspects of computing for logging when events have happened. In fact timestamps are the only reference a computer can use to keep tracks of tasks it has done and those that it has yet to do.

When networks are unsynchronized the result can be a real headache for anybody tasked with debugging them. Data can be often lost, applications fail to commence, error logging is next to impossible, not to mention the security vulnerabilities that can result if there is no synchronized network time.

NTP (Network Time Protocol) is the leading time synchronisation application having been around since the 1980’s. It has been constantly developed and is used by virtually every computer network that requires accurate time.

Most operating systems have a version of NTP already installed and using it to synchronise a single computer is relatively straight forward by using the options in the clock settings or task bar.

However, by using the inbuilt NTP application or daemon on a computer will result in the device using a source of internet time as a timing reference. This is all well and good for single desk top machines but on a network a more secure solution is required.

It is vital on any computer network that there are no vulnerabilities in the firewall which can lead to attacks from malicious users. Keeping a port open to communicate with an internet timing source is one method an attacker can use to enter a network.

Fortunately there are alternatives to using the internet as a timing source. Atomic clock time signals can be received using long wave radio or GPS transmissions.

Dedicated NTP time server devices are available that make the process of time synchronisation extremely easy as the NTP servers receives the time (externally to the firewall) and can then distribute to all machines on a network – this is done securely and accurately with most networks synchronised to an NTP server working to within a few milliseconds of each other.

Atomic Clocks Now Doubled in Precision

Friday, February 19th, 2010

As with the advance of computer technology that seems to exponentially increase in capability every year, atomic clocks too seem to increase dramatically in their accuracy year on year.

Now, those pioneers of atomic clock technology, the US National Institute of Standards Time (NIST), have announced they have managed to produce an atomic clock with accuracy twice that of any clocks that have gone before.

The clock is based in a single aluminium atom and NIST claim it can remain accurate without losing a second in over 3.7 billion years (about the same length of time that life has existed Earth).

The previous most accurate clock was devised by the German Physikalisch-Technische Bundesanstalt (PTB) and was an optical clock based on a strontium atom and was accurate to a second in over a billion years. This new atomic clock by NIST is also an optical clock but is based on aluminium atoms, which according to NIST’s research with this clock, is far more accurate.

Optical clocks use lasers to hold atoms still and differ to the traditional atomic clocks used by computer networks using NTP servers (Network Time Protocol) and other technologies which are based on fountain clocks. Not only do these traditional fountain clocks use Caesium as their time keeping atom but instead of lasers they use super-cooled liquids and vacuums to control the atoms.

Thanks to work by NIST, PTB and the UK’s NPL (National Physical Laboratory) atomic clocks continue to advance exponentially, however, these new optical atomic clocks based on atoms like aluminium, mercury and strontium are a long way from being used as a basis for UTC (Coordinated Universal Time).

UTC is governed by a constellation of caesium fountain clocks that while still accurate to a second in 100,000 years are by far less precise than these optical clocks and are based on technology over fifty years old. And unfortunately until the world’s science community can agree on an atom and clock design to be used internationally, these precise atomic clocks will remain a play thing of the scientific community only.

A Guide to Synchronising a Network with NTP

Wednesday, February 10th, 2010

Network Time Protocol (NTP) is a TCP/IP protocol developed when the internet was in its infancy. It was developed by David Mills of the University of Delaware who was trying to synchronise computers across a network with a degree of precision.

NTP is a UNIX based protocol but it has been ported to operate just as effectively on PCs and a version has been included with operating systems since Windows 2000 (including Windows 7, Vista and XP).

NTP, and the daemon (application) that controls it, is not just a method of passing the time around. Any system running the NTP daemon can act as a client by querying the reference time from other servers or it can make its own time available for other devices to use which in effect turns it into a time server itself. It can also act as a peer by collaborating with other peers to find the most stable and accurate time source to use.

One of the most flexible aspects of NTP is its hierarchical nature. NTP divides devices into strata, each stratum level is defined by its proximity to the reference clock (atomic clock). The atomic clock itself is a stratum 0 device, the closest device to it (often a dedicated NTP time server) is a stratum 1 device whilst other devices that connect to that become stratum 2. NTP can maintain accuracy to within 16 stratum levels.

Any network that needs to be synchronised, has to first identify and locate a time source for NTP to distribute. Internet sources of time are available but thee are often taken from stratum 2 devices that operate through the firewall. The only way NTP can peer the time is if the TCP/IP port is left open to allow the traffic through. This could lead to security issues as malicious users can take advantage of this firewall hole.

Dedicated NTP time servers find a source of time via GPS or radio signals and so don’t leave a network vulnerable to attack. By attaching a NTP time server to a router and entire network of hundreds and even thousands of devices can be synchronised thanks to NTP’s hierarchical structure.

New Technologies and the Growing Importance of Time Synchronisation

Wednesday, February 10th, 2010

The NTP protocol (Network Time Protocol) has since the earliest days of the internet been responsible for synchronising the time across computer networks. Not only is NTP effective at this, but when connected to a source of UTC (Coordinated Universal Time) NTP is also extremely accurate.

Most computer networks connect to UTC via a dedicated NTP time server. These devices use an external connection to an atomic clock to receive the time and then distribute it across a network. By connecting externally, via GPS (Global Positioning System) or long wave radio , not only are NTP time servers incredibly accurate but they are also very secure as they don’t rely on an internet connection for the time.
NTP time servers are also increasingly being used for other new innovations. Not only have traditional technologies such as CCTV, traffic lights, air traffic control and the stock exchange, become reliant on time synchronisation with time servers but an increasing amount of modern technologies are too.

NTP time servers are now common in modern digital signage systems (the use of flat screen TVs for out of home advertising). These networked screens are often synchronised to allow scheduled and orchestrated campaigns.

A synchronized digital signage campaign is one method of making an out of home advertising campaign stand-out. This is increasingly important as more and more digital signage is being implemented making a conventional digital signage campaign difficult to engage and catch the eye.

By synchronising multiple screens together with a NTP time server and running a scheduled and timed campaign. This allows content to be scheduled or timed to maximise its impact.

Small time servers can eben be installed directly into the digital signage of LCD enclosure although as most of these tiem synchnisation devices require a GPS or long wave signal the antenna can be problamtic. A better solution is to network the digtal signage and use a single NTP server as a method fo synchonisation.

NTP may be the oldest protocol on the internet and NTP time servers have been around for nearly two decades but this comparatively antique technology and software has never been so much in demand.

The Atomic Clock – Scientific Precision

Friday, February 5th, 2010

Precision is becoming increasingly important in modern technologies and none more so than accuracy in time keeping. From the internet to satellite navigation, precise and accurate synchronicity is vital in the modern age.

In fact many of the technologies that we take for granted in today’s world, would not be possible if it wasn’t for the most accurate machines invented – the atomic clock.

Atomic clocks are just timekeeping devices like other clocks or watches. But what stands them apart is the accuracy they can achieve. As a crude example your standard mechanical clock, such as a town centre clock tower, will drift by as much as a second a day. Electronic clocks such as digital watches or clock radios are more accurate. These types of clock drift a second in about a week.

However, when you compare the precision of an atomic clock in which a second will not be lost or gained in 100,000 years or more the accuracy of these devices is incomparable.

Atomic clocks can achieve this accuracy by the oscillators they use. Nearly all types of clock have an oscillator. In general, an oscillator is just a circuit that regularly ticks.

Mechanical clocks use pendulums and springs to provide a regular oscillation while electronic clocks have a crystal (usually quartz) that when an electric current is run through, provides an accurate rhythm.

Atomic clocks use the oscillation of atoms during different energy states. Often caesium 133 (and sometimes rubidium) is used as its hyperfine transitional oscillation is over 9 billion times a second (9,192,631,770) and this never changes. In fact, the International System of Units (SI) now officially regards a second in time as 9,192,631,770 cycles of radiation from the caesium atom.

Atomic clocks provide the basis for the world’s global timescale - UTC (Coordinated Universal Time). And computer networks all over the world stay in sync by using time signals broadcast by atomic clocks and picked up on NTP time servers (Network Time Server).

Rubidium Oscillators – Additional Precision for NTP Servers…Part 2

Saturday, January 9th, 2010

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 Servers…Part 1

Thursday, January 7th, 2010

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…

NTP or SNTP – That is the Question?

Wednesday, December 23rd, 2009

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 fro 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

Sunday, December 20th, 2009

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).