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.
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. |
- |
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.