A method for testing performance of a virtual switch facing a computing cluster
By creating virtual machines and deploying packet transceivers and forwarding programs on multiple physical nodes of the computing cluster, and adopting a ring network forwarding mode, the problem of incomplete testing of virtual switches in existing technologies is solved. This enables bidirectional communication of network cards and recording of performance parameters, thereby improving the accuracy of testing and the ability to locate problems.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- CHINA MOBILE (SUZHOU) SOFTWARE TECH CO LTD
- Filing Date
- 2026-02-12
- Publication Date
- 2026-05-26
AI Technical Summary
Existing virtual switch performance testing methods cannot fully cover multiple physical nodes and cannot achieve bidirectional communication between network cards, resulting in inaccurate testing in large-scale cloud computing cluster environments.
By creating virtual machines on multiple physical nodes of the computing cluster and deploying packet transceivers and forwarding programs, a ring network forwarding mode is adopted to achieve bidirectional communication and cyclic forwarding tests of the network card, and the performance parameters are recorded for analysis.
It improves the coverage and accuracy of virtual switch testing, enabling rapid identification of performance issues and providing reliable data support.
Smart Images

Figure CN122093288A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the technical field of cloud computing, and in particular to a method for testing the performance of virtual switches for computing clusters. Background Technology
[0002] Cloud networks play a crucial role in the field of cloud computing. They are implemented using technologies such as Software-Defined Networking (SDN), and OpenvSwitch, a key component of SDN, not only handles traffic forwarding between virtual machines but also enables centralized management and programming through a controller. As cloud technology continues to develop, the scale of computing clusters is constantly increasing, and cloud network systems are becoming increasingly massive, placing ever higher performance demands on virtual switches.
[0003] The performance of virtual switches is affected by various factors, including software version and physical hardware. Performance varies across different software versions. Virtual switches also depend on physical devices; performance differs depending on the physical hardware, such as different CPUs and memory configurations. In cloud computing environments, computing clusters range in size from a dozen to thousands of compute nodes (compute nodes are equivalent to physical nodes), posing a significant challenge to virtual switches. Therefore, performance testing is essential to ensure stable network communication between virtual machines across nodes.
[0004] Current virtual switch performance testing methods have the following problems: First, in real-world business scenarios, virtualization environments involve multiple physical nodes, not just virtualized resources on a single node. Virtual switches need to handle not only traffic within the same physical node but also communication across multiple physical nodes. Existing virtual switch testing methods, which deploy testing software on virtual machines as virtual testers, can only test the performance of a virtual switch on a single physical node, failing to cover multiple physical nodes and thus unable to fully reflect the true performance of virtual switches across multiple nodes.
[0005] Secondly, in a cloud computing environment, the network interface card (NIC) of a virtual machine is in full-duplex mode by default, meaning the NIC acts as both a data sender and receiver, enabling bidirectional data communication. In the existing virtual switch testing methods described above, the virtual machine needs to be configured with two test NICs, one for sending and one for receiving packets, which fails to achieve bidirectional communication between the test NICs.
[0006] Therefore, in large-scale cloud computing cluster environments, to accurately evaluate the forwarding performance of virtual switches across multiple physical nodes, this proposal suggests a performance testing method for virtual switches in computing clusters. This method can cover multiple physical nodes, simultaneously enabling bidirectional communication between network interface cards (NICs), and employs a ring network forwarding mode. This solves the problem of current technology's inability to test full coverage while ensuring test accuracy.
[0007] To address the shortcomings of existing technologies, this invention provides a performance testing method for virtual switches in computing clusters. Summary of the Invention
[0008] To achieve the above objectives, the present invention adopts the following technical solution: One aspect of the present invention provides a method for testing the performance of a virtual switch for a computing cluster, comprising the following steps: Create virtual machines on multiple physical nodes of the computing cluster; Deploy the packet transceiver on the virtual machine of at least one physical node, and deploy the forwarding program on the virtual machines of the remaining physical nodes. Control the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver; Record the performance parameters during the loop forwarding test for performance problem analysis.
[0009] In one optional implementation, creating virtual machines on multiple physical nodes of the computing cluster includes creating multiple virtual machines on at least one physical node.
[0010] In one optional implementation, controlling the packet sending and receiving end and the forwarding program to perform a loop forwarding test includes: controlling multiple virtual machines on the at least one physical node to act as packet sending and receiving ends or forwarding program deployment ends, and simultaneously performing a loop forwarding test.
[0011] In one optional implementation, the performance problem analysis includes: locating the performance problem of the virtual switch corresponding to the specific virtual machine based on the abnormal performance parameters of the specific virtual machine when performing the loop forwarding test in the sequential test; The step of creating virtual machines on multiple physical nodes of the computing cluster includes: automatically creating virtual machines on each physical node by traversing the multiple physical nodes through an automated test script.
[0012] In one optional implementation, the performance parameters further include at least one of packet jitter rate, out-of-order rate, and forwarding delay jitter; the packet jitter rate is defined as the variance of the forwarding delay difference between adjacent packets in the test traffic, and the out-of-order rate is defined as the proportion of packets whose receiving order is inconsistent with the sending order. The forwarding program also includes a flow control submodule, which dynamically adjusts the forwarding rate based on the network load of the current ring path: when the packet loss rate of a link in the path exceeds a preset threshold, the forwarding rate of that link is reduced; when the link load is below the threshold, the forwarding rate is increased, in order to simulate the performance of the virtual switch in a dynamic traffic scenario in the computing cluster.
[0013] In one optional implementation, deploying the forwarding program on the virtual machines of the remaining physical nodes includes: deploying the forwarding program, wherein the forwarding program is configured to: generate a forwarding mapping table based on a preset traffic path and forwarding model, and receive packets and forward them to the virtual machines of the next physical node according to the forwarding mapping table; Deploying a packet transceiver on a virtual machine on at least one physical node includes: deploying the packet transceiver on a virtual machine on a first physical node among the plurality of physical nodes, wherein the packet transceiver is used to send an initial message and receive a return message.
[0014] In one optional implementation, the step of returning the message to the transceiver after being forwarded by the forwarding program includes: causing the initial message to be forwarded sequentially by the virtual machines of the other physical nodes among the plurality of physical nodes except the first physical node, and then forwarded back to the virtual machine of the first physical node by the virtual machine of the last physical node.
[0015] Another aspect of the present invention provides a virtual switch performance testing system for computing clusters, comprising: The virtual machine creation module creates virtual machines on multiple physical nodes of the computing cluster. The deployment module deploys a packet transceiver on a virtual machine on at least one physical node and a forwarding program on virtual machines on the remaining physical nodes. The test control module controls the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver. The performance recording and analysis module records the performance parameters during the loop forwarding test and analyzes performance problems based on the performance parameters.
[0016] In another aspect, the present invention provides an electronic device comprising: At least one memory stores computer-executable instructions non-transiently; At least one processor, configured to run the computer-executable instructions, The computer-executable instructions are executed by the processor to implement the above-described method for testing the performance of a virtual switch for a computing cluster.
[0017] In another aspect, the present invention provides a computer-readable storage medium storing computer-executable instructions that, when executed by at least one processor, implement the aforementioned method for testing the performance of a virtual switch for a computing cluster.
[0018] Effects of the invention: By automating the creation of virtual machines and deploying a self-developed forwarding program on each physical node using automated test scripts, resource creation and software deployment can be easily controlled. This forwarding program generates a corresponding forwarding mapping table based on the traffic path and model, and forwards packets according to the mapping table to form multiple ring flows, realizing the ring network forwarding capability across multiple nodes, thereby improving the coverage of virtual switch testing.
[0019] The automated test script automatically creates virtual machines (configured with two network cards, one for management and one for performance testing) on each physical node. The traffic path and model are configured through the forwarding program, so that the performance test network card can act as both a data packet sender and receiver, realizing bidirectional data communication and thus improving the accuracy of the test.
[0020] Multiple sets of annular flow circuits are tested using an incremental pressure increase method, and the test results are monitored during the increment. For those circuits whose performance does not meet the expected value, analysis and localization are performed, which can quickly analyze the problem point and provide reliable data support for problem localization. Attached Figure Description
[0021] The accompanying drawings are provided to further illustrate the invention and form part of the specification. They are used in conjunction with embodiments of the invention to explain the invention and do not constitute a limitation thereof. In the drawings: Figure 1 This is a flowchart of a virtual switch performance testing method for computing clusters provided in Embodiment 1 of the present invention; Figure 2 This is a framework diagram of a virtual switch performance testing system for computing clusters provided in Embodiment 3 of the present invention; Figure 3 This is a ring network topology diagram according to an embodiment of the present invention; Figure 4 A flowchart illustrating the pressurization process of the circular flow delivery according to an embodiment of the present invention; Figure 5 This is a block diagram of the electronic device provided in Embodiment 4 of the present invention; Figure 6 This is a block diagram of a computer-readable storage medium provided in Embodiment 4 of the present invention. Detailed Implementation
[0022] The technical solutions of the present invention will now be described with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments.
[0023] Hereinafter, the terms "first," "second," etc., are used for descriptive convenience only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Thus, a feature defined with "first," "second," etc., may explicitly or implicitly include one or more of that feature. In the description of this invention, unless otherwise stated, "a plurality of" means two or more.
[0024] In this invention, unless otherwise explicitly specified and limited, the term "connection" should be interpreted broadly. For example, "connection" can be a fixed mechanical connection, a detachable mechanical connection, or an integral part; or, "connection" can be a direct connection or an indirect connection through an intermediate medium. Furthermore, unless otherwise explicitly specified and limited, the term "coupling" should be interpreted broadly. For example, "coupling" can be a direct electrical connection, such as physical contact and electrical conduction between two components; it can also be understood as an electrical connection between different components in a circuit structure through physical lines capable of transmitting electrical signals, such as copper foil or wires on a printed circuit board (PCB), to transmit electrical signals; or, "coupling" can be an indirect electrical connection between two components through an intermediate medium; or, "coupling" can be an electrical connection between two components in a non-contact manner, such as an electrical connection between two components using capacitive coupling to transmit electrical signals.
[0025] In this embodiment of the invention, directional terms such as "up," "down," "left," and "right" may be defined relative to the orientation of the components shown in the accompanying drawings. It should be understood that these directional terms can be relative concepts, used for relative description and clarification, and can change accordingly depending on the orientation of the components in the accompanying drawings.
[0026] Example 1: like Figure 1 , Figure 3 , Figure 4 As shown, this embodiment of the invention provides a performance testing method for virtual switches in computing clusters, comprising the following steps: S1: Create virtual machines on multiple physical nodes of the computing cluster; S2: Deploy the packet transceiver on the virtual machine of at least one physical node, and deploy the forwarding program on the virtual machines of the remaining physical nodes; S3: Control the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver; S4: Record the performance parameters during the loop forwarding test for performance problem analysis.
[0027] In the above embodiment, the virtualization environment has N physical nodes, and an automated test script is used to traverse each physical node to automatically create virtual machines.
[0028] Deploy packet sending and receiving software on the virtual machine of the first node as the sender and receiver. Use automated test scripts to deploy a self-developed forwarding program in batches on the virtual machines of the second to Nth nodes. This program generates a corresponding forwarding mapping table based on the traffic path and model, receives packets according to the forwarding mapping table, and forwards them to the virtual machine of the next physical node.
[0029] When the message reaches the last virtual machine, the last virtual machine returns the message to the virtual machine on the first physical node according to the forwarding mapping table.
[0030] Record the performance values of throughput, latency, and packet loss rate on the virtual packet sending and receiving software, and generate a test report.
[0031] Example 2: like Figure 1 , Figure 3 , Figure 4 As shown, based on Embodiment 1, the steps provided in this embodiment of the invention include controlling the packet sending and receiving end and the forwarding program to perform a loop forwarding test, which includes: controlling multiple virtual machines on the at least one physical node to act as packet sending and receiving ends or forwarding program deployment ends, and simultaneously performing a loop forwarding test.
[0032] Specifically, the performance problem analysis includes: based on the abnormal performance parameters of a specific virtual machine when performing a loop forwarding test in the sequential test, locating the performance problem of the virtual switch corresponding to the specific virtual machine; The step of creating virtual machines on multiple physical nodes of the computing cluster includes: automatically creating virtual machines on each physical node by traversing the multiple physical nodes through an automated test script.
[0033] Specifically, the performance parameters also include at least one of packet jitter rate, out-of-order rate, and forwarding delay jitter; the packet jitter rate is defined as the variance of the forwarding delay difference between adjacent packets in the test traffic, and the out-of-order rate is defined as the proportion of packets whose receiving order is inconsistent with the sending order. The forwarding program also includes a flow control submodule, which dynamically adjusts the forwarding rate based on the network load of the current ring path: when the packet loss rate of a link in the path exceeds a preset threshold, the forwarding rate of that link is reduced; when the link load is below the threshold, the forwarding rate is increased, in order to simulate the performance of the virtual switch in a dynamic traffic scenario in the computing cluster.
[0034] Specifically, deploying the forwarding program on the virtual machines of the remaining physical nodes includes: deploying the forwarding program, which is configured to: generate a forwarding mapping table based on a preset traffic path and forwarding model, and receive packets and forward them to the virtual machines of the next physical node according to the forwarding mapping table; Deploying a packet transceiver on a virtual machine on at least one physical node includes: deploying the packet transceiver on a virtual machine on a first physical node among the plurality of physical nodes, wherein the packet transceiver is used to send an initial message and receive a return message.
[0035] Specifically, the step of returning the message to the receiving end after being forwarded by the forwarding program includes: causing the initial message to be forwarded sequentially by the virtual machines of the other physical nodes among the plurality of physical nodes except the first physical node, and then forwarded back to the virtual machine of the first physical node by the virtual machine of the last physical node.
[0036] In the above embodiment, the virtualization environment has N physical nodes. One virtual machine is selected as the master node, and an automated test script is uploaded. This script is used to automatically create virtual machines on each physical node. The virtual machine is configured with two network cards: one for management and one for performance testing. The performance testing network card acts as both a data packet sender and a receiver, forming bidirectional communication.
[0037] Deploy packet sending and receiving software on the virtual machine of the first node as the sender and receiver. On the master node, use automated test scripts to deploy a self-developed forwarding program in batches on the virtual machines of the second to Nth nodes. This program generates a corresponding forwarding mapping table based on the traffic path and model, receives packets according to the forwarding mapping table, and forwards them to the virtual machine of the next physical node.
[0038] When the message reaches the last virtual machine, the last virtual machine returns the message to the virtual machine on the first physical node according to the forwarding mapping table.
[0039] This forms a multi-node ring network topology. The packet forwarding process is as follows: data packets are sent from the test network card via the virtual packet transceiver software on the first node, pass through the virtual switch to the virtual machine test network card on the second node, and then the virtual machine on the second node forwards the packet to the virtual machine test network card on the third node according to the mapping table generated by the forwarding program. This process continues until the packet reaches the virtual machine test network card on the Nth node, and finally returns from the Nth node to the virtual machine test network card on the first node according to the forwarding mapping table. The number of virtual machines created on a single physical node depends on the performance requirements of the virtual switch. Assuming a theoretical throughput of 5Gbps for a single test virtual machine, the maximum throughput of the virtual switch... To test the maximum performance of the virtual switch, m virtual machines need to be created on each physical node to form m ring flows.
[0040] The above test method, which increases pressure through each group of annular flow, Figure 2 Taking m ring flows as an example, the specific execution steps are as follows: First, build a ring network topology. Test the m ring flows simultaneously and determine if the performance results meet expectations. If true, record the results and generate a test report. If false, use an incrementally increasing pressure approach to test the first ring flow and determine if the performance results meet expectations. If false, analyze and locate the performance problem. If true, add a second ring flow and determine if the two ring flows meet expectations. If false, analyze and locate the performance problem. If true, add a third ring flow and determine if the performance results of the three ring flows meet expectations, and so on, until the mth ring flow is added, and then analyze and locate the performance problem.
[0041] Example 3: like Figure 2 As shown, based on Embodiment 1, this embodiment of the invention provides a virtual switch performance testing system for computing clusters, comprising: The virtual machine creation module creates virtual machines on multiple physical nodes of the computing cluster. The deployment module deploys a packet transceiver on a virtual machine on at least one physical node and a forwarding program on virtual machines on the remaining physical nodes. The test control module controls the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver. The performance recording and analysis module records the performance parameters during the loop forwarding test and analyzes performance problems based on the performance parameters.
[0042] Example 4: Figure 5A block diagram of an exemplary electronic device suitable for implementing embodiments of the present invention is shown.
[0043] The electronic device may include a central processing unit / microprocessor / main control chip, etc. 4; and a storage medium 5, coupled to the central processing unit / microprocessor / main control chip, etc. 4, and storing computer-executable instructions therein for performing the steps of various methods of embodiments of the present invention when executed by the processor.
[0044] The central processing unit / microprocessor / main control chip, etc., can include, but are not limited to, one or more processors or microprocessors.
[0045] Storage medium 5 may include, but is not limited to, random access memory (RAM), read-only memory (ROM), flash memory, EPROM memory, EEPROM memory, registers, computer storage media (e.g., hard disk, floppy disk, solid-state drive, removable disk, CD-ROM, DVD-ROM, Blu-ray disc, etc.).
[0046] In addition, the electronic device may also include (but is not limited to) a data bus 6, an input / output bus / external bus / device bus 7, a display 8, and input / output devices 9 (e.g., keyboard, mouse, speaker, etc.).
[0047] The central processing unit / microprocessor / main control chip, etc. 4 can communicate with external devices (8, 9, etc.) via I / O bus 7 through wired or wireless network (not shown).
[0048] The storage medium 5 may also store at least one computer-executable instruction for performing the steps of various functions and / or methods in the embodiments described herein when the central processing unit / microprocessor / main control chip, etc., 4 is running.
[0049] In one embodiment, the at least one computer-executable instruction may also be compiled into or comprise a software product, wherein one or more computer-executable instructions are executed by a processor to perform the steps of the various functions and / or methods in the embodiments described herein.
[0050] Figure 6 A schematic diagram of a computer-readable storage medium according to an embodiment of the present invention is shown.
[0051] like Figure 6As shown, the non-transitory computer-readable storage medium 11 stores instructions, such as computer-readable instructions 10. When the computer-readable instructions 10 are executed by a processor, the various methods described above can be performed. The non-transitory computer-readable storage medium includes, but is not limited to, volatile memory and / or non-volatile memory. Volatile memory may include, for example, random access memory (RAM) and / or cache memory. Non-transitory non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. For example, the non-transitory computer-readable storage medium 11 can be connected to a computing device such as a computer, and then, when the computing device executes the computer-readable instructions 10 stored on the computer-readable storage medium 11, the various methods described above can be performed.
[0052] In the several embodiments provided by this invention, it should be understood that the disclosed apparatus and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of units is only a logical functional division, and in actual implementation, there may be other division methods. For example, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces; the indirect coupling or communication connection between apparatuses or units may be electrical, mechanical, or other forms.
[0053] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0054] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0055] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for executing all or part of the steps of the methods of the various embodiments of this invention through a computer device (which may be a personal computer, server, or network device, etc.). The aforementioned storage medium includes: USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, optical disks, and other media capable of storing program code.
[0056] The above embodiments are only used to illustrate the technical solutions of the present invention, and are not intended to limit it. Although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A performance testing method for virtual switches in computing clusters, characterized in that, Includes the following steps: Create virtual machines on multiple physical nodes of the computing cluster; Deploy the packet transceiver on the virtual machine of at least one physical node, and deploy the forwarding program on the virtual machines of the remaining physical nodes. Control the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver; Record the performance parameters during the loop forwarding test for performance problem analysis.
2. The performance testing method for virtual switches in computing clusters as described in claim 1, characterized in that, The step of creating virtual machines on multiple physical nodes of the computing cluster includes creating multiple virtual machines on at least one physical node.
3. The performance testing method for virtual switches in computing clusters as described in claim 2, characterized in that, The step of controlling the packet sending and receiving end and the forwarding program to perform a loop forwarding test includes: controlling multiple virtual machines on the at least one physical node to act as packet sending and receiving ends or forwarding program deployment ends, and simultaneously performing a loop forwarding test.
4. The performance testing method for virtual switches for computing clusters as described in claim 3, characterized in that, The performance problem analysis includes: based on the abnormal performance parameters of a specific virtual machine when performing a loop forwarding test in the sequential test, locating the performance problem of the virtual switch corresponding to the specific virtual machine; The step of creating virtual machines on multiple physical nodes of the computing cluster includes: automatically creating virtual machines on each physical node by traversing the multiple physical nodes through an automated test script.
5. The performance testing method for virtual switches for computing clusters as described in claim 4, characterized in that, The performance parameters also include at least one of packet jitter rate, out-of-order rate, and forwarding delay jitter; the packet jitter rate is defined as the variance of the forwarding delay difference between adjacent packets in the test traffic, and the out-of-order rate is defined as the proportion of packets whose receiving order is inconsistent with the sending order. The forwarding program also includes a flow control submodule, which dynamically adjusts the forwarding rate based on the network load of the current ring path: when the packet loss rate of a link in the path exceeds a preset threshold, the forwarding rate of that link is reduced; when the link load is below the threshold, the forwarding rate is increased, in order to simulate the performance of the virtual switch in a dynamic traffic scenario in the computing cluster.
6. The performance testing method for virtual switches in computing clusters as described in claim 4, characterized in that, The step of deploying the forwarding program on the virtual machines of the remaining physical nodes includes: deploying the forwarding program, which is configured to: generate a forwarding mapping table based on a preset traffic path and forwarding model, and receive packets and forward them to the virtual machines of the next physical node according to the forwarding mapping table; Deploying a packet transceiver on a virtual machine on at least one physical node includes: deploying the packet transceiver on a virtual machine on a first physical node among the plurality of physical nodes, wherein the packet transceiver is used to send an initial message and receive a return message.
7. The performance testing method for virtual switches in computing clusters as described in claim 6, characterized in that, The step of returning the message to the receiving end after it is forwarded by the forwarding program includes: causing the initial message to be forwarded sequentially by the virtual machines of the other physical nodes among the plurality of physical nodes except the first physical node, and then forwarded back to the virtual machine of the first physical node by the virtual machine of the last physical node.
8. A virtual switch performance testing system for computing clusters, as described in any one of claims 1 to 7, characterized in that, include: The virtual machine creation module creates virtual machines on multiple physical nodes of the computing cluster. The deployment module deploys a packet transceiver on a virtual machine on at least one physical node and a forwarding program on virtual machines on the remaining physical nodes. The test control module controls the packet transceiver and the forwarding program to perform a loop forwarding test, so that the packet is forwarded by the forwarding program and then returned to the packet transceiver. The performance recording and analysis module records the performance parameters during the loop forwarding test and analyzes performance problems based on the performance parameters.
9. An electronic device, comprising: At least one memory stores computer-executable instructions non-transiently; At least one processor, configured to run the computer-executable instructions, The computer-executable instructions are implemented by the processor at runtime according to any one of claims 1-7, which is a method for testing the performance of a virtual switch for a computing cluster.
10. A computer-readable storage medium, wherein, The computer-readable storage medium stores computer-executable instructions, which, when executed by at least one processor, implement a virtual switch performance testing method for computing clusters according to any one of claims 1-7.