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.

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…

Secrets of Time Synchronization Software

  |   By

Time synchronization is a crucial aspect of computer networking. Ensuring all machines on a network are synchronised to the global timescale, UTC (Coordinated Universal Time), otherwise time sensitive transactions with other networks would be impossible.

Time synchronization is made easy thanks to the Network Time Protocol (NTP) which was devised in the early days of the Internet for that very purpose. It works be utilising a single time source (usually UTC) which is then distributed amongst all devices on the NTP network.

The UTC time source is often taken from the Internet on networks where security is not a great issue but as this involves leaving an open port in a network firewall for many networks the vulnerability this can leave isn’t worth the risk.

Dedicated network time servers (often referred to as NTP servers) are used by many networks as a secure and even more accurate method of receiving UTC. These devices receive the UTC time direct from an atomic clock source.

Furthermore, these dedicated time servers operate external to the firewall and network and use sources such as GPS or radio frequencies to pick up the time codes.

For ease of synchronisation there are various time synchronisation software packages that run hand-in-hand with NTP and allow, through browser interfaces, easy configuration of the time synchronization throughout the network.

Whilst these time synchronisation software packages aren’t essential in using most NTP servers, the standard software installed in operating systems is often lacking or quite complicated.

Most specialist producers of dedicated network time servers will produce a times service client to allow configuration and these are probably best suited for the device from that suppler. However, there are many freeware and open source time synchronisation software packages that are mostly compatible with many NTP servers.

Auditable Time Synchronization with an NTP Server

  |   By

Time synchronization is crucial for many modern applications. Whilst computer networks all have to be running in perfect time to prevent errors and ensure security other systems require time synchronization for legal reasons.

Average speed cameras, traffic light cameras, CCTV, parking meters and alarm systems to name but a few, all require accurate time synchronization not just to ensure the correct operation of the systems but also to provide an auditable and legal trail for use in prosecutions.

Failure to do so can lead to the system being completely useless as any legal case based around the technology would need to be provable.

For instance, a CCTV network that is not synchronized would not be admissible in court, a defendant could easily claim that an image of them on a camera could not be them as they were not in the vicinity at the time and unless the camera system can be audited and proved to be accurate then reasonable doubt would see any case against the suspect dropped.

For this reason, systems like those mentioned above require complete auditable time synchronisation that can be proven beyond reasonable doubt in a court system.

An auditable system of time synchronization is only possible by using a dedicated NTP time server (Network Time Protocol). NTP servers not only provide an accurate method of synchronization being accurate to a few milliseconds they also provide a full audit trail that can’t be disputed.

NTP server systems use the GPS network or specialist radio transmissions to receive the atomic clock time which is so accurate the chance of it being even a second out from UTC time (Universal Coordinated Time) is over 3 billion to one which is even greater than the accuracy of other legal evidences such as DNA.

How Computers Keep Abreast of Time

  |   By

Time governs our lives and keeping abreast of it is vital if we want to get to work on time, make it home for dinner or watch our favourite shows of an evening.

It is also crucial for computer systems. Computers use time as a point of reference, indeed, time is the only point of reference it can use to distinguish between two events and it is crucial that computers operating in networks are synchronized together.

Time synchronization is when all computers that are connected together run the same time. Time synchronization, however, is not simple to implement, primarily because computers are not good time keepers.

We are all used to the time being displayed on the bottom right hand of our computer desktops but this time is normally generated by the onboard crystal oscillator (normally quartz) on the motherboard.

Unfortunately these onboard clocks are prone to drift and a computer clock may lose or gain a second or so each day. While this may not sound like much, it can soon accumulate and with some networks consisting of hundreds and even thousands of machines, if they are all running different times its not hard to imagine the consequences; emails may arrive before they are sent, data may fails to backup, files will get lost and the networks will be amass of confusion and nearly impossible to debug.

To ensure synchronization throughout a network all devices must connect to a single time source. NTP (Network Time Protocol) has been devised for this very purpose and can distribute a time source to all devices and ensure that any drift is countered.

For true accuracy the single time source should be a source of UTC (Coordinated Universal Time) which is a global timescale that is used across continents and pays no heed to timezones, this allows networks on opposite sides of the Earth to be synchronized together.

A source of UTC should also be governed by an atomic clock as any drift in the time will mean that your network will be out of sync with UTC. By far the easiest, most efficient, secure, accurate and reliable method of receiving an atomic clock source of UTC is to use a dedicated NTP time server. NTP servers receive the UTC time from either the GPS network (Global Positioning System) or from radio transmission broadcast by national physics laboratories such as NIST or NPL.

Parking Tickets and the NTP Server

  |   By

There is nothing worse than returning to your car only to discover that your parking meter time limit has expired and you’ve got a parking ticket slapped on to your windscreen.

More-often-than-not it’s only a matter of being a couple of minutes late before an over eager parking attendant spots your expired meter or ticket and issues you a fine.

However, as the people of Chicago are discovering, whilst a minute may be the difference between getting back to the car in time or receiving a ticket, a minute may also be the difference between different parking meters.

It seems the clocks on the 3000 new parking meter pay boxes in Cale, Chicago have been discovered to be unsynchronized. In fact, of the nearly 60 pay boxes observed, most are off at least a minute and in some cases, nearly 2 minutes from what is “actual” time.

This has posed a headache to the firm in charge of parking in the Cale district and they could face legal challenges from the thousands of motorists that have been given tickets from these machine.

The problem with the Cale parking system is that while they claim they regularly calibrate their machine there is no accurate synchronization to a common time reference. In most modern applications UTC (Coordinated Universal Time) is used as a base timescale and to synchronize devices, like Cale’s parking meters, a NTP server, linked to an atomic clock will receive UTC time and ensure every device has the exact time.

NTP servers are used in the calibration of not just parking meters but also traffic lights, air traffic control and the entire banking system to name but a few applications and can synchronize every device connected to it to within a few milliseconds of UTC.

It’s a shame Cale’s parking attendants didn’t see the value of of a dedicated NTP time server – I’m sure they are regretting not having one now.

Reasons for Atomic Clock Timing

  |   By

Atomic clocks have, unbeknown to most people, revolutionised our technology. Many of the ways we trade, communicate and travel are now solely dependent on timing from atomic clock sources.

A global community often means that we have to communicate with people on other areas of the world and in other time zones. For this purpose a universal time zone was developed, known as UTC (Coordinated Universal Time), which is based on the time told by atomic clocks.

Atomic clocks are incredibly accurate, losing only a second in every hundred million years, which is staggering when you compare it to digital clocks that will lose that much time in a week.

But why do we need such accuracy in timekeeping? Much of the technology we employ in modern times is designed for global communication. The Internet is a good example. So much trade is done across continents in fields such as the stock exchange, seat reservation and online auctioning that exact time is crucial. Imagine you are bidding for an item on the Internet and you place a bid a few seconds before the end, the last and highest bid, would it be fair to lose the item because the clock on your ISP was a little fast and the computer therefore thought the bidding was over. Or what about seat reservation; if two people on different sides of the globe book a seat at the same time, who gets the seat. This is why UTC is vital for the internet.

Other technologies too such as global positioning and air traffic control are reliant on atomic clocks to provide accuracy (and in the case of air traffic is paramount for safety). Even traffic lights and speed cameras have to be calibrated with atomic clocks otherwise speeding ticket may not be valid as they could be questioned in court.

For computer systems NTP time servers are the preferred method for receiving and distributing a source of UTC time.