< Home

ptp clock-step

Function

The ptp clock-step command specifies the mode in which PTP packets that are used by PTP devices to perform time synchronization are timestamped.

The undo ptp clock-step command resets the mode in which PTP packets that are used by PTP devices to perform time synchronization are timestamped.

By default, the mode in which PTP packets are timestamped is one-step.

Format

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

undo ptp clock-step

Parameters

Parameter

Description

Value

one-step

Indicates the one-step clock mode. In one-step clock mode, Sync messages in Delay mode and Pdelay_Resp messages in Pdelay mode are stamped with the time when they are sent.

-

two-step

Indicates the two-step clock mode. In two-step clock mode, Sync messages in Delay mode and Pdelay_Resp messages in Pdelay mode only record the time when they are generated, but carry no timestamps. The timestamps are carried in subsequent messages, that is, Follow_Up or Pdelay_Resp_Follow_Up messages.

-

Views

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

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

The device adopts the one-step mode to timestamp outgoing PTP messages to communicate with other devices, and identify received Follow_Up messages in two-step mode. In this way, an interface in one-step clock mode can communicate with another interface in two-step clock mode.

Precautions

After the PTP device type is set to e2etc, e2etcoc, p2ptc, or p2ptcoc using the ptp device-type, the mode in which PTP messages are timestamped cannot be changed to two-step using the ptp clock-step command.

Example

# Configure the two-step clock mode on XGigabitEthernet0/0/1.

<HUAWEI> system-view
[HUAWEI] interface xgigabitethernet 0/0/1
[HUAWEI-XGigabitEthernet0/0/1] ptp clock-step two-step
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >