Network device anomaly analysis method, device, electronic device and readable storage medium
By constructing and comparing the knowledge graph of network equipment, identifying and correcting abnormal entities, the problem of inability to detect potential faults in advance in the existing technology is solved, and the operation security and service stability of network equipment are improved.
Patent Information
- Application Number
- CN202111134740.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-27
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-09-27
AI Technical Summary
Existing technologies cannot discover and eliminate potential faults of network equipment in advance, resulting in sudden failures that damage network equipment and service stability.
By constructing a standard knowledge graph and comparing it with the knowledge graph of the network device to be detected, abnormal network entities and event entities in the configuration file are identified and corrected to eliminate potential faults.
It effectively improves the operational safety of network equipment, detects and eliminates potential faults in advance, and prevents sudden faults from causing damage to network services.
Smart Images

Figure CN115883320B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to network equipment failure analysis technology, and in particular to a network equipment anomaly analysis method, device, electronic device and readable storage medium. Background Art
[0002] Network devices are physical entities connected to the network, such as computers, hubs, switches, bridges, routers, gateways, etc. The operating status of network devices determines whether stable network services can be provided to customers. Therefore, network equipment operation and maintenance are particularly important.
[0003] In the existing network equipment operation and maintenance, the cause of the failure is generally analyzed and solved after the network equipment fails, but the potential hidden dangers of network equipment failure cannot be discovered and eliminated in advance. If the potential hidden dangers of network equipment failure are triggered during the operation of the network equipment, the sudden failure caused cannot be solved in time, which will cause unpredictable damage to the stability of network equipment and network services.
[0004] Therefore, how to detect and eliminate potential failure risks of network equipment in advance to improve the operational safety of network equipment is still an urgent problem to be solved. Summary of the invention
[0005] The present application provides a network device anomaly analysis method, device, electronic device and readable storage medium for early detection and elimination of potential failure risks of network devices to improve the operational safety of network devices.
[0006] On the one hand, the present application provides a method for analyzing abnormalities of a network device, comprising:
[0007] Get the configuration file of the network device to be detected;
[0008] According to the configuration file of the network device to be detected, construct a knowledge graph corresponding to the network device to be detected;
[0009] receiving a comparison instruction;
[0010] In response to the comparison instruction, the knowledge graph corresponding to the network device to be detected is compared with the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by the configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network;
[0011] Among them, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entities are connected to the network entities; the types of network entities include at least network equipment, interfaces, protocols and services.
[0012] Optionally, before comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, the method further includes:
[0013] Obtaining configuration files of the plurality of network devices;
[0014] Extracting a network entity and an event entity of each network device from configuration files of the plurality of network devices, and then extracting a common network entity and a common event entity in the configuration files of the plurality of network devices from the network entity and the event entity of each network device;
[0015] The central frame in the standard knowledge graph framework is filled with the common network entities and common event entities in the configuration file of any network device to obtain the central knowledge graph, and then the edge frame in the standard knowledge graph framework is filled with the non-common network entities and non-common event entities in the configuration file of each network device to obtain the edge knowledge graph; the central knowledge graph and all edge knowledge graphs constitute the standard knowledge graph, and the standard knowledge graph framework is established based on the connection relationship between network entities and event entities.
[0016] Optionally, the step of filling the edge framework in the standard knowledge graph framework with the non-shared network entities and non-shared event entities in the configuration file of each network device to obtain the edge knowledge graph comprises:
[0017] The non-shared network entities and non-public event entities in the configuration files of the network devices belonging to the same device type among the multiple network devices are filled into the edge framework of a region to obtain an edge knowledge graph corresponding to each type of network device.
[0018] Optionally, after obtaining the edge knowledge graph corresponding to each type of network device, the method further includes:
[0019] Identify the edge knowledge graph corresponding to each type of network device by device type;
[0020] In response to the comparison instruction, comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, obtaining abnormal network entities and abnormal event entities in the configuration file of the network device to be detected includes:
[0021] In response to the comparison instruction, the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs is determined according to the device type of the network device to be detected and the device type identifier of the edge knowledge graph; the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs and the central knowledge graph constitute a standard knowledge graph to be compared;
[0022] The knowledge graph corresponding to the network device to be detected is compared with the standard knowledge graph to be compared to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected.
[0023] Optionally, after comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph to obtain the abnormal network entity and abnormal event entity in the configuration file of the network device to be detected, the method further includes:
[0024] Based on the connection relationship of the standard knowledge graph, key abnormal network entities in the abnormal network entities and key abnormal event entities in the abnormal event entities are obtained;
[0025] The key abnormal network entity is a network entity connected to the most abnormal event entities among the abnormal network entities;
[0026] The key abnormal event entity is an abnormal event connected to the most abnormal network entities among the abnormal event entities.
[0027] Optionally, constructing a knowledge graph corresponding to the network device to be detected according to the configuration file of the network device to be detected includes:
[0028] The network entities and event entities are extracted from the configuration file of the network device to be detected, and the extracted network entities and event entities are filled into the knowledge graph framework to be detected to obtain the knowledge graph corresponding to the network device to be detected.
[0029] On the other hand, the present application provides a network device anomaly analysis device, comprising:
[0030] An acquisition module is used to acquire a configuration file of the network device to be detected;
[0031] A construction module, used to construct a knowledge graph corresponding to the network device to be detected according to a configuration file of the network device to be detected;
[0032] A receiving module, used for receiving a comparison instruction;
[0033] A processing module, configured to respond to the comparison instruction, compare the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, and obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by the configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network;
[0034] Among them, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entities are connected to the network entities; the types of network entities include at least network equipment, interfaces, protocols and services.
[0035] On the other hand, the present application provides an electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0036] The memory stores computer-executable instructions;
[0037] The processor executes the computer-executable instructions stored in the memory to implement the network device anomaly analysis method as described in the first aspect.
[0038] On the other hand, the present application provides a computer-readable storage medium, in which computer-executable instructions are stored. When the instructions are executed, the computer executes the network device anomaly analysis method as described in the first aspect.
[0039] On the other hand, the present application provides a computer program product, including a computer program, which, when executed by a processor, implements the network device anomaly analysis method as described in the first aspect.
[0040] The network device anomaly analysis method provided by the present application constructs a relatively correct standard knowledge graph based on the configuration files of many network devices in the same network as the network device to be detected, and then compares the knowledge graph constructed based on the configuration file of the network device to be detected with the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network to be detected. The abnormal network entities and abnormal event entities in the configuration file are potential faults of the network device. After correcting the abnormal network entities and abnormal event entities in the configuration file, the potential faults of the network device can be eliminated. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and, together with the description, serve to explain the principles of the present disclosure.
[0042] Figure 1A schematic diagram of an application scenario of the network device anomaly analysis method provided in this application.
[0043] Figure 2 A flowchart of the network device anomaly analysis method provided in Example 1 of the present application.
[0044] Figure 3 A schematic diagram of the network device anomaly analysis method provided in Example 1 of the present application.
[0045] Figure 4 A flowchart of the network device anomaly analysis method provided in Example 2 of the present application.
[0046] Figure 5 A schematic diagram of a network device anomaly analysis device provided in Example 3 of the present application.
[0047] Figure 6 A schematic diagram of an electronic device provided in Embodiment 4 of the present application.
[0048] The above drawings show clear embodiments of the present disclosure, which will be described in more detail below. These drawings and text descriptions are not intended to limit the scope of the present disclosure in any way, but to illustrate the concepts of the present disclosure to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0049] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0050] Network devices are physical entities connected to the network, such as computers, hubs, switches, bridges, routers, gateways, etc. The operating status of network devices determines whether stable network services can be provided to customers. Therefore, network equipment operation and maintenance are particularly important.
[0051] In the existing network equipment operation and maintenance, the cause of the failure is generally analyzed and solved after the network equipment fails, but the potential hidden dangers of network equipment failure cannot be discovered and eliminated in advance. If the potential hidden dangers of network equipment failure are triggered during the operation of the network equipment, the sudden failure caused cannot be solved in time, which will cause unpredictable damage to the stability of network equipment and network services.
[0052] Therefore, how to detect and eliminate potential failure risks of network equipment in advance to improve the operational safety of network equipment is still an urgent problem to be solved.
[0053] Based on this, the present application provides a network device anomaly analysis method, device, electronic device and readable storage medium, which constructs a relatively correct standard knowledge graph based on the configuration files of many network devices in the same network as the network device to be detected, and then compares the knowledge graph constructed based on the configuration file of the network device to be detected with the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network to be detected. The abnormal network entities and abnormal event entities in the configuration file are potential faults of the network device. After correcting the abnormal network entities and abnormal event entities in the configuration file, the potential faults of the network device can be eliminated.
[0054] The network device anomaly analysis method provided in the present application is applied to computer equipment, such as computers, laboratory dedicated servers, etc. Figure 1 The application diagram of the network device anomaly analysis method provided in the present application, in which the computer device receives configuration files sent by multiple network devices in the same network, and then extracts multiple network entities and multiple event entities from the configuration files sent by the multiple network devices, and constructs a standard knowledge graph with reference value based on the extracted network entities and event entities. After receiving the configuration file sent by the network device to be detected, a knowledge graph corresponding to the network device to be detected is constructed based on the configuration file of the network device to be detected. The knowledge graph corresponding to the network device to be detected is then compared with the standard knowledge graph to obtain an abnormal point in the knowledge graph corresponding to the network device to be detected, which includes an abnormal network entity and an abnormal event entity.
[0055] See also Figure 2 , Embodiment 1 of the present application provides a method for analyzing abnormalities of a network device, including:
[0056] S210, obtaining a configuration file of the network device to be detected.
[0057] The configuration file of a network device stores almost all the parameters and configurations required during the operation of the device to guide the network device to operate according to the established logic. The accuracy, rationality and completeness of the configuration file determine whether the network device can operate normally all the time.
[0058] S220: construct a knowledge graph corresponding to the network device to be detected based on the configuration file of the network device to be detected.
[0059] After obtaining the configuration file of the network device to be detected, the network entities and event entities in the configuration file of the network device to be detected are extracted, and a knowledge graph of the configuration file of the network device to be detected is constructed based on the extracted network entities and event entities. The network entities such as network devices, interfaces, protocols and services involved in the configuration file are associated with each other, and these associations are event entities. The knowledge graph of the configuration file is constructed with the network entities in the configuration file as nodes and the event entities in the configuration file as edges. The constructed knowledge graph can effectively describe the logical relationship between different network entities in the configuration file.
[0060] Specifically, the configuration file of the network device to be detected is obtained, the network entity and event entity are extracted from the configuration file of the network device to be detected, and the extracted network entity and event entity are filled into the knowledge graph framework to be detected to obtain the knowledge graph corresponding to the network device to be detected. The knowledge graph framework to be detected is summarized and summarized by the tester based on the configuration rules that have been mastered.
[0061] S230, receiving a comparison instruction.
[0062] The comparison instruction is triggered and generated by the user on the computer device. After the knowledge graph corresponding to the network device to be detected is constructed, the user can trigger the generation of the comparison instruction on the computer device.
[0063] S240, in response to the comparison instruction, compare the knowledge graph corresponding to the network device to be detected and the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network; wherein, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entity is connected to the network entity; the types of network entities include at least network devices, interfaces, protocols and services.
[0064] When constructing the standard knowledge graph, the tester will first manually summarize and establish the standard knowledge graph framework through the configuration rules that have been mastered. When establishing the standard knowledge graph framework, the interconnection relationship between network entities and event entities in the standard knowledge graph framework will be established based on the experience summarized in daily maintenance, and then the standard knowledge graph framework will be filled in according to the network entities and event entities in the configuration files of the multiple network devices.
[0065] Specifically, the computer device extracts the network entity and event entity of each network device from the configuration files of the multiple network devices, and then extracts the common network entities and common event entities in the configuration files of the multiple network devices from the network entities and event entities of each network device. The central frame in the standard knowledge graph framework is filled with the common network entities and common event entities in the configuration files of any network device to obtain the central knowledge graph, and then the edge frame in the standard knowledge graph framework is filled with the non-shared network entities and non-shared event entities in the configuration files of each network device to obtain the edge knowledge graph. The central knowledge graph and the edge knowledge graph constitute the standard knowledge graph.
[0066] The shared network entity and the shared event entity refer to the network entity and event entity in the configuration file of each network device among the multiple network devices, and the non-shared network entity and the non-shared event entity are network entities and event entities unique to each network device.
[0067] like Figure 3 Shown is a schematic diagram of constructing the standard knowledge graph and comparing the knowledge graph of the network device to be detected with the standard knowledge graph. Figure 3 In the test, the tester configures the standard knowledge graph framework based on the existing knowledge, and then fills the standard knowledge graph framework with the network entities and event entities extracted from the multiple network devices to obtain the standard knowledge graph. When performing abnormal analysis of the configuration file of the network device to be detected, the computer device can start a comparison task to compare the knowledge graph corresponding to the network device to be detected with the standard knowledge graph to find abnormal network entities and abnormal event entities. The abnormal network entity and the abnormal event entity are output as the configuration risk analysis result of the network device to be detected.
[0068] Furthermore, the configuration files of network devices will change in real time, and the computer device will receive the configuration files sent by different network devices in real time, so the knowledge graph corresponding to the network device to be detected and the standard knowledge graph will also change with the changes in the configuration files of the network devices. The computer device can also be set to compare the knowledge graphs when the knowledge graphs change, so as to realize the real-time analysis of the abnormalities of the network device configuration files.
[0069] In summary, the network device anomaly analysis method provided in this embodiment constructs a relatively correct standard knowledge graph based on the configuration files of many network devices in the same network as the network device to be detected, and then compares the knowledge graph constructed based on the configuration file of the network device to be detected with the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network to be detected. The abnormal network entities and abnormal event entities in the configuration file are potential faults of the network device. After correcting the abnormal network entities and abnormal event entities in the configuration file, the potential faults of the network device can be eliminated.
[0070] See also Figure 4 The second embodiment of the present application also provides a method for analyzing abnormalities of network devices, which further describes the method for constructing a knowledge graph, comparing knowledge graphs, and determining abnormal network entities and abnormal event entities in the first embodiment. The method includes:
[0071] S410: Obtain configuration files of the multiple network devices.
[0072] S420, extracting a network entity and an event entity of each network device from configuration files of the multiple network devices, and then extracting a common network entity and a common event entity in the configuration files of the multiple network devices from the network entity and event entity of each network device.
[0073] For the relevant descriptions about steps S410 to S420, please refer to the relevant descriptions about constructing the standard knowledge graph in Example 1.
[0074] S430, fill the central frame in the standard knowledge graph framework with the common network entities and common event entities in the configuration file of any network device to obtain the central knowledge graph, and fill the non-common network entities and non-public event entities in the configuration files of network devices belonging to the same device type among the multiple network devices into the edge frame of a region to obtain the edge knowledge graph corresponding to each type of network device.
[0075] The standard knowledge graph constructed at this time is composed of the edge knowledge graphs corresponding to all categories of network devices among the multiple network devices and the central knowledge graph.
[0076] The categories of network devices include gateway network devices, switch network devices, and router network devices.
[0077] S440, identifying the edge knowledge graph corresponding to each type of network device by device type.
[0078] That is, the edge knowledge graph of each region has a device type identifier. For example, the standard knowledge graph includes edge knowledge graphs of regions A, B, C, and D, representing the first type of network devices, the second type of network devices, the third type of network devices, and the fourth type of network devices, respectively.
[0079] S450, in response to the comparison instruction, determine the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs according to the device type of the network device to be detected and the device type identifier of the edge knowledge graph; the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs and the central knowledge graph constitute the standard knowledge graph to be compared.
[0080] That is, the network entities and event entities in the standard knowledge graph to be compared include the common network entities and the common event entities in the configuration files of the multiple network devices, and also include the non-common network entities and non-common event entities in the configuration files of all network devices of the same type as the network device to be detected.
[0081] S460, comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph to be compared, and obtaining abnormal network entities and abnormal event entities in the configuration file of the network device to be detected.
[0082] Only comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph to be compared can reduce the workload of the computer device to increase the speed at which the computer device performs abnormal analysis of the configuration file of the network device to be detected.
[0083] S470, based on the connection relationship of the standard knowledge graph, obtain the key abnormal network entities in the abnormal network entities and the key abnormal event entities in the abnormal event entities; the key abnormal network entity is the network entity connected to the most abnormal event entities among the abnormal network entities; the key abnormal event entity is the abnormal event connected to the most abnormal network entities among the abnormal event entities.
[0084] The tester can modify only the key abnormal network entity and the key abnormal event entity, thereby reducing the modification steps of the abnormal network entity and the abnormal event entity.
[0085] The method provided in this application further describes the construction of a standard knowledge graph, knowledge graph comparison, and the method for determining abnormal network entities and abnormal event entities. When constructing a standard knowledge graph, the standard knowledge graph is constructed according to the type of network equipment. Furthermore, when comparing knowledge graphs, the workload of knowledge graph comparison can be reduced, thereby improving the operation of computer equipment. After determining the abnormal network entities and abnormal event entities, key abnormal network entities and key abnormal event entities can be further determined, so that testers can modify key abnormal network entities and key abnormal event entities, reducing the modification workload of testers.
[0086] See also Figure 5 , Embodiment 3 of the present application further provides a network device anomaly analysis device 10, comprising:
[0087] The acquisition module 11 is used to acquire the configuration file of the network device to be detected.
[0088] The construction module 12 is used to construct a knowledge graph corresponding to the network device to be detected based on the configuration file of the network device to be detected.
[0089] The receiving module 13 is used to receive a comparison instruction.
[0090] The processing module 14 is used to respond to the comparison instruction, compare the knowledge graph corresponding to the network device to be detected and the standard knowledge graph, and obtain the abnormal network entity and abnormal event entity in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by the configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network. Among them, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entity is connected to the network entity; the types of network entities include at least network devices, interfaces, protocols and services.
[0091] The acquisition module 11 is used to obtain the configuration files of the multiple network devices; extract the network entity and event entity of each network device from the configuration files of the multiple network devices, and then extract the common network entities and common event entities in the configuration files of the multiple network devices from the network entities and event entities of each network device.
[0092] Construction module 12 is used to fill the central frame in the standard knowledge graph framework with the common network entities and common event entities in the configuration file of any network device to obtain the central knowledge graph, and then fill the edge frame in the standard knowledge graph framework with the non-common network entities and non-common event entities in the configuration file of each network device to obtain the edge knowledge graph; the central knowledge graph and all edge knowledge graphs constitute the standard knowledge graph, and the standard knowledge graph framework is established based on the connection relationship between network entities and event entities.
[0093] The construction module 12 is specifically used to fill the non-shared network entities and non-public event entities in the configuration files of the network devices belonging to the same device type among the multiple network devices into the edge framework of a region to obtain the edge knowledge graph corresponding to each type of network device.
[0094] The processing module 14 is also used to identify the edge knowledge graph corresponding to each type of network device by device type; in response to the comparison instruction, the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs is determined according to the device type of the network device to be detected and the device type identifier of the edge knowledge graph; the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs and the central knowledge graph constitute the standard knowledge graph to be compared; the knowledge graph corresponding to the network device to be detected is compared with the standard knowledge graph to be compared to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected.
[0095] The processing module 14 is also used to obtain key abnormal network entities in abnormal network entities and key abnormal event entities in abnormal event entities based on the connection relationship of the standard knowledge graph; the key abnormal network entity is the network entity connected to the most abnormal event entities among the abnormal network entities; the key abnormal event entity is the abnormal event connected to the most abnormal network entities among the abnormal event entities.
[0096] The construction module 12 is specifically used to extract network entities and event entities from the configuration file of the network device to be detected, and fill the extracted network entities and event entities into the knowledge graph framework to be detected to obtain the knowledge graph corresponding to the network device to be detected.
[0097] See also Figure 6 Embodiment 4 of the present application also provides an electronic device 20, comprising: a processor 21, and a memory 22 communicatively connected to the processor 21, the memory 22 storing computer execution instructions; the processor 21 executes the computer execution instructions stored in the memory 22 to implement the network device anomaly analysis method described in Embodiment 1 and Embodiment 2.
[0098] The present application also provides a computer-readable storage medium, which stores computer-executable instructions. When the instructions are executed, the computer-executable instructions are executed by a processor to implement the network device anomaly analysis method provided in any of the above embodiments.
[0099] It should be noted that the computer-readable storage medium may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), a magnetic random access memory (FRAM), a flash memory, a magnetic surface memory, an optical disk, or a compact disc read-only memory (CD-ROM), etc. It may also be various electronic devices including one or any combination of the above memories, such as mobile phones, computers, tablet devices, personal digital assistants, etc.
[0100] 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.
[0101] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.
[0102] 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 device (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.
[0103] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0104] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0105] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0106] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A method for analyzing abnormality of a network device, characterized in that: include: Get the configuration file of the network device to be detected; According to the configuration file of the network device to be detected, construct a knowledge graph corresponding to the network device to be detected; receiving a comparison instruction; In response to the comparison instruction, the knowledge graph corresponding to the network device to be detected is compared with the standard knowledge graph to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by the configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network; Wherein, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entities are connected to the network entities; the types of network entities include at least network devices, interfaces, protocols and services; Before comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, the method further includes: Obtaining configuration files of the plurality of network devices; Extracting a network entity and an event entity of each network device from configuration files of the plurality of network devices, and then extracting a common network entity and a common event entity in the configuration files of the plurality of network devices from the network entity and the event entity of each network device; The central frame in the standard knowledge graph framework is filled with the common network entities and common event entities in the configuration file of any network device to obtain the central knowledge graph, and then the edge frame in the standard knowledge graph framework is filled with the non-common network entities and non-common event entities in the configuration file of each network device to obtain the edge knowledge graph; the central knowledge graph and all edge knowledge graphs constitute the standard knowledge graph, and the standard knowledge graph framework is established based on the connection relationship between network entities and event entities.
2. The method according to claim 1, characterized in that The step of filling the edge framework in the standard knowledge graph framework with the non-shared network entities and non-shared event entities in the configuration file of each network device to obtain the edge knowledge graph comprises: The non-shared network entities and non-public event entities in the configuration files of the network devices belonging to the same device type among the multiple network devices are filled into the edge framework of a region to obtain an edge knowledge graph corresponding to each type of network device.
3. The method according to claim 2, characterized in that After obtaining the edge knowledge graph corresponding to each type of network device, the method further includes: Identify the edge knowledge graph corresponding to each type of network device by device type; In response to the comparison instruction, comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, obtaining abnormal network entities and abnormal event entities in the configuration file of the network device to be detected includes: In response to the comparison instruction, the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs is determined according to the device type of the network device to be detected and the device type identifier of the edge knowledge graph; the edge knowledge graph to which the knowledge graph corresponding to the network device to be detected belongs and the central knowledge graph constitute a standard knowledge graph to be compared; The knowledge graph corresponding to the network device to be detected is compared with the standard knowledge graph to be compared to obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected.
4. The method according to any one of claims 1 to 3, characterized in that: After comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph to obtain the abnormal network entity and abnormal event entity in the configuration file of the network device to be detected, the method further includes: Based on the connection relationship of the standard knowledge graph, key abnormal network entities in the abnormal network entities and key abnormal event entities in the abnormal event entities are obtained; The key abnormal network entity is a network entity connected to the most abnormal event entities among the abnormal network entities; The key abnormal event entity is an abnormal event connected to the most abnormal network entities among the abnormal event entities.
5. The method according to any one of claims 1 to 3, characterized in that: The step of constructing a knowledge graph corresponding to the network device to be detected according to the configuration file of the network device to be detected includes: The network entities and event entities are extracted from the configuration file of the network device to be detected, and the extracted network entities and event entities are filled into the knowledge graph framework to be detected to obtain the knowledge graph corresponding to the network device to be detected.
6. A network device anomaly analysis device, characterized in that: include: An acquisition module is used to acquire a configuration file of the network device to be detected; A construction module, used to construct a knowledge graph corresponding to the network device to be detected according to a configuration file of the network device to be detected; A receiving module, used for receiving a comparison instruction; A processing module, configured to respond to the comparison instruction, compare the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, and obtain abnormal network entities and abnormal event entities in the configuration file of the network device to be detected; the abnormal network entity is a network entity that generates an abnormal event, and the abnormal event entity is used to indicate the abnormal event generated by the abnormal network entity; the standard knowledge graph is constructed by the configuration files of multiple network devices, and the network device to be detected and the multiple network devices are in the same network; Wherein, the knowledge graph and the standard knowledge graph are both composed of network entities and event entities, and the event entities are connected to the network entities; the types of network entities include at least network devices, interfaces, protocols and services; Before comparing the knowledge graph corresponding to the network device to be detected with the standard knowledge graph, The acquisition module is used to acquire configuration files of the multiple network devices; extract the network entity and event entity of each network device from the configuration files of the multiple network devices, and then extract the common network entity and common event entity in the configuration files of the multiple network devices from the network entity and event entity of each network device; The construction module is used to fill the central frame in the standard knowledge graph framework with the common network entities and common event entities in the configuration file of any network device to obtain the central knowledge graph, and then fill the edge frame in the standard knowledge graph framework with the non-common network entities and non-common event entities in the configuration file of each network device to obtain the edge knowledge graph; the central knowledge graph and all edge knowledge graphs constitute the standard knowledge graph, and the standard knowledge graph framework is established based on the connection relationship between network entities and event entities.
7. An electronic device, characterized in that: include: A processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the network device anomaly analysis method according to any one of claims 1 to 5.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, and when the instructions are executed, the computer executes the network device anomaly analysis method according to any one of claims 1 to 5.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the network device anomaly analysis method according to any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
IT root fault analysis and recognition method based on knowledge graph and machine learning
CN109992440A
Fault diagnosis method and device for Internet of Things and equipment
CN111682960A
Data processing method and device and computer storage medium
CN112491636A
Fault root cause positioning method and device and computer storage medium
CN112787841A
Fault root cause determination method and device and computer storage medium
CN112887119A
