Specifying the 1588v2 Interface Status

This section describes how to specify the 1588v2 interface status. After 1588v2 is enabled in the system and interface views, specify the 1588v2 status for interfaces. The master/slave clock relationships can be established based on the plan.

Context

A 1588v2 interface works in a specific state:
  • slave: A slave interface only tracks time information of a specific clock source. Each 1588v2 device has a single slave interface.
  • uncalibrated: An uncalibrated interface has detected one or more master interfaces in the same clock domain. The uncalibrated interface selects a master interface as a time source to synchronize with. The Uncalibrated state is a temporary state. There are a few scenarios for the uncalibrated parameter when static 1588v2 is used.
  • passive: A passive interface does not trace or advertise time information. Passive interfaces can send Delay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages. If a device has multiple master 1588v2 interfaces in the same clock domain, the device selects the interface with the highest priority as the master clock. The interface connected to the master clock is the slave clock. The unselected master interfaces enter the Passive state and function as backups for the slave clock.
  • master: A master interface only advertises time information.
  • premaster: A premaster interface does not trace nor advertise time information. Premaster interfaces can send Pdelay_Req, Pdelay_Resp, Delay_Resp_Follow_Up, signaling, and management response messages.
  • listening: A listening interface does not trace or advertise time information. An OC working in slave-only mode changes from the Master state to the Listening state if the OC fails.
  • faulty: A faulty interface does not send 1588v2 packets, except for responses to some management messages.
  • disabled: A disabled interface sends no 1588v2 packets and discards all received 1588v2 packets, except for management messages. Setting a 1588v2 interface to the Disabled state is equivalent to running the undo ptp enable command in the interface view to disable 1588v2 on the interface.
  • initializing: An initializing interface does not send or receive 1588v2 packets.
After statically specifying the 1588v2 interface status is enabled, all 15882v2 interfaces on a device work in the Initializing state by default.

The status of a TC interface is fixed to be premaster. Therefore, you cannot change the status of the TC interfaces, including all the PTP interfaces on the E2ETC and P2PTC devices and TC interfaces on the E2ETCOC, P2PTCOC, and TCandBC devices, through command lines. Perform the following step on each of the OCs, BC, and TCandBC:

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run ptp set-port-state enable

    Statically specifying the 15882v interface status is enabled.

    • Delete the state setting before you perform either of the following operations:
      • Change the clock type to E2ETC, P2PTC, E2ETCOC, or P2PTCOC.

      • Configure an interface on a TCandBC as a TC interface.

  3. Run interface interface-type interface-number

    The interface view is displayed.

  4. Run ptp port-state { slave | uncalibrated | passive | master | premaster | listening | faulty | disabled | initializing }

    The 1588v2 interface is configured to work in a specified state.

  5. Run commit

    The configuration is committed.

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