The ptp announce-interval command sets the interval at which a PTP interface sends Announce packets.
The undo ptp announce-interval command restores the default interval.
The default interval at which a PTP interface sends Announce packets is 128/1024s.
In PTP mode except SMPTE-2059-2, the default value is 7. In SMPTE-2059-2 mode, the default value is 8.
Parameter | Description | Value |
---|---|---|
announce-interval |
Specifies the interval at which Announce packets are sent. |
The value is an integer. The value range depends on the board type. The mapping between announce-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.
Precautions
If announce-interval is set to a small value, PTP devices frequently exchange PTP messages, occupying many bandwidth resources. If announce-interval is set to a large value, high-precision clock synchronization cannot be guaranteed. Therefore, you are advised to set announce-interval to a large value when the time precision requirement is met.
Timeout interval at which Announce packets are received on the peer interface = Number of timeout times at which Announce packets are received on the peer interface (receipt-timeout) x Interval at which Announce packets are sent on the local interface (announce-interval) x Interval at which Announce packets are sent on the local interface. The number of timeouts for the peer interface to receive Announce packets (receipt-timeout) is configured using the ptp announce receipt-timeout receipt-timeout command. To ensure that the peer device can correctly receive Announce packets, the interval for sending Announce packets on the local interface must be smaller than the timeout interval for receiving Announce packets on the peer interface. Generally, the interval for sending Announce packets on the local interface is set to 1/4 of the timeout interval for receiving Announce packets on the peer interface. That is, the value of announce-interval is smaller than the value of announce-receipt-timeout by 2.