The following NTP operating modes are supported by devices:
Operating Mode |
Usage Scenario |
Configuration |
---|---|---|
Within a synchronization subnet, the unicast client/server mode operates on a higher stratum. In this mode, the server IP address must be obtained in advance. |
Only the client requires configuration. The server needs to be configured with only an NTP primary clock. The client can be synchronized to the server. The server cannot be synchronized to the client. |
|
Within a synchronization subnet, symmetric peer mode operates on a lower stratum. In this mode, symmetric active and passive peers can be synchronized with each other. |
Only the symmetric active peer requires configuration. In symmetric peer mode, symmetric peers of higher strata are synchronized to symmetric peers of lower strata. |
|
In broadcast mode, clock synchronization can be implemented when:
|
Relevant commands need to be run on both the server and client. The client can be synchronized to the server. The server cannot be synchronized to the client. |
|
Multicast mode applies to high-speed networks with multiple clients but do not require high precision. In a typical scenario, one or more clock servers on the network periodically send multicast packets to clients, and the clients synchronize time based on the multicast packets. |
Relevant commands need to be run on both the server and client. The client can be synchronized to the server. The server cannot be synchronized to the client. |
|
Manycast mode applies to scenarios where servers are scattered throughout a network. Once discovered, the client can synchronize with the closest manycast server. Manycast mode applies to scenarios where servers are unstable and network clients do not require reconfiguration if server characteristics or configuration change. |
Relevant commands need to be run on both the server and client. Note that the client can be synchronized to the server. The server cannot be synchronized to the client. |
Switches can function as both an NTP server and NTP client.
If a source address from which NTP packets are sent is specified on the server, the address must be identical to the server IP address of the client. If these addresses differ, the client will be unable to process the NTP packets sent by the server. This will result in clock synchronization failure.
In the unicast client/server mode, only the client and the NTP primary clock on the server require configuration.
Once the server clock is synchronized, the server can function as a clock server. Other devices can then be synchronized to that server. When the clock stratum of the server is greater than or equal to the clock stratum of the client, the client will not synchronize to the server.
To configure multiple servers, run the ntp-service unicast-server command repeatedly. The optimal clock is that which the client selects as the preferred clock.
Configure the unicast client.
Only the IP address of the symmetric passive peer on the symmetric active peer requires specification. Both symmetric peers use this IP address when exchanging NTP packets.
Either the symmetric active or symmetric passive peer must be in the synchronized state. They cannot be synchronized without one in synchronized state.
To configure multiple symmetric passive peers, run the ntp-service unicast-peer command repeatedly. When multiple symmetric passive peers are configured for a symmetric active peer, the synchronization direction follows the rule that symmetric peers of higher strata are synchronized with symmetric peers of lower strata.
Configure the symmetric active peer.
Broadcast mode can be used only on LANs.
The broadcast client can be synchronized with the broadcast server only after the clock of the broadcast server is synchronized.
Configure the NTP broadcast server.
Configure the NTP broadcast client.
The multicast client can synchronize with the multicast server only after the clock of the multicast server is synchronized. A maximum of 128 multicast servers can be configured on the device.
A maximum of 1024 multicast clients can be configured, and a maximum of 128 multicast clients can operate simultaneously.
Configure the NTP multicast server.
Configure the NTP multicast client.
Configure the NTP manycast server.
Configure the NTP manycast client.