This section describes how to configure time attributes for 1588v2 packets. 1588v2 routers exchange Announce, Sync, and Delay or Pdelay packets to send time information and maintain 1588v2 connections. You can set the interval at which a 1588v2 interface sends Announce, Sync, and Delay or Pdelay packets and the maximum number of Announce packet timeouts. Using the default time attribute values is recommended.
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.
If routers exchange 1588v2 packets frequently and consume a lot of bandwidth resources, increase the interval value. If the time synchronization accuracy is low, reduce the interval value.
To set the maximum number of Announce packets that a 1588v2 interface fails to receive consecutively, run the ptp announce receipt-timeout command. If the 1588v2 interface on a device fails to receive a specified number of Announce packets, the interface status becomes Master, and the device stops attempting to synchronize the time with other 1588v2 devices. The device uses the BMC algorithm to select a clock source and synchronize the time with the clock source. Increase receipt-timeout to reduce the clock source switching frequency; reduce receipt-timeout to switch clock sources. Using the default value is recommended.
The master interface periodically sends multicast Sync packets.
The time when the Sync packets can be stamped into the Sync packets if the one-step timestamping mode is used or into Follow_Up packets if the two-step timestamping mode is used. To specify a timestamping mode, run the ptp clock-step { one-step | two-step } command.
A router uses a delay measurement mechanism to send request packets and receive response packets from its remote router. The router uses timestamps carried in the packets to correct time signals.
Perform the following steps on each 1588v2 router: