Enabling SMPTE-2059-2 on an Interface

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.

Context

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:

Procedure

  • Perform the following steps on an OC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) Run ptp delay-mechanism { delay | pdelay }

      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.

    4. Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] [ dscp dscp ] [ vlan vlan-id [ priority priority-value ] ]

      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.

    5. Run ptp enable

      PTP is enabled on the interface.

    6. (Optional) Run ptp asymmetry-correction { positive | negative } correction-value

      The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.

    7. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for SMPTE-2059-2 packets.

    8. Run commit

      The configuration is committed.

  • Perform the following steps on a BC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. (Optional) Run ptp delay-mechanism { delay | pdelay }

      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.

    4. Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] [ dscp dscp ] [ vlan vlan-id [ priority priority-value ] ]

      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.

    5. Run ptp enable

      PTP is enabled on the interface.

    6. (Optional) Run ptp announce-drop enable

      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.

    7. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for SMPTE-2059-2 packets.

    8. (Optional) Run ptp announce-drop enable

      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.

    9. Run commit

      The configuration is committed.

  • Perform the following steps on a TC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp asymmetry-correction { positive | negative } correction-value

      The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.

    4. Run ptp enable

      PTP is enabled on the interface.

    5. Run ptp clock-step { one-step | two-step }

      The timestamping mode is set for the SMPTE-2059-2 packets to be sent by the interface.

    6. Run commit

      The configuration is committed.

  • Perform the following steps on a TCOC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] [ dscp dscp ] [ vlan vlan-id [ priority priority-value ] ]

      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.

    4. Run ptp enable

      PTP is enabled on the interface.

    5. Run ptp tcoc-clock-id clock-source-id port-num port-num

      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.

      .

    6. Run ptp asymmetry-correction { positive | negative } correction-value

      The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.

    7. Run ptp clock-step { one-step | two-step }

      The timestamping mode is set for the SMPTE-2059-2 packets to be sent by the interface.

    8. Run commit

      The configuration is committed.

  • Perform the following steps on a TCandBC:
    1. Run system-view

      The system view is displayed.

    2. Run interface interface-type interface-number

      The interface view is displayed.

    3. Run ptp port-type { bc | tc }

      The clock type of the interface is set to TC or BC.

    4. In the TC interface view, run: ptp domain domain-value

      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.

    5. (Optional) Run ptp delay-mechanism { delay | pdelay }

      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.

    6. Run ptp udp-egress source-ip source-ip [ destination-ip destination-ip ] [ dscp dscp ] [ vlan vlan-id [ priority priority-value ] ]

      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.

    7. Run ptp enable

      PTP is enabled on the interface.

    8. (Optional) Run ptp announce-drop enable

      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.

    9. (Optional) Run ptp asymmetry-correction { positive | negative } correction-value

      The asymmetric correction time is set for the SMPTE-2059-2 packets to be sent by the interface.

    10. (Optional) Run ptp clock-step { one-step | two-step }

      The timestamping mode is specified for SMPTE-2059-2 packets.

    11. Run commit

      The configuration is committed.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >