< Home

ptp tcoc-clock-id

Function

The ptp tcoc-clock-id command, you can specify a clock source for an OC interface on the TCOC device to synchronize.

The undo ptp tcoc-clock-id command cancels the previous setting.

By default, no clock source is specified for a TCOC device to synchronize.

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 the ID of the peer clock source (ID of the static clock source).

The format is HHHHHHHH. H is a two-digit hexadecimal number, such as E0 and FC.

port-num port-num

Indicates the number of the interface where the peer master clock is located. The value is converted from the x/y/z format of the interface number. x stands for the slot number, y stands for the sub-card number, and z stands for the interface number.

To convert the port number from the x/y/z format into an integer, you need to first convert x into a 6-bit binary number; y into a 2-bit binary number; z into an 8-bit binary number. Then, rank these binary numbers in the format of x/y/z to obtain a 16-bit binary number. Convert the 16-bit binary number into a decimal number, which is the port-num value. For example, port number 2/0/1 on the master clock is converted into 2049.

The value is an integer that ranges from 0 to 65535.

Views

XGE interface view, 25GE interface view, 40GE interface view, 100GE interface view

Default Level

2: Configuration level

Usage Guidelines

Usage scenario

The ptp tcoc-clock-id command specifies the interface from which the local device synchronizes the clock frequency. The clock-source-id and port-num parameter of the command specify the port identify. The local device accepts only the PTP packets with specified clock ID and port number.

Precautions

  • A TCOC device cannot synchronize the time. It can synchronize only the frequency; therefore, it can be configured with only one interface. If an interface is configured with TCOC device.

  • clock-source-id specifies the clock ID of the peer master clock source device and port-num specifies the number of the peer master clock interface. If the values of clock-source-id and port-num are incorrect or the specified master clock source is faulty, synchronization cannot be performed.

Example

# Set ID of the clock source for XGigabitEthernet0/0/1 on the TCOC device to 122323FFFE122110.

<HUAWEI> system-view
[HUAWEI] ptp device-type e2etcoc slot 0
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] ptp tcoc-clock-id 122323FFFE122110 port-num 1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >