When we use Huawei NE series routers, we sometimes encounter problems. How can these problems be solved? We provide the Troubleshooting Guide to help you.
If you encounter the Master Clock Selection Failure in BC or OC Mode, perform the following steps:
1. Check whether the physical link is normal.
Run the display ptp all command on all network elements to check the interface status. If an interface is faulty, a fault may have occurred on a link or board. Check whether there is an hwPtpPortStateChange alarm, or run the display ptp all command on the device and Port info field shows that the State is faulty. If an interface is faulty, clear the link fault.
Port info
Name State Delay-mech Ann-timeout Type Domain
-------------------------------------------------------------------------------
GigabitEthernet1/0/0 faulty delay 3 BC 0
If the problem persists, go to Step 2.
2. Run the display ptp all command to check whether the device type of each network element along a link is correct.
If the device type is incorrect, run the ptp device-type command to reconfigure the device type based on network planning.
If the problem persists, go to Step 3.
3. Run the display ptp all command on network elements to check whether the Domain value fields in the command outputs are the same.
The network elements synchronize their clocks only when they are in the same clock domain. If the configuration is incorrect, run the ptp domain domain-value command based on network planning to configure the same domain value for each network element.
If the problem persists, go to Step 4.
4. Check whether configurations on the interfaces are consistent.
a) Run the display ptp all config command to check configuration in each interface view and whether the packet encapsulation types on both interfaces of a link are the same. If the encapsulation types are different, run the ptp mac-egress or ptp udp-egress command to reconfigure them.
b) Check whether an interface is forcibly configured with interface status. This means to check whether the Set port state field is yes. If the Set port state field is yes, run the display this in the interface view to check whether the ptp port-state command is configured. If the ptp port-state command is configured, reconfigure this command.
If the problem persists, go to Step 5.
5. Check whether the quality level of the clock source is appropriate.
Run the display ptp all command to check whether the Class of a local clock in the Clock source info is less than 128. If the quality level of a clock is less than 128, the clock cannot be a slave clock. This means that the interface status cannot be Slave. Run the ptp clock-source local command to reconfigure the quality level.
If the problem persists, go to Step 6.
6. Run the display ptp all command to check the slave-only attribute of the Ordinary Clock (OC). If this attribute is yes, the OC cannot be a master clock. This means the interface status cannot be Master. Run the undo ptp slaveonly command to disable slave-only from the OC.
If the problem persists, go to Step 7.
7. Run the display ptp all command to check whether the Local clock ID of both network elements are the same. If they are the same, the master clock selection is faulty. Run the ptp virtual-clock-id command to reconfigure different Local clock ID for the network elements.
If the problem persists, go to Step 8.
8. Collect trap, log, and configuration information, and contact Huawei technical support personnel.
For more troubleshooting cases, see: NE40E Troubleshooting Guide V4.0 (VRPv8)
https://support.huawei.com/enterprise/en/doc/EDOC1000177634