Network fault detection method, device and system

By analyzing the real-time configuration information in the route advertisement message of the BGP protocol, the faulty network device is determined, which solves the problem of heavy fault detection workload and high cost in ultra-large-scale network environment, realizes distributed global fault detection, reduces operation and maintenance costs and False negatives and business interruptions are avoided.

CN118802458APending Publication Date: 2024-10-18中国移动通信集团云南有限公司 +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311258405.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-26
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In ultra-large-scale network environments, existing network fault detection workloads are heavy and costly, and adding an abstraction layer will lead to additional overhead.

Method used

By receiving and parsing the real-time configuration information in route advertisement messages of the BGP protocol, including source ports, destination ports, device status and interaction events, faulty network devices are identified, distributed global fault detection is implemented, and additional equipment overhead is avoided.

Benefits of technology

It achieves efficient and intuitive fault detection in ultra-large-scale network environments, reduces operation and maintenance costs, and avoids missed reports and business interruptions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802458A_ABST
    Figure CN118802458A_ABST
Patent Text Reader

Abstract

The invention discloses a network fault detection method, device and system, and the method comprises the steps that a fault detection device receives a route notification message of a BGP (Border Gateway Protocol) broadcasted by each network device in a target network, and the route notification message carries the real-time configuration information of the network device; the real-time configuration information comprises a source port of the network equipment, a destination port of the network equipment, an equipment state of the network equipment and an interaction event of the network equipment; analyzing the received route notification message to obtain real-time configuration information of each network device in the target network; and determining a fault network device in the target network based on the analyzed real-time configuration information of each network device in the target network.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of communication technology, and in particular to a network fault detection method, device and system. Background Art

[0002] Before using communication networks such as Ethernet for communication, it is necessary to configure network routing for each network device in the network to achieve normal network communication. However, during the use of the network, there may be human errors that cause configuration information to change, causing the corresponding network devices to be unable to perform routing communication normally, resulting in network failures.

[0003] Since network devices may come from different equipment manufacturers and have different equipment configurations, currently, an abstraction layer can be added on top of the equipment configuration to shield the differences between the underlying manufacturers. The operation and maintenance personnel only need to orchestrate the abstraction layer to check whether the configuration meets expectations, and then promptly detect the network devices that cause network failures.

[0004] However, in an ultra-large-scale network environment, the system is complex, resulting in a large workload for network fault detection and difficult operation and maintenance. Adding an additional abstraction layer will also lead to high costs. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a network fault detection method, device and system to solve the problems of large workload and high cost in existing network fault detection.

[0006] In order to solve the above technical problems, this specification is implemented as follows:

[0007] In a first aspect, a network fault detection method is provided, which is applied to a fault detection device, and the method includes:

[0008] Receive a routing advertisement message of the BGP protocol broadcasted by each network device in the target network, wherein the routing advertisement message carries real-time configuration information of the network device, and the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device;

[0009] Parsing the received routing advertisement message to obtain real-time configuration information of each network device in the target network;

[0010] Based on the real-time configuration information of each network device in the target network obtained by parsing, a faulty network device in the target network is determined.

[0011] Optionally, determining a faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes:

[0012] Obtaining a preset mapping relationship between network devices and initial configuration information;

[0013] Based on the preset mapping relationship, determining initial configuration information of the target network device;

[0014] If the real-time configuration information of the target network device obtained through analysis is inconsistent with the corresponding source port or the corresponding destination port in the initial configuration information of the target network device, it is determined that the target network device is a faulty network device.

[0015] Optionally, it also includes:

[0016] Establishing a real-time association path between each network device based on the source port and the destination port in the real-time configuration information of each network device;

[0017] Establishing an initial association path between each network device based on the source port and the destination port in the initial configuration information of each network device;

[0018] Visualizing the real-time association path and the initial association path;

[0019] Compare the visualized real-time association path with the initial association path;

[0020] Based on comparing the inconsistent target association paths, a faulty network device among the network devices is determined.

[0021] Optionally, determining a faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes:

[0022] If it is determined that the interaction event of the target network device is an alarm event, the target network device is determined to be a faulty network device.

[0023] Optionally, determining a faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes:

[0024] If it is determined that the device state of the target network device is an abnormal state, the target network device is determined to be a faulty network device.

[0025] Optionally, before parsing the received routing advertisement message, the method further includes:

[0026] Determine the source port of the network device corresponding to each received routing advertisement message;

[0027] The source port of each network device is matched with a preset network fault detection port list to filter out target routing advertisement messages whose ports match the network fault detection port list.

[0028] In a second aspect, a network fault detection method is provided, which is applied to a target network device, and the method includes:

[0029] Regularly acquiring real-time configuration information of the target network device, the real-time configuration information including a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device;

[0030] Encapsulating the real-time configuration information in the routing AS-Path attribute of the BGP protocol;

[0031] A routing advertisement message of the BGP protocol carrying the real-time configuration information is broadcasted, so that the fault detection device determines whether the target network device fails based on the real-time configuration information in the received routing advertisement message.

[0032] Optionally, encapsulating the real-time configuration information in a routing AS-Path attribute of a BGP protocol includes:

[0033] Determine a reserved field in the routing AS-Path attribute of the BGP protocol, wherein a preset value range of the reserved field is used to place configuration information of a network device;

[0034] The value of the real-time configuration information of the network device is filled into the reserved field to encapsulate the real-time configuration information into the routing announcement message of the BGP protocol.

[0035] In a third aspect, a network fault detection system is provided, including a network device and a fault detection device.

[0036] The network device encapsulates the real-time configuration information of the network device obtained periodically in the routing AS-Path attribute of the BGP protocol, and broadcasts a routing announcement message of the BGP protocol carrying the real-time configuration information, wherein the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device;

[0037] The fault detection device parses the received BGP protocol routing announcement messages broadcast by each network device in the target network to obtain the real-time configuration information of each network device in the target network; based on the real-time configuration information of each network device in the target network obtained by parsing, determines the faulty network device in the target network.

[0038] In a fourth aspect, a network fault detection device is provided, comprising a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0039] In a fifth aspect, a readable storage medium is provided, on which a program or instruction is stored. When the program or instruction is executed by a processor, the steps of the method described in the first aspect or the second aspect are implemented.

[0040] In an embodiment of the present application, a fault detection device receives routing announcement messages of the BGP protocol broadcasted by each network device in a target network, wherein the routing announcement messages carry real-time configuration information of the network device, and the real-time configuration information includes a source port of the network device, a destination port of the network device, a device status of the network device, and an interaction event of the network device; parses the received routing announcement messages to obtain the real-time configuration information of each network device in the target network; and determines the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing. Thus, in an ultra-large-scale network environment, the real-time configuration information of the network device is encapsulated and transmitted with the help of routing announcement messages of the BGP protocol, thereby realizing network distributed global fault detection without increasing additional equipment overhead, thereby reducing the cost of network fault detection.

[0041] In addition, by visually comparing the consistency of the real-time associated paths and the initial associated paths of network routing, the target faulty network equipment can be identified intuitively and efficiently, and problems such as missed reporting of network faults, which may lead to configuration errors or changes in the operation and maintenance process leading to business interruptions, can be avoided. BRIEF DESCRIPTION OF THE DRAWINGS

[0042] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:

[0043] Figure 1 It is a flowchart of the network fault detection method of the first embodiment of the present application.

[0044] Figure 2 This is a schematic diagram of the routing AS-Path attribute field of the BGP protocol in an embodiment of the present application.

[0045] Figure 3 It is a schematic diagram of an example flow of a network fault detection method according to an embodiment of the present application.

[0046] Figure 4 It is a structural diagram of the initial association path of the minimum unit of an embodiment of the present application.

[0047] Figure 5 It is a structural diagram of the overall initial association path of the target network of an embodiment of the present application.

[0048] Figure 6 It is a flowchart of a network fault detection method according to the second embodiment of the present application.

[0049] Figure 7 It is a schematic diagram of configuration information packaging of an embodiment of the present application.

[0050] Figure 8 It is a structural block diagram of the network fault detection system of an embodiment of the present application.

[0051] Fig. 9 It is a structural block diagram of a network fault detection device according to an embodiment of the present application. DETAILED DESCRIPTION

[0052] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application. The numbering of the drawings in this application is only used to distinguish the various steps in the scheme, and is not used to limit the execution order of the various steps. The specific execution order is subject to the description in the specification.

[0053] In order to solve the problems existing in the prior art, the embodiments of the present application provide a network fault detection method, device and system.

[0054] Figure 1 FIG. 1 is a flow chart of a network fault detection method according to a first embodiment of the present application, which is applied to a fault detection device. Figure 1 As shown, the following steps are included:

[0055] Step 102, receiving a routing advertisement message of the BGP protocol broadcasted by each network device in the target network, wherein the routing advertisement message carries real-time configuration information of the network device, and the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device;

[0056] Step 104, parsing the received routing advertisement message to obtain real-time configuration information of each network device in the target network;

[0057] Step 106: Determine the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained through analysis.

[0058] The fault detection device is used to detect faulty network devices involved in the networking communication network. The fault detection device can be one of the network devices, responsible for fault detection of some network devices in the target network; or it can be a dedicated server, responsible for the unified fault detection of each network device in the target network. The target network is, for example, an Ethernet network, which includes multiple network devices, such as switches, routers, etc.

[0059] Each network device broadcasts a routing advertisement message through the BGP protocol. In step 102, the fault detection device can receive the routing advertisement message broadcast by the corresponding network device. The routing advertisement message carries the real-time configuration information of the network device, which is collected by the corresponding network device and encapsulated in the routing AS-Path attribute of the BGP protocol. Therefore, when each network device of the communication network broadcasts a routing advertisement message using the BGP protocol, the routing advertisement message can carry the corresponding real-time configuration information and send the real-time configuration information to the corresponding fault detection device end.

[0060] The real-time configuration information of the network device includes the source port and destination port of the network device; the device status, such as normal status or abnormal status; and the interaction event, such as an alarm event. The real-time configuration information may further include the protocol ID that caused the alarm event. Through one or more of these configuration information, it is possible to detect whether the corresponding network device has a fault.

[0061] The BGP protocol's routing AS-Path attribute type value 0xC0-0xCF is used for experimental extensions. The high-order field value of the AS-Path attribute type can be defined as CF, and the low-order field value can be defined as E1. The range of AS-Path attribute values ​​that can be allocated within the BGP protocol is [0x1, 0xFFFFFF].

[0062] Figure 2 Schematic diagram of the routing AS-Path attribute field of the BGP protocol in the embodiment of the present application, such as Figure 2 As shown, by setting the high-order field value to 0xCF and the low-order field value to 0xE1, the value in the reserved field (reserved) 20 in the routing AS-Path attribute of the BGP protocol can be defined as the configuration information of the network device, and different types of configuration information can be distinguished by different values. That is, the reserved field of the AS-Path attribute of the BGP route carries real-time configuration information including the four-tuple information of the source port, destination port, device status and interaction event of the network device, or carries real-time configuration information including the five-tuple information of the source port, destination port, device status, interaction event and protocol ID of the network device.

[0063] The fault detection device can periodically receive BGP protocol routing announcement messages, such as BGP Update message packets, and respond to the message every T time. That is to say, the network device sends a detection message (AS-Path attribute information of BGP route) to the fault detection device every T time. This periodicity just meets the requirements of real-time notification of network devices without adding additional burden. In addition to carrying real-time configuration information of network devices, Update message packets are also used to notify / update / delete one or more routes to neighboring network devices.

[0064] The format of the Update message is: attribute + address prefix. If multiple address prefixes have the same attribute, the multiple address prefixes will be encapsulated into the same attribute. Therefore, even if there are a large number of routes to be announced, the length of the Update message will not increase significantly. Among them, the content of the real-time configuration information is represented by the TLV format, including the five-tuple information [source port, destination port, interaction event, protocol ID, device status]. This information can be encapsulated in the Update message of the BGP extended protocol AS-Path attribute in the TLV format, and the real-time and security features of the Update message are integrated.

[0065] In step 104, the fault detection device parses the BGP protocol routing announcement messages received from different network devices, and can extract the value of the corresponding configuration information from the reserved field of the BGP routing AS-Path attribute by identifying the field modifier of the routing AS-Path attribute, thereby obtaining the real-time configuration information of the corresponding network device.

[0066] After the real-time configuration information of the target network device is obtained, it can be determined based on the real-time configuration information whether the target network device currently has a fault, that is, whether it is a faulty network device.

[0067] Based on the solution provided by the above embodiment, optionally, in the above step 106, the determining of the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: obtaining a preset mapping relationship between the network device and the initial configuration information; determining the initial configuration information of the target network device based on the preset mapping relationship; if the real-time configuration information of the target network device obtained by parsing is inconsistent with the corresponding source port or the corresponding destination port in the initial configuration information of the target network device, determining that the target network device is a faulty network device.

[0068] When the communication network is networked, the fault detection device can establish a preset mapping relationship between the network device and the initial configuration information, and pre-store it on the fault detection device. The initial configuration information corresponding to each network device is the correct configuration information, such as the source port and destination port configured for the network device. After obtaining the real-time configuration information of the network device, the preset mapping relationship between the network device and the initial configuration information can be first obtained, and based on the preset mapping relationship, the initial configuration information corresponding to each network device can be determined.

[0069] Specifically, the source port in the real-time configuration information of the target network device is compared with the source port in the initial configuration information of the target network device, and the destination port in the real-time configuration information of the target network device is compared with the destination port in the initial configuration information of the target network device. If there is a situation where the source port and the destination port are inconsistent, the target network device is determined to be a faulty network device. The cause of the network failure is that the target network device does not route according to the port correctly configured when networking.

[0070] In one embodiment, optionally, in the above step 106, determining the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: if the interaction event of the target network device is determined to be an alarm event, determining that the target network device is a faulty network device.

[0071] In this embodiment, the network fault can be detected based on the interaction event generated by the target network device during the communication interaction. If the interaction event collected by the target network device is an alarm event, it means that the target network device has a fault. Furthermore, the protocol that causes the alarm event to occur in the target network device can be determined through the protocol ID corresponding to the alarm event, and the marked network device is determined to be a faulty network device with a protocol abnormality.

[0072] In the preset mapping relationship established by the fault detection device, the initial configuration information corresponding to each network device also includes, for example, the routing protocol configured for the network device. After determining that the target network device is a faulty network device with a protocol anomaly, the protocol ID in the initial configuration information corresponding to the target network device can be obtained for subsequent configuration information repair of the faulty network device.

[0073] In another embodiment, optionally, in the above step 106, determining the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: if it is determined that the device state of the target network device is an abnormal state, then determining that the target network device is a faulty network device.

[0074] As described above, the device status includes a normal status and an abnormal status. When the device status in the real-time configuration information of the target network device is an abnormal status, it indicates that the target network device fails, and is thus determined to be a faulty network device.

[0075] When the fault detection device is used to uniformly take charge of the fault detection of each network device in the target network, it also includes: establishing a real-time association path between each network device based on the source port and the destination port in the real-time configuration information of each network device; establishing an initial association path between each network device based on the source port and the destination port in the initial configuration information of each network device; visualizing the real-time association path and the initial association path; comparing the visualized real-time association path and the initial association path; and determining the faulty network device among the network devices based on the compared inconsistent target association paths.

[0076] The source port of the target network device is the destination port of the previous network device connected by its network routing, and the destination port of the target network device is the source port of the next network device connected by its network routing.

[0077] refer to Figure 3 In step 202, the fault detection device can obtain the initial configuration information of each network device in the network, determine the source port and destination port of the initial configuration of each network device, and determine the initial association path of the corresponding routing connection between each network device based on the source port and the destination port.

[0078] like Figure 4 As shown, for example, the destination port of the network device DUT1 initially configured is the source port of the network device LSW1 initially configured, then Figure 4 By adopting the above method, the initial association path corresponding to each node in the target network can be obtained according to the source port and destination port initially configured by each network device in the target network, with each network device as a node, for example Figure 5 The initial association path shown. In the association path of this example, the corresponding nodes include, for example, network devices SW1-SW6, LSW1, LSW2, NSW1, NSW2, DSW1, DSW2, DSW3, YSW1, YSW1, DUT1-DUT6, CSR, YSR. Each network device is ultimately connected to the corresponding terminal device TC1-TC12.

[0079] In step 204, the fault detection device receives the routing announcement message of the BGP protocol broadcasted by each network device in the target network. In step 206, after receiving the routing announcement message of the BGP protocol broadcasted by each network device in the network, the fault detection device parses the routing announcement message of the BGP protocol broadcasted by each network device, and can obtain the source port and destination port configured in real time by each network device in the network. In step 208, the real-time associated path of the corresponding routing connection between each network device is derived according to the source port and the destination port.

[0080] When the source port and destination port of each network device in real-time configuration are consistent with the initial configuration, the overall real-time association path of the target network is the same as the overall initial association path. If the source port or destination port of any network device in real-time configuration is inconsistent with the initial configuration, the overall real-time association path of the target network will be different from the overall initial association path. Different paths correspond to the locations where the port configuration inconsistency occurs, which may be the association path of one minimum unit or the association paths of multiple minimum units.

[0081] In the embodiment of the present application, the real-time associated path and the initial associated path of the target network can be visualized and compared in step 210. The inconsistent paths indicate that the current source port or destination port of the corresponding network device has changed from the initially configured port, that is, the network device has a port anomaly, that is, it is determined to be a faulty network device. In step 212, a correctness configuration file can be sent to the determined faulty network device to repair the configuration of the faulty network device. If the paths are consistent, return to step 206 and continue to execute subsequent steps for the real-time received routing announcement message.

[0082] In this way, the inconsistent paths in the network can be visually viewed, and faulty network devices in the network can be visually detected.

[0083] In one embodiment, the fault detection device is responsible for fault detection of some network devices in the target network. Based on the solution provided in the above embodiment, optionally, before parsing the received routing advertisement message, it also includes: determining the source port of the network device corresponding to each received routing advertisement message; matching the source port of each network device with a preset network fault detection port list to filter out the target routing advertisement message whose port matches the network fault detection port list.

[0084] The routing announcement messages broadcast by network devices received by the fault detection device may come from multiple different network devices. The fault detection device only needs to perform fault detection on the part of network devices it is responsible for in the target network. Therefore, before parsing the received routing announcement messages, it is necessary to filter out the routing announcement messages broadcast by the corresponding part of the network devices.

[0085] The fault detection device is pre-configured with a source port list of the responsible network devices and recorded in the network fault detection port list. After receiving the target route announcement message, the source port of the target route announcement message can be first determined, that is, the source port of the network device that sent the target route announcement message. Then it is matched with the port in the network fault detection port list. If there is a matching port, it means that the network device that sent the target route announcement message is the network device responsible for fault monitoring by the fault detection device. The route announcement message that needs to be parsed can be screened out, and the target route announcement message can be further parsed for subsequent fault network device judgment.

[0086] In an embodiment of the present application, a fault detection device receives routing announcement messages of the BGP protocol broadcasted by each network device in a target network, wherein the routing announcement messages carry real-time configuration information of the network device, and the real-time configuration information includes a source port of the network device, a destination port of the network device, a device status of the network device, and an interaction event of the network device; parses the received routing announcement messages to obtain the real-time configuration information of each network device in the target network; and determines the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing. Thus, in an ultra-large-scale network environment, the real-time configuration information of the network device is encapsulated and transmitted with the help of routing announcement messages of the BGP protocol, thereby realizing network distributed global fault detection without increasing additional equipment overhead, thereby reducing the cost of network fault detection.

[0087] In addition, by visually comparing the consistency of the real-time associated paths and the initial associated paths of network routing, the target faulty network equipment can be identified intuitively and efficiently, and problems such as missed reporting of network faults, which may lead to configuration errors or changes in the operation and maintenance process leading to business interruptions, can be avoided.

[0088] Alternatively, if Figure 6 As shown, an embodiment of the present application also provides a network fault detection method, which is applied to a target network device. The method includes the following steps 302 to 306.

[0089] Step 302: regularly obtain real-time configuration information of the target network device, wherein the real-time configuration information includes a source port of the network device, a destination port of the network device, a device status of the network device, and an interaction event of the network device.

[0090] like Figure 7 As shown, the network device 1 can periodically obtain its own configuration information, including source port, destination port, device status and interaction events.

[0091] Step 304: encapsulate the real-time configuration information in the routing AS-Path attribute of the BGP protocol.

[0092] Optionally, encapsulating the real-time configuration information in the routing AS-Path attribute of the BGP protocol includes: determining a reserved field in the routing AS-Path attribute of the BGP protocol, a preset numerical range of the reserved field being used to place the configuration information of the network device; filling the numerical value of the real-time configuration information of the network device into the reserved field to encapsulate the real-time configuration information into the routing announcement message of the BGP protocol.

[0093] For the BGP routing AS-Path attribute, please refer to the above Figure 2 The description is not repeated here.

[0094] Step 306: broadcast a routing advertisement message of the BGP protocol carrying the real-time configuration information, so that the fault detection device determines whether the target network device fails based on the real-time configuration information in the received routing advertisement message.

[0095] In this embodiment, the target network device is the above Figure 1 The target network of the embodiment, for example, an Ethernet network includes network devices, such as switches, routers, etc. The target network device obtains real-time configuration information and encapsulates it in the routing AS-Path attribute of the BGP protocol, and can send the real-time configuration information to the fault detection device when broadcasting the routing announcement message of the BGP protocol to perform fault detection.

[0096] Figure 6 The target network device in the method embodiment is Figures 1 to 5 The target network device involved in the method embodiment can be implemented accordingly Figures 1 to 5 The embodiment describes various processes of the target network device, and to avoid repetition, relevant descriptions are appropriately omitted.

[0097] In an embodiment of the present application, a target network device periodically obtains real-time configuration information of the target network device, wherein the real-time configuration information includes a source port of the network device, a destination port of the network device, a device status of the network device, and an interaction event of the network device; encapsulates the real-time configuration information in a routing AS-Path attribute of the BGP protocol; and broadcasts a routing announcement message of the BGP protocol carrying the real-time configuration information, so that a fault detection device determines whether a fault occurs in the target network device based on the real-time configuration information in the received routing announcement message. Thus, in an ultra-large-scale network environment, the real-time configuration information of the network device is encapsulated and transmitted with the help of routing announcement messages of the BGP protocol, thereby realizing network distributed global fault detection without adding additional equipment overhead, thereby reducing the cost of network fault detection.

[0098] Alternatively, if Figure 8 As shown, the embodiment of the present application further provides a network fault detection system 1000, including a network device 1200 and a fault detection device 1400.

[0099] The network device 1200 encapsulates the real-time configuration information of the network device obtained periodically in the routing AS-Path attribute of the BGP protocol, and broadcasts a routing announcement message of the BGP protocol carrying the real-time configuration information, wherein the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device;

[0100] The fault detection device 1400 parses the received BGP protocol routing announcement messages broadcast by each network device in the target network to obtain the real-time configuration information of each network device in the target network; based on the parsed real-time configuration information of each network device in the target network, determines the faulty network device in the target network.

[0101] The fault detection device 1400 of the present system embodiment can realize the above Figures 1 to 5 In each process implemented by the fault detection device involved in any method embodiment, the network device 1200 is any network device in the target network, which can be Figure 6 to Figure 7 To avoid repetition, the various processes implemented by the target network device involved in any method embodiment will not be described here.

[0102] Alternatively, if Fig. 9As shown, an embodiment of the present application also provides a network fault detection device 2000, including a processor 2400 and a memory 2200, and the memory 2200 stores a program or instruction that can be executed on the processor 2400. When the program or instruction is executed by the processor 2400, the various steps of the above-mentioned network fault detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0103] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, each process of any of the above network fault detection method embodiments is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. Among them, the readable storage medium includes a computer-readable storage medium, such as a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk, etc.

[0104] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0105] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0106] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A network fault detection method, characterized in that: Applied to a fault detection device, the method comprises: Receive a routing advertisement message of the BGP protocol broadcasted by each network device in the target network, wherein the routing advertisement message carries real-time configuration information of the network device, and the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device; Parsing the received routing advertisement message to obtain real-time configuration information of each network device in the target network; Based on the real-time configuration information of each network device in the target network obtained by parsing, a faulty network device in the target network is determined.

2. The method according to claim 1, characterized in that The determining of the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: Obtaining a preset mapping relationship between network devices and initial configuration information; Based on the preset mapping relationship, determining initial configuration information of the target network device; If the real-time configuration information of the target network device obtained through analysis is inconsistent with the corresponding source port or the corresponding destination port in the initial configuration information of the target network device, it is determined that the target network device is a faulty network device.

3. The method according to claim 2, characterized in that Also includes: Establishing a real-time association path between each network device based on the source port and the destination port in the real-time configuration information of each network device; Establishing an initial association path between each network device based on the source port and the destination port in the initial configuration information of each network device; Visualizing the real-time association path and the initial association path; Compare the visualized real-time association path with the initial association path; Based on comparing the inconsistent target association paths, a faulty network device among the network devices is determined.

4. The method according to claim 1, characterized in that The determining of the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: If it is determined that the interaction event of the target network device is an alarm event, the target network device is determined to be a faulty network device.

5. The method according to claim 1, characterized in that The determining of the faulty network device in the target network based on the real-time configuration information of each network device in the target network obtained by parsing includes: If it is determined that the device state of the target network device is an abnormal state, the target network device is determined to be a faulty network device.

6. The method according to claim 1, characterized in that Before parsing the received routing advertisement message, the method further includes: Determine the source port of the network device corresponding to each received routing advertisement message; The source port of each network device is matched with a preset network fault detection port list to filter out target routing advertisement messages whose ports match the network fault detection port list.

7. A network fault detection method, characterized in that: Applied to a target network device, the method comprises: Regularly acquiring real-time configuration information of the target network device, the real-time configuration information including a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device; Encapsulating the real-time configuration information in the routing AS-Path attribute of the BGP protocol; A routing advertisement message of the BGP protocol carrying the real-time configuration information is broadcasted, so that the fault detection device determines whether the target network device fails based on the real-time configuration information in the received routing advertisement message.

8. The method according to claim 7, characterized in that The step of encapsulating the real-time configuration information in a routing AS-Path attribute of the BGP protocol includes: Determine a reserved field in the routing AS-Path attribute of the BGP protocol, wherein a preset value range of the reserved field is used to place configuration information of a network device; The value of the real-time configuration information of the network device is filled into the reserved field to encapsulate the real-time configuration information into the routing announcement message of the BGP protocol.

9. A network fault detection system, characterized in that: Including network equipment and fault detection equipment, The network device encapsulates the real-time configuration information of the network device obtained periodically in the routing AS-Path attribute of the BGP protocol, and broadcasts a routing announcement message of the BGP protocol carrying the real-time configuration information, wherein the real-time configuration information includes a source port of the network device, a destination port of the network device, a device state of the network device, and an interaction event of the network device; The fault detection device parses the received BGP protocol routing announcement messages broadcast by each network device in the target network to obtain the real-time configuration information of each network device in the target network; based on the real-time configuration information of each network device in the target network obtained by parsing, determines the faulty network device in the target network.

10. A network fault detection device, characterized in that: include: A memory and a processor electrically connected to the memory, the memory storing a program or instruction executable by the processor, the program or instruction implementing the steps of the method as claimed in any one of claims 1 to 6, or implementing the steps of the method as claimed in claim 7 or 8 when executed by the processor.