A method for quickly locating operation and maintenance faults based on network topology
By constructing a sub-network topology and introducing an attention mechanism in a complex network system, the problem of inefficiency of traditional fault location methods is solved, rapid and accurate location of complex network faults is achieved, and operation and maintenance efficiency is improved.
Patent Information
- Application Number
- CN202410302375.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-18
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-03-18
AI Technical Summary
In complex network systems, traditional fault location methods are inefficient and prone to missed detection or misjudgment. When multiple unrelated nodes fail simultaneously, it is difficult to quickly locate the source of the fault.
By dividing the scope of the system, constructing sub-network topology and setting up connection channels, collecting indicators and log data, performing vector representation and aggregation of alarm information, introducing attention mechanism and dot product similarity, and calculating the correlation distribution of alarm transactions , determine the root cause of the alarm.
It achieves rapid location of complex network faults, improves the authenticity and sensitivity of alarms, reduces the labor intensity of operation and maintenance personnel, reduces the scope of faults, and improves the efficiency and accuracy of fault location.
Smart Images

Figure CN118214649B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of network system operation and maintenance, and in particular to a method for quickly locating operation and maintenance faults based on a network topology structure. Background Art
[0002] With the rapid development of Internet technology and the deepening of enterprise informatization, the network has become an indispensable infrastructure for enterprise operations. However, as the scale and complexity of the network increase, the frequency and difficulty of locating network failures also increase accordingly. Traditional fault location methods often rely on the experience and judgment of operation and maintenance personnel and point-by-point inspection. This method is not only inefficient, but also prone to missed detection or misjudgment, which seriously affects the normal operation of the enterprise.
[0003] In the operation and maintenance management of network equipment, when the topology network or call link structure is complex, when a node fails and issues an alarm, the nodes associated with it that can sense the fault will also issue an alarm at the same time, resulting in a large number of alarms in a short period of time. It is difficult to determine the source of the fault in such a large number of alarms; when multiple unrelated nodes fail at the same time, it brings great challenges to the fault location work of the staff. In order to meet the rapid and accurate location of the operation and maintenance faults of a large system, we propose a method for rapid location of operation and maintenance faults based on network topology. Summary of the invention
[0004] The purpose of the present invention is to provide a method for quickly locating operation and maintenance faults based on a network topology structure.
[0005] The technical problems solved by the present invention are:
[0006] (1) How to split complex systems and build secure connection channels between sub-topological network structures;
[0007] (2) How to set different alarm rules to match different types of data to ensure the sensitivity and authenticity of the alarm;
[0008] (3) How to vectorize alarm information and aggregate massive amounts of alarm information to reduce alarm redundancy;
[0009] (4) How to introduce an attention mechanism into the aggregated alarm clusters and perform weighted summation according to the matching weights to obtain the alarm transactions, solve the probability distribution of the correlation between the alarm transactions and each alarm, obtain the protection alarm set including the root alarm, and quickly locate the root alarm.
[0010] The present invention can be implemented by the following technical solution: A method for quickly locating operation and maintenance faults based on a network topology structure, comprising the following steps:
[0011] Step 1: Divide the system into different ranges, and build sub-network topology structures in each sub-network based on the divided ranges, build connecting channels between key nodes in the sub-network topology structures, and set up defense walls at the connecting channels;
[0012] Step 2: Deploy probes at the physical layer, device layer, and application to collect indicator data, log data, and call chain data, and parse and store them in different formats;
[0013] Step 3: Set corresponding alarm rules according to different data characteristics to ensure the diversity and authenticity of alarms;
[0014] Step 4: vectorize the generated alarm information to facilitate subsequent calculations;
[0015] Step 5: Aggregate massive alarm information based on alarm vectorization and generate alarm clusters, which include root alarms and associated alarms.
[0016] Step 6: Build a root cause identification model to predict the probability distribution of the root cause alarms and related alarms in the alarm cluster, so as to obtain the confidence level of each alarm and locate the root cause alarm according to the confidence level.
[0017] A further technical improvement of the present invention is that the determination of the key node in step 1 is related to the device level of data interaction between the two sub-networks and the flow volume of the data interaction.
[0018] A further technical improvement of the present invention is that the alarm rules include fixed threshold alarms, year-on-year and year-on-year threshold alarms, and intelligent threshold alarms, which respectively give alarms for high stability, periodic changes, and follow-up dynamic data.
[0019] A further technical improvement of the present invention is that the specific steps of vectorizing the warning information in step 4 include:
[0020] First, remove special characters and irrelevant words in the warning information text;
[0021] Then, the denoised warning information text is segmented to obtain the corresponding word sequence matrix of the warning information text;
[0022] The BERT language representation model is used to generate the corresponding warning representation matrix [A, B] from the above word sequence matrix, where A is the batch size, B is the word vector dimension, and the text length is mapped to a fixed length.
[0023] A further technical improvement of the present invention is that: based on the alarm vectorization representation obtained in step 4, the cosine value between any two alarm vectors is calculated, and when the cosine value between the two vectors is larger, it means that the correlation between the two vectors is higher;
[0024] Set a correlation aggregation threshold. When the cosine value is greater than the correlation aggregation threshold, the similarity between the two alarms is considered high and they are included in the same alarm cluster.
[0025] For any alarm, the average value of its similarity with other alarms except itself is solved, the average value is sorted and the inclusion interval is set downward, and the alarms in the alarm cluster that are in the inclusion interval are retained to complete the aggregation of massive alarms.
[0026] A further technical improvement of the present invention is that the root cause identification model includes two levels. The first level introduces an attention mechanism to weight the alarms in the alarm cluster; the second level uses point multiplication similarity and softmax function to convert the output values of multiple categories into a probability distribution in the range of [0,1].
[0027] A further technical improvement of the present invention is that the step of locating the root alarm in the alarm cluster includes:
[0028] S1: Based on the attention mechanism, weights are assigned to each alarm in the alarm cluster according to the alarm priority;
[0029] S2: weighting the alarms based on the above-mentioned assigned weights and summing them up to obtain the alarm transaction;
[0030] S3: Use dot product similarity to estimate the correlation between an alarm and an alarm transaction;
[0031] S4: Obtain the confidence level of the correlation distribution;
[0032] S5: Obtain a set of assurance alarms based on the confidence ranking, and the operation and maintenance personnel conduct investigation and location based on the ranking within the set.
[0033] A further technical improvement of the present invention is that the alarm priority is related to the alarm level and the level of the alarm node. The higher the alarm level and the lower the level of the alarm node, the higher the alarm priority.
[0034] A further technical improvement of the present invention is that: assuming the sequence of the alarm cluster is [al1, al2, al3…al N ], the priority of the alarm is k i , the corresponding matching alarm weight is k i ', where i = 1, 2, 3...N, then the calculation formula for weighting the alarm is:
[0035]
[0036] The weighted sequence is [al'1,al'2,al'3…al' N ], sum up the alarm vectors in the sequence to obtain an alarm transaction AL.
[0037] A further technical improvement of the present invention is that: the calculation formula for estimating the correlation between a certain alarm and an alarm event using the dot product similarity is M i =AL·al i =∑(AL[x]·al i [y]), where x and y represent the position index of the element in the corresponding vector respectively;
[0038] Solve for the confidence level of the correlation distribution, that is:
[0039]
[0040] The alarm corresponding to the maximum confidence is taken as the root alarm, and the first n alarms are taken as the guarantee alarm set.
[0041] Compared with the prior art, the present invention has the following beneficial effects:
[0042] 1. The present invention is based on dividing the functional modules of the system, and constructing a sub-topology network structure for each divided range separately, and constructing a high-security connection channel between each sub-topology network structure to ensure the relative independence of each sub-topology network structure. On the one hand, it ensures the overall security of the system, and on the other hand, it can reduce the scope of alarm occurrence, which is conducive to the rapid positioning of subsequent alarms;
[0043] 2. Set different alarm rules to match different types of data, so as to reasonably select alarm rules according to the change rules of different data, ensure the sensitivity of the operation and maintenance system to fault information, reduce the risk of false alarms, and improve the authenticity of alarms;
[0044] 3. Vectorize the alarm text information and perform similarity aggregation to obtain alarm clusters. Introduce an attention mechanism based on the alarm clusters and perform weighted summation based on the matching weights to obtain alarm transactions. Calculate the probability distribution of the correlation between alarm transactions and each alarm, and obtain a protection alarm set containing the root alarm. In accordance with the order of the elements in the set, check and locate the alarms in turn, so as to quickly determine the location of the root alarm and reduce the labor intensity of the operation and maintenance personnel. BRIEF DESCRIPTION OF THE DRAWINGS
[0045] In order to facilitate understanding by those skilled in the art, the present invention is further described below with reference to the accompanying drawings.
[0046] Figure 1 A flowchart for executing the method of the present invention; DETAILED DESCRIPTION
[0047] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the specific implementation methods, structures, features and effects of the present invention are described in detail below in conjunction with the accompanying drawings and preferred embodiments.
[0048] See also Figure 1 As shown, a method for quickly locating operation and maintenance faults based on a network topology structure includes the following steps:
[0049] Step 1: Construction of network topology
[0050] The scanning network of the entire system is divided into ranges. The range division criteria can be differentiated according to the type of department, such as business department, functional department and technical department. The main reason for adopting this division method is that different departments have different equipment types, equipment parameters and network requirements.
[0051] Select an existing SNMP scanning tool, such as snmpwalk, which is a command-line tool for obtaining SNMP information. It can traverse the entire MIB tree or the specified OID tree and return the corresponding information. Use this scanning tool to obtain device information in the network, including device name, model, IP address, interface name, connection status, etc.
[0052] Based on the visualization tool, the sub-network topology diagram of the corresponding sub-network is constructed based on the collected device information. In the sub-network topology diagram, the device is represented as a parent node, and the connection relationship is represented as an edge. Each parent node automatically generates a unique identification code based on the device name and IP address;
[0053] The operation and maintenance platform directly deploys and installs probes on the devices in each sub-network in the cloud. After the probes are installed, the probe collector is turned on and an operation and maintenance receipt is sent to the operation and maintenance platform.
[0054] The probe is a set of lightweight plug-ins used to monitor application performance. It can be dynamically loaded when the application is started. Therefore, multiple child nodes representing applications can be built under the corresponding parent node of the device. Multiple applications can be run in a device, so there are multiple corresponding child nodes connected to the parent node. Each child node adds a digital number to the unique identification code of its parent node, thereby obtaining the unique identification code of the child node.
[0055] After the network topology of the sub-networks is constructed, the key nodes in the network topology of the two sub-networks are determined according to the data interaction levels and characteristics between different departments. These nodes generally occur at the underlying device level where data interaction occurs and at locations with the highest data interaction traffic. Physical network connection channels are constructed at the key nodes, and firewalls are set up between the network channels, thus forming a complete operation and maintenance network topology for the enterprise system. The setting of firewalls facilitates the control of data access between sub-networks, and can prevent the spread of disasters after a failure in one of the sub-networks. When data interaction occurs, record logs are automatically generated.
[0056] Step 2: Monitor the system based on the constructed network topology
[0057] System monitoring includes real-time monitoring of the device layer, data link layer, and application layer. Common monitoring indicators include connection status, memory usage, number of threads, data packet size, data transmission speed, traffic usage, response time, number of access failures, and custom monitoring indicators based on usage scenarios.
[0058] The operation and maintenance platform uses monitors built based on probes deployed in the device to collect monitoring data. The collected data is divided into indicator data, log data and call chain data; among them, indicator data is recorded in key-value pairs and supports json format parsing. Log data is recorded in xml format, which can flexibly represent various complex log structures, because its recorded data structure is richer, and is parsed using command line tools or third-party libraries (such as lxml, JAXB, etc.). Call chain data includes the service id and endpoint id of a service host called by the monitored device's stack, host identifier, and globally unique call chain id and timestamp, etc., which are also supported in json format; the above-mentioned parsed data are stored in the corresponding table in list or map format to facilitate subsequent queries.
[0059] Step 3: Set alarm rules based on different data characteristics
[0060] According to the stability and mobility characteristics of data, three types of alarms are set: fixed threshold alarm, year-on-year and month-on-month threshold alarm, and intelligent threshold alarm.
[0061] Among them, the fixed threshold alarm is aimed at data with high stability and almost no data migration. It determines the abnormal situation of the data point by judging whether the actual data is within the boundary. If the data point is greater than the upper boundary of the threshold or less than the lower boundary of the threshold, it is considered an abnormal point, otherwise it is a normal point; it should be noted that the fixed threshold alarm includes the fixed value alarm;
[0062] The year-on-year and month-on-month threshold alarm, for the case where the monitoring data is periodically changing data, compares the current monitoring data with the year-on-year (such as the same period yesterday) and month-on-month (such as the same period last week) data with the upper and lower boundary values of the data given by the k-sigma algorithm of the corresponding data point, and determines the abnormal situation of the data point by judging whether the actual data is within the boundary; the k-sigma algorithm, assuming that the values of normal data are concentrated around a mean and its variance is relatively stable, defines an interval to define the range of normal data, and regards data outside this range as abnormal values;
[0063] Intelligent threshold alarm is mainly used for situations where a certain data fluctuates due to the influence of another data or several other data. For example, the traffic size is related to the number and size of data packets transmitted in the current period. It adopts dynamic baseline detection algorithm to continuously update the baseline according to new data points to adapt to the dynamic changes of data flow.
[0064] Step 4: Standardize the format of the alarm information
[0065] Since alarm information is generated by different devices and recorded in different ways, the description methods when an alarm occurs are also different. For quantifiable data, it can be uniformly expressed in numbers, but for structured text information, it needs to be expressed in a standardized format to avoid computing power loss and efficiency loss caused by separate identification;
[0066] Specifically, the alarm information is vectorized and the text characters are represented as eigenvalues of different dimensions of the vector, so that they can be used for subsequent calculations. Generally speaking, the alarm information contains at least an alarm description, an alarm type, and an alarm level. The alarm description specifically indicates the description of the abnormal phenomenon. The alarm type is converted according to the type of monitoring data and matches the different alarm rules in step three. The alarm level mainly shows the importance of the alarm node. For example, the alarm level of the parent node is higher than that of the child node.
[0067] Based on this, construct a vectorized representation of the alarm information text:
[0068] First, remove special characters and irrelevant words from the warning information text;
[0069] The denoised alarm information text is segmented, and the continuous text is segmented according to key information such as device description, action description, level description, time description, etc., and then the corresponding word sequence matrix of the alarm information text is obtained;
[0070] Use the existing BERT language representation model to dynamically obtain the vector representation of each word according to the context, and use the average pooling strategy to aggregate the word sequence matrix of the warning text to generate the corresponding warning representation matrix [A, B], where A is the batch size and B is the word vector dimension. The text length is mapped to a fixed length to meet the input requirements of the subsequent model.
[0071] Step 5: Aggregate alarms based on alarm vectorization
[0072] When an alarm occurs at the end of the network topology, an alarm pop-up window will usually only appear on a single node. In this case, the fault location can be accurately located based on the alarm pop-up window of the relevant node, and the data in the list or map table five minutes before the alarm occurs can be retrieved based on the timestamp. The abnormal data, IP address and interface name can be automatically marked based on the threshold rules of the relevant data, so as to quickly lock the device, component or application that caused the alarm information.
[0073] However, most alarms are generated in a concentrated and rapid manner and are correlated with each other, resulting in a large amount of alarm information being received in a short period of time. The key to rapid location is to distinguish the root alarms and related alarms from the large amount of alarm information by noise reduction.
[0074] Based on the alarm vectorization representation in step 4, analyze the similarity between any two vectors: suppose the two alarm vectors are represented as P1 and P2 respectively, then calculate the cosine values of the two vectors as The cosine value range is [0,1]. The larger the cosine value between two vectors, the higher the similarity between the two vectors.
[0075] Set a threshold for correlation aggregation of massive alarms. When the cosine value between two vectors is greater than the set threshold, the two alarms are considered to have high similarity and are included in the same alarm cluster. The alarms included in the same alarm cluster are traversed to calculate the average value of the similarity between any alarm in the alarm cluster and other alarms, and the alarms are sorted according to the average value. The inclusion interval is set downward according to the maximum similarity average value in the alarms. The alarms in the alarm cluster that are within the inclusion interval are retained, and other alarms in other alarm clusters are ignored, thereby greatly reducing the redundancy of alarm messages and alleviating the difficulty of the operation and maintenance personnel.
[0076] Step 6: Build a root cause identification model to identify and locate the root cause alarm
[0077] The sequence of defining alarm clusters is [al 1, al 2, al3…al N], for the alarms retained in each alarm cluster, the alarm vectors are weighted according to the level of their alarm nodes and the alarm level, and the weighting principle is that the higher the alarm level and the lower the level of the alarm node (bottom-level alarm, such as the physical layer), the higher the alarm priority; the root cause identification model includes two levels. The first level introduces the attention mechanism to weight the alarms, thereby highlighting the dependency relationship between the elements in the alarm cluster series, that is, the dependency relationship between the associated alarms and the root cause alarms; the second level uses the dot product similarity and the softmax function to convert the output values of multiple classifications into a probability distribution in the range of [0,1], thereby converting it into a confidence prediction problem for the root cause alarm.
[0078] To this end, we introduce an attention mechanism, which assigns different weights to each element in the input sequence so that the most important part can be focused on during data processing. Let the priority of the alarm be k i , the corresponding matching alarm weight is k i ', where i = 1, 2, 3...N, then the calculation formula for weighting the alarm is:
[0079]
[0080] Then we get the weighted sequence [al'1,al'2,al'3…al' N ], perform vector summation on the weighted sequence to obtain an alarm transaction AL;
[0081] Identify an alarm in the alarm cluster as the root alarm, and use the dot product similarity to estimate the correlation between an alarm and the alarm event.
[0082] M i =AL·al i =∑(AL[x]·al i [y]);
[0083] Where x and y represent the position index of the elements in the corresponding vector, and the elements in the vector represent the information characteristics of the alarm;
[0084] Then the confidence of the correlation distribution is obtained, that is:
[0085]
[0086] The higher the confidence, the greater the possibility that the corresponding alarm is the root alarm, and the remaining alarms are related alarms;
[0087] The alarm corresponding to the maximum confidence level is taken as the root alarm, and the first n alarms are taken as the guarantee alarm set. The operation and maintenance personnel can then sort the alarms from large to small according to the confidence level, and investigate and locate the alarms in turn, which greatly speeds up the alarm positioning speed and accuracy.
[0088] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention has been disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technical personnel in this field can make some changes or modify the technical contents disclosed above into equivalent embodiments without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent change and modification made to the above embodiments according to the technical essence of the present invention without departing from the content of the technical solution of the present invention still fall within the scope of the technical solution of the present invention.
Claims
1. A method for quickly locating operation and maintenance faults based on network topology, characterized in that: The steps include: Step 1: Divide the system into different ranges, and build subnetwork topology structures in each subnetwork based on the divided ranges, build connecting channels between key nodes in the subnetwork topology structures, and set up defense walls at the connecting channels; Step 2: Deploy probes at the physical layer, device layer, and application to collect indicator data, log data, and call chain data, and parse and store them in different formats; Step 3: Set corresponding alarm rules according to different data characteristics to ensure the diversity and authenticity of alarms; Step 4: vectorize the generated alarm information to facilitate subsequent calculations; Step 5: Aggregate massive alarm information based on alarm vectorization and generate alarm clusters, which include root alarms and associated alarms. Step 6: Build a root cause identification model to predict the probability distribution of the root cause alarms and related alarms in the alarm cluster, so as to obtain the confidence level of each alarm and locate the root cause alarm according to the confidence level.
2. According to claim 1, a method for quickly locating operation and maintenance faults based on network topology structure is characterized in that: The determination of the key nodes in step 1 is related to the device level of data interaction between the two sub-networks and the flow volume of data interaction.
3. The method for quickly locating operation and maintenance faults based on network topology structure according to claim 1 is characterized in that: The alarm rules include fixed threshold alarm, year-on-year and month-on-month threshold alarm and intelligent threshold alarm, which respectively give alarms for high stability, periodic changes and follow-up dynamic data.
4. The method for quickly locating operation and maintenance faults based on network topology structure according to claim 1 is characterized in that: The specific steps of vectorizing the alarm information in step 4 include: First, remove special characters and irrelevant words in the warning information text; Then, the denoised warning information text is segmented to obtain the corresponding word sequence matrix of the warning information text; The BERT language representation model is used to generate the corresponding warning representation matrix [A, B] from the above word sequence matrix, where A is the batch size, B is the word vector dimension, and the text length is mapped to a fixed length.
5. The method for quickly locating operation and maintenance faults based on network topology structure according to claim 1 is characterized in that: Based on the alarm vector representation obtained in step 4, the cosine value between any two alarm vectors is calculated. The larger the cosine value between the two vectors, the higher the correlation between the two vectors. Set a correlation aggregation threshold. When the cosine value is greater than the correlation aggregation threshold, the similarity between the two alarms is considered high and they are included in the same alarm cluster. For any alarm, the average value of its similarity with other alarms except itself is solved, the average value is sorted and the inclusion interval is set downward, and the alarms in the alarm cluster that are in the inclusion interval are retained to complete the aggregation of massive alarms.
6. The method for quickly locating operation and maintenance faults based on network topology structure according to claim 1, characterized in that: The root cause identification model includes two levels. The first level introduces an attention mechanism to weight the alarms in the alarm cluster; the second level uses point product similarity and softmax function to convert the output values of multiple categories into a probability distribution in the range of [0,1].
7. A method for quickly locating operation and maintenance faults based on network topology structure according to claim 6, characterized in that: The steps to locate the root alarm in an alarm cluster include: S1: Based on the attention mechanism, weights are assigned to each alarm in the alarm cluster according to the alarm priority; S2: weighting the alarms based on the above-mentioned assigned weights and summing them up to obtain the alarm transaction; S3: Use dot product similarity to estimate the correlation between an alarm and an alarm transaction; S4: Obtain the confidence level of the correlation distribution; S5: Obtain a set of assurance alarms based on the confidence ranking, and the operation and maintenance personnel conduct investigation and location based on the ranking within the set.
8. A method for quickly locating operation and maintenance faults based on network topology structure according to claim 7, characterized in that: The alarm priority is related to the alarm level and the level of the alarm node. The higher the alarm level is and the lower the level of the alarm node is, the higher the alarm priority is.
9. A method for quickly locating operation and maintenance faults based on network topology structure according to claim 8, characterized in that: Assume the sequence of alarm clusters is [al1,al 2, al3···al N ], the priority of the alarm is k i , the corresponding matching alarm weight is k i ', where i = 1, 2, 3...N, then the calculation formula for weighting the alarm is: The weighted sequence is [al'1,al'2,al'3···al' N ], sum up the alarm vectors in the sequence to obtain an alarm transaction AL.
10. A method for quickly locating operation and maintenance faults based on network topology structure according to claim 9, characterized in that: The calculation formula for estimating the correlation between an alarm and an alarm transaction using point product similarity is M i =AL·al i =∑(AL[x]·al i [y]), where x and y represent the position index of the element in the corresponding vector respectively; Solve for the confidence level of the correlation distribution, that is: The alarm corresponding to the maximum confidence is taken as the root alarm, and the first n alarms are taken as the guarantee alarm set.
