Overview
A Network Time Protocol (NTP) server is a device that receives its time from an authoritative time source and distributes this time across the network to synchronize devices.
-
It receives time from authoritative sources such as radio clocks, atomic clocks, or GPS time sources.
-
It distributes synchronized time to network devices with high efficiency (as little as one packet per minute for millisecond accuracy).
-
It uses a stratum system to describe the distance between a device and the authoritative time source.
Stratum and Synchronization Behavior
NTP uses a stratum system to indicate how far a device is from an authoritative time source, and compares time from multiple devices before synchronizing.
-
A stratum 1 time server is directly attached to an authoritative time source (such as a radio or atomic clock or a GPS time source).
-
A stratum 2 NTP server receives its time through NTP from a stratum 1 time server.
Before synchronizing, NTP compares the time reported by several network devices and does not synchronize with one that is significantly different, even if it is a stratum 1 server.
-
If the network is isolated from the Internet, Cisco NX-OS allows you to configure the time as though it were synchronized through NTP, even though it was not.
The time kept on a device is a critical resource, so it is strongly recommended to use the security features of NTP to avoid accidental or malicious setting of incorrect time. Two mechanisms are available: an access list-based restriction scheme and an encrypted authentication mechanism.
![]() Note |
You can create NTP peer relationships to designate the time-serving hosts that you want your network device to consider synchronizing with and to keep accurate time if a server failure occurs. |
Associations
An NTP association can be one of the following:
-
A peer association—The device can either synchronize to another device or allow another device to synchronize to it.
-
A server association—The device synchronizes to a server.
You need to configure only one end of an association. The other device can automatically establish the association.
NTP as Time Server
The Cisco NX-OS device can use NTP to distribute time. Other devices can configure it as a time server. You can also configure the device to act as an authoritative NTP server, enabling it to distribute time even when it is not synchronized to an outside time source.
Clock Manager
Clocks are resources that need to be shared across different processes. Multiple time synchronization protocols, such as NTP, might be running in the system.
The clock manager allows you to specify the protocol to control the various clocks in the system. Once you specify the protocol, the system clock starts updating. For information on configuring the clock manager, see the Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide.
Virtualization Support
NTP recognizes virtual routing and forwarding (VRF) instances. NTP uses the default VRF if you do not configure a specific VRF for the NTP server and NTP peer. See the Cisco Nexus 9000 Series NX-OS Unicast Routing Configuration Guide for more information about VRFs.
High Availability
Stateless restarts are supported for NTP. After a reboot or a supervisor switchover, the running configuration is applied. For more information on high availability, see the Cisco Nexus 9000 Series NX-OS High Availability and Redundancy Guide.
You can configure NTP peers to provide redundancy in case an NTP server fails.
Default Settings
The following table lists the default settings for NTP parameters.
| Parameters | Default |
|---|---|
| NTP | Enabled |
| NTP authentication | Disabled |
| NTP access | Enabled |
| NTP logging | Disabled |

Feedback