ptp device-type

Function

The ptp device-type command sets a clock mode for a PTP device.

The undo ptp device-type command deletes the configured clock mode for a PTP device.

No PTP clock mode is set by default.

Format

ptp device-type { t-bc | t-tc }

undo ptp device-type [ t-bc | t-tc ]

ptp device-type { oc | bc | e2etc | p2ptc | tcandbc }

ptp device-type { e2etcoc | p2ptcoc }

Parameters

Parameter Description Value
t-bc

Configures the device type as telecom boundary clock.

-

t-tc

Configures the device type as telecom transparent clock.

-

oc

Configures a 1588v2 device as an ordinary clock (OC). Only a single interface on an OC is in a 1588v2 domain. The interface synchronizes time signals with its upstream clock and advertises the time to downstream clocks.

-

bc

Configures a 1588v2 device as a boundary clock (BC). A BC has multiple 1588v2 clock interfaces. One interface of a BC synchronizes time signals with its upstream clock, and other interfaces distribute the time to downstream clocks.

-

e2etc

Configures a 1588v2 device as an end-to-end transparent clock (E2ETC). A TC only transparently transmits 1588v2 packets, but does not participate in 1588v2 clock synchronization.

-

p2ptc

Configures a 1588v2 device as a peer-to-peer transparent clock (P2PTC).

-

tcandbc

Configures a 1588v2 device as a transparent clock and boundary clock (TCandBC).

-

e2etcoc

Configures a 1588v2 device as an end-to-end transparent clock and an ordinary clock (E2ETCOC). A TCOC is a specific TC, which is an ordinary TC in terms of time synchronization but has an additional function of frequency recovery implemented by exchanging 1588v2 packets an upstream clock.

-

p2ptcoc

Configures a 1588v2 device as a peer-to-peer transparent clock and an ordinary clock (P2PTCOC).

-

Views

System view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

A device must be configured with a clock type based on network planning before PTP is used for clock synchronization.

When the 1588v2 protocol is used, the following device types are supported: oc, bc, e2etc, e2etcoc, p2ptc, p2ptcoc, and tcandbc. After the protocol is switched to G.8275.1 or CU106, the supported device types are telecom boundary clock (t-bc) and telecom transparent clock (t-tc). In both protocols, the device type can be set to none, indicating that no clock device type is configured.

Precautions

Each 1588v2 device can be configured with only one of the preceding device types. After 1588v2 is enabled on a device, you can use either of the following methods to change the device type:

To change the device type, disable the following configurations:

  • Run the undo ptp enable command to disable 1588v2 in the interface view.
  • Run the undo ptp device-type command to disable the original clock mode.
  • On an OC, run the undo ptp slaveonly command to disable the slave-only mode.
  • On an OC, BC, or TCandBC, run the undo ptp delay-mechanism command to disable the delay measurement mechanism on the 1588v2 interface.

To simplify the configuration, the device supports fast switching of the device type. That is, you can directly run this command to change the device type. The operation of changing the device type does not affect the 1588v2 function and parameters configured on the interface.

  • BC, OC, and TCandBC can be switched to each other. E2ETC, P2PTC, E2ETCOC, and P2PTCOC can be switched to each other.
  • To avoid configuration confusion, the port configuration before switching must meet the requirements of the new device type. That is, you must disable the configurations that are not supported by the new device type.

Example

# Configure a 1588v2 device as an OC.
<HUAWEI> system-view
[~HUAWEI] ptp enable
[~HUAWEI] ptp device-type oc
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >