Method and device for testing network performance

Through multiple tests of grouping and networking of multiple computing devices, the problem of network performance test accuracy and efficiency in a cloud network virtualization environment is solved, and efficient and accurate network performance evaluation is achieved.

CN114584484BActive Publication Date: 2024-10-25ALIBABA CLOUD COMPUTING CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210054169.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-18
Publication Date
2024-10-25
Estimated Expiration
2042-01-18

AI Technical Summary

Technical Problem

In a cloud network virtualization environment, existing network performance testing tools are not accurate enough or take too long to effectively evaluate cloud network performance, leading to various software problems.

Method used

By grouping multiple computing devices for the first time, multiple groups are formed, and network performance testing is performed on each group. Then computing devices are extracted from each group to form a new group, and networking and testing are performed again. Network in pairs or full coverage, and adjust the networking method based on test results.

Benefits of technology

It improves the efficiency and accuracy of network performance testing, appropriately expands the test scope, makes up for the lack of accuracy in the initial test, and implements a binary or even more diverse grouping model, taking into account both test efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114584484B_ABST
    Figure CN114584484B_ABST
Patent Text Reader

Abstract

The embodiments of the present specification provide a method and apparatus for testing network performance, wherein the method for testing network performance includes: grouping a plurality of computing devices for the first time to obtain two or more first groups, wherein each first group includes at least two computing devices; networking the computing devices in the first group within the group to obtain a primary network, and performing a first network performance test on each primary network; extracting computing devices from at least two groups obtained from the previous grouping and grouping them again to form a second group; networking the computing devices in the second group within the group to obtain a secondary network, and performing a second network performance test on each secondary network, thereby effectively taking into account both efficiency and accuracy based on binary or even more multiple groupings, thereby improving the effect of performance testing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present specification relate to the field of cloud computing technology, and more particularly to a method and device for testing network performance. Background Art

[0002] When cloud networks are provided to customers, if the network performance does not meet expectations, various problems will occur in the software provided to customers. Therefore, network performance evaluation is required when cloud networks are provided to customers. In a cloud network virtualization environment, some virtual machines are on the same physical machine, while some virtual machines are on different physical machines. The network performance gap is large, and there are super-large-scale computer rooms and heterogeneous computer rooms. These factors have caused current network performance testing tools to be either not accurate enough or take too long.

[0003] Therefore, facing the complex cloud network environment, how to improve the efficiency and accuracy of cloud network performance testing is a technical problem that needs to be solved urgently. Summary of the invention

[0004] In view of this, an embodiment of this specification provides a method for testing network performance. One or more embodiments of this specification also relate to an apparatus for testing network performance, a computing device, a computer-readable storage medium and a computer program to solve the technical defects existing in the prior art.

[0005] According to a first aspect of an embodiment of the present specification, a method for testing network performance is provided, comprising: grouping a plurality of computing devices for a first time to obtain two or more first groups, wherein each first group includes at least two computing devices; networking the computing devices in the first group within the group to obtain a primary network, and performing a first network performance test on each primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices; extracting computing devices from at least two groups obtained from the previous grouping and grouping them again to form a second group; networking the computing devices in the second group within the group to obtain a secondary network, and performing a second network performance test on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

[0006] Optionally, the method further includes: after obtaining the second grouping, re-entering at least once the step of extracting computing devices from at least two groups obtained from the previous grouping to form the second grouping.

[0007] Optionally, the processing steps for networking the computing devices within the group include: pairing the computing devices within the group into a network, or pairing the computing devices in the first group into a network within the group in a full coverage manner; wherein the pairing method includes: dividing the computing devices within the group into pairs, each pair of computing devices forming a network, and if there is a single computing device that cannot be paired, the single computing device forms a network with any computing device in the group; wherein the full coverage method includes: each computing device in the group forms a network one-to-one with every other computing device in the group.

[0008] Optionally, networking the computing devices in the first group within the group includes: networking the computing devices in the first group in pairs within the group when the similarity between the computing devices in the first group meets a preset similarity requirement; networking the computing devices in the second group within the group includes: networking the computing devices in the second group within the group in a full coverage manner.

[0009] Optionally, networking the computing devices in the first group within the group includes: networking the computing devices in the first group in a full coverage manner within the group when the similarity between the computing devices in the first group does not meet a preset similarity requirement.

[0010] Optionally, the first grouping of the plurality of computing devices includes: according to the similarities between the plurality of devices, grouping computing devices whose similarities meet a preset similarity requirement into the same group.

[0011] Optionally, the first grouping of the plurality of computing devices includes: grouping at least one computing device of a first CPU type and at least one computing device of a second CPU type into the same group, wherein the first CPU type and the second CPU type are different CPU types. The networking of the computing devices in the first group within the group includes: networking the computing devices in the first group obtained by grouping according to different CPU types in a full coverage manner within the group. The networking of the computing devices in the second group within the group includes: networking the computing devices in the second group in pairs or in a full coverage manner within the group.

[0012] Optionally, networking the computing devices in the second group within the group includes: determining whether the test results of the computing devices in the second group obtained through the first network performance test do not meet preset requirements; if so, networking the computing devices in the second group within the group in a full coverage manner; if not, networking the computing devices in the second group within the group in pairs.

[0013] Optionally, extracting computing devices from at least two first groups to form a second group includes: determining an extraction weight of the computing device based on the test result of the first network performance test, wherein a computing device with a better test result has a lower extraction weight; and extracting computing devices from at least two first groups to form a second group based on the extraction weight of the computing device.

[0014] Optionally, it also includes: in response to receiving a user's request for testing network performance, obtaining information of the multiple computing devices from the test network performance request; predicting the test network performance time corresponding to the three models of pairwise pairing model, full coverage model and multivariate grouping model according to the information of the multiple computing devices; sending the network performance test time to the user so that the user can select the required model from the pairwise pairing model, full coverage model or multivariate grouping model; if the user selects the multivariate grouping model, entering the step of grouping the multiple computing devices for the first time to obtain two or more first groups; if the user selects the pairwise pairing model, each computing device is divided into only one network and two computing devices are paired as a group to form a network, obtaining several networks, and performing a network performance test on each network; if the user selects the full coverage model, each computing device is networked one-to-one with every other computing device to obtain several networks, and performing a network performance test on each network.

[0015] According to the second aspect of the embodiments of this specification, there is provided a device for testing network performance, comprising: a first grouping module, configured to group multiple computing devices for the first time, and obtain two or more first groups, wherein each first group includes at least two computing devices. A first testing module, configured to network the computing devices in the first group within the group to obtain a primary network, and perform a first network performance test for each network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices. A second grouping module, configured to extract computing devices from at least two groups obtained from the previous grouping, and group them again to form a second group. A second testing module, configured to network the computing devices in the second group within the group to obtain a secondary network, and perform a second network performance test for each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

[0016] According to a third aspect of an embodiment of this specification, a computing device is provided, comprising: a memory and a processor; the memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions, which, when executed by the processor, implement the steps of the method for testing network performance described in any embodiment of this specification.

[0017] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions. When the computer-executable instructions are executed by a processor, the steps of the method for testing network performance described in any embodiment of this specification are implemented.

[0018] According to a fifth aspect of the embodiments of this specification, a computer program is provided, which, when executed in a computer, causes the computer to execute the steps of the above-mentioned method for testing network performance.

[0019] One embodiment of the present specification implements a method for testing network performance. Since the method first groups multiple computing devices for the first time to obtain two or more first groups, each first group includes at least two computing devices, and the computing devices in the first group are networked within the group to obtain a primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices. Therefore, the number of networks obtained is less than the number of networks with full one-to-one coverage. The first network performance test is performed on each network obtained by the first grouping, which is less time-consuming and more efficient. Secondly, since the at least two groups obtained from the previous grouping are respectively The computing devices are extracted and grouped again to form a second group, the computing devices in the second group are networked within the group to obtain a secondary network, and a second network performance test is performed on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices. Therefore, the scope of the network performance test is appropriately expanded, and the second network performance test makes up for the test accuracy of the first network performance test, and the test accuracy is further improved. Therefore, the method performs network performance tests separately through networking of at least two groups, thereby realizing a network performance test method of a binary or even more multiple grouping model, which effectively takes into account both test efficiency and test accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of a method for testing network performance provided by an embodiment of this specification;

[0021] Figure 2 is a schematic diagram of a binary grouping model provided by an embodiment of this specification;

[0022] Figure 3 It is a schematic diagram of networking in pairs provided by an embodiment of this specification;

[0023] Figure 4 This is a schematic diagram of a full coverage networking method provided by an embodiment of this specification;

[0024] Figure 5 It is a structural schematic diagram of a device for testing network performance provided by an embodiment of this specification;

[0025] Figure 6 is a structural schematic diagram of a device for testing network performance provided by another embodiment of the present specification;

[0026] Figure 7 It is a structural block diagram of a computing device provided by an embodiment of this specification. DETAILED DESCRIPTION

[0027] Many specific details are described in the following description to facilitate a full understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of this specification, so this specification is not limited to the specific implementation disclosed below.

[0028] The terms used in one or more embodiments of this specification are only for the purpose of describing specific embodiments, and are not intended to limit one or more embodiments of this specification. The singular forms of "a", "said" and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms, unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.

[0029] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0030] In this specification, a method for testing network performance is provided. This specification also relates to an apparatus for testing network performance, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.

[0031] See also Figure 1 , Figure 1 A flowchart of a method for testing network performance provided according to an embodiment of the present specification is shown, which specifically includes the following steps.

[0032] Step 102: Group the plurality of computing devices for the first time to obtain two or more first groups, wherein each first group includes at least two computing devices.

[0033] The multiple computing devices may be multiple computing devices in a cloud network. The multiple computing devices may be specified by a user or selected by the test end according to the needs of an application scenario. For example, the test end may receive a computing device list submitted by a user and perform a first grouping of all devices in the computing device list. Each computing device is divided into at least one first group. The computing device may be a virtual machine or a physical machine.

[0034] When grouping, the computing devices may be divided into any number. For example, assuming there are N computing devices in total, and each first group is expected to contain M computing devices, then P first groups may be obtained, where P is equal to N divided by M. It should be noted that the number of computing devices in multiple first groups may be the same or different.

[0035] Step 104: Network the computing devices in the first group within the group to obtain a primary network, and perform a first network performance test on each primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices.

[0036] Among them, networking within a group means dividing the computing devices within the group into one or more groups, and the computing devices in each group form a network, that is, a networking. The specific number of devices used to form a networking can be set according to the needs of the implementation scenario. The number of computing devices between multiple networks can be the same or different. At least one computing device is different between multiple networks. That is, a computing device in a group can participate in the networking of only one group or multiple groups.

[0037] The specific networking method is not limited, for example, the networking can be carried out in a pairing manner or a full coverage manner. Figure 2 The binary grouping model schematic diagram shown in the figure can network the three computing devices in the first group 1 in a full coverage manner, and the three computing devices in the first group 2 in a full coverage manner, and respectively obtain: the network formed by "computing device 1" and "computing device 2", the network formed by "computing device 1" and "computing device 3", the network formed by "computing device 2" and "computing device 3", the network formed by "computing device 4" and "computing device 5", the network formed by "computing device 4" and "computing device 6", and the network formed by "computing device 5" and "computing device 6". Then, the first network performance test is performed on these networks.

[0038] The specific test content of the first network performance test can be set according to the implementation scenario. For example, the test content may include: network bandwidth performance and / or PPS performance (Packet Per Second).

[0039] Step 106: extract computing devices from at least two groups obtained from the previous grouping, and group them again to form a second group.

[0040] The strategy for extracting computing devices can be set according to the needs of the implementation scenario. For example, one or more computing devices can be randomly extracted from each group. For example, assuming there are P groups, and 1 computing device is extracted from each group, a total of 3*P computing devices are extracted. For another example, the number of computing devices to be extracted from each first group, the characteristics that the extracted computing devices should have, etc. can be determined based on the test results of the first network performance test.

[0041] When the computing devices are extracted and grouped again to form a second group, the second group may be one or more, and the number of the second groups may be determined according to the implementation scenario requirements and the number of the extracted computing devices.

[0042] For example, Figure 2 The binary grouping model schematic diagram shown can extract computing device 1 and computing device 3 from first group 1, and computing device 4 and computing device 5 from first group 2, to form a second group including computing device 1, computing device 3, computing device 4 and computing device 5.

[0043] Step 108: Network the computing devices in the second group within the group to obtain a secondary network, and perform a second network performance test on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

[0044] It should be noted that, according to the needs of the actual application scenario, at least two groupings can be performed, and the network performance test can be performed for the networking obtained by each grouping. For example, three, four or even more groupings can be performed as needed, and the embodiments of this specification do not limit this. Therefore, the method may also include: after obtaining the second grouping, at least once re-entering the step of extracting computing devices from the at least two groups obtained from the previous grouping to form a second grouping. For example, after performing the second grouping to obtain multiple second groups, computing devices can be extracted from the multiple second groups obtained from the second grouping for re-grouping to obtain multiple second groups obtained by the third grouping, and the multiple second groups obtained by the third grouping can be networked and tested for network performance. According to the needs of the scenario, computing devices can also be extracted from the multiple second groups obtained by the third grouping for re-grouping to obtain multiple second groups obtained by the fourth grouping, and the multiple second groups obtained by the fourth grouping can be networked and tested for network performance, and so on and so forth.

[0045] The test content of the network performance test for each grouping may be the same or different, and is specifically set according to the needs of the implementation scenario.

[0046] Among them, the way in which the computing devices in the second group are networked within the group can be determined based on the performance test results of the extracted computing devices. For example, it can be determined whether the test results obtained by the computing devices in the second group through the first network performance test do not meet the preset requirements; if so, the computing devices in the second group are networked in a full coverage manner within the group; if not, the computing devices in the second group are networked in pairs within the group. By networking in a full coverage manner, computing devices whose performance does not meet the preset requirements can be networked with other computing devices and undergo a second network performance test to make up for the test results of the first network performance test, thereby improving the test accuracy.

[0047] Among them, the preset requirements, for example, can be preset bandwidth, PPS preset expected threshold range. If it is within the preset expected threshold range, the performance is excellent or normal, if not, the performance is poor. It is understandable that if the computing device is of particularly good or ordinary performance, it can be networked in pairs or in full coverage as needed. If the performance is relatively poor, a full coverage network will achieve more accurate test accuracy.

[0048] For example, Figure 2 The binary grouping model schematic diagram shown in the figure can be used to network the second group including computing device 1, computing device 3, computing device 4 and computing device 5 in pairs, so as to obtain the network formed by "computing device 1" and "computing device 4", the network formed by "computing device 1" and "computing device 5", the network formed by "computing device 3" and "computing device 4", and the network formed by "computing device 3" and "computing device 5". In addition, since the network formed by "computing device 1" and "computing device 3" and the network formed by "computing device 4" and "computing device 5" have been tested in the first grouping, they can be excluded in the second grouping. Then, the second network performance test can be performed on these secondary networks.

[0049] Since the method first groups multiple computing devices for the first time to obtain two or more first groups, each first group includes at least two computing devices, and the computing devices in the first group are networked within the group to obtain a primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices. Therefore, the number of networks obtained is less than the number of networks with full one-to-one coverage, and a first network performance test is performed on each primary network obtained by the first grouping, which is less time-consuming and more efficient; secondly, since computing devices are extracted from at least two groups obtained by the previous grouping and grouped again to form a second group, the computing devices in the second group are networked within the group to obtain a secondary network, and a second network performance test is performed on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices. Therefore, the scope of the network performance test is appropriately expanded, and the second network performance test makes up for the test accuracy of the first network performance test, and the test accuracy is further improved. It can be seen that this method performs network grouping modeling by merging multiple computing devices within / outside the group at least twice, and performs network performance tests on the networks of at least two groupings respectively, thereby realizing network performance testing of binary or even more multiple grouping models, effectively taking into account both test efficiency and test accuracy.

[0050] Next, the steps of networking within a group are exemplarily described by taking networking in a pairing manner and networking in a full coverage manner as examples.

[0051] For example, the processing step of the networking may include: forming a network by pairing computing devices in the group, or forming a network by fully covering the computing devices in the first group.

[0052] Specifically, the pairing method includes: dividing the computing devices in the group into pairs, each pair of computing devices forms a network, and if there is a single computing device that cannot be paired, the single computing device forms a network with any computing device in the group. Assuming that one group corresponds to one queue, the queue is divided into a group of two computing devices. If the number of computing devices in the queue is an odd number, the last computing device in the queue can be networked with the first computing device or the previous computing device in the queue. Figure 3 As shown in the schematic diagram of networking in pairs, six computing devices are networked in pairs to obtain three primary networks. Each primary network undergoes a first network performance test to obtain its own test result, such as "network bandwidth result 1", "network bandwidth result 2", and "network bandwidth result 3".

[0053] Specifically, the full coverage method includes: each computing device in the group forms a network with each other computing device in the group one-to-one. Assuming that one group corresponds to one queue, any two devices in the queue must be networked, that is, the C(N,2) model in mathematics. The larger N is, the more groups there are. Figure 4 As shown in the schematic diagram of networking in a full coverage manner, six computing devices are networked in a full coverage manner to obtain 15 networks, and each network undergoes a first network performance test to obtain its own test result.

[0054] For example, in practical applications, the two-by-two approach or the full coverage approach can be selected based on the consistency of computing devices in the group. For example, computing devices can be roughly divided into three situations:

[0055] One situation: Multiple virtual machines on the same physical machine are in one group. Since the network card is not used, the performance test results will be better, and these computing devices have good consistency. Therefore, this group with better predicted performance can be considered as nodes with consistency, and networking is carried out in pairs.

[0056] Another situation: The predicted performance of the network between the computing devices in the group is mostly in the middle, which is relatively normal, and the networking can also be carried out in pairs.

[0057] Another situation: the prediction performance of the network between computing devices in the group is mostly poor, and the consistency of these computing devices is poor. Therefore, it can be considered as a focus that needs attention. Therefore, a full coverage method can be used for networking. In addition, this type of computing device can be given a greater weight when it is extracted, and it is easier to be selected for the second networking test.

[0058] It should be noted that the method provided in the embodiments of this specification does not limit the way in which the first group and the second group are networked. For example, the first group can be networked in pairs within the group, and the second group can be networked in full coverage within the group. For another example, the first group can be networked in full coverage within the group, and the second group can be networked in pairs within the group. For another example, both the first group and the second group can be networked in pairs within the group. For another example, both the first group and the second group can be networked in full coverage within the group. The specific way to network can be set according to the above example description, or according to the needs of the implementation scenario and the user's requirements for accuracy and efficiency.

[0059] In order to further improve the efficiency and accuracy of network performance testing, in one or more embodiments of this specification, networking the computing devices in the first group within the group may include: networking the computing devices in the first group in pairs within the group when the similarity between the computing devices in the first group meets the preset similarity requirement. Networking the computing devices in the second group within the group includes: networking the computing devices in the second group in a full coverage manner within the group.

[0060] Among them, the evaluation method of the similarity between computing devices is not limited. For example, it can be judged based on basic attributes such as whether the computing devices are on the same physical machine and whether they are of the same CPU type. The preset similarity requirements are set accordingly to the similarity evaluation method. For example, the preset similarity requirements can be requirements for basic attributes such as belonging to the same physical machine and the same CPU type. In this embodiment, considering that there is consistency between computing devices in the group, the network performance tested is usually better. Therefore, according to the similarity between computing devices that meets the preset similarity requirements, the computing devices are regarded as having consistency. The networking and performance testing can be carried out in pairs with less dense test granularity, so as to improve the efficiency of network performance testing. In addition, since the number of computing devices in the second group is relatively small, the networking can be carried out in a full coverage manner to refine the test granularity and improve the accuracy of network performance testing.

[0061] In combination with the above embodiment, the step of networking the computing devices in the first group within the group may also include: when the similarity between the computing devices in the first group does not meet the preset similarity requirement, networking the computing devices in the first group within the group in a full coverage manner. In this implementation, in the case where there is no consistency between the computing devices in the group, the network performance may be unstable, so a full coverage manner is used to perform networking to refine the test granularity and improve the accuracy of the network performance test.

[0062] It should be noted that, in the above embodiment, when performing the first grouping, the groups may be grouped according to similarity or not, as long as the corresponding networking mode is selected according to the similarity. Of course, grouping according to similarity is more conducive to improving the test efficiency. Therefore, in another embodiment of the specification, the first grouping of the plurality of computing devices may include: according to the similarity between the plurality of devices, the computing devices whose similarity meets the preset similarity requirements are grouped into the same group.

[0063] For example, in actual application, during the first grouping, similar computing devices can be selected to be grouped into the same group to be networked and tested in pairs. During the second grouping, computing devices can be selected according to a certain strategy or randomly to form a second group to be networked and tested in a full coverage manner.

[0064] In order to test the network performance between computing devices of different CPU types, in one or more embodiments of this specification, the first grouping of multiple computing devices may include: grouping at least one computing device belonging to the first CPU type and at least one computing device belonging to the second CPU type into the same group, wherein the first CPU type and the second CPU type are different CPU types. The networking of the computing devices in the first group within the group may include: networking the computing devices in the first group obtained by grouping according to different CPU types in a full coverage manner within the group. The networking of the computing devices in the second group within the group may include: networking the computing devices in the second group within the group in pairs or in a full coverage manner. In this embodiment, at least two computing devices of different CPU types (such as arm type and x86 type) are selected and incorporated into the same group in a full coverage manner for networking and testing, and then the computing devices extracted across groups are networked and tested in pairs or in a full coverage manner.

[0065] For example, in one implementation of the above-mentioned multiple embodiments, during the first grouping, the computing devices can be grouped according to the similarity between them. Specifically, the computing devices that are relatively similar to each other are placed in the same group, and the computing devices that cannot be grouped with other computing devices based on similarity can be placed in a separate group. In addition, some computing devices of different CPU types can be selected from each group and placed in the same group. After the first grouping is completed, the first groups that are similar to the computing devices are networked in pairs, and the first groups that are not similar to the computing devices are networked in a full coverage manner, and a first network performance test is performed on each network. Then, a certain number of computing devices are extracted from each first group and regrouped to obtain a second group. The second group is networked in pairs or in a full coverage manner and a second network performance test is performed.

[0066] In order to enable the network performance test of the extracted computing devices to fully compensate for the accuracy of the first network performance test, in one or more embodiments of the present specification, the computing devices are respectively extracted from the at least two groups obtained from the previous grouping and grouped again to form a second group, including: according to the test results of the network performance test of the previous grouping, the extraction weight of the computing device is determined, wherein the computing device with a better test result has a lower corresponding extraction weight; according to the extraction weight of the computing device, the computing devices are respectively extracted from the at least two groups obtained from the previous grouping and grouped again to form a second group.

[0067] For example, assuming that the test result of the first network performance test of the first group 1 is "excellent", the test result of the first network performance test of the first group 2 is "normal", and the test result of the first network performance test of the first group 3 is "poor". Then the extraction weight of the computing device of the first group 1 can be 0.1, the extraction weight of the computing device of the first group 2 can be 0.3, and the extraction weight of the computing device of the first group 3 can be 0.6. Assuming that each first group contains 5 computing devices, the number of computing devices extracted from the first group 1 can be 1 or no computing device according to 0.1*5=0.5; the number of computing devices extracted from the first group 2 can be 1 or 2 computing devices according to 0.3*5=1.5; the number of computing devices extracted from the first group 3 can be 3 computing devices according to 0.6*5=3.

[0068] In actual use, in order to enable users to freely select a suitable test model, in one or more embodiments of the present specification, the method may also include: in response to receiving a user's request for testing network performance, obtaining information of the multiple computing devices from the test network performance request; predicting the test network performance consumption time corresponding to the three models of pairwise pairing model, full coverage model and multivariate grouping model according to the information of the multiple computing devices; sending the network performance test consumption time to the user so that the user can select the required model from the pairwise pairing model, full coverage model or multivariate grouping model; if the user selects the multivariate grouping model, entering the step of grouping the multiple computing devices for the first time to obtain two or more first groups; if the user selects the pairwise pairing model, each computing device is divided into only one network and two computing devices are paired as a group to form a network, so as to obtain several networks, and a network performance test is performed on each network; if the user selects the full coverage model, each computing device is networked one-to-one with each other computing device to obtain several networks, and a network performance test is performed on each network.

[0069] For example, the test network performance time consumption of the pairwise pairing model, the full coverage model, and the multi-grouping model can be displayed on the user side so that the user can choose as needed.

[0070] Among them, the pair-by-pair model is simple and efficient, but has a low test accuracy, and is suitable for scenarios where servers are completely independent, such as physical machine rooms. This is because the pair-by-pair model has an assumption that different servers in the queue are independent. If each server is independent and has no dependencies on other members, the network card performance and networking performance of the physical server can be inferred based on the results. However, if in a cloud network virtualization environment, different virtual machines are on different physical machines, and the virtual machines on the same physical machine do not need to pass through the physical network card, the performance is very high, and the direct network performance difference with the virtual machines across physical machines is large. Therefore, the independence between different servers cannot be guaranteed, so the simple pair-by-pair model has a large error and cannot accurately reflect the possibility of physical bandwidth between servers. The fewer physical servers in the environment, the higher the probability of error.

[0071] The full coverage model is intuitive and has the highest test accuracy. However, in a large-scale environment, there are too many permutations and combinations, and the cycle is too long to be tolerated. It is suitable for scenarios with relatively small cluster sizes. This is because the full coverage model combines all computing devices in the computing device list, forms a network between every two computing devices, and tests the network performance. This model can accurately describe the network capabilities between servers. However, since comprehensive combinations will amplify the problem of time complexity, if the total number of servers is large, the value of the test permutation combination C(N,2) will be approximately the square of N, the test time will be very long, and the test efficiency will be low.

[0072] The multivariate grouping model implemented by the method provided in the embodiment of this specification takes into account both the test cycle and the test accuracy, and can achieve good performance test results for large-scale models such as heterogeneous computer rooms with CPU types including x86 and arm. The multivariate grouping model achieves a better trade-off between the previous two models. For example, the computing devices in the queue can be grouped for the first time according to any number to obtain several first groups, and the network and test are performed in pairs or in a full coverage manner according to the consistency evaluation of the computing devices in each first group. Afterwards, the computing devices can be extracted from the first network performance test results of different first groups again for a second grouping to obtain one or more second groups, and the computing devices in the second group are networked and tested. According to the actual scenario needs, the computing devices can be further extracted for at least two groups obtained from the previous grouping for grouping again. It can be seen that the multivariate grouping model can achieve a balanced test effect between efficiency and accuracy in a large-scale computer room.

[0073] It can be seen that the above embodiment provides users with three models to choose from, so that users can make choices based on different on-site conditions, making it convenient for users to make flexible choices from the perspectives of execution efficiency and network coverage, and helping users to obtain test results faster. Under the premise of different cluster scales and / or test accuracy requirements, it truly provides users with a more reliable network evaluation solution option for upper-layer software deployment.

[0074] Corresponding to the above method embodiment, this specification also provides an embodiment of a device for testing network performance. Figure 5 FIG. 1 is a schematic diagram showing a structure of a device for testing network performance provided by an embodiment of the present specification. Figure 5 As shown, the device includes: a first grouping module 502 , a first testing module 504 , a second grouping module 506 and a second testing module 508 .

[0075] The first grouping module 502 may be configured to perform a first grouping of the plurality of computing devices to obtain two or more first groups, wherein each first group includes at least two computing devices.

[0076] The first test module 504 can be configured to network the computing devices in the first group within the group to obtain a primary network, and perform a first network performance test on each primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices.

[0077] The second grouping module 506 may be configured to extract computing devices from at least two groups obtained in the previous grouping, respectively, and group them again to form a second group.

[0078] The second test module 508 can be configured to network the computing devices in the second group within the group to obtain a secondary network, and perform a second network performance test on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

[0079] Among them, the second grouping module 506 can also be configured to re-enter the step of extracting computing devices from at least two groups obtained from the previous grouping to form a second group at least once after obtaining the second group, so that the second test module 508 can network more groups accordingly to obtain a newly formed network and perform network performance testing.

[0080] Since the device first groups multiple computing devices for the first time to obtain two or more first groups, each first group includes at least two computing devices, and the computing devices in the first group are networked within the group to obtain a primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices. Therefore, the number of networks obtained is less than the number of networks with full one-to-one coverage, and a first network performance test is performed on each primary network obtained by the first grouping, which is less time-consuming and more efficient; secondly, since computing devices are extracted from at least two groups obtained by the previous grouping and grouped again to form a second group, the computing devices in the second group are networked within the group to obtain a secondary network, and a second network performance test is performed on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices. Therefore, the scope of the network performance test is appropriately expanded, and the second network performance test makes up for the test accuracy of the first network performance test, and the test accuracy is further improved. It can be seen that the device performs network grouping modeling by merging multiple computing devices within / outside the group at least twice, and performs network performance tests on the networks of at least two groups respectively, thereby realizing network performance testing of binary or even more multiple grouping models, effectively taking into account both test efficiency and test accuracy.

[0081] In one or more embodiments of the present specification, in the first test module 504 and the second test module 508, the processing steps of networking the computing devices within the group include: forming a network by pairing the computing devices within the group, or forming a network by fully covering the computing devices in the first group within the group.

[0082] The pairing method includes: dividing the computing devices in the group into pairs, each pair of computing devices forming a network, and if there is a single computing device that cannot be paired, the single computing device forms a network with any computing device in the group.

[0083] The full coverage method includes: forming a network one-to-one between each computing device in the group and each other computing device in the group.

[0084] It should be noted that the method provided in the embodiment of this specification does not limit the way in which the first group and the second group are networked. For example, the first test module 504 can be configured to network the computing devices in the first group in pairs within the group when the similarity between the computing devices in the first group meets the preset similarity requirement. The second test module 508 can be configured to network the computing devices in the second group in a full coverage manner within the group.

[0085] In order to further improve the efficiency and accuracy of network performance testing, in one or more embodiments of the present specification, the first test module 504 can be configured to network the computing devices in the first group in a full coverage manner within the group when the similarity between the computing devices in the first group does not meet the preset similarity requirement.

[0086] In combination with the above embodiment, the first grouping module may be configured to group computing devices whose similarities meet preset similarity requirements into the same group according to the similarities between the multiple devices.

[0087] In order to test the network performance between computing devices of different CPU types, in one or more embodiments of the present specification, the first grouping module 502 can be configured to group at least one computing device of the first CPU type and at least one computing device of the second CPU type into the same group, wherein the first CPU type and the second CPU type are different CPU types. The first test module 504 can be configured to network the computing devices in the first group obtained by grouping according to different CPU types in a full coverage manner within the group. The second test module 508 can be configured to network the computing devices in the second group in pairs or in a full coverage manner within the group.

[0088] In one or more embodiments of the present specification, the networking mode of the second grouping can also be determined according to the test result of the first network performance test. Specifically, for example, the second test module 508 can be configured to determine whether the test result obtained by the computing devices in the second grouping through the first network performance test does not meet the preset requirements, and if so, the computing devices in the second grouping are networked in a full coverage manner within the grouping, and if not, the computing devices in the second grouping are networked in pairs within the grouping.

[0089] Figure 6 FIG. 1 is a schematic diagram showing a structure of a device for testing network performance provided by another embodiment of the present specification. Figure 6As shown, in order to enable the extracted network performance test of the computing device to fully compensate for the accuracy of the first network performance test, in one or more embodiments of the present specification, the second grouping module 506 may include: a weight determination submodule 5062 and a weight extraction submodule 5064.

[0090] The weight determination submodule 5062 may be configured to determine the extraction weight of the computing device according to the test result of the last grouped network performance test, wherein the computing device with a better test result has a lower corresponding extraction weight.

[0091] The weighted extraction submodule 5064 may be configured to extract computing devices from at least two groups obtained from the previous grouping according to the extraction weights of the computing devices, and then group them again to form a second group.

[0092] In the actual use process, in order to enable users to freely select a suitable test model, one or more embodiments of this specification, such as Figure 6 As shown, the apparatus may further include: a device information acquisition module 510 , a time consumption prediction module 512 , a time consumption feedback module 514 , a multivariate grouping model execution module 516 , a pairing model execution module 518 and a full coverage model execution module 520 .

[0093] The device information acquisition module 510 may be configured to, in response to receiving a user's request for testing network performance, acquire the information of the plurality of computing devices from the request for testing network performance.

[0094] The time consumption prediction module 512 can be configured to predict the test network performance consumption time corresponding to the three models of the pair-by-two pairing model, the full coverage model and the multi-grouping model respectively according to the information of the multiple computing devices.

[0095] The time-consuming feedback module 514 may be configured to send the network performance test time-consuming data to the user so that the user can select a desired model from the two-by-two pairing model, the full coverage model or the multivariate grouping model.

[0096] The multivariate grouping model execution module 516 may be configured to trigger the first grouping module 502 to enter the step of performing the first grouping of the plurality of computing devices to obtain two or more first groups if the user selects the multivariate grouping model.

[0097] The pairing model execution module 518 can be configured to divide each computing device into only one network and pair two computing devices into a group to form a network if the user selects the pairing model, so as to obtain several networks and perform a network performance test on each network.

[0098] The full coverage model execution module 520 may be configured to form a network with each computing device one-to-one with each other computing device if the user selects the full coverage model, to obtain several networks, and to perform a network performance test on each network.

[0099] The above is a schematic scheme of a device for testing network performance of this embodiment. It should be noted that the technical scheme of the device for testing network performance and the technical scheme of the method for testing network performance described above belong to the same concept, and the details of the technical scheme of the device for testing network performance that are not described in detail can all be referred to the description of the technical scheme of the method for testing network performance described above.

[0100] Figure 7 The block diagram of a computing device 700 according to an embodiment of the present specification is shown. The components of the computing device 700 include but are not limited to a memory 710 and a processor 720. The processor 720 is connected to the memory 710 via a bus 730, and the database 750 is used to store data.

[0101] The computing device 700 also includes an access device 740 that enables the computing device 700 to communicate via one or more networks 760. Examples of these networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 740 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a World Wide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, a near field communication (NFC) interface, and the like.

[0102] In one embodiment of the present specification, the above components of the computing device 700 and Figure 7 Other components not shown in the figure may also be connected to each other, for example, via a bus. It should be understood that Figure 7 The computing device structure block diagram shown is only for the purpose of illustration, and is not intended to limit the scope of this specification. Those skilled in the art can add or replace other components as needed.

[0103] The computing device 700 may be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, a personal digital assistant, a laptop computer, a notebook computer, a netbook, etc.), a mobile phone (e.g., a smart phone), a wearable computing device (e.g., a smart watch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or PC. The computing device 700 may also be a mobile or stationary server.

[0104] The processor 720 is used to execute the following computer executable instructions, which, when executed by the processor, implement the steps of the above-mentioned method for testing network performance.

[0105] The above is a schematic scheme of a computing device of this embodiment. It should be noted that the technical scheme of the computing device and the technical scheme of the method for testing network performance described above are of the same concept, and the details not described in detail in the technical scheme of the computing device can be found in the description of the technical scheme of the method for testing network performance described above.

[0106] An embodiment of the present specification also provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned method for testing network performance.

[0107] The above is a schematic scheme of a computer-readable storage medium of this embodiment. It should be noted that the technical scheme of the storage medium and the technical scheme of the method for testing network performance described above are of the same concept, and the details not described in detail in the technical scheme of the storage medium can be found in the description of the technical scheme of the method for testing network performance described above.

[0108] An embodiment of the present specification also provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned method for testing network performance.

[0109] The above is a schematic scheme of a computer program of this embodiment. It should be noted that the technical scheme of the computer program and the technical scheme of the method for testing network performance described above are of the same concept, and the details not described in detail in the technical scheme of the computer program can be found in the description of the technical scheme of the method for testing network performance described above.

[0110] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0111] The computer instructions include computer program codes, which may be in source code form, object code form, executable files or some intermediate forms, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium, etc. It should be noted that the content contained in the computer-readable medium may be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0112] It should be noted that, for the above-mentioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.

[0113] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0114] The preferred embodiments of this specification disclosed above are only used to help explain this specification. The optional embodiments do not describe all the details in detail, nor do they limit the invention to only the specific implementation methods described. Obviously, many modifications and changes can be made according to the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that technicians in the relevant technical field can well understand and use this specification. This specification is only limited by the claims and their full scope and equivalents.

Claims

1. A method for testing network performance, comprising: Grouping the plurality of computing devices for the first time to obtain two or more first groups, wherein each first group includes at least two computing devices; Networking the computing devices in the first group within the group to obtain a primary network, and performing a first network performance test on each primary network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices; Extract computing devices from at least two groups obtained from the previous grouping, and group them again to form a second group; The computing devices in the second group are networked within the group to obtain a secondary network, and a second network performance test is performed on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

2. The method according to claim 1, further comprising: After obtaining the second grouping, the step of extracting computing devices from at least two groups obtained from the previous grouping to form a new second grouping is re-entered at least once.

3. The method according to claim 1, wherein the step of processing the computing device to perform networking within the group comprises: The computing devices in the group are paired to form a network, or the computing devices in the first group are fully covered to form a network in the group; The pairing method includes: dividing the computing devices in the group into pairs, each pair of computing devices forming a network, and if there is a single computing device that cannot be paired, the single computing device forms a network with any computing device in the group; The full coverage method includes: forming a network one-to-one between each computing device in the group and each other computing device in the group.

4. The method according to claim 3, wherein networking the computing devices in the first group within the group comprises: When the similarity between the computing devices in the first group meets the preset similarity requirement, the computing devices in the first group are networked in pairs within the group; The networking of the computing devices in the second group within the group includes: The computing devices in the second group are networked in a full coverage manner within the group.

5. The method according to claim 4, wherein networking the computing devices in the first group within the group comprises: When the similarity between the computing devices in the first group does not meet the preset similarity requirement, the computing devices in the first group are networked in a full coverage manner within the group.

6. The method according to claim 4, wherein the first grouping of the plurality of computing devices comprises: According to the similarities between the multiple devices, computing devices whose similarities meet preset similarity requirements are grouped into the same group.

7. The method according to claim 3, wherein the first grouping of the plurality of computing devices comprises: grouping at least one computing device of a first CPU type and at least one computing device of a second CPU type into the same group, wherein the first CPU type and the second CPU type are different CPU types; The networking of the computing devices in the first group within the group includes: The computing devices in the first group obtained by grouping according to different CPU types are networked in a full coverage manner within the group; The networking of the computing devices in the second group within the group includes: The computing devices in the second group are networked in pairs or in a full coverage manner within the group.

8. The method according to claim 3, wherein networking the computing devices in the second group within the group comprises: Determine whether the test results of the computing devices in the second group obtained through the first network performance test do not meet the preset requirements; If yes, networking the computing devices in the second group in a full coverage manner within the group; If not, the computing devices in the second group are networked in pairs within the group.

9. The method according to claim 1, wherein the step of extracting computing devices from the at least two groups obtained from the previous grouping and regrouping them to form a second group comprises: Determine the extraction weight of the computing device according to the test result of the last grouped network performance test, wherein the computing device with a better test result has a lower corresponding extraction weight; According to the extraction weights of the computing devices, computing devices are respectively extracted from at least two groups obtained from the previous grouping and grouped again to form a second group.

10. The method according to claim 1, further comprising: In response to receiving a test network performance request from a user, obtaining information of the plurality of computing devices from the test network performance request; According to the information of the plurality of computing devices, predict the time consumed for the test network performance corresponding to the two-by-two pairing model, the full coverage model and the multivariate grouping model respectively; Sending the network performance test time to the user so that the user can select a required model from a pair-by-two model, a full coverage model or a multivariate grouping model; If the user selects the multivariate grouping model, the step of grouping the plurality of computing devices for the first time to obtain two or more first groups is entered, wherein the multivariate grouping model is used to execute the step of grouping the plurality of computing devices for the first time to obtain two or more first groups; If the user selects the two-by-two pairing model, each computing device is assigned to only one network and two computing devices are paired as a group to form a network, resulting in several networks, and a network performance test is performed on each network; If the user chooses the full coverage model, each computing device will form a network with every other computing device one-to-one, resulting in several networks, and a network performance test will be performed on each network.

11. A device for testing network performance, comprising: A first grouping module is configured to group the plurality of computing devices for the first time to obtain two or more first groups, wherein each first group includes at least two computing devices; A first test module is configured to network the computing devices in the first group within the group to obtain a primary network, and perform a first network performance test on each network, wherein each first group corresponds to one or more primary networks, and each primary network is a network formed by at least two computing devices; A second grouping module is configured to extract computing devices from at least two groups obtained from the previous grouping, and group them again to form a second group; The second test module is configured to network the computing devices in the second group within the group to obtain a secondary network, and perform a second network performance test on each secondary network, wherein each second group corresponds to one or more secondary networks, and each secondary network is a network formed by at least two computing devices.

12. A computing device comprising: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the method for testing network performance according to any one of claims 1 to 10 are implemented.

13. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the method for testing network performance as claimed in any one of claims 1 to 10.

14. A computer program product, characterized in that The method comprises computer instructions, which, when executed by a processor, implement the steps of any one of the user determination methods of claims 1 to 10.