< Home

Configuring PTP Globally

Context

In certain scenarios, a device may need to transmit multi-channel clock signals without needing to synchronize with multiple clock sources. You can configure the device as a transparent clock (TC), which then transmits clock signals and measures the link delay without needing to synchronize with the clock signals.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ptp enable

    PTP is enabled globally.

    By default, PTP is not enabled globally on a device.

  3. Run ptp device-type { e2etc | e2etcoc | p2ptc | p2ptcoc } slot slot-id

    The PTP device type is configured as TC.

    By default, no device type is configured for a PTP device.
    End to end transparent clock and ordinary clock (E2ETCOC) is a transparent ordinary clock that supports only the end-to-end delay mechanism. Peer to peer transparent clock and ordinary clock (P2PTCOC) is a transparent ordinary clock that supports only the peer-to-peer delay mechanism. TCOC is a special TC that functions as an ordinary TC in terms of time synchronization but can recover the frequency based on PTP messages to synchronize with the upstream device.

  4. (Optional) Run ptp domain domain-value

    The PTP domain to which the device belongs is configured.

    By default, a PTP device belongs to domain 0.
    Devices that perform clock synchronization through PTP messages must belong to the same PTP domain.

  5. (Optional) Run ptp virtual-clock-id clock-id-value slot slot-id

    A virtual clock ID is set for the device.

    By default, no virtual clock ID is configured for a PTP device, and the system generates a clock ID based on the MAC address of the device. You can also configure a virtual clock ID to identify the device.

    When running the ptp virtual-clock-id command, ensure that the configured virtual clock ID is unique in the entire PTP domain.

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