Fault detection method and device of network equipment and electronic equipment

By acquiring and monitoring dynamic topology diagrams of network equipment, using fault prediction models to analyze data, and judging faults in real time, the problem of low fault detection efficiency in the existing technology is solved, and rapid response and high-precision fault location are achieved.

CN118740678APending Publication Date: 2024-10-01CHINA TELECOM CORP LTD
View PDF 0 Cites 10 Cited by

Patent Information

Application Number
CN202410832629.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In the existing technology, network equipment fault detection methods mainly rely on offline data or are based on preset rules, resulting in low fault detection efficiency and unable to meet the needs of real-time fault detection and rapid response.

Method used

By obtaining the dynamic topology map of network equipment, monitoring node data changes, and using the fault prediction model to analyze the monitoring data, judge and locate faults in real time. The dynamic topology map reflects the data correlation and status changes between network devices, and the predicted data volume is greater than the threshold. It is determined that the target device is faulty.

Benefits of technology

It improves the speed and accuracy of fault detection, realizes real-time monitoring and fault location, and solves the problem of low fault detection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118740678A_ABST
    Figure CN118740678A_ABST
Patent Text Reader

Abstract

The invention discloses a fault detection method and device for network equipment and electronic equipment. The method comprises the steps that a dynamic topological graph of network devices is acquired, each network device corresponds to each node in the dynamic topological graph, and the dynamic topological graph is used for reflecting the data incidence relation between the network devices and the state change of the network devices; data changes of nodes in the dynamic topological graph are monitored to obtain monitoring data, and the monitoring data comprise at least one of link load data, node state data and flow data of the dynamic topological graph; analyzing the monitoring data through the fault prediction model to obtain a predicted data volume; and under the condition that the predicted data volume is greater than the target threshold value, determining that the target equipment has a fault. The fault detection method and device solve the technical problem that the fault detection efficiency is low due to the fact that a fault detection method in the related technology mainly depends on offline data or performs fault judgment based on a preset rule.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of network management, and in particular to a method and device for detecting faults of network equipment and electronic equipment. Background Art

[0002] In large-scale network equipment, failures are inevitable, which may cause service interruption, delay or performance degradation, bringing serious impact to operators, enterprises and users. Therefore, efficient and accurate detection and location of faults has become the primary task of network management and operation and maintenance personnel.

[0003] The fault detection and location methods in related technologies mainly rely on offline data analysis or rule-based fault judgment mechanisms, which often cannot meet the needs of real-time fault detection and rapid response in communication networks. In addition, the application of network topology maps in fault analysis is relatively limited and has not fully realized its potential.

[0004] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0005] The embodiments of the present application provide a fault detection method, device and electronic device for a network device, so as to at least solve the technical problem of low fault detection efficiency caused by the fact that the fault detection method in the related art mainly relies on offline data or performs fault judgment based on preset rules.

[0006] According to one aspect of an embodiment of the present application, a detection method for a network device is provided, comprising: obtaining a dynamic topology map of the network device, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between the network devices and the state changes of the network devices; monitoring the data changes of the nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and flow data of the dynamic topology map; analyzing the monitoring data through a fault prediction model to obtain a predicted data volume, wherein the predicted data volume is used to represent the data passed by a target device in the network device at a target time, and the target device is any device in the network device; when the predicted data volume is greater than a target threshold, determining that a fault has occurred in the target device.

[0007] Optionally, the dynamic topology map is determined in the following manner: determine the network device from a business system including at least one network device, and obtain device information of the network device, wherein the device information includes at least attribute information and status information of the network device; determine the connection relationship of the network device; and determine the dynamic topology map based on the device information and the connection relationship.

[0008] Optionally, obtaining device information of a network device includes: sending a query request to the network device through a network device management protocol, wherein the query request includes at least one object identifier, and the object identifier is used to identify the value of a manageable object on the network device; receiving a response message from the network device; parsing the response message to obtain the device information of the network device.

[0009] Optionally, determining the connection relationship of network devices includes: receiving a neighbor discovery message sent by the network device under preset conditions, wherein the neighbor discovery message includes at least device information of the network device and device information of an adjacent device; parsing the neighbor discovery message to obtain the connection relationship of the network device.

[0010] Optionally, the fault prediction model is trained in the following manner: obtaining historical monitoring data of network equipment; training the initial fault prediction model through the historical monitoring data to obtain an initial prediction data volume; updating the parameters of the initial fault prediction model when the initial prediction data volume is greater than a preset threshold, and stopping the updating until the initial prediction data volume is less than or equal to the preset threshold, to obtain a fault prediction model.

[0011] Optionally, before training the initial fault prediction model through historical monitoring data, the method also includes: determining whether the historical monitoring data of the network device contains label data, wherein the label data is used to indicate the type of fault to which the network device belongs; if the historical monitoring data contains label data, training the fault prediction model through a supervised learning algorithm; if the historical monitoring data does not contain label data, training the fault prediction model through an unsupervised learning algorithm.

[0012] Optionally, the target threshold is updated in the following manner: obtaining historical residual values ​​of the initial prediction data volume and historical monitoring data; splitting the historical residual values, and summarizing the historical residual values ​​in the same split units within a preset time period to obtain a summary result; calculating the average value of the summary result to obtain the average residual value of the historical residual values ​​in different split units; constructing a Gaussian distribution model based on the average residual value, wherein the Gaussian distribution model is used to represent the normal distribution of historical residual values; and updating the target threshold based on the distribution of the Gaussian distribution model.

[0013] According to another aspect of an embodiment of the present application, a fault detection device for a network device is also provided, including: an acquisition module, used to acquire a dynamic topology map of the network device, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between the network devices and the state changes of the network devices; a monitoring module, used to monitor the data changes of the nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and traffic data of the dynamic topology map; a prediction module, used to analyze the monitoring data through a fault prediction model to obtain a predicted data volume, wherein the predicted data volume is used to represent the data passed by a target device in the network device at a target time, and the target device is any device in the network device; a determination module, used to determine that a fault has occurred in the target device when the predicted data volume is greater than a target threshold.

[0014] According to another aspect of an embodiment of the present application, there is also provided an electronic device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the fault detection method of the above-mentioned network device.

[0015] According to another aspect of the embodiment of the present application, a non-volatile storage medium is also provided, including: the non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned network device fault detection method by running the computer program.

[0016] According to another aspect of the embodiments of the present application, a computer program product is provided, including computer instructions, which implement the above-mentioned fault detection method for the network device when executed by a processor.

[0017] In an embodiment of the present application, a dynamic topology map of a network device is obtained, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between network devices and the state changes of network devices; the data changes of the nodes in the dynamic topology map are monitored to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and traffic data of the dynamic topology map; the monitoring data is analyzed by a fault prediction model to obtain a predicted data volume, wherein the predicted data volume is used to represent the data passed by a target device in the network device at a target time, and the target device is any device in the network device; when the predicted data volume is greater than the target threshold, it is determined that a fault has occurred in the target device, thereby achieving the purpose of real-time monitoring of the state of the network device through the dynamic topology map, and performing fault judgment and fault location based on the monitoring data, thereby achieving the technical effect of improving the speed and accuracy of fault detection, and further solving the technical problem of low fault detection efficiency caused by the fault detection method in the related art mainly relying on offline data or performing fault judgment based on preset rules. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] 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:

[0019] Figure 1 is a hardware structure diagram of a computer terminal for implementing a fault detection method for a network device according to an embodiment of the present application;

[0020] Figure 2 is a flow chart of a method for fault detection of a network device according to an embodiment of the present application;

[0021] Figure 3 is a schematic diagram of a target threshold adjustment and alarm service process according to an embodiment of the present application;

[0022] Figure 4 It is a structural diagram of a fault detection device for a network device according to an embodiment of the present application. DETAILED DESCRIPTION

[0023] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not 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 should fall within the scope of protection of the present application.

[0024] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0025] First, some nouns or terms that appear in the process of explaining the embodiments of the present application are subject to the following explanations:

[0026] Dynamic (network) topology diagram: A graph that obtains the connection relationship and status information of nodes, links and devices in the network in real time.

[0027] Simple Network Management Protocol (SNMP): A standard protocol for network device management. It provides a set of standard management interfaces by deploying agent programs on network devices, allowing administrators to remotely monitor and control devices.

[0028] In order to solve the problem of low fault detection efficiency in the related art, the present application embodiment provides a fault detection method for a network device. The method can be run on Figure 1 In the computer terminal shown, the computer terminal is described below.

[0029] The network device fault detection method embodiment provided in the embodiment of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Figure 1 The hardware structure block diagram of a computer terminal for implementing a method for detecting a fault in a network device is shown. Figure 1As shown, the computer terminal 10 may include one or more (102a, 102b, ..., 102n are used to illustrate) processors (the processor may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 104 for storing data, and a transmission module 106 for communication functions connected via a wired and / or wireless network. In addition, it may also include: a display, a keyboard, a cursor control device, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, and a BUS bus. Those skilled in the art can understand that Figure 1 The structure shown is only for illustration and does not limit the structure of the above electronic device. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.

[0030] It should be noted that the one or more processors and / or other data processing circuits described above may generally be referred to herein as "data processing circuits". The data processing circuits may be embodied in whole or in part as software, hardware, firmware, or any other combination thereof. In addition, the data processing circuit may be a single independent processing module, or may be incorporated in whole or in part into any of the other components in the computer terminal 10. As described in the embodiments of the present application, the data processing circuit acts as a processor control (e.g., selection of a variable resistor terminal path connected to an interface).

[0031] The memory 104 can be used to store software programs and modules of application software, such as program instructions / data storage devices corresponding to the fault detection method of the network device in the embodiment of the present application. The processor executes various functional applications and data processing by running the software programs and modules stored in the memory 104, that is, the fault detection method of the network device described above is realized. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor, and these remote memories may be connected to the computer terminal 10 via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0032] The transmission module 106 is used to receive or send data via a network. The specific example of the above network may include a wireless network provided by a communication provider of the computer terminal 10. In one example, the transmission module 106 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission module 106 can be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.

[0033] The display may be, for example, a touch screen liquid crystal display (LCD) that enables a user to interact with a user interface of the computer terminal 10 .

[0034] It should be noted that, in some optional embodiments, the above Figure 1 The computer terminal shown may include hardware elements (including circuits), software elements (including computer code stored on a computer-readable medium), or a combination of hardware elements and software elements. It should be noted that Figure 1 This is merely one example of a particular embodiment and is intended to illustrate the types of components that may be present in the computer terminal described above.

[0035] In the above-mentioned operating environment, an embodiment of the present application provides an embodiment of a fault detection method for a network device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although the logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0036] Figure 2 is a flow chart of a method for detecting a fault of a network device according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:

[0037] Step S202, obtaining a dynamic topology map of network devices, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between network devices and the state change of the network devices.

[0038] In the above step S202, in order to reflect the status changes and data flows in the network device in real time, the relevant information of the network device (such as the attribute information, status information and connection relationship between the network devices) can be obtained through the network management protocol (such as the SNMP protocol), and a real-time updated graphical representation of the network device connection and status can be constructed, that is, the above-mentioned dynamic topology diagram.

[0039] Step S204, monitoring data changes of nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and flow data of the dynamic topology map.

[0040] In the above step S204, the data change information of the nodes in the dynamic topology diagram is monitored in real time, such as the link load of the monitoring node (such as link utilization, broadband utilization, etc.), node status (such as CPU utilization, resource utilization, etc.), and traffic data (such as the average delay and packet loss rate of data packets, etc.), which can accurately capture the slight changes in network equipment and provide a real-time data basis for subsequent fault prediction.

[0041] Step S206, analyzing the monitoring data through the fault prediction model to obtain the predicted data volume, wherein the predicted data volume is used to represent the data passed by the target device in the network device at the target time, and the target device is any device in the network device.

[0042] In the above step S206, the acquired monitoring data is input into a pre-trained fault prediction model, and the data volume of the target device (any device in the network device) at a certain moment in the future (i.e., the above target moment) can be obtained. Based on the fluctuation of the predicted data volume of all target devices compared to the current data volume, the fault prediction of the network device at a certain moment in the future can be obtained, such as the probability distribution of the fault type or the prediction of the fault location, etc., so as to realize the early identification of possible fault risks.

[0043] Step S208: When the predicted data volume is greater than the target threshold, it is determined that the target device fails.

[0044] In the above step S208, a standard threshold for fault judgment is set, that is, the above target threshold. When the predicted data volume of the target device exceeds the target threshold, the system will automatically determine that a fault has occurred in the target device, thereby effectively identifying the fault and avoiding delays and errors caused by relying on manual judgment.

[0045] Through the above steps S202 to S208, the purpose of real-time monitoring of the network device status through the dynamic topology map and fault judgment and fault location based on the monitoring data is achieved, thereby achieving the technical effect of improving the speed and accuracy of fault detection, and further solving the technical problem of low fault detection efficiency caused by the fault detection method in the related art mainly relying on offline data or based on preset rules for fault judgment. The following is a detailed description.

[0046] In the above step S202, the dynamic topology map can be determined in the following manner: determine the network device from a business system including at least one network device, and obtain the device information of the network device, wherein the device information at least includes attribute information and status information of the network device; determine the connection relationship of the network device; and determine the dynamic topology map based on the device information and the connection relationship.

[0047] Optionally, obtaining device information of a network device includes: sending a query request to the network device through a network device management protocol, wherein the query request includes at least one object identifier, and the object identifier is used to identify the value of a manageable object on the network device; receiving a response message from the network device; parsing the response message to obtain the device information of the network device.

[0048] Optionally, determining the connection relationship of network devices includes: receiving a neighbor discovery message sent by the network device under preset conditions, wherein the neighbor discovery message includes at least device information of the network device and device information of an adjacent device; parsing the neighbor discovery message to obtain the connection relationship of the network device.

[0049] In the embodiment of the present application, the dynamic topology map provides real-time data and basis for fault prediction and location of network devices. The dynamic topology map is constructed with the help of the device discovery function and neighbor discovery function in the SNMP protocol, as follows:

[0050] 1. Get the device information of the network device.

[0051] First, all network devices are identified from the business system (such as the communication network or other network business system) and used as nodes of the dynamic topology map. Secondly, through the device discovery function item in the SNMP protocol, the network device sends a query request with an object identifier, which is used to identify all queryable or manageable data objects in the network device. Then, the network device will return a response message to respond to the query request sent by the SNMP protocol. By parsing the response message, relevant information of the network device can be obtained. The relevant information may include attribute information (such as the name, model, port status, link quality, etc. of the network device), status information (such as the operating status of the network device, performance indicators, association status between network devices, etc.) and other relevant information.

[0052] 2. Determine the connection relationship between network devices.

[0053] After the SNMP protocol starts the neighbor discovery function, the network device will send a neighbor discovery message within a preset time or condition. The neighbor discovery message will contain the device information of the network device itself and the device information of the devices adjacent to the network device. By parsing the neighbor discovery message, the connection relationship between network devices can be obtained.

[0054] 3. Build a dynamic topology diagram of network devices.

[0055] Based on the acquired device information of network devices and the connection relationship between network devices, a dynamic topology map of network devices can be constructed to reflect the data association relationship between network devices and the state changes of network devices themselves (such as operating status or association status with other network devices, etc.). At the same time, as the state of network devices changes, the dynamic topology map will be continuously updated to ensure the accuracy and timeliness of data.

[0056] In the above step S206, the fault prediction model can be trained in the following manner: obtaining historical monitoring data of network equipment; training the initial fault prediction model through the historical monitoring data to obtain an initial prediction data volume; updating the parameters of the initial fault prediction model when the initial prediction data volume is greater than a preset threshold, and stopping the updating until the initial prediction data volume is less than or equal to the preset threshold, thereby obtaining a fault prediction model.

[0057] Optionally, before training the initial fault prediction model through historical monitoring data, the method also includes: determining whether the historical monitoring data of the network device contains label data, wherein the label data is used to indicate the type of fault to which the network device belongs; if the historical monitoring data contains label data, training the fault prediction model through a supervised learning algorithm; if the historical monitoring data does not contain label data, training the fault prediction model through an unsupervised learning algorithm.

[0058] In an embodiment of the present application, historical monitoring data may include:

[0059] 1. Link load data

[0060] It can be calculated by monitoring the traffic information on the link. Common indicators include link utilization, bandwidth utilization, etc. Among them, link utilization can be calculated using the following formula: link utilization = (current traffic in the link) / (maximum capacity of the link). Bandwidth utilization can be calculated using the following formula: bandwidth utilization = (current traffic in the link) / (available bandwidth of the link).

[0061] 2. Node status data

[0062] By monitoring the node status information, such as CPU utilization, memory usage, etc., it is used to determine whether a fault occurs on the node. The node resource utilization can be calculated using the following formula: resource utilization = (resources currently used by the node) / (total resource capacity of the node).

[0063] 3. Traffic data

[0064] By analyzing network traffic data, such as the average delay and packet loss rate of data packets, it is possible to determine whether there is a fault. The average delay can be calculated by counting the average time it takes for data packets to be transmitted over a period of time; the packet loss rate can be calculated by counting the proportion of data packets that are lost during a period of time.

[0065] 4. Other Data

[0066] Circuit faults may include cable disconnection, cable short circuit, signal attenuation, etc. Therefore, circuit fault parameters can also be used as input features for training the prediction fault model, such as cable conductivity, resistance value, voltage drop and other information.

[0067] In addition, other data corresponding to network devices can also be used as input features for training fault prediction models, such as quality of service QoS parameters of network connections, throughput transmitted through links or interfaces, temperature conditions of devices (such as the temperature change rate over continuous time), disk utilization, data transmission error rate, average temperature in device sensor data, failure rate (determined by maintenance records and the total working time of the equipment), packet forwarding rate and other data.

[0068] Furthermore, the collected historical monitoring data is divided into a training set and a test set. The training set is used to train the fault prediction model, and the test set is used to evaluate the fault training model. The division method can include random division, chronological division, etc. In general, the training set occupies the majority of the data (such as 70% to 80%), while the test set occupies a smaller part.

[0069] Among them, if the number of samples of different categories in the data set is unbalanced, some methods can be used to deal with it. For example, oversampling (increasing minority class samples) or undersampling (reducing majority class samples), etc., to make the number of samples of each category more balanced. For smaller data sets, in order to make better use of data and more reliably evaluate model performance, cross-validation methods can be used. Common cross-validation includes K-fold cross-validation and leave-one-out cross-validation. In K-fold cross-validation, the data set is divided into K subsets, one of which is used as a test set each time, and the remaining subsets are used as training sets. Repeat this process K times to obtain more stable performance evaluation results. When the proportion of samples of different categories in the data set is unbalanced, a stratified sampling method can be used to ensure that the proportion of each category in the training set and the test set is similar. This helps prevent the model from overfitting or ignoring certain categories.

[0070] After dividing the historical monitoring data, select a suitable machine learning algorithm and training set to train an initial fault prediction model. The machine learning algorithm can be selected as follows:

[0071] First, determine whether the historical monitoring data contains label data, which is a known fault type used to indicate the fault status of the network device at a certain point in the past. If the historical monitoring data contains label data, use a supervised learning algorithm (such as decision trees, support vector machines, etc.) to train the fault prediction model. The supervised learning algorithm can learn the pattern of fault occurrence based on the input feature data and the corresponding label data. If the historical monitoring data does not contain label data, use an unsupervised learning algorithm (such as the K-means clustering algorithm) to train the fault prediction model. The unsupervised learning algorithm can discover patterns and structures in feature data without explicit label data guidance. The formulas of the above algorithms are as follows:

[0072] 1. Decision Tree

[0073]

[0074] Among them, Gini represents the coefficient of the decision tree, x represents the historical monitoring data, k represents the number of fault categories to which the historical monitoring data belongs, and p j Indicates the frequency of occurrence of the jth fault category in historical monitoring data.

[0075] 2. Support Vector Machine

[0076] ω T x+b=0

[0077] Among them, x represents historical monitoring data, ω represents the weight vector, and b represents the bias term, which determines the distance from the hyperplane of the support vector machine to the origin.

[0078] 3. K-means clustering

[0079]

[0080] Among them, the historical monitoring data is divided into k clusters, k represents the number of divided clusters, si represents the point set of the i-th cluster, ci represents the center point of the i-th cluster, and ||x-ci|| represents the Euclidean distance from si to the cluster center point ci.

[0081] The above three algorithms can be selected according to the characteristics of historical monitoring data and the needs of the problem during the training process of the fault prediction model to achieve the best prediction effect.

[0082] During the training process, the initial amount of prediction data can be obtained. Furthermore, if the initial amount of prediction data is greater than a preset threshold (the amount of standard data set in advance at a certain moment in the future), it means that the failure risk of the initial fault prediction model is too high, and the model parameters (such as learning rate, regularization coefficient, number of network layers, and number of neurons, etc.) need to be readjusted to optimize the prediction performance of the initial fault prediction model.

[0083] Through continuous iteration, the prediction accuracy of the initial prediction model is gradually optimized until the amount of initial prediction data is less than or equal to the preset threshold, or the performance of the initial fault prediction model no longer increases significantly, the iterative training of the model is terminated to obtain the fault prediction model.

[0084] In another embodiment, predefined rules and thresholds may also be used to determine the fault location. For example, based on expert experience and historical fault data, a set of fault rules may be defined to clearly indicate which combination of conditions may cause a fault. Another example is to set thresholds for normal operation and fault status for each performance indicator, such as CPU utilization exceeding 90% is considered abnormal.

[0085] In the above step S208, in order to adapt to the state changes of the network equipment, the target threshold is also updated in real time, and the target threshold can be updated in the following ways: obtain the historical residual values ​​of the initial predicted data volume and the historical monitoring data; split the historical residual values, and summarize the historical residual values ​​in the same split units within a preset time period to obtain a summary result; calculate the average value of the summary result to obtain the average residual value of the historical residual values ​​in different split units; construct a Gaussian distribution model based on the average residual value, wherein the Gaussian distribution model is used to represent the normal distribution of the historical residual values; update the target threshold based on the distribution of the Gaussian distribution model.

[0086] Figure 3 FIG. 1 is a schematic diagram of a target threshold adjustment and alarm service process according to an embodiment of the present application. Figure 3 As shown in the upper part, the target threshold is updated as follows:

[0087] 1. Collect historical residual data

[0088] Determine the difference between the historical monitoring data and the initial prediction data volume during the fault prediction model training process, that is, the above-mentioned historical residual value. Regularly record the historical residual value obtained after each prediction to facilitate subsequent data analysis and threshold update.

[0089] 2. Data Splitting

[0090] The historical residual values ​​are split according to time (such as hours). For each time period, the historical residual values ​​of the preset time period (such as within 15 days) are summarized to obtain the summary result. Furthermore, according to different alarm detection sensitivities (such as high sensitivity, medium sensitivity and low sensitivity), the average value of the summary result is calculated to obtain the average residual value of the historical residual values ​​in different time periods. For example, medium sensitivity may require an average value of 5 minutes. The summary result and the average residual value are used as the basic data for fitting the Gaussian distribution.

[0091] 3. Fitting Gaussian distribution

[0092] Fit the Gaussian distribution based on the summary results and the average residual value, and automatically optimize the parameters. For example: automatically fit multiple Gaussian distributions based on a series of hyperparameters set in advance, and use Shapiro-Wilk to perform a normality test to obtain the optimal Gaussian distribution for the fit.

[0093] 4. Update target threshold

[0094] The confidence interval of the historical residual value is calculated based on the normal distribution of the Gaussian distribution model. The commonly used confidence levels are 95% and 99%. The target threshold of fault detection is updated according to the confidence interval to realize the judgment of the amount of predicted data.

[0095] Furthermore, when the predicted data volume is greater than the target threshold, it is determined that the target device corresponding to the predicted data volume has a fault, and an alarm service is started. Figure 3 As shown in the lower part, the alarm service is as follows:

[0096] The predicted data volume and target threshold are obtained from the Redis database, the preset alarm rules are obtained from the MySQL database on time, the real-time monitoring data is obtained from Kafka, and the monitoring data is cleaned and aggregated in real time through Flink. Among them, the Flink time window sets different alarm detection sensitivity windows, namely high sensitivity, medium sensitivity and low sensitivity. According to the difference between the real-time monitoring data and the predicted data volume, and compared with the target threshold, alarm prompts with different fault detection sensitivities can be obtained. Further, the alarm prompt is sent to the maintenance personnel, who will confirm or mark the alarm prompt through the data feedback channel to start the fault handling link. In addition, during the fault handling process, the system will record and analyze the effects and feedback data of various fault handling methods. Through these data, the fault handling strategy can be optimized and improved, the fault recovery process can be automated, and the best practice solution can be recommended. The system can also establish a knowledge base to store fault cases and solutions to provide reference and guidance for maintenance personnel.

[0097] Among them, the detection sensitivity of the alarm is divided into three sensitivities: high, medium, and low. The higher the sensitivity, the more sensitive it is to the traffic fluctuation of the domain name, and the more likely it is to generate an alarm. Users can configure the required sensitivity according to the monitoring needs of the domain name traffic. If the domain name traffic fluctuates frequently and irregularly, the sensitivity will be lowered; if the domain name traffic is relatively regular and rarely has large traffic jitters, the sensitivity will be increased; you can also directly configure the medium sensitivity. If you find frequent alarms, you can lower the sensitivity at any time, and vice versa.

[0098] Defining high, medium, and low levels of sensitivity is achieved through quantitative means. The following is a design solution:

[0099] 1. Collect historical data:

[0100] First, it is necessary to collect domain name traffic data over a period of time, including fluctuations and alarm records.

[0101] 2. Calculate volatility indicators:

[0102] Calculate domain traffic data using appropriate volatility indicators, such as standard deviation, coefficient of variation, kurtosis, skewness, etc. These indicators can reflect the degree of traffic volatility.

[0103] 3. Determine the threshold:

[0104] Based on the distribution of volatility indicators, the range can be divided into three levels: high, medium, and low. The range can be divided into three intervals based on the percentile of the indicator (25%, 50%, 75%).

[0105] 4. Assign sensitivity levels:

[0106] Based on the defined threshold, the value of each volatility indicator is associated with the corresponding sensitivity level. For example, a linear or nonlinear mapping function can be used to map the indicator value to the sensitivity level.

[0107] 5. Verification and adjustment:

[0108] Use new traffic data to verify whether the sensitivity levels you have assigned are reasonable. If you find that the alarm frequency for a certain level is too high or too low, you can optimize the results by adjusting the threshold or reallocating the levels.

[0109] This quantitative design scheme can associate the sensitivity level with the indicator value based on historical data and fluctuation indicators. Through this scheme, each detection sensitivity can fall into high, medium, and low levels. At the same time, it can also improve the creativity of the scheme, because according to the actual situation, the appropriate fluctuation indicator, threshold and sensitivity level division method can be flexibly selected to meet the needs of specific application scenarios.

[0110] In another embodiment, the prediction results of the fault prediction model can also be further judged by establishing a normal behavior model. For example, the normal behavior model is trained by a supervised learning algorithm and the above historical monitoring data, and the amount of abnormal prediction data is detected to identify abnormal situations that do not conform to the normal behavior model, without relying on preset rules or target thresholds, but by learning the inherent patterns of historical monitoring data to detect faulty network devices.

[0111] In an embodiment of the present application, a detailed dynamic topology map is constructed based on the device information and status information of the network device, which accurately reflects the data association relationship between each level and the status information of the network device itself. By monitoring each level in the network topology map, real-time association of faults can be achieved. At the same time, fault prediction and location are performed through pre-trained fault prediction models and pre-set target thresholds, which improves the reliability and accuracy of fault location. The use of automated algorithms to analyze and process network monitoring data reduces the risk of human error in traditional fault handling processes, and helps decision makers to formulate reasonable planning and deployment strategies, prevent potential faults in advance, and perform capacity planning and performance optimization, thereby improving the stability and scalability of network equipment.

[0112] According to an embodiment of the present application, a fault detection device for a network device is provided. It should be noted that the fault detection device for a network device in the embodiment of the present application can be used to execute the fault detection method for a network device provided in the embodiment of the present application. The fault detection device for a network device provided in the embodiment of the present application is introduced below.

[0113] Figure 4 1 is a structural diagram of a fault detection device for a network device provided according to an embodiment of the present application. Figure 4 As shown, the device comprises:

[0114] An acquisition module 40 is used to acquire a dynamic topology map of network devices, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between network devices and the state change of network devices;

[0115] A monitoring module 42, used to monitor data changes of nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and flow data of the dynamic topology map;

[0116] The prediction module 44 is used to analyze the monitoring data through the fault prediction model to obtain the predicted data volume, wherein the predicted data volume is used to represent the data passed by the target device in the network device at the target time, and the target device is any device in the network device;

[0117] The determination module 46 is used to determine that a target device fails when the predicted data volume is greater than a target threshold.

[0118] Through the acquisition module 40, monitoring module 42, prediction module 44 and determination module 46 in the fault detection device of the above-mentioned network equipment, the purpose of real-time monitoring of the status of network equipment through a dynamic topology map and performing fault judgment and fault location based on the monitoring data is achieved, thereby achieving the technical effect of improving the speed and accuracy of fault detection, and further solving the technical problem of low fault detection efficiency caused by the fact that the fault detection method in the related technology mainly relies on offline data or fault judgment based on preset rules.

[0119] In the fault detection device for network equipment provided in an embodiment of the present application, the acquisition module is also used to determine the network equipment from a business system including at least one network equipment, and obtain equipment information of the network equipment, wherein the equipment information includes at least attribute information and status information of the network equipment; determine the connection relationship of the network equipment; and determine a dynamic topology map based on the equipment information and the connection relationship.

[0120] In the fault detection device of the network device provided in the embodiment of the present application, the acquisition module is also used to send a query request to the network device through the network device management protocol, wherein the query request includes at least one object identifier, and the object identifier is used to identify the numerical value of the manageable object on the network device; receive a response message from the network device; parse the response message to obtain the device information of the network device.

[0121] In the fault detection device of the network device provided in the embodiment of the present application, the acquisition module is also used to receive the neighbor discovery message sent by the network device under preset conditions, wherein the neighbor discovery message includes at least the device information of the network device and the device information of the adjacent device; parse the neighbor discovery message to obtain the connection relationship of the network device.

[0122] In the fault detection device of the network equipment provided in the embodiment of the present application, the prediction module is also used to obtain historical monitoring data of the network equipment; train the initial fault prediction model through the historical monitoring data to obtain an initial prediction data volume; update the parameters of the initial fault prediction model when the initial prediction data volume is greater than a preset threshold, and stop updating until the initial prediction data volume is less than or equal to the preset threshold, so as to obtain a fault prediction model.

[0123] In the fault detection device of the network equipment provided in the embodiment of the present application, the prediction module is also used to determine whether the historical monitoring data of the network equipment contains label data, wherein the label data is used to indicate the type of fault to which the network equipment belongs; when the historical monitoring data contains label data, the fault prediction model is trained by a supervised learning algorithm; when the historical monitoring data does not contain label data, the fault prediction model is trained by an unsupervised learning algorithm.

[0124] In the fault detection device of the network equipment provided in the embodiment of the present application, the determination module is also used to obtain the historical residual values ​​of the initial predicted data volume and the historical monitoring data; split the historical residual values, and summarize the historical residual values ​​in the same split units within a preset time period to obtain a summary result; calculate the average value of the summary result to obtain the average residual value of the historical residual values ​​in different split units; construct a Gaussian distribution model based on the average residual value, wherein the Gaussian distribution model is used to represent the normal distribution of the historical residual values; and update the target threshold based on the distribution of the Gaussian distribution model.

[0125] An embodiment of the present application also provides an electronic device, including: a memory and a processor, wherein the memory is used to store program instructions; the processor is connected to the memory and is used to execute the fault detection method of the above-mentioned network device.

[0126] It should be noted that the above electronic equipment is used to execute Figure 2 The fault detection method for the network device shown in the figure, therefore the relevant explanations and instructions in the above-mentioned fault detection method for the network device are also applicable to the electronic device, and will not be repeated here.

[0127] An embodiment of the present application further provides a non-volatile storage medium, which includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the above-mentioned network device fault detection method by running the computer program.

[0128] It should be noted that the above non-volatile storage medium is used to execute Figure 2 The fault detection method for the network device shown in the figure, therefore the relevant explanations in the above-mentioned fault detection method for the network device are also applicable to the non-volatile storage medium, and will not be repeated here.

[0129] An embodiment of the present application also provides a computer program product, including computer instructions, which implement the above-mentioned network device fault detection method when executed by a processor.

[0130] It should be noted that the above-mentioned computer program product is used to execute Figure 2 The fault detection method for the network device shown in the figure, therefore the relevant explanations and instructions in the above-mentioned fault detection method for the network device are also applicable to the computer program product, and will not be repeated here.

[0131] 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.

[0132] In the above embodiments of the present application, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, please refer to the relevant description of other embodiments.

[0133] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0134] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0135] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0136] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, in essence, or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, disk or optical disk and other media that can store program codes.

[0137] The above is only a preferred implementation of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. A method for detecting a fault in a network device, characterized in that: include: Acquire a dynamic topology map of network devices, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between the network devices and the state changes of the network devices; Monitoring data changes of nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and flow data of the dynamic topology map; Analyze the monitoring data through a fault prediction model to obtain a predicted data volume, wherein the predicted data volume is used to represent data passed by a target device in the network device at a target time, and the target device is any device in the network device; When the predicted data volume is greater than a target threshold, it is determined that a failure occurs in the target device.

2. The method according to claim 1, characterized in that The dynamic topology map is determined by: Determine the network device from a service system including at least one network device, and obtain device information of the network device, wherein the device information at least includes attribute information and status information of the network device; Determining a connection relationship of the network devices; The dynamic topology map is determined according to the device information and the connection relationship.

3. The method according to claim 2, characterized in that Obtaining device information of the network device, including: Sending a query request to the network device through a network device management protocol, wherein the query request includes at least one object identifier, and the object identifier is used to identify a value of a manageable object on the network device; receiving a response message from the network device; The response message is parsed to obtain device information of the network device.

4. The method according to claim 2, characterized in that: Determining the connection relationship of the network device includes: Receiving a neighbor discovery message sent by the network device under preset conditions, wherein the neighbor discovery message includes at least device information of the network device and device information of adjacent devices; The neighbor discovery message is parsed to obtain the connection relationship of the network device.

5. The method according to claim 1, characterized in that The fault prediction model is trained in the following way: Obtaining historical monitoring data of the network device; Training the initial fault prediction model using the historical monitoring data to obtain an initial prediction data volume; When the amount of initial prediction data is greater than a preset threshold, the parameters of the initial fault prediction model are updated, and the updating is stopped until the amount of initial prediction data is less than or equal to the preset threshold, so as to obtain the fault prediction model.

6. The method according to claim 5, characterized in that Before training the initial fault prediction model using the historical monitoring data, the method further includes: Determining whether the historical monitoring data of the network device contains label data, wherein the label data is used to indicate the fault type to which the network device belongs; In a case where the historical monitoring data includes label data, training the fault prediction model by a supervised learning algorithm; In the case where the historical monitoring data does not contain label data, the fault prediction model is trained by an unsupervised learning algorithm.

7. The method according to claim 5, characterized in that The target threshold is updated in the following way: Obtaining the initial forecast data volume and the historical residual value of the historical monitoring data; The historical residual value is split, and the historical residual values ​​in the same split unit within a preset time period are aggregated to obtain an aggregated result; Calculate the average value of the summary results to obtain the average residual value of the historical residual value in different split units; Constructing a Gaussian distribution model according to the average residual value, wherein the Gaussian distribution model is used to represent the normal distribution of the historical residual value; The target threshold is updated according to the distribution of the Gaussian distribution model.

8. A fault detection device for a network device, characterized in that: include: An acquisition module, used to acquire a dynamic topology map of network devices, wherein each network device corresponds to each node in the dynamic topology map, and the dynamic topology map is used to reflect the data association relationship between the network devices and the state changes of the network devices; A monitoring module, used to monitor data changes of nodes in the dynamic topology map to obtain monitoring data, wherein the monitoring data includes at least one of the following: link load data, node status data and flow data of the dynamic topology map; A prediction module, used for analyzing the monitoring data through a fault prediction model to obtain a predicted data volume, wherein the predicted data volume is used to represent data passed by a target device in the network device at a target time, and the target device is any device in the network device; The determination module is used to determine that the target device fails when the predicted data volume is greater than a target threshold.

9. An electronic device, characterized in that: include: A memory and a processor, wherein The memory is used to store program instructions; The processor is connected to the memory and is used to execute the fault detection method for the network device according to any one of claims 1 to 7.

10. A non-volatile storage medium, characterized in that: The non-volatile storage medium includes a stored computer program, wherein the device where the non-volatile storage medium is located executes the fault detection method for a network device according to any one of claims 1 to 7 by running the computer program.

11. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by a processor, the fault detection method for a network device according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Distributed interface defect detection method and system for micro-service architecture

    CN119248632A

  • Distributed interface defect detection method and system for microservice architecture

    CN119248632B

  • Automatic network equipment fault monitoring and repairing method and device based on intelligent topology, equipment and storage medium

    CN119341889A

  • Method, system and device for identifying and monitoring network problems and medium

    CN119363574A

  • Network fault recovery method, system and device, medium and program product

    CN119545402A