Network Time Protocol For When Time Matters

  |   By

There is a certain irony that the computer that sits on your desktop and may have cost as much as month’s salary will have a clock onboard that is less accurate than a cheap wristwatch bought at a petrol or gas station.

The problem is not that computers are in particularly made with cheap timing components but that any serious timekeeping on a PC can be achieved without expensive or advanced oscillators.

The onboard timing oscillators on most PCs are in fact just a back up to keep the computer clock synchronised when the PC is off or when network timing information is unavailable.

Despite these inadequate onboard clocks, timing on a network of PC’s can be achieved to within millisecond accuracy and a network that is synchronised to the global timescale UTC (Coordinated Universal Time) shouldn’t drift at all.

The reason this high level of accuracy and synchronicity can be achieved without expensive oscillators is that computers can use Network Timing Protocol (NTP) to find and maintain the exact time.

NTP is an algorithm that distributes a single source of time; this can be generated by the onboard clock of a PC – although this would see every machine on the network drift as the clock itself drifts – A far better solution is to use NTP to distribute a stable, accurate source of time, and most preferably for networks that conduct business across the internet, a source of UTC.

The simplest method of receiving UTC – which is kept true by a constellation of atomic clocks around the globe – is to use a dedicated NTP time server. NTP servers use either GPS satellite signals (Global Positioning System) or long wave radio broadcasts (usually transmitted by national physics laboratories like NPL or NIST).

Once received the NTP server distributes the timing source across the network and constantly checks each machine for drift (In essence the networked machine contacts the server as a client and the information is exchanged via TCP/IP.

This makes the onboard clocks of the computers themselves obsolete, although when the machines are initially booted up, or if there has been a delay in contacting the NTP server (if it is down or there is a temporary fault), the onboard clock is used to maintain time until full synchronisation is again achievable.

Time Servers and the Internet

  |   By

Timing is becoming increasingly crucial for computer systems. It is now almost unheard of for a computer network to function without synchronisation to UTC (Coordinated Universal Time). And even single machines used in the home are now equipped with automatic synchronisation. The latest incarnation of Windows for instance, Windows 7, connects to a timing source automatically (although this application can be turned off manually by accessing the time and date preferences.)

The inclusion of these automatic synchronisation tools on the latest operating systems is an indication of how important timing information has become and when you consider the types of applications and transactions that are now conducted on the internet it is of no surprise.

Internet banking, online reservations, internet auctions and even email can be reliant on accurate time. Computers use timestamps as the only point of reference they have to identify when and if a transaction has occurred. Mistakes in timing information can cause untold errors and problems, particularly with debugging.

The internet is full of time servers with over a thousand time sources available for online synchronisation however; the accuracy and usefulness of these online sources of UTC time do vary and leaving a TCP/IP open in the firewall to allow the timing information through can leave a system vulnerable.

For network systems where timing is not only crucial but where security is also a paramount issue then the internet is not a preferred source for receiving UTC information and an external source is required.

Connecting a NTP network to an external source of UTC time is relatively straightforward if a network time server is used. These devices that are often referred to as NTP servers, use the atomic clocks onboard GPS (Global Positioning System) satellites or long wave transmissions broadcast by places such as NIST or NPL.

NTP Servers and the Different Time Sources

  |   By

NTP servers are essential devices for computer network time synchronisation. Ensuring a network coincides with UTC (Coordinated Universal Time) is vital in modern communications such as the Internet and is the primary function of the network time server (NTP server).

As their name suggests, these time servers use the protocol NTP (Network Time Protocol) to handle the synchronisation requests. NTP is already installed in many operating systems and synchronisation is possible without an NTP server by utilising an Internet time source, this can be unsecure and inaccurate for many network needs.

Network time servers receive a far more accurate and secure time signal. There are two methods of receiving the time using a time server: utilising the GPS network or receiving long wave radio transmissions.

Both these methods of receiving a time source are secure as they are external to any network firewall. They are also accurate as both sources of time are generated directly by atomic clocks rather than an Internet time service that are normally NTP devices connected to a third party atomic clock.

The GPS network provides an ideal source of time for NTP servers as the signals are available anywhere. The only downside of using the GPS network is that a view of the sky is required to lock-on to a satellite.

Radio referenced time sources are more flexible in that the long wave signal can be received indoors. They are limited in strength and not every country has a time signal although some signals such as the German DCF and the USA WVBB are available in neighbouring states.

Atomic Clocks and Gravity

  |   By

We couldn’t live our lives without them. They affect almost every aspect of our daily lives and many of the technologies that we take for granted in today’s world, just couldn’t function without them. In fact, if you are reading this article on the Internet the there is a chance you are using one right now.

Without knowing it, atomic clocks govern all of us. From the Internet; to mobile phone networks and satellite navigation, without atomic clocks none of these technologies would be possible.

Atomic clocks govern all computer networks using the protocol NTP (network time protocol) and network time servers, computer systems around the world remain in perfect synchronisation.

And they will continue to do so for several million years as atomic clocks are so accurate they can maintain time to within a second for well over 100 million years. However, atomic clocks can be made even more accurate and a French team of scientists are planning to do just that by launching an atomic clock into space.

Atomic clocks are limited to their accuracy on Earth because of the effects of he gravitational pull of the planet on time itself; as Einstein suggested time itself is warped by gravity and this warping slows down time on Earth.

However, a new type of atomic clock named PHARAO (Projet d’Horloge Atomique par Refroidissement d’Atomes en Orbit) is to be placed aboard the ISS (international space station) out of reach from the worst effects of Earth’ gravitational pull.

This new type of atomic clock will allow hyper accurate synchronization with other atomic clocks, here on Earth (which in effect will make synchronization to an NTP server even more precise).

Pharao is expected to reach accuracies of around one second each 300 million years and will allow further advances in time reliant technologies.

IEEE 1588 Time Protocol Promises More Accurate Time Synchronisation

  |   By

Despite being around for over twenty years, the current favoured time protocol by most networks, NTP (Network Time Protocol) has some competition.

Currently NTP is used to synchonise computer networks using network time servers (NTP servers). Currently NTP can synchronise a computer network to a few milliseconds.

The Precision Time Protocol (PTP) or IEEE 1588 has been developed for local systems requiring very high accuracy (to nano-second level). Currently this type of accuracy is beyond the capabilities of NTP.

PTP requires a master and slave relation ship in the network. A two-step process is required to synchronise devices using the IEEE 1588 (PTP). First, determination of which device is the master is required then the offsets and natural network delays are measured. PTP uses the Best Master Clock algorithm (BMC) to establish which clock on the network is the most accurate and it becomes the master whilst all other clocks become slaves and synchronise to this master.

IEEE (Institute of Electrical and Electronic Engineers) describes IEEE 1588 or (PTP) as designed to “fill a niche not well served by either of the two dominant protocols, NTP and GPS.  IEEE 1588 is designed for local systems requiring very high accuracies beyond those attainable using NTP. It is also designed for applications that cannot bear the cost of a GPS receiver at each node, or for which GPS signals are inaccessible.” (quoted in Wikipedia)

PTP can provide accuracy to a few nano-seconds but this type of accuracy is not required by most network users however, the target use of PTP appears to be mobile broadband and other mobile technologies as PTP supports time-of-day information, used by billing and service level agreement reporting functions in mobile networks.

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.

A Brief History of Computer Time

  |   By

Telling the time is something may of us learn when we are very small children. Knowing what time it is is an essential part of our society and we couldn’t function without it. Just imagine if we didn’t tell the time – when would you go to work? When would you leave and how would it be possible to meet other people or arrange any kind of function.

While telling the time is crucial to us, it is even more vital for computers who use time as the only point of reference and amongst computer networks time synchronisation is vital. Without recording the passing of time, computers couldn’t function as there would be no reference to order programs and functions.
But the way computers tell the time and date is far different to the way we record it. Rather than record a separate time, date and year – computer systems use a single number. This number is based on the number of seconds from a set point in time – known as the prime epoch.

When this epoch is, depends on the operating system or programming language in question. For instance, Unix systems have a prime epoch which starts at 1 January 1970 and the number of seconds from the epoch are counted in a 32 bit integer. Other operating systems, such as Windows, use a similar system but the epoch is different (Windows starts on 1 January 1601).

There are, however, disadvantages to this integer system. For instance as the Unix system is a 32-bit integer which started in 01 Jan 1970, by 19 January 2038 the integer will have exhausted every possible number and will have to return to zero’s. This could cause problems with systems reliant on Unix in a problem reminiscent of the Millennium bug.
There are other issues involving computer time also. Because of the global requirements of the Internet all computer time is now based on UTC (Coordinated Universal Time). However, UTC is altered on occasion by adding Leap Seconds to ensure the time matches the rotation of the Earth (the Earth’s rotation is never exact due to gravitational forces) so leap second handling has to be encompassed into a computer time systems.

Computer time is often associated with NTP (Network Time Protocol) which is used to synchronise computers often using a network time server.

Time Synchronisation on a Windows 7 Network

  |   By

Windows 7 is the latest instalment in the Microsoft operating system family. Following on from the much maligned Windows Vista, Windows 7 has a much warmer reception from critics and consumers.

Time synchronisation on Windows 7 is extremely straight forward as the protocol NTP (Network Time Protocol) is built-in to Windows 7 and the operating system automatically synchronises the computer’s clock by connecting to the Microsoft time service time.windows.com.

This is useful for many home users but the synchronisation across the Internet is not secure enough for a computer network for the following reason:

To connect to any Internet time source such as time.windows.com a post is required to be left open in the firewall. As with any open port in a network firewall this can be used as a point of entry by a malicious user or some malicious software.

The time synchronisation facility in Windows 7 can be turned off and is quite simple to do by opening the time and date dialogue box and uncheck the synchronization box.

However, time synchronisation on a network is vital so if the Internet time service is turned off it needs to be replaced with a secure and accurate source of time.

By far the best way of doing this is to use a time source that’s external to the network (and the firewall).

The simplest, safest and most accurate way of synchronizing a Windows 7 network is to use a dedicated NTP server. These devices use a time reference from either a radio frequency (usually distributed by national physics laboratories such as Britain’s NPL and America’s NIST) or from the GPS satellite network.

Because both these reference sources come from atomic clock sources they are incredibly accurate too and a Windows 7 network that consists of hundreds of machines can be synchronised to within a few milliseconds of the global timescale UTC (Coordinated Universal Time) by utilising just one NTP time server.

Common Time Synchronization Pitfalls Finding UTC

  |   By

Time synchronization can be a headache for many network administrators attempting to synchronize a network for the first time. There are many pitfalls that an unaware network administrator can fall into when attempting to get every machine on a network to synchronize to the same time.

The first problem many network administrators make is the selection of the time source. UTC (Coordinated Universal Time) is a global timescale and is used throughout the world as a basis for time synchronization as it doesn’t rely on time zones enabling the global community to base itself on one timescale.

UTC is also controlled by a constellation of atomic clocks which ensures its accuracy; however, it is regularly adjusted to ensure that it matches mean solar time by the addition of leap seconds which are added to counter the natural slowing of the Earth’s rotation.

UTC is readily available as a time reference from a number of sources. The Internet is a popular location to receive a UTC time source. However, an Internet time source is located through the network firewall and security issues can arise from having to leave the UDP port open to receive the time requests.

Internet time sources can also be inaccurate and as NTP’s own security system known as NTP authentication cannot work across the Internet further security issues can arise.

A far better solution for getting a source of UTC is to use either the Global Positioning System (GPS) or the long wave radio transmissions broadcast by several national physics laboratories such as NIST in the USA and the UK’s NPL.

Dedicated NTP time servers can receive these secure and authenticated signals and then distribute them amongst all devices on a network.

How Satellite Navigation Works

  |   By

Satellite navigational systems, or sat navs, have changed the way we navigate our way around the high roads. Gone are the days when travellers had to have a glove box full of maps and gone too is the need to stop and ask a local for directions.

Satellite navigation means that we an now go from point A to point B confident our systems will take us there and while sat nav systems are not fool proof (we must have all read the stories of people driving over cliffs and into rivers etc), it has certainly revolutionised our wayfinding.

Currently there is only one Global Navigational Satellite System (GNSS) the American run Global Positioning System (GPS). Although, a rival European System (Galileo) is set to go online sometime after 2012 and a both a Russian (GLONASS) and Chinese (COMPASS) system are being developed.

However, all these GNSS networks will operate using the same technology as employed by GPS, and in fact, current GPS systems should be able to utilise these future systems without much alteration.

The GPS system is basically a constellation of satellites (currently there are 27). These satellites each contain onboard an atomic clock (actually two are on most GPS satellites but for the purpose of this explanation only one need be considered). The signals that are transmitted from the GPS satellite contain several pieces of information sent as one integer:

* The time the message was sent

* The orbital position of the satellite (known as the ephemeris)

* The general system health and orbits of the other GPS satellites (known as the almanac)

A satellite navigation receiver, the kind found on the dashbopard of your car, receives this information and using the timing information works out the exact distance from the receiver to the satellite. By using three or more of these signals the exact position can be triangulated (four signals are actually required as height above sea level has to be worked out too).

Because the triangulation works out when the time signal was sent and how long it took to arrive at the receiver, the signals have to be incredibly accurate. Even a second of inaccuracy could see the navigational information out but thousands of kilometres as light, and therefore radio signals, can travel nearly 300,000 km each second.

Currently the GPS satellite network can provide navigational accuracy to within 5 metres which goes to show just how accurate atomic clocks can be.