Network connectivity test method and device, equipment, storage medium and program product

By determining the pair of nodes to be tested in the data center based on ARP table entries and using Ping Mesh technology to conduct network connectivity testing, the problem of excessive load processing of core switches caused by excessive ARP broadcast requests in traditional technology is solved, and more efficient network testing and more stable data center operation is achieved.

CN119583399APending Publication Date: 2025-03-07CHINA TELECOM CLOUD TECH CO LTD

Patent Information

Application Number
CN202411792055.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-07

AI Technical Summary

Technical Problem

When traditional Ping Mesh technology conducts network connectivity testing in data centers, it leads to a large number of ARP broadcast requests, significantly increasing the processing load of the core switch, and may cause CPU overload.

Method used

By determining the pair of nodes to be tested in the ARP table entry of each server node in the data center, and using Ping Mesh technology to conduct network connectivity testing on the target node pair, unnecessary ARP broadcasting and processing requests are reduced.

Benefits of technology

It effectively reduces the processing load of the core switch, avoids CPU overload, and improves the stability and reliability of the data center network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119583399A_ABST
    Figure CN119583399A_ABST
Patent Text Reader

Abstract

The invention relates to a network connectivity test method and device, equipment, a storage medium and a program product. The method comprises the following steps: for each server node in the data center, determining at least one to-be-tested node pair of the data center according to an address resolution protocol (ARP) table item of the server node; the ARP table item comprises communication state information of the server node and other server nodes; determining a target node pair from the at least one to-be-tested node pair; and performing a network connectivity test on the target node pair by using a Ping Mesh technology to obtain a test result of the network connectivity of the data center. By adopting the method, the target node pair can be determined from the plurality of server nodes of the data center, so that only the target node pair can be subjected to the network connectivity test, and the processing load of a core switch can be reduced by accurately controlling the server nodes participating in the network connectivity test.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data center technology, and in particular to a network connectivity testing method, device, equipment, storage medium and program product. Background Art

[0002] As the scale of data centers continues to expand, the demand for network monitoring and troubleshooting is growing. Ping Mesh technology can quickly locate network fault points and ensure high availability of services by deploying a comprehensive mutual ping detection mechanism in the data center.

[0003] However, when using Ping Mesh technology to test network connectivity in traditional technology, every time a node needs to send a data packet to another node, if the node does not cache the MAC address corresponding to the target IP of the other node, it will broadcast an ARP request. A large number of ARP broadcast requests significantly increase the processing burden of the core switch in the data center. Therefore, the network connectivity detection method in traditional technology has the problem of heavy processing load on the core switch. Summary of the invention

[0004] Based on this, it is necessary to provide a network connectivity testing method, device, equipment, storage medium and program product that can reduce the processing load of the core switch in response to the above technical problems.

[0005] In a first aspect, the present application provides a network connectivity testing method, comprising:

[0006] For each server node in the data center, at least one node pair to be tested in the data center is determined according to an address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes;

[0007] Determine a target node pair from the at least one node pair to be tested;

[0008] The Ping Mesh technology is used to perform a network connectivity test on the target node pair to obtain a test result of the network connectivity of the data center.

[0009] In one of the embodiments, determining a target node pair from the at least one node pair to be tested includes:

[0010] Determining at least one candidate node pair from the node pairs to be tested according to historical communication information of each of the node pairs to be tested;

[0011] The target node pair is determined from each of the candidate node pairs.

[0012] In one embodiment, determining the target node pair from each of the candidate node pairs includes:

[0013] For each candidate node pair, controlling a first server node in the candidate node pair to send a probe request to a corresponding second server node;

[0014] The target node pair is determined according to the second server node that sends a response message in each of the candidate node pairs; the response message is sent by the second server node in response to the detection request.

[0015] In one of the embodiments, determining the target node pair according to the second server node that sends the response message in each of the candidate node pairs includes:

[0016] The second server that sends the reply message and the corresponding first server form an initial node pair;

[0017] According to a preset number of node pairs, the target node pair is determined from the initial node pair; the number of node pairs is determined according to network load information of the data center.

[0018] In one of the embodiments, determining at least one node pair to be tested in the data center according to the address resolution protocol ARP table entry of the server node includes:

[0019] A node pair whose communication status information in the ARP table entry is a target value is determined as the at least one node pair to be tested.

[0020] In one embodiment, the method further comprises:

[0021] The target node pair is updated according to the network load information of the data center and / or the test result.

[0022] In a second aspect, the present application also provides a network connectivity testing device, comprising:

[0023] A first determination module is used to determine, for each server node in the data center, at least one node pair to be tested in the data center according to an address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes;

[0024] A second determination module, configured to determine a target node pair from the at least one node pair to be tested;

[0025] The test module is used to perform a network connectivity test on the target node pair using the Ping Mesh technology to obtain a test result of the network connectivity of the data center.

[0026] In a third aspect, the present application further provides a computer device, wherein the computer device comprises a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the steps of the method in any one of the embodiments of the first aspect are implemented.

[0027] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.

[0028] In a fifth aspect, the present application further provides a computer program product, wherein the computer program product comprises a computer program, and when the computer program is executed by a processor, the steps of the method in any one of the embodiments of the first aspect are implemented.

[0029] The above-mentioned network connectivity test method, device, equipment, storage medium and program product, for each server node in the data center, determines at least one node pair to be tested in the data center according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes the communication status information between the server node and other server nodes; determines the target node pair from at least one node pair to be tested; uses Ping Mesh technology to perform a network connectivity test on the target node pair to obtain the test result of the network connectivity of the data center. The embodiment of the present application can determine the target node pair from multiple server nodes in the data center according to the communication status information included in the ARP table entry of each server node, so that the network connectivity test can be performed only on the target node pair. In this way, unnecessary ARP broadcasts and ARP processing requests can be effectively reduced by accurately controlling the server nodes participating in the network connectivity test, thereby reducing the processing load of the core switch and avoiding the problem of over-limit of the core switch CPU processing. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0031] Figure 1 An application environment diagram of a network connectivity testing method in one embodiment;

[0032] Figure 2 A schematic diagram of a flow chart of a network connectivity testing method in one embodiment;

[0033] Figure 3 Schematic diagram of a process of determining a target node pair in one embodiment;

[0034] Figure 4 Schematic diagram of a process of a target node pair screening step in one embodiment;

[0035] Figure 5 is a flow chart of a network connectivity testing method according to another embodiment;

[0036] Figure 6 A schematic diagram of a flow chart of a network connectivity testing method in an optional embodiment;

[0037] Figure 7 is a structural block diagram of a network connectivity testing device in one embodiment;

[0038] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION

[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with 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.

[0040] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0041] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] As the scale of Internet Data Center (IDC) continues to expand, the demand for network monitoring and troubleshooting is growing. Among them, Ping Mesh is a widely used network connectivity detection method. Ping Mesh technology can quickly locate network fault points and ensure high availability of services by deploying a comprehensive mutual ping detection mechanism in the data center.

[0044] However, when using Ping Mesh technology to test network connectivity in traditional technology, all server nodes need to send ICMP (Internet Control Message Protocol) Echo requests (i.e., ping commands) to each other indiscriminately. Whenever a server node needs to send a data packet corresponding to an ICMPEcho request to another server node, if the server node does not cache the MAC (Media Access Control Address) corresponding to the target IP (Internet Protocol Address) of the other server node, it will broadcast ARP requests to the core switch and server nodes to convert the IP address to the MAC address through the ARP protocol. In this way, a large number of ARP broadcast requests not only consume network bandwidth, but also significantly increase the processing burden of the core switch in the data center. In extreme cases, the ARP traffic brought by a large number of ARP broadcast requests may be misjudged as an ARP attack, triggering the security defense mechanism of the data center, and even causing the CPU (Central Processing Unit) of the core switch to overload, affecting the stable operation of the entire data center. Therefore, the network connectivity detection method in traditional technology has the problem of heavy processing load on the core switch.

[0045] After introducing the background technology of the network connectivity test method provided by the embodiment of the present application, the implementation environment involved in the network connectivity test method provided by the embodiment of the present application will be briefly described below. The network connectivity test method provided by the embodiment of the present application can be applied to Figure 1In the controller in the data center shown. The data center includes a core switch 11, multiple server nodes 12 and a controller 13. The core switch 11 is used to receive the communication traffic between each server node 12. Each server node 12 can perform a network connectivity test by sending ICMP Echo requests to each other. The controller 13 in the data center can communicate with the core switch 11 and multiple server nodes 12. Among them, the controller 13 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides cloud computing services. Exemplarily, each physical server can be, but not limited to, various personal computers, laptops, smart phones, tablets, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car devices, projection devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc. Head-mounted devices can be virtual reality (VR) devices, augmented reality (AR) devices, smart glasses, etc.

[0046] Those skilled in the art will understand that Figure 1 The structure shown in the figure is only a block diagram of a partial structure related to the scheme of the present application, and does not constitute a limitation on the distributed storage system to which the scheme of the present application is applied. The specific distributed storage system may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0047] In one embodiment, Figure 2 As shown, a network connectivity testing method is provided, which is applied to Figure 1 The controller in the data center in the example is used to illustrate the process, including the following steps:

[0048] S201, for each server node in the data center, determine at least one node pair to be tested in the data center according to the Address Resolution Protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes.

[0049] Among them, ARP (Address Resolution Protocol) is a network protocol used to map IP addresses to physical addresses (such as Ethernet MAC addresses). In a TCP (Transmission Control Protocol) / IP network, if a server node wants to send a data packet to another server node, it first needs to obtain the physical address of the other server node of the target. The ARP table entry not only stores the mapping relationship between the IP address and the MAC address, but also includes the communication status information between the server node and other server nodes. The communication status information is used to indicate whether the server node has a communication demand or has established a communication relationship with other server nodes. The node pair to be tested refers to the server nodes in the data center that have a communication demand or have established a communication relationship with other server nodes.

[0050] In an embodiment of the present application, for each server node in the data center, the controller in the data center can obtain the ARP table entry of the server node in real time or periodically, and can determine whether the server node has a communication demand or whether it has established a communication relationship with other server nodes based on the communication status information in the ARP table entry of the server node. Thus, the server nodes that have communication demands among multiple server nodes in the data center, or the server nodes that have established communication relationships with other server nodes, can be determined as at least one node pair to be tested in the data center.

[0051] S202: Determine a target node pair from at least one node pair to be tested.

[0052] In an embodiment of the present application, optionally, the controller in the data center can directly determine at least one target node pair from at least one node pair to be tested based on the historical communication information of each node pair to be tested; or, the controller in the data center can also determine at least one target node pair from at least one node pair to be tested based on the historical communication information of each node pair to be tested or the network load information of the data center; or, the controller in the data center can also determine at least one target node pair from at least one node pair to be tested based on the historical communication information of each node pair to be tested and the network load information of the data center. Of course, the embodiment of the present application does not limit the specific implementation method for determining the target node pair. Among them, the target node pair refers to a server node pair used for network connectivity testing.

[0053] S203, using Ping Mesh technology to perform a network connectivity test on the target node pair to obtain a test result of the network connectivity of the data center.

[0054] In an embodiment of the present application, the controller in the data center can monitor the current network load of the data center in real time and obtain the network load information of the data center, so that the frequency of the network connectivity test can be dynamically adjusted according to the network load information of the data center at the current moment. For example, during the busy period of the network of the data center, the frequency of the network connectivity test can be appropriately reduced to reduce the impact of the network connectivity test on the network of the data center. Among them, the network load information may include but is not limited to information such as CPU usage and network traffic.

[0055] Therefore, the controller in the data center can use Ping Mesh technology to control the target node pair to send ICMP Echo requests to each other according to the frequency of the network connectivity test at the current moment, so as to perform network connectivity test on the target node pair. In this way, at least one of the indicators such as the average delay, response time, packet loss rate, RTT (round-trip time) of each target node pair can be obtained, and then the connectivity test result of each target node pair can be determined based on the above indicators obtained. Thus, the controller can determine the test result of the network connectivity of the data center based on the connectivity test result of each target node pair. Among them, the connectivity test result indicates that the network connectivity of the target node pair is normal or the network connectivity of the target node pair is abnormal, and the test result indicates that the network connectivity of the data center is normal or the network connectivity of the data center is abnormal. Exemplarily, if the connectivity test results of each target node pair indicate that the network connectivity of the target node pair is normal, the controller can determine that the network connectivity test result of the data center indicates that the network connectivity of the data center is normal; if there is at least one connectivity test result among the connectivity test results of multiple target node pairs indicating that the network connectivity of the target node pair is abnormal, the controller can determine that the network connectivity test result of the data center indicates that the network connectivity of the data center is abnormal.

[0056] In the above network connectivity test method, for each server node in the data center, at least one node pair to be tested in the data center is determined according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes the communication status information between the server node and other server nodes; the target node pair is determined from at least one node pair to be tested; the network connectivity test is performed on the target node pair using the Ping Mesh technology to obtain the test result of the network connectivity of the data center. The embodiment of the present application can determine the target node pair from multiple server nodes in the data center according to the communication status information included in the ARP table entry of each server node, so that the network connectivity test can be performed only on the target node pair. In this way, unnecessary ARP broadcasts and ARP processing requests can be effectively reduced by accurately controlling the server nodes participating in the network connectivity test, thereby reducing the processing load of the core switch and avoiding the problem of over-limit of the core switch CPU processing.

[0057] In one embodiment, an implementation method for determining a node pair to be tested is provided, that is, the “determining at least one node pair to be tested in a data center according to an address resolution protocol ARP table entry of a server node” in the above S201, including:

[0058] A node pair whose communication status information in the ARP table entry is a target value is determined as at least one node pair to be tested.

[0059] In an embodiment of the present application, a controller in a data center can obtain the ARP table entries of each server node and the communication status information in the ARP table entries in real time or periodically, and can determine the node pairs whose communication status information in the ARP table entries is a target value, thereby determining the node pairs whose communication status information in the ARP table entries is a target value as at least one node pair to be tested. Among them, the target value may include a non-failed state and / or an incomplete state, and the non-failed state and / or the incomplete state are used to characterize that the server node has a communication demand, or that the server node has established a communication relationship with other server nodes, or that the server node has communication activities within a preset time period. The communication status information included in the ARP table entries of each server node in the node pair to be tested is the target value.

[0060] In this embodiment, the node pair whose communication status information in the ARP table entry is the target value can be determined as at least one node pair to be tested. In this way, it can be ensured that network connectivity testing will only be performed between server nodes that actually have communication needs or have established communication relationships. The number of ARP broadcasts can be greatly reduced, thereby alleviating the processing load of the core switch.

[0061] In one embodiment, a method for determining a target node pair is provided, namely, "determining a target node pair from at least one node pair to be tested" in the above S202, such as Figure 3 As shown, including:

[0062] S301 : determining at least one candidate node pair from the node pairs to be tested according to historical communication information of each node pair to be tested.

[0063] In an embodiment of the present application, the controller in the data center can monitor the historical communication information of each node pair to be tested in real time or regularly, so that the controller can determine at least one candidate node pair from the node pairs to be tested whose historical communication information meets the preset communication conditions based on the historical communication information of each node pair to be tested. Wherein, the candidate node pair refers to a server node pair screened out based on the historical communication information of the node pair to be tested, and the historical communication information may include but is not limited to at least one of the information such as the historical communication frequency and the historical failure rate between the server nodes, and the preset communication conditions include a preset communication frequency threshold and / or a preset failure rate threshold. Exemplarily, the controller can determine whether the historical communication frequency of each server node in each node pair to be tested is higher than the preset communication frequency threshold, and / or the controller can determine whether the historical failure rate of each server node in each node pair to be tested is lower than the preset failure rate threshold, so that the controller can determine the node pair to be tested whose historical communication frequency of each server node in the node pair to be tested is higher than the preset communication frequency threshold, and / or the node pair to be tested whose historical failure rate of each server node in the node pair to be tested is lower than the preset failure rate threshold as at least one candidate node pair.

[0064] S302: Determine a target node pair from each candidate node pair.

[0065] In an embodiment of the present application, optionally, the controller in the data center can directly determine at least one target node pair from each candidate node pair based on the network load information of the data center; or, the controller in the data center can also determine at least one target node pair from each candidate node pair based on the network load information of the data center and the detection requests corresponding to each candidate node pair; or, the controller in the data center can also determine at least one target node pair from each candidate node pair based on the detection requests corresponding to each candidate node pair. Of course, the embodiment of the present application does not limit the specific implementation method for determining the target node pair.

[0066] In this embodiment, at least one candidate node pair can be determined from the node pairs to be tested based on the historical communication information of each node pair to be tested, and thus, the target node pair can be determined from each candidate node pair. In this way, server nodes that have no interaction for a long time or have less communication can be excluded based on the historical communication information of each node pair to be tested, so that the most suitable candidate node pair and target node pair can be dynamically evaluated and selected through the historical communication information in the historical time period corresponding to the current moment, thereby ensuring the effectiveness and efficiency of the network connectivity test and further reducing the network burden.

[0067] In one embodiment, a method for determining a target node pair from each candidate node pair is provided, that is, “determining a target node pair from each candidate node pair” in the above S302, such as Figure 4 As shown, including:

[0068] S401 : For each candidate node pair, control a first server node in the candidate node pair to send a detection request to a corresponding second server node.

[0069] In an embodiment of the present application, before performing a formal Ping Mesh detection, the controller in the data center can control the first server node in the candidate node pair to send a detection request to the corresponding second server node for each candidate node pair. The first server node refers to a server node in the candidate node pair that can send a detection request to another server node, and the second server node refers to a server node in the candidate node pair that can receive a detection request sent by another server node. Generally, each server node in the candidate node pair can be the first server node or the second server node. The detection request is used to test whether the second server node is down or has other faults.

[0070] S402, determining a target node pair according to the second server node that sends a response message in each candidate node pair; the response message is sent by the second server node in response to the detection request.

[0071] The response message is sent by the second server node in response to the detection request.

[0072] In the embodiment of the present application, optionally, the controller in the data center can directly determine the second server node that sends the response message in each candidate node pair, and the first server node corresponding to the second server node that sends the response message as the target node pair; or, the controller in the data center can also determine the target node pair based on the second server node that sends the response message in each candidate node pair, and the network load information of the data center. Of course, the embodiment of the present application does not limit the specific implementation method for determining the target node pair.

[0073] In this embodiment, for each candidate node pair, the first server node in the candidate node pair can be controlled to send a detection request to the corresponding second server node, that is, the first packet detection can be performed on each candidate node pair based on the detection request, thereby, the second server node that sends a reply message in each candidate node pair can be determined according to the detection result of the first packet detection, and the target node pair can be determined according to the second server node that sends the reply message. In this way, the first packet detection method can be used to eliminate the faulty second server node, thereby further reducing the ARP requests that need to be broadcast during the formal Ping Mesh detection.

[0074] In one embodiment, an implementation method for determining a target node pair is provided, that is, the “determining the target node pair according to the second server node that sends a response message in each candidate node pair” in the above S402 includes:

[0075] The second server that sends the reply message and the corresponding first server form an initial node pair.

[0076] According to a preset number of node pairs, a target node pair is determined from the initial node pairs; the number of node pairs is determined according to the network load information of the data center.

[0077] In an embodiment of the present application, the controller in the data center can determine the second server node that sends a reply message in each candidate node pair, and the first server node corresponding to the second server node that sends the reply message, so that the second server that sends the reply message and the first server corresponding to the second server node that sends the reply message can form an initial node pair.

[0078] In addition, the controller in the data center can also monitor the current network load of the data center in real time, and obtain the network load information of the data center, so that the number of node pairs that need to be tested for network connectivity can be dynamically adjusted according to the network load information of the data center at the current moment. Exemplarily, during the busy period of the network of the data center, it is possible to appropriately reduce the selection of fewer target node pairs for network connectivity testing to reduce the impact of the network connectivity test on the network of the data center. Among them, the network load information may include but is not limited to information such as CPU usage, network card speed, network traffic, etc., and the number of node pairs refers to the number of node pairs that need to be tested for network connectivity. Thus, the controller can randomly select the initial node pair corresponding to the number of node pairs from the initial node pairs as the target node pair according to the number of node pairs adjusted dynamically in real time.

[0079] In this embodiment, the second server that sends the reply message and the corresponding first server can form an initial node pair, and the preset number of node pairs can be determined according to the network load information of the data center, and the target node pair can be determined from the initial node pair. In this way, the density (i.e., the number of node pairs) and frequency of Ping Mesh can be dynamically adjusted through real-time network load information, and an intelligent response to the network health status can be achieved, ensuring that an effective network connectivity test can be completed without increasing network pressure.

[0080] In one embodiment, a method for implementing updating a target node pair is provided, namely, the above-mentioned network connectivity testing method, such as Figure 5 As shown, it also includes:

[0081] S204: Update the target node pair according to the network load information and / or test results of the data center.

[0082] In an embodiment of the present application, the controller in the data center can periodically check and update the ARP table entries of each server node based on the network load information of the data center at each moment and / or the test results of the network connectivity of the data center at the previous moment, thereby dynamically updating the target node pair based on at least one of the updated ARP table entries of each server node, the network load information of the data center, and the test results of the network connectivity of the data center. In addition, the controller can also determine whether the network is abnormal based on the test results of the network connectivity of the data center, and perform a visual display and analysis of the network health status. In the event that a network abnormality is determined, an abnormal alarm can also be issued and corresponding fault recovery measures can be taken. In this way, while ensuring that the network is lightly loaded, network faults can still be quickly and accurately located.

[0083] In this embodiment, the target node pair can be updated according to the network load information and / or test results of the data center, so that the target node pair and the real-time detection strategy can be continuously optimized to ensure that the Ping Mesh detection method can adapt to the network changes of the data center and achieve the optimal allocation of network resources, which not only meets the monitoring needs but also avoids interference with normal business traffic, thereby continuously improving the efficiency and accuracy of network connectivity testing.

[0084] Based on all the above embodiments, the present application also provides a complete network connectivity testing method, such as Figure 6 As shown, the method includes:

[0085] S21, for each server node in the data center, determining a node pair whose communication status information in an ARP table entry is a target value as at least one node pair to be tested; the ARP table entry includes communication status information between the server node and other server nodes;

[0086] S22, determining at least one candidate node pair from the node pairs to be tested according to historical communication information of each node pair to be tested;

[0087] S23, for each candidate node pair, controlling a first server node in the candidate node pair to send a detection request to a corresponding second server node;

[0088] S24, forming an initial node pair with the second server that sends the response message and the corresponding first server; the response message is sent by the second server node in response to the detection request;

[0089] S25, determining a target node pair from the initial node pairs according to a preset number of node pairs; the number of node pairs is determined according to network load information of the data center;

[0090] S26, using Ping Mesh technology to test the network connectivity of the target node pair, and obtain the test result of the network connectivity of the data center;

[0091] S27, updating the target node pair according to the network load information and / or test results of the data center.

[0092] In the above network connectivity test method, for each server node in the data center, at least one node pair to be tested in the data center is determined according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes the communication status information between the server node and other server nodes; the target node pair is determined from at least one node pair to be tested; the network connectivity test of the target node pair is performed using the Ping Mesh technology to obtain the test result of the network connectivity of the data center. The embodiment of the present application can determine the target node pair from multiple server nodes in the data center according to the communication status information included in the ARP table entry of each server node, so that the network connectivity test can be performed only on the target node pair. In this way, unnecessary ARP broadcasts and ARP processing requests can be effectively reduced by accurately controlling the server nodes participating in the network connectivity test, thereby reducing the processing load of the core switch and avoiding the problem of over-limit of the core switch CPU processing. In addition, the possibility of false ARP attacks can be reduced by limiting invalid network detection nodes, maintaining the security of the network environment, and maintaining the stability of network operation to ensure that business continuity is not affected.

[0093] It should be understood that, although the steps in the flowcharts involved in the above embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, 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, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0094] Based on the same inventive concept, the embodiment of the present application also provides a network connectivity test device for implementing the network connectivity test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more network connectivity test device embodiments provided below can refer to the limitations on the network connectivity test method above, and will not be repeated here.

[0095] In an exemplary embodiment, Figure 7 As shown, a network connectivity testing device is provided, comprising: a first determining module 31, a second determining module 32 and a testing module 33, wherein:

[0096] The first determination module 31 is used to determine at least one node pair to be tested in the data center according to the address resolution protocol ARP table entry of each server node in the data center; the ARP table entry includes communication status information between the server node and other server nodes;

[0097] A second determination module 32, configured to determine a target node pair from at least one node pair to be tested;

[0098] The testing module 33 is used to perform a network connectivity test on the target node pair using the Ping Mesh technology to obtain a test result of the network connectivity of the data center.

[0099] In one embodiment, the second determination module 32 includes:

[0100] A candidate node pair determination unit, configured to determine at least one candidate node pair from the node pairs to be tested based on historical communication information of each node pair to be tested;

[0101] The target node pair determining unit is used to determine the target node pair from each candidate node pair.

[0102] In one of the embodiments, the target node pair determination unit includes:

[0103] a sending subunit, configured to control, for each candidate node pair, a first server node in the candidate node pair to send a detection request to a corresponding second server node;

[0104] The target node pair determination subunit is used to determine the target node pair according to the second server node that sends a response message in each candidate node pair; the response message is sent by the second server node in response to the detection request.

[0105] In one embodiment, the target node pair determining subunit is specifically configured to:

[0106] The second server that sends the reply message and the corresponding first server form an initial node pair;

[0107] According to a preset number of node pairs, a target node pair is determined from the initial node pairs; the number of node pairs is determined according to the network load information of the data center.

[0108] In one embodiment, the first determining module 31 includes:

[0109] The first determining unit is configured to determine a node pair whose communication status information in an ARP table entry is a target value as at least one node pair to be tested.

[0110] In one embodiment, the network connectivity testing device further includes:

[0111] The updating module is used to update the target node pair according to the network load information and / or the test result of the data center.

[0112] Each module in the above network connectivity test device can be implemented in whole or in part by software, hardware, or a combination thereof. Each module can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute operations corresponding to each module.

[0113] In an exemplary embodiment, a computer device is provided. The computer device may be a server, or the computer device may be a terminal. The internal structure diagram thereof may be as follows: Figure 8As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. 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 and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be implemented through WIFI, a mobile cellular network, near field communication (Near Field Communication, NFC) or other technologies. When the computer program is executed by the processor, a network connectivity test method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0114] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure 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 certain components, or have a different arrangement of components.

[0115] In an exemplary embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and when the processor executes the computer program, the following steps are implemented:

[0116] For each server node in the data center, at least one node pair to be tested in the data center is determined according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes;

[0117] Determine a target node pair from at least one node pair to be tested;

[0118] Ping Mesh technology is used to test the network connectivity of the target node pair and obtain the test results of the network connectivity of the data center.

[0119] In one embodiment, a target node pair is determined from at least one node pair to be tested, and the processor further implements the following steps when executing the computer program:

[0120] Determine at least one candidate node pair from the node pairs to be tested according to historical communication information of each node pair to be tested;

[0121] A target node pair is determined from each candidate node pair.

[0122] In one embodiment, the target node pair is determined from each candidate node pair, and the processor further implements the following steps when executing the computer program:

[0123] For each candidate node pair, controlling a first server node in the candidate node pair to send a probe request to a corresponding second server node;

[0124] The target node pair is determined according to the second server node that sends a response message in each candidate node pair; the response message is sent by the second server node in response to the detection request.

[0125] In one embodiment, the target node pair is determined according to the second server node that sends the response message in each candidate node pair, and the processor further implements the following steps when executing the computer program:

[0126] The second server that sends the reply message and the corresponding first server form an initial node pair;

[0127] According to a preset number of node pairs, a target node pair is determined from the initial node pairs; the number of node pairs is determined according to the network load information of the data center.

[0128] In one embodiment, at least one node pair to be tested in a data center is determined according to an address resolution protocol ARP table entry of a server node, and the processor further implements the following steps when executing the computer program:

[0129] A node pair whose communication status information in the ARP table entry is a target value is determined as at least one node pair to be tested.

[0130] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0131] The target node pair is updated according to the network load information and / or the test results of the data center.

[0132] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0133] For each server node in the data center, at least one node pair to be tested in the data center is determined according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes;

[0134] Determine a target node pair from at least one node pair to be tested;

[0135] Ping Mesh technology is used to test the network connectivity of the target node pair and obtain the test results of the network connectivity of the data center.

[0136] In one embodiment, a target node pair is determined from at least one node pair to be tested, and when the computer program is executed by a processor, the following steps are further implemented:

[0137] Determine at least one candidate node pair from the node pairs to be tested according to historical communication information of each node pair to be tested;

[0138] A target node pair is determined from each candidate node pair.

[0139] In one embodiment, the target node pair is determined from each candidate node pair, and the computer program, when executed by the processor, further implements the following steps:

[0140] For each candidate node pair, controlling a first server node in the candidate node pair to send a detection request to a corresponding second server node;

[0141] The target node pair is determined according to the second server node that sends a response message in each candidate node pair; the response message is sent by the second server node in response to the detection request.

[0142] In one embodiment, the target node pair is determined according to the second server node that sends the reply message in each candidate node pair, and the computer program further implements the following steps when executed by the processor:

[0143] The second server that sends the reply message and the corresponding first server form an initial node pair;

[0144] According to a preset number of node pairs, a target node pair is determined from the initial node pairs; the number of node pairs is determined according to the network load information of the data center.

[0145] In one embodiment, at least one node pair to be tested in a data center is determined according to an address resolution protocol ARP table entry of a server node, and the computer program further implements the following steps when executed by a processor:

[0146] A node pair whose communication status information in the ARP table entry is a target value is determined as at least one node pair to be tested.

[0147] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0148] The target node pair is updated according to the network load information and / or the test results of the data center.

[0149] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:

[0150] For each server node in the data center, at least one node pair to be tested in the data center is determined according to the address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes;

[0151] Determine a target node pair from at least one node pair to be tested;

[0152] Ping Mesh technology is used to test the network connectivity of the target node pair and obtain the test results of the network connectivity of the data center.

[0153] In one embodiment, a target node pair is determined from at least one node pair to be tested, and when the computer program is executed by a processor, the following steps are further implemented:

[0154] Determine at least one candidate node pair from the node pairs to be tested according to historical communication information of each node pair to be tested;

[0155] A target node pair is determined from each candidate node pair.

[0156] In one embodiment, the target node pair is determined from each candidate node pair, and the computer program, when executed by the processor, further implements the following steps:

[0157] For each candidate node pair, controlling a first server node in the candidate node pair to send a probe request to a corresponding second server node;

[0158] The target node pair is determined according to the second server node that sends a response message in each candidate node pair; the response message is sent by the second server node in response to the detection request.

[0159] In one embodiment, the target node pair is determined according to the second server node that sends the reply message in each candidate node pair, and the computer program further implements the following steps when executed by the processor:

[0160] The second server that sends the reply message and the corresponding first server form an initial node pair;

[0161] According to a preset number of node pairs, a target node pair is determined from the initial node pairs; the number of node pairs is determined according to the network load information of the data center.

[0162] In one embodiment, at least one node pair to be tested in a data center is determined according to an address resolution protocol ARP table entry of a server node, and the computer program further implements the following steps when executed by a processor:

[0163] A node pair whose communication status information in the ARP table entry is a target value is determined as at least one node pair to be tested.

[0164] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:

[0165] The target node pair is updated according to the network load information and / or the test results of the data center.

[0166] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be completed by instructing the relevant hardware through a computer program, and 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-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this 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), magnetic 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. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.

[0167] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, 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, they should be considered to be within the scope of this application.

[0168] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A network connectivity testing method, characterized in that: The method comprises: For each server node in the data center, at least one node pair to be tested in the data center is determined according to an address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes; Determine a target node pair from the at least one node pair to be tested; The Ping Mesh technology is used to perform a network connectivity test on the target node pair to obtain a test result of the network connectivity of the data center.

2. The method according to claim 1, characterized in that The step of determining a target node pair from the at least one node pair to be tested comprises: Determining at least one candidate node pair from the node pairs to be tested according to historical communication information of each of the node pairs to be tested; The target node pair is determined from each of the candidate node pairs.

3. The method according to claim 2, characterized in that The step of determining the target node pair from the candidate node pairs includes: For each candidate node pair, controlling a first server node in the candidate node pair to send a probe request to a corresponding second server node; The target node pair is determined according to the second server node that sends a response message in each of the candidate node pairs; the response message is sent by the second server node in response to the detection request.

4. The method according to claim 3, characterized in that The determining the target node pair according to the second server node that sends the response message in each of the candidate node pairs includes: The second server that sends the reply message and the corresponding first server form an initial node pair; According to a preset number of node pairs, the target node pair is determined from the initial node pair; the number of node pairs is determined according to network load information of the data center.

5. The method according to any one of claims 1 to 4, characterized in that The step of determining at least one pair of nodes to be tested in the data center according to the address resolution protocol ARP table entry of the server node includes: A node pair whose communication status information in the ARP table entry is a target value is determined as the at least one node pair to be tested.

6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: The target node pair is updated according to the network load information of the data center and / or the test result.

7. A network connectivity testing device, characterized in that: The device comprises: A first determination module is used to determine, for each server node in the data center, at least one node pair to be tested in the data center according to an address resolution protocol ARP table entry of the server node; the ARP table entry includes communication status information between the server node and other server nodes; A second determination module, configured to determine a target node pair from the at least one node pair to be tested; The test module is used to perform a network connectivity test on the target node pair using the Ping Mesh technology to obtain a test result of the network connectivity of the data center.

8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Method and device capable of automatically recognizing adjacency relation between server and access switch

    CN103441935A

  • Network card connectivity detection method and device, electronic device and storage medium

    CN115297028A

  • Base station state detection method and system and storage medium

    CN117082558A

  • Method and node equipment for updating address analytic protocol table entry

    CN1870660A

  • Systems, methods, and apparatus for ARP mediation

    US20170012933A1

Cited By

  • Communication testing methods, apparatus, equipment, storage media and program products

    CN122578487A