Network node performance testing method, device, equipment and medium

By determining the second target node in the cloud computing environment, constructing a test environment and generating data transmission strategy information, the problem of excessive network node performance test resource occupancy and too long links in the cloud computing environment is solved, and the accuracy of the test is improved. and range, able to effectively test the performance of network nodes of different specifications.

CN115733768BActive Publication Date: 2024-10-18JD DIGITS HAIYI INFORMATION TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211437451.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-11-16
Publication Date
2024-10-18
Estimated Expiration
2042-11-16

AI Technical Summary

Technical Problem

In a cloud computing environment, the existing technology used for network node performance testing has problems such as excessive resource usage, long test links, and difficulty in locating performance bottlenecks. Moreover, laboratory testing can only test models with the same specifications and configurations, which is easy to miss. Performance test points.

Method used

By obtaining the parameter information and performance indicators of the target node to be tested, determine the second target node, build a test environment, generate data transmission strategy information, and send and receive test data in the test environment to generate performance test results and ensure the data transmission strategy authenticity and integrity.

Benefits of technology

It reduces resource occupation, shortens the test link, improves the accuracy and application scope of performance testing, and can test the performance of network nodes of different specifications.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115733768B_ABST
    Figure CN115733768B_ABST
Patent Text Reader

Abstract

The present disclosure provides a network node performance test method, device, equipment, and medium, which can be applied to the field of cloud computing technology. The method includes: in response to a performance test request from a first target node, obtaining parameter information and performance indicator information to be tested of the first target node; according to the performance indicator information to be tested, by determining the second target node from the deployed network nodes, building a test environment; according to the parameter information of the first target node and the parameter information of the second target node, by creating a target network resource in the test environment, generating data transmission strategy information for transmitting test data, within a preset time period, according to the data transmission strategy information, the first interface of the second target node sends the test data to the first target node at a first transmission rate, and the second interface of the second target node receives the test data sent via the first target node; and generating a performance test result according to the first transmission rate and the second transmission rate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of cloud computing technology, and more specifically, to a network node performance testing method, device, equipment, medium and program product. Background Art

[0002] In a cloud computing environment, data packets that interact between cloud hosts and the outside world are forwarded through virtual network nodes. When designing a virtual network architecture, a horizontally scalable high-availability architecture is generally used. For virtual network nodes designed with a high-availability architecture, related technologies generally use a large number of cloud hosts to send data packets to the device under test in pairs or use a tester in a laboratory to test the performance bottleneck of the virtual network node by building data plane table entries.

[0003] In the process of realizing the concept of the present disclosure, the inventors found that there are at least the following problems in the related technology: creating a cloud host requires a large amount of online resources, and the test link is long. Any node in the test link reaching a performance bottleneck may affect the test results, and it is not easy to locate the specific location of the performance test bottleneck. Using a tester in the laboratory can only test models with the same specifications and configurations. It is assumed that the performance data of the same specification models online is consistent with the tested equipment. It relies on manually constructed data plane table items and is easy to miss the performance that needs to be tested. Summary of the invention

[0004] In view of this, the present disclosure provides a network node performance testing method, apparatus, device, and medium.

[0005] One aspect of the present disclosure provides a network node performance testing method, including:

[0006] In response to a performance test request from the first target node, obtaining parameter information and performance indicator information to be tested of the first target node;

[0007] According to the performance indicator information to be tested, a test environment is constructed by determining a second target node from deployed network nodes;

[0008] Generate data transmission strategy information for transmitting test data by creating a target network resource in a test environment according to parameter information of the first target node and parameter information of the second target node, wherein the target network resource is obtained by simulating an operation of a user creating a network resource in the test environment;

[0009] In a preset time period, according to the data transmission strategy information, the first interface of the second target node sends the test data to the first target node at the first transmission rate, and the second interface of the second target node receives the test data sent via the first target node; and

[0010] A performance test result is generated according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents an average transmission rate of the test data received by the second interface within a preset time period.

[0011] According to an embodiment of the present disclosure, according to the performance indicator information to be tested, by determining the second target node from the deployed network nodes, a test environment is constructed, including:

[0012] Determine a second target node from deployed network nodes according to the performance indicator information to be measured;

[0013] Migrating the data being transmitted on the second target node to other network nodes by calling an application programming interface;

[0014] Release the bound physical network card on the second target node, bind a test network card on the second target node, and build a test environment.

[0015] According to an embodiment of the present disclosure, according to parameter information of the first target node and parameter information of the second target node, by creating a target network resource, data transmission strategy information for transmitting test data is generated, including:

[0016] Creating a target network resource according to the parameter information of the first target node and the parameter information of the second target node;

[0017] Determine data transmission link information based on target network resources;

[0018] Generate data transmission strategy information based on the data transmission link information.

[0019] According to an embodiment of the present disclosure, creating a target network resource according to parameter information of a first target node and parameter information of a second target node includes:

[0020] Determine a target script according to the parameter information of the first target node and the parameter information of the second target node;

[0021] By executing the target script, the user is simulated to perform the operation of creating network resources to obtain the target network resources.

[0022] According to an embodiment of the present disclosure, determining data transmission link information according to target network resources includes:

[0023] Obtaining gateway routing information between all network nodes from the target network resource;

[0024] According to the parameter information of the first target node, the data transmission link information is determined from the gateway routing information.

[0025] According to an embodiment of the present disclosure, data transmission strategy information is generated according to data transmission link information, including:

[0026] Determining first interface information and second interface information according to the data transmission link information;

[0027] Data transmission strategy information is generated according to the information of the first interface, the information of the second interface and the parameter information of the second target node.

[0028] According to an embodiment of the present disclosure, a performance test result is generated according to a first transmission rate and a second transmission rate.

[0029] Determining a first transmission flow within a preset time period according to the first transmission rate;

[0030] Determining a second transmission flow rate within a preset time period according to the second transmission rate;

[0031] A first performance test result is generated according to the first transmission flow and the second transmission flow.

[0032] According to an embodiment of the present disclosure, the network node performance testing method further includes:

[0033] Determining a transmission bandwidth of the first target node according to the second transmission rate and the test data;

[0034] A second performance test result is generated according to the transmission bandwidth.

[0035] Another aspect of the present disclosure provides a network node performance test device, including: an acquisition module, a construction module, a first generation module, a test module, and a second generation module. The acquisition module is used to obtain parameter information and performance indicator information to be tested of the first target node in response to a performance test request from the first target node. The construction module is used to build a test environment by determining a second target node from deployed network nodes according to the performance indicator information to be tested. The first generation module is used to generate data transmission strategy information for transmitting test data by creating a target network resource in a test environment according to the parameter information of the first target node and the parameter information of the second target node, wherein the target network resource is obtained by simulating the operation of a user to create a network resource in the test environment. The test module is used to send test data to the first target node at a first transmission rate by the first interface of the second target node in accordance with the data transmission strategy information within a preset time period, and receive the test data sent via the first target node by the second interface of the second target node. The second generation module is used to generate a performance test result according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents the average transmission rate of the test data received by the second interface within the preset time period.

[0036] According to an embodiment of the present disclosure, the construction module includes a first determination unit, a migration unit and a construction unit. The first determination unit is used to determine the second target node from the deployed network nodes according to the performance indicator information to be tested. The migration unit is used to migrate the data being transmitted on the second target node to other network nodes by calling the application programming interface. The construction unit is used to release the bound physical network card on the second target node, bind the test network card on the second target node, and build a test environment.

[0037] According to an embodiment of the present disclosure, the first generation module includes a creation unit, a second determination unit and a first generation unit. The creation unit is used to create a target network resource according to parameter information of the first target node and parameter information of the second target node. The second determination unit is used to determine data transmission link information according to the target network resource. The first generation unit is used to generate data transmission strategy information according to the data transmission link information.

[0038] According to an embodiment of the present disclosure, the creation unit includes a first determination subunit and a first acquisition subunit. The first determination subunit is used to determine the target script according to the parameter information of the first target node and the parameter information of the second target node. The first acquisition subunit is used to simulate the user's operation of creating a network resource by executing the target script to obtain the target network resource.

[0039] According to an embodiment of the present disclosure, the second determination unit includes a second acquisition subunit and a second determination subunit. The second acquisition subunit is used to obtain gateway routing information between all network nodes from the target network resource. The second determination subunit is used to determine the data transmission link information from the gateway routing information according to the parameter information of the first target node.

[0040] According to an embodiment of the present disclosure, the first generating unit includes a third determining subunit and a generating subunit. The third determining subunit is used to determine the first interface information and the second interface information according to the data transmission link information. The generating subunit is used to generate the data transmission strategy information according to the information of the first interface, the information of the second interface and the parameter information of the second target node.

[0041] According to an embodiment of the present disclosure, the second generation module includes a third determination unit, a fourth determination unit, and a second generation unit. The third determination unit is used to determine the first transmission flow within a preset time period according to the first transmission rate. The fourth determination unit is used to determine the second transmission flow within a preset time period according to the second transmission rate. The second generation unit is used to generate a first performance test result according to the first transmission flow and the second transmission flow.

[0042] According to an embodiment of the present disclosure, the network node performance detection device further includes: a determination module and a third generation module. The determination module is used to determine the transmission bandwidth of the first target node according to the second transmission rate and the test data. The third generation module is used to generate a second performance test result according to the transmission bandwidth.

[0043] Another aspect of the present disclosure provides an electronic device, comprising: one or more processors; and a memory for storing one or more programs, wherein when the one or more programs are executed by the one or more processors, the one or more processors execute the above-mentioned network node performance detection method.

[0044] Another aspect of the present disclosure further provides a computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the above-mentioned network node performance detection method.

[0045] Another aspect of the present disclosure further provides a computer program product, including a computer program, which implements the above-mentioned network node performance detection method when executed by a processor.

[0046] According to the embodiments of the present disclosure, the parameter information of the first target node and the performance indicator information to be tested are obtained, and the test environment is constructed by determining the second target node from the deployed network nodes according to the performance indicator information to be tested; and the data transmission strategy information for transmitting the test data is generated by creating the target network resource in the test environment according to the parameter information of the first target node and the parameter information of the second target node. On the one hand, since the deployed network node is temporarily used as the second target node for sending the test data to the first target node, the test data can be directly sent to the first target node without creating a cloud host, and the test link is only between the first target node and the second target node, which overcomes the problem that the cloud host needs to be created and the test link is too long in the related art. On the other hand, since the target network resource is obtained by simulating the operation of the user to create the network resource in the test environment, the authenticity and integrity of the various data plane table items corresponding to the data transmission strategy information for transmitting the test data can be ensured, so the technical problem that the test point is easily missed in the artificial construction of the data plane table items in the laboratory in the related art is at least partially overcome, thereby achieving the technical effect of improving the accuracy of the network node performance test and expanding the application scope of the test method. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] The above and other objects, features and advantages of the present disclosure will become more apparent through the following description of the embodiments of the present disclosure with reference to the accompanying drawings, in which:

[0048] Figure 1The application scenario diagram of the network node performance detection method, apparatus, device, medium and program product according to the embodiment of the present disclosure is schematically shown;

[0049] Figure 2 The flowchart of the network node performance detection method according to the embodiment of the present disclosure is schematically shown;

[0050] Figure 3 A flowchart of constructing a test environment according to an embodiment of the present disclosure is schematically shown;

[0051] Figure 4 A flowchart of generating data transmission strategy information for transmitting test data according to an embodiment of the present disclosure is schematically shown;

[0052] Figure 5 A flowchart for generating performance test results according to an embodiment of the present disclosure is schematically shown;

[0053] Figure 6 A schematic diagram showing a structural block diagram of a network node performance detection device according to an embodiment of the present disclosure; and

[0054] Figure 7 A block diagram of an electronic device suitable for implementing a network node performance detection method according to an embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0055] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present disclosure. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of the embodiments of the present disclosure. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of the concepts of the present disclosure.

[0056] The terms used herein are only for describing specific embodiments and are not intended to limit the present disclosure. The terms "comprise", "include", etc. used herein indicate the existence of features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0057] All terms (including technical and scientific terms) used herein have the meanings commonly understood by those skilled in the art, unless otherwise defined. It should be noted that the terms used herein should be interpreted as having a meaning consistent with the context of this specification, and should not be interpreted in an idealized or overly rigid manner.

[0058] When using expressions such as "at least one of A, B, and C, etc.", they should generally be interpreted according to the meaning of the expression commonly understood by those skilled in the art (for example, "a system having at least one of A, B, and C" should include but is not limited to a system having A alone, B alone, C alone, A and B, A and C, B and C, and / or A, B, C, etc.).

[0059] In the current cloud computing environment, multiple devices with the same functions are usually deployed on a network node to ensure the high availability of virtual network functions. However, this high-availability architecture design has caused certain difficulties in network node performance testing.

[0060] In the related technology, the following two methods are mainly used:

[0061] (1) Only one device under test is kept on a network node, network resources are created on the network node, and then a large number of cloud hosts are created to send test traffic to the network node in pairs to test the performance bottleneck of the network node;

[0062] (2) In the laboratory, the data interface connecting two network nodes is tested to construct data plane table entries, and then the test traffic with virtual extended LAN messages is artificially constructed to test the performance bottleneck of the network node.

[0063] In the process of implementing the invention disclosed in this disclosure, the inventors found that both of the above two testing methods have certain technical defects:

[0064] In method (1), a large number of cloud hosts need to be created. For example, for a network node with a 100G network card, at least 40 medium-sized cloud hosts need to be created. Not only does it occupy a large amount of online resources, but it is also limited by the throughput capacity of each compute node. When creating a cloud host, the 40 cloud hosts need to be dispersed to different compute nodes. In some smaller private cloud environments, testing will not be possible. In method (1), the test tool is generally deployed in two cloud hosts, and paired cloud hosts send test traffic to each other. Therefore, the test link passes through the cloud host operating system, cloud host virtual network card, compute node data plane, compute node physical network card, and upstream switch to reach the network node under test. In this long test link, any point that reaches a performance bottleneck may affect the test results, and it is not agreed to locate the specific node where the performance bottleneck occurs.

[0065] Method (2) is a test that simulates a cloud environment in a laboratory. It can only test models with the same specifications and configurations. It is assumed that the performance data of online models is consistent with the tested equipment. In actual online deployment, due to limitations in the environment, configuration, hardware, and other factors, problems with test performance points may be missed. Moreover, in a laboratory environment, only manually constructed data plane table entries are relied upon as test flow tables. Compared with resources created by real users, the flow table scenarios in manually constructed data plane table entries are relatively few, and it is easy to miss the impact of data plane table entries on performance.

[0066] In view of this, an embodiment of the present disclosure provides a network node performance test method, comprising: in response to a performance test request from a first target node, acquiring parameter information and performance indicator information to be tested of the first target node;

[0067] According to the performance indicator information to be tested, a test environment is constructed by determining a second target node from deployed network nodes; according to the parameter information of the first target node and the parameter information of the second target node, a target network resource is created in the test environment to generate data transmission strategy information for transmitting test data, wherein the target network resource is obtained by simulating the user's operation of creating a network resource in the test environment; within a preset time period, in accordance with the data transmission strategy information, the first interface of the second target node sends test data to the first target node at a first transmission rate, and the second interface of the second target node receives the test data sent via the first target node; and according to the first transmission rate and the second transmission rate, a performance test result is generated, wherein the second transmission rate represents the average transmission rate of the test data received by the second interface within the preset time period.

[0068] Figure 1 The application scenario diagram of the network node performance test according to the embodiment of the present disclosure is schematically shown.

[0069] like Figure 1 As shown, the application scenario 100 according to this embodiment may include a device under test 101 , a test device 102 , a test device 103 , a network 104 , and a server 105 .

[0070] The server 105 may receive a performance test request initiated by the device under test 101, and determine the test device 102 and the test device 103 from the deployed network nodes according to the performance indicator information to be tested. The sum of the performance of the test device 102 and the test device 103 is greater than the expected performance value of the device under test 101. For example, taking the throughput performance of the network node as an example, the expected performance value of the device under test 101 is 100G, and the throughput performance of the test device 102 and the test device 103 are both 100G.

[0071] Since there may be a small amount of business on the selected test devices 102 and 103, the business traffic on the test devices 102 and 103 can be migrated by calling the application programming interface, so that the test devices 102 and 103 no longer receive and forward business traffic transmitted by other network nodes, and are only used to send and receive test traffic or test data of the device under test 101.

[0072] In the test environment, the server 105 can simulate user operations to create target network resources and generate data transmission strategy information for transmitting test data according to parameter information on the device under test 101 and the test devices 102 and 103. According to the data transmission strategy information, the test devices 102 and 103 simultaneously send test data packets to the device under test 101. Figure 1 The arrow in the middle points to the transmission direction of the test data packet. The test data packet is sent from the first interface (1.1.1.3, 1.1.1.4) to the interface (1.1.1.2) of the device under test 101, and forwarded to the second interface (2.1.1.3, 2.1.1.4) of the test devices 102 and 103 via the interface (2.1.1.2) of the device under test 101. The performance test result can be generated by summarizing the transmission rates of the test data packets of the second interfaces of the test devices 102 and 103.

[0073] It should be noted that the network node performance test method provided in the embodiment of the present disclosure can generally be executed by the server 105. Accordingly, the network node performance test device provided in the embodiment of the present disclosure can generally be set in the server 105. The network node performance test method provided in the embodiment of the present disclosure can also be executed by a server or server cluster that is different from the server 105 and can communicate with the device under test 101, the test devices 102, 103 and / or the server 105. Accordingly, the network node performance test device provided in the embodiment of the present disclosure can also be set in a server or server cluster that is different from the server 105 and can communicate with the device under test 101, the test devices 102, 103 and / or the server 105.

[0074] It should be understood that Figure 1 The number of terminal devices, networks and servers in the embodiment is only for illustration. Any number of terminal devices, networks and servers may be provided according to implementation requirements.

[0075] The following will be based on Figure 1 The scene described by Figure 2 to Figure 5 The network node performance testing method of the disclosed embodiment is described in detail.

[0076] Figure 2 The flowchart of the network node performance testing method according to the embodiment of the present disclosure is schematically shown.

[0077] like Figure 2 As shown, the network node performance test of this embodiment includes operations S210 to S250.

[0078] In operation S210, in response to a performance test request from a first target node, parameter information and performance indicator information to be tested of the first target node are acquired.

[0079] According to an embodiment of the present disclosure, the first target node may be a newly expanded network device on a public cloud, or a network device on a newly built private cloud that needs to test performance, which may be referred to as a device under test. The parameter information of the first target node may be the management IP information, network management port information, device address information, underlying network information in the cloud environment, host unit identification information, etc. of the device under test registered in the cloud environment database. The performance indicator information to be tested may include throughput performance indicator information (bps) and packet forwarding performance indicator information (pps).

[0080] In operation S220, a test environment is constructed by determining a second target node from deployed network nodes according to the performance indicator information to be tested.

[0081] According to an embodiment of the present disclosure, the second target node can meet the following preset conditions: the current traffic on the second target node is less than the preset threshold; the performance index of the second target node is greater than the performance index information to be tested of the first target node. For example: the performance index information to be tested of the first target node is 100G throughput performance. Among the deployed network nodes, the throughput performance of node A is 80G, the throughput performance of node B is 120G, and the throughput performance of node C is 130G. The throughput performance of node B and node C both meet the requirements of the throughput performance index, but the current traffic of node B is 100 and the current traffic of node C is 300. Therefore, node B can be selected as the second target node.

[0082] According to an embodiment of the present disclosure, the preset condition may also include that the second target node is deployed in the same group of high-availability architectures as the first target node. For example: the performance indicator information to be measured of the first target node is 100G throughput performance. Among the deployed network nodes, the throughput performance of node B and node C are both 120G, the current traffic is both 100, the first target node is deployed in group I, node B is deployed in group II, and node C is deployed in group I, so node C can be selected as the second target node.

[0083] In operation S230, data transmission policy information for transmitting test data is generated based on parameter information of the first target node and parameter information of the second target node by creating target network resources in a test environment, wherein the target network resources are obtained by simulating the operation of a user creating network resources in a test environment.

[0084] According to an embodiment of the present disclosure, since the second target node is a deployed network node, parameter information of the second target node can be obtained from the cloud environment database. In the test environment, the target network resources are created by simulating the operation of the user to create network resources in the test environment. The target network resources may include private cloud networks vpc, subnets, virtual network card resources, gateway resources, routing resources, etc. created by the user in the public cloud environment. The data transmission strategy in the test environment can be obtained based on the created target network resources.

[0085] In operation S240, within a preset time period, according to the data transmission policy information, the first interface of the second target node sends test data to the first target node at a first transmission rate, and the second interface of the second target node receives the test data sent via the first target node.

[0086] According to an embodiment of the present disclosure, for example: data transmission strategy information may be that interface A of the second target node sends test data to interface a of the first target node, and interface b of the first target node forwards the received test data to interface B of the second target node.

[0087] In operation S250, a performance test result is generated according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents an average transmission rate of the test data received by the second interface within a preset time period.

[0088] According to an embodiment of the present disclosure, for example, a test data packet is sent from the first interface of the second target node to the first target node at a transmission rate of 100 packets / second. After receiving the test data packet, the first target node forwards the received test data packet to the second interface of the second target node according to the transmission strategy information. For example, the average transmission rate of the test data received by the second interface within a preset time period is 99 packets / second. Performance test results, such as small packet forwarding rate and throughput rate, etc., can be generated based on the first transmission rate and the second transmission rate.

[0089] According to the embodiments of the present disclosure, the parameter information of the first target node and the performance indicator information to be tested are obtained, and the test environment is constructed by determining the second target node from the deployed network nodes according to the performance indicator information to be tested; and the data transmission strategy information for transmitting the test data is generated by creating the target network resource in the test environment according to the parameter information of the first target node and the parameter information of the second target node. On the one hand, since the deployed network node is temporarily used as the second target node for sending the test data to the first target node, the test data can be directly sent to the first target node without creating a cloud host, and the test link is only between the first target node and the second target node, which overcomes the problem that the cloud host needs to be created and the test link is too long in the related art. On the other hand, since the target network resource is obtained by simulating the operation of the user to create the network resource in the test environment, the authenticity and integrity of the various data plane table items corresponding to the data transmission strategy information for transmitting the test data can be ensured, so the technical problem that the test point is easily missed in the artificial construction of the data plane table items in the laboratory in the related art is at least partially overcome, thereby achieving the technical effect of improving the accuracy of the network node performance test and expanding the application scope of the test method.

[0090] Figure 3 The flowchart of building a test environment according to an embodiment of the present disclosure is schematically shown.

[0091] like Figure 3 As shown, the method for constructing a test environment in this embodiment includes operations S310 to S330.

[0092] In operation S310, a second target node is determined from deployed network nodes according to the performance indicator information to be measured.

[0093] According to an embodiment of the present disclosure, for example, the performance indicator information to be measured of the first target node is 100G throughput performance. Among the deployed network nodes, the throughput performance of node A is 80G, the throughput performance of node B is 120G, and the throughput performance of node C is 130G. The throughput performance of node B and node C both meet the requirements of the throughput performance indicator, but the current flow of node B is 100, and the current flow of node C is 300, so node B can be selected as the second target node.

[0094] In operation S320, the data being transmitted on the second target node is migrated to other network nodes by calling an application programming interface.

[0095] According to an embodiment of the present disclosure, the data transmission interface of the second target node is logically closed by calling an application programming interface (API), for example: by using an administrator shutdown (admin down) method, the data being transmitted is scheduled to other host machines in the same group as the second target node.

[0096] In operation S330, the bound physical network card on the second target node is released, and a test network card is bound to the second target node to build a test environment.

[0097] According to an embodiment of the present disclosure, after completing data migration in an administrator-shutdown manner, the current physical network card of the second target node can be unbound from the data plane development kit (dpdk), and the second target node can be bound to the test network card to complete the construction of the test environment.

[0098] According to the embodiments of the present disclosure, by calling the application programming interface, the data being transmitted on the second target node is migrated to other network nodes, and the bound physical network card on the second target node is released, and the test network card is bound to the second target node, thereby realizing the transformation of the network node in the currently deployed cloud environment into a test node. Test data can be sent directly to the device under test without the need to create a large number of cloud hosts, thereby ensuring that there are no other performance bottlenecks on the data transmission link, and improving the application scope and accuracy of performance testing.

[0099] Figure 4 The flowchart of generating data transmission strategy information for transmitting test data according to an embodiment of the present disclosure is schematically shown.

[0100] like Figure 4 As shown, the method for generating data transmission strategy information of this embodiment includes operations S410 to S430.

[0101] In operation S410, a target network resource is created according to parameter information of a first target node and parameter information of a second target node.

[0102] According to an embodiment of the present disclosure, the parameter information of the first target node and the parameter information of the second target node can be obtained from the cloud environment database according to the management IP of the target node. Network resources can be created layer by layer in the test environment by simulating user operations, for example: logical network space resources (vpc) and logical subnet resources (subnet) are defined in the public cloud environment by simulating user operations, and the logical subnet resources have corresponding classless inter-domain routing classification information, gateway information, etc., as well as virtual network cards created on the logical subnet resources, etc.

[0103] In operation S420, data transmission link information is determined according to the target network resources.

[0104] According to an embodiment of the present disclosure, data transmission link information in a test environment is determined based on target network resources created by a simulated user, and the data transmission link information may include network, gateway, routing link information, etc. for test data transmission. For example: test transmission link A for transmission from network A via gateway B1 and routing link C1 in gateway B1; test transmission link B for transmission from network A via routing link C2 in gateway B2, etc.

[0105] In operation S430, data transmission strategy information is generated according to the data transmission link information.

[0106] According to the embodiments of the present disclosure, the data transmission strategy corresponds to the data transmission link. In the actual test process, when generating the data transmission strategy information, it is only necessary to ensure that the test data can be sent to the device under test and forwarded by the device under test.

[0107] According to the embodiments of the present disclosure, since the target network resources are created in a real online deployed cloud environment by simulating user operations, the data transmission policy information is generated based on the user control plane resources created online. Compared with the data plane table items constructed in the laboratory in the related technology, the authenticity of the data transmission policy can be ensured, the problem of missing performance test points can be effectively solved, and the accuracy of performance testing can be improved.

[0108] According to an embodiment of the present disclosure, creating a target network resource according to parameter information of a first target node and parameter information of a second target node includes:

[0109] Determine a target script according to the parameter information of the first target node and the parameter information of the second target node;

[0110] By executing the target script, the user is simulated to perform the operation of creating network resources to obtain the target network resources.

[0111] According to an embodiment of the present disclosure, since the first target node is a network node to be newly deployed in the cloud environment, and the second target node is a network node that has been deployed in the cloud environment. Therefore, the target script can be determined in the cloud environment database through the device management IP of the first target node and the device management IP of the second target node. Among them, the target script can be an automated script that simulates the user's operation of creating network resources. The automated script may include the operation steps for the user to create network resources, for example: in the cloud environment, the user customizes the logical network space vpc, defines the logical subnet subnet on the logical network space, creates a virtual network card port on the logical subnet, and so on. By executing the target script, the user's operation of creating network resources can be simulated in the test environment to obtain the target network resources.

[0112] According to the embodiments of the present disclosure, by executing the target script, the operation of simulating users to create network resources can be automatically performed in the scenario of expanding network equipment in a public cloud or building a new private cloud environment to obtain the target network resources and improve testing efficiency.

[0113] According to an embodiment of the present disclosure, determining data transmission link information according to target network resources includes:

[0114] Obtaining gateway routing information between all network nodes from the target network resource;

[0115] According to the parameter information of the first target node, the data transmission link information is determined from the gateway routing information.

[0116] According to the embodiments of the present disclosure, since the target network resource is created by simulating user operations, gateway routing information between multiple network nodes transmitted via the target network resource can be obtained from the target network resource. Each network node has unique identification information in the cloud environment, for example, it can be a management IP. Data transmission link information via the first target node can be determined from the network routing information based on the management IP of the first target node.

[0117] According to an embodiment of the present disclosure, data transmission strategy information is generated according to data transmission link information, including:

[0118] Determining first interface information and second interface information according to the data transmission link information;

[0119] Data transmission strategy information is generated according to the information of the first interface, the information of the second interface and the parameter information of the second target node.

[0120] According to an embodiment of the present disclosure, for example, the second target node may include a test device A and a test device B, and the first target node may include a device under test A. The data transmission link information may be that the test data is transmitted from the interface a of the test device A to the interface a1 of the first target node, and the interface b1 of the first target node is transmitted to the interface b of the test device A. The first interface information may include the address information of the interface a and the address information of the interface a1; the second interface information may include the address information of the interface b1 and the address information of the interface b.

[0121] According to an embodiment of the present disclosure, for example: the address information of interface a is 1.1.1.3, the address information of interface a1 is 1.1.1.2, the address information of interface b1 is 2.1.1.2, and the address information of interface b is 2.1.1.3. The generated data transmission strategy information may be: test data is sent from the interface with address 1.1.1.3 to the interface with address 1.1.1.2, and then test data is sent from the interface with address 2.1.1.2 to the interface with address 2.1.1.3.

[0122] According to the embodiments of the present disclosure, since the target network resources are obtained by simulating user creation operations, the generated data transmission policy information can ensure that the data plane table items truly restore the data transmission policy of the actual online cloud environment, which can effectively avoid the performance problems of specific devices from missing real user usage scenarios, resulting in inaccurate or incomplete test results.

[0123] Figure 5 The flowchart for generating performance test results according to an embodiment of the present disclosure is schematically shown.

[0124] like Figure 5 As shown, the method for generating performance test results in this embodiment includes operations S510 to S530.

[0125] In operation S510, a first transmission flow rate within a preset time period is determined according to a first transmission rate.

[0126] In operation S520, a second transmission flow rate within a preset time period is determined according to the second transmission rate.

[0127] In operation S530, a first performance test result is generated according to the first transmission flow and the second transmission flow.

[0128] According to an embodiment of the present disclosure, for example: the first transmission rate is m data packets / second, the duration of the preset time period is t seconds, and the first transmission traffic can be mt; the second transmission rate is n data packets / second, and the second transmission traffic can be nt, the generated first performance test result can be a small packet forwarding performance test result, which is nt; the first performance test result can also be a small packet forwarding omission performance test result, which is mt-nt.

[0129] According to an embodiment of the present disclosure, the above performance testing method further includes:

[0130] Determining a transmission bandwidth of the first target node according to the second transmission rate and the test data;

[0131] A second performance test result is generated according to the transmission bandwidth.

[0132] According to an embodiment of the present disclosure, the test data may be a test message, the header information of the test message may be data transmission strategy information, and the content information of the test message may be a test data packet. Part of the parameter information in the data transmission strategy information in the test message is the device parameter information stored in the cloud environment database, and the other part of the parameter information is the parameter information generated in real time when the test message is sent, for example: the vni information corresponding to the logical network space vpc, the gateway mac information corresponding to the logical subnet subnet, the floating IP address information of all virtual network cards prot created on the logical subnet, the underlying gateway mac information of the device under test, etc.

[0133] According to an embodiment of the present disclosure, the message lengths of the test data containing different test data packets are different, and the transmission bandwidth of the first target node can be determined according to the second transmission rate and the message length corresponding to the test data. A second performance test result is generated according to the transmission bandwidth of the test data forwarded by the first target node within a preset time period and received by the second target node. The second performance test result can be a throughput performance test result of the first target node.

[0134] According to the embodiments of the present disclosure, performance test results are generated based on the first transmission rate and the second transmission rate, which can be applied to test scenarios of new devices in cloud environments of different scales. It is no longer limited by the scale of the cloud environment or the type of network devices deployed in the cloud environment. Performance testing of network nodes can be efficiently performed to obtain accurate performance test results.

[0135] It should be noted that, since in the embodiment of the present disclosure, the second target node is temporarily used as a test node from the deployed network nodes, after the test is completed, the test network card on the second target node can be unbound and then bound to the originally deployed physical network card. The data transmission function on the second target node can be restored at any time, so as to restore the ability of the second target node to process data normally in the original cloud environment.

[0136] Based on the above network node performance test method, the present disclosure also provides a network node performance test device. Figure 6 The device is described in detail.

[0137] Figure 6 The structural block diagram of a network node performance testing device according to an embodiment of the present disclosure is schematically shown.

[0138] like Figure 6 As shown, the network node performance testing device 600 of this embodiment includes an acquisition module 610 , a construction module 620 , a first generation module 630 , a test module 640 and a second generation module 650 .

[0139] The acquisition module 610 is used to respond to the performance test request from the first target node and acquire the parameter information and the performance indicator information to be tested of the first target node. In one embodiment, the acquisition module 610 can be used to perform the operation S210 described above, which will not be described in detail here.

[0140] The construction module 620 is used to construct a test environment by determining a second target node from deployed network nodes according to the performance indicator information to be tested. In one embodiment, the construction module 620 can be used to perform the operation S220 described above, which will not be described in detail here.

[0141] The first generation module 630 is used to generate data transmission strategy information for transmitting test data by creating a target network resource in a test environment according to the parameter information of the first target node and the parameter information of the second target node, wherein the target network resource is obtained by simulating the operation of a user creating a network resource in the test environment. In one embodiment, the first generation module 630 can be used to perform the operation S230 described above, which will not be described in detail here.

[0142] The test module 640 is used to send test data to the first target node at a first transmission rate through the first interface of the second target node according to the data transmission strategy information within a preset time period, and receive the test data sent via the first target node through the second interface of the second target node. In one embodiment, the test module 640 can be used to perform the operation S240 described above, which will not be repeated here.

[0143] The second generation module 650 is used to generate a performance test result according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents an average transmission rate of the test data received by the second interface within a preset time period. In one embodiment, the second generation module 650 can be used to perform the operation S250 described above, which will not be repeated here.

[0144] According to an embodiment of the present disclosure, the construction module includes a first determination unit, a migration unit and a construction unit. The first determination unit is used to determine the second target node from the deployed network nodes according to the performance indicator information to be tested. The migration unit is used to migrate the data being transmitted on the second target node to other network nodes by calling the application programming interface. The construction unit is used to release the bound physical network card on the second target node, bind the test network card on the second target node, and build a test environment.

[0145] According to an embodiment of the present disclosure, the first generation module includes a creation unit, a second determination unit and a first generation unit. The creation unit is used to create a target network resource according to parameter information of the first target node and parameter information of the second target node. The second determination unit is used to determine data transmission link information according to the target network resource. The first generation unit is used to generate data transmission strategy information according to the data transmission link information.

[0146] According to an embodiment of the present disclosure, the creation unit includes a first determination subunit and a first acquisition subunit. The first determination subunit is used to determine the target script according to the parameter information of the first target node and the parameter information of the second target node. The first acquisition subunit is used to simulate the user's operation of creating a network resource by executing the target script to obtain the target network resource.

[0147] According to an embodiment of the present disclosure, the second determination unit includes a second acquisition subunit and a second determination subunit. The second acquisition subunit is used to obtain gateway routing information between all network nodes from the target network resource. The second determination subunit is used to determine the data transmission link information from the gateway routing information according to the parameter information of the first target node.

[0148] According to an embodiment of the present disclosure, the first generating unit includes a third determining subunit and a generating subunit. The third determining subunit is used to determine the first interface information and the second interface information according to the data transmission link information. The generating subunit is used to generate the data transmission strategy information according to the information of the first interface, the information of the second interface and the parameter information of the second target node.

[0149] According to an embodiment of the present disclosure, the second generation module includes a third determination unit, a fourth determination unit, and a second generation unit. The third determination unit is used to determine the first transmission flow within a preset time period according to the first transmission rate. The fourth determination unit is used to determine the second transmission flow within a preset time period according to the second transmission rate. The second generation unit is used to generate a first performance test result according to the first transmission flow and the second transmission flow.

[0150] According to an embodiment of the present disclosure, the network node performance detection device further includes: a determination module and a third generation module. The determination module is used to determine the transmission bandwidth of the first target node according to the second transmission rate and the test data. The third generation module is used to generate a second performance test result according to the transmission bandwidth.

[0151] According to an embodiment of the present disclosure, any multiple modules in the acquisition module 610, the construction module 620, the first generation module 630, the test module 640, and the second generation module 650 can be combined in one module for implementation, or any one of the modules can be split into multiple modules. Alternatively, at least part of the functions of one or more of these modules can be combined with at least part of the functions of other modules and implemented in one module. According to an embodiment of the present disclosure, at least one of the acquisition module 610, the construction module 620, the first generation module 630, the test module 640, and the second generation module 650 can be at least partially implemented as a hardware circuit, such as a field programmable gate array (FPGA), a programmable logic array (PLA), a system on a chip, a system on a substrate, a system on a package, an application specific integrated circuit (ASIC), or can be implemented by hardware or firmware such as any other reasonable way of integrating or packaging the circuit, or implemented in any one of the three implementation methods of software, hardware, and firmware or in a suitable combination of any of them. Alternatively, at least one of the acquisition module 610 , the construction module 620 , the first generation module 630 , the test module 640 , and the second generation module 650 may be at least partially implemented as a computer program module, which may perform corresponding functions when executed.

[0152] Figure 7 A block diagram of an electronic device suitable for implementing a network node performance testing method according to an embodiment of the present disclosure is schematically shown.

[0153] like Figure 7 As shown, the electronic device 700 according to an embodiment of the present disclosure includes a processor 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage part 708 into a random access memory (RAM) 703. The processor 701 may include, for example, a general-purpose microprocessor (e.g., a CPU), an instruction set processor and / or a related chipset and / or a special-purpose microprocessor (e.g., an application-specific integrated circuit (ASIC)), etc. The processor 701 may also include an onboard memory for caching purposes. The processor 701 may include a single processing unit or multiple processing units for performing different actions of the method flow according to an embodiment of the present disclosure.

[0154] In RAM 703, various programs and data required for the operation of electronic device 700 are stored. Processor 701, ROM 702 and RAM 703 are connected to each other via bus 704. Processor 701 performs various operations of the method flow according to the embodiment of the present disclosure by executing the program in ROM 702 and / or RAM 703. It should be noted that the program can also be stored in one or more memories other than ROM 702 and RAM 703. Processor 701 can also perform various operations of the method flow according to the embodiment of the present disclosure by executing the program stored in the one or more memories.

[0155] According to an embodiment of the present disclosure, the electronic device 700 may further include an input / output (I / O) interface 705, which is also connected to the bus 704. The electronic device 700 may further include one or more of the following components connected to the I / O interface 705: an input portion 706 including a keyboard, a mouse, etc.; an output portion 707 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc.; a storage portion 708 including a hard disk, etc.; and a communication portion 709 including a network interface card such as a LAN card, a modem, etc. The communication portion 709 performs communication processing via a network such as the Internet. A drive 710 is also connected to the I / O interface 705 as needed. A removable medium 711, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is installed on the drive 710 as needed, so that a computer program read therefrom is installed into the storage portion 708 as needed.

[0156] The present disclosure also provides a computer-readable storage medium, which may be included in the device / apparatus / system described in the above embodiments; or may exist independently without being assembled into the device / apparatus / system. The above computer-readable storage medium carries one or more programs, and when the above one or more programs are executed, the method according to the embodiment of the present disclosure is implemented.

[0157] According to an embodiment of the present disclosure, the computer-readable storage medium may be a non-volatile computer-readable storage medium, for example, may include but is not limited to: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program, which may be used by or in combination with an instruction execution system, an apparatus or a device. For example, according to an embodiment of the present disclosure, a computer-readable storage medium may include the ROM 702 and / or RAM 703 described above and / or one or more memories other than ROM 702 and RAM 703.

[0158] The embodiment of the present disclosure also includes a computer program product, which includes a computer program, and the computer program contains program code for executing the method shown in the flowchart. When the computer program product is run in a computer system, the program code is used to enable the computer system to implement the item recommendation method provided by the embodiment of the present disclosure.

[0159] The above functions defined in the system / device of the embodiment of the present disclosure are performed when the computer program is executed by the processor 701. According to the embodiment of the present disclosure, the system, device, module, unit, etc. described above can be implemented by a computer program module.

[0160] In one embodiment, the computer program may rely on tangible storage media such as optical storage devices, magnetic storage devices, etc. In another embodiment, the computer program may also be transmitted and distributed in the form of signals on a network medium, and downloaded and installed through the communication part 709, and / or installed from the removable medium 711. The program code contained in the computer program may be transmitted using any appropriate network medium, including but not limited to: wireless, wired, etc., or any suitable combination of the above.

[0161] In such an embodiment, the computer program can be downloaded and installed from the network through the communication part 709, and / or installed from the removable medium 711. When the computer program is executed by the processor 701, the above functions defined in the system of the embodiment of the present disclosure are performed. According to the embodiment of the present disclosure, the system, device, means, module, unit, etc. described above can be implemented by a computer program module.

[0162] According to an embodiment of the present disclosure, the program code for executing the computer program provided by the embodiment of the present disclosure can be written in any combination of one or more programming languages. Specifically, these computing programs can be implemented using high-level process and / or object-oriented programming languages, and / or assembly / machine languages. Programming languages ​​include, but are not limited to, Java, C++, python, "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, partially on the remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device can be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computing device (for example, using an Internet service provider to connect through the Internet).

[0163] The flow charts and block diagrams in the accompanying drawings illustrate the possible architecture, functions and operations of the systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the above-mentioned module, program segment, or a part of a code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram or flow chart, and the combination of the boxes in the block diagram or flow chart can be implemented with a dedicated hardware-based system that performs a specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.

[0164] It will be appreciated by those skilled in the art that the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways, even if such combinations and / or combinations are not explicitly described in the present disclosure. In particular, the features described in the various embodiments and / or claims of the present disclosure may be combined and / or combined in a variety of ways without departing from the spirit and teachings of the present disclosure. All of these combinations and / or combinations fall within the scope of the present disclosure.

[0165] The embodiments of the present disclosure are described above. However, these embodiments are only for illustrative purposes and are not intended to limit the scope of the present disclosure. Although the embodiments are described above separately, this does not mean that the measures in the various embodiments cannot be used in combination to advantage. The scope of the present disclosure is defined by the attached claims and their equivalents. Without departing from the scope of the present disclosure, those skilled in the art may make a variety of substitutions and modifications, which should all fall within the scope of the present disclosure.

Claims

1. A network node performance testing method, comprising: In response to a performance test request from a first target node, acquiring parameter information and performance indicator information to be tested of the first target node; According to the performance indicator information to be tested, a test environment is constructed by determining a second target node from deployed network nodes; Generate data transmission strategy information for transmitting test data by creating a target network resource in the test environment according to the parameter information of the first target node and the parameter information of the second target node, wherein the target network resource is obtained by simulating an operation of a user to create a network resource in the test environment; In a preset time period, according to the data transmission strategy information, the first interface of the second target node sends the test data to the first target node at a first transmission rate, and the second interface of the second target node receives the test data sent via the first target node; and The performance test result is generated according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents an average transmission rate of the test data received by the second interface within the preset time period.

2. The method according to claim 1, wherein: The step of building a test environment by determining a second target node from deployed network nodes according to the performance indicator information to be tested includes: Determining a second target node from the deployed network nodes according to the performance indicator information to be measured; Migrating the data being transmitted on the second target node to other network nodes by calling an application programming interface; The bound physical network card on the second target node is released, and a test network card is bound to the second target node to build the test environment.

3. The method according to claim 1, wherein: The step of generating data transmission strategy information for transmitting test data by creating a target network resource according to the parameter information of the first target node and the parameter information of the second target node includes: Creating a target network resource according to the parameter information of the first target node and the parameter information of the second target node; Determining data transmission link information according to the target network resources; Data transmission strategy information is generated according to the data transmission link information.

4. The method according to claim 3, wherein: The creating a target network resource according to the parameter information of the first target node and the parameter information of the second target node includes: Determining a target script according to the parameter information of the first target node and the parameter information of the second target node; By executing the target script, the operation of creating a network resource by a user is simulated to obtain the target network resource.

5. The method according to claim 4, wherein: The determining, according to the target network resources, data transmission link information includes: Acquire gateway routing information between all network nodes from the target network resource; The data transmission link information is determined from the gateway routing information according to the parameter information of the first target node.

6. The method according to claim 5, wherein: The generating of data transmission strategy information according to the data transmission link information includes: Determining the first interface information and the second interface information according to the data transmission link information; The data transmission strategy information is generated according to the information of the first interface, the information of the second interface and the parameter information of the second target node.

7. The method according to claim 1, wherein: generating the performance test result according to the first transmission rate and the second transmission rate, Determining a first transmission flow within the preset time period according to the first transmission rate; Determining a second transmission flow within the preset time period according to the second transmission rate; A first performance test result is generated according to the first transmission flow and the second transmission flow.

8. The method according to claim 7, further comprising: determining a transmission bandwidth of the first target node according to the second transmission rate and the test data; A second performance test result is generated according to the transmission bandwidth.

9. A network node performance testing device, comprising: An acquisition module, configured to acquire parameter information and performance indicator information to be tested of the first target node in response to a performance test request from the first target node; A construction module, configured to construct a test environment by determining a second target node from deployed network nodes according to the performance indicator information to be tested; A first generating module, configured to generate data transmission policy information for transmitting test data by creating a target network resource in the test environment according to the parameter information of the first target node and the parameter information of the second target node, wherein the target network resource is obtained by simulating an operation of a user to create a network resource in the test environment; a testing module, configured to, within a preset time period, send the test data to the first target node at a first transmission rate through the first interface of the second target node and receive the test data sent via the first target node through the second interface of the second target node according to the data transmission strategy information; and The second generating module is used to generate the performance test result according to the first transmission rate and the second transmission rate, wherein the second transmission rate represents an average transmission rate of the test data received by the second interface within the preset time period.

10. An electronic device, comprising: one or more processors; a storage device for storing one or more programs, When the one or more programs are executed by the one or more processors, the one or more processors are enabled to execute the method according to any one of claims 1 to 8.

11. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to execute the method according to any one of claims 1 to 8.

12. A computer program product, comprising a computer program, wherein when the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Interface testing method and device, equipment and medium

    CN114791885A

  • System and methods for application programming interface validation and testing

    US11050850B1