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.

Setting up Windows XP as an NTP Server

  |   By

A network time server or NTP server (Network Time Protocol), is a central computer or server on a network that controls the time and synchronises all machines on that network to it.

Windows XP can be set up to operate as an NTP server to synchronise the rest of the computers and devices on a network. Setting up a Windows XP machine to act as a NTP server involves editing the registry, however, editing an operating system registry can lead to potential problems and should only be conducted by somebody with experience of registry editing.

To configure Windows XP as an NTP server the first thing to do is to open the registry editor in Windows. This is done by clicking the Start button and selecting “Run” from the menu. Enter “regedit” in the run menu and press return. This should open the Windows registry editor.

Select the: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NtpServer\ folder in the left hand pane. This folder holds the values for the NTP server.

Right-click the “Enabled” key in the right window pane and select “Properties”. This should open a dialog box where you can alter the value of the registry key. Enter “1” in the window, setting the value to “True” which turns the XP computer into a time server.

Close the registry and open the DOS command prompt by clicking the Windows Start button, selecting “Run”. Then type “cmd” in the text box and press return.

Type “Net stop w32time” into the command prompt and press “Enter.” Now type “net start w32time” this will restart the time server for Windows XP.

However, the XP machine, which is now set as a NTP server, will merely distribute the time it currently holds. If this time is inaccurate then it will inaccurate time that is distributed amongst the network.

To ensure an accurate and secure source of time is used then a dedicated NTP time server that receives the time from an atomic clock source should be used.

Network Time Protocol Time Synchronisation Made Easy

  |   By

One of the most important aspects of networking is keeping all devices synchronised to the correct time. Incorrect network time and lack of synchronisation can play havoc with system processes and can lead to untold errors and problems debugging.

And failing to ensure devices are continually checked to prevent drift can also lead to a synchronised network slowly becoming unsynchronised and leading to the kinds of problems aforementioned.

However, ensuring a network not only has the correct time but that that time is not drifting is achieved using the time protocol NTP.

Network Time Protocol (NTP) is not the only time synchronisation protocol but it is by far the most widely used. It is an open source protocol but is continually updated by a large community of Internet time keepers.

NTP is based around an algorithm that can work out the correct and most accurate time from a range of sources. NTP allows a single time source to be used by a network of hundreds and thousands of machines and it can keep each one accurate to that time source to within a few milliseconds.

The easiest way of synchronising a network with NTP is to use a NTP time server, also known as a network time server.

NTP servers use an external source of time, either from the GPS network (Global Positioning System), or from broadcasts from national physics laboratories such as NIST in the US or NPL in the UK.

These time signals are generated by atomic clocks which are many times more accurate than the clocks on computers and servers. NTP will distribute this atomic clock time to all devices on a network it will then keep checking each device to ensure there is no drift and correcting the device if there is.

Europes GPS System is starting to Take Shape

  |   By

Following years of wrangling and uncertainty, the European equivalent to the GPS (Global Positioning System), is finally beginning to take shape. The European Galileo system, which will complement the current USA system, is a step closer to completion.

Galileo, which will be the first operational global navigational satellite system (GNSS) outside the United States will provide positioning information for satellite navigation machines and timing information for GPS NTP servers (Network Time Protocol).

The system, being designed and manufactured by the European Space Agency (ESA) and the European Union (EU) and when it is operational it is expected to improve the availability and accuracy of timing and navigation signals transmitted from space.

They system has been dogged in political wrangling and uncertainty since its inception nearly a decade ago. Objections from the US that they will lose the ability top switch off GPS in times of military need; and economic restraints across Europe, meant that the project was nearly shelved several times.

However, the first four satellites are being finalised in a laboratory in southern England. These In-Orbit Validation (IOV) satellites will form a mini-constellation in the sky and prove the Galileo concept by transmitting the first signals so the European system can become a reality.

The rest of the satellite network should follow shortly after and. Galileo should eventually comprise over 30 of them which means that users of satellite navigation systems of GPS NTP time servers should get quicker fixes be able to locate their positions with an error of one metre compared with the current GPS-only error of five.

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.

GPS Atomic Clock Time Signals

  |   By

It seems that nearly every car dashboard has a GPS receiver perched on the top. They have become incredibly popular as a navigational tool with many people relying on them solely to work their way around the road networks.

The Global Positioning System has been around for quite a few years now but was originally designed and built for US military applications but was extended for civilian use following an airline disaster.

Whilst it is incredibly useful and convenient a tool, the GPS systems is relatively simple in its operation. The navigation works using a constellation of 30 or so satellites (there are quite a few more that are orbiting but no longer operational).

The signals sent from the satellites contain three pieces of information that are received by the sat nav devices in our cars.

That information includes:

* 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)

The way the navigational information is worked out is by using the information from four satellites. The time the signals left the each of the satellites is recorded by the sat nav receiver and the distance from each satellite is then worked out using this information. By using the information from four satellites it possible to work out exactly where the satellite receiver is, this process is known as triangulation.

However, working out exactly where you are in the world does rely on complete accuracy in the time signals that are broadcast by the satellites. As signals such as the GPS travel at the speed of light (approximately 300,000 km a second through a vacuum) even a one second inaccuracy could see positioning information out by 300 kilometres! Currently the GPS system is accurate to five metres which demonstrates just how accurate the timing information broadcast by the satellites is.

This high level of accuracy is possible because each GPS satellite contains atomic clocks. Atomic clocks are incredibly accurate relying on the unwavering oscillations of atoms to keep time – in fact each GPS satellite will run for over a million years before it will drift by as much as a second (compared to the average electronic watch which will drift by a second in a week or two)

Because of this high level of accuracy the atomic clocks on board GPS satellites can be used as a source of accurate time for the synchronization of computer networks and other devices that require synchronization.

Receiving this time signal requires the use of a NTP GPS server that will synchronize with the satellite and distribute the time to all devices on a network.

Why Bother Using a NTP Time Server?

  |   By

Keeping computers synchronized on a network is vitally important, especially if the network in question deals with time sensitive transactions. And failing to keep a network synchronized can cause havoc leading to errors, vulnerabilities and endless problems with debugging.

However with the amount of online time servers available from reputable places such as NIST or Microsoft it is often queried as to why computer networks need to be synchronised to an external NTP time server.

These dedicated NTP devices are often seen as an unnecessary expense and many network administrators simply forgo them and connect to an online time server, after-all, it does the same job doesn’t it?

Actually there are two major reasons why NTP time servers are not only important but essential for most computer networks and to overlook them could be costly in many ways.

Let me explain. The first reason why an external NTP server is important is accuracy. It’s not that internet time sources are generally inaccurate (although many are) but there is the question of distance the time reference has to travel. Furthermore, in times when the connection is lost -whether it’s because of a local connection fault or the time server itself goes down – the network will start to drift until the connection is restored.

Secondly and perhaps most important is the security issues involved in using an Internet time source. The main problem is that if your connection to a time server through the then a open port (UDP 123 fro NTP requests) has to be left open, And as with any open port that can used as a gateway for malicious software and users.

The reason dedicated NTP time servers are essential for computer networks is that they work completely independently and external to the network’s firewall. Instead of accessing a time source across the Internet they use either GPS or radio transmissions to get the time. And in doing so they can provide accurate time all the time without fear of losing a connection or allowing a nasty Trojan through the firewall.

When Time is Money Accuracy Matters

  |   By

We live in a fast paced world where time matters. In some industries even a second can make all the difference. Millions of dollars are exchanged hands in the stock exchange each second and share prices can rise or plummet.

Getting the right price at the right time is essential for trading in such a fast paced money market and perfect network time synchronization is the essential to be able to make that happen.

Ensuring every machine that deals in stocks, shares and bonds has the correct time is vital if people are going to trade in the derivatives market but when traders are sat in different parts of the world how can this possibly be achieved.

Fortunately Coordinated Universal Time (UTC), a global timescale developed after the development of atomic clocks, allows the same time to govern every trader, regardless of where they are in the world.

As UTC is based on atomic clock time and is kept accurate by a constellation of these clocks, it is high reliable and accurate. And industries like the stock exchange use UTC to govern the time on their computer networks.

Computer network time synchronization is achieved in computer networks by using the NTP server (Network Time Protocol). NTP servers receive a source of UTC from an atomic clock reference. This is either from the GPS network or through specialist radio transmissions (it is available through the internet too but is not as reliable).

Once received, the NTP server distributes the highly accurate time throughout the network, continually checking each device and workstation to ensure the clock is as precise as possible.

These network time servers can keep entire networks of hundreds and thousands of machines in perfect synchronization – to within a few milliseconds of UTC!