Most companies would be best served by implementing a Stratum 1 NTP server synced to GPS to ensure that devices on the network are properly synchronized, maintain accurate time behind a firewall, and comply with timekeeping regulations. The Need For Network Time Synchronization. By providing dual network functionality in a single unit, the GPS NTP server is a cost-effective method of time synchronization for larger organizations. The server mounts in a 19-inch rack, making it easy to install alongside your existing IT hardware. The server maintains network security by sitting behind your firewall. Time Synchronization. NTP is a TCP/IP protocol for synchronizing time over a network. Basically a client requests the current time from a server, and uses it to set its own clock.
Let’s synchronize your device with a Network Time Protocol server. The tutorial consists of 2 parts: The short version of Synchronize server time with NTP for the system administrators among us; The extended version of Synchronize server time with NTP for the hobbyists among us. This document describes how to configure the HMC to automatically synchronize its clock with a Network Time Protocol (NTP) time server. NTP is supported in HMC Version 6 and later. Graphical Interface The graphical option is only available on Version 7 HMCs. To enable clock synchronization with a NTP server, you should perform the following.
-->This article describes how to configure the Windows Time service and troubleshoot when the Windows Time service doesn't work correctly.
Original product version: Windows Server 2012 Standard, Windows Server 2012 Essentials
Original KB number: 816042
Original KB number: 816042
![Synchronize Time With Ntp Server Synchronize Time With Ntp Server](/uploads/1/1/7/7/117775779/356977381.jpg)
To configure an internal time server to synchronize with an external time source, use the following method:
To configure the PDC in the root of an Active Directory forest to synchronize with an external time source, follow these steps:
- Change the server type to NTP. To do this, follow these steps:
- Select Start > Run, type regedit, and then select OK.
- Locate and then select the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParametersType
- In the pane on the right, right-click Type, and then select Modify.
- In Edit Value, type NTP in the Value data box, and then select OK.
- Set
AnnounceFlags
to 5. To do this, follow these steps:- Locate and then select the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigAnnounceFlags
- In the pane on the right, right-click AnnounceFlags, and then select Modify.
- In Edit DWORD Value, type 5 in the Value data box, and then select OK.
Note- If an authoritative time server that is configured to use an
AnnounceFlag
value of 0x5 does not synchronize with an upstream time server, a client server may not correctly synchronize with the authoritative time server when the time synchronization between the authoritative time server and the upstream time server resumes. Therefore, if you have a poor network connection or other concerns that may cause time synchronization failure of the authoritative server to an upstream server, set theAnnounceFlag
value to 0xA instead of to 0x5. - If an authoritative time server that is configured to use an
AnnounceFlag
value of 0x5 and to synchronize with an upstream time server at a fixed interval that is specified inSpecialPollInterval
, a client server may not correctly synchronize with the authoritative time server after the authoritative time server restarts. Therefore, if you configure your authoritative time server to synchronize with an upstream NTP server at a fixed interval that is specified inSpecialPollInterval
, set theAnnounceFlag
value to 0xA instead of 0x5.
- Enable NTPServer. To do this, follow these steps:
- Locate and then select the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeTimeProvidersNtpServer
- In the pane on the right, right-click Enabled, and then select Modify.
- In Edit DWORD Value, type 1 in the Value data box, and then select OK.
- Specify the time sources. To do this, follow these steps:
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeParameters
- In the pane on the right, right-click NtpServer, and then select Modify.
- In Edit Value, type Peers in the Value data box, and then select OK.NotePeers is a placeholder for a space-delimited list of peers from which your computer obtains time stamps. Each DNS name that is listed must be unique. You must append ,0x1 to the end of each DNS name. If you do not append ,0x1 to the end of each DNS name, the changes that you make in step 5 will not take effect.
- Configure the time correction settings. To do this, follow these steps:
- Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigMaxPosPhaseCorrection
- In the pane on the right, right-click MaxPosPhaseCorrection, and then select Modify.
- In Edit DWORD Value, click to select Decimal in the Base box.
- In Edit DWORD Value, type TimeInSeconds in the Value data box, and then select OK.NoteTimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend on the poll interval, network condition, and external time source.
The default value of MaxPosPhaseCorrection is 48 hours in Windows Server 2008 R2 or later. - Locate and then click the following registry subkey:
HKEY_LOCAL_MACHINESYSTEMCurrentControlSetServicesW32TimeConfigMaxNegPhaseCorrection
- In the pane on the right, right-click MaxNegPhaseCorrection, and then select Modify.
- In Edit DWORD Value, click to select Decimal in the Base box.
- In Edit DWORD Value, type TimeInSeconds in the Value data box, and then select OK.NoteTimeInSeconds is a placeholder for a reasonable value, such as 1 hour (3600) or 30 minutes (1800). The value that you select will depend on the poll interval, network condition, and external time source.
The default value of MaxNegPhaseCorrection is 48 hours in Windows Server 2008 R2 or later.
- Close Registry Editor.
- At the command prompt, type the following command to restart the Windows Time service, and then press Enter:
Synchronize Time With Ntp Server Configuration
Time Servers available on the internet
For a list of available time servers, see A list of the Simple Network Time Protocol (SNTP) time servers that are available on the Internet.
Troubleshooting
For the Windows Time service to function correctly, the networking infrastructure must function correctly. The most common problems that affect the Windows Time service include the following:
- There is a problem with TCP/IP connectivity, such as a dead gateway.
- The Name Resolution service is not working correctly.
- The network is experiencing high volume delays, especially when synchronization occurs over high-latency wide area network (WAN) links.
- The Windows Time service is trying to synchronize with inaccurate time sources.
![With With](/uploads/1/1/7/7/117775779/572030440.png)
We recommend that you use the Netdiag.exe utility to troubleshoot network-related issues. Netdiag.exe is part of the Windows Server 2003 Support Tools package. See Tools Help for a complete list of command-line parameters that you can use with Netdiag.exe. If your problem is still not solved, you can turn on the Windows Time service debug log. Because the debug log can contain very detailed information, we recommend that you contact Microsoft Customer Support Services when you turn on the Windows Time service debug log.
Note
In special cases, charges that are ordinarily incurred for support calls may be canceled if a Microsoft Support Professional determines that a specific update will resolve your problem. The usual support costs will apply to additional support questions and issues that do not qualify for the specific update in question.
More information
Windows Server includes W32Time, the Time Service tool that is required by the Kerberos authentication protocol. The Windows Time service makes sure that all computers in an organization that are running the Microsoft Windows 2000 Server operating system or later versions use a common time.
To guarantee appropriate common time usage, the Windows Time service uses a hierarchical relationship that controls authority, and the Windows Time service does not allow for loops. By default, Windows-based computers use the following hierarchy:
- All client desktop computers nominate the authenticating domain controller as their in-bound time partner.
- All member servers follow the same process that client desktop computers follow.
- All domain controllers in a domain nominate the primary domain controller (PDC) operations master as their in-bound time partner.
- All PDC operations masters follow the hierarchy of domains in the selection of their in-bound time partner.
In this hierarchy, the PDC operations master at the root of the forest becomes authoritative for the organization. We highly recommend that you configure the authoritative time server to obtain the time from a hardware source. When you configure the authoritative time server to sync with an Internet time source, there is no authentication. We also recommend that you reduce your time correction settings for your servers and stand-alone clients. These recommendations provide more accuracy and security to your domain.
Synchronize Time With Ntp Server Linux
References
For more information about Windows Time service, see:
Sync Time With Ntp Server Centos 7
For more information about the Windows Time service, see Windows Time Service (W32Time).