Posts by: Stuart

Closed Circuit Cameras are Useless Without a Network Time Server

  |   By

For those of us that live in Britain, the CCTV camera (closed circuit TV) will be a familiar site on the high streets. Over four million cameras are in operation throughout the British Isles with every major city being monitored by state funded cameras which has cost the British taxpayer over £200 million ($400 million).

The reasons for use of such widespread surveillance have always been declared as to prevent and detect crime. However, critics argue that there is little evidence that CCTV cameras have done anything to dent the rising street crime on the UK’s streets and that the money could be better well spent.

One of the problems of CCTV is that many cities have both cameras controlled by local councils and privately controlled cameras. When it comes to crime detection the police often have to obtain as much evidence as possible which often means combining the different local authority controlled CCTV cameras with the privately controlled systems.

Many local authorities synchronise their CCTV cameras together, however, if the police have to obtain images from a neighbouring borough or from a private camera these may not be synchronised at all, of if so, synchronised to a different time completely.

This is where CCTV falls down in the fight against crime. Just imagine a suspected criminal is spotted on one CCTV camera committing a criminal act. The time on the camera could say 11.05pm but what if the police follow the suspects movements across a city and use footage from a privately owned camera or from other boroughs and while the CCTV camera that caught the suspect in the act may say 11.05, the other camera could spot the suspect minutes later only for the time to be even earlier. You could imagine a good defence lawyer taking full advantage of this.

To ensure their worth in the fight against crime, it is imperative that CCTV cameras are time synchronized using a network time server. These times servers ensure every device (in this case camera) is running the exact same time. But how do we ensure all cameras are synchronised to the same time source. Well fortunately, a global time source known as UTC (coordinated Universal Time) has been developed for this exact purpose. UTC is what governs computer networks, air traffic control and other time sensitive technologies.

A CCTV camera using a NTP server that receives a UTC time source from an atomic clock will not only be accurate but the time told on the devices will be provable in court and accurate to a thousandth of a second (millisecond).

2038 The Next Computer Time Bug

  |   By

Remember the turn of the millennium. Whilst many of us were counting down the seconds until midnight, there were network administrators across the globe with their fingers crossed hoping their computer systems will still be working after the new millennium kicked in.

The millennium bug was the result of early computer pioneers designing systems with only two digits to represent the time as computer memory was very scarce at the time. The problem didn’t arise because of the turn of the millennium, it arose because it was the end of the century and two digit year flicked around to 00 (which the machines assume was 1900)

Fortunately by the turn of the millennium most computers were updated and enough precautions were taken that meant that the Y2K bug, as it became known, didn’t cause the widespread havoc it was first feared.

However, the Y2K bug is not the only time related problem that computer systems can be expected to face, another problem with the way computers tell the time has been realised and many more machines will be affected in 2038.

The Unix Millennium Bug (or Y2K38) is similar to the original bug in that it is a problem connected with the way computers tell the time. The 2038 problem will occur because most machines use a 32 bit integer to calculate the time. This 32 bit number is set from the number of seconds from 1 January 1970, but because the number is limited to 32 digits by 2038 there will be no more digits left to deal with the advance of time.

To solve this problem, many systems and languages have switched to a 64-bit version, or supplied alternatives which are 64-bit and as the problem will not occur for nearly three decades there is plenty of time to ensure all computer systems can be protected.

However, these problems with timestamps are not the only time related errors that can occur on a computer network. One of the most common causes of computer network errors is lack of time synchronization. Failing to ensure each machine is running at an identical time using a NTP time server can result in data being lost, the network being vulnerable to attack from malicious users and can cause all sorts of errors such as emails arriving before they have been sent.

To ensure your computer network is adequately synchronized an external NTP time server is recommended.

Keeping Your Network Secure A Beginners Guide

  |   By

Network security is vitally important for most business systems. Whilst email viruses and denial-of-service attacks (DoS attack) may cause us headaches on our home systems, for businesses, these sorts of attacks can cripple a network for days – costing businesses hundreds of millions each year in lost revenue.

Keeping a network secure to prevent this type of malicious attack is usually of paramount importance for network administrators, and while most invest heavily in some forms of security measures there is often vulnerabilities inadvertently left exposed.

Firewalls are the best place to begin when you are trying to develop a secure network. A firewall can be implemented in either hardware or software, or most commonly a combination of both. Firewalls are used to prevent unauthorized users from accessing private networks connected to the Internet, especially local intranets. All traffic entering or leaving the intranet pass through the firewall, which examines each message and blocks those that do not meet the specified criteria.

Anti-virus software works in two ways. Firstly it acts similarly to a firewall by blocking anything that is identified in its database as possibly malicious (viruses, Trojans, spyware etc). Secondly Anti-virus software is used to detect, and remove existing malware on a network or workstation.

One of the most over-looked aspects of network security is time synchronization. Network administrators either fail to realise the importance of synchronization between all devices on a network. Failing to synchronize a network is often a common security issue. Not only can malicious users take advantage of computers running at different times but if a network is struck by an attack, identifying and rectifying the problem can be near impossible if every device is running on a different time.

Even when a network administrator is aware of the importance of time synchronization they often make a common security mistake when attempting to synchronize their network. Instead of investing in a dedicated time server that receives a secure source of UTC (Coordinated Universal Time) externally from their network using atomic clock sources like GPS, some network administrators opt to use a shortcut and use a source of Internet time.

There are two major security issues in using the Internet as a time server. Firstly, to allow the time code through the network a UDP port (123) has to be left open in the firewall. This can be taken advantage of by malicious users who can use this open port as an entrance to the network. Secondly, the inbuilt security measure used by the time protocol NTP, known as authentication, doesn’t work across the Internet which means that NTP has no guarantee the time signal is coming from where it is supposed to.

To ensure your network is secure isn’t it time you invested in an external dedicated NTP time server?

Configuring a Network to use a NTP Server Part two: Distributing the Time

  |   By

NTP (Network Time Protocol) is the protocol designed for time distribution amongst a network. NTP is hierarchical. It organises a network into strata, which are the distance from a clock source and the device.

A dedicated NTP server that receives the time from a UTC source such as GPS or the national time and frequency signals is regarded as a stratum 1 device. Any device that is connected to a NTP server becomes a stratum 2 device and devices farther down the chain become stratum 2, 3 and so on.

Stratum layers exist to prevent cyclical dependencies in the hierarchy. But the stratum level is not an indication of quality or reliability.

NTP checks the time on all devices on the network it then adjusts the time according to how much drift it discovers. Yet NTP goes further than just checking the time on a the reference clock, the NTP program exchanges time information by packets (blocks of data) but refuses to believe the time it is told until several exchanges have taken place, each passing a set of tests known asprotocol specifications. It often takes about five good samples until a NTP server is accepted as a timing source.

NTP uses timestamps to represent the current time the day. As time is linear, each timestamp is always greater than the previous one. NTP timestamps are in two formats but they relay the seconds from a set point in time (known as the prime epoch, set at 00:00 1 January 1900 for UTC) The NTP algorithm then uses this timestamp to determine the amount to advance or retreat the system or network clock.

NTP analyses the timestamp values including the frequency of errors and the stability. A NTP server will maintain an estimate of the quality of both its reference clocks and itself.

Configuring a Network to use a NTP Server Part one: Finding a Time Source

  |   By

Keeping your network synchronized with the correct time is crucial for modern networking. Because of the value of timestamps in communciating globally and across multi-networks, it is imperative that every machine is running a source of UTC (Coordinated Universal Time).

UTC was developed to allow the entire global community to use the same time no matter where they are on the globe as UTC doesn’t use time-zones so it allows accurate communication regardless of location.

However, finding a source of UTC is often where some network administrators fall down when they are attempting to synchronize a network. There are many areas that a source of UTC can be received from but very few that will provide both accurate and secure reference to the time.

The internet is full of purported sources of UTC, however, many of them offer no where near their acclaimed accuracy. Furthermore, resorting to the internet can lead to security vulnerabilities.

Internet time sources are external to the firewall and therefore a hole has to be left open which can be taken advantage of by malicious users. Furthermore, NTP, the protocol used to distribute and receive time sources, cannot instigate its authentication security measure across the internet so it is not possible to ensure the time is coming from where it is supposed to.

External sources of UTC time are far more secure. There are two methods used by most administrators. Long wave radio signals as broadcast by national physics laboratories and the GPS signal which is available everywhere on the globe.

The external sources of UTC ensure your NTP network is receiving not just an accurate source of UTC but also a secure one.

Dealing With Time computers synchronisation and timestamps

  |   By

Time is important for the smooth running of our day to day lives. Everything we do is either governed by or restrained because of time. Yet time is even more essential for computer systems as it is the only point of reference a computer has to distinguish between events and processes.

Everything a computer does is logged by the processor with what process was done and exactly when it was carried out. As computers can process hundreds if not thousands of transactions a second so the time stamp is vital for establishing the order of events.

Computers do not read and use the time in the same format that we do. A computer timestamp takes the form of a single digit that counts the number of seconds from a set point in time. In most systems this is known as the ‘prime epoch’ and is set from 00:00:00 UTC on January 1, 1970. So a timestamp for the date 23 June 2009 the timestamp would read: 1246277483 as this is the number of seconds from the prime epoch.

Computer timestamps are sent across networks and the internet, for instance every time an email is sent it is accompanied by a timestamp. When the email is replied to this too comes with a timestamp. Yet, when neither computer is synchronized the replied email could arrive back with an earlier code and this can cause untold confusion for a computer as according to its logs the email will have arrived back before the original was sent.

For this reason computer networks are synchronized to the global timescale UTC (Coordinated Universal Time). UTC is kept true by a constellation of atomic clocks which means that and computer network synchronised to a UTC source will be highly accurate.

Time synchronization on computers is dealt with by the protocol NTP (Network Time Protocol). Special dedicated NTP servers are available the receive a secure time code from either the GPS network or from specialist radio transmissions broadcast by national physical laboratories and then synchronize entire networks to the single time source.

The Sat Nav How it Works

  |   By

The ‘sat-nav’ has revolutionised the way we travel. From taxi drivers, couriers and the family car to airliners and tanks, satellite navigation devices are now fitted in almost every vehicle as it comes off the production line. While GPS systems certainly have their flaws, they have several uses too. Navigation is just one of the main uses of GPS but it is also employed as a source of time for GPS NTP time servers.

Being able to pin point locations from space has saved countless lives as well as making travelling to unfamiliar destinations trouble free. Satellite navigation relies on a constellation of satellites known as GNSS (Global Navigational Satellite Systems). Currently there is only one fully functioning GNSS in the world which is the Global Positioning System (GPS).

GPS is owned and run by the US military. The satellites broadcast two signals, one for the American military and one for civilian use. Originally, GPS was meant solely for the US armed forces but following an accidental shooting down of an airliner, the then President of the US Ronald Reagan opened the GPS system to the world’s population to prevent future tragedies.

GPS has a constellation of over 30 satellites. At any one time at least four of these satellites are overhead, which is the minimum number required for accurate navigation.

The GPS satellites each have onboard an atomic clock. Atomic clocks use the resonance of an atom (the vibration or frequency at particular energy states) which makes them highly accurate, not losing as much as a second in time over a million years. This incredible precision is what makes satellite navigation possible.

The satellites broadcast a signal from the onboard clock. This signal consists of the time and the position of the satellite. This signal is beamed back to earth where your car’s sat nav retrieves it. By working out how long this signal took to reach the car and triangulating four of these signals the computer in your GPS system will work out exactly where you are on the face of the world.  (Four signals are used because of elevation changes – on a ‘flat’ earth only three would be required).

GPS systems
can only work because of the highly precise accuracy of the atomic clocks. Because the signals are broadcast at the speed of light and accuracy of even a millisecond (a thousandth of a second) could alter the positioning calculations by 100 kilometres as light can travel nearly 100,00km each and every second –currently GPS systems are accurate to about five metres.

The atomic clocks onboard GPS systems are not just used for navigation either. Because atomic clocks are so accurate GPS makes a good source of time. NTP time servers use GPS signals to synchronize computers networks to. A NTP GPS server will receive the time signal from the GPS satellite then convert it to UTC (Coordinated Universal Time) and distribute it to all devices on a network providing highly accurate time synchronization.

Choosing a Time Source what to do and what not to do

  |   By

Time synchronization is crucial for many of the applications that we do across the internet these days; internet banking, online reservation and even online auctions all require network time synchronization.

Failing to ensure their servers are adequately synchronized would mean many of these applications would be impossible to achieve; seat reservations could be sold more than once, lower bids could win internet auctions and it would be possible to withdraw you life savings from the bank twice if they didn’t have adequate synchronization (good for you not for the bank).

Even computer networks that on the face of it do not rely on time sensitive transactions also need to be adequately synchronized as it could be near impossible to track down errors or protect the system from malicious attacks if the timestamps on differ on various machines on the network.

Many organisations opt to use internet time servers as a source of UTC (Coordinated Universal Time) – the atomic clock controlled global timescale. Although there are many security issues in doing so such as leaving a hole in the firewall to communicate with the time server and not having any authentication for the time synchronization protocol NTP (Network Time Protocol).

However, in saying that many network administrators still opt to use online time servers as a UTC source regardless of the security implications although there are other issues that administrators should be aware of. On the internet there are two types of time server – stratum 1 and stratum 2. Stratum 1 servers receive a time signal direct from an atomic clock while stratum 2 servers receive a time signal from a stratum 1 server. Most internet stratum 1 servers are closed – unavailable to most administrators and there can be some shortfall in accuracy in using a stratum 2 server.

For the most accurate, secure and precise timing information external NTP time servers are the best option as these are stratum 1 devices that can synchronize hundreds of machines on a network to the exact same UTC time.

Germans Enter Race to Build the Worlds Most Accurate Clock

  |   By

Following the success of Danish researchers working in conjunction with NIST (National Institute for Standards and Time), who unveiled the world’s most accurate atomic clock earlier this year; German scientist have entered the race to build the world’s most precise timepiece.

Researchers at the Physikalisch-Technische Bundesanstalt (PTB) in Germany are using use new methods of spectroscopy to investigate atomic and molecular systems and hope to develop a clock based around a single aluminium atom.

Most atomic clocks used for satellite navigation (GPS), as references for computer network NTP servers and air traffic control have traditionally been based on the atom caesium. However, the next generation of atomic clocks, such as the one unveiled by NIST which is claimed to be accurate to within a second every 300 million years, uses the atoms from other materials such as strontium which scientists claim can be potentially more accurate than caesium.

Researchers at PTB have opted to use single aluminium atoms and believe they are on the way to developing the most accurate clock ever and believe there is huge potential for such a device to help us understand some of the more complicated aspects of physics.

The current crop of atomic clocks allow technologies such as satellite navigation, air traffic control and network time synchronisation using NTP servers but it is believed the increases accuracy of the next generation of atomic clocks could be used to reveal some of the more enigmatic qualities of quantum science such as string theory.

Researchers claim the new clocks will provide such accuracy they will even be able to measure the minute differences in gravity to within each centimetre above sea-level.

Milestones in Chronology From Crystals to Atoms

  |   By

Telling the time may seem a simple affair these days with the number of devices that display the time to us and with the incredible accuracy of devices such as atomic clocks and network time servers it is quite easy to see how chronology has been taken for granted.

The nanosecond accuracy that powers technologies such as the GPS system, air traffic control and NTP server systems (Network Time Protocol) is a long way from the first time pieces that were invented and were powered by the movement of the sun across the heavens.

Sun dials were indeed the first real clocks but they obviously did have their downsides – such as not working at night or in cloudy weather, however, being able to tell the time fairly accurately was a complete innovation to civilisation and helped for more structured societies.

However, relying on celestial bodies to keep track of time as we have done for thousands of years, would not prove to be a reliable basis for measuring time as was discovered by the invention of the atomic clock.

Before atomic clocks, electronic clocks provided the highest level of accuracy. These were invented at the turn of the last century and while they were many times more reliable than mechanical clocks they still drifted and would lose a second or two every week.

Electronic clocks worked by using the oscillations (vibrations under energy) of crystals such as quartz, however, atomic clocks use the resonance of individual atoms such as caesium which is such a high number of vibrations per second it makes the incredibly accurate (modern atomic clocks do not drift by even a second every 100 million years).

Once this type of time telling accuracy was discovered it became apparent that our tradition of using the rotation of the earth as a means of telling time was not as accurate as these atomic clocks. Thanks to their accuracy it was soon discovered the Earth’s rotation was not precise and would slow and speed up (by minute amounts) each day. To compensate for this the world’s global timescale UTC (Coordinated Universal Time) has additional seconds added to it once or twice a year (Leap seconds).

Atomic clocks provide the basis of UTC which is used by thousands of NTP servers to synchronise computer networks to.