AddThis Social Bookmark Button

EasyPublish™

Author: David Evans

Configuring Windows as a NTP Server

The Windows operating systems from Windows 2000 onwards has an in-built time synchronisation service – ‘Windows Time'. The Windows Time service facilitates a Windows network to provide synchronisation of all machines within a domain. This article describes how to configure the Windows 2000 and Windows 2003 time service as a NTP server. It shows how to manipulate registry entries to configure the Windows Time Service.

Before modifying registry entries it is good practice to backup the Windows registry. This allows the registry to be restored in the event of problems.

Windows 2000 Configuration

Windows 2000 has an integrated time synchronisation service, installed by default, which can synchronise to a NTP Server. Indeed, by manipulating registry settings, the service can act as both an SNTP client and SNTP server to synchronise other network clients.

The 'Windows Time' service should be present in the systems service list. The application executable is 'w32time.exe'. The parameter list for w32time can be found in the registry at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters

Windows 2000 can operate as an NTP client and synchronise to an NTP server by setting parameter 'NTP Server' to the IP address of a NTP Server.

By default, the Windows 2000 machine will synchronise to the specified NTP server every 8 hours (or 3 times a day), which may not be enough to maintain accurate synchronisation. The period can be reduced by setting the 'Period' parameter to how many times a day synchronisation is required. Setting the period to 48 will activate synchronisation with the NTP server once every half hour.
Windows 2000 can also be configured to act as an NTP server by setting the 'Local NTP' parameter to '1'.

After editing any of the registry entries for the windows time service, the service must be restarted for the settings to take effect. The services can be started or stopped from the service control applet in 'administrative tools'. Alternatively the service can be controlled via the DOS net command thus:

net start w32time
net stop w32time

Windows 2003 Configuration

Windows 2003 has expanded on the original Windows 2000 time service by providing a true NTP implementation. The time service, installed by default, can synchronise to a NTP Server. Indeed, by manipulating registry settings for the service it can act as both an NTP server and client to synchronise other network clients in the domain.

The 'Windows Time' service should be present in the systems service list. The application executable is 'w32time.exe'. The parameter list for w32time can be found in the registry at:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time

To configure a Windows 2003 machine to synchronise to an external NTP server, edit the following registry entries:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\Type
Change the server type to NTP by specifying ‘NTP' in the ‘Type' registry entry.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags
Set the ‘Announce Flags' registry entry to 5, to indicate a reliable time source.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPClient\SpecialPollInterval
The ‘Special Poll Interval' registry entry defines the period in seconds that the Windows 2003 machine should poll the NTP server. A recommended value is 900 seconds, which equates to every 15 minutes.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\TimeProviders\NTPServer\Enabled
Changing the ‘Enabled' flag to the value 1 enables the NTP Server.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer
The ‘NTP Server' parameter is used to provide a list of IP addresses or DNS names, separated by a space, of NTP servers that the Windows 2003 machine can synchronise to.

NTP Troubleshooting

A number of problems can be encountered when configuring the Windows Time Service. NTP operates using the UDP protocol over TCP/IP. Therefore the TCP/IP network infrastructure must be operational for NTP to be effective. Synchronisation issues may arise when NTP attempts to synchronise to an inaccurate time reference or if network delays are excessive.

Synchronising Network Infrastructures

As well as synchronising Windows servers and workstations, NTP can also be used to synchronise network hardware, such as routers, switches and hubs. Any network hardware that can synchronise to a NTP server can be pointed to the Windows server to achieve time synchronisation. In this way the whole network and accompanying infrastructure can be synchronised.


Dave Evans develops NTP Server synchronisation systems to ensure accurate time on PC’s and computer networks. Dave has been involved in the development of dedicated NTP server systems, NTP synchronised digital wall clock systems and atomic clock time synchronisation products. Click here to find out more about SNTP and NTP Server Systems.
 

AddThis Social Bookmark Button AddThis Feed Button

EasyPublish™ this article - publishers click here

More articles by David Evans


 

More computing articles:

  • The Advantage Of Using Your Phone Line For Satellite Internet Access (Stephen Long)
    While living in the country does not give us the ability to enjoy DSL or cable Internet, satellite Internet access can deliver the high speed that you are looking for. But, be careful, not all satellite Internet solutions are the same. Learn what best suits your needs.

  • Network Camera Video Surveillance for Towns and Cities (Wes Fernley)
    Expansion of towns and cities is always a good thing, but it also brings with it potential problems such as increased crime. One way to help defend against increases in crime in your city or town is to employ the use of a network camera video surveillance system. This can prove to be a vital part of your municipality's security infrastructure.

  • Video Analytics Solutions for Commercial Enterprises (Wes Fernley)
    Office complexes, manufacturers, warehouses, service firms, corporate enterprises and more can all benefit from video analytics. Intelligent video software, when used in conjunction with video surveillance, can provide a variety of functions to improve the efficiency of basic operations, increase safety and security and much more.


 

 
We Automatically Distribute Articles
To Thousands Of Publishers And Web Sites:

Submit Article

All content is viewed and used by you at your own risk and we do not warrant the accuracy or reliability of any of the information. The views expressed are those of the individual contributing authors and not necessarily those of this web site, or its owner, Takanomi Limited.  

 
     
Copyright © 2008 Takanomi Ltd. Company no. 5629683. All rights reserved. | Privacy | Legal | Contact Information |