Link detection method and device and computer equipment
By obtaining user service distribution information of the cloud platform and building mapping relationship tables, identifying the connectivity of candidate network nodes, the duplicate detection problem in link detection is solved, and accurate identification and efficient detection of faulty service links are achieved.
Patent Information
- Application Number
- CN202510501531.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-04-21
- Publication Date
- 2025-07-18
AI Technical Summary
In the prior art, there is a problem of repeated detection during link detection, and it is impossible to accurately identify the impact of the failure on user services.
By obtaining user service distribution information of the cloud platform, building a mapping relationship table, determining candidate network nodes based on the used resources of the network node, and performing connection detection to identify the faulty service link and the user service it covers.
It realizes avoiding duplicate detection in link detection, can accurately identify the faulty service link and its affected user services, and improves detection efficiency and accuracy.
Smart Images

Figure CN120342905A_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of link management, and particularly to a link detection method, apparatus, and computer device. Background Art
[0002] The dedicated line to the cloud is a product provided by cloud providers for users to enable mutual access between resources under the cloud and resources on the cloud. Since users have high requirements for the reliability of the dedicated line to the cloud link, it is very necessary to perform quality detection on the dedicated line to the cloud link.
[0003] In the related art, during the process of performing quality detection on the dedicated line to the cloud link, link detection can be performed from the user dimension or from the underlying link. However, there may be a problem of duplicate detection for some links when detecting from the user dimension, and it is easy to fail to accurately identify the user services affected by the fault when detecting from the underlying link.
[0004] Therefore, how to avoid duplicate detection during the link detection process and accurately identify the affected user services in case of a fault has become an urgent problem to be solved. Summary of the Invention
[0005] Based on this, in view of the above technical problems, it is necessary to provide a link detection method, apparatus, and computer device that can avoid duplicate detection during the link detection process and accurately identify the affected user services in case of a fault.
[0006] In a first aspect, this application provides a link detection method, including:
[0007] Obtain the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes.
[0008] Based on the used resources of the multiple network nodes in the user service distribution information, determine multiple candidate network nodes in the cloud platform.
[0009] According to the connectivity detection results of the links between the multiple candidate network nodes and the user service distribution information, determine the service link detection results of the cloud platform at the current moment; the service link detection results include the faulty service links in the cloud platform and the user services covered by the faulty service links.
[0010] In one embodiment, obtaining the user service distribution information of the cloud platform at the current moment includes:
[0011] Based on the service links between multiple network nodes in the cloud platform and the corresponding user services, construct a mapping table between the user services of the cloud platform and the multiple network nodes in the cloud platform.
[0012] Determine the user service distribution information of the cloud platform at the current moment according to the used resources of multiple network nodes and the mapping relationship table at the current moment.
[0013] In one embodiment, determining the user service distribution information of the cloud platform at the current moment according to the used resources of multiple network nodes and the mapping relationship table at the current moment includes:
[0014] Perform clustering mapping on the used resources of multiple network nodes at the current moment respectively to obtain the mapped resource value of each network node;
[0015] Use the mapped resource value of each network node to update the value at the network node in the mapping relationship table, and use the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment.
[0016] In one embodiment, performing clustering mapping on the used resources of multiple network nodes at the current moment respectively to obtain the mapped resource value of each network node includes:
[0017] For any one network node, compare the used resources of the network node with the corresponding bearing threshold;
[0018] If the comparison result is that the used resources are greater than or equal to the corresponding bearing threshold, set the mapped resource value of the network node to the first resource value;
[0019] If the comparison result is that the used resources are less than the corresponding bearing threshold, set the mapped resource value of the network node to the second resource value.
[0020] In one embodiment, determining the service link detection result of the cloud platform at the current moment according to multiple candidate network nodes and the user service distribution information includes:
[0021] Take the link between candidate network nodes with unconnected links as a faulty service link, and obtain the user services corresponding to the candidate network nodes with unconnected links from the user service distribution information;
[0022] Exclude the user services with unconnected links from the user services corresponding to multiple candidate network nodes to obtain the user services covered by the faulty service link.
[0023] In one embodiment, determining candidate network nodes in the cloud platform based on the used resources of multiple network nodes in the user service distribution information includes:
[0024] Compare the used resources of any one network node with the corresponding bearing threshold;
[0025] Filter candidate network nodes from multiple network nodes according to the comparison result between the used resources and the corresponding preset resource thresholds.
[0026] In one embodiment, filtering candidate network nodes from multiple network nodes according to the comparison result between the used resources and the corresponding preset resource thresholds includes:
[0027] Obtain all network nodes whose comparison result is that the used resources are greater than the corresponding preset resource thresholds, and use all network nodes greater than the corresponding preset resource thresholds as candidate network nodes.
[0028] In one embodiment, the method further includes:
[0029] If there is a faulty service link in the cloud platform at the current moment, output an alarm message and continue to perform fault detection on the faulty service link; the alarm message is used to prompt the faulty service link in the cloud platform and the user services covered by the faulty service link.
[0030] When it is determined that the faulty service link has been restored, stop outputting the alarm message.
[0031] In a second aspect, the present application further provides a link detection device, including:
[0032] An acquisition module, configured to acquire the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes.
[0033] A first determination module, configured to determine multiple candidate network nodes in the cloud platform based on the used resources of the multiple network nodes in the user service distribution information.
[0034] A second determination module, configured to determine the service link detection result of the cloud platform at the current moment according to the connectivity detection result of the links between the multiple candidate network nodes and the user service distribution information; the service link detection result includes the faulty service links in the cloud platform and the user services covered by the faulty service links.
[0035] In a third aspect, the present application further provides a computer device, including a memory and a processor, where the memory stores a computer program, and when the processor executes the computer program, it implements the content of any one of the embodiments of the link detection method in the first aspect above.
[0036] In a fourth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, it implements the content of any one of the embodiments of the link detection method in the first aspect above.
[0037] Fifth aspect, the present application also provides a computer program product, including a computer program which, when executed by a processor, implements the content of any one of the embodiments of the link detection method in the above first aspect.
[0038] For the above link detection method, device and computer device, obtain the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes; based on the used resources of the multiple network nodes in the user service distribution information, determine multiple candidate network nodes in the cloud platform; according to the connectivity detection results of the links between the multiple candidate network nodes and the user service distribution information, determine the service link detection result of the cloud platform at the current moment; the service link detection result includes the faulty service links in the cloud platform and the user services covered by the faulty service links. This method integrates the service links between multiple network nodes and the corresponding user services, and the used resources of the multiple network nodes, and stores them in the user service distribution information. During the detection process, first, accurately detect the candidate network nodes that may have faults through the used resources of the multiple network nodes, and then detect the connectivity between the candidate network nodes, so as to be able to more targeted find the faulty service links, and can accurately identify the affected user services in case of faults. At the same time, since the detection process is carried out from the perspective of the underlying links of multiple network nodes, through one detection process, the user services affected by the link can be determined without repeated detection multiple times, improving the link detection efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following will briefly introduce the drawings required to be used in the description of the embodiments of the present application or related technologies. Obviously, the following drawings are only some embodiments of the present application. For those of ordinary skill in the art, without creative efforts, other related drawings can also be obtained based on these drawings.
[0040] Figure 1 It is a schematic diagram of the scenario between the cloud platform and user services in an embodiment;
[0041] Figure 2 It is a system diagram of the incoming cloud dedicated line in an embodiment;
[0042] Figure 3 It is an application environment diagram of the link detection method in an embodiment;
[0043] Figure 4 It is a flow schematic diagram of the link detection method in an embodiment;
[0044] Figure 5Schematic diagram of the service link between user services and the cloud platform in an embodiment;
[0045] Figure 6 Schematic flow diagram of the link detection method in an embodiment;
[0046] Figure 7 Schematic flow diagram of the link detection method in an embodiment;
[0047] Figure 8 Schematic flow diagram of the link detection method in an embodiment;
[0048] Figure 9 Schematic flow diagram of the link detection method in an embodiment;
[0049] Figure 10 Schematic flow diagram of the link detection method in an embodiment;
[0050] Figure 11 Schematic flow diagram of the link detection method in an embodiment;
[0051] Figure 12 Schematic flow diagram of the link detection method in an embodiment;
[0052] Figure 13 Block diagram of the structure of the link detection device in an embodiment;
[0053] Figure 14 Internal structure diagram of a computer device in an embodiment. Detailed implementation manners
[0054] In order to make the objectives, technical solutions and advantages of the present application clearer and more understandable, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0055] Before introducing the technical solutions of the present application in detail, a brief description of the background technology of the present application will be given first.
[0056] Figure 1 Schematic diagram of the scenario between the cloud platform and user services. One cloud platform includes multiple resource pools. Taking one of the resource pools as an example, the link in the actual operation process of user services includes the link between the local routing gateway and the dedicated line access point in the resource pool, the link between the dedicated line access point and the dedicated line gateway, and the link between the dedicated line gateway and multiple virtual private clouds (Virtual Private Cloud 1, Virtual Private Cloud 2... Virtual Private Cloud N). The link between the local routing gateway and the dedicated line access point in the resource pool is implemented through a wide area network.
[0057] Figure 2It is a system diagram of the cloud dedicated line. The total management platform is used to manage resource pools in different regions. For a resource pool in one region, there is a resource pool management platform, which includes a work order system service and architecture management. The work order system service is respectively connected to the gateway devices of the tenant virtual networks in the resource pool of the first version (for example, version 3.0) and the gateway devices of the tenant virtual networks in the resource pool of the second version (for example, version 4.0), and the cloud platform controller is connected to the switches in the resource pool of the first version and the resource pool of the second version. User service 1 can be connected to the corresponding virtual private cloud (virtual private cloud 1 or virtual private cloud 2) through the switches and gateways in the resource pool of the first version or the second version, and user service 2 can be connected to the corresponding virtual private cloud (virtual private cloud 1 or virtual private cloud 2) through the switches and gateways in the resource pool of the second version.
[0058] The link detection method provided by the embodiments of the present application can be applied to an application environment as Figure 3 shown. This application environment includes a computer device 101, a cloud platform 102, and multiple user services 103 (user service 1, user service 2,..., user service N). The cloud platform 102 is composed of multiple resource pools, and each resource pool includes multiple switches (switch 1, switch 2,..., switch N), multiple network element clusters (network element cluster 1, network element cluster 2,..., network element cluster N), and multiple computing hosts (computing host 1, computing host 2,..., computing host N). Each user service 103 accesses the computing host in the resource pool through the switches and network element clusters in a resource pool. The computer device 101 can detect the switches and network element clusters during operation to determine whether there are faults in the service links corresponding to the switches and network element clusters.
[0059] In an exemplary embodiment, as Figure 4 shown, a link detection method is provided. Taking the computer device in Figure 3 as an example, the method includes the following steps 101 to 103. Among them:
[0060] S101, obtain the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes.
[0061] Figure 5It is a schematic diagram of the service link between the user service and the cloud platform. Multiple network nodes in the cloud platform can include resource pools (such as the first resource pool and the second resource pool in the figure), and the network nodes can include nodes such as resource pools, gateways, and switches. The switch can also include Spine nodes, Leaf nodes, and Point of Presence (POP) nodes. As can be seen from the figure, different user services form service links between multiple network nodes and the corresponding user services through different network nodes, that is, the multiple curved lines in the figure. For example, when the network node is a resource pool, the used resources of the resource pool are the information of the users carried in the resource pool and the physical resources; when the network node is a switch, the used resources of the switch can be the number of user services carried on the switch.
[0062] In an embodiment of the present application, the computer device can send monitoring instructions to the monitoring system deployed inside the cloud platform. The monitoring instructions include link monitoring instructions and resource usage monitoring instructions. For the link monitoring instructions, the monitoring system can analyze the characteristics of the data packets flowing through each network node to accurately identify the service link between each user service and multiple network nodes. At the same time, collect the resource usage of each network node in the cloud platform to obtain the used resources of each network node. And send the identified service link between each user service and multiple network nodes and the used resources of each network node to the computer device. After the computer device receives the service link and the used resources of each network node,
[0063] It can also use the service link between multiple network nodes in the cloud platform and the corresponding user services to construct a mapping relationship table between the user services of the cloud platform and multiple network nodes in the cloud platform. In this mapping relationship table. Then update the mapping relationship table with the used resources of each network node to obtain the user service distribution information of the cloud platform at the current moment.
[0064] Or, the user service distribution information including the service link between multiple network nodes and the used resources of each network node is stored in the storage database of the cloud platform. The computer device can search for the user service distribution information at the current moment from the storage database based on the time identifier at the current moment.
[0065] It should be noted that new user services may be connected to the cloud platform at any time. When new user services are connected to the cloud platform, it is necessary to update the service link and the used resources of each network node in the user service distribution information in a timely manner.
[0066] S102. Determine multiple candidate network nodes in the cloud platform based on the used resources of multiple network nodes in the user service distribution information.
[0067] Among them, the candidate network nodes in the cloud platform refer to the network nodes that may have failures. For example, if all the used resources in a certain network node have been occupied, then this network node can be used as a candidate network node.
[0068] In the embodiment of the present application, after obtaining the used resources of multiple network nodes in the user service distribution information, for any one network node, the computer device can subtract the used resources from the total resources of the network node to determine the remaining resources of the network node. Then, compare the remaining resources of the network node with a preset threshold to determine whether the network node may have a failure. If so, use this network node as a candidate network node; if not, ignore this network node.
[0069] Alternatively, the computer device can train a failure recognition model using historical data, and use this failure recognition model to analyze the used resources of each network node to determine whether the network node has a failure. If so, use this network node as a candidate network node; if not, ignore this network node. The embodiment of the present application does not limit the method for determining candidate network nodes in the cloud platform based on the used resources of multiple network nodes in the user service distribution information.
[0070] S103. According to the connectivity detection results of the links between multiple candidate network nodes and the user service distribution information, determine the service link detection results of the cloud platform at the current moment; the service link detection results include the failed service links in the cloud platform and the user services covered by the failed service links.
[0071] In the embodiment of the present application, after obtaining multiple candidate network nodes, the computer device can perform probe detection on the links between multiple candidate network nodes in the same resource pool to detect whether the links between two candidate network nodes are connected. If it is determined that the service link between two candidate network nodes is in a connected state, then determine this link as a failed service link. Then, search for the user services corresponding to the GIA failed service link from the user service distribution information, that is, the user services covered by the failed service link. If it is determined that the service link between two candidate network nodes is in an unconnected state, then ignore this service link. For example, the detection process can be a lightweight ping detection or a detection based on colored packets.
[0072] It should be noted that taking the network node as a network element node and a switch node as an example, during the probe detection process, the network element node can regularly send packet detection information to the switch (network element distributed detection), and determine whether the link is connected based on the packet response information received on the network element node. Alternatively, the switch can also regularly send packet detection information to the network element (switch detection), and determine whether the link is connected based on the packet response information received on the switch.
[0073] In the above link detection method, the user service distribution information of the cloud platform at the current moment is obtained; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes. Based on the used resources of the multiple network nodes in the user service distribution information, multiple candidate network nodes in the cloud platform are determined; according to the connectivity detection results of the links between the multiple candidate network nodes and the user service distribution information, the service link detection result of the cloud platform at the current moment is determined; the service link detection result includes the faulty service links in the cloud platform and the user services covered by the faulty service links. By integrating the service links between multiple network nodes and the corresponding user services and the used resources of the multiple network nodes, and storing them in the user service distribution information, during the detection process, first, the candidate network nodes that may have faults are accurately detected through the used resources of the multiple network nodes, and then the connectivity between the candidate network nodes is detected, so that the faulty service links can be more targeted, and the affected user services can be accurately identified when a fault occurs. At the same time, since the detection is performed from the perspective of the underlying links of multiple network nodes during the detection process, the user services affected by the link can be determined through one detection process without repeated detection, improving the link detection efficiency.
[0074] Next, a specific example is used to introduce the specific content of obtaining the user service distribution information of the cloud platform at the current moment, as Figure 6 shown, the specific content includes:
[0075] S201, based on the service links between multiple network nodes in the cloud platform and the corresponding user services, construct a mapping relationship table between the user services of the cloud platform and the multiple network nodes in the cloud platform.
[0076] In the embodiments of the present application, the mapping relationship table between the user services and the multiple network nodes in the cloud platform can be represented in the form of a matrix, and the mapping relationship table can be expressed as:
[0077] =
[0078] where A i×j×k represents the mapping relationship between the user services carried in a certain resource pool of the cloud platform and multiple network nodes; a ijk represents the link information of the i-th user service carried in the j-th resource pool in a certain resource pool.
[0079] Specifically, represents the link information of all user services carried in the j-th resource pool in all resource pools, which is a two-dimensional matrix. It is a 1×8 one-dimensional vector table, They are the quantity interval values of the links of the user services carried in the jth resource pool on the switches in the first resource pool, the second resource pool, and the third resource pool respectively. It is a reserved bit. They are the quantity interval values of the in-cloud resources of the user services carried in the jth resource pool in the first resource pool, the second resource pool, and the third resource pool respectively.
[0080] S202. According to the used resources of multiple network nodes and the mapping relation table at the current moment, determine the user service distribution information of the cloud platform at the current moment.
[0081] In the embodiment of the present application, after obtaining the used resources of multiple network nodes at the current moment, the used resources of each network node can be filled into the position of the corresponding network node in the mapping relation table, and the filled mapping relation table is used as the user service distribution information of the cloud platform at the current moment. Or, for each network node, the used resources of the network node can be used to update the value of the corresponding network node in the mapping relation table to obtain the user service distribution information of the cloud platform at the current moment.
[0082] In the above link detection method, based on the service links between multiple network nodes in the cloud platform and the corresponding user services, construct a mapping relation table between the user services of the cloud platform and multiple network nodes in the cloud platform; according to the used resources of multiple network nodes and the mapping relation table at the current moment, determine the user service distribution information of the cloud platform at the current moment. By constructing the mapping relation table, the association situation between each user service and numerous network nodes can be integrated, and by adding the used resources of each network node, it is convenient for the subsequent link detection process.
[0083] In one embodiment, as Figure 7 shown, introduce the specific content of determining the user service distribution information of the cloud platform at the current moment according to the used resources of multiple network nodes and the mapping relation table at the current moment. The specific content includes:
[0084] S301. Perform clustering mapping on the used resources of multiple network nodes at the current moment respectively to obtain the mapped resource value of each network node.
[0085] In an embodiment of the present application, for each network node, the computer device may perform clustering mapping on the used resources of the network node based on the clustering mapping rule corresponding to the network node, so as to obtain the mapping resource value of each network node. Exemplarily, for the switch in resource pool AZ1, if the number of user services carried on the switch is greater than or equal to a preset threshold, the mapping resource value of the switch may be set to 1; if the number of user services carried on the switch is less than the preset threshold, the mapping resource value of the switch may be set to 0. Alternatively, the number of user services carried on the switch may also be divided into ranges. For example, when the number of user services is between 0 and 10, the mapping resource value of the switch is set to 1; when the number of user services is between 11 and 20, the mapping resource value of the switch is set to 2; and so on.
[0086] S302, update the value at the network node in the mapping relationship table by using the mapping resource value of each network node, and use the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment.
[0087] In an embodiment of the present application, after obtaining the mapping resource value of each network node, if there is no value at the network node in the mapping relationship table, the computer device may fill the mapping resource value of each network node to the corresponding network node. If there is a value at the network node in the mapping relationship table, the computer device may use the mapping resource value of each network node to overwrite the original value, and use the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment.
[0088] In the above link detection method, the used resources of multiple network nodes at the current moment are respectively subjected to clustering mapping to obtain the mapping resource value of each network node; the value at the network node in the mapping relationship table is updated by using the mapping resource value of each network node, and the updated mapping relationship table is used as the user service distribution information of the cloud platform at the current moment. By means of clustering mapping, the used resources of multiple network nodes are mapped, and the used resources of multiple network nodes can be converted into mapping resource values under a unified scale, which can effectively simplify the complex used resources. At the same time, through the resource mapping process, the space occupied by the used resources can be saved.
[0089] The clustering mapping process is an important means for storing the used resources of each network node. Then, in one embodiment, as Figure 8 shown, the specific content of respectively performing clustering mapping on the used resources of multiple network nodes at the current moment to obtain the mapping resource value of each network node includes:
[0090] S401, for any network node, compare the used resources of the network node with the corresponding bearing threshold.
[0091] Among them, the carrying threshold refers to the maximum user traffic that a network node can carry. For different network nodes, their corresponding carrying thresholds are different. The carrying threshold may include the maximum user traffic carried on a switch, the maximum user traffic carried on a resource pool, and the maximum user traffic carried on a network element.
[0092] In an embodiment of the present application, a computer device can perform service inspections on user service distribution information, that is, compare the used resources of each network node with the corresponding carrying threshold to determine whether the used resources are greater than or equal to the corresponding carrying threshold. Specifically, for a switch, the computer device can compare the used resources of the switch with the switch carrying threshold to determine whether the used resources of the switch exceed the switch carrying threshold. For a resource pool, the computer device can compare the used resources of the resource pool with the switch carrying threshold to determine whether the used resources of the resource pool exceed the resource pool carrying threshold. For a network element, the computer device can compare the used resources of the network element with the network element carrying threshold to determine whether the used resources of the network element exceed the network element carrying threshold.
[0093] S402, if the comparison result is that the used resources are greater than or equal to the corresponding carrying threshold, set the mapped resource value of the network node to the first resource value.
[0094] In an embodiment of the present application, for any network node, if the comparison result of the network node is that the used resources are greater than or equal to the corresponding carrying threshold, it means that the actual work of the network node has exceeded the maximum carrying capacity. At this time, the network node is very likely to be a faulty network node. At this time, based on the mapping relationship, the mapped resource value of the network node can be set to the first resource value. For example, the first resource value can be 1.
[0095] S403, if the comparison result is that the used resources are less than the corresponding carrying threshold, set the mapped resource value of the network node to the second resource value.
[0096] In an embodiment of the present application, if the comparison result of the network node is that the used resources are less than the corresponding carrying threshold, it means that there is still a certain carrying margin for the network node. At this time, the probability that the network node is a faulty network node is small. At this time, based on the mapping relationship, the mapped resource value of the network node can be set to the second resource value. For example, the second resource value can be 0.
[0097] In the above link detection method, for any network node, the used resources of the network node are compared with the corresponding bearer threshold; if the comparison result is that the used resources are greater than or equal to the corresponding bearer threshold, the mapped resource value of the network node is set to the first resource value; if the comparison result is that the used resources are less than the corresponding bearer threshold, the mapped resource value of the network node is set to the second resource value. By comparing the used resources of the network node with the bearer threshold, this method can quickly determine the resource usage status of the node, and thus, by setting different mapped resource values according to the resource comparison result, it is convenient for subsequent link fault detection.
[0098] The above embodiments have introduced in detail how to obtain the user service distribution information of the cloud platform at the current moment. Next, through an embodiment, the specific content of determining the service link detection result of the cloud platform at the current moment according to the link connectivity detection result and the user service distribution information among multiple candidate network nodes will be described in detail, as Figure 9 shown, the specific content includes:
[0099] S501, Take the links between candidate network nodes with unconnected links as failed service links, and obtain the user services corresponding to the candidate network nodes with unconnected links from the user service distribution information.
[0100] In the embodiments of the present application, the computer device performs a connectivity detection on the links between multiple candidate network nodes, and there are multiple links between the multiple candidate network nodes. Once the detection result of a certain link is that the link is unconnected, then this link is determined as a failed service link. At this time, the computer device can search for this failed service link from the user service distribution information, and take the user service that has a mapping relationship with this failed service link as the user service corresponding to the candidate network node with an unconnected link.
[0101] S502, Exclude the user services with unconnected links from the user services corresponding to the multiple candidate network nodes, and obtain the user services covered by the failed service links.
[0102] In the embodiments of the present application, after obtaining the user services with unconnected links, the computer device can also use the identifiers of the multiple candidate network nodes to search for the user services corresponding to the identifiers of the candidate network nodes from the user service distribution information. And delete the user services with unconnected links from the user services corresponding to the identifiers of the candidate network nodes, and take the remaining user services corresponding to the identifiers of the candidate network nodes as the user services covered by the failed service links.
[0103] In the above link detection method, the link between candidate network nodes with unconnected links is regarded as a faulty service link, and the user services corresponding to the candidate network nodes with unconnected links are obtained from the user service distribution information; the user services with unconnected links are excluded from the user services corresponding to multiple candidate network nodes, and the user services covered by the faulty service link are obtained. By determining the link between candidate network nodes with unconnected links as a faulty service link, this method can accurately locate the faulty service link in a short time, greatly improving the efficiency of fault diagnosis. And by timely obtaining the user services covered by the faulty service link, fault repair measures can be taken in a timely manner, minimizing the interruption time of user services to the greatest extent and reducing service losses caused by faults.
[0104] Next, a specific example is used to illustrate the specific content of determining candidate network nodes in the cloud platform based on the used resources of multiple network nodes in the user service distribution information, as Figure 10 shown. The specific content includes:
[0105] S601. Compare the used resources of any network node with the corresponding bearing threshold.
[0106] Among them, the bearing threshold can include the maximum number of user services carried on the switch, the maximum number of user services carried on the resource pool, and the maximum number of user services carried on the network element.
[0107] In the embodiment of the present application, for any network node, the computer device can compare the used resources of the network node with the corresponding bearing threshold to determine the size relationship between the used resources and the bearing threshold. If the used resources are greater than the bearing threshold, it is determined that the used resources of the network node are excessive, and there may be a fault in the link corresponding to the network node. If the used resources are less than the bearing threshold, it is determined that the network node still has remaining resources and there is no fault in the link corresponding to the network node.
[0108] S602. According to the comparison result of the used resources and the corresponding preset resource threshold, screen out candidate network nodes from multiple network nodes.
[0109] In the embodiment of the present application, if the comparison result is that the used resources are greater than the preset resource threshold, it means that there is a fault in one of the links in the network node with the used resources. At this time, the network node can be used as a candidate network node. If the comparison result is that the used resources are less than the preset resource threshold, it means that all the links in the network node with the used resources have no faults. At this time, the network node is ignored and the comparison of the used resources of the next network node is continued.
[0110] In one embodiment, the specific content of selecting candidate network nodes from multiple network nodes according to the comparison result between the used resources and the corresponding preset resource threshold includes:
[0111] All network nodes whose used resources are greater than the corresponding preset resource threshold as a comparison result are obtained, and all network nodes whose used resources are greater than the corresponding preset resource threshold are taken as candidate network nodes.
[0112] In an embodiment of the present application, if the used resources are greater than the corresponding preset resource threshold, it means that the network node of the used resources has exceeded the load, and there is a high probability of a fault in the link where the network node is located. Therefore, all network nodes with a resource threshold greater than the corresponding preset resource threshold can be used as candidate network nodes.
[0113] In the above link detection method, the used resources of any network node are compared with the corresponding load threshold; based on the comparison result of the used resources and the corresponding preset resource threshold, candidate network nodes are screened out from multiple network nodes. This method compares the used resources of the network node with the load threshold and screens the candidate network nodes accordingly, using the load threshold as a restriction condition, and can quickly and accurately screen out candidate network nodes that may have faults, thereby narrowing the scope of fault detection.
[0114] After determining that a link has a fault, the computer device may also output an alarm message to the user. Figure 11 As shown, the method also includes:
[0115] S701, if the cloud platform has a faulty service link at the current moment, output alarm information and continue to perform fault detection on the faulty service link; the alarm information is used to prompt the faulty service link in the cloud platform and the user service covered by the faulty service link.
[0116] In the embodiment of the present application, once it is determined that the cloud platform has a faulty service link at the current moment, the computer device can generate an alarm message based on the faulty service link and the user service covered by the faulty service link. And the alarm message is output using the alarm device that comes with the computer device. The alarm device can be a voice device, a display screen, etc. Taking a voice device as an example, the alarm message can be prompted in the form of sound transmission. Taking a display screen as an example, the alarm message can be prompted in the form of text transmission.
[0117] S702: When it is determined that the faulty service link is restored, stop outputting alarm information.
[0118] In an embodiment of the present application, when it is determined that there is a faulty service link in the cloud platform at the current moment, the computer device can continuously detect the faulty service link at a preset period. When it is detected that the faulty service link has not been restored, warning information is continuously output. Once it is detected that the faulty service link is restored, that is, the service link has no fault, the output of the warning information is stopped.
[0119] In the above link detection method, if there is a faulty service link in the cloud platform at the current moment, warning information is output, and the faulty service link continues to be detected for faults; the warning information is used to prompt the faulty service link in the cloud platform and the user services covered by the faulty service link; when it is determined that the faulty service link is restored, the output of the warning information is stopped. This method immediately outputs warning information when there is a faulty service link, and can inform the user of the link fault situation in the first time. At the same time, by continuously detecting the faulty service link for faults, it helps to quickly identify the cause of the fault and repair it. Continuing to give warnings before it is determined that the faulty service link is restored can urge the operation and maintenance personnel to handle the fault in time, shorten the fault repair time, and ensure the continuity of the service.
[0120] In a specific embodiment, as Figure 12 shown, the above link detection method includes:
[0121] S801, based on the service links between multiple network nodes in the cloud platform and the corresponding user services, construct a mapping relationship table between the user services of the cloud platform and multiple network nodes in the cloud platform;
[0122] S802, for any one network node, compare the used resources of the network node with the corresponding carrying threshold;
[0123] S803, if the comparison result is that the used resources are greater than or equal to the corresponding carrying threshold, set the mapped resource value of the network node to the first resource value;
[0124] S804, if the comparison result is that the used resources are less than the corresponding carrying threshold, set the mapped resource value of the network node to the second resource value;
[0125] S805, use the mapped resource value of each network node to update the value at the network node in the mapping relationship table, and use the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment;
[0126] S806, compare the used resources of any one network node with the corresponding carrying threshold;
[0127] S807, obtain all network nodes whose comparison result shows that the used resources are greater than the corresponding preset resource threshold, and use all network nodes greater than the corresponding preset resource threshold as candidate network nodes;
[0128] S808, regard the links between candidate network nodes with unconnected links as faulty service links, and obtain the user services corresponding to the candidate network nodes with unconnected links from the user service distribution information;
[0129] S809, remove the user services with unconnected links from the user services corresponding to multiple candidate network nodes to obtain the user services covered by the faulty service links;
[0130] S810, if there are faulty service links in the cloud platform at the current moment, output an alarm message and continue to perform fault detection on the faulty service links; the alarm message is used to prompt the faulty service links and the user services covered by the faulty service links in the cloud platform;
[0131] S811, stop outputting the alarm message when it is determined that the faulty service link has been restored.
[0132] It should be understood that although the steps in the flowcharts involved in the above embodiments are shown in sequence according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps has no strict order limit, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above embodiments may include multiple steps or multiple stages. These steps or stages are not necessarily executed at the same moment, but can be executed at different moments. The execution order of these steps or stages is not necessarily sequential, but can be executed alternately or in turn with at least a part of the steps or stages in other steps or other steps.
[0133] Based on the same inventive concept, an embodiment of the present application also provides a link detection device for implementing the link detection method involved above. The implementation solution provided by this device to solve problems is similar to the implementation solution described in the above method. Therefore, the specific limitations in one or more embodiments of the link detection device provided below can refer to the limitations on the link detection method in the above text, and will not be repeated here.
[0134] In an exemplary embodiment, as Figure 13 shown, a link detection device is provided, including: an acquisition module 11, a first determination module 12, and a second determination module 13, where:
[0135] An acquisition module 11, configured to acquire the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes.
[0136] A first determination module 12, configured to determine multiple candidate network nodes in the cloud platform based on the used resources of the multiple network nodes in the user service distribution information.
[0137] A second determination module 13, configured to determine the service link detection result of the cloud platform at the current moment according to the connectivity detection result of the links between the multiple candidate network nodes and the user service distribution information; the service link detection result includes the faulty service links in the cloud platform and the user services covered by the faulty service links.
[0138] In one embodiment, the above acquisition module includes: a construction unit and a first determination unit, where:
[0139] The construction unit is configured to construct a mapping relationship table between the user services of the cloud platform and the multiple network nodes in the cloud platform based on the service links between the multiple network nodes in the cloud platform and the corresponding user services.
[0140] The first determination unit is configured to determine the user service distribution information of the cloud platform at the current moment according to the used resources of the multiple network nodes at the current moment and the mapping relationship table.
[0141] In one embodiment, the above first determination unit is further configured to perform clustering mapping on the used resources of the multiple network nodes at the current moment respectively to obtain the mapping resource value of each network node; use the mapping resource value of each network node to update the values at the network nodes in the mapping relationship table, and use the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment.
[0142] In one embodiment, the above first determination unit is further configured to compare the used resources of any network node with the corresponding bearing threshold; if the comparison result is that the used resources are greater than or equal to the corresponding bearing threshold, set the mapping resource value of the network node to the first resource value; if the comparison result is that the used resources are less than the corresponding bearing threshold, set the mapping resource value of the network node to the second resource value.
[0143] In one embodiment, the above second determination module includes: an acquisition unit and an elimination unit, where:
[0144] The acquisition unit is configured to use the links between the candidate network nodes with unconnected links as faulty service links, and acquire the user services corresponding to the candidate network nodes with unconnected links from the user service distribution information.
[0145] An elimination unit, configured to eliminate user services with unconnected links from the user services corresponding to multiple candidate network nodes, so as to obtain the user services covered by the faulty service link.
[0146] In one embodiment, the first determination module includes: a comparison unit and a screening unit, where:
[0147] The comparison unit is configured to compare the used resources of any network node with the corresponding bearing threshold;
[0148] The screening unit is configured to screen out candidate network nodes from multiple network nodes according to the comparison result of the used resources and the corresponding preset resource threshold.
[0149] In one embodiment, the screening unit is further configured to obtain all network nodes whose comparison result is that the used resources are greater than the corresponding preset resource threshold, and use all network nodes greater than the corresponding preset resource threshold as candidate network nodes.
[0150] In one embodiment, the link detection device further includes: an output module and a stop output module, where:
[0151] The output module is configured to output an alarm message when there is a faulty service link in the cloud platform at the current moment, and continue to perform fault detection on the faulty service link; the alarm message is used to prompt the faulty service link and the user services covered by the faulty service link in the cloud platform;
[0152] The stop output module is configured to stop outputting the alarm message when it is determined that the faulty service link has been restored.
[0153] Each module in the above link detection device can be implemented in whole or in part by software, hardware, and their combination. The above modules can be embedded in the processor in the computer device in hardware form or independent of the processor, or stored in the memory in the computer device in software form, so that the processor can call and execute the operations corresponding to the above modules.
[0154] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as Figure 14As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, abbreviated as I / O), and a communication interface. Among them, the processor, the memory, and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data during the link detection process. The input / output interface of the computer device is used to exchange information between the processor and external devices. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, it implements a link detection method.
[0155] Those skilled in the art can understand that Figure 14 the structure shown in is only a block diagram of some structures related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine some components, or have a different component arrangement.
[0156] In an exemplary embodiment, a computer device is provided, including a memory and a processor. A computer program is stored in the memory. When the processor executes the computer program, it implements the content of any one of the above-mentioned link detection method embodiments.
[0157] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by the processor, it implements the content of any one of the above-mentioned link detection method embodiments.
[0158] In one embodiment, a computer program product is provided, including a computer program. When the computer program is executed by the processor, it implements the content of any one of the above-mentioned link detection method embodiments.
[0159] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in the present application are all information and data authorized by the user or fully authorized by all parties, and the collection, use, and processing of relevant data need to comply with relevant regulations.
[0160] Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be completed by instructing relevant hardware through a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above methods. Among them, any reference to a memory, database, or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc. The databases involved in the embodiments provided in the present application can include at least one of relational databases and non-relational databases. Non-relational databases can include distributed databases based on blockchain, etc., without limitation. The processors involved in the embodiments provided in the present application can be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, data processing logics based on quantum computing, artificial intelligence (AI) processors, etc., without limitation.
[0161] The technical features of the above embodiments can be combined arbitrarily. For the sake of brevity of description, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, it should be considered as the scope recorded in the present application.
[0162] The above embodiments merely represent several implementation manners of the present application. The description thereof is relatively specific and detailed, but it should not be construed as a limitation on the patent scope of the present application. It should be noted that for those of ordinary skill in the art, without departing from the concept of the present application, several modifications and improvements can still be made, and these all fall within the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the appended claims.
Claims
1. A link detection method, characterized in that, The method includes: Obtaining the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes; Determining multiple candidate network nodes in the cloud platform based on the used resources of the multiple network nodes in the user service distribution information; Determining the service link detection result of the cloud platform at the current moment according to the connectivity detection result of the links between the multiple candidate network nodes and the user service distribution information; the service link detection result includes the faulty service links in the cloud platform and the user services covered by the faulty service links.
2. The method according to claim 1, wherein The obtaining the user service distribution information of the cloud platform at the current moment includes: Based on the service links between multiple network nodes in the cloud platform and the corresponding user services, constructing a mapping relationship table between the user services of the cloud platform and the multiple network nodes in the cloud platform; Determining the user service distribution information of the cloud platform at the current moment according to the used resources of the multiple network nodes at the current moment and the mapping relationship table.
3. The method according to claim 2, wherein The determining the user service distribution information of the cloud platform at the current moment according to the used resources of the multiple network nodes at the current moment and the mapping relationship table includes: Performing clustering mapping on the used resources of the multiple network nodes at the current moment respectively to obtain the mapping resource value of each network node; Using the mapping resource value of each network node to update the values at the network nodes in the mapping relationship table, and taking the updated mapping relationship table as the user service distribution information of the cloud platform at the current moment.
4. The method according to claim 3, characterized in that, The performing clustering mapping on the used resources of the multiple network nodes at the current moment respectively to obtain the mapping resource value of each network node includes: For any one network node, comparing the used resources of the network node with the corresponding bearing threshold; If the comparison result is that the used resources are greater than or equal to the corresponding bearing threshold, setting the mapping resource value of the network node to the first resource value; If the comparison result is that the used resources are less than the corresponding bearing threshold, setting the mapping resource value of the network node to the second resource value.
5. The method according to any one of claims 1-4, characterized in that, The determining the service link detection result of the cloud platform at the current moment according to the connectivity detection result of the links between the multiple candidate network nodes and the user service distribution information includes: Regarding the links between the candidate network nodes with unconnected links as faulty service links, and obtaining the user services corresponding to the candidate network nodes with unconnected links from the user service distribution information; Excluding the user services with unconnected links from the user services corresponding to the multiple candidate network nodes to obtain the user services covered by the faulty service links.
6. The method according to any one of claims 1-4, characterized in that, The determining the candidate network nodes in the cloud platform based on the used resources of the multiple network nodes in the user service distribution information includes: Comparing the used resources of any one network node with the corresponding bearing threshold; Based on the comparison result between the used resources and the corresponding preset resource thresholds, the candidate network nodes are screened out from the multiple network nodes.
7. The method according to claim 6, wherein The screening out of the candidate network nodes from the multiple network nodes based on the comparison result between the used resources and the corresponding preset resource thresholds includes: Obtaining all network nodes with a comparison result that the used resources are greater than the corresponding preset resource thresholds, and taking all network nodes greater than the corresponding preset resource thresholds as the candidate network nodes.
8. The method according to any one of claims 1 to 4, characterized in that, The method further includes: If there is a faulty service link in the cloud platform at the current moment, an alarm message is output, and the faulty service link continues to be detected for faults; the alarm message is used to prompt the faulty service link in the cloud platform and the user services covered by the faulty service link. When it is determined that the faulty service link is restored, the output of the alarm message is stopped.
9. A link detection device, characterized in that, The device includes: An obtaining module, configured to obtain the user service distribution information of the cloud platform at the current moment; the user service distribution information includes the service links between multiple network nodes in the cloud platform and the corresponding user services, and the used resources of the multiple network nodes. A first determination module, configured to determine multiple candidate network nodes in the cloud platform based on the used resources of the multiple network nodes in the user service distribution information. A second determination module, configured to determine the service link detection result of the cloud platform at the current moment according to the connectivity detection result of the links between the multiple candidate network nodes and the user service distribution information; the service link detection result includes the faulty service link in the cloud platform and the user services covered by the faulty service link.
10. A computer device, comprising a memory and a processor, the memory storing a computer program, characterized in that, When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.