This section describes how to enable SMPTE-2059-2 on an interface. SMPTE-2059-2 needs to be enabled in both the system view and interface view. After being globally enabled in the system view, SMPTE-2059-2 also needs to be enabled on an interface. The parameters to be set in the interface view include the link delay measurement mechanism, asymmetric delay correction time, and timestamping mode.
During SMPTE-2059-2 clock synchronization, an Announce packet is sent to determine the master-slave hierarchy, where the upstream node that advertises the synchronization time is the master device and the downstream node that receives the synchronization time is called the slave device. The master device sends Sync packets to the slave device to transmit performance parameters of time signals. In addition, the delay measurement mechanism can be implemented to ensure the accuracy of time signals.
Perform the following operations on each SMPTE-2059-2 device:
The system view is displayed.
The interface view is displayed.
A delay measurement mechanism is configured.
Two SMPTE-2059-2 interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.
The interface is configured to send SMPTE-2059-2 packets in UDP encapsulation mode, and the source IP address of UDP-encapsulated SMPTE-2059-2 packets is configured.
Run this command before PTP is enabled on the interface. Otherwise, the IP address of the management interface is automatically used as the source IP address of SMPTE-2059-2 packets. To disable the PTP function from the interface, run the undo ptp udp-egress source-ip command.
PTP is enabled on the interface.
The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.
The timestamping mode is specified for SMPTE-2059-2 packets.
The configuration is committed.
The system view is displayed.
The interface view is displayed.
A delay measurement mechanism is configured.
Two SMPTE-2059-2 interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.
The interface is configured to send SMPTE-2059-2 packets in UDP encapsulation mode, and the source IP address of UDP-encapsulated SMPTE-2059-2 packets is configured.
Run this command before PTP is enabled on the interface. Otherwise, the IP address of the management interface is automatically used as the source IP address of SMPTE-2059-2 packets. To disable the PTP function from the interface, run the undo ptp udp-egress source-ip command.
PTP is enabled on the interface.
The interface is configured to discard Announce packets.
SMPTE-2059-2 devices exchange Announce packets to establish the synchronization hierarchy. If an interface is configured to discard Announce packets, the device cannot receive clock synchronization information from other devices through this interface. This command is typically run on a user-side SMPTE-2059-2 interface.
The timestamping mode is specified for SMPTE-2059-2 packets.
The interface is configured to discard Announce packets.
SMPTE-2059-2 devices exchange Announce packets to establish the synchronization hierarchy. If an interface is configured to discard Announce packets, the device cannot receive clock synchronization information from other devices through this interface. This command is typically run on a user-side SMPTE-2059-2 interface.
The configuration is committed.
The system view is displayed.
The interface view is displayed.
The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.
PTP is enabled on the interface.
The timestamping mode is set for the SMPTE-2059-2 packets to be sent by the interface.
The configuration is committed.
The system view is displayed.
The interface view is displayed.
The interface is configured to send SMPTE-2059-2 packets in UDP encapsulation mode, and the source IP address of UDP-encapsulated SMPTE-2059-2 packets is configured.
Run this command before PTP is enabled on the interface. Otherwise, the IP address of the management interface is automatically used as the source IP address of SMPTE-2059-2 packets. To disable the PTP function from the interface, run the undo ptp udp-egress source-ip command.
PTP is enabled on the interface.
The clock source traced by a specified interface on the TCOC is configured.
Unlike a TC, a TCOC has an OC interface to implement frequency synchronization. The TCOC also has TC interfaces to transparently transmit SMPTE-2059-2 packets.
This command specifies a clock source that the OC interface on the TCOC tracks, namely, the master clock interface. The OC interface can then receive SMPTE-2059-2 packets to synchronize frequencies with the master clock interface. If this command is not run, each TCOC interface functions as a TC interface, which only transparently transmits SMPTE-2059-2 packets instead of restoring frequency.
.
The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.
The timestamping mode is set for the SMPTE-2059-2 packets to be sent by the interface.
The configuration is committed.
The system view is displayed.
The interface view is displayed.
The clock type of the interface is set to TC or BC.
The clock domain where the interface resides is specified.
A BC interface uses the same clock domain ID as that configured in the system view and therefore does not need to be specifically configured in the interface view. The clock domain ID of a TC interface needs to be specified in the interface view.
A delay measurement mechanism is configured.
Two SMPTE-2059-2 interfaces on both ends of a link must use the same delay measurement mechanism. A delay measurement mechanism inconsistency causes a communication failure.
The interface is configured to send SMPTE-2059-2 packets in UDP encapsulation mode, and the source IP address of UDP-encapsulated SMPTE-2059-2 packets is configured.
Run this command before PTP is enabled on the interface. Otherwise, the IP address of the management interface is automatically used as the source IP address of SMPTE-2059-2 packets. To disable the PTP function from the interface, run the undo ptp udp-egress source-ip command.
PTP is enabled on the interface.
The interface is configured to discard Announce packets.
SMPTE-2059-2 devices exchange Announce packets to establish the synchronization hierarchy. If an interface is configured to discard Announce packets, the device cannot receive clock synchronization information from other devices through this interface. This command is typically run on a user-side SMPTE-2059-2 interface.
The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.
The timestamping mode is specified for SMPTE-2059-2 packets.
The configuration is committed.