A PCIe switch chip compatibility test method, device and related equipment
By selecting multiple deployment types on the server host and executing the test program in two connection modes of the networked PCIe devices, the problem of low efficiency in PCIe switching chip compatibility testing is solved, fast and simplified compatibility testing is achieved, and improved Improve work efficiency.
Patent Information
- Application Number
- CN202410692304.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-31
- Publication Date
- 2024-09-03
- Estimated Expiration
- 2044-05-31
Smart Images

Figure CN118277177B
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of PCIe switch chip testing, and in particular to a PCIe switch chip compatibility testing method, device and related equipment. Background Art
[0002] PCIe (Peripheral Component Interconnect Express) is a high-speed serial bus technology used to connect various hardware devices in computer systems, such as graphics cards, network cards, and storage devices. It can be used to expand the PCIe channels provided by the CPU (Central Processing Unit) into more PCIe expansion interfaces. The PCIe protocol is similar to the OSI (Open Systems Interconnection) model of Ethernet. It is a layered protocol architecture and is divided into the transaction layer, data link layer, and physical layer. Each of these layers is divided into two parts: one part handles outbound (to be sent) information, and the other part handles inbound (received) information. In the PCIe architecture, data packets are used to transfer information between devices. Data packets are formed in the transaction layer and the data link layer to transmit information from the sending device to the receiving device.
[0003] However, in the prior art, the test efficiency of the compatibility test of the PCIe switch chip is low. Summary of the invention
[0004] Based on this, it is necessary to provide a PCIe switch chip compatibility testing method, device and related equipment that can improve testing efficiency in response to the above technical problems.
[0005] In a first aspect, the present application provides a PCIe switch chip compatibility testing method, the method comprising:
[0006] Select one or more deployment types from the multiple deployment types on the deployment main page according to user needs; the multiple deployment types include deploying GPU (Graphics Processing Unit), deploying HBA (Host Bus Adapter), deploying NIC (Network Interface Card), and deploying SSD (Solid State Driver);
[0007] In two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host, a test program is executed on the server host for each of the one or more deployment types and two test results are recorded;
[0008] Based on the results of the two tests, it is determined that the PCIe switch chip under test meets the compatibility requirements of the test networking PCIe devices.
[0009] In one of the embodiments, in two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host, a test program is executed on the server host for each of the one or more deployment types and two test results are recorded, including:
[0010] In a case where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested, executing a test program on the server host for each of the one or more deployment types and recording a first test result;
[0011] In the case where the test networking PCIe device is directly connected to the server host, a test program is executed on the server host for the deployment type and a second test result is recorded.
[0012] In one embodiment, determining, based on the two test results, whether the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device includes:
[0013] When there is no obvious difference between the first test result and the second test result, it is determined that the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
[0014] In one embodiment, the method further comprises:
[0015] In the software environment of the PCIe switch chip compatibility test, the PCIe switch chip to be tested is replaced to determine whether the replaced PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device.
[0016] In a second aspect, the present application also provides a PCIe switch chip compatibility testing device, the device comprising:
[0017] A selection module is used to select one or more deployment types from the multiple deployment types on the deployment main page according to user needs; the multiple deployment types include GPU deployment, HBA deployment, NIC deployment, and SSD deployment;
[0018] An execution module, used for executing a test program on the server host for each deployment type under one or more deployment types and recording two test results in two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host;
[0019] The determination module is used to determine whether the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device based on the two test results.
[0020] In a third aspect, the present application further provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the above-mentioned PCIe switch chip compatibility testing method when executing the computer program.
[0021] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, which implements the steps of the above-mentioned PCIe switch chip compatibility testing method when executed by a processor.
[0022] In a fifth aspect, the present application also provides a computer program product, which includes a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned PCIe switch chip compatibility testing method are implemented.
[0023] The above-mentioned PCIe switch chip compatibility test method, device and related equipment select one or more deployment types from the multiple deployment types on the deployment main page according to user needs, and then execute the test program on the server host for each of the one or more deployment types and record the test results twice in two cases: the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host. Finally, based on the two test results, it is determined that the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device. The PCIe switch chip compatibility test method of the present application supports one-click software deployment and one-click test execution throughout the process, greatly improving work efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 A schematic diagram of a flow chart of a PCIe switch chip compatibility testing method in an embodiment;
[0025] Figure 2 A schematic diagram of a flow chart of executing a test program and recording two test results in one embodiment;
[0026] Figure 3A schematic diagram of a process for determining whether a PCIe switch chip to be tested meets the compatibility requirements of a test networking PCIe device in one embodiment;
[0027] Figure 4 A structural block diagram of a PCIe switch chip compatibility testing device in one embodiment;
[0028] Figure 5 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0030] PCIe is a high-speed serial bus technology used to connect various hardware devices in a computer system, such as graphics cards, network cards, and storage devices that can be used to expand the PCIe channels provided by the CPU into more PCIe expansion interfaces. The PCIe protocol is similar to the OSI model of Ethernet. It is a layered protocol architecture and is divided into a transaction layer, a data link layer, and a physical layer. Each of these layers is divided into two parts: one part handles outbound (to be sent) information, and the other part handles inbound (received) information. In the PCIe architecture, data packets are used to transfer information between devices. Data packets are formed in the transaction layer and the data link layer to transmit information from the sending device to the receiving device. However, in the prior art, the test efficiency of the compatibility test of the PCIe switching chip is low. Based on this, an embodiment of the present application provides a PCIe switching chip compatibility test method to improve the above technical problems.
[0031] In one embodiment, Figure 1 The present invention is a flowchart of a PCIe switch chip compatibility test method provided in an embodiment of the present invention, and the method is applied to a server as an example for explanation. The method includes the following steps:
[0032] S101, selecting one or more deployment types from a plurality of deployment types on a deployment main page according to user needs.
[0033] Optionally, multiple deployment types include deploying a graphics processing unit GPU, deploying a host bus adapter HBA, deploying a network interface card NIC, and deploying a solid-state drive SSD. Users can select one or more of them for deployment according to personal needs to achieve their ultimate goal.
[0034] S102, in two cases where the test networking PCIe device is connected to the server host through the PCIe switching chip to be tested and when the test networking PCIe device is directly connected to the server host, execute a test program on the server host for each of one or more deployment types and record two test results.
[0035] Optionally, to perform a PCIe switch chip compatibility test, it is necessary to obtain the test results of two cases: one in which the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the other in which the test networking PCIe device is directly connected to the server host. The compatibility of the PCIe switch chip is analyzed based on the test results in these two cases.
[0036] S103: According to the two test results, it is determined that the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
[0037] Optionally, in the software environment of the PCIe switch chip compatibility test, the PCIe switch chip to be tested is replaced to determine whether the replaced PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device. That is, this method can be used to test whether the compatibility of various PCIe switch chips meets the compatibility requirements of the test networking PCIe device. On the contrary, if there is a significant difference between the two test results, it is determined that the PCIe switch chip to be tested does not meet the compatibility requirements of the test networking PCIe device.
[0038] In the above-mentioned PCIe switch chip compatibility test method, one or more deployment types are selected from the multiple deployment types on the deployment main page according to user needs, and then in the two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host, the test program is executed on the server host for each of the one or more deployment types and the test results are recorded twice. Finally, based on the two test results, it is determined that the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device. The PCIe switch chip compatibility test method of the present application supports one-click software deployment and one-click test execution throughout the process, which greatly improves work efficiency.
[0039] Based on the above embodiments, Figure 2 The steps for executing the test procedure and recording the results of the two tests are broken down and detailed. Figure 2 As shown, the implementation process includes the following:
[0040] S201, when the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested, execute a test program for each deployment type of one or more deployment types on the server host and record a first test result.
[0041] Optionally, a test procedure is executed for each of the one or more deployment types and a first test result is recorded.
[0042] S202, when the test networking PCIe device is directly connected to the server host, execute a test program on the server host for the deployment type and record a second test result.
[0043] Optionally, a test program is executed for the corresponding deployment type and a second test result is recorded.
[0044] It can be understood that this embodiment provides a possible way to execute the test program and record two test results. The method is simple and easy to operate, and lays a foundation for subsequent compatibility testing of the PCIe switch chip.
[0045] Based on the above embodiments, Figure 3 The steps for determining whether the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device are broken down and refined. Figure 3 As shown, the implementation process includes the following:
[0046] S301, when there is no obvious difference between the first test result and the second test result, determine that the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
[0047] Optionally, if there is no obvious difference between the first test result and the second test result, it means that adding the PCIe switch chip to be tested between the test networking PCIe device and the server host for a certain deployment type has almost no effect on the test results, that is, the two are compatible with the PCIe switch chip to be tested.
[0048] It can be understood that this embodiment provides a possible way to determine whether the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device. The method is simple and easy to operate, and lays the foundation for subsequent compatibility testing of the PCIe switch chip.
[0049] It should be noted that the above PCIe switch chip compatibility test method is performed in a PCIe switch chip compatibility test system. The PCIe switch chip compatibility test system in the present invention includes a use case arrangement layer, a test method layer, a software deployment layer, an environment adaptation layer, a software package management layer and a log management layer.
[0050] Among them, the use case orchestration layer is used for on-demand orchestration of user-level test cases. The system can preset multiple scenario-based test cases. At the same time, users can also schedule the API (Application Programming Interface) interface provided by the test method layer according to the requirements of different test scenarios and implement test case encapsulation by themselves.
[0051] The test method layer is used to provide the API interface required for PCIe switch chip compatibility testing. It can specify parameters such as PCIe device type, device model, number of tests, service type (for example, SSD read test, SSD write test, GPU bandwidth test, etc.) to meet the testing requirements of different device types and different application scenarios.
[0052] The software deployment layer is used to deploy the software required for PCIe switch chip compatibility testing, such as iperf and DPDK (Data Plane Development Kit) software required for NIC testing, fio software required for SSD testing, and multi-vendor adaptation testing tools required for GPU testing.
[0053] The environment adaptation layer is used to detect the CPU type and OS (Operating System) type used by the server, to select the correct software installation package, and to solve the problem that the PCIe switch chip is difficult to be compatible with many CPUs and OSes and has low efficiency.
[0054] The software package management layer is used to manage offline software installation sources for common Linux systems such as CentOS and Ubuntu, as well as software packages required for testing specific devices such as GPUs, and solve the problem of difficult deployment in the intranet offline environment.
[0055] The log management layer is used to record the log information of key nodes during the execution of the entire test system, providing effective data support for problem analysis and regression test verification.
[0056] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0057] Based on the same inventive concept, the embodiment of the present application also provides a PCIe switch chip compatibility test device for implementing the PCIe switch chip compatibility test method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more PCIe switch chip compatibility test device embodiments provided below can refer to the limitations of the PCIe switch chip compatibility test method above, and will not be repeated here.
[0058] In one embodiment, by Figure 4 FIG. 2 shows a structural block diagram of an embodiment. Figure 4 As shown, a PCIe switch chip compatibility test device 4 is provided, and the device 4 includes: a selection module 40, an execution module 41 and a determination module 42, wherein:
[0059] The selection module 40 is used to select one or more deployment types from the multiple deployment types on the deployment main page according to user needs; the multiple deployment types include deploying GPU, deploying HBA, deploying NIC and deploying SSD.
[0060] The execution module 41 is used to execute the test program for each of one or more deployment types on the server host and record two test results in two cases: the test networking PCIe device is connected to the server host through the PCIe switching chip to be tested and the test networking PCIe device is directly connected to the server host.
[0061] The determination module 42 is used to determine, based on the two test results, whether the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
[0062] The above-mentioned PCIe switch chip compatibility test device selects one or more deployment types from the multiple deployment types on the deployment main page according to user needs, and then executes the test program for each of the one or more deployment types on the server host and records the test results twice in two cases: the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host. Finally, based on the two test results, it is determined that the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device. The PCIe switch chip compatibility test device of the present application supports one-click software deployment and one-click test execution throughout the process, greatly improving work efficiency.
[0063] In one embodiment, the execution module 41 is specifically used for:
[0064] When the test networking PCIe device is connected to the server host through the PCIe switching chip to be tested, the test program is executed on the server host for each of the one or more deployment types and the first test result is recorded; when the test networking PCIe device is directly connected to the server host, the test program is executed on the server host for the deployment type and the second test result is recorded.
[0065] In one embodiment, the determination module 42 is specifically used for:
[0066] When there is no obvious difference between the first test result and the second test result, it is determined that the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
[0067] In one embodiment, the device 4 is specifically used for:
[0068] In the software environment of the PCIe switch chip compatibility test, the PCIe switch chip to be tested is replaced to determine whether the replaced PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device.
[0069] Each module in the above-mentioned PCIe switch chip compatibility test device can be implemented in whole or in part by software, hardware and their combination. Each of the above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the corresponding operations of each of the above modules.
[0070] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 5As shown. The computer device includes a processor, a memory, a network interface and a transceiver connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The transceiver of the computer device is used to perform operations of receiving data or sending data under the control of the processor. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data such as sample data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a PCIe switch chip compatibility test method is implemented.
[0071] Those skilled in the art will understand that Figure 5 The structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. Specifically, the computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0072] In one of the embodiments, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory. The principles and specific processes of implementing the embodiments by the processor can be found in the description of the PCIe switch chip compatibility test method embodiment in the aforementioned embodiment, which will not be repeated here.
[0073] In one of the embodiments, a computer-readable storage medium is provided on which a computer program is stored. When the computer program is executed by a processor, the principles and specific processes in each embodiment are implemented. Please refer to the description in the target detection method embodiment in the aforementioned embodiment, which will not be repeated here.
[0074] In one of the embodiments, a computer program product is provided, including a computer program. When the computer program is executed by a processor, the principles and specific processes of implementing the embodiments can be found in the description of the target detection method embodiment in the aforementioned embodiment, which will not be repeated here.
[0075] It should be noted that the information involved in this application (including but not limited to the deployment type, test results, etc. in this application) is information or data fully authorized by all parties.
[0076] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0077] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0078] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A PCIe switch chip compatibility test method, characterized in that: The method comprises: Select one or more deployment types from the multiple deployment types on the deployment main page according to user needs; the multiple deployment types include deploying a graphics processing unit GPU, deploying a host bus adapter HBA, deploying a network interface card NIC, and deploying a solid-state drive SSD; In two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host, executing a test program on the server host for each of the one or more deployment types and recording two test results; According to the two test results, determining that the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device; Wherein, in the two cases where the test networking PCIe device is connected to the server host through the PCIe switching chip to be tested and the test networking PCIe device is directly connected to the server host, executing a test program on the server host for each of the one or more deployment types and recording two test results, including: In a case where the test networking PCIe device is connected to a server host through the PCIe switch chip to be tested, executing a test program on the server host for each of the one or more deployment types and recording a first test result; In the case where the test networking PCIe device is directly connected to the server host, a test program is executed on the server host for the deployment type and a second test result is recorded.
2. The method according to claim 1, characterized in that Determining, based on the two test results, that the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device includes: When there is no obvious difference between the first test result and the second test result, it is determined that the PCIe switch chip to be tested meets the compatibility requirement of the test networking PCIe device.
3. The method according to claim 1, characterized in that The method further comprises: In the software environment of the PCIe switch chip compatibility test, the PCIe switch chip to be tested is replaced to determine whether the replaced PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device.
4. A PCIe switch chip compatibility test device, characterized in that: The device comprises: A selection module, used to select one or more deployment types from a plurality of deployment types on the deployment main page according to user needs; the plurality of deployment types include GPU deployment, HBA deployment, NIC deployment and SSD deployment; An execution module, configured to execute a test program for each of the one or more deployment types on the server host and record two test results in two cases where the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested and the test networking PCIe device is directly connected to the server host; A determination module, used to determine, based on the two test results, whether the PCIe switch chip to be tested meets the compatibility requirements of the test networking PCIe device; The execution module is used to execute a test program for each of the one or more deployment types on the server host and record a first test result when the test networking PCIe device is connected to the server host through the PCIe switch chip to be tested; In the case where the test networking PCIe device is directly connected to the server host, a test program is executed on the server host for the deployment type and a second test result is recorded.
5. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
7. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.
Citation Information
Patent Citations
Method and device for testing compatibility of server
CN104168160A
Production line test method, system, medium and equipment for PCIE Switch products
CN109445997A
SSD test method and system
CN110554936A
Multi-mode compatibility testing device for HSBP backboard and PCIE Switch
CN114062903A
PCIe Switch port test management method and device
CN114238000A
