A network fault processing method and device, electronic equipment, and storage medium

By locating faulty nodes in the cloud network and constructing a topology map, calculating the impact range and threshold, and monitoring the frequency of fault messages in real time, the problem of frequent transmission of fault information in the cloud network is solved, achieving efficient fault handling and network stability.

CN116760689BActive Publication Date: 2026-06-02CHINA CONSTRUCTION BANK

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINA CONSTRUCTION BANK
Filing Date
2023-08-02
Publication Date
2026-06-02

AI Technical Summary

Technical Problem

In existing technologies, the frequent transmission of cloud network fault information leads to an increase in redundant information, which affects fault analysis and processing, and makes it impossible to handle serious faults in a timely manner.

Method used

By locating faulty nodes, a complete link topology map of cloud network services is constructed to determine the scope of impact and weight values, calculate message sending thresholds and frequency thresholds, monitor in real time, and push fault messages when the thresholds are reached.

Benefits of technology

This reduces redundant information, improves the efficiency of fault analysis and handling, ensures the normal operation of the cloud network, and prioritizes handling faults with a wide impact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116760689B_ABST
    Figure CN116760689B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a network fault processing method and device, electronic equipment and storage medium. The method comprises: locating a current fault node when a fault occurs; determining a current influence range corresponding to the current fault node based on a cloud network service complete link topology graph constructed in advance; determining a current influence range weight value according to the current influence range corresponding to the current fault node; calculating a current message sending threshold value by using the current influence range weight value; calculating a current message frequency threshold value based on the current message sending threshold value; setting a sending time interval of a fault message corresponding to the current fault node as the current message sending threshold value; monitoring whether a cumulative sending frequency of the fault message corresponding to the current fault node reaches the current message frequency threshold value in real time; and pushing the fault message corresponding to the current fault node to a subscription target when it is monitored that the current message frequency threshold value is reached.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud network monitoring technology, and in particular to a network fault handling method and device, electronic equipment, and storage medium. Background Technology

[0002] More and more enterprises are migrating their business operations to cloud networks, making the business paths on these networks increasingly numerous and complex. Consequently, cloud networks are more prone to failures, and the impact of these failures is becoming increasingly widespread. Therefore, effective monitoring of cloud networks is essential to ensure their smooth operation.

[0003] During the current monitoring process, if a node fails, fault information will be generated at preset time intervals and pushed to the subscribed targets accordingly, so that the staff who subscribe to the message can analyze the fault based on the fault information and fix the faults that need to be modified in a timely manner.

[0004] However, currently, before the fault is resolved, fault information will be continuously sent to the subscribed targets at preset time intervals. This will result in the frequent sending of the same message, increasing redundant information and affecting the staff's analysis and handling of the fault. Consequently, more serious faults may not be handled in a timely manner, and the same fault may not be analyzed and handled multiple times. As a result, the normal operation of the cloud network cannot be effectively guaranteed. Summary of the Invention

[0005] In view of the shortcomings of the prior art, this application provides a network fault handling method and apparatus, electronic device and storage medium to solve the problem that the prior art cannot effectively guarantee the normal operation of cloud networks.

[0006] To achieve the above objectives, this application provides the following technical solution:

[0007] The first aspect of this application provides a network fault handling method, including:

[0008] When a fault occurs, locate the current faulty node;

[0009] Based on a pre-constructed complete cloud network service link topology map, the current impact range corresponding to the current fault node is determined; wherein, the cloud network service link topology map is obtained by combining the cloud network resource relationship map with the actual cloud network service path;

[0010] Based on the current impact range corresponding to the current fault node, determine the current impact range weight value;

[0011] The current message sending threshold is calculated using the current influence range weight value;

[0012] The current message frequency threshold is calculated based on the current message sending threshold; wherein, the smaller the current message sending threshold, the smaller the current message frequency threshold;

[0013] Set the time interval for sending fault messages corresponding to the current fault node as the current message sending threshold;

[0014] Real-time monitoring of whether the cumulative sending frequency of the fault message corresponding to the current fault node reaches the current message frequency threshold;

[0015] When the cumulative sending frequency of the fault message corresponding to the current fault node is detected to reach the current message frequency threshold, the fault message corresponding to the current fault node is pushed to the subscription target.

[0016] Optionally, the above-described network fault handling method further includes:

[0017] Obtain basic resource information of the target cloud network;

[0018] Based on the basic resource information of the target cloud network, a small cloud relationship graph is constructed.

[0019] All cloud resources of the target cloud network are associated with resources in the small cloud relationship graph in the same pattern to obtain the cloud network resource relationship graph;

[0020] By combining the cloud network resource relationship graph with the actual cloud network service path for extended learning, a complete link topology graph of the cloud network service is obtained.

[0021] Optionally, in the above network fault handling method, determining the current impact range corresponding to the current faulty node based on a pre-constructed complete cloud network service link topology map includes:

[0022] Based on the pre-constructed complete link topology map of the cloud network services, obtain the correlation information of the current faulty node in multiple dimensions of the cloud environment;

[0023] Based on the correlation information of the current fault node in the cloud environment across multiple dimensions, the current impact range corresponding to the current fault node is generated.

[0024] Optionally, in the above network fault handling method, determining the current influence range weight value based on the current influence range corresponding to the current faulty node includes:

[0025] Determine the interval to which the current impact range corresponding to the current fault node belongs;

[0026] The weight value of the interval to which the current influence range of the current fault node belongs is determined as the weight value of the current influence range.

[0027] Optionally, in the above network fault handling method, the step of calculating the current message sending threshold using the current impact range weight value includes:

[0028] Obtain the types of resources affected by the faulty node;

[0029] Determine the coefficients corresponding to the resource types affected by the faulty node;

[0030] The current message sending threshold is obtained by multiplying the coefficient corresponding to the resource type affected by the faulty node and the weight value of the current impact range, and adding the target constant.

[0031] Optionally, in the above network fault handling method, the step of calculating the current message frequency threshold based on the current message sending threshold includes:

[0032] The calculation is based on the natural constant, and the current message sending threshold is the reciprocal of the current value of the number of times it has been sent;

[0033] Calculate the reciprocal of the sum of the current value and 1 to obtain the current message frequency threshold.

[0034] Optionally, in the above network fault handling method, after pushing the fault message corresponding to the currently faulty node to the subscription target, it further includes:

[0035] The cumulative sending frequency of the fault message corresponding to the current fault node is cleared to zero, and the process returns to monitor whether the cumulative sending frequency of the fault message corresponding to the current fault node has reached the current message frequency threshold, until the current fault node is repaired.

[0036] A second aspect of this application provides a network fault handling apparatus, comprising:

[0037] The location unit is used to locate the current faulty node when a fault occurs.

[0038] The scope determination unit is used to determine the current impact scope corresponding to the current fault node based on a pre-constructed complete cloud network service link topology map; wherein, the cloud network service link topology map is obtained by combining the cloud network resource relationship map with the actual cloud network service path;

[0039] The weight determination unit is used to determine the weight value of the current influence range based on the current influence range corresponding to the current fault node.

[0040] A sending threshold calculation unit is used to calculate the current message sending threshold using the current influence range weight value;

[0041] The frequency threshold calculation unit is used to calculate the current message frequency threshold based on the current message sending threshold; wherein, the smaller the current message sending threshold, the smaller the current message frequency threshold;

[0042] A threshold setting unit is used to set the sending time interval of the fault message corresponding to the current fault node to the current message sending threshold.

[0043] The monitoring unit is used to monitor in real time whether the cumulative sending frequency of the fault message corresponding to the current fault node reaches the current message frequency threshold.

[0044] The push unit is used to push the fault message corresponding to the current fault node to the subscription target when the cumulative sending frequency of the fault message corresponding to the current fault node is detected to reach the current message frequency threshold.

[0045] Optionally, the network fault handling device described above further includes:

[0046] The first acquisition unit is used to acquire basic resource information of the target cloud network;

[0047] The construction unit is used to construct a small cloud relationship graph based on the basic resource information of the target cloud network.

[0048] The association unit is used to associate all cloud resources of the target cloud network with the resources in the small cloud relationship graph according to the same pattern, so as to obtain the cloud network resource relationship graph.

[0049] The extension unit is used to extend the learning of the cloud network resource relationship graph by combining it with the actual cloud network service path, so as to obtain the complete link topology of the cloud network service.

[0050] Optionally, in the above-described network fault handling apparatus, the range determination unit includes:

[0051] The second acquisition unit is used to acquire the association information of the current fault node in multiple dimensions of the cloud environment based on the pre-constructed complete link topology map of the cloud network services.

[0052] The range generation unit is used to generate the current impact range corresponding to the current fault node based on the correlation information of the current fault node in multiple dimensions in the cloud environment.

[0053] Optionally, in the above-described network fault handling apparatus, the weight determination unit includes:

[0054] An interval determination unit is used to determine the interval to which the current influence range corresponding to the current fault node belongs;

[0055] The weight determination subunit is used to determine the weight value of the interval to which the current influence range of the current fault node belongs as the current influence range weight value.

[0056] Optionally, in the above-described network fault handling apparatus, the transmission threshold calculation unit includes:

[0057] The third acquisition unit is used to acquire the type of resources affected by the faulty node;

[0058] A coefficient determination unit is used to determine the coefficients corresponding to the resource types affected by the faulty node.

[0059] The first calculation unit is used to add the target constant to the product of the coefficient corresponding to the resource type affected by the faulty node and the weight value of the current impact range, so as to obtain the current message sending threshold.

[0060] Optionally, in the above-described network fault handling device, the frequency threshold calculation includes:

[0061] The second calculation unit is used to calculate the reciprocal of the current value of the number of times the current message sending threshold is used as the base, with the natural constant as the base.

[0062] The third calculation unit is used to calculate the reciprocal of the sum of the current value and 1 to obtain the current message frequency threshold.

[0063] Optionally, the network fault handling device described above further includes:

[0064] The cleaning unit is used to clear the cumulative sending frequency of the fault message corresponding to the current fault node to zero, and return to the monitoring unit to perform real-time monitoring to check whether the cumulative sending frequency of the fault message corresponding to the current fault node has reached the current message frequency threshold, until the current fault node is repaired.

[0065] A third aspect of this application provides an electronic device, comprising:

[0066] Memory and processor;

[0067] The memory is used to store programs;

[0068] The processor is used to execute the program, which, when executed, is specifically used to implement the network fault handling method as described in any of the above.

[0069] The fourth aspect of this application provides a computer storage medium for storing a computer program, which, when executed, implements the network fault handling method as described in any of the preceding claims.

[0070] This application provides a network fault handling method. When a fault occurs, the current faulty node is located, and the current impact range corresponding to the current faulty node is determined based on a pre-constructed complete cloud network service link topology map. The cloud network service link topology map is obtained by combining a cloud network resource relationship map with actual cloud network service paths. Then, based on the current impact range corresponding to the current faulty node, a weight value for the current impact range is determined. Next, a current message sending threshold and a current message frequency threshold are calculated using the current impact range weight value, so that the sending interval and cumulative sending frequency of faulty messages are consistent with the fault situation. Then, the sending interval of faulty messages corresponding to the current faulty node is set as the current message sending threshold, and the cumulative sending frequency of faulty messages corresponding to the current faulty node is monitored in real time to see if it reaches the current message frequency threshold. When the cumulative sending frequency of fault messages corresponding to the current faulty node reaches the current message frequency threshold, the fault message corresponding to the current faulty node is pushed to the subscription target. This ensures that messages are only pushed to the subscription target after the message sending frequency threshold is reached, rather than being sent continuously. This avoids frequent sending of the same message, increasing redundant information and affecting the analysis and handling of faults by staff. Furthermore, faults with a larger impact range will be pushed to the subscription target more quickly, prioritizing the handling of faults with a large impact range, reducing the impact on the cloud network, and thus effectively ensuring the normal operation of the cloud network. Attached Figure Description

[0071] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0072] Figure 1 A flowchart illustrating a network fault handling method provided in this application embodiment;

[0073] Figure 2 A flowchart illustrating a method for constructing a complete cloud network service topology diagram, as provided in this application embodiment;

[0074] Figure 3 A schematic diagram illustrating an example of a small-scale cloud-based relationship graph provided in an embodiment of this application;

[0075] Figure 4 A flowchart illustrating a method for determining the current impact range corresponding to a current fault node, provided in an embodiment of this application;

[0076] Figure 5 A flowchart illustrating a method for calculating the current message sending threshold provided in an embodiment of this application;

[0077] Figure 6 This application provides a schematic diagram of the architecture of a network fault handling device.

[0078] Figure 7 This is a schematic diagram of the architecture of an electronic device provided in an embodiment of this application. Detailed Implementation

[0079] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, and not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0080] In this application, relational terms such as "first" and "second" are used merely to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

[0081] This application provides a network fault handling method, such as... Figure 1 As shown, it includes the following steps:

[0082] S101. Locate the current faulty node when a fault occurs.

[0083] Optionally, since a complete cloud network service topology map is pre-constructed in this application embodiment, which includes the relationships between various resources, the current fault node can be located by combining the complete cloud network service topology map.

[0084] S102. Based on the pre-built complete link topology map of cloud network services, determine the current impact range corresponding to the current fault node.

[0085] The cloud network service link topology is obtained by combining the cloud network resource relationship graph with the actual cloud network service paths. The cloud network resource relationship graph uses cloud network resources as nodes and connects related cloud network resources. The actual cloud network service paths reflect the relationships between cloud network resources during actual service implementation. Therefore, in this embodiment, the actual cloud network service paths are further incorporated to make the cloud network service link topology more consistent with reality.

[0086] Therefore, after locating the current fault node, it can be found from the pre-built complete link topology map of cloud network services. Then, by traversing the map, resources that are directly or indirectly related to the current fault node can be found. These resources are the scope affected by the fault of the current fault node, that is, the current scope of influence corresponding to the current fault node.

[0087] Optionally, in another embodiment of this application, a method for constructing a complete link topology map of cloud network services is provided, such as... Figure 2 As shown, it includes the following steps:

[0088] S201. Obtain basic resource information of the target cloud network.

[0089] The target cloud network is the designated cloud network.

[0090] Optionally, information about the basic resources typically included in a cloud network can be obtained, such as private networks, subnets, virtual machines, routing tables, and security groups.

[0091] S202. Based on the basic resource information of the target cloud network, a small-scale cloud relationship graph is constructed.

[0092] Specifically, each basic resource is treated as a node, and then resource nodes with relationships are connected to obtain a corresponding relationship graph. Since this relationship graph is only a relationship graph of basic resources, it is a small-scale cloud-based relationship graph. Specifically, the graph can be constructed using a random walk method centered on one resource. For example... Figure 3 As shown, a relationship graph is constructed with the private network as the center. The associated resources include cloud hosts in the sub-networks within the private network; configuration items of the private network, such as ACLs and routing tables; and other cloud product instances associated with the private network, such as load balancers and peering connections.

[0093] Alternatively, the path features can be generated using the PRA algorithm, which employs a path ranking algorithm based on random walks. The specific process is part of the existing algorithm implementation and will not be elaborated further.

[0094] S203. Associate all cloud resources of the target cloud network with resources in the small cloud relationship graph according to the same pattern to obtain the cloud network resource relationship graph.

[0095] Since the constructed small-scale cloud relationship graph is only a basic resource relationship graph, it is necessary to further add other resources of the target cloud network to the graph so that the graph includes all cloud resources of the target cloud network. Therefore, the same pattern can be used to obtain a graph including all resource relationships through inductive reasoning, that is, to obtain the cloud network resource relationship graph.

[0096] S204. Extend the learning by combining the cloud network resource relationship graph with the actual cloud network service path to obtain the complete link topology graph of cloud network services.

[0097] Optionally, in another embodiment of this application, one specific implementation of step S102 is as follows: Figure 4 As shown, it includes:

[0098] S401. Based on a pre-built complete link topology map of cloud network services, obtain the correlation information of the current faulty node in multiple dimensions of the cloud environment.

[0099] It should be noted that, in order to accurately reflect the scope of influence and the various aspects from which the influence is reflected, the scope of influence can be obtained from multiple different dimensions in this embodiment of the application. Therefore, it is necessary to obtain the correlation information of each dimension.

[0100] S402. Based on the correlation information of the current fault node in the cloud environment across multiple dimensions, generate the current impact range corresponding to the current fault node.

[0101] Specifically, based on the correlation information under each dimension, the influence range under each dimension is obtained by searching, and the influence range under each dimension is summarized to obtain the current influence range corresponding to the current fault node.

[0102] S103. Determine the weight value of the current impact range based on the current impact range corresponding to the current fault node.

[0103] Since the message frequency threshold needs to be calculated based on the current impact range corresponding to the current faulty node, the current impact range corresponding to the current faulty node needs to be converted into a numerical value. Specifically, the larger the impact range and the higher the importance of the affected resources, the greater the weight value of the determined current impact range.

[0104] Optionally, in another embodiment of this application, one specific implementation of step S103 includes:

[0105] Determine the interval to which the current impact range belongs for the current fault node, and determine the weight value of the interval to which the current impact range belongs for the current fault node as the weight value of the current impact range.

[0106] It should be noted that in this embodiment, the scope of influence is divided into multiple levels, i.e., multiple intervals, and a corresponding weight value is set for each interval. Therefore, the weight value of the current scope of influence can be determined based on the interval to which the current faulty node belongs. For example, if 100 virtual machines are affected, and the weight value of the interval to which it belongs is 0.3, then the weight value of the current scope of influence is 0.3.

[0107] S104. Calculate the current message sending threshold using the current influence range weight value.

[0108] It should be noted that the current message sending threshold is the time interval between each time the system generates a fault message; that is, a fault message will be generated every time the current message sending threshold is reached.

[0109] In existing technologies, all faults generate fault messages at fixed preset time intervals, which fails to reflect the urgency of different faults. Therefore, users cannot address more severe faults in a timely manner, thus failing to minimize the impact on the normal operation of the cloud network. In this embodiment, the current message sending threshold is calculated based on the current impact range weight value to adjust the fault message sending time interval according to the current impact range.

[0110] Since the current impact range weight value reflects the size of the current impact range, it can be used to calculate the current message sending threshold. This allows for adaptive adjustment of the fault message sending interval based on the current impact range. Specifically, a larger current impact range weight value results in a smaller calculated current message sending threshold, thus accelerating the notification frequency for faults with a large impact range. This enables the corresponding current message frequency threshold to be reached quickly, allowing faults with a larger impact range to be pushed to subscribers more rapidly, and ultimately prioritizing the handling of faults with a larger impact range.

[0111] Optionally, in another embodiment of this application, one specific implementation of step S104 is as follows: Figure 5 As shown, it includes:

[0112] S501. Obtain the types of resources affected by the faulty node.

[0113] It should be noted that since different resources have different levels of importance, and the more important the resource is affected, the more urgent the current fault needs to be dealt with. Therefore, in this embodiment of the application, the type of resource affected by the fault node is also taken into account when calculating the current message sending threshold.

[0114] Optionally, when determining the current impact range corresponding to the current fault node, the types of resources affected can be extracted accordingly.

[0115] S502. Determine the coefficients corresponding to the resource types affected by the faulty node.

[0116] Optionally, corresponding coefficients can be pre-set according to the importance of each resource type, so the coefficients corresponding to the resource types affected by the faulty node can be directly found. In this embodiment, the higher the importance of a resource type, the smaller its corresponding coefficient.

[0117] S503. Multiply the coefficient corresponding to the resource type affected by the faulty node by the current influence range weight value and add the target constant to obtain the current message sending threshold.

[0118] Optionally, if multiple different resource types are included, the current message sending threshold can be calculated for each resource type using its corresponding coefficient and current influence weight value. Finally, the average of the current message sending thresholds for each resource type is calculated to obtain the final current message sending threshold.

[0119] S105. Calculate the current message frequency threshold based on the current message sending threshold.

[0120] Among them, the smaller the current message sending threshold, the smaller the current message frequency threshold.

[0121] To avoid sending the same message to every subscriber every time a fault occurs, which would result in frequent sending of the same message, increasing redundancy and hindering staff analysis and handling of faults, this embodiment sets a message frequency threshold. Only when the number of times a fault message is generated reaches the threshold will it be pushed to the subscriber.

[0122] However, since different faults have varying degrees of urgency, it is necessary to calculate a corresponding message frequency threshold for the current situation. Since the current message sending threshold is calculated based on the current impact range weight value, which reflects the current impact range corresponding to the faulty node—that is, the situation of the faulty node—the current message sending threshold can also reflect the fault situation caused by the current faulty node. Therefore, calculating the message frequency threshold based on the current message sending threshold yields a message frequency threshold that conforms to the current fault situation. Furthermore, the obtained current message frequency threshold is also compatible with the message sending threshold.

[0123] Optionally, in another embodiment of this application, one specific implementation of step S105 includes:

[0124] Calculate the reciprocal of the current value with the natural constant as the base and the current message sending threshold as the number of times, and calculate the reciprocal of the sum of the reciprocal of the current value and 1 to obtain the current message frequency threshold.

[0125] S106. Set the sending time interval of the fault message corresponding to the current fault node to the current message sending threshold.

[0126] It should be noted that the time interval for sending fault messages does not refer to the time interval between sending the messages to the subscription target, but rather the time interval between generating and responding to fault messages.

[0127] In order to ensure that the fault messages corresponding to the current faulty node are sent according to the current message sending threshold, the sending time interval of the fault messages corresponding to the current faulty node needs to be set to the current message sending threshold.

[0128] S107. Monitor in real time whether the cumulative sending frequency of fault messages corresponding to the current fault node has reached the current message frequency threshold.

[0129] Specifically, in this embodiment, the frequency of sending fault messages corresponding to the current fault node will be continuously accumulated, and the sending frequency will be monitored in real time to see if it reaches the current message frequency threshold.

[0130] When the cumulative frequency of fault messages corresponding to the current fault node is detected to reach the current message frequency threshold, step S108 is executed.

[0131] S108. Push the fault message corresponding to the current fault node to the subscription target.

[0132] Optionally, in another embodiment of this application, after performing step S108, the method further includes:

[0133] Clear the cumulative sending frequency of the fault message corresponding to the current fault node to zero.

[0134] To prevent staff from missing sent fault messages, in this embodiment of the application, after sending a fault message to the subscription target, the cumulative sending frequency of the fault message corresponding to the current fault node is cleared to zero, and then the process returns to step S107 until the current fault node is repaired. That is, the cumulative sending frequency of the fault message corresponding to the fault node is re-accumulated, and when it reaches the current message frequency threshold again, the fault message corresponding to the current fault node is pushed again.

[0135] This application provides a network fault handling method. When a fault occurs, the current faulty node is located, and the current impact range corresponding to the current faulty node is determined based on a pre-constructed complete cloud network service link topology map. The cloud network service link topology map is obtained by combining a cloud network resource relationship map with actual cloud network service paths. Then, based on the current impact range corresponding to the current faulty node, a weight value for the current impact range is determined. Next, a current message sending threshold and a current message frequency threshold are calculated using the current impact range weight value, so that the sending interval and cumulative sending frequency of faulty messages are consistent with the fault situation. Then, the sending interval of faulty messages corresponding to the current faulty node is set as the current message sending threshold, and the cumulative sending frequency of faulty messages corresponding to the current faulty node is monitored in real time to see if it reaches the current message frequency threshold. When the cumulative sending frequency of fault messages corresponding to the current faulty node reaches the current message frequency threshold, the fault message corresponding to the current faulty node is pushed to the subscription target. This ensures that messages are only pushed to the subscription target after the message sending frequency threshold is reached, rather than being sent continuously. This avoids frequent sending of the same message, increasing redundant information and affecting the analysis and handling of faults by staff. Furthermore, faults with a larger impact range will be pushed to the subscription target more quickly, prioritizing the handling of faults with a large impact range, reducing the impact on the cloud network, and thus effectively ensuring the normal operation of the cloud network.

[0136] Another embodiment of this application provides a network fault handling device, such as... Figure 6 As shown, it includes the following units:

[0137] The positioning unit 601 is used to locate the current fault node when a fault occurs.

[0138] The scope determination unit 602 is used to determine the current impact scope corresponding to the current fault node based on a pre-built complete link topology map of cloud network services.

[0139] The cloud network service link topology diagram is obtained by combining the cloud network resource relationship diagram with the actual cloud network service path.

[0140] The weight determination unit 603 is used to determine the weight value of the current influence range based on the current influence range corresponding to the current fault node.

[0141] The sending threshold calculation unit 604 is used to calculate the current message sending threshold using the current influence range weight value.

[0142] The frequency threshold calculation unit 605 is used to calculate the current message frequency threshold based on the current message sending threshold.

[0143] Among them, the smaller the current message sending threshold, the smaller the current message frequency threshold.

[0144] The threshold setting unit 606 is used to set the sending time interval of the fault message corresponding to the current fault node to the current message sending threshold.

[0145] The monitoring unit 607 is used to monitor in real time whether the cumulative sending frequency of the fault message corresponding to the current fault node has reached the current message frequency threshold.

[0146] The push unit 608 is used to push the fault message corresponding to the current fault node to the subscription target when the cumulative sending frequency of the fault message corresponding to the current fault node is detected to reach the current message frequency threshold.

[0147] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the apparatus further includes:

[0148] The first acquisition unit is used to acquire basic resource information of the target cloud network.

[0149] The building unit is used to construct a small cloud-based relationship graph based on the basic resource information of the target cloud network.

[0150] The association unit is used to associate all cloud resources of the target cloud network with resources in a small cloud relationship graph according to the same pattern, so as to obtain a cloud network resource relationship graph.

[0151] The extension unit is used to extend the learning of the cloud network resource relationship graph by combining it with the actual cloud network service path, so as to obtain the complete link topology graph of cloud network services.

[0152] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the range determination unit includes:

[0153] The second acquisition unit is used to acquire the correlation information of the current fault node in the cloud environment in multiple dimensions based on the pre-built complete link topology map of cloud network services.

[0154] The scope generation unit is used to generate the current impact scope corresponding to the current fault node based on the correlation information of the current fault node in multiple dimensions in the cloud environment.

[0155] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the weight determination unit includes:

[0156] The interval determination unit is used to determine the interval to which the current impact range corresponding to the current fault node belongs.

[0157] The weight determination sub-unit is used to determine the weight value of the interval to which the current influence range of the current fault node belongs as the current influence range weight value.

[0158] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the transmission threshold calculation unit includes:

[0159] The third acquisition unit is used to acquire the types of resources affected by the faulty node.

[0160] The coefficient determination unit is used to determine the coefficients corresponding to the resource types affected by the faulty node.

[0161] The first calculation unit is used to multiply the coefficient corresponding to the resource type affected by the faulty node by the current influence range weight value and add the target constant to obtain the current message sending threshold.

[0162] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the frequency threshold calculation includes:

[0163] The second calculation unit is used to calculate the reciprocal of the current value, with the natural constant as the base and the current message sending threshold as the number of times.

[0164] The third calculation unit is used to calculate the reciprocal of the sum of the current value and 1 to obtain the current message frequency threshold.

[0165] Optionally, in another embodiment of the network fault handling apparatus provided in this application, the apparatus further includes:

[0166] The cleanup unit is used to clear the cumulative sending frequency of fault messages corresponding to the current fault node to zero, and return to the monitoring unit to perform real-time monitoring to see if the cumulative sending frequency of fault messages corresponding to the current fault node has reached the current message frequency threshold, until the current fault node is repaired.

[0167] It should be noted that the specific working process of each unit provided in the above embodiments of this application can be referred to the specific implementation process of the corresponding steps in the above method embodiments, and will not be repeated here.

[0168] Another embodiment of this application provides an electronic device, such as... Figure 7 As shown, it includes:

[0169] Memory 701 and processor 702.

[0170] The memory 701 is used to store the program.

[0171] The processor 702 is used to execute the program stored in the memory 701. When the program is executed, it is specifically used to implement the network fault handling method provided in any of the above embodiments.

[0172] Another embodiment of this application provides a computer storage medium for storing a computer program, which, when executed, implements the network fault handling method provided in any of the above embodiments.

[0173] Computer storage media, including both permanent and non-permanent, removable and non-removable media, can store information using any method or technology. Information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.

[0174] Those skilled in the art will further recognize that the units and algorithm steps of the various examples described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both. To clearly illustrate the interchangeability of hardware and software, the components and steps of the various examples have been generally described in terms of functionality in the foregoing description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0175] The above description of the disclosed embodiments enables those skilled in the art to make or use this application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of this application. Therefore, this application is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A network fault handling method, characterized in that, include: When a fault occurs, locate the current faulty node; Based on a pre-constructed complete cloud network service link topology map, the current impact range corresponding to the current fault node is determined; wherein, the complete cloud network service link topology map is obtained by combining the cloud network resource relationship map with the actual cloud network service path; Based on the current impact range corresponding to the current fault node, determine the current impact range weight value; The current message sending threshold is calculated using the current influence range weight value, including: obtaining the resource type affected by the faulty node; determining the coefficient corresponding to the resource type affected by the faulty node; and adding the product of the coefficient corresponding to the resource type affected by the faulty node and the current influence range weight value to a target constant to obtain the current message sending threshold. The current message frequency threshold is calculated based on the current message sending threshold; wherein, the smaller the current message sending threshold, the smaller the current message frequency threshold; Set the time interval for sending fault messages corresponding to the current fault node as the current message sending threshold; Real-time monitoring of whether the cumulative sending frequency of the fault message corresponding to the current fault node reaches the current message frequency threshold; When the cumulative sending frequency of the fault message corresponding to the current fault node is detected to reach the current message frequency threshold, the fault message corresponding to the current fault node is pushed to the subscription target.

2. The method according to claim 1, characterized in that, Also includes: Obtain basic resource information of the target cloud network; Based on the basic resource information of the target cloud network, a small cloud relationship graph is constructed. All cloud resources of the target cloud network are associated with resources in the small cloud relationship graph in the same pattern to obtain the cloud network resource relationship graph; By combining the cloud network resource relationship graph with the actual cloud network service path for extended learning, a complete link topology graph of the cloud network service is obtained.

3. The method according to claim 1, characterized in that, Based on the pre-built complete cloud network service topology map, the current impact range corresponding to the current faulty node is determined, including: Based on the pre-constructed complete link topology map of the cloud network services, obtain the correlation information of the current faulty node in multiple dimensions of the cloud environment; Based on the correlation information of the current fault node in the cloud environment across multiple dimensions, the current impact range corresponding to the current fault node is generated.

4. The method according to claim 1, characterized in that, The step of determining the weight value of the current influence range based on the current influence range corresponding to the current fault node includes: Determine the interval to which the current impact range corresponding to the current fault node belongs; The weight value of the interval to which the current influence range of the current fault node belongs is determined as the weight value of the current influence range.

5. The method according to claim 1, characterized in that, The calculation of the current message frequency threshold based on the current message sending threshold includes: The calculation is based on the natural constant, and the current message sending threshold is the reciprocal of the current value of the number of times it has been sent; Calculate the reciprocal of the sum of the current value and 1 to obtain the current message frequency threshold.

6. The method according to claim 1, characterized in that, After pushing the fault message corresponding to the currently faulty node to the subscription target, the method further includes: The cumulative sending frequency of the fault message corresponding to the current fault node is cleared to zero, and the process returns to monitor whether the cumulative sending frequency of the fault message corresponding to the current fault node has reached the current message frequency threshold, until the current fault node is repaired.

7. A network fault handling device, characterized in that, include: The location unit is used to locate the current faulty node when a fault occurs. The scope determination unit is used to determine the current impact scope corresponding to the current fault node based on a pre-constructed complete cloud network service link topology map; wherein, the complete cloud network service link topology map is obtained by combining the cloud network resource relationship map with the actual cloud network service path; The weight determination unit is used to determine the weight value of the current influence range based on the current influence range corresponding to the current fault node. A message sending threshold calculation unit is used to calculate the current message sending threshold using the current influence range weight value, including: obtaining the resource type affected by the faulty node; determining the coefficient corresponding to the resource type affected by the faulty node; and adding the product of the coefficient corresponding to the resource type affected by the faulty node and the current influence range weight value to a target constant to obtain the current message sending threshold. The frequency threshold calculation unit is used to calculate the current message frequency threshold based on the current message sending threshold; wherein, the smaller the current message sending threshold, the smaller the current message frequency threshold; A threshold setting unit is used to set the sending time interval of the fault message corresponding to the current fault node to the current message sending threshold. The monitoring unit is used to monitor in real time whether the cumulative sending frequency of the fault message corresponding to the current fault node reaches the current message frequency threshold. The push unit is used to push the fault message corresponding to the current fault node to the subscription target when the cumulative sending frequency of the fault message corresponding to the current fault node is detected to reach the current message frequency threshold.

8. An electronic device, characterized in that, include: Memory and processor; The memory is used to store programs; The processor is used to execute the program, which, when executed, is specifically used to implement the network fault handling method as described in any one of claims 1 to 6.

9. A computer storage medium, characterized in that, Used to store a computer program, which, when executed, is used to implement the network fault handling method as described in any one of claims 1 to 6.