Posts by: Richard N Williams

Time Server Synchronisation The basics

  |   By

NTP (Network Time Protocol) is an internet based protocol designed to synchronise the clocks on a computer network. It is the main time synchronisation software used in computer networks and is also packaged with most operating systems.

An NTP server is a dedicated device that receives a single time source then distributes it amongst all devices on a network. The protocol NTP monitors the drift of the internal clocks on a network and corrects for them.

An NTP server can receive a time source from either a national physical laboratory such as the UK’s National Physical Laboratory (NPL), however, these time signals are broadcast via long wave radio and have finite range.

GPS NTP servers are designed to receive the time source generated by the atomic clocks onboard GPS satellites (Global Positioning System). GPS is available anywhere on the planet as a time source as long as there is a clear view of the sky.

Without correct synchronisation all sorts of potential problems can occur such as leaving a computer system vulnerable to fraud, malicious users and hackers. An unsynchronised computer network may also lose data and be difficult to audit.

A global timescale called UTC (Coordinated Universal Time) has been developed to ensure the entire world uses the same timescale. The NTP server utilise UTC ensuring the computer network is telling the same time as every other computer network.

Five Reasons Why Your Business Needs an NTP Server (Part 2)

  |   By

3. Security Breaches:

When networks are not synchronised log files are not recorded properly or in the right order which means that hackers and malicious users can breach security unnoticed. Many security software programs are also reliant on timestamps with anti-virus updates failing to happen or scheduled tasks falling behind. If your network controls time-sensitive transactions then this can even result in fraud if there is a lack of synchronisation.

4. Legal Vulnerability:

Time is not just used by computers to order events it is used in the legal world too. Contracts, receipts, proof-of-purchase are all reliant on time. If a network is not synchronised then it becomes difficult to prove when transactions actually took place and it will prove difficult to audit them. Furthermore, when it comes to serious matters such as fraud or other criminality a dedicated NTP server or other network time server device synchronised to UTC is legally auditable, its time can not be argued with!

5. Company Credibility:

Succumbing to any of these potential hazards can not just have devastating effects on your own business but also that of your clients and suppliers too. And the business grapevine being what it is any potential failing on your part will soon become common knowledge amongst your competitors, customers and suppliers and be seen as bad business practices.

Running a synchronised network adhering to UTC is not difficult. Many network administrators think that synchronisation just means an occasional time request to an online NTP time source; however, doing so will leave a system just as vulnerable to fraud and malicious users as having no synchronisation. This is because to use an Internet time source would require leaving a permanent port open in the firewall.

The solution is to use a dedicated NTP time server that receives a UTC time source from either a radio transmission (broadcast by national physics laboratories) or the GPS network (Global Positioning System). These are secure and can keep a network running to within a few milliseconds of UTC.

Five Reasons Why Your Business Needs an NTP Server (Part 1)

  |   By

Most businesses these days rely on a computer network. Computers in most organisations conduct thousands of tasks a second, from controlling production lines; ordering stock; preparing financial records and communicating with computers on other networks – often from the other side of the world.

Computers use just one thing to keep track of all these tasks: time. Timestamps are the computers only reference for when an event or task occurs in relation to other events. They receive time in the form of timestamps and they measure time in periods of milliseconds (thousandth of a second) as they may conduct hundreds of processes each second.

A global timescale known as UTC (Coordinated Universal Time) has been developed to ensure computers from different organisations all over the world can synchronise together. So what happens if the clocks on computers don’t coincide with each other or with UTC?

The consequences of running a network with computers that are not synchronised can be disastrous. Here are five reasons why all businesses need adequate network synchronisation using a NTP server (Network Time Protocol) or other network time server device.

1. Tasks fail to happen:

When computers are running at different times, events on different machines can fail to happen as often a PC may assume an event on another machines has already happened if the time for that event has passed according to its own clock. And what is worse, when one task fails it has a knock-on effect with other tasks failing to happen and in turn causing further tasks to fail.

2. Loss of Data:

When tasks fail to happen it soon gets noticed but when networks are not synchronised data that is meant to be kept can quite easily be lost and it can go unnoticed for quite a while. Data can be lost because storage as and retrieval is also reliant on time stamps.

The Atomic Clock and the Network Time Server

  |   By

The atomic clock is the culmination of mankind’s obsession of telling accurate time. Before the atomic clock and the nanosecond accuracy they, employ time scales were based on the celestial bodies.

However, thanks to the development of the atomic clock it has now been realised that even the Earth in its rotation is not as accurate a measure of time as the atomic clock as it loses or gains a fraction of a second each day.

Because of the need to have a timescale based somewhat on the Earth’s rotation (astronomy and farming being two reasons) a timescale that is kept by atomic clocks but adjusted for any slowing (or acceleration) in the Earth’s spin. This timescale is known as UTC (Coordinated Universal Time) as employed across the globe ensuring commerce and trade utilise the same time.

Computer networks use network time servers to synchronise to UTC time. Many people refer to these time server devices as atomic clocks but that is inaccurate. Atomic clocks are extremely expensive and highly sensitive pieces of equipment and are only usually to be found in universities or national physics laboratories.

Fortunately national physics laboratories like NIST (National Institute for Standards and Time – USA) and NPL (National Physical Laboratory – UK) broadcast the time signal from their atomic clocks. Alternatively the GPS network is another good source of accurate time as each GPS satellite has onboard its own atomic clock.

The network time server receives the time from an atomic clock and distributes it using a protocol such as NTP (Network Time Protocol) ensuring the computer network is synchronised to the same time.

Because network time servers are controlled by atomic clocks they can keep incredibly accurate time; not losing a second in hundreds if not thousands of years. This ensures that the computer network is both secure and unsusceptible to timing errors as all machines will have the exact same time.

A History of Atomic Clocks

  |   By

The atomic clock is the culmination of mankind’s ability to keep time that has spanned several millennia. Humans have always been preoccupied with keeping track of time ever since early man noticed the regularity of the celestial bodies.

The sun, moon, stars and planets soon became the basis for out timescales with periods of time such as years, months, days and hours based solely on the regulation of the Earth’s rotation.

This worked for thousands of years as a reliable guide to how much time has past but over the last few centuries humans have strode to find even more reliable methods for keeping track of time. Whilst the Sun and celestial bodies were an affective way sundials didn’t work on cloudy days and as the days and night s altered during the year only noon (when the sun is at its highest) could be reasonably relied upon.

The first foray into an accurate timepiece that was not reliant on celestial bodies and was not a simple time (such as a candle taper or water clock) but actually told time over a prolonged period was the mechanical clock.

These first devices dating as far back as the twelfth century were crude mechanisms using a verge and foliot escapement (a gear and lever) to control the ticks of the clock. After a few centuries and a myriad of designs the mechanical clock took its next step forward with the pendulum. The pendulum gave clocks their first true accuracy as it controlled with more precision the ticks of the clock.

However, it wasn’t until the twentieth century when clocks entered the electronic age did they become truly accurate. The digital and electronic clock had its ticks controlled by using the oscillation of a quartz crystal (its changed energy state when a current is based through) which proved so accurate that rarely a second a week was lost.

The development of atomic clocks in the 1950’s used the oscillation of a single atom which generates over 9 billion ticks a second and can maintain precise time for millions of years without losing a second. These clocks now form the basis of our timescales with the entire world synchronised to them using NTP servers, ensuring wholly accurate and reliable time.

The NTP Server and Understanding Timescales

  |   By

There are several timescale used throughout the world. Most NTP servers and other network time servers use UTC as a base source however, there are others:

When we are asked the time it is very unlikely we would respond with ‘for which timescale’ yet there are several timescales used all over the globe and each is based on different methods of keeping track of the time.
GMT

Greenwich Mean Time (GMT) is the local time on the Greenwich meridian based on the hypothetical mean sun. As the Earth’s orbit is elliptical and its axis is tilted, the actual position of the sun against the background of stars appears a little ahead or behind the expected position. The accumulated timing error varies through the year in a smoothly periodic manner by up to 14 minutes slow in February to 16 minutes fast in November. The use of a hypothetical mean sun removes this effect. Before 1925 astronomers and navigators measured GMT from noon to noon, starting the day 12 hours later than in civil usage which was also commonly referred to as GMT. To avoid confusion astronomers agreed in 1925 to change the reference point from noon to midnight, and a few years later adopted the term Universal Time (UT) for the “new” GMT. GMT remains the legal basis of the civil time for the UK.

UT

Universal Time (UT) is mean solar time on the Greenwich meridian with 0 h UT at mean midnight, and since 1925 has replaced GMT for scientific purposes. By the mid-1950s astronomers had much evidence of fluctuations in the Earth’s rotation and decided to divide UT into three versions. Time derived directly from observations is called UT0, applying corrections for movements of the Earth’s axis, or polar motion, gives UT1, and removing periodic seasonal variations generates UT2. The differences between UT0 and UT1 are of the order of thousandths of a second. Today, only UT1 is still widely used as it provides a measure of the rotational orientation of the Earth in space..


The world time standard
(UTC):

Although TAI provides a continuous, uniform, and precise time scale for scientific reference purposes, it is not convenient for everyday use because it is not in step with the Earth’s rate of rotation. A time scale that corresponds to the alternation of day and night is much more useful, and since 1972, all broadcast time services distribute time scales based on Coordinated Universal Time (UTC). UTC is an atomic time scale that is kept in agreement with Universal Time. Leap seconds are occasionally

Information courtesy of the National Physical Laboratory UK.

NTP Server Configuration for Windows and Linux

  |   By

Network Time Protocol has been developed to keep computers synchronized. All computers are prone to drift and accurate timing is essential for many time critical applications.

A version of NTP is installed on most versions of Windows (although a stripped down version called SNTP –Simplified NTP- is in older versions) and Linux but is free to download from NTP.org.

When synchronising a a network it is preferable to use a dedicated NTP server that receives a timing source from an atomic clock either via specialist radio transmissions or the GPS network. However, many Internet time references are available, some more reliable than others, although it must be noted Internet based time sources can’t be authenticated by NTP, leaving your computer vulnerable to threats.

NTP is hierarchical and arranged into stratum. Stratum 0 is timing reference, while stratum 1 is a server connected to a stratum 0 timing source and a stratum 2 is a computer (or device) attached to a stratum 1 server.

The Basic configuration of NTP is done using the /etc/ntp.conf file you have to edit it and place the IP address of stratum 1 and stratum 2 servers. Here is an example of a basic ntp.conf file:

server xxx.yyy.zzz.aaa prefer (time server address such as time.windows.com)

server 123.123.1.0

server 122.123.1.0 stratum 3

Driftfile /etc/ntp/drift

The most basic ntp.conf file will list 2 servers, one that it wishes to synchronise too and an IP address for itself. It is good housekeeping to have more than one server for reference in case one goes down.

A server with the tag ‘prefer’ is used for a trusted source ensuring NTP will always use that server when possible. The IP address will be used in case of problems when NTP will synchonise with itself is. The drift file is where NTP builds a record of the system clock’s drift rate and automatically adjusts for it.

NTP will adjust your system time but only slowly. NTP will await at least ten packets of information before trusting the time source. To test NTP simply change your system clock by half an hour at the end of the day and the time in the morning should be correct.

Atomic Clock Synchronization using WWVB

  |   By

Accurate time using Atomic Clocks is available across North America using the WWVB Atomic Clock time signal transmitted from Fort Collins, Colorado; it provides the ability to synchronize the time on computers and other electrical equipment.

The North American WWVB signal is operated by NIST – the National Institute of Standards and Technology. WWVB has high transmitter power (50,000 watts), a very efficient antenna and an extremely low frequency (60,000 Hz). For comparison, a typical AM radio station broadcasts at a frequency of 1,000,000 Hz. The combination of high power and low frequency gives the radio waves from WWVB a lot of bounce, and this single station can therefore cover the entire continental United States plus much of Canada and Central America.

The time codes are sent from WWVB using one of the simplest systems possible, and at a very low data rate of one bit per second. The 60,000 Hz signal is always transmitted, but every second it is significantly reduced in power for a period of 0.2, 0.5 or 0.8 seconds: • 0.2 seconds of reduced power means a binary zero • 0.5 seconds of reduced power is a binary one. • 0.8 seconds of reduced power is a separator. The time code is sent in BCD (Binary Coded Decimal) and indicates minutes, hours, day of the year and year, along with information about daylight savings time and leap years.

The time is transmitted using 53 bits and 7 separators, and therefore takes 60 seconds to transmit. A clock or watch can contain an extremely small and relatively simple antenna and receiver to decode the information in the signal and set the clock’s time accurately. All that you have to do is set the time zone, and the atomic clock will display the correct time.

Dedicated NTP time servers that are tuned to receive the WWVB time signal are available. These devices connect o a computer network like any other server only these receive the timing signal and distribute it to other machines on the network using NTP (Network Time Protocol).

Atomic Clock Synchronisation using MSF

  |   By

Accurate time using Atomic Clocks is available across Great Britain and parts of northern Europe using the MSF Atomic Clock time signal transmitted from Cumbria, UK; it provides the ability to synchronize the time on computers and other electrical equipment.

The UK MSF signal is operated by NPL – the National Physical Laboratory. MSF has high transmitter power (50,000 watts), a very efficient antenna and an extremely low frequency (60,000 Hz). For comparison, a typical AM radio station broadcasts at a frequency of 1,000,000 Hz. The combination of high power and low frequency gives the radio waves from MSF a lot of bounce, and this single station can therefore cover most of Britain and some of continental Europe.

The time codes are sent from MSF using one of the simplest systems possible, and at a very low data rate of one bit per second. The 60,000 Hz signal is always transmitted, but every second it is significantly reduced in power for a period of 0.2, 0.5 or 0.8 seconds: • 0.2 seconds of reduced power means a binary zero • 0.5 seconds of reduced power is a binary one. • 0.8 seconds of reduced power is a separator. The time code is sent in BCD (Binary Coded Decimal) and indicates minutes, hours, day of the year and year, along with information about daylight savings time and leap years.

The time is transmitted using 53 bits and 7 separators, and therefore takes 60 seconds to transmit. A clock or watch can contain an extremely small and relatively simple antenna and receiver to decode the information in the signal and set the clock’s time accurately. All that you have to do is set the time zone, and the atomic clock will display the correct time.

Dedicated time servers that are tuned to receive the MSF time signal are available. These devices connect o a computer network like any other server only these receive the timing signal and distribute it to other machines on the network using NTP (Network Time Protocol).