Posts by: Stuart

Receiving the Time with Time Servers and the MSF transmitter

  |   By

MSF is the name given to the dedicated time broadcast provided by the National Physical Laboratory in the UK, It is an accurate and reliable source of UK civil time, based on the time scale UTC (Coordinated Universal Time).

MSF is used throughout the UK and indeed other parts of Europe to receive a UTC time source which can be used by radio clocks and to synchronise computer networks by using a NTP time server.

It is available 24 hours a day across the whole of the UK although in some areas the signal can be weaker and it is susceptible to interference and local topography. The signal operates on a frequency of 60 kHz and carries a time and date code which relays the following information in binary format: Year, month, day of month,  day of week,  hour,  minute,  British Summer Time (in effect or imminent) and DUT1 (the difference between UTC and UT1 which is based on the Earths rotation)

The MSF signal is transmitted from Anthorn Radio Station in Cumbria but was only recently moved there after residing in Rugby, Warwickshire since it was started in the 1960’s. The signal’s carrier frequency is at 60 kHz, controlled by caesium atomic clocks at the radio station.

Caesium atomic clocks are the most reliably accurate atomic clocks anywhere, neither losing nor gaining a second in several millions of years.

To receive the MSF signal simple radio clocks can be used to display the exact UTC time or alternatively MSF referenced time servers can receive the long-wave transmission and distribute the timing information around computer networks using NTP (Network Time Protocol).

The only real alternative to the MSF signal in the UK is to use the onboard caesium clocks of the GPS network (Global Positioning System) that relay accurate time information that can be used as a UTC time source.

Global Positioning System (GPS) Operation and Implementation

  |   By

The GPS (Global Positioning System) network has been around for over thirty years but it was only since 1983 when a Korean airliner was accidentally shot down did the US military, who own and control the system, agree to open it up for civilian use in the hope of preventing such tragedies.

The GPS system is currently the world’s only global navigational satellite system (GNSS) although Europe and China are currently developing their own (Galileo and GLONASS). GPS, or to give it its official name Navstar GPS is based on a constellation of between 24 and 32 Medium Earth Orbit satellites.

These satellites transmit messages via precise microwave signals. These messages contain the time the message was sent, a precise orbit for the satellite sending the message and the general system health and rough orbits of all GPS satellites.

To work out a position a GPS receiver is required. This receives the signal from 4 (or more) satellites. Because the satellites broadcast their position and the time the message was sent, the GPS receiver can use the timing signal and distance information to workout by process of triangulation exactly where it is in the world.

GPS and other GNSS systems can only pinpoint the location so accurately because each relays timing information from an onboard atomic clock. Atomic clocks are so accurate that they either lose or gain a second in millions of years. It is only this accuracy that makes GPS positioning possible because as the signal transmitted by the satellites travel at the speed of light (up to 180,000 miles an second) a one second inaccuracy could make place positioning thousands of miles in the wrong place.

Because of this onboard atomic clock and high level of timing accuracy, a GPS satellite can be used as a source for UTC (Coordinated Universal Time). UTC is a global timescale based on the time told by atomic clocks and used across the globe to allow computer networks to all synchronize to the same time.

Computer networks use NTP time servers (network time protocol) to synchronise their systems. An  NTP server connected to a GPS antenna can receive a UTC time signal from the satellite and then distribute amongst the network.

Utilizing the GPs for timing information is one of the most accurate and secure methods of receiving a UTC source with accuracies of a few milliseconds quite feasibly possible.

Accuracy in Timekeeping Atomic clocks and Time Servers

  |   By

The development of atomic clocks throughout the twentieth century has been fundamental to many of the technologies we employ everyday. Without atomic clocks many of the innovations of the twentieth century would simply not exist.

Satellite communication, global positioning, computer networks and even the Internet would not be able to function in the way we are used to if it wasn’t for atomic clocks and their ultra-precision in timekeeping.

Atomic clocks are incredibly accurate chronometers not losing a second in millions of years. In comparison digital clocks may lose a second every week and the most intricately accurate mechanical clocks lose even more time.

The reason for an atomic clock’s incredible precision is that it is based on an oscillation of a single atom. An oscillation is merely a vibration at a particular energy level in the case of most atomic clocks they are based on the resonance of the caesium atom which oscillates at exactly 9,192,631,770 times every second.

Many technologies now rely on atomic clocks for their unbridled accuracy. The global positing system is a prime example. GPS satellites all have onboard an atomic clock and it is this timing information that is used to work out positioning. Because GPS satellites communicate using radio waves and they travel at the speed of light (180,000 miles a second in a vacuum), tiny inaccuracies in the time could make positioning inaccurate by hundreds of miles.

Another application that requires the use of atomic clocks is in computer networks. When computers talk to each other across the globe it is imperative that they all use the same timing source. If they didn’t, time sensitive transactions such as Internet shopping, online reservations, the stock exchange and even sending an email would be near to impossible. Emails would arrive before they were sent and the same item on an Internet shopping site could be sold to more than one person.

For this reason a global timescale called UTC (Coordinated Universal Time) based on the time told by atomic clocks has been developed. UTC is delivered to computer networks via times servers. Most time servers utilise NTP (network time protocol) to distribute and synchronize the networks.

NTP time servers can receive UTC time from a number of sources most commonly the onboard atomic clocks of the GPS system can be used as a UTC source by a time server connected to a GPS antenna.

Another method that is quite commonly used by NTP time servers is to utilise the long wave radio transmission broadcast by several countries’ national physics laboratories.  Whilst not available everywhere and quite susceptible to local topography the broadcasts do provide a secure method of receiving timing source.

If neither of these methods is available then a UTC timing source can be received from the Internet although accuracy and security are not guaranteed.

Introduction to Network Time Protocol

  |   By

Network Time Protocol (NTP) is one of the Internet’s oldest protocols still in use. Developed by Dr David Mills from the University of Delaware, it has been in constant use and continually updated since 1985. NTP is a protocol designed to synchronize the clocks on computers and networks across the Internet or Local or Wider Area Networks (LANs/WANS).

In a modern global economy time synchronisation is essential for carrying out time sensitive transactions such as booking an airline ticket to bidding on an Internet auction site. If clocks were not synchronised to the same time you may find your airline seat sold after you had bought it and Ebay’s administrators would not be able to discover whose bid was the latest.

NTP is a multi-tiered system, each tier being called a stratum. Servers at each tier communicate with each other (peer) and provide time to lower strata. Servers at the top stratum, stratum 1 connect to an atomic clock either over the Internet or by a radio or GPS receiver while a stratum 2 server will connect to a stratum 1.

NTP uses an algorithm (Marzullo’s algorithm) to synchronise time on a network using time scales like UTC (Coordinated Universal Time or Temps Universel Coordonné) and can support such features as leap seconds – added to compensate for the slowing of the Earth’s rotation.

NTP (version 4 being the latest) can maintain time over the public Internet to within 10 milliseconds (1/100th of a second) and can perform even better over LANs with accuracies of 200 microseconds (1/5000th of a second) under ideal conditions.

NTP time servers work within the TCP/IP suite and rely on UDP (User Datagram Protocol). A less complex form of NTP called Simple Network Time Protocol (SNTP) that does not require the storing of information about previous communications, needed by NTP, is used in some devices and applications where high accuracy timing is not as important and is also included as standard in Windows software (although more recent versions of Microsoft Windows have the full NTP installed and the source code is free and readily available on the Internet).

The NTP program (known as a daemon on UNIX and a service on Windows) runs in the background and refuses to believe the time it is told until several exchanges have taken place, each passing a set of tests. If the replies from a server satisfy these ‘protocol specifications’, the server is accepted. It usually takes about five good samples (five minutes) until a NTP server is accepted as a source for synchronisation.

Synchronisation with NTP is relatively simple, it synchronises time with reference to a reliable clock source such as an atomic clock, although these are extremely expensive and are generally only to be found in large-scale physics laboratories, however NTP can use either the Global Positioning system (GPS) network or specialist radio transmission to receive UTC time from these clocks.

A simplified version of NTP called Simple Network Time Protocol (SNTP) exists that does not require the storing of information about previous communications as required by NTP. It is used in some devices and applications where high accuracy timing is not as important and is installed on older versions of Microsoft Windows. Windows since 2000 has included the Windows Time Service (w32time.exe) which uses SNTP to synchronise the computer clock. NTP is also available on UNIX and LINUX (download via NTP.org).

Network Time Server Keeping Control of Time

  |   By

Computer networking can seem an intimidating undertaking. However, a computer network is really just a number of machines connected together for ease of data transfer and security. They can be very small such as two computers in a home network to really large networks consisting of hundreds and thousands of machines.

When a computer or device is connected to a network then there is only one point of reference that the computers can use to establish the order of events and applications and that is time.

Time, in the form of time stamps are used by most applications and this is when problems in computer networks can occur.

Computers tell the time by using a software clock. This is based on a system clock that keeps time when the computer is off. However, computers internal clocks are wholly inaccurate. They tend to drift up to several seconds a week. On a network when there is more than one machine, this can cause severe problems if the machines are drifting at different rates.

Emails may arrive before they have been sent and the whole network can be vulnerable to security threats and even fraud!

A network time server is used to synchronize a computer network to a single time source. This time source can be anything from an internal clock on a computer to the time told by a wrist watch. However, to ensure perfect accuracy and to keep a network synchronized to the rest of the world then a UTC time source should be used.

UTC (Coordinated Universal Time) is a global timescale based on the time told by atomic clocks. A network time server can receive a UTC time source from across the Internet (although unsecured), via the GPS (global positioning system) network or via specialist radio transmission from national physics laboratories.

Most network time servers use NTP (Network Time Protocol) to distribute the timing reference throughout the network. NTP is not the only timing protocol designed to do this although it is, however, by far the most widely used.