< Home

Configuring a 1588v2 Clock Source

Context

After external time signal input is configured on multiple 1588v2 devices, you can configure clock source attributes to allow the 1588v2 clock sources to participate in BMC calculation. The BMC algorithm allows the 1588v2 devices to dynamically determine the master clock. The master clock provides time signals to the entire 1588v2 network so that the 1588v2 devices use 1588v2 to obtain clock information from the grandmaster clock.

After dynamic BMC calculation is implemented, the 1588v2 devices select a clock source based on the following order: priority1 > clock-class > clock-accuracy > priority2. That is, priority1 of the clock sources is compared first. If the priority1 values of these 1588v2 devices are the same, the clock-class is compared. The clock source with the highest priority is selected as the master clock.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Configure clock source attributes on all nodes. Generally, clock source attributes need to be configured only on the grandmaster. After the grandmaster selects the optimal clock source, the associated attributes are transmitted to lower-layer devices through Announce messages. In case of special requirements, configure time source attributes for other nodes.

    • Run ptp clock-source local time-source time-source slot slot-id

      The type of the clock source to be traced is configured.

      The time-source parameter can be configured only on the grandmaster clock and must be set according to the clock source connected to the device. For details about the time-source parameter and corresponding clock source, see Command Reference.
    • Run ptp clock-source local clock-accuracy clock-accuracy slot slot-id

      The clock accuracy of the clock source is configured.

    • Run ptp clock-source local clock-class clock-class slot slot-id

      The class of the clock source is configured.

      A smaller clock-class value indicates a higher class. A device whose clock class value is smaller than 128 cannot function as a slave clock. Therefore, do not set a high clock class for a slave clock. Otherwise, the PTP interface of the slave clock cannot enter the slave state, and the device cannot synchronize with the master clock.
    • Run ptp clock-source local priority1 priority1 slot slot-id

      The priority1 value is set for the clock source.

    • Run ptp clock-source local priority2 priority2 slot slot-id

      The priority2 value is set for the clock source.

Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
Next topic >