ptp clock-step

Function

The ptp clock-step command configures a timestamping mode on a PTP device.

The undo ptp clock-step command restores the default timestamping mode.

By default, the one-step timestamping mode is enabled.

Format

ptp clock-step { one-step | two-step }

undo ptp clock-step

Parameters

Parameter Description Value
one-step

Enables the one-step timestamping mode. A Sync message in Delay mode and a PDelay_Resp message in PDelay mode are stamped with the time when these messages are sent.

-

two-step

Enables the two-step timestamping mode. A Sync message in Delay mode and a PDelay_Resp message in PDelay mode only record the time when they are generated, but carry no timestamps. A Follow_Up message is stamped with the time when the Sync message was sent, and a PDelay_Resp_Follow_Up message is stamped with the time when the PDelay_Resp message was sent.

-

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

Two devices exchange Announce packets to determine the master/slave relationship. The master device sends Sync packets to notify the slave device of time signal parameters and uses a delay measurement mechanism to achieve time signals accuracy.

PTP adds timestamps into packets to record the time when these packets are sent. PTP uses timestamps to adjust clock signals and implement clock synchronization. Either of the following parameters can be specified in the

ptp clock-step command to configure a command:

  • one-step: A Sync message in Delay mode and a PDelay_Resp message in PDelay mode are stamped with the time when these messages are sent.
  • two-step: A Sync message in Delay mode and a PDelay_Resp message in PDelay mode only record the time when they are generated, but carry no timestamps. A Follow_Up message is stamped with the time when the Sync message was sent, and a PDelay_Resp_Follow_Up message is stamped with the time when the PDelay_Resp message was sent.

Precautions

This command is supported only by the admin VS.

By default, the device uses the one-step mode to carry timestamps. In addition, to interwork with other devices, the can identify Follow_Up packets in two-step mode in the receive direction.

Interface interworking does not require the same one-step clock mode and two-step clock mode. Interfaces working in different modes can interwork with each other.

In FlexETH mode, the timestamping mode of PTP packets in the transmit direction can be set only to two-step, but not one-step.

Example

# Configure the two-step timestamping mode.
<HUAWEI> system-view
[~HUAWEI] interface GigabitEthernet 0/1/0
[~HUAWEI-GigabitEthernet0/1/0] ptp clock-step two-step
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >