ptp tcoc-clock-id

Function

The ptp tcoc-clock-id command specifies the ID of a clock source that an OC interface on a TCOC tracks.

The undo ptp tcoc-clock-id command cancels the configured ID of a clock source that an OC interface on a TCOC tracks.

By default, the clock source ID is not configured.

Format

ptp tcoc-clock-id clock-source-id port-num port-num

undo ptp tcoc-clock-id

Parameters

Parameter Description Value
clock-source-id

Specifies a clock source ID of the peer clock source (static clock source).

The value is in the format of HHHHHHHH. Each H is a 2-bit hexadecimal number, such as E0 and FC. All 0s are not supported.

port-num port-num

Specifies the number of the master interface.

The value is an integer ranging from 0 to 65535.

To view the port number of the peer master clock, run the display ptp interface interface-type interface-number command. The port number is displayed in the Parent portnumber field.

Views

100GE interface view, 10G LAN interface view, 25GE interface view, 400GE interface view, 40GE interface view, 50GE interface view, FlexE-100G interface view, FlexE-400G interface view, FlexE-50G interface view, GE optical interface view, GE electrical interface view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
clksync write

Usage Guidelines

Usage Scenario

Unlike a TC, a TCOC has an OC interface to implement frequency synchronization. The TCOC also has TC interfaces to transparently transmit 1588v2 packets. To specify a clock source that the OC interface on the TCOC tracks, run the ptp tcoc-clock-id command. The OC interface can then receive 1588v2 packets to synchronize frequencies with the master clock interface.

This command applies only to 1588v2 and SMPTE-2059-2.

Prerequisites

The TCOC clock type has been configured using the ptp device-type { e2etcoc | p2ptcoc } command.

1588v2 has been enabled on an interface using the ptp enable command.

Precautions

The default clock ID of the peer clock source is generated by padding fffe in the hexadecimal system MAC address. You can also run the ptp virtual-clock-id clock-id-value command on the peer device to configure a virtual clock ID to replace the default clock ID. To view the clock ID, run the display ptp all command.

If the ptp tcoc-clock-id command is not run on the TCOC interface, the default clock type of the TCOC interface is TC. The TCOC interface only transparently transmits packets and does not perform frequency synchronization.

The GPS 3.0 module does not support this command.

Example

# Set the peer clock source ID to 122323FFFE122110 for GE 0/1/0 on a TCOC and the decimal interface number of remote interface GE 0/1/1 to 7937.
<HUAWEI> system-view
[~HUAWEI] ptp enable
[~HUAWEI] ptp device-type e2etcoc
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp tcoc-clock-id 122323FFFE122110 port-num 7937
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >