Network testing method, device and equipment, readable storage medium and program product
By obtaining the network information of each node to be tested in the storage system and performing multiple matching concurrent network tests, the problems of low testing efficiency and poor accuracy in traditional methods are solved, and efficient and accurate network testing is achieved.
Patent Information
- Application Number
- CN202411451025.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-16
- Publication Date
- 2025-01-17
AI Technical Summary
Traditional network testing methods are inefficient in testing, which can easily lead to repeated testing between nodes and cannot effectively cover all nodes to be tested, affecting the accuracy of the test.
By obtaining the network information of each node to be tested in the storage system, performing multiple matches to obtain different pairing relationships, conducting concurrent network testing based on these information and matching results, avoiding repeated testing, and selecting appropriate testing tools based on the network information of the nodes. Improve test accuracy.
Improve the efficiency and accuracy of network testing, ensure the coverage of all nodes to be tested, avoid repeated testing, and enhance the targetedness of the test.
Smart Images

Figure CN119324876A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of network detection technology, and in particular to a network testing method, device, equipment, readable storage medium and program product. Background Art
[0002] The storage system includes multiple nodes, and network connections are established between the nodes. As the number of nodes in the storage system continues to increase, the network connections between nodes become more and more complex. When there are some nodes with poor network performance in the storage system, the performance of the entire storage system will be affected. Therefore, a method is urgently needed to quickly test nodes with abnormal network performance in the storage system.
[0003] Traditional network testing methods usually use a preset testing tool to test the network between two nodes in the storage system. However, traditional network testing methods have the problem of low testing efficiency. Summary of the invention
[0004] Based on this, it is necessary to provide a network testing method, device, equipment, readable storage medium and program product that can improve testing efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a network testing method, comprising:
[0006] Obtain network information corresponding to each node to be tested in the storage system;
[0007] Perform multiple matches on each node to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each node to be tested, and different matching results include different pairing relationships;
[0008] According to each network information and each matching result, each node to be tested is controlled to perform multiple concurrent network tests.
[0009] In this way, each node to be tested is matched in a preset matching method, and the pairing relationships included in each matching result obtained are different. Based on each matching result and the network information of each node to be tested, the node to be tested is controlled to perform concurrent network testing, thereby avoiding the problem of test duplication in the traditional technology of randomly performing network testing on two nodes. Moreover, concurrent network testing can be performed simultaneously based on multiple pairing relationships in a matching result, thereby improving the efficiency of network testing. In addition, controlling each node to be tested to perform network testing based on the network information corresponding to each node to be tested is more targeted, thereby improving the accuracy of network testing.
[0010] In one embodiment, multiple matches are performed on each node to be tested to obtain a matching result corresponding to each matching process, including:
[0011] Determine the number of matches according to the number of nodes to be tested;
[0012] Each node to be tested is matched cyclically according to the matching times to obtain each matching result.
[0013] In this way, the number of matches is determined according to the number of nodes to be tested, so that the test process can be accurately planned to avoid unnecessary repeated testing, and the loop matching can cover all nodes to be tested as much as possible to avoid omission of nodes to be tested.
[0014] In one embodiment, each node to be tested is cyclically matched according to the matching times to obtain each matching result, including:
[0015] For each matching process, determine the target sorting order of each node to be tested;
[0016] According to the target sorting order, the first node and the last node in each node to be tested are paired in turn to obtain multiple pairing relationships.
[0017] In this way, the target sorting order of each node to be tested is determined first, which can make the matching process more orderly. The first node and the last node are paired in turn to cover each node to be tested and avoid omission of nodes to be tested. The combination of the two ensures that each node to be tested has a pairing relationship with other nodes and the pairing relationship is not repeated.
[0018] In one embodiment, determining the target sorting order of each node to be tested includes:
[0019] When the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order;
[0020] When the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0021] In this way, when the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order, which provides an initial and stable starting point for the entire matching process. The target sorting order is subsequently adjusted dynamically according to the matching process, so that different pairing relationships can exist in subsequent matching processes, thereby improving the comprehensiveness of the pairing relationship.
[0022] In one embodiment, according to each network information and each matching result, each node to be tested is controlled to perform multiple concurrent network tests, including:
[0023] For each matching result, determine the test information of each node to be tested according to each network information and each pairing relationship included in the matching result;
[0024] According to each test information, control each node to be tested to perform concurrent network testing.
[0025] In this way, a concurrent network test is performed for each matching result, thereby improving the efficiency of the network test.
[0026] In one embodiment, determining the test information of each node to be tested according to each network information and each pairing relationship included in the matching result includes:
[0027] For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold;
[0028] The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0029] In this way, since the network cards set on each node to be tested are different, the network testing tools adapted to each node to be tested are different. In traditional technology, the same network testing tool is used to perform network testing on each node to be tested. In order to improve the accuracy of network testing, in an embodiment of the present application, the master node can analyze the network information of each node to be tested, thereby determining the network testing tool adapted to each node to be tested, so that the subsequent network testing of each node to be tested can be more accurate.
[0030] In one embodiment, according to each test information, controlling each node to be tested to perform concurrent network testing includes:
[0031] Control each target node to perform concurrent network testing according to the test information corresponding to the target node.
[0032] In this way, the network test is performed according to the test information obtained by integrating the pairing relationship and the network information, thereby improving the accuracy of the network test.
[0033] In a second aspect, the present application also provides a network testing device, including:
[0034] An acquisition module is used to acquire network information corresponding to each node to be tested in the storage system;
[0035] A matching module is used to perform multiple matches on each node to be tested to obtain a matching result corresponding to each matching process. The matching result includes a pairing relationship between each node to be tested. Different matching results include different pairing relationships.
[0036] The test module is used to control each node to be tested to perform multiple concurrent network tests according to each network information and each matching result.
[0037] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method of the first aspect when executing the computer program.
[0038] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the steps of the method of the first aspect described above.
[0039] 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 the first aspect are implemented.
[0040] The above network testing method, device, equipment, readable storage medium and program product obtain network information corresponding to each node to be tested in the storage system, and perform multiple matches on each node to be tested to obtain the matching results corresponding to each matching process. According to each network information and each matching result, each node to be tested can be controlled to perform multiple concurrent network tests, wherein the matching results include the pairing relationships between each node to be tested, and different matching results include different pairing relationships. In this way, each node to be tested is matched in a preset matching manner, and the pairing relationships included in each matching result obtained are different. Based on each matching result and the network information of each node to be tested, the node to be tested is controlled to perform concurrent network tests, thereby avoiding the problem of test duplication existing in the conventional technology of randomly performing network tests on two nodes, and concurrent network tests can be performed simultaneously according to multiple pairing relationships in a matching result, thereby improving the efficiency of network testing. In addition, each node to be tested is controlled to perform network tests according to the network information corresponding to each node to be tested, which is more targeted and improves the accuracy of network testing. BRIEF DESCRIPTION OF THE DRAWINGS
[0041] 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.
[0042] Figure 1 An application environment diagram of a network testing method in an embodiment;
[0043] Figure 2 A schematic diagram of a flow chart of a network testing method in an embodiment;
[0044] Figure 3 is a flow chart of step 202 in another embodiment;
[0045] Figure 4 is a schematic flow chart of step 203 in another embodiment;
[0046] Figure 5 is a flowchart of an exemplary network testing method in an embodiment;
[0047] Figure 6 is a structural block diagram of a network testing device in one embodiment;
[0048] Figure 7 is an internal structure diagram of a computer device in one embodiment;
[0049] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in another embodiment. DETAILED DESCRIPTION
[0050] 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.
[0051] The storage system includes multiple nodes, and network connections are established between the nodes. As the number of nodes in the storage system continues to increase, the network connections between nodes become more and more complex. When there are some nodes with poor network performance in the storage system, the performance of the entire storage system will be affected. Therefore, a method is urgently needed to quickly test nodes with abnormal network performance in the storage system.
[0052] Traditional testing methods usually use preset testing tools to test the network performance between two nodes. The testing methods include serial testing methods and parallel testing methods. Among them, the serial testing method requires a certain order, and the test of two nodes must be completed before the next group of two nodes can be tested; while the parallel testing method, when testing two nodes in parallel, may cause repeated testing between two nodes due to the lack of a suitable matching algorithm to match each node.
[0053] Therefore, these testing methods all have the problem of low testing efficiency.
[0054] In view of this, the present application provides a network testing method, device, equipment, readable storage medium and program product, by obtaining the network information corresponding to each node to be tested in the storage system, and matching each node to be tested multiple times, obtaining the matching result corresponding to each matching process, and controlling each node to be tested to perform multiple concurrent network tests according to each network information and each matching result, wherein the matching result includes the pairing relationship between each node to be tested, and different matching results include different pairing relationships. In this way, each node to be tested is matched in a preset matching manner, and the pairing relationships included in each matching result obtained are different. Based on each matching result and the network information of each node to be tested, the node to be tested is controlled to perform concurrent network testing, thereby avoiding the problem of test duplication existing in the conventional technology of randomly performing network testing on two nodes, and concurrent network testing can be performed simultaneously according to multiple pairing relationships in a matching result, thereby improving the efficiency of network testing, and in addition, controlling each node to be tested to perform network testing according to the network information corresponding to each node to be tested is more targeted, thereby improving the accuracy of network testing.
[0055] The network testing method provided in the embodiment of the present application can be applied to Figure 1 In the application environment shown. The storage system may include multiple nodes to be tested 100, which may be servers or terminals, or other devices capable of network communication. There is a communication connection between each node to be tested 100, and the node to be tested 100 includes a master node 101 that controls each node to be tested 100 to perform network testing.
[0056] In an exemplary embodiment, Figure 2 As shown, a network testing method is provided, which is applied to Figure 1 Taking the master node 101 in the example as an example, the method includes the following steps 201 to 203. Among them:
[0057] Step 201: Obtain network information corresponding to each node to be tested in the storage system.
[0058] The network information may be information used to characterize the network status of the node to be tested. In an embodiment of the present application, the network information may include the control network, data network segment, rate and type of the network card, etc.
[0059] Regarding the process of the master node obtaining network information, optionally, the master node generates request information and sends it to each node to be tested, and then obtains the network information returned by each node to be tested; optionally, the master node can directly obtain the network information corresponding to each node to be tested from the database.
[0060] Step 202: perform multiple matches on each node to be tested to obtain a matching result corresponding to each matching process.
[0061] The matching result includes the pairing relationship between the nodes to be tested, and different matching results include different pairing relationships.
[0062] For each node to be tested, the master node can match each node to be tested multiple times. In an embodiment of the present application, for one match, the master node can obtain multiple groups of pairing relationships, and the pairing relationship includes the identifiers of the two nodes to be tested, which can be used to indicate the pairs of nodes for network testing.
[0063] It is understandable that after a match, there may still be nodes to be tested that have not undergone network testing. Therefore, the main node can perform a secondary match to avoid missing nodes to be tested that have not undergone network testing. The pairing relationship included in each matching result is different, thereby avoiding repeated network testing of the same group of nodes to be tested and reducing the waste of testing resources.
[0064] Regarding the matching process, optionally, for a matching process, the master node can input each node to be tested into a pre-trained matching model, so as to obtain the matching result corresponding to this matching process output by the matching model; optionally, for a matching process, the master node can match each node to be tested in pairs according to a preset matching order, such as final matching, etc. After obtaining multiple pairing relationships, the master node can compare the pairing relationships in the current matching process with the pairing relationships included in the matching results of historical rounds, and delete the same pairing relationships to obtain the matching result corresponding to this matching process.
[0065] Step 203: Control each node to be tested to perform multiple concurrent network tests according to each network information and each matching result.
[0066] There will be no repeated nodes to be tested in the pairing relationship included in a matching result. Therefore, the master node can control each node to be tested to determine the number of network tests according to the number of matching results. For each network test, the master node can determine the combination of nodes to be tested for the current network test based on the pairing relationship included in the matching result. In an embodiment of the present application, in order to improve the efficiency of the network test, during each network test, the master node can control the nodes to be tested corresponding to each combination of nodes to be tested to perform concurrent network tests at the same time.
[0067] For a group of tested node combinations in a network test, the master node can determine the relevant test configuration of its network test, such as network test tools, single thread, multi-thread, etc., according to the network information corresponding to the tested nodes in the tested node combination.
[0068] In an embodiment of the present application, the master node can determine the combination of nodes to be tested for network testing based on the pairing relationship in the matching results, and then determine the relevant test configuration based on the network information corresponding to the nodes to be tested in the combination. The master node sends the relevant test configuration and pairing relationship to the corresponding nodes to be tested, and can control each node to be tested to perform multiple concurrent network tests.
[0069] In the above embodiment, each node to be tested is matched in a preset matching manner, and the pairing relationships included in each matching result obtained are different. Based on each matching result and the network information of each node to be tested, the node to be tested is controlled to perform concurrent network testing, thereby avoiding the problem of test duplication that exists in the traditional technology of randomly performing network testing on two nodes. Moreover, concurrent network testing can be performed simultaneously based on multiple pairing relationships in a matching result, thereby improving the efficiency of network testing. In addition, controlling each node to be tested to perform network testing based on the network information corresponding to each node to be tested is more targeted, thereby improving the accuracy of network testing.
[0070] In one embodiment, based on the above Figure 2 The embodiment shown, referring to Figure 3 This embodiment involves a process of performing multiple matches on each node to be tested and obtaining a matching result corresponding to each matching process. Figure 3 As shown, in this embodiment, step 202 includes Figure 3 Step 301 and step 302 are shown.
[0071] Step 301, determining the number of matches according to the number of nodes to be tested.
[0072] Step 302: perform cyclic matching on each node to be tested according to the matching times to obtain each matching result.
[0073] The master node may determine the number of matches based on the number of nodes to be tested. In the embodiment of the present application, the number of matches may be a value obtained by subtracting 1 from the number of nodes to be tested.
[0074] After determining the number of matches, the master node can perform multiple rounds of matching on each node to be tested. In one possible implementation, for each matching process, the master node can determine the target sorting order of each node to be tested, and then, according to the target sorting order, the master node pairs the first node and the last node in each node to be tested in turn to obtain multiple pairing relationships.
[0075] In an embodiment of the present application, at the beginning of each matching process, each node to be tested will be sorted first to obtain a target sorting order for each node to be tested. The target sorting order corresponding to each matching process is different. In a matching process, after the target sorting order is determined, the first and last nodes can be matched in sequence.
[0076] In this way, the target sorting order of each node to be tested is determined first, which can make the matching process more orderly. The first node and the last node are paired in turn to cover each node to be tested and avoid omission of nodes to be tested. The combination of the two ensures that each node to be tested has a pairing relationship with other nodes and the pairing relationship is not repeated.
[0077] Regarding the sorting process, for example, the serial number corresponding to the last node to be tested may be swapped with the serial number of the second node to be tested. In an embodiment of the present application, optionally, when the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order; optionally, when the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0078] In this way, when the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order, which provides an initial and stable starting point for the entire matching process. The target sorting order is subsequently adjusted dynamically according to the matching process, so that different pairing relationships can exist in subsequent matching processes, thereby improving the comprehensiveness of the pairing relationship.
[0079] Regarding the matching process, illustratively, taking the number of nodes to be tested as 6 as an example, a total of 5 rounds of matching are performed.
[0080] The first matching process: the target sorting order is the default sorting order, 1, 2, 3, 4, 5, 6, and the first and last are matched in sequence, and multiple pairing relationships 1 and 6, 2 and 5, 3 and 4 are obtained as the first matching results.
[0081] The second matching process: the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order, then the target sorting order is 1, 6, 2, 3, 4, 5, and the first and last nodes are matched in sequence to obtain multiple pairing relationships 1 and 5, 6 and 4, 2 and 3 as the second matching results.
[0082] By analogy, the matching results corresponding to the five matching processes are finally obtained, which are:
[0083] The first matching results: 1 and 6 match, 2 and 5 match, 3 and 4 match.
[0084] The second matching results: 1 and 5 match, 6 and 4 match, 2 and 3 match.
[0085] The third matching result: 1 and 4 match, 5 and 3 match, 6 and 2 match.
[0086] The fourth matching result: 1 and 3 match, 4 and 2 match, 5 and 6 match.
[0087] The fifth matching result: 1 and 2 match, 3 and 6 match, 4 and 5 match.
[0088] In the above embodiment, the number of matches is determined according to the number of nodes to be tested, so that the test process can be accurately planned to avoid unnecessary repeated testing, and the loop matching can cover all nodes to be tested as much as possible to avoid omission of nodes to be tested.
[0089] In one embodiment, based on the above Figure 2 and 3 The embodiment shown, referring to Figure 4 This embodiment involves a process of controlling each node to be tested to perform multiple concurrent network tests according to each network information and each matching result. Figure 4 As shown, in this embodiment, step 203 includes Figure 4 Step 401 and step 402 are shown.
[0090] Step 401 : for each matching result, determine the test information of each node to be tested according to each network information and each pairing relationship included in the matching result.
[0091] The test information may be information used for network testing, including multi-threading or single-threading, test configuration parameters, etc.
[0092] In an embodiment of the present application, the master node can determine a group of nodes to be tested for network testing based on the pairing relationship in the matching results. For a group of nodes to be tested, the master node can determine their corresponding network information, and then obtain the adapted test information in a targeted manner based on the network information, thereby improving the accuracy of the network test.
[0093] Regarding the process of the master node determining the test information, in one possible implementation, for each pairing relationship included in the matching result, the master node determines the target network information from the two network information corresponding to the pairing relationship, and determines the target test tool and configuration parameters based on the target network information, wherein the configuration parameters include at least a network performance threshold. Then, the master node may use the pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters as the test information of the target node corresponding to the target network information, wherein the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0094] In actual application scenarios, since the network cards installed on each node to be tested are different, the network testing tools adapted to each node to be tested are different. In traditional technologies, the same network testing tool is used to perform network testing on each node to be tested. In order to improve the accuracy of network testing, in an embodiment of the present application, the master node can analyze the network information of each node to be tested, thereby determining the network testing tool adapted to each node to be tested, so that the subsequent network testing of each node to be tested can be more accurate.
[0095] Optionally, the master node can input each network information value into a pre-trained analysis model, thereby determining the target network testing tool based on the analysis model; optionally, a tool that integrates multiple network testing tools is preset in the master node, and the master node can analyze the network information corresponding to each node to be tested by running the tool, thereby determining the target network testing tool suitable for each node to be tested.
[0096] Different network testing tools correspond to different network performance thresholds. When each node to be tested runs the network testing tool to perform network testing, the corresponding network performance data will be obtained. Each node to be tested can detect whether the network performance data meets the network performance threshold. If it does, it means that there is no abnormality in the network performance. Otherwise, there is an abnormality.
[0097] After determining the target network test tool and the corresponding network performance threshold, in order to avoid wasting network test resources, for two nodes to be tested in a pairing relationship, the master node selects either of them as the target node, and then uses the pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters as the test information of the target node corresponding to the target network information, so as to control each node to be tested to perform network testing.
[0098] Step 402: Control each node to be tested to perform concurrent network testing according to each test information.
[0099] For multiple pairing relationships in a matching result, the master node can control the nodes to be tested corresponding to these pairing relationships to perform concurrent network tests, thereby improving network testing efficiency.
[0100] Regarding the process of controlling each node to be tested to perform a concurrent network test, in a possible implementation, the master node may control each target node to perform a concurrent network test according to the test information corresponding to the target node.
[0101] Optionally, the target node may also be a master node. Therefore, when the target node is a master node, the master node may directly obtain the corresponding test information and then perform a network test. Optionally, if the target node is a node to be tested other than the master node, the master node may send the test information to each target node so that each target node performs a network test based on the test information. Exemplarily, after the target node obtains the test information, it may determine the target network tool based on the identifier of the target network test tool, and then determine the corresponding node to be tested based on the pairing relationship. The target network performance test tool may be run based on the configuration parameters to obtain network performance data. The network performance data may be compared with the network performance threshold to obtain the network test results. The network test results include abnormalities and no abnormalities.
[0102] In a possible implementation, after the target node performs a network test, the network test result may be stored in a local database. After multiple network tests are completed, the target node may send the multiple network test results to the master node for analysis by the master node.
[0103] In this way, a concurrent network test is performed for each matching result, thereby improving the efficiency of the network test.
[0104] In one embodiment, please refer to Figure 5 , which shows a flowchart of an exemplary network testing method provided by an embodiment of the present application, the method can be applied to Figure 1 In the implementation environment shown.
[0105] Step 501: Obtain network information corresponding to each node to be tested in the storage system.
[0106] Step 502: determine the number of matches according to the number of nodes to be tested.
[0107] Step 503: For each matching process, when the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order.
[0108] Step 504, when the matching process is not the first matching process, determine the sorting order corresponding to the last matching process, and adjust the sorting position corresponding to the tail node in the sorting order to the second sorting position in the sorting order to obtain the target sorting order.
[0109] Step 505 , pairing the first node and the last node in each node to be tested in turn according to the target sorting order to obtain a plurality of pairing relationships.
[0110] The matching result includes the pairing relationship between the nodes to be tested, and different matching results include different pairing relationships.
[0111] Step 506, for each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, and the configuration parameters at least include the network performance threshold.
[0112] Step 507: Use the pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters as the test information of the target node corresponding to the target network information.
[0113] The target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0114] Step 508, controlling each target node to perform concurrent network testing according to the test information corresponding to the target node.
[0115] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indications of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description 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-mentioned embodiments can 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 alternately with other steps or at least a part of the steps or stages in other steps.
[0116] Based on the same inventive concept, the embodiment of the present application also provides a network testing device for implementing the network testing 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 testing device embodiments provided below can refer to the limitations on the network testing method above, and will not be repeated here.
[0117] In an exemplary embodiment, Figure 6 As shown, a network testing device is provided, which is used for a master node in a storage system, including: an acquisition module 601, a matching module 602 and a testing module 603, wherein:
[0118] An acquisition module 601 is used to acquire network information corresponding to each node to be tested in the storage system;
[0119] A matching module 602 is used to perform multiple matches on each node to be tested, and obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each node to be tested, and different matching results include different pairing relationships;
[0120] The testing module 603 is used to control each node to be tested to perform multiple concurrent network tests according to each network information and each matching result.
[0121] In one embodiment, the matching module 602 includes:
[0122] A number determination unit, used to determine the number of matches according to the number of nodes to be tested;
[0123] The cyclic matching unit is used to perform cyclic matching on each node to be tested according to the matching times to obtain each matching result.
[0124] In one embodiment, the loop matching unit is specifically used to perform:
[0125] For each matching process, determine the target sorting order of each node to be tested;
[0126] According to the target sorting order, the first node and the last node in each node to be tested are paired in turn to obtain multiple pairing relationships.
[0127] In one embodiment, the loop matching unit is further configured to perform:
[0128] When the matching process is the first matching process, the default sorting order of each node to be tested is used as the target sorting order;
[0129] When the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0130] In one embodiment, the testing module 603 includes:
[0131] A test information determination unit, configured to determine, for each matching result, the test information of each node to be tested according to each network information and each pairing relationship included in the matching result;
[0132] The control unit is used to control each node to be tested to perform concurrent network testing according to each test information.
[0133] In one embodiment, the test information determination unit is specifically configured to perform:
[0134] For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold;
[0135] The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0136] In one embodiment, the control unit is specifically configured to execute:
[0137] Control each target node to perform concurrent network testing according to the test information corresponding to the target node.
[0138] Each module in the above network testing device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to each module above.
[0139] In an exemplary embodiment, a computer device is provided. The computer device is a node to be tested. The node to be tested may be a server. The internal structure diagram thereof may be as follows: Figure 7 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. 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. 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 network test data. The input / output interface of the computer device is used to exchange information between the processor and an external device. 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, a network testing method is implemented.
[0140] In an exemplary embodiment, a computer device is provided. The computer device may be a node to be tested, and the node to be tested 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 (NearField Communication, NFC) or other technologies. When the computer program is executed by the processor, a network testing 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.
[0141] Those skilled in the art will understand that Figure 7 and 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.
[0142] 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:
[0143] Obtaining network information corresponding to each node to be tested in the storage system;
[0144] Perform multiple matching on each of the nodes to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each of the nodes to be tested, and different matching results include different pairing relationships;
[0145] According to each of the network information and each of the matching results, each of the nodes to be tested is controlled to perform multiple concurrent network tests.
[0146] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0147] Determine the number of matches according to the number of each of the nodes to be tested;
[0148] The nodes to be tested are matched cyclically according to the matching times to obtain the matching results.
[0149] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0150] For each matching process, determining the target sorting order of each of the nodes to be tested;
[0151] According to the target sorting order, the first node and the last node in each of the nodes to be tested are paired in turn to obtain a plurality of pairing relationships.
[0152] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0153] In the case where the matching process is the first matching process, taking the default sorting order of each of the nodes to be tested as the target sorting order;
[0154] In the case that the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0155] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0156] For each of the matching results, determining the test information of each of the nodes to be tested according to each of the network information and each of the pairing relationships included in the matching result;
[0157] According to each of the test information, each of the nodes to be tested is controlled to perform a concurrent network test.
[0158] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0159] For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold;
[0160] The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0161] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:
[0162] Control each of the target nodes to perform concurrent network testing according to the test information corresponding to the target node.
[0163] 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:
[0164] Obtaining network information corresponding to each node to be tested in the storage system;
[0165] Perform multiple matching on each of the nodes to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each of the nodes to be tested, and different matching results include different pairing relationships;
[0166] According to each of the network information and each of the matching results, each of the nodes to be tested is controlled to perform multiple concurrent network tests.
[0167] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0168] Determine the number of matches according to the number of each of the nodes to be tested;
[0169] The nodes to be tested are matched cyclically according to the matching times to obtain the matching results.
[0170] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0171] For each matching process, determining the target sorting order of each of the nodes to be tested;
[0172] According to the target sorting order, the first node and the last node in each of the nodes to be tested are paired in turn to obtain a plurality of pairing relationships.
[0173] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0174] In the case where the matching process is the first matching process, taking the default sorting order of each of the nodes to be tested as the target sorting order;
[0175] In the case that the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0176] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0177] For each of the matching results, determining the test information of each of the nodes to be tested according to each of the network information and each of the pairing relationships included in the matching result;
[0178] According to each of the test information, each of the nodes to be tested is controlled to perform a concurrent network test.
[0179] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0180] For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold;
[0181] The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0182] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0183] Control each of the target nodes to perform concurrent network testing according to the test information corresponding to the target node.
[0184] In one embodiment, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements the following steps:
[0185] Obtaining network information corresponding to each node to be tested in the storage system;
[0186] Perform multiple matching on each of the nodes to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each of the nodes to be tested, and different matching results include different pairing relationships;
[0187] According to each of the network information and each of the matching results, each of the nodes to be tested is controlled to perform multiple concurrent network tests.
[0188] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0189] Determine the number of matches according to the number of each of the nodes to be tested;
[0190] The nodes to be tested are matched cyclically according to the matching times to obtain the matching results.
[0191] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0192] For each matching process, determining the target sorting order of each of the nodes to be tested;
[0193] According to the target sorting order, the first node and the last node in each of the nodes to be tested are paired in turn to obtain a plurality of pairing relationships.
[0194] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0195] In the case where the matching process is the first matching process, taking the default sorting order of each of the nodes to be tested as the target sorting order;
[0196] In the case that the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
[0197] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0198] For each of the matching results, determining the test information of each of the nodes to be tested according to each of the network information and each of the pairing relationships included in the matching result;
[0199] According to each of the test information, each of the nodes to be tested is controlled to perform a concurrent network test.
[0200] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0201] For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold;
[0202] The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
[0203] In one embodiment, when the computer program is executed by a processor, the following steps are also implemented:
[0204] Control each of the target nodes to perform concurrent network testing according to the test information corresponding to the target node.
[0205] 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 used for analysis, stored data, displayed data, etc.) involved in this 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 must comply with relevant regulations.
[0206] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method 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 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), 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.
[0207] 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.
[0208] The above-described 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 testing method, characterized in that: For a master node in a storage system, the method comprises: Obtaining network information corresponding to each node to be tested in the storage system; Perform multiple matching on each of the nodes to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each of the nodes to be tested, and different matching results include different pairing relationships; According to each of the network information and each of the matching results, each of the nodes to be tested is controlled to perform multiple concurrent network tests.
2. The method according to claim 1, characterized in that The performing multiple matching on each of the nodes to be tested to obtain a matching result corresponding to each matching process includes: Determine the number of matches according to the number of each of the nodes to be tested; The nodes to be tested are matched cyclically according to the matching times to obtain the matching results.
3. The method according to claim 2, characterized in that The step of performing cyclic matching on each of the nodes to be tested according to the matching times to obtain each matching result includes: For each matching process, determining the target sorting order of each of the nodes to be tested; According to the target sorting order, the first node and the last node in each of the nodes to be tested are paired in turn to obtain a plurality of pairing relationships.
4. The method according to claim 3, characterized in that Determining the target sorting order of each of the nodes to be tested includes: In the case where the matching process is the first matching process, taking the default sorting order of each of the nodes to be tested as the target sorting order; In the case that the matching process is not the first matching process, the sorting order corresponding to the previous matching process is determined, and the sorting position corresponding to the tail node in the sorting order is adjusted to the second sorting position in the sorting order to obtain the target sorting order.
5. The method according to any one of claims 1 to 4, characterized in that: According to each of the network information and each of the matching results, controlling each of the nodes to be tested to perform multiple concurrent network tests includes: For each of the matching results, determining the test information of each of the nodes to be tested according to each of the network information and each of the pairing relationships included in the matching result; According to each of the test information, each of the nodes to be tested is controlled to perform a concurrent network test.
6. The method according to claim 5, characterized in that The determining the test information of each of the nodes to be tested according to each of the network information and each of the pairing relationships included in the matching result includes: For each pairing relationship included in the matching result, determine the target network information from the two network information corresponding to the pairing relationship, and determine the target test tool and configuration parameters according to the target network information, wherein the configuration parameters at least include a network performance threshold; The pairing relationship, the tool identifier corresponding to the target test tool, and the configuration parameters are used as the test information of the target node corresponding to the target network information, and the target node is any one of the two nodes to be tested corresponding to the pairing relationship.
7. The method according to claim 6, characterized in that According to each of the test information, controlling each of the nodes to be tested to perform a concurrent network test includes: Control each of the target nodes to perform concurrent network testing according to the test information corresponding to the target node.
8. A network testing device, characterized in that: A master node used in a storage system, the device comprising: An acquisition module, used to acquire network information corresponding to each node to be tested in the storage system; A matching module, used for performing multiple matches on each of the nodes to be tested to obtain a matching result corresponding to each matching process, wherein the matching result includes a pairing relationship between each of the nodes to be tested, and different matching results include different pairing relationships; The testing module is used to control each of the nodes to be tested to perform multiple concurrent network tests according to each of the network information and each of the matching results.
9. 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 7 are implemented.
10. 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 7 are implemented.
11. 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 7 are implemented.