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