Category: ntp server

A Guide to Network Time Protocol

  |   By

NTP (Network Time Protocol) is perhaps the oldest and most commonly used protocol employed by computers and yet it is probably the least understood.

NTP is used by nearly all computers, networks and other devices that are involved in communicating across the internet or internal networks. It was developed in the very earliest stages of the internet when it became evident that some method of ensuring accuracy over distance was required.

The protocol works by selecting a single time source, of which NTP has the ability to establish the accuracy and reliability of, which it then distributes around every device on the NTP network.

Each device is regularly checked against this reference clock and adjusted if any drift is noticed. A version of NTP is now deployed with virtually every operating system allowing any machine to be synchronized to a single time source.

Obviously if every network in the world selected a different time source as its reference, the reason for of all this synchronization would be lost.

Fortunately, a global timescale based on an international consortium of atomic clocks has been developed to provide a single time source for the purposes of global synchronisation.

UTC (Coordinated Universal Time) is used by computer networks worldwide as a time reference which means any device that is synchronised to UTC with NTP will in effect be synchronised with every network that uses UTC as its base time.

There are many different methods that NTP can access UTC time. The internet is a common location although this does provide security and firewall issues. A more secure (and accurate) method is to use a dedicated NTP time server that takes the time from external sources such as the GPS network (GPS works by broadcasting an atomic clock timestamp that is easily converted to UTC by a NTP server).

With NTP, a dedicated time server and access to UTC an entire network can be synchronised to within a few milliseconds of the universal time providing a secure and accurate network that can operate in complete synchronicity with other networks across the globe.

Synchronizing a PC to an Atomic Clock

  |   By

Atomic clocks are without doubt the most accurate time pieces on the face of the planet. In fact the accuracy of an atomic clock in incomparable to any other chronometer, watch or clock.

While an atomic clock will not lose even a second in time in thousands upon thousands of years, you’re average digital watch will perhaps lose a second in just a few days which after a few weeks or months will mean your watch is running slow or fast by several minutes.

The same can also be said for the system clock that controls your computer the only difference is that computers rely even more heavily on time than we ourselves do.

Nearly everything a computer does is reliant on timestamps, from saving work to performing applications, debugging and even emails are all reliant on timestamps which can be a problem if the clock on your computer is running too fast or slow as errors can quite often occur, especially if you are communicating with another computer or device.

Fortunately, most PCs are easily synchronized to an atomic clock meaning they can be accurate as these powerful time keeping devices so any tasks performed by your PC can be in perfect synchronicity with whatever device you are communicating with.

In most PC operating systems an inbuilt protocol (NTP) allows the PC to communicate with a time server that is connected to an atomic clock. In most versions of Windows this is accessed through the date and time control setting (double clicking the clock in the bottom right).

However, for business machines or networks that require secure and accurate time synchronization, online time servers are just not secure or accurate enough to ensure your network is not vulnerable to security flaws.

However, NTP time servers that receive the time direct from atomic clocks are available that can synchronize entire networks. These devices receive a broadcasted timestamp distributed by either national physics laboratories or via the GPS satellite network.

NTP servers enable entire networks to all have exactly synchronized time which is as accurate and secure as is humanly possible.

Synchronizing a Computer Network with a Dedicated Network Time Server

  |   By

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

  |   By

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

  |   By

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

  |   By

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

  |   By

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

  |   By

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