PTP as NTP reference clock
Starting from Cisco IOS-XE Release 17.9.1, Cisco Catalyst IR8340 Rugged Series Routers support NTP time synchronization with PTP clock. A Network Advantage license is required for this support.
PTP time serves as a stratum 0 source, while the Cisco IOS NTP server functions as a stratum 1 device. The server provides clock information to its NTP clients at stratum 2 and 3.
Configure PTP reference clock
The PTP as a reference clock to NTP is disabled by default. Cisco Catalyst IR8340 Rugged Series Routers support this feature with PTP Default, Power, and 802.AS profiles. Telecom profiles (8265.1 or 8275.1) as sources are not supported. NTP can use only one reference at a time either GNSS or PTP.
Before you begin
Configure the PTP and verify that it is in client mode.
Procedure
Step 1 |
Use the configure terminal command to enter into the configuration mode. Example:
|
Step 2 |
Use the ntp master command to configure the master clock as NTP. Example:
|
Step 3 |
Use the ntp refclock ptp command to configure PTP as a reference clock. Example:
You can use the no form of the command to disable this feature.
|
Step 4 |
(Optional) Use the show run command to monitor the PTP reference clock configuration. Example:
|
Step 5 |
(Optional) Use the show ptp clock running command to monitor the PTP mode status. Example:
|
Step 6 |
(Optional) Use the show ntp status command to monitor the NTP status. Example:
|
Step 7 |
(Optional) Use the show ptp lan clock command to monitor PTP and NTP synchronization status. Example:
|
Step 8 |
(Optional) Use the show clock detail command to monitor the clock information. Example:
|
Step 9 |
(Optional) Use the command to check the amount of time the platform takes to switch to the next available timing source after the initial timing source goes down. Example:
In this example, the NTP waits 8x256 seconds to switch over to the next source. |
PTP as NTP reference clock commands
These are the PTP commands to use when PTP acts as an NTP reference clock.
Command | Description |
---|---|
ntp logging |
Enables syslogs from NTP. |
debug ntp all |
Provides the complete debugging logs for NTP processes. |
debug platform software pd-ptp all |
Provides debugging logs on the switch relating to PTP as a reference clock. |
show ntp status |
Shows detailed NTP status, including whether NTP is using PTP as its reference clock. |
show ntp association detail |
Shows detailed information about NTP peering. |
show ptp clock running |
Verify PTP's secondary mode by checking its phase-aligned state and its lock to a primary clock. |