Search

CN-119484242-B - PIM neighbor Down fault positioning method and device

CN119484242BCN 119484242 BCN119484242 BCN 119484242BCN-119484242-B

Abstract

The invention discloses a PIM neighbor Down fault positioning method and device, wherein the method comprises the steps of S01 loading network alarm data, S02 checking whether a physical interface of equipment enables PIM, S03 checking whether the PIM state of the interface is UP, and S04 checking whether PIM configuration on the interface is correct. According to the PIM neighbor Down fault positioning method and device, alarm acquisition analysis and protocol state acquisition analysis are carried out on network elements with PIM neighbor Down faults, acquisition analysis is configured, the reasons of the PIM neighbor Down faults are positioned, the working pressure of network operation and maintenance personnel is reduced, and the operation and maintenance efficiency is improved.

Inventors

  • XUE ZHU

Assignees

  • 中盈优创资讯科技有限公司

Dates

Publication Date
20260508
Application Date
20241016

Claims (5)

  1. 1. The PIM neighbor Down fault positioning method is characterized by comprising the following steps: s01, loading network alarm data comprises a device port Down alarm and PIMNbrDown alarms, wherein the loading network alarm data comprises the following steps: The device network element generates port Down alarms, and PIMNbrDown alarms are continuously generated, and the protocol Down caused by the device port Down is judged; s02, checking whether the physical interface of the equipment enables PIM, comprising: S021, executing a command of 'display current-configuration interface [ gigabit Ethernet 1/0/1 ]', on the device, checking whether the interface enables PIM: s022, a configuration row of PIM, PIM sm or PIM dm exists in the output configuration information, which indicates that PIM is enabled, and S03 is entered; S023, if no configuration line of PIM, PIM sm or PIM dm exists in the output configuration information, the interface is not enabled with PIM, and PIM is enabled with the interface; s024, detecting whether PIM neighbor Down is recovered, if so, ending the flow, and if still abnormal, entering S03; s03, checking whether the PIM state is UP, including: S031, executing command DISPLAY PIM INTERFACE gigabit Ethernet 1/0/1, checking PIM information of a designated interface, wherein the PIM information comprises the number of PIM neighbors, detailed information of the PIM neighbors and PIM state of the interface; s032, if PIM state of the interface is Up, PIM neighbor relation is successfully established, multicast flow is normally forwarded through the interface, and S04 is entered; S033, the PIM state of the interface is not Up, a command DISPLAY INTERFACE [ gigabit Ethernet 1/0/1] is executed, and whether the physical state of the interface is Up is checked; s034, the physical state of the interface is UP, a command DISPLAY INTERFACE [ gigabit Ethernet 1/0/1] is executed, and whether the link state of the interface is Up is checked; S035, repairing the physical state of interface not UP and DOWN problem, after repairing, detecting if PIM neighbor DOWN is recovered, if so, ending the flow, if still abnormal, entering S034; s04, checking whether PIM configuration on the interface is correct, including: S041, executing a command display current-configuration interface [ gigabit Ethernet 1/0/1], checking PIM configuration on an interface, wherein the PIM configuration comprises interface IP address configuration, PIM SILENT configuration, PIM neighbor filtering strategy and Generation ID parameter configuration; s042, PIM configuration on the interface is correct, and manual processing is changed; s043, modifying PIM configuration on the interface if PIM configuration on the interface is abnormal, and leading to PIM neighbor Down; s044, after PIM configuration modification is finished, detecting whether PIM neighbor Down is recovered; s045, recovering the PIM neighbor Down, and ending the flow; s046, if PIM neighbor Down is still abnormal, turning to manual processing.
  2. 2. The PIM neighbor Down fault location method as set forth in claim 1, wherein said S034 comprises: S0341, executing command DISPLAY INTERFACE [ gigabit Ethernet 1/0/1], and outputting the result, wherein Line protocol state displays the link state of the interface; s0342, the link state of the interface is UP, and S04 is entered; s0343, repairing the problem of DOWN of the interface link state if the interface link state is not UP, detecting whether the PIM neighbor DOWN is recovered after repairing, if so, ending the flow, and entering S04 if abnormal.
  3. 3. A PIM neighbor Down fault locating device, comprising: the alarm data loading module loads network alarm data comprising equipment port Down alarm and PIMNbrDown alarm, wherein the equipment port Down alarm comprises that equipment network element generates port Down alarm, PIMNbrDown alarm is continuously generated, and protocol Down caused by equipment port Down is judged; A physical interface checking module for checking whether the physical interface of the device enables PIM, including executing a command of 'display current-configuration interface [ gigabit Ethernet 1/0/1 ]' on the device, checking whether the interface enables PIM, wherein a configuration line of PIM, PIM sm or PIM dm exists in the output configuration information, representing that PIM is enabled, entering a PIM state checking module, and if the configuration line of PIM, PIM sm or PIM dm does not exist in the output configuration information, representing that the interface does not enable PIM, enabling PIM for the interface, detecting whether PIM neighbors Down are restored, if so, ending the process, and if still abnormal, entering the PIM state checking module; The PIM state checking module is used for checking whether the PIM state of the interface is UP or not, and comprises an execution command DISPLAY PIM INTERFACE gigabit Ethernet 1/0/1, checking the PIM information of a designated interface, wherein the PIM state of the interface comprises the number of PIM neighbors, detailed information of the PIM neighbors and the PIM state of the interface, if the PIM state of the interface is Up, the PIM neighbor relation is successfully established, multicast traffic is normally forwarded through the interface and enters the PIM configuration checking module, the PIM state of the interface is not Up, an execution command DISPLAY INTERFACE [ gigabit Ethernet 1/0/1], checking whether the physical state of the interface is Up or not, an execution command DISPLAY INTERFACE [ gigabit Ethernet 1/0/1] checking whether the link state of the interface is Up or not, repairing the physical state DOWN problem of the interface is not UP, and detecting whether the PIM neighbors DOWN are recovered or not after repairing, if the recovery is finished, and if the process is still abnormal, entering the previous step; The PIM configuration checking module is used for checking whether PIM configuration on the interface is correct or not, and comprises executing a command display current-configuration interface [ gigabit Ethernet 1/0/1], checking that PIM configuration on the interface comprises interface IP address configuration, PIM SILENT configuration, PIM neighbor filtering strategy and Generation ID parameter configuration, PIM configuration on the interface is correct, manual processing is changed, PIM configuration on the interface is abnormal, PIM neighbor Down caused by abnormal PIM configuration on the interface is modified, after PIM configuration modification is finished, whether PIM neighbor Down is recovered or not is detected, PIM neighbor Down is recovered, the process is finished, and if PIM neighbor Down is still abnormal, manual processing is changed.
  4. 4. A computer device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that the processor implements the method of any of claims 1-2 when executing the computer program.
  5. 5. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program for executing the method of any one of claims 1-2.

Description

PIM neighbor Down fault positioning method and device Technical Field The invention relates to the field of communication, in particular to a PIM neighbor Down fault positioning method and device. Background PIM (Protocol Independent Multicast) is a multicast routing protocol. PIM does not depend on a specific unicast routing protocol, and it can use the unicast routing table established by any unicast routing protocol to complete RPF checking function, thereby establishing multicast routing. PIM overhead is much reduced compared to other multicast routing protocols because PIM does not need to send and receive multicast routing updates. RPF checking, in unicast routing and forwarding, unicast messages are transmitted along a single point-to-single point path, and the device only needs to consider the 'needed arriving position', namely the destination address, of the message to know which interface to forward from. Multicast routing is different from forwarding. Since the destination address of the multicast message is a multicast address, only a group of receivers is identified, and the location of the receivers cannot be found by the destination address, but the "source location" of the multicast message, i.e. the source address, is determined. So the forwarding of multicast message is mainly based on the source address to ensure the correctness of forwarding path. After receiving a multicast message, the device searches the route reaching the message source through the unicast routing table and the multicast static routing table according to the source address of the message, and checks whether the output interface of the routing table item of the message source is consistent with the input interface of the received multicast message. If the multicast message is consistent, the multicast message is considered to arrive from the correct interface, so that the correctness and the uniqueness of the whole forwarding path are ensured. This process is called RPF (REVERSE PATH Forwarding) check. The "correct interface" is herein generally referred to as an RPF interface, i.e. an interface through which the RPF check passes PIM neighbor Down failure refers to an inability between two PIM neighbor routers to normally establish or maintain a neighbor relationship in PIM (Protocol Independent Multicast) networks. The situation can cause that the multicast flow cannot be forwarded normally, so that the multicast performance of the network is affected, and the normal operation of the network is further affected. Positioning is complex due to failure at the protocol level. The operation and maintenance personnel need to take a long time to judge the location fault, so that the problem is stuck for a long time, and the adverse effect is caused to the clients. At present, operation and maintenance personnel need to use various protocols and commands to conduct fault analysis according to professional knowledge, and a long time is spent for manually judging the reasons of PIM neighbor Down faults, so that time and labor are wasted, the fault processing time rate is low, and the pressure of maintenance personnel is high. Disclosure of Invention In order to solve the problems in the prior art, the invention provides a PIM neighbor Down fault positioning method and device, which are used for carrying out alarm acquisition analysis and protocol state acquisition analysis on network elements with PIM neighbor Down faults, configuring acquisition analysis, positioning PIM neighbor Down fault reasons, relieving the working pressure of network operation and maintenance personnel and improving the operation and maintenance efficiency. In order to achieve the above purpose, the present invention adopts the following technical scheme: in an embodiment of the present invention, a PIM neighbor Down fault location method is provided, including: s01, loading network alarm data comprises a device port Down alarm and PIMNbrDown alarms; Further, the S01 comprises that the equipment network element generates port Down alarm, and PIMNbrDown alarms are continuously generated, and the protocol Down caused by the equipment port Down is judged; s02, checking whether a physical interface of the equipment enables PIM; Further, the S02 includes: S021, executing a command of 'display current-configuration interface [ gigabit Ethernet 1/0/1 ]', on the device, checking whether the interface enables PIM: s022, a configuration row of PIM, PIM sm or PIM dm exists in the output configuration information, which indicates that PIM is enabled, and S03 is entered; S023, if no configuration line of PIM, PIM sm or PIM dm exists in the output configuration information, the interface is not enabled with PIM, and PIM is enabled with the interface; The enabling method comprises the following steps: (1) Enter the system view and enable multicast functionality: (2) Entering an interface view: (3) Enabling PIM (selecting PIM-SM or PIM-DM): (4) Exit the interface view