Network card test method and system, electronic equipment and medium

By deploying image containers in the virtual platform and using dual-node servers at the hardware layer for virtualization testing, the problem that traditional network card testing methods cannot adapt to the needs of smart network cards is solved, and efficient and accurate network card testing is achieved.

CN119341937AActive Publication Date: 2025-01-21INSPUR SUZHOU INTELLIGENT TECH CO LTD
View PDF 8 Cites 0 Cited by

Patent Information

Application Number
CN202411388173.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-30
Publication Date
2025-01-21
Estimated Expiration
2044-09-30

AI Technical Summary

Technical Problem

Traditional network card testing methods cannot provide a complete virtualization testing solution, and are difficult to adapt to the needs of intelligent network card testing, and have technical limitations.

Method used

Using a network card test method, using the virtual platform and hardware layer, through the deployment of different mirror containers in the virtual platform, determine the target mirror container and network card test model, perform virtualization tests, and pass the double port on the dual node model server Smart network cards process and transmit test data.

Benefits of technology

A complete virtualization test of smart network cards, adapting to the characteristics of smart network cards, significantly reduced the demand for hardware resources, improved test efficiency and accuracy, and provided more in -depth and comprehensive test coverage.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119341937A_ABST
    Figure CN119341937A_ABST
Patent Text Reader

Abstract

The invention provides a network card testing method and system, electronic equipment and a medium, belongs to the technical field of network card testing, and aims to solve the problems that a traditional network card testing mode cannot provide a complete virtualization testing scheme, is difficult to adapt to intelligent network card testing requirements and needs too many hardware resources. The method comprises the following steps: in response to a network card test request, determining a target mirror image container from the virtual platform; the target mirror image container represents an independent test environment; determining a network card test model according to the target mirror image container; performing a virtualization test on the dual-port intelligent network card according to the network card test model to obtain test data; processing the test data through the hardware layer to obtain a processing result; and transmitting the processing result to the virtual platform through a virtual network card interface corresponding to a dual-port intelligent network card on the dual-node type server.
Need to check novelty before this filing date? Find Prior Art

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, system, electronic equipment and medium. Background Art

[0002] With the development of virtualization technology in public clouds and the rise of SDN (Software-Defined Networking) technology, higher requirements have been placed on the end system protocol stack, and smart network card technology has begun to enter the public eye.

[0003] The traditional NIC testing method is generally to use two servers, each of which is equipped with the smart NIC to be tested, and connect to the switch to perform packet testing, performance testing, etc. However, this NIC testing method cannot provide a complete virtualization testing solution, and it is difficult to adapt to the smart NIC testing requirements, and there are technical limitations. Summary of the invention

[0004] In order to overcome the problems existing in the related art, the present disclosure provides a network card testing method, system, electronic device and medium. The technical solution of the present disclosure is as follows:

[0005] According to a first aspect of an embodiment of the present disclosure, a network card testing method is provided, which is applied to a network card testing system. The network card testing system includes a virtual platform and a hardware layer. The hardware layer includes a dual-node model server. A dual-port smart network card is installed on the dual-node model server. Different image containers are deployed in the virtual platform, including:

[0006] In response to the network card test request, determining a target image container from the virtual platform; the target image container represents an independent test environment;

[0007] Determine a network card test model according to the target image container;

[0008] According to the network card test model, a virtualization test is performed on the dual-port smart network card to obtain test data;

[0009] Processing the test data through the hardware layer to obtain a processing result;

[0010] The processing result is transmitted to the virtual platform through the virtual network card interface corresponding to the dual-port smart network card on the dual-node model server.

[0011] Optionally, the virtual platform includes a virtual switch; the virtual switch includes test software and multiple virtual network cards;

[0012] The determining of the network card test model according to the target image container includes:

[0013] The target image container runs the 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 performing virtualization test on the dual-port smart network card according to the network card test model includes:

[0016] According to the target virtual network card and the virtual switch, the test software performs a virtualization test on the dual-port smart network card based on the network card test model.

[0017] Optionally, the image container is configured through the following steps, including:

[0018] Install container software and test software;

[0019] The test software is compiled to obtain a test tool, wherein the test tool includes test parameters of each network card;

[0020] Perform mapping operations through the container software to obtain various image containers; the mapping operations include: mapping device directories, mapping memory, mapping node information, and mapping device files;

[0021] Copying the test tool into the image container;

[0022] 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.

[0023] Optionally, it also includes:

[0024] According to the processing result, a virtualization test result is obtained;

[0025] The test result is transmitted to an image container different from the target image container.

[0026] Optionally, the hardware layer further includes a switch; the server node of the dual-node server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card; the switch port of the switch is dynamically linked with the network card interface;

[0027] The test data is processed by the hardware layer to obtain a processing result, including:

[0028] 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 smart 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 smart network card to obtain a processing result;

[0030] Transmitting the processing result to the virtual platform includes:

[0031] The dual-port smart network card transmits the processing result to the second switch binding port of the switch through a second virtual network card interface located on the same server node as the first virtual network card interface;

[0032] The second switch binds a port to transmit the processing result to the virtual platform;

[0033] After the dynamic link aggregation operation is performed on the switch port, the first switch binding port and the second switch binding port are obtained.

[0034] Optionally, the server node of the dual-node model server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card, including:

[0035] The two network card interfaces of the dual-port smart network card are respectively configured on the two server nodes of the dual-node model server;

[0036] Performing a virtual operation on the network card interface of the dual-port smart network card to obtain a virtual network card interface; the number of virtual network card interfaces corresponding to any of the network card interfaces 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 mapped to different nodes of the server, so that a virtual network card interface corresponding to each network card interface is integrated on the server node of the dual-node server.

[0038] Optionally, the switch port of the switch and the network card interface dynamically aggregate links, including:

[0039] On the server side, create a first binding interface and name the first binding interface;

[0040] Add each network card interface of the dual-port smart network card corresponding to the server to the first binding interface;

[0041] On the switch side, create each second binding interface and name the second binding interface;

[0042] Adding each of the switch ports to a second binding interface respectively; the second binding interface includes at least two of the switch ports;

[0043] Determine the second binding interface as a switch binding port;

[0044] Each of the switch binding ports is added to a bridging domain; the bridging domain allows each of the switch binding ports to communicate within the same network layer.

[0045] According to a second aspect of an embodiment of the present disclosure, a network card testing system is provided, comprising: a virtual platform and a hardware layer;

[0046] Wherein, different image containers are deployed in the virtual platform, and the image container represents an independent test environment. The virtual platform is used to provide a network card test model, and based on the network card test model, a virtualization test is performed on the dual-port smart network card to obtain test data;

[0047] The hardware layer includes a dual-node model server, on which a dual-port smart network card is installed; the hardware layer is used to process the test data and transmit the processing results to the virtual platform through the virtual network card interface corresponding to the dual-port smart network card on the dual-node model server.

[0048] According to a third aspect of an embodiment 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, wherein when the computer program is executed by the processor, the steps of the network card testing method described in the first aspect are implemented.

[0049] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the network card testing method described in the first aspect are implemented.

[0050] According to a fifth aspect of an embodiment of the present disclosure, a computer program product is provided, including a computer program, and when the computer program is executed by a processor, the steps of the network card testing method described in the first aspect are implemented.

[0051] The present disclosure can flexibly support a variety of test scenarios and configurations to meet diverse test needs by deploying different image containers on a virtual platform. At the same time, with the continuous development of smart network card technology, the test platform can easily expand new test models and images, maintain the advanced nature of test capabilities, and ensure 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 cost increase caused by the need for multiple servers and switches in traditional testing methods, and only requires a dual-node model server equipped with a dual-port smart network card to perform network card testing on the smart network card. By defining the image container to determine the corresponding network card test model, the test process can be automated, and the test efficiency and accuracy can be improved. In view of the special functions and performance requirements of smart network cards, customized test models and image containers can be used to provide deeper and more comprehensive test coverage. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the drawings required for use in the description of the embodiments of the present disclosure will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0053] Figure 1 is a schematic diagram of the steps of a network card testing method shown in an embodiment of the present disclosure;

[0054] Figure 2 is a schematic diagram of a KVM virtual machine shown in an embodiment of the present disclosure;

[0055] Figure 3 is a schematic diagram of a VMware virtual machine shown in an embodiment of the present disclosure;

[0056] Figure 4 is a schematic diagram of a virtual switch shown in an embodiment of the present disclosure;

[0057] Figure 5 is a schematic diagram of a virtual platform shown in an embodiment of the present disclosure;

[0058] Figure 6 is a schematic diagram of a hardware layer configuration shown in an embodiment of the present disclosure;

[0059] Figure 7 It is a schematic diagram of the overall architecture of a network card testing system shown in an embodiment of the present disclosure;

[0060] Figure 8 It is a schematic diagram of an electronic device shown in an embodiment of the present disclosure. DETAILED DESCRIPTION

[0061] The following will be combined with the drawings in the embodiments of the present disclosure to clearly and completely describe the technical solutions in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, rather than all of the embodiments. Based on the embodiments in the present disclosure, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present disclosure.

[0062] The terms "first", "second", etc. 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 interchangeable when appropriate, 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 the same type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other 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 have been put forward for the end system protocol stack, and traditional high-performance network cards have been unable to meet these requirements. For this reason, smart network card technology has begun to enter the public's field of vision. Smart network cards use customized chips, high-speed network interfaces and powerful software support, which can provide faster, safer and more reliable network connection and data transmission services for data centers and enterprise networks.

[0064] Smart NICs have the following advantages:

[0065] 1. Improve network performance: Smart network cards can achieve ultra-high data processing rates, throughput, and flow control efficiency by using dedicated chips and high-speed network interfaces, thereby improving network performance and response speed.

[0066] 2. Safe and reliable: Smart network cards can not only accelerate data transmission, but also provide better security functions and protection mechanisms, such as data encryption, access control, firewalls, etc., thereby enhancing the security and stability of the network.

[0067] 3. Support distributed storage and computing: Smart NICs 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] 4. Offloading network functions: Smart NICs are equipped with computing power that allows them to offload all network functions, security functions, and storage functions from the host server, thereby freeing up valuable processing power. For example, routing, network address translation, telemetry, load balancing, firewalls, and other functions can all be handled by Smart NICs, reducing the burden on the host server CPU.

[0069] 5. Virtualization, load balancing and data path optimization: Smart NICs can perform functions such as virtualization, load balancing and data path optimization to make the network more flexible and efficient.

[0070] Flexibility and programmability: Smart NICs 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, network card and other hardware resources. The nodes are relatively independent. The traditional network card testing method is generally through two servers, each server is equipped with a smart network card to be tested, connected to the switch for packet testing, performance testing, etc. However, it cannot provide a complete virtualization test solution, and it is difficult to adapt to the testing requirements of smart network cards, and there are technical limitations.

[0072] In order to solve the above technical problems, the present disclosure proposes a network card testing method, which can provide a complete virtualization testing solution for the smart network card and can be well adapted to the characteristics of the smart network card.

[0073] Figure 1 FIG. 1 is a schematic diagram of the steps of a network card testing method shown in an embodiment of the present disclosure. Figure 1 As shown, the network card testing system includes a virtual platform and a hardware layer. The hardware layer includes a dual-node model server. A dual-port smart network card is installed on the dual-node model server. Different image containers are deployed in the virtual platform.

[0074] The NIC test system is a platform that integrates multiple test resources and technologies and supports virtualized testing, such as image containers. The virtual platform is a component of the NIC test system, which uses virtualization technology to create and manage multiple isolated test environments. Each environment corresponds to a different image container, which contains the applications, libraries, and configurations required for the test. By deploying different image containers to simulate different test environments, the effect of test environment isolation can be achieved.

[0075] The dual-node server includes two server nodes, each of which is independent of each other and can use a dual-port smart network card to independently perform network card testing, and can provide redundant configuration to prevent single point failures.

[0076] The network card testing method may specifically include the following steps:

[0077] Step S11: in response to the network card test request, determining a target image container from the virtual platform; the target image container represents an independent test environment.

[0078] When a test request for a dual-port smart NIC is initiated, the NIC test system receives the NIC test request. The NIC test request is parsed to obtain specific test parameters and determine the test scenario and test target. The NIC test system selects one or more suitable image containers from the virtual platform and uses these image containers as target image containers for testing the current dual-port smart NIC. Any target image container corresponds to the test environment and test tools required for the test.

[0079] Load and start the target image container to create an independent test environment in the virtual platform.

[0080] Each image container can be managed by a virtual machine, and the virtual machine can be a KVM virtual machine or a VMware virtual machine.

[0081] Figure 2 Schematic diagram of a KVM virtual machine shown in an embodiment of the present disclosure. Figure 2 The figure shows the user interface of a virtual machine manager, through which users can manage and monitor multiple virtual machine instances. On the left side of the interface is the menu bar, which contains standard menu options such as "File", "Edit", "View", and "Help" for performing tasks such as file management, editing settings, view switching, and getting help. On the right side of the interface, multiple virtual machine instances and their current status are listed, including virtual machines including "Virtual Machine 1", "Virtual Machine 2", and "Virtual Machine 3".

[0082] Figure 3 Schematic diagram of a VMware virtual machine shown in an embodiment of the present disclosure. Figure 3 As shown in the figure, this is a page for adding a host to a VMware virtual machine. You can add a host to a VMware virtual machine and configure multiple properties, such as name and location, connection settings, host summary, assigned license, locking mode, resource pool, etc.

[0083] Step S12: Determine a network card test model according to the target image container.

[0084] After determining the target image container, the target image container independently tests the dual-port smart network card. Determine the test environment corresponding to each target image container. Determine the network card test model corresponding to each target image container based on the characteristics and test requirements of the target image container.

[0085] Step S13: Perform a virtualization test on the dual-port smart network card according to the network card test model to obtain test data.

[0086] The NIC test model includes various test parameters for testing the Smart NIC, such as specific network traffic patterns, load conditions, or other test parameters. Based on the test parameters corresponding to the NIC test model, the dual-port Smart NIC is virtualized tested. During the virtualization test, the NIC test system simulates various network scenarios and load conditions to observe the performance of the dual-port Smart NIC in different situations and collect relevant performance indicators and stability data.

[0087] During the virtualization test, monitor the test process and record the test data, including performance indicators, error logs, etc.

[0088] Step S14: Processing the test data through the hardware layer to obtain a processing result.

[0089] In the process of conducting a comprehensive virtualization test on the smart network card, the test contents of the virtualization test may 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 at the hardware level. The throughput test is used to measure the amount of data that the network card can process per unit time, that is, the data transmission speed. The delay test is used to evaluate the time required for data packets to be sent and received, reflecting the network card processing speed and network delay. The packet loss rate test is used to test the proportion of data packets lost by the network card under specific conditions, reflecting the network stability and reliability. The protocol compatibility test is used to verify whether the network card supports and correctly processes various network protocols to ensure 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 acts as the test control and management center, generating various test data according to the defined network card test model. The test data interacts with the hardware layer through virtualization technology. After the hardware layer captures each test data, it processes it according to the test requirements of the test data, such as forwarding, analysis, storage, etc., and generates processing results.

[0091] Step S15: The processing result is transmitted to the virtual platform through the virtual network card interface corresponding to the dual-port smart network card on the dual-node model server.

[0092] The processing results are transmitted back to the virtual platform, which comprehensively evaluates the performance of the Smart NIC based on these results and the preset performance indicators and evaluation criteria.

[0093] By adopting the embodiments of the present disclosure, the test environment is virtualized to reduce the dependence on physical resources and improve the test efficiency. The diverse image containers and test models provide a wealth of test scenarios and configurations, enhancing the comprehensiveness of the test. Accurate test models and comprehensive test scenarios ensure the accuracy and reliability of the test. Through the image container, the test environment can be deployed and built quickly and flexibly, 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 to ensure the smooth progress of the test. The hardware layer directly processes the test data of the smart network card, ensuring the accuracy and real-time nature of the data.

[0094] Among them, in an optional embodiment, the virtual platform includes a virtual switch; the virtual switch includes test software and multiple virtual network cards; determining the network card test model according to the target image container includes: the target image container runs the test tool provided by the test software; the test software determines the network card test model according to the test tool, and determines the target virtual network card according to the test tool; the virtual network card is used to simulate the corresponding network environment; performing a virtualization test on the dual-port smart 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 smart network card based on the network card test model.

[0095] Virtual switches can forward packets between image containers and between virtual machines and the physical network. Virtual switches allow network traffic to flow efficiently between different virtualized and physical network components while providing the necessary isolation and security. Figure 4 Schematic diagram of a virtual switch shown in an embodiment of the present disclosure. Figure 4 As shown in the figure, you can configure the virtual switch through the VMware virtual machine. You can configure the network connection settings of the virtual switch.

[0096] The test software may be DPDK (Data Plane Development Kit), which is an open source library and driver collection for accelerating user space packet processing and is used for network performance testing and benchmarking. The test software is used to measure the performance of data transmission between a virtual network card and a virtual switch.

[0097] A virtual NIC 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 FIG. 1 is a schematic diagram of a virtual platform shown in an embodiment of the present disclosure. Figure 5 As shown, 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 card is configured in the 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, which determines the corresponding network card test model according to the network card test parameters corresponding to each image container. The virtual network card interacts with the test software and the image container respectively.

[0099] Configure a virtual switch in the virtual platform, which is used to forward and process data packets. Through the communication of various image containers, virtual switches and 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 operating parameters of the test tool; according to the operation of the test tool, the test software determines the corresponding network card test model. The target virtual network card participating in the network card test can be determined by the operating parameters of the test tool. Different virtual network cards correspond to different network test environments.

[0101] The network card test parameters can be pre-set or configured by the user through the command line when performing virtualization testing on the dual-port smart network card.

[0102] In a specific implementation, when the test software is DPDK and the test tool is testpmd, the following are two examples of using the testpmd application of DPDK to define a network card test model:

[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 to be used from 48 to 64, -l 0-48: specifies the range of logical CPU cores to be used 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`: Enable interactive mode, allowing commands to be entered while running.

[0112] `--nb-cores`: Specifies the number of cores to use, limiting the number of cores actually used for forwarding.

[0113] `--txd` and `--rxd`: Specify the number of transmit and receive queues per port, respectively.

[0114] `--burst`: Specify the burst size of sent packets.

[0115] `--rxdpkt`: Specify the number of buffers per receive queue.

[0116] After determining the network card test model, the test software performs a virtualization test on the dual-port smart network card. The virtualization test of the dual-port smart network card executes the data transmission required in the virtualization test.

[0117] By adopting the embodiments of the present disclosure, the required test environment, including virtual switches, virtual network cards, etc., can be quickly configured and deployed through a virtual platform without waiting for or configuring physical hardware, and multiple network environments can be simulated on the same physical hardware, thereby improving the utilization rate 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 operations. Various parameters in the test process can be configured and adjusted as needed, thereby enhancing the controllability of the test.

[0118] Among them, in an optional embodiment, the image container is configured through the following steps, including: installing container software and test software; performing a compile operation through the test software to obtain a test tool; the test tool includes various test parameters; performing a mapping operation through the container software to obtain various image containers; the mapping operation includes: mapping device directory, mapping memory, mapping node information and mapping device files; copying the test tool to the image container; according to the network card test environment corresponding to the image container, configuring various network card test parameters in the test tool to obtain a test script corresponding to the image container.

[0119] Run the container software installation command to install the container software. After executing the installation command, you can run the container detection command to determine whether the installation is successful.

[0120] For example, if the container software used in the present disclosure is a Docker container, then execute the following command to install the container software:

[0121] #yuminstall-y docker-ce docker-ce-cli containerd.io–allowerasing Install container software

[0122] You can run the following command to check whether the Docker container is installed:

[0123] #docker info command to check whether the installation is successful

[0124] Run the test software installation command to install the test software. Select the compilation platform for the test software. After the compilation platform is selected, compile the test software.

[0125] After compiling the test software, a test tool is obtained, which includes various test parameters. When performing a network card test, various test parameters in the test tool need to be configured. For example, when the test software is DPDK, the test tool is the compiled testpmd.

[0126] After installing the container software, you need to create each container instance through the container software, that is, the image container in this disclosure. First, pull the image file, which can be centos.

[0127] After pulling the image file, the container software performs a mapping operation to obtain an image container. The mapping operation enables the container to access resources in the host or network while maintaining resource isolation and avoiding resource conflicts. The following are the specific commands 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: creates a container, connects to the terminal, and runs in the background; --privileged: increases system permissions; -v / sys / bus / pci / devices: / sys / bus / pci / devices: passes the SR-IOV virtual machine network card directly to the container; -v / sys / kernel / mm / hugepages: / sys / kernel / mm / hugepages: mounts large page memory into the container; -v / sys / devices / system / node: / sys / devices / system / node: mounts numa node information into the container; -v / dev: / dev: mounts the igb_uio driver into 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 the corresponding network card test model is generated by the test software to perform virtualization testing of the dual-port smart network card.

[0135] The test tool includes various network card test parameters, which can be configured to formulate a personalized dual-port smart network card test strategy. The various network card test parameters can be configured in advance according to the network card test environment corresponding to the image container, and a test script corresponding to the image container can be obtained, and the image container can access the corresponding test script. When any image container runs the test software, various test parameters are obtained from the test script, and there is no need to configure each network card test parameter during the test. The network card test parameters may include: test objectives, hardware resources, test environment, etc.

[0136] By using the embodiments of the present disclosure, container software and test software are automatically installed, reducing the complexity and error rate of manual deployment. It allows the rapid creation of multiple image containers, each of which can run tests independently, 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, so that the test can accurately simulate the application behavior under actual network conditions, improving the accuracy and effectiveness of the test. 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 includes: 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, a series of data transmissions required for dual-port smart network card performance tests are performed based on the test data, such as throughput, latency, 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] Among them, 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 parses the received test result data and extracts key performance indicators, such as throughput, latency, etc. According to the preset evaluation criteria or algorithms, the performance of the dual-port smart network card is comprehensively evaluated to obtain the virtualization test results. The virtualization test results can be converted into a specific data format or protocol for subsequent processing and transmission.

[0141] The virtual platform identifies another image container that is different from the target image container as the recipient of the virtualization test results. Through the communication mechanism between containers, the virtualization test results are transmitted to the specified image container. In the receiving image container, the virtualization test results are 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 packets processed per second (PPS) and the test packet length at the receiving end. The receiving bandwidth of the current network can be calculated based on the number of packets processed per second and the test packet length at the receiving end, thereby determining the performance of the dual-port smart network card in the network card test environment corresponding to the target image container. The following calculation formula can be used to specifically calculate the bandwidth:

[0143] PPS×packet length×8bit / B×10-9=Bandwidth

[0144] The test packet length can be 1400B. Combined with the test data, the current bandwidth can be obtained as follows:

[0145] 16036490pps×1400B×8bit / B×10-9≈179Gbp

[0146] By adopting the embodiments of the present disclosure, the test cycle is greatly shortened and the test efficiency is improved through automated testing and data transmission. The use of professional testing tools and stable data transmission channels ensures the accuracy and reliability of the test results. The test results are organized into a structured report and transmitted to a specified image container for subsequent analysis and utilization. Based on the virtualization test results, the performance of the dual-port smart network card can be optimized and improved to improve its performance in practical applications.

[0147] Figure 6 Schematic diagram of a hardware layer configuration shown in an embodiment of the present disclosure. Figure 6 As shown, the hardware layer also includes a switch; the server node of the dual-node model server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card; the switch port of the switch is dynamically linked with the network card interface.

[0148] The dual-port smart network card installed on the dual-node model server can be a Multi Host smart network card. The MultiHost smart network card can virtualize the actual network card interface to obtain multiple virtual network card interfaces under the computer system. Each virtual network card interface is configured to the node corresponding to the dual-node model server. Dynamic link aggregation operations are performed on each network card interface on the dual-node model server and the switch port on the switch, so that the switch port of the switch and the network card interface are dynamically linked. Bandwidth superposition and link redundancy can be achieved, thereby improving the efficiency and reliability of data transmission.

[0149] like Figure 6 As shown, the server node is configured with a virtual network card interface of a dual-port smart network card, for example, server node 0 is configured with virtual network card interface 0 and virtual network card interface 1, and server node 1 is configured with virtual network card interface 0 and virtual network card interface 1; the switch includes two switch binding ports, each of which includes multiple switch ports, and the switch port is a physical port on the switch. The switch and the dual-node model server exchange data through the virtual network card interface on the server side and the switch binding port on the switch side.

[0150] Among them, in an optional embodiment, the server node of the dual-node model server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card, including: performing virtual operations on the network card interface of the dual-port smart network card to obtain a virtual network card interface; the number of virtual network card interfaces corresponding to any of the network card interfaces 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 mapped to different nodes of the server, so that a virtual network card interface corresponding to each network card interface is integrated on the server node of the dual-node model server.

[0151] The two network card interfaces of the dual-port smart network card are respectively configured on the server nodes of the dual-node model server, and one server node is configured with one network card interface; the network card interface is the actual interface of the dual-port smart network card.

[0152] Determine the number of server nodes on a dual-node server. Perform virtual operations on the NIC interfaces on the dual-port smart NIC according to the number of server nodes. After performing virtual operations on any NIC interface, obtain the virtual NIC interface corresponding to the NIC interface. The number of virtual NIC interfaces corresponding to any NIC interface needs to be the same as the number of server nodes.

[0153] The virtual network card interfaces corresponding to the same network card interface are deployed on different server nodes respectively, so that each server node is configured with a complete set of virtual network card interfaces, and a complete set of virtual network card interfaces refers to a virtual network card interface corresponding to each network card interface configured on a server node.

[0154] By adopting the embodiments of the present disclosure, by virtualizing the network card interface of the smart network card according to the number of server nodes, it can be ensured that each node can obtain the necessary network resources. The virtual network card interface 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-scale data transmission. The virtual network card interface on each node is independent, which helps to achieve secure isolation of data. By 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 achieved.

[0155] Among them, in an optional embodiment, the switch port of the switch and the network card interface are dynamically linked, 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 model 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 respectively; 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 a bridging domain; the bridging domain allows each switch binding port to communicate within the same network layer.

[0156] To perform dynamic link aggregation on each network card interface on a dual-node server and the switch port on the switch, you need to configure them separately on the server side and the switch side, so as to achieve dynamic link aggregation between the switch port and the network card interface. Dynamic link aggregation can achieve the following: increase network bandwidth, reduce latency, and enhance the reliability and stability of data transmission.

[0157] On the server side, you need to create a virtual interface for binding, that is, the first binding interface, which serves as the aggregation point of multiple network card interfaces. Name the first binding interface for easy management and maintenance. Logically add multiple network card interfaces of the dual-port smart network card in the dual-node server to the previously created binding interface.

[0158] A switch port is a physical interface on a switch. On the switch side, multiple virtual interfaces for binding are created, namely, second binding interfaces. The switch ports on the switch are added to the corresponding second binding interfaces respectively. Each second binding interface includes at least two switch ports. Each second binding interface is named respectively, and the second binding interfaces are named differently from each other for easy management.

[0159] After completing the addition of the switch ports, confirm that these switch ports have been correctly aggregated into a logical bonded port, that is, the second bonded interface, and determine the second bonded interface as the switch bonded port. Add each switch bonded port to the bridge domain; the bridge domain is used to allow each switch bonded port to communicate within the same network layer.

[0160] In one scenario, the dynamic link aggregation between the switch port of the switch and the network card interface can be performed by the following code:

[0161] Server side:

[0162] Create the first bonding interface. 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] Add two network card interfaces to bond30:

[0165] #nmcli connection add type ethernet ifname ens30f0np0 master bond30

[0166] #nmcli connection add type ethernet ifname ens30f1np1 master bond30

[0167] Switch side:

[0168] To delete the switch port settings:

[0169] #nv unset interface swp1-32

[0170] Configure swp1 swp3 to bonding mode and add it 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] The switch applies the above configuration and checks the configuration

[0175] #nv config apply

[0176] By adopting the embodiments of the present disclosure, the performance of the entire network system can be significantly improved by configuring dynamic link aggregation on the server side and the switch side respectively. As business needs grow, more network card interfaces or switch ports can be easily added to the corresponding binding interface to meet higher network bandwidth and performance requirements. When a network failure occurs, the use of dynamic link aggregation technology makes it easier to locate the problem, and the failure recovery process will be faster and more efficient due to the existence of backup interfaces and redundant paths.

[0177] Among them, in an optional embodiment, the above-configured hardware layer can be used to implement the following method for processing virtualization tests at the hardware layer, processing the test data 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 smart 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 smart network card to obtain a processing result; transmitting the processing result to the virtual platform, including: the dual-port smart 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 a dynamic link aggregation operation on the switch port, the first switch binding port and the second switch binding port are obtained.

[0178] Based on the dynamic link aggregation of the switch port and the network card interface of the switch, 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 aggregated link. The transmitted network card interface needs to be dynamically linked with the switch port of the switch. If there is a network card interface that is not dynamically linked with the switch port, the first switch binding port does not transmit the test data to the network card interface.

[0180] For any NIC interface that receives test data, the test data will be transmitted to any virtual NIC interface corresponding to the NIC interface. The virtual NIC interface is configured on the server node of the dual-node server, and the test data is processed by the dual-port smart NIC on the server node. The server nodes of the dual-node server are independent of each other, and the reception and transmission of the same test data correspond to the same server node.

[0181] The dual-port smart network card obtains the test data through the first virtual network card interface, and processes the test data accordingly to obtain the test result of the test data. Specifically, the test data can be processed by the built-in processor and dedicated hardware acceleration unit of the dual-port smart network card, such as performing tasks such as data packet parsing, protocol processing, and flow control. The processing result can reflect the performance of the dual-port smart network card under specific test conditions.

[0182] The test result is sent to the switch through the second virtual network card interface in 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 obtained by virtualizing different network card interfaces. For example, the first virtual network card interface is obtained through network card interface A, and the second virtual network card interface is obtained through network card interface B.

[0183] A second switch binding port on the switch that is different from the first switch binding port receives the processing result and transmits the processing result to the virtual platform.

[0184] Using the embodiments of the present disclosure, the dynamic link aggregation operation binds multiple physical links or ports into one logical link, significantly improving the overall bandwidth. Dynamic link aggregation provides a link redundancy function. Even if some links fail, the remaining links can still maintain the continuity of data transmission, thereby improving the reliability of the network. After the dual-port smart network card processes the test data, it feeds back the test results to the switch through different virtual network card interfaces, realizing closed-loop processing of the test data, which helps to evaluate and optimize network performance. The nodes of the dual-node model server are independent of each other. The reception and transmission of the same test data correspond to the same server node, ensuring 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 Schematic diagram of the overall architecture of a network card test system shown in an embodiment of the present disclosure. Figure 7 As shown, it includes an image container, a virtual switch, a resource control center, a switch, and a dual-node server; the image container includes image container 1, image container 2, image container 3, and image container 4; the virtual switch includes four interaction interfaces, the interaction interfaces include interaction interface 1, interaction interface 2, interaction interface 3, and interaction interface 4, and data transmission between the virtual switch and the image container is realized 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, namely virtual network card interface 0 and virtual network card interface 1, and the virtual network card interface 0 or virtual network card interface 1 corresponding to the two server nodes respectively corresponds to the same network card interface.

[0187] The following Figure 7The network card testing system shown performs virtualization testing of dual-port smart network cards. In the case that image container 1 needs to perform virtualization testing of the dual-port smart network card, an interactive interface is determined from the virtual switch, such as interactive interface 1, and the network card test parameters corresponding to image container 1 are transmitted to the virtual switch; the virtual switch determines the network card test model through the network card test parameters, and performs virtualization testing on the dual-port smart network card through the network card test model; determines the test data generated in the virtualization test; transmits the test data to any switch binding port on the switch through the resource control center, such as switch binding port 1; switch binding port 1 transmits the test data again to each network card interface of the dual-port smart network card on the server; the network card interface receives the test data through the corresponding virtual network card interface, such as virtual network card interface 0 on server node 0 and virtual network card interface 1 on server node 1; on the server After receiving the test data, the virtual network card interface 0 on the server node 0 and the virtual network card interface 1 on the server node 1 process the test data 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 then transmits the test result to the virtual switch through the resource control center, and the virtual switch obtains a virtualization test result based on the processing result, and transmits the virtualization test result to any mirror container different from the mirror container 1, such as the mirror container 3.

[0188] The disclosed embodiment also provides a network card testing system, including: a virtual platform and a hardware layer;

[0189] Wherein, different image containers are deployed in the virtual platform, and the image container represents an independent test environment. The virtual platform is used to provide a network card test model, and based on the network card test model, a virtualization test is performed on the dual-port smart network card to obtain test data;

[0190] The hardware layer includes a dual-node model server, on which a dual-port smart network card is installed; the hardware layer is used to process the test data and transmit the processing results to the virtual platform through the virtual network card interface corresponding to the dual-port smart network card on the dual-node model server.

[0191] The present disclosure also provides an electronic device, referring to Figure 8 , Figure 8 Schematic diagram of an electronic device shown in an embodiment of the present disclosure. Figure 8As shown, the electronic device 800 includes: a memory 810 and a processor 820. The memory 810 and the processor 820 are connected via a bus communication. A computer program is stored in the memory 810. The computer program can be run on the processor 820 to implement the steps in the network card testing method disclosed in the embodiment of the present disclosure.

[0192] The embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the network card testing method disclosed in the embodiment of the present disclosure are implemented.

[0193] The embodiment of the present disclosure further provides a computer program product, including a computer program, and when the computer program is executed by a processor, the steps in the network card testing method disclosed in the embodiment of the present disclosure are implemented.

[0194] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the various embodiments can be referenced to each other.

[0195] Those skilled in the art will appreciate that the disclosed embodiments may be provided as methods, systems or computer program products. Therefore, the disclosed embodiments may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the disclosed embodiments may take 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 the flowcharts and / or block diagrams of the methods, electronic devices, and computer program products according to the embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing terminal device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing terminal device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0197] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing terminal device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0198] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal device so that a series of operating steps are executed on the computer or other programmable terminal device to produce a computer-implemented process, thereby providing instructions for executing on the computer or other programmable terminal device to implement the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0199] Although some embodiments of the present disclosure have been described, those skilled in the art may make additional changes and modifications to these embodiments once they have learned the basic creative concept. Therefore, the appended claims are intended to be interpreted as including the preferred embodiment and all changes and modifications that fall within the scope of the present disclosure.

[0200] The network card testing method, system, electronic device and medium provided by the present disclosure are introduced in detail above. The principles and implementation methods of the present disclosure are explained in this article using specific examples. The description of the above embodiments is only used to help understand the method of the present disclosure and its core idea. At the same time, for those skilled in the art, according to the idea of ​​the present disclosure, there will be changes in the specific implementation method and application scope. In summary, the content of this specification should not be understood as a limitation on the present disclosure.

Claims

1. A network card testing method, characterized in that: Applied to a network card test system, the network card test system includes a virtual platform and a hardware layer, the hardware layer includes a dual-node model server, a dual-port smart network card is installed on the dual-node model server, and different image containers are deployed in the virtual platform, including: In response to the network card test request, determining a target image container from the virtual platform; the target image container represents an independent test environment; Determine a network card test model according to the target image container; According to the network card test model, a virtualization test is performed on the dual-port smart network card to obtain test data; Processing the test data 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 dual-port smart network card on the dual-node model server.

2. The method according to claim 1, characterized in that The virtual platform includes a virtual switch; the virtual switch includes test software and multiple virtual network cards; The determining of the network card test model according to the target image container includes: The target image container runs the test tool provided by the test software; 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; The performing virtualization test on the dual-port smart 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 smart network card based on the network card test model.

3. The method according to claim 1, characterized in that The image container is configured through the following steps, including: Install container software and test software; The test software is compiled to obtain a test tool, wherein the test tool includes test parameters of each network card; Perform mapping operations through the container software to obtain various image containers; the mapping operations include: mapping device directories, mapping memory, mapping node information, and mapping device files; Copying the test tool 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.

4. The method according to claim 1, characterized in that Also includes: 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.

5. The method according to claim 1, characterized in that The hardware layer also includes a switch; the server node of the dual-node server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card; The switch port of the switch and the network card interface are dynamically linked together; The test data is processed by 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 smart 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 smart network card to obtain a processing result; Transmitting the processing result to the virtual platform includes: The dual-port smart network card transmits the processing result to the second switch binding port of the switch through a second virtual network card interface located on the same server node as the first virtual network card interface; The second switch binds a port to transmit the processing result to the virtual platform; After the dynamic link aggregation operation is performed on the switch port, the first switch binding port and the second switch binding port are obtained.

6. The method according to claim 5, characterized in that The server node of the dual-node model server integrates the virtual network card interface corresponding to each network card interface of the dual-port smart network card, including: Performing a virtual operation on the network card interface of the dual-port smart network card to obtain a virtual network card interface; the number of virtual network card interfaces corresponding to any of the network card interfaces 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 mapped to different nodes of the server, so that a virtual network card interface corresponding to each network card interface is integrated on the server node of the dual-node server.

7. The method according to claim 5, characterized in that The switch port of the switch and the network card interface dynamically aggregate links, including: On the server side, create a first binding interface and name the first binding interface; Add each network card interface of the dual-port smart network card corresponding to the dual-node model server to the first binding interface; On the switch side, create each second binding interface and name the second binding interface; Adding each of the switch ports to a second binding interface respectively; the second binding interface includes at least two of the switch ports; Determine the second binding interface as a switch binding port; Each of the switch binding ports is added to a bridging domain; the bridging domain allows each of the switch binding ports to communicate within the same network layer.

8. A network card testing system, characterized in that: include: Virtual platform and hardware layer; Wherein, different image containers are deployed in the virtual platform, and the image container represents an independent test environment. The virtual platform is used to provide a network card test model, and based on the network card test model, a virtualization test is performed on the dual-port smart network card to obtain test data; The hardware layer includes a dual-node model server, on which a dual-port smart network card is installed; the hardware layer is used to process the test data and transmit the processing results to the virtual platform through the virtual network card interface corresponding to the dual-port smart network card on the dual-node model server.

9. An electronic device, characterized in that: include: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the computer program is executed by the processor, the steps of the network card testing method according to any one of claims 1 to 7 are implemented.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the network card testing method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Network load test method, device, equipment and medium

    CN111404771A

  • Network card testing method based on virtualization scene

    CN112600723A

  • Container-based network card pressure test method and device

    CN113886153A

  • Virtualized artificial intelligence accelerator card function test method and grade evaluation method

    CN115794528A

  • Virtual network card binding redundancy function test method, system and device and medium

    CN116112412A