A network card testing method and system, electronic equipment and medium
By installing dual-port smart network cards and deploying image containers on a dual-node server, and using virtualization technology for network card testing, the problem that traditional testing methods cannot adapt to smart network cards is solved, and efficient and accurate virtualization testing is achieved.
Patent Information
- Application Number
- CN202411388173.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-30
- Publication Date
- 2025-12-12
- Estimated Expiration
- 2044-09-30
AI Technical Summary
Traditional network interface card (NIC) testing methods cannot provide a complete virtualization testing solution, are difficult to adapt to the testing needs of smart NICs, and have technical limitations.
By combining a virtual platform and a hardware layer, dual-port smart network cards are installed on a dual-node server and image containers are deployed. Virtualization technology is used to simulate the test environment, determine the network card test model, and perform virtualization testing. Combined with hardware layer processing of test data, comprehensive virtualization testing is achieved.
It provides a complete virtualization testing solution that meets the characteristics of smart network cards, reduces hardware resource requirements, improves testing efficiency and accuracy, supports diverse testing scenarios and configurations, and ensures the isolation and automation of the testing environment.
Smart Images

Figure CN119341937B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present disclosure relates to the technical field of network card testing, and in particular to a network card testing method and system, an electronic device and a medium. BACKGROUND
[0002] With the development of virtualization technology in public clouds and the rise of SDN (Software-Defined Networking) technology, higher requirements are put forward for the protocol stack of the end system, and intelligent network card technology has begun to enter the public's field of vision.
[0003] The traditional network card testing method is generally to connect two servers, each of which is equipped with an intelligent network card to be tested, to a switch for packet testing and performance testing. However, this network card testing method cannot provide a complete virtualization testing scheme, and it is difficult to adapt to the intelligent network card testing requirements, and there are technical limitations. SUMMARY
[0004] To overcome the problems in the related art, the present disclosure provides a network card testing method, system, electronic device and medium. The technical solutions of the present disclosure are as follows:
[0005] According to a first aspect of an embodiment of the present disclosure, a network card testing method is provided, applied to a network card testing system, the network card testing system comprising a virtual platform and a hardware layer, the hardware layer comprising a dual-node server, the dual-node server being installed with a dual-port intelligent network card, and the virtual platform being deployed with different image containers, comprising:
[0006] In response to a network card testing request, a target image container is determined from the virtual platform; the target image container represents an independent test environment;
[0007] According to the target image container, a network card testing model is determined;
[0008] According to the network card testing model, a virtualization test is performed on the dual-port intelligent network card to obtain test data;
[0009] The test data is processed by the hardware layer to obtain a processing result;
[0010] The processing result is transmitted to the virtual platform through a virtual network card interface corresponding to the dual-port intelligent network card on the dual-node server.
[0011] Optionally, the virtual platform comprises a virtual switch; the virtual switch comprises a test software and a plurality of virtual network cards;
[0012] The network card testing model is determined according to the target image container, comprising:
[0013] The target mirror image container runs a test tool provided by the test software;
[0014] The test software determines a network card test model according to the test tool, and determines a target virtual network card according to the test tool; the virtual network card is used to simulate a corresponding network environment;
[0015] The virtualization test on the dual-port intelligent network card according to the network card test model comprises:
[0016] According to the target virtual network card and the virtual switch, the test software performs a virtualization test on the dual-port intelligent network card based on the network card test model.
[0017] Optionally, the mirror image container is configured by the following steps, comprising:
[0018] Install container software and test software;
[0019] Perform a compilation operation through the test software to obtain a test tool; the test tool comprises various network card test parameters;
[0020] Perform a mapping operation through the container software to obtain various mirror image containers; the mapping operation comprises: mapping a device directory, mapping memory, mapping node information, and mapping a device file;
[0021] Copy the test tool into the mirror image container;
[0022] According to a network card test environment corresponding to the mirror image container, configure each network card test parameter in the test tool to obtain a test script corresponding to the mirror image container.
[0023] Optionally, it further comprises:
[0024] According to the processing result, obtain a virtualization test result;
[0025] Transmit the test result to a mirror image container different from the target mirror image container.
[0026] Optionally, the hardware layer further comprises a switch; a server node of the dual-node server integrates a virtual network card interface corresponding to each network card interface of the dual-port intelligent network card; a switch port of the switch is dynamically linked with the network card interface;
[0027] Process the test data through the hardware layer to obtain a processing result, comprising:
[0028] A first switch binding port of the switch receives the test data, and transmits the test data to each network card interface of the dual-port intelligent network card;
[0029] The first virtual network card interface corresponding to the network card interface receives the test data, and processes the test data through the dual-port intelligent network card to obtain a processing result;
[0030] The processing result is transmitted to the virtual platform, including:
[0031] The dual-port intelligent network card transmits the processing result to the second switch binding port of the switch through the second virtual network card interface located in the same server node as the first virtual network card interface;
[0032] The second switch binding port transmits the processing result to the virtual platform;
[0033] Wherein, after the dynamic link aggregation operation is performed on the switch ports, the first switch binding port and the second switch binding port are obtained.
[0034] Optionally, the server node of the dual-node server integrates the virtual network card interface corresponding to each network card interface of the dual-port intelligent network card, including:
[0035] The two network card interfaces of the dual-port intelligent network card are respectively configured to the two server nodes of the dual-node server;
[0036] The network card interfaces of the dual-port intelligent network card are virtually operated to obtain virtual network card interfaces; the number of virtual network card interfaces corresponding to any network card interface is equal to the number of nodes corresponding to the server;
[0037] The virtual network card interfaces corresponding to the same network card interface are respectively corresponded to different nodes of the server, so that the server node of the dual-node server integrates one virtual network card interface corresponding to each network card interface.
[0038] Optionally, the switch ports of the switch and the network card interfaces are dynamically linked and aggregated, including:
[0039] On the server side, a first binding interface is created, and the first binding interface is named;
[0040] Each network card interface of the dual-port intelligent network card corresponding to the server is added to the first binding interface;
[0041] On the switch side, each second binding interface is created, and the second binding interface is named;
[0042] Each of the switch ports is added to the second binding interface; the second binding interface includes at least two of the switch ports;
[0043] determining the second binding interface as a switch binding port;
[0044] adding each of the switch binding ports into a bridge domain; the bridge domain allowing each of the switch binding ports to communicate within the same network layer.
[0045] According to a second aspect of the embodiments of the present disclosure, a network card testing system is provided, comprising a virtual platform and a hardware layer.
[0046] The virtual platform is configured to provide a network card testing model, and perform virtualization testing on a dual-port intelligent network card based on the network card testing model to obtain testing data.
[0047] The hardware layer comprises a dual-node server, and a dual-port intelligent network card is installed on the dual-node server; the hardware layer is configured to process the testing data and transmit the processing result to the virtual platform through a virtual network card interface corresponding to the dual-port intelligent network card on the dual-node server.
[0048] According to a third aspect of the embodiments of the present disclosure, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, when the computer program is executed by the processor, the steps of the network card testing method in the first aspect are implemented.
[0049] According to a fourth aspect of the embodiments of the present disclosure, a computer readable storage medium is provided, and the computer readable storage medium stores a computer program, when the computer program is executed by a processor, the steps of the network card testing method in the first aspect are implemented.
[0050] According to a fifth aspect of the embodiments of the present disclosure, a computer program product is provided, comprising a computer program, when the computer program is executed by a processor, the steps of the network card testing method in the first aspect are implemented.
[0051] The present disclosure can flexibly support multiple test scenarios and configurations and meet diversified test requirements by deploying different image containers in a virtual platform. Meanwhile, as the intelligent network card technology continues to develop, the test platform can easily extend new test models and images, maintain the advancement of test capabilities, and ensure the isolation between test environments. Since the test is performed in a virtual environment, this method significantly reduces the demand for hardware resources, avoids the waste of resources and the increase in costs caused by the need for multiple servers and switches in traditional test methods, and only one double-node server model equipped with a double-port intelligent network card is needed to test the network card. By defining the image container to determine the corresponding network card test model, the automation of the test process can be realized, and the test efficiency and accuracy can be improved. For the specific functions and performance requirements of the intelligent network card, customized test models and image containers can provide more in-depth and comprehensive test coverage. BRIEF DESCRIPTION OF DRAWINGS
[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings needed to be used in the description of the embodiments of the present disclosure will be briefly introduced. Obviously, the drawings in the following description are only some embodiments of the present disclosure, and other drawings can be obtained by those skilled in the art without creative labor.
[0053] Figure 1 is a step schematic diagram of a network card test method according to an embodiment of the present disclosure;
[0054] Figure 2 is a KVM virtual machine schematic diagram according to an embodiment of the present disclosure;
[0055] Figure 3 is a Vmware virtual machine schematic diagram according to an embodiment of the present disclosure;
[0056] Figure 4 is a virtual switch schematic diagram according to an embodiment of the present disclosure;
[0057] Figure 5 is a virtual platform schematic diagram according to an embodiment of the present disclosure;
[0058] Figure 6 is a hardware layer configuration schematic diagram according to an embodiment of the present disclosure;
[0059] Figure 7 is a whole architecture schematic diagram of a network card test system according to an embodiment of the present disclosure;
[0060] Figure 8 is a schematic diagram of an electronic device according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0061] The technical solutions in the embodiments of the present disclosure will be described clearly and completely in combination with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by those of ordinary skill in the art without creative labor fall within the protection scope of the present disclosure.
[0062] The terms "first", "second", and the like in the specification and claims of the present disclosure are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged under appropriate circumstances, so that the embodiments of the present disclosure can be implemented in an order other than those illustrated or described herein, and the objects distinguished by "first", "second", etc. are generally of a kind and do not limit the number of objects, for example, the first object can be one or more. In addition, "and / or" in the specification and claims indicates at least one of the connected objects, and the character " / ", generally indicates that the objects before and after are in an "or" relationship.
[0063] In recent years, with the development of virtualization technology in public clouds and the rise of SDN technology, higher requirements are put forward for the protocol stack of end systems, and traditional high-performance network cards have been difficult to meet these requirements. Therefore, intelligent network card technology has begun to enter the public's field of vision. Intelligent network cards use custom chips, high-speed network interfaces, and powerful software support to provide faster, safer, and more reliable network connections and data transmission services for data centers and enterprise networks.
[0064] Intelligent network cards have the following advantages:
[0065] I. Improve network performance: Intelligent network cards can achieve ultra-high data processing speed, throughput, and flow control efficiency by using dedicated chips and high-speed network interfaces, thereby improving network performance and response speed.
[0066] II. Safe and reliable: Intelligent network cards not only accelerate data transmission, but also provide better security features and protection mechanisms, such as data encryption, access control, firewalls, etc., thereby enhancing the security and stability of the network.
[0067] III. Support distributed storage and computing: Intelligent network cards can be combined with distributed storage, computing, and other technologies to achieve more efficient data processing and analysis, while also reducing network latency and load pressure, thereby improving overall performance and efficiency.
[0068] Four, offloading network functions: SmartNICs are equipped with computing capabilities, allowing them to offload all network functions, security functions, and storage functions from host servers, freeing up valuable processing power. For example, functions such as routing, network address translation, telemetry, load balancing, firewalling, etc. can be handled by SmartNICs, reducing the burden on host server CPUs.
[0069] Five, virtualization, load balancing, and data path optimization: SmartNICs can perform functions such as virtualization, load balancing, and data path optimization, making the network more flexible and efficient.
[0070] Six, flexibility and programmability: SmartNICs allow users to update or upgrade their firmware, flexibly add / modify the functions they provide, and allow security upgrades when needed. This makes network configuration and management more flexible and convenient
[0071] Most traditional servers are single nodes or multi-node servers composed of multiple single nodes, each node has its own CPU, memory, and NIC hardware resources, and nodes are relatively independent. The traditional NIC testing method is generally through two servers, each server is equipped with a SmartNIC to be tested, connected to a switch for packet testing, performance testing, etc. However, it cannot provide a complete virtualization testing scheme, and it is difficult to adapt to the testing needs of SmartNICs, and there are technical limitations.
[0072] To solve the above technical problems, the present disclosure provides a NIC testing method, which can provide a complete virtualization testing scheme for SmartNICs and can well adapt to the characteristics of SmartNICs.
[0073] Figure 1 is a step schematic diagram of a NIC testing method according to an embodiment of the present disclosure. As shown in Figure 1 the NIC testing system includes a virtual platform and a hardware layer, the hardware layer includes a dual-node server, the dual-node server is installed with a dual-port SmartNIC, and the virtual platform is deployed with different image containers.
[0074] The NIC testing system is a platform integrating multiple testing resources and technologies, which can support virtualization testing, such as image containers, etc. The virtual platform is a component in the NIC testing system, which uses virtualization technology to create and manage multiple isolated testing environments. Each environment corresponds to a different image container, and the container image contains the application programs, libraries, and configurations required for testing. By deploying different image containers to simulate different testing environments, the effect of testing environment isolation is achieved.
[0075] The dual-node server comprises two server nodes, each of which is independent of each other and can independently perform network card testing by using a dual-port intelligent network card, and can provide a redundant configuration to prevent a single point of failure.
[0076] The network card testing method can specifically comprise the following steps:
[0077] Step S11: In response to a network card testing request, a target image container is determined from the virtual platform; the target image container represents an independent testing environment.
[0078] In the case of initiating a testing request for a dual-port intelligent network card, the network card testing system receives the network card testing request. The network card testing request is analyzed to obtain specific parameters of the testing, and the testing scenario and testing target are determined; the network card testing system selects one or more appropriate image containers from the virtual platform, and uses these image containers as target image containers for testing the current dual-port intelligent network card. Any target image container corresponds to a testing environment and testing tools required for testing.
[0079] The target image container is loaded and started, and an independent testing environment is created in the virtual platform.
[0080] Each image container can be managed by a virtual machine, which can be a KVM virtual machine or a Vmware virtual machine.
[0081] Figure 2 is a KVM virtual machine diagram shown by an embodiment of the present disclosure. According to Figure 2 , it is a user interface of a virtual machine manager. Through this interface, a user can manage and monitor multiple virtual machine instances. The left side of the interface is a menu bar, which contains standard menu options such as "File", "Edit", "View", "Help", etc., for performing file management, editing settings, view switching, and obtaining help, etc. On the right side of the interface, multiple virtual machine instances and their current states are listed, including virtual machines including "Virtual Machine 1", "Virtual Machine 2", and "Virtual Machine 3".
[0082] Figure 3 is a Vmware virtual machine diagram shown by an embodiment of the present disclosure. According to Figure 3 , it is a page for adding a host to a Vmware virtual machine. A host can be added to a Vmware virtual machine, and multiple properties can be configured, such as: name and location, connection settings, host summary, license allocation, lock mode, resource pool, etc.
[0083] Step S12: Determine a network card testing model according to the target image container.
[0084] After determining the target image container, the target image container respectively and independently tests the dual-port intelligent network card. The test environment corresponding to each target image container is determined. According to the characteristics and test requirements of the target image container, the network card test model corresponding to each target image container is determined.
[0085] Step S13: According to the network card test model, the dual-port intelligent network card is tested by virtualization, and test data is obtained.
[0086] The network card test model includes various test parameters for testing the intelligent network card, such as specific network traffic patterns, load conditions, or other test parameters. According to the test parameters corresponding to the network card test model, the dual-port intelligent network card is tested by virtualization. During the virtualization test process, the network card test system simulates various network scenarios and load conditions to observe the performance of the dual-port intelligent network card under different conditions and collect relevant performance indicators and stability data.
[0087] During the virtualization test process, the test process is monitored, and test data including performance indicators, error logs, etc. are recorded.
[0088] Step S14: The test data is processed by the hardware layer to obtain a processing result.
[0089] During the comprehensive virtualization test of the intelligent network card, the test content of the virtualization test can include throughput test, delay test, packet loss rate test, protocol compatibility test, etc. The transmission, reception and processing of network traffic corresponding to these test contents are actually performed on the hardware layer. The throughput test is used to measure the amount of data that the network card can process per unit time, i.e. the data transmission speed. The delay test is used to evaluate the time required for a data packet to be sent and received, reflecting the processing speed of the network card and network delay. The packet loss rate test is used to test the proportion of data packets lost by the network card under certain conditions, reflecting the stability and reliability of the network. The protocol compatibility test is used to verify whether the network card supports and correctly processes various network protocols, ensuring its compatibility with different systems and devices. The test parameters corresponding to the test content can be used as test data.
[0090] During the virtualization test process, the virtual platform serves as the test control and management center, and generates various test data according to the defined network card test model. The test data interacts with the hardware layer through virtualization technology, and the hardware layer captures each test data and processes it according to the test requirements of the test data, such as forwarding, analysis, storage, etc., and generates a processing result.
[0091] Step S15: The processing result is transmitted to the virtual platform through the virtual network card interface corresponding to the dual-port intelligent network card on the dual-node server.
[0092] The processing results are transmitted back to the virtual platform. The virtual platform comprehensively evaluates the performance of the intelligent network card according to the results, in combination with preset performance indicators and evaluation criteria.
[0093] By using the embodiments of the present disclosure, the dependence on physical resources is reduced through the virtualized test environment, and the test efficiency is improved. The diversified image containers and test models provide rich test scenarios and configurations, enhancing the comprehensiveness of the test. The accurate test models and comprehensive test scenarios ensure the accuracy and reliability of the test. Through the image container, the test environment can be quickly and flexibly deployed and built, improving the test efficiency and repeatability. The close cooperation between the hardware layer and the virtual platform can significantly improve the test efficiency. The virtualization layer can quickly deploy the test environment, while the hardware layer provides stable physical resource support, ensuring the smooth progress of the test. The hardware layer directly processes the test data of the intelligent network card, ensuring the accuracy and real-time performance of the data.
[0094] In an optional embodiment, the virtual platform includes a virtual switch; the virtual switch includes test software and a plurality of virtual network cards; the determining of the network card test model according to the target image container includes: the target image container running a test tool provided by the test software; the test software determining a network card test model according to the test tool, and determining a target virtual network card according to the test tool; the virtual network card is used to simulate a corresponding network environment; the virtualization test of the dual-port intelligent network card according to the network card test model includes: according to the target virtual network card and the virtual switch, the test software performs a virtualization test on the dual-port intelligent network card based on the network card test model.
[0095] The virtual switch can forward data packets between image containers and between virtual machines and physical networks. The virtual switch allows network traffic to flow effectively between different virtualization and physical network components, while providing necessary isolation and security. Figure 4 is a schematic diagram of a virtual switch according to an embodiment of the present disclosure. As shown in Figure 4 , the virtual switch can be configured through a Vmware virtual machine. The network connection settings of the virtual switch can be configured.
[0096] The test software can be DPDK (Data Plane Development Kit). DPDK is an open-source library and driver collection for accelerating user-space packet processing, which is used for network performance testing and benchmarking. The test software is used to measure the performance of data transmission between the virtual network card and the virtual switch.
[0097] A virtual network card is a simulation of a network interface card in a virtual environment, allowing a virtual machine or container to communicate with a physical network or other virtual network elements.
[0098] Figure 5 is a schematic diagram of a virtual platform according to an embodiment of the present disclosure. As shown in Figure 5 there are multiple image containers, including image container 1, image container 2, image container 3, and image container 4, and there are virtual network cards corresponding to the image containers; each image container includes a data forwarding layer for external data transmission; the virtual network cards are configured into a virtual switch, including virtual network card 1, virtual network card 2, virtual network card 3, and virtual network card 4, and the virtual switch also includes test software that determines a corresponding network card test model according to network card test parameters corresponding to each image container. The virtual network cards interact with the test software and the image containers respectively.
[0099] A virtual switch is configured in the virtual platform, and the virtual switch is used for data packet forwarding and processing. By communication among the various image containers, the virtual switch, and the virtual network cards, a real network environment is simulated.
[0100] The target image container responds to the received network card test request, determines the network card test parameters according to the network card test environment corresponding to the target image container, and determines the network card test parameters as the running parameters of the test tool; according to the running of the test tool, the test software determines the corresponding network card test model. The running parameters of the test tool can determine the target virtual network card participating in the network card test. Different virtual network cards correspond to different network test environments.
[0101] The network card test parameters can be pre-set or configured by a user through a command line when virtualizing testing of a dual-port intelligent network card.
[0102] In a specific embodiment, when the test software is DPDK and the test tool is testpmd, the following are two examples of using DPDK testpmd applications to define network card test models:
[0103] #. / testpmd-l 48-64-w 0000:9e:00.0----burst=128--nb-cores=8--txd=4096
[0104] --rxd=512--txq=64--rxq=64--forward-mode=io--disable-hw-vlan-filter--stats-period=1
[0105] #. / testpmd-l 0-48-w 0000:20:00.0----burst=64--nb-cores=8--txd=4096
[0106] --rxd=1024--txq=64--rxq=64--forward-mode=txonly--disable-hw-vlan-filter--txpkts 1400--stats-period=1
[0107] `-l`: Specifies which CPU cores the DPDK application will run on. For example: `-l 48-64`: Specifies the range of logical CPU cores from 48 to 64; `-l 0-48`: Specifies the range of logical CPU cores from 0 to 48.
[0108] `-w`: Specifies the test device. `-w 0000:9e:00.0`: Specifies the PCI address of the network interface card to be initialized and configured; `-w 0000:20:00.0`: Specifies the PCI address of the network interface card to be initialized and configured.
[0109] `-n` or `--numa`: Specifies which NUMA node the application runs on. For example, `-n 1` binds the application to NUMA node 1.
[0110] `-m` or `--socket-mem`: Specifies the memory allocation for each NUMA node. For example, `-m1024,1024` means that each NUMA node is allocated 1024MB of memory.
[0111] `-i` or `--interactive`: Enables interactive mode, allowing commands to be entered at runtime.
[0112] `--nb-cores`: Specifies the number of cores to use, limiting the actual number of cores used for forwarding.
[0113] `--txd` and `--rxd`: specify the number of send and receive queues for each port, respectively.
[0114] `--burst`: Specifies the burst size of the data packets to be sent.
[0115] `--rxdpkt`: Specifies the number of buffers for each receive queue.
[0116] After determining the network interface card (NIC) test model, the test software performs virtualization testing on the dual-port smart NIC, executing the data transmission required for the virtualization test.
[0117] With the embodiments of the present disclosure, the required test environment, including virtual switches, virtual network cards, etc., can be quickly configured and deployed through the virtual platform, without waiting for or configuring physical hardware, and multiple network environments can be simulated on the same physical hardware, improving the utilization of hardware resources. Each virtual network card can simulate an independent network environment, ensuring the independence and isolation of the test process and avoiding mutual interference between different tests. The test tools provided by the test software can automatically execute the test process, reducing the complexity and error rate of manual operation. Various parameters in the test process can be configured and adjusted as needed, enhancing the controllability of the test.
[0118] In an optional embodiment, the mirror container is configured by the following steps, including: installing container software and test software; performing a compilation operation through the test software to obtain test tools; the test tools include various test parameters; performing a mapping operation through the container software to obtain various mirror containers; the mapping operation includes: mapping device directories, mapping memories, mapping node information, and mapping device files; copying the test tools into the mirror containers; configuring each network card test parameter in the test tools according to the network card test environment corresponding to the mirror container to obtain a test script corresponding to the mirror container.
[0119] Run the container software installation command to install the container software. After executing the installation command, the container detection command can be run to determine whether the installation is successful.
[0120] For example, if the container software adopted by the present disclosure is a Docker container. Then execute the following command to install the container software:
[0121] # yum install-y docker-ce docker-ce-cli containerd.io –allowerasing Install container software
[0122] The following command can be executed to check whether the Docker container is installed:
[0123] # docker info command to check whether the installation is successful
[0124] Run the installation command of the test software to install the test software. Select the compilation platform of the test software. After the compilation platform is selected, the test software is compiled.
[0125] After the test software is compiled, a test tool is obtained, and the test tool includes various test parameters. In the case of testing a network card, various test parameters in the test tool need to be configured. For example, when the test software is DPDK, the test tool is testpmd obtained by compilation.
[0126] After the container software is installed, various container instances, that is, image containers in the present disclosure, need to be created by the container software. First, an image file is pulled, and the image file can be centos.
[0127] After the image file is pulled, a mapping operation is performed by the container software to obtain an image container. The mapping operation enables the container to access resources in the host or network while maintaining the isolation of the resources and avoiding resource conflicts. The following is a specific command for creating an image container:
[0128] docker run-dit--privileged\
[0129] -v / sys / bus / pci / devices: / sys / bus / pci / devices\
[0130] -v / sys / kernel / mm / hugepages: / sys / kernel / mm / hugepages\
[0131] -v / sys / devices / system / node: / sys / devices / system / node\
[0132] -v / dev: / dev--name centos2 5d0da3dc9764 / usr / sbin / init
[0133] Among them, -dit: create a container, connect a terminal, and run in the background; --privileged: increase system permissions; -v / sys / bus / pci / devices: / sys / bus / pci / devices: pass SR-IOV virtual machine network cards to the container; -v / sys / kernel / mm / hugepages: / sys / kernel / mm / hugepages: mount large page memory to the container; -v / sys / devices / system / node: / sys / devices / system / node: mount numa node information to the container; -v / dev: / dev: mount the igb_uio driver to the container.
[0134] The test tool obtained by installing the test software is copied to each image container, so that the image container can use the test tool, and a corresponding network card test model is generated by the test software to perform virtualization testing on the dual-port intelligent network card.
[0135] The test tool includes various network card test parameters, which can be configured to develop personalized dual-port intelligent network card testing strategies. The various network card test parameters can be configured in advance according to the network card test environment corresponding to the image container, to obtain a test script corresponding to the image container, and to enable the image container to access the corresponding test script. When any image container runs the test software, the various test parameters are obtained from the test script, without the need to configure various network card test parameters during testing. The network card test parameters can include: test target, hardware resources, test environment, etc.
[0136] According to the embodiments of the present disclosure, the container software and the test software are automatically installed, reducing the complexity and error rate of manual deployment. Multiple image containers can be quickly created, each of which can independently run tests, thereby executing multiple test scenarios in parallel, significantly improving test efficiency. The test parameters are dynamically configured according to the network card test environment corresponding to the image container, enabling the test to accurately simulate the application behavior under actual network conditions, improving the accuracy and effectiveness of the test. The container technology allows efficient use of system resources, and reduces resource consumption and waste through a lightweight container isolation mechanism.
[0137] In an optional embodiment, the method further comprises: obtaining a virtualization test result according to the processing result; and transmitting the test result to an image container different from the target image container.
[0138] At the hardware layer, data transmission required for a series of dual-port intelligent network card performance tests is performed according to test data, such as throughput, delay, packet loss rate, etc. After the test is completed, the hardware layer packages the test result data and prepares to transmit it to the virtual platform.
[0139] A stable data transmission channel is established between the virtual platform and the hardware layer to ensure that the test result data can be transmitted safely and quickly. The virtual platform receives the test result data packet from the hardware layer and performs preliminary data verification to ensure the integrity and correctness of the data.
[0140] The virtual platform analyzes the received test result data and extracts key performance indicators such as throughput and delay. According to a preset evaluation standard or algorithm, the performance of the dual-port intelligent network card is comprehensively evaluated to obtain a virtualization test result. The virtualization test result can be converted into a specific data format or protocol for subsequent processing and transmission.
[0141] The virtual platform identifies another image container different from the target image container as the receiver of the virtualization test result. The virtualization test result is transmitted to the designated image container through the inter-container communication mechanism. In the receiving image container, the virtualization test result is further processed or displayed, such as generating a test report, triggering an alarm, etc.
[0142] For example, the processing result can be the number of data packets processed per second (PPS, Packets Per Second) and the test packet length of the receiving end. The receiving bandwidth of the current network can be calculated according to the number of data packets processed per second and the test packet length, so as to determine the performance of the dual-port intelligent network card in the network card test environment corresponding to the target image container. The following calculation formula can be used to calculate the bandwidth:
[0143] PPS x packet length x 8bit / B x 10-9 = bandwidth
[0144] The test packet length can be 1400B. According to the test data, the current bandwidth can be obtained as:
[0145] 16036490 pps x 1400B x 8bit / B x 10-9 ≈ 179Gbp
[0146] By using the embodiments of the present disclosure, the test period is greatly shortened and the test efficiency is improved through automatic testing and data transmission. The accuracy and reliability of the test results are ensured by using professional test tools and stable data transmission channels. The test results are arranged into structured reports and transmitted to designated image containers, which facilitates subsequent analysis and utilization. Based on the virtualization test results, the performance of the dual-port intelligent network card can be optimized and improved to enhance its performance in actual applications.
[0147] Figure 6 is a hardware layer configuration schematic diagram shown by an embodiment of the present disclosure. As shown in Figure 6 the hardware layer further includes a switch; the server nodes of the dual-node server integrate the virtual network card interfaces corresponding to the network card interfaces of the dual-port intelligent network card; and the switch ports of the switch are dynamically linked to the network card interfaces.
[0148] The dual-port intelligent network card installed on the dual-node server can be a Multi Host intelligent network card. The Multi Host intelligent network card can virtually obtain multiple virtual network card interfaces under the computer system from actual network card interfaces. The virtual network card interfaces are configured to the corresponding nodes of the dual-node server. Dynamic link aggregation is performed on the network card interfaces of the dual-node server and the switch ports of the switch, so that the switch ports of the switch and the network card interfaces are dynamically aggregated. The bandwidth can be stacked and the link can be redundant, thereby improving the efficiency and reliability of data transmission.
[0149] As shown in Figure 6 The virtual network card interfaces of the dual-port intelligent network card are configured on the server nodes, for example, the virtual network card interface 0 and the virtual network card interface 1 are configured on the server node 0, and the virtual network card interface 0 and the virtual network card interface 1 are configured on the server node 1. The switch includes two switch binding ports, and each switch binding port includes multiple switch ports, which are physical ports on the switch. The switch and the dual-node server perform data interaction through the virtual network card interfaces on the server side and the switch binding ports on the switch side.
[0150] In an optional embodiment, the server nodes of the dual-node server integrate the virtual network card interfaces corresponding to the network card interfaces of the dual-port intelligent network card, including: performing virtual operation on the network card interfaces of the dual-port intelligent network card to obtain virtual network card interfaces; the number of virtual network card interfaces corresponding to any network card interface is equal to the number of nodes corresponding to the server; the virtual network card interfaces corresponding to the same network card interface are respectively corresponding to different nodes of the server, so that the server nodes of the dual-node server integrate one virtual network card interface corresponding to each network card interface.
[0151] The two network card interfaces of the dual-port intelligent network card are respectively configured to the server nodes of the dual-node server, and one server node is configured with one network card interface. The network card interface is the actual interface of the dual-port intelligent network card.
[0152] The number of server nodes on the dual-node server is determined. According to the number of server nodes, the network card interfaces on the dual-port intelligent network card are virtually operated. After virtually operating on any network card interface, a virtual network card interface corresponding to the network card interface is obtained. It is required that the number of virtual network card interfaces corresponding to any network card interface is the same as the number of server nodes.
[0153] The virtual network card interfaces corresponding to the same network card interface are respectively deployed on different server nodes. Each server node is configured with a complete set of virtual network card interfaces, and the complete set of virtual network card interfaces means that each server node is configured with a virtual network card interface corresponding to each network card interface.
[0154] By virtualizing the network card interfaces of the intelligent network card according to the number of server nodes, it can be ensured that each node can obtain necessary network resources. The virtual network card interfaces can be easily configured and managed, and the number of network interfaces can be expanded as needed to meet the needs of high concurrency and large data transmission. The virtual network card interfaces on each node are independent, which helps to realize the security isolation of data. By respectively deploying the virtual network card interfaces corresponding to the same network card interface on different server nodes, load balancing and redundant backup of network traffic can be realized.
[0155] In an optional embodiment, the switch ports of the switch are dynamically linked and aggregated with the network card interfaces, including: on the server side, creating a first binding interface and naming the first binding interface; adding each network card interface of the dual-port intelligent network card corresponding to the dual-node server to the first binding interface; on the switch side, creating each second binding interface and naming the second binding interface; adding each switch port to the second binding interface; the second binding interface includes at least two switch ports; determining the second binding interface as a switch binding port; adding each switch binding port to the bridge domain; the bridge domain allows each switch binding port to communicate within the same network hierarchy.
[0156] The dynamic link aggregation operation on each network card interface on the dual-node server and the switch port on the switch needs to be configured respectively from the server side and the switch side, so as to realize the dynamic link aggregation of the switch ports of the switch with the network card interfaces. Dynamic link aggregation can realize the functions of improving network bandwidth, reducing delay, enhancing the reliability and stability of data transmission, etc.
[0157] On the server side, a virtual interface for binding, that is, a first binding interface, needs to be created, and the first binding interface serves as an aggregation point for multiple network card interfaces. The first binding interface is named for easy management and maintenance. The multiple network card interfaces of the dual-port intelligent network card in the dual-node server are logically added to the previously created binding interface.
[0158] Switch ports are physical interfaces on a switch. At the switch end, multiple virtual interfaces for bonding, i.e. second bonding interfaces, are created, and the switch ports on the switch are respectively added to the corresponding second bonding interfaces, and each second bonding interface includes at least two switch ports. Each second bonding interface is respectively named, and the names of the second bonding interfaces are different from each other, so as to facilitate management.
[0159] After the addition of the switch ports is completed, it is confirmed that the switch ports have been correctly aggregated into a logical bonding port, i.e. a second bonding interface, and the second bonding interface is determined as a switch bonding port. Each switch bonding port is added to a bridge domain; the bridge domain is used to allow each switch bonding port to communicate in the same network layer.
[0160] In one scenario, the dynamic link aggregation of the switch ports of the switch and the network card interfaces can be performed through the following code:
[0161] Server end:
[0162] A first bonding interface is created, and the name of the first bonding interface is bond30
[0163] # nmcli con add type bond ifname bond30 bond.options "mode=4,miimon=100,lacp_rate=fast,xmit_hash_policy=layer3+4"
[0164] Two network card interfaces are added under bond30:
[0165] # nmcli connection add type ethernet ifname ens30f0np0 master bond30
[0166] # nmcli connection add type ethernet ifname ens30f1np1 master bond30
[0167] Switch end:
[0168] The settings of the switch ports are deleted:
[0169] # nv unset interface swp1-32
[0170] Swp1 swp3 is configured as a bonding mode and is added to a switch bonding port
[0171] #nv set interface bond1 bond member swp1 swp3
[0172] Add each switch binding port to the same bridge domain
[0173] #nv set interface bond1-16 bridge domain br_default
[0174] Switch applies the above configuration and checks the configuration
[0175] #nv config apply
[0176] With the embodiments of the present disclosure, by performing dynamic link aggregation configuration on the server side and the switch side respectively, the performance of the entire network system can be significantly improved. As the business demand grows, more network card interfaces or switch ports can be easily added to the corresponding binding interfaces to meet higher network bandwidth and performance requirements. When the network fails, since the dynamic link aggregation technology is adopted, it is easier to locate the problem, and due to the existence of standby interfaces and redundant paths, the fault recovery process will also be more rapid and efficient.
[0177] In an optional embodiment, the hardware layer configured as above can be used to implement the following method for processing virtualization test on the hardware layer. The test data is processed through the hardware layer to obtain a processing result, including: the first switch binding port of the switch receives the test data and transmits the test data to each network card interface of the dual-port intelligent network card; the first virtual network card interface corresponding to the network card interface receives the test data and processes the test data through the dual-port intelligent network card to obtain a processing result; the processing result is transmitted to the virtual platform, including: the dual-port intelligent network card transmits the processing result to the second switch binding port of the switch through the second virtual network card interface located in the same server node as the first virtual network card interface; the second switch binding port transmits the processing result to the virtual platform; wherein, after performing dynamic link aggregation on the switch port, the first switch binding port and the second switch binding port are obtained.
[0178] On the basis of dynamic link aggregation of the switch port of the switch and the network card interface, after determining the test data generated by the virtualization test, a first switch binding port is determined from each switch binding port of the switch to receive the test data. The first switch binding port is any one of the switch binding ports of the switch.
[0179] After the first switch binding port receives the test data, the test data is transmitted to each network card interface through the first switch binding port via the aggregation link. The transmitting network card interface needs to be dynamically aggregated with the switch port of the switch. If there is a network card interface that is not dynamically aggregated with the switch port, the first switch binding port does not transmit the test data to the network card interface.
[0180] For any network card interface that receives the test data, the test data is transmitted to any virtual network card interface corresponding to the network card interface. The virtual network card interface is configured on a server node of the dual-node server, and the test data is processed by the dual-port intelligent network card on the server node. The server nodes of the dual-node server are independent of each other, and the receiving and sending of the same test data correspond to the same server node.
[0181] The dual-port intelligent network card obtains the test data through the first virtual network card interface and processes the test data to obtain a test result of the test data. The test data can be processed by using the built-in processor and the special hardware acceleration unit of the dual-port intelligent network card, such as performing data packet analysis, protocol processing, and flow control. The processing result can reflect the performance of the dual-port intelligent network card under specific test conditions.
[0182] The test result is sent to the switch through a second virtual network card interface on the same server node as the first virtual network card interface. The first virtual network card interface and the second virtual network card interface are respectively virtually obtained from different network card interfaces. For example, the first virtual network card interface is obtained from network card interface A, and the second virtual network card interface is obtained from network card interface B.
[0183] The second switch binding port different from the first switch binding port on the switch receives the processing result and transmits the processing result to the virtual platform.
[0184] By using the embodiments of the present disclosure, the dynamic link aggregation operation binds multiple physical links or ports into a logical link, which significantly improves the overall bandwidth. The dynamic link aggregation provides link redundancy function, so that even if part of the link fails, the remaining link can still maintain the continuity of data transmission, thereby improving the reliability of the network. After the dual-port intelligent network card processes the test data, the test result is fed back to the switch through different virtual network card interfaces, which realizes the closed-loop processing of the test data and helps to evaluate and optimize the network performance. The nodes of the dual-node server are independent of each other, and the receiving and sending of the same test data correspond to the same server node, which ensures the consistency and accuracy of data processing.
[0185] In an optional embodiment, different users or test teams can be allowed to run tests independently in the same network card test system without interfering with each other, while improving resource utilization. An independent virtual network environment and resource pool are created for each tenant in the virtual platform, including image containers, virtual switches, virtual network cards, etc. Resource allocation is automatically adjusted according to test requirements to improve test efficiency and resource utilization.
[0186] Figure 7 is a schematic diagram of the overall architecture of a network card test system according to an embodiment of the present disclosure. As shown in Figure 7 , it includes image containers, virtual switches, a resource control center, a switch, and a dual-node server. The image containers include image container 1, image container 2, image container 3, and image container 4. The virtual switch includes four interaction interfaces, including interaction interface 1, interaction interface 2, interaction interface 3, and interaction interface 4. Data transmission between the virtual switch and the image containers is achieved through the interaction interfaces. The switch includes two switch binding ports, switch binding port 1 and switch binding port 2. The dual-node server includes two server nodes, such as server node 0 and server node 1. Each server node includes two virtual network card interfaces, virtual network card interface 0 and virtual network card interface 1. The virtual network card interfaces 0 or 1 of the two server nodes correspond to the same network card interface.
[0187] The following describes the implementation of the network card test system according to an embodiment of the present disclosure. Figure 7The illustrated network card test system performs virtualization testing on a dual-port intelligent network card. In the case where the mirror container 1 needs to perform virtualization testing on a dual-port intelligent network card, an interaction interface, for example, the interaction interface 1, is determined on the virtual switch, the network card test parameters corresponding to the mirror container 1 are transmitted to the virtual switch, the virtual switch determines a network card test model through the network card test parameters, and performs virtualization testing on the dual-port intelligent network card through the network card test model; the test data generated in the virtualization testing is determined; the test data is transmitted to any switch binding port, for example, the switch binding port 1, on the switch through the resource control center; the switch binding port 1 transmits the test data to each network card interface of the dual-port intelligent network card on the server again; the network card interface receives the test data through the corresponding virtual network card interface, for example, the virtual network card interface 0 on the server node 0 and the virtual network card interface 1 on the server node 1; after the virtual network card interface 0 on the server node 0 and the virtual network card interface 1 on the server node 1 receive the test data, the test data is processed to obtain a processing result; the processing result corresponding to the test data received by the virtual network card interface 0 on the server node 0 is transmitted to the switch binding port 2 through the network card test interface 1 on the server node 0; the processing result corresponding to the test data received by the virtual network card interface 1 on the server node 1 is transmitted to the switch binding port 2 through the network card test interface 0 on the server node 1; the switch binding port 2 transmits the test result to the virtual switch through the resource control center again, and the virtual switch obtains a virtualization testing result according to the processing result and transmits the virtualization testing result to any mirror container different from the mirror container 1, for example, the mirror container 3.
[0188] The embodiment of the present disclosure further provides a network card test system, comprising a virtual platform and a hardware layer.
[0189] The virtual platform is used for providing a network card test model, performing virtualization testing on a dual-port intelligent network card based on the network card test model, and obtaining test data.
[0190] The hardware layer comprises a dual-node server, and a dual-port intelligent network card is installed on the dual-node server; the hardware layer is used for processing the test data and transmitting the processing result to the virtual platform through a virtual network card interface corresponding to the dual-port intelligent network card on the dual-node server.
[0191] The embodiment of the present disclosure further provides an electronic device, which refers to Figure 8 , Figure 8 is a schematic diagram of the electronic device shown in the embodiment of the present disclosure. As shown in FIG. 1, the electronic device comprises a virtual platform and a hardware layer. Figure 8As shown, the electronic device 800 includes a memory 810 and a processor 820, the memory 810 and the processor 820 are connected by a bus in communication, the memory 810 stores a computer program, the computer program can run on the processor 820, and then the steps in the network card testing method disclosed by the embodiments of the present disclosure are implemented.
[0192] The embodiments of the present disclosure also provide a computer readable storage medium, the computer readable storage medium stores a computer program, when the computer program is executed by a processor, the steps in the network card testing method disclosed by the embodiments of the present disclosure are implemented.
[0193] The embodiments of the present disclosure also provide a computer program product, including a computer program, when the computer program is executed by a processor, the steps in the network card testing method disclosed by the embodiments of the present disclosure are implemented.
[0194] Each of the embodiments in the specification is described in a progressive manner, and each embodiment focuses on the difference from other embodiments. The same and similar parts between the embodiments can be referred to each other.
[0195] Those skilled in the art should understand that the embodiments of the present disclosure can be provided as a method, a system or a computer program product. Therefore, the embodiments of the present disclosure can be in the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Moreover, the embodiments of the present disclosure can be in the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0196] The embodiments of the present disclosure are described with reference to flowcharts and / or block diagrams of the method, electronic device and computer program product according to the embodiments of the present disclosure. It should be understood that each flow and / or block in the flowcharts and / or block diagrams, and the combination of the flows and / or blocks in the flowcharts and / or block diagrams can be implemented by computer program instructions. These computer program instructions can be provided to a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing terminal devices to produce a machine, so that the instructions executed by the computer or other programmable data processing terminal devices produce a device for implementing the functions specified in the flowcharts and / or block diagrams. Figure 1 The functions specified in one flow or multiple flows and / or blocks Figure 1 The device for implementing the functions specified in one flow or multiple flows and / or blocks.
[0197] These computer program instructions can also be stored in a computer readable storage medium, which can guide the computer or other programmable data processing terminal devices to work in a specific way, so that the instructions stored in the computer readable storage medium produce a product including instruction devices, which implement the functions specified in the flowcharts and / or block diagrams.Figure 1 one or more processes and / or blocks Figure 1 the function(s) specified in the block or blocks.
[0198] These computer program instructions can also be loaded into computer or other programmable data processing terminal devices, so that a series of operation steps are performed on the computer or other programmable terminal devices to generate a computer-implemented process, so that the instructions executed on the computer or other programmable terminal devices provide steps for implementing the function(s) specified in the block or blocks. Figure 1 one or more processes and / or blocks Figure 1 the function(s) specified in the block or blocks.
[0199] Although some embodiments of the present disclosure have been described, those skilled in the art who have acquired the basic inventive concept can make additional changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications falling within the scope of the embodiments of the present disclosure.
[0200] The above describes in detail a network card testing method, system, electronic device and medium provided by the present disclosure. The principles and implementation manners of the present disclosure are described by applying specific examples. The above description of the embodiments is only for helping to understand the method of the present disclosure and its core idea. Meanwhile, for those skilled in the art, according to the idea of the present disclosure, the specific implementation manners and application ranges can be changed. In summary, the content of the present description should not be understood as limiting the present disclosure.
Claims
1. A method of testing a network card, the method comprising: The application is applied to a network card test system, the network card test system comprises a virtual platform and a hardware layer, the hardware layer comprises a double-node server, a double-port intelligent network card is installed on the double-node server, different image containers are deployed in the virtual platform, and the virtual platform comprises a virtual switch; The virtual switch comprises test software and a plurality of virtual network cards, which comprises: In response to a network card test request, a target image container is determined from the virtual platform; the target image container represents an independent test environment; According to the target image container, a network card test model is determined, which comprises that the test tool provided by the test software is run by the target image container; the test tool comprises various network card test parameters; the test software determines a network card test model according to the test tool, and determines a target virtual network card according to the test tool; the virtual network card is used to simulate a corresponding network environment; According to the network card test model, the double-port intelligent network card is virtually tested to obtain test data; according to the network card test model, the double-port intelligent network card is virtually tested, which comprises that, according to the target virtual network card and the virtual switch, the test software virtually tests the double-port intelligent network card based on the network card test model; The test data is processed through the hardware layer to obtain a processing result; The processing result is transmitted to the virtual platform through the virtual network card interface corresponding to the double-port intelligent network card on the double-node server.
2. The method of claim 1, wherein, The image container is configured by the following steps, which comprises: Container software and test software are installed; A test tool is obtained by performing a compiling operation through the test software; various image containers are obtained by performing a mapping operation through the container software; the mapping operation comprises mapping a device directory, mapping memory, mapping node information and mapping a device file; The test tool is copied into the image container; According to the network card test environment corresponding to the image container, each network card test parameter in the test tool is configured to obtain a test script corresponding to the image container.
3. The method of claim 1, wherein, Further comprising: According to the processing result, a virtualization test result is obtained; The test result is transmitted to an image container different from the target image container.
4. The method of claim 1, wherein, The hardware layer further comprises a switch; a server node of the double-node server integrates a virtual network card interface corresponding to each network card interface of the double-port intelligent network card; Switch ports of the switch are dynamically linked to the network card interfaces; The test data is processed through the hardware layer to obtain a processing result, which comprises: A first switch binding port of the switch receives the test data and transmits the test data to each network card interface of the double-port intelligent network card; A first virtual network card interface corresponding to the network card interface receives the test data and processes the test data through the double-port intelligent network card to obtain a processing result; The processing result is transmitted to the virtual platform, which comprises: The double-port intelligent network card transmits the processing result to a second switch binding port of the switch through a second virtual network card interface co-located with the first virtual network card interface on a server node; The second switch binding port transmits the processing result to the virtual platform; Wherein, after performing dynamic link aggregation on the switch ports, the first switch binding port and the second switch binding port are obtained.
5. The method of claim 4, wherein, The server node of the double-node server integrates the virtual network card interfaces corresponding to each network card interface of the double-port intelligent network card, including: Performing virtual operations on the network card interfaces of the double-port intelligent network card to obtain virtual network card interfaces; the number of virtual network card interfaces corresponding to any network card interface is equal to the number of nodes corresponding to the server; Corresponding the virtual network card interfaces corresponding to the same network card interface to different nodes of the server respectively, so that each network card interface is integrated with a virtual network card interface corresponding to the network card interface on the server node of the double-node server.
6. The method of claim 4, wherein, The switch ports of the switch are dynamically link aggregated with the network card interfaces, including: On the server side, a first binding interface is created, and the first binding interface is named; Each network card interface of the double-port intelligent network card corresponding to the double-node server is added to the first binding interface; On the switch side, each second binding interface is created, and the second binding interface is named; Each of the switch ports is added to the second binding interface; the second binding interface includes at least two of the switch ports; The second binding interface is determined as a switch binding port; Each of the switch binding ports is added to a bridge domain; the bridge domain allows each of the switch binding ports to communicate within the same network hierarchy.
7. A network card testing system, comprising: Including: a virtual platform and a hardware layer; Wherein, different image containers are deployed in the virtual platform, the image container represents an independent test environment, the virtual platform includes a virtual switch; the virtual switch includes test software and multiple virtual network cards; the virtual platform is used to provide a network card test model, and based on the network card test model, the double-port intelligent network card is tested to obtain test data; The virtual platform is used to provide a network card test model, including: The virtual platform determines a target image container in response to a network card test request; According to the target image container, the network card test model is determined, including: the target image container runs a test tool provided by the test software; the test tool includes each network card test parameter; the test software determines a network card test model according to the test tool, and determines a target virtual network card according to the test tool; the virtual network card is used to simulate a corresponding network environment; Based on the network card test model, the double-port intelligent network card is tested, including: according to the target virtual network card and the virtual switch, the test software tests the double-port intelligent network card based on the network card test model; The hardware layer comprises a dual-node server, and a dual-port intelligent network card is installed on the dual-node server; the hardware layer is used for processing the test data and transmitting the processing result to the virtual platform through a virtual network card interface corresponding to the dual-port intelligent network card on the dual-node server.
8. An electronic device, comprising: The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the network card testing method according to any one of claims 1-6. The computer program is stored on the computer readable storage medium and is executed by the processor to implement the steps of the network card testing method according to any one of claims 1-6.
9. A computer-readable storage medium, characterized in that,
Citation Information
Patent Citations
Network load test method, device, equipment and medium
CN111404771A
Network card testing method based on virtualization scene
CN112600723A