The ptp sync-interval command sets the interval for sending Sync packets from an interface.
The undo ptp sync-interval command restores the default interval for sending Sync packets from an interface.
By default, the interval for sending 1588v2 Sync packets is 8 ms, the interval for sending G.8275.1 Sync packets is 64 ms.
Parameter |
Description |
Value |
---|---|---|
sync-interval |
Indicates that the interval for sending Sync packets on an interface is set to the nth power of 2 in milliseconds, where n is specified by sync-interval. |
The value is an integer that ranges from 0 to 20. In 1588v2 mode, the default value is 3. That is, the interval is 8 ms. In G.8275.1 mode, the default value is 6. That is, the interval is 64 ms. |
Usage scenario
Sync packets are used to generate timestamps when the delay mechanism is used. Based on the generated timestamps, PTP calculates the link delay and implements clock synchronization. The interval for sending Sync packets affects the clock synchronization accuracy. A higher interval indicates a higher clock synchronization accuracy. However, a high packet sending interval will increase the network load. Therefore, configure the interval for sending Sync packets according to networking requirements.