The ptp sync-interval command sets the interval at which a PTP interface sends Sync packets.
The undo ptp sync-interval command restores the default interval at which a PTP interface sends Sync packets.
For details about the default values, see Parameter Description.
Parameter | Description | Value |
---|---|---|
sync-interval |
Specifies the interval at which a PTP interface sends Sync packets. |
The value is an integer ranging from 0 to 20 for Ethernet cards.
The mapping between sync-interval values and actual intervals is as follows:
|
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.
The master interface periodically sends multicast Sync packets. If devices exchange Sync packets frequently and consume a lot of bandwidth resources, increase the sync-interval value. If time synchronization accuracy is low, reduce the sync-interval value.Prerequisites
PTP has been enabled on the interface using the ptp enable command.
Precautions
The timestamp carried in a Sync message can be carried in a Sync message in one-step clock mode or in a Follow_Up message in two-step clock mode. To specify a timestamping mode, run the ptp clock-step { one-step | two-step } command.