CN115766549B - Antithetical couplet test method, device, electronic equipment and storage medium - Google Patents
Antithetical couplet test method, device, electronic equipment and storage medium Download PDFInfo
- Publication number
- CN115766549B CN115766549B CN202211336860.3A CN202211336860A CN115766549B CN 115766549 B CN115766549 B CN 115766549B CN 202211336860 A CN202211336860 A CN 202211336860A CN 115766549 B CN115766549 B CN 115766549B
- Authority
- CN
- China
- Prior art keywords
- data
- pci
- bandwidth value
- server
- bandwidth
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及数据传输技术领域,特别涉及一种对联测试方法、一种对联测试装置、一种电子设备和一种计算机可读存储介质。The present invention relates to the technical field of data transmission, and in particular to a couplet testing method, a couplet testing device, an electronic device and a computer-readable storage medium.
背景技术Background technique
服务器riser卡(转接卡/功能扩展卡)上往往安装有网卡、HCA(主机通道适配器)卡等PCI-E(Peripheral Component Interconnect-Express,高速串行计算机扩展总线标准)设备以实现通信及信息交互的作用。基于服务器设计的需求,需要对PCI-E设备进行性能压力测试才可加入服务器的部件清单中。在PCI-E设备的性能压力测试的考量标准中,主要是测试PCI-E设备的带宽速率。Server riser cards (adapter cards/function expansion cards) are often equipped with network cards, HCA (host channel adapter) cards and other PCI-E (Peripheral Component Interconnect-Express, a high-speed serial computer expansion bus standard) devices to achieve communication and information exchange. Based on the needs of server design, PCI-E devices need to be stress-tested before they can be added to the server's parts list. The performance stress test criteria for PCI-E devices mainly test the bandwidth rate of PCI-E devices.
在每次测试时,测试工程师需要将所要测试的PCI-E设备安装到一台服务器中,但要配合这款PCI-E设备的测试,测试工程师还需要搭建另一台服务器并安装同一款PCI-E设备,与其对联测试,这样的测试原则无疑加剧了工作量,测试情况的单一性,不符合在实际应用中的使用原则,不利于问题的发现。During each test, the test engineer needs to install the PCI-E device to be tested into a server. However, to cooperate with the test of this PCI-E device, the test engineer also needs to build another server and install the same PCI-E device to test it in conjunction with it. Such a testing principle undoubtedly increases the workload. The singleness of the test situation does not conform to the usage principles in actual applications and is not conducive to the discovery of problems.
发明内容Summary of the invention
鉴于上述问题,提出了本发明实施例以便提供一种克服上述问题或者至少部分地解决上述问题的对联测试方法。In view of the above problems, embodiments of the present invention are proposed to provide a couplet testing method that overcomes the above problems or at least partially solves the above problems.
本发明实施例还提供了一种对联测试装置、电子设备和存储介质,以保证上述方法的实施。The embodiment of the present invention also provides a couplet testing device, an electronic device and a storage medium to ensure the implementation of the above method.
为了解决上述问题,本发明实施例公开了一种对联测试方法,应用于服务端,所述服务端与交换机群组连接,所述服务端集成有多个第一服务器,所述多个第一服务器分别安装有多种类型的多个待对联PCI-E设备,所述多个待对联PCI-E设备分别具有一个或多个第一数据口,所述方法包括:In order to solve the above problems, an embodiment of the present invention discloses a pairing test method, which is applied to a server, the server is connected to a switch group, the server is integrated with a plurality of first servers, the plurality of first servers are respectively installed with a plurality of types of PCI-E devices to be paired, the plurality of PCI-E devices to be paired respectively have one or more first data ports, and the method comprises:
当第二服务器作为客户端接入所述交换机群组时,获取所述第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值;When the second server accesses the switch group as a client, obtaining a second bandwidth value of a second data port of the PCI-E device to be tested on the second server;
确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备;Determine a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested;
将所述多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值;Determine the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determine the first bandwidth value of each candidate first data port;
将所述第二数据口的第二带宽值依次与所述各个候选第一数据口的第一带宽值进行比较;Compare the second bandwidth value of the second data port with the first bandwidth values of each candidate first data port in sequence;
若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口;If the first bandwidth value is not less than the second bandwidth value, using the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port;
为所述第二数据口分配IP地址;Allocating an IP address to the second data port;
采用所述IP地址连接所述第二数据口和所述数据交互口,以使所述数据交互口对应的待对联PCI-E设备与所述待测试PCI-E设备进行对联测试。The second data port and the data exchange port are connected by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port is subjected to a coupling test with the PCI-E device to be tested.
可选地,所述多个第一服务器分别部署不同的第一系统环境;所述若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口,包括:Optionally, the multiple first servers are respectively deployed in different first system environments; if the first bandwidth value is not less than the second bandwidth value, using the candidate first data port corresponding to the first bandwidth value as the data interaction port of the second data port includes:
若所述第一带宽值不小于所述第二带宽值,则确定所述第二服务器部署的第二系统环境,以及确定所述第一带宽值对应的候选第一数据口处于的目标第一系统环境;If the first bandwidth value is not less than the second bandwidth value, determining a second system environment in which the second server is deployed, and determining a target first system environment in which the candidate first data port corresponding to the first bandwidth value is located;
判断所述目标第一系统环境是否与所述第二系统环境一致;Determining whether the target first system environment is consistent with the second system environment;
若所述目标第一系统环境与所述第二系统环境一致,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。If the target first system environment is consistent with the second system environment, the candidate first data port corresponding to the first bandwidth value is used as the data exchange port of the second data port.
可选地,所述确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备,包括:Optionally, the determining of a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested includes:
通过所述交换机群组接收所述第二服务器发送的数据包;receiving, through the switch group, a data packet sent by the second server;
将所述数据包分别下发到所述多个第一服务器;Sending the data packets to the multiple first servers respectively;
在各个第一服务器中,确定能够接收到所述数据包的待对联PCI-E设备;In each first server, determining a PCI-E device to be coupled that can receive the data packet;
将所述能够接收到所述数据包的待对联PCI-E设备确定为,与所述待测试PCI-E设备的类型匹配的目标待对联PCI-E设备。The PCI-E device to be paired that can receive the data packet is determined as a target PCI-E device to be paired that matches the type of the PCI-E device to be tested.
可选地,所述数据包包括带宽数据;所述确定各个候选第一数据口的第一带宽值,包括:Optionally, the data packet includes bandwidth data; and determining the first bandwidth value of each candidate first data port includes:
确定各个候选第一数据口所能接收所述带宽数据的带宽上限值;Determine an upper bandwidth limit value of each candidate first data port that can receive the bandwidth data;
确定所述各个候选第一数据口的状态;所述状态包括空闲状态和使用状态;Determine the state of each candidate first data port; the state includes an idle state and a used state;
若所述候选第一数据口处于空闲状态,则将所述带宽上限值作为所述候选第一数据口的第一带宽值;If the candidate first data port is in an idle state, using the bandwidth upper limit value as the first bandwidth value of the candidate first data port;
若所述候选第一数据口处于使用状态,则计算所述带宽上限值与被使用带宽值之间的差值,并将所述差值作为所述候选第一数据口的第一带宽值。If the candidate first data port is in use, the difference between the bandwidth upper limit value and the used bandwidth value is calculated, and the difference is used as the first bandwidth value of the candidate first data port.
可选地,所述方法还包括:Optionally, the method further comprises:
基于两两连接的所述第二数据口和所述数据交互口,向所述第二服务器传输测试工具,以使所述第二服务器采用所述测试工具部署测试环境;Based on the second data ports and the data exchange ports connected in pairs, transmitting the test tool to the second server, so that the second server deploys the test environment using the test tool;
在所述第二服务器部署完成测试环境后,启动针对所述待测试PCI-E设备的性能压力测试。After the second server completes the deployment of the test environment, a performance stress test for the PCI-E device to be tested is started.
可选地,所述方法还包括:Optionally, the method further comprises:
若所述第一带宽值小于所述第二带宽值,则不将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。If the first bandwidth value is smaller than the second bandwidth value, the candidate first data port corresponding to the first bandwidth value is not used as the data exchange port of the second data port.
可选地,所述方法还包括:Optionally, the method further comprises:
若所有的第一带宽值均小于所述第二带宽值,则确定反馈满足所述第二带宽值的第一数据口的剩余被使用时间。If all the first bandwidth values are smaller than the second bandwidth value, it is determined to feed back the remaining usage time of the first data port that satisfies the second bandwidth value.
本发明实施例还公开了一种对联测试装置,应用于服务端,所述服务端与交换机群组连接,所述服务端集成有多个第一服务器,所述多个第一服务器分别安装有多种类型的多个待对联PCI-E设备,所述多个待对联PCI-E设备分别具有一个或多个第一数据口,所述装置包括:The embodiment of the present invention further discloses a pairing test device, which is applied to a server end, the server end is connected to a switch group, the server end is integrated with a plurality of first servers, the plurality of first servers are respectively installed with a plurality of types of PCI-E devices to be paired, the plurality of PCI-E devices to be paired respectively have one or more first data ports, and the device comprises:
第二带宽值获取模块,用于当第二服务器作为客户端接入所述交换机群组时,获取所述第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值;A second bandwidth value acquisition module, configured to acquire a second bandwidth value of a second data port of a PCI-E device to be tested on the second server when the second server accesses the switch group as a client;
目标待对联PCI-E设备确定模块,用于确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备;A target PCI-E device to be coupled determination module is used to determine a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested;
第一带宽值确定模块,用于将所述多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值;A first bandwidth value determination module, configured to determine the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determine a first bandwidth value of each candidate first data port;
带宽值比较模块,用于将所述第二数据口的第二带宽值依次与所述各个候选第一数据口的第一带宽值进行比较;a bandwidth value comparison module, configured to compare the second bandwidth value of the second data port with the first bandwidth values of the candidate first data ports in sequence;
第一数据交互口确定模块,用于若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口;A first data exchange port determination module, configured to use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the first bandwidth value is not less than the second bandwidth value;
IP地址分配模块,用于为所述第二数据口分配IP地址;An IP address allocation module, used for allocating an IP address to the second data port;
连接模块,用于采用所述IP地址连接所述第二数据口和所述数据交互口,以使所述数据交互口对应的待对联PCI-E设备与所述待测试PCI-E设备进行对联测试。The connection module is used to connect the second data port and the data exchange port by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port can be coupled with the PCI-E device to be tested.
可选地,所述多个第一服务器分别部署不同的第一系统环境;所述第一数据交互口确定模块包括:Optionally, the multiple first servers are respectively deployed in different first system environments; and the first data interaction port determination module includes:
系统环境确定子模块,用于若所述第一带宽值不小于所述第二带宽值,则确定所述第二服务器部署的第二系统环境,以及确定所述第一带宽值对应的候选第一数据口处于的目标第一系统环境;a system environment determination submodule, configured to determine, if the first bandwidth value is not less than the second bandwidth value, a second system environment in which the second server is deployed, and determine a target first system environment in which the candidate first data port corresponding to the first bandwidth value is located;
判断子模块,用于判断所述目标第一系统环境是否与所述第二系统环境一致;A determination submodule, used to determine whether the target first system environment is consistent with the second system environment;
第一数据交互口确定子模块,用于若所述目标第一系统环境与所述第二系统环境一致,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。The first data exchange port determination submodule is configured to use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the target first system environment is consistent with the second system environment.
可选地,所述目标待对联PCI-E设备确定模块包括:Optionally, the target to-be-coupled PCI-E device determination module includes:
数据包接收子模块,用于通过所述交换机群组接收所述第二服务器发送的数据包;A data packet receiving submodule, configured to receive a data packet sent by the second server through the switch group;
数据包下发子模块,用于将所述数据包分别下发到所述多个第一服务器;A data packet sending submodule, used for sending the data packets to the multiple first servers respectively;
能够接收到数据包的待对联PCI-E设备确定子模块,用于在各个第一服务器中,确定能够接收到所述数据包的待对联PCI-E设备;A submodule for determining a PCI-E device to be paired that can receive a data packet, used to determine, in each first server, a PCI-E device to be paired that can receive the data packet;
目标待对联PCI-E设备确定子模块,用于将所述能够接收到所述数据包的待对联PCI-E设备确定为,与所述待测试PCI-E设备的类型匹配的目标待对联PCI-E设备。The target PCI-E device to be coupled determination submodule is used to determine the PCI-E device to be coupled that can receive the data packet as the target PCI-E device to be coupled that matches the type of the PCI-E device to be tested.
可选地,所述数据包包括带宽数据;所述第一带宽值确定模块包括:Optionally, the data packet includes bandwidth data; and the first bandwidth value determining module includes:
带宽上限值确定子模块,用于确定各个候选第一数据口所能接收所述带宽数据的带宽上限值;A bandwidth upper limit determination submodule, used to determine a bandwidth upper limit value that each candidate first data port can receive the bandwidth data;
状态确定子模块,用于确定所述各个候选第一数据口的状态;所述状态包括空闲状态和使用状态;A state determination submodule, used to determine the state of each candidate first data port; the state includes an idle state and a used state;
处于空闲状态的第一带宽值确定子模块,用于若所述候选第一数据口处于空闲状态,则将所述带宽上限值作为所述候选第一数据口的第一带宽值;a first bandwidth value determination submodule in an idle state, configured to use the bandwidth upper limit value as the first bandwidth value of the candidate first data port if the candidate first data port is in an idle state;
处于使用状态的第一带宽值确定子模块,用于若所述候选第一数据口处于使用状态,则计算所述带宽上限值与被使用带宽值之间的差值,并将所述差值作为所述候选第一数据口的第一带宽值。The first bandwidth value determination submodule in use is used to calculate the difference between the bandwidth upper limit value and the used bandwidth value if the candidate first data port is in use, and use the difference as the first bandwidth value of the candidate first data port.
可选地,所述装置还包括:Optionally, the device further comprises:
测试脚本传输模块,用于基于两两连接的所述第二数据口和所述数据交互口,向所述第二服务器传输测试工具,以使所述第二服务器采用所述测试工具部署测试环境;A test script transmission module, used for transmitting a test tool to the second server based on the second data port and the data interaction port connected in pairs, so that the second server deploys a test environment using the test tool;
性能压力测试启动模块,用于在所述第二服务器部署完成测试环境后,启动针对所述待测试PCI-E设备的性能压力测试。The performance stress test starting module is used to start the performance stress test for the PCI-E device to be tested after the second server completes the deployment of the test environment.
可选地,所述装置还包括:Optionally, the device further comprises:
第二数据交互口确定模块,用于若所述第一带宽值小于所述第二带宽值,则不将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。The second data exchange port determination module is configured to not use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the first bandwidth value is smaller than the second bandwidth value.
可选地,所述装置还包括:Optionally, the device further comprises:
剩余被使用时间确定模块,用于若所有的第一带宽值均小于所述第二带宽值,则确定反馈满足所述第二带宽值的第一数据口的剩余被使用时间。The remaining used time determination module is used to determine and feedback the remaining used time of the first data port that meets the second bandwidth value if all the first bandwidth values are smaller than the second bandwidth value.
本发明实施例还公开了一种电子设备,包括处理器、通信接口、存储器和通信总线,其中,所述处理器、所述通信接口以及所述存储器通过所述通信总线完成相互间的通信;The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;
所述存储器,用于存放计算机程序;The memory is used to store computer programs;
所述处理器,用于执行存储器上所存放的程序时,实现如本发明实施例所述的对联测试方法。The processor is used to implement the couplet testing method described in the embodiment of the present invention when executing the program stored in the memory.
本发明实施例还公开了一个或多个计算机可读介质,其上存储有指令,当由一个或多个处理器执行时,使得所述处理器执行如本发明实施例所述的对联测试方法。The embodiment of the present invention further discloses one or more computer-readable media on which instructions are stored. When executed by one or more processors, the processors execute the couplet testing method as described in the embodiment of the present invention.
与现有技术相比,本发明实施例包括以下优点:Compared with the prior art, the embodiments of the present invention have the following advantages:
在本发明实施例中,当第二服务器作为客户端接入交换机群组时,服务端获取第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值,然后确定与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备,将多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值,然后将第二数据口的第二带宽值依次与各个候选第一数据口的第一带宽值进行比较,若第一带宽值不小于第二带宽值,则将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口,接着为第二数据口分配IP地址,以采用IP地址连接第二数据口和数据交互口,以使数据交互口对应的待对联PCI-E设备与待测试PCI-E设备进行对联测试。本发明实施例通过将多个第一服务器集成到服务端,交换机群组作为中间介质,使得在性能压力测试中无需搭建多余的服务器,只需将待测试PCI-E设备接入到交换机群组,服务端自动获取待测试PCI-E设备的第二带宽值,自动匹配同类型且能够满足第二带宽值的目标待对联PCI-E设备,以将匹配到的两个PCI-E设备进行对联测试,从而大大缩减工作量,极大提升测试效率。In an embodiment of the present invention, when the second server accesses the switch group as a client, the server obtains the second bandwidth value of the second data port of the PCI-E device to be tested on the second server, and then determines a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested, determines the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determines the first bandwidth value of each candidate first data port, and then compares the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in sequence, if the first bandwidth value is not less than the second bandwidth value, then uses the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port, and then allocates an IP address to the second data port, so as to connect the second data port and the data exchange port by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupling test with the PCI-E device to be tested. The embodiment of the present invention integrates multiple first servers into the server end, and uses the switch group as an intermediate medium, so that there is no need to build extra servers in the performance stress test. It only needs to connect the PCI-E device to be tested to the switch group, and the server end automatically obtains the second bandwidth value of the PCI-E device to be tested, and automatically matches the target PCI-E device to be coupled that is of the same type and can meet the second bandwidth value, so as to perform a coupled test on the two matched PCI-E devices, thereby greatly reducing the workload and greatly improving the test efficiency.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
图1是本发明实施例提供的一种对联测试方法的步骤流程图;FIG1 is a flow chart of steps of a couplet testing method provided by an embodiment of the present invention;
图2是本发明实施例提供的另一种对联测试方法的步骤流程图;FIG2 is a flowchart of another method for testing couplets provided by an embodiment of the present invention;
图3是本发明实施例提供的第一服务器、交换机群组、第二服务器的交互示意图;3 is a schematic diagram of the interaction between a first server, a switch group, and a second server provided in an embodiment of the present invention;
图4是本发明实施例提供的一种对联测试装置的结构框图。FIG. 4 is a structural block diagram of a couplet testing device provided by an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
PCI-E属于高速串行点对点双通道高带宽传输,所连接的设备分配独享通道带宽,不共享总线带宽,主要支持主动电源管理、错误报告、端对端的可靠性传输、热插拔以及服务质量等功能。PCI-E is a high-speed serial point-to-point dual-channel high-bandwidth transmission. The connected devices are allocated exclusive channel bandwidth and do not share bus bandwidth. It mainly supports active power management, error reporting, end-to-end reliable transmission, hot plugging, and quality of service functions.
服务器通过安装PCI-E设备来实现通信及信息交互的作用。基于服务器设计的需求,需要对PCI-E设备进行性能压力测试才可加入服务器的部件清单中。在PCI-E设备的性能压力测试的考量标准中,主要是测试PCI-E设备的带宽速率。The server realizes the function of communication and information exchange by installing PCI-E devices. Based on the requirements of server design, PCI-E devices need to be subjected to performance stress testing before they can be added to the server's parts list. The performance stress test criteria of PCI-E devices mainly test the bandwidth rate of PCI-E devices.
现有的测试方法需要测试工程师搭配两台服务器进行测试,一台服务器作为服务端,另一台服务器作为客户端,将两台服务器对联。然而在每次测试时,测试工程师需要准备两款相同的PCI-E设备,分别安装到服务端和客户端,每次搭建服务端会浪费较多调试时间且需要准备多款相同的PCI-E设备,这样的测试原则无疑加剧了工作量,测试情况的单一性,不符合在实际应用中的使用原则,不利于问题的发现。The existing testing method requires the test engineer to pair two servers for testing, one server as the server and the other as the client, and connect the two servers. However, in each test, the test engineer needs to prepare two identical PCI-E devices and install them on the server and client respectively. Each time the server is built, a lot of debugging time is wasted and multiple identical PCI-E devices need to be prepared. Such testing principles undoubtedly increase the workload. The singleness of the test situation does not conform to the use principles in actual applications and is not conducive to the discovery of problems.
针对上述问题,本发明实施例提供了一种对联测试方法,本发明实施例通过将多个第一服务器集成到服务端,交换机群组作为中间介质,使得在性能压力测试中无需搭建多余的服务器,只需将待测试PCI-E设备接入到交换机群组,服务端自动获取待测试PCI-E设备的第二带宽值,自动匹配同类型且能够满足第二带宽值的目标待对联PCI-E设备,以将匹配到的两个PCI-E设备进行对联测试,从而大大缩减工作量,极大提升测试效率。In view of the above problems, an embodiment of the present invention provides a pair test method. The embodiment of the present invention integrates multiple first servers into a server, and uses a switch group as an intermediate medium, so that there is no need to build extra servers in the performance stress test. It is only necessary to connect the PCI-E device to be tested to the switch group. The server automatically obtains the second bandwidth value of the PCI-E device to be tested, and automatically matches the target PCI-E device to be paired that is of the same type and can meet the second bandwidth value, so as to perform pair test on the two matched PCI-E devices, thereby greatly reducing the workload and greatly improving the test efficiency.
参照图1,示出了本发明实施例提供的一种对联测试方法的步骤流程图,应用于服务端,所述服务端与交换机群组连接,所述服务端集成有多个第一服务器,所述多个第一服务器分别安装有多种类型的多个待对联PCI-E设备,所述多个待对联PCI-E设备分别具有一个或多个第一数据口,该方法具体可以包括如下步骤:1, a flowchart of a pairing test method provided by an embodiment of the present invention is shown, which is applied to a server, the server is connected to a switch group, the server is integrated with a plurality of first servers, the plurality of first servers are respectively installed with a plurality of types of PCI-E devices to be paired, the plurality of PCI-E devices to be paired respectively have one or more first data ports, and the method may specifically include the following steps:
步骤101,当第二服务器作为客户端接入所述交换机群组时,获取所述第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值。Step 101: When a second server is connected to the switch group as a client, a second bandwidth value of a second data port of a PCI-E device to be tested on the second server is obtained.
在本发明实施例中,应用于服务端,服务端集成有多个第一服务器,可以将高性能、高规格的服务器作为第一服务器。每个第一服务器均安装有多种类型的多个待对联PCI-E设备,可以将高带宽的PCI-E设备作为待对联PCI-E设备,比如可以将200G或200G以上带宽的PCI-E设备作为待对联PCI-E设备,由此可以按照高带宽兼容低带宽的测试策略,使得每个高带宽的待对联PCI-E设备可以同时接收多个低带宽的待测试PCI-E设备的带宽数据。其中,待对联PCI-E设备可以包括网卡和HCA卡,也即是每个第一服务器可以安装有多张网卡和多张HCA卡。In an embodiment of the present invention, it is applied to the server side, and the server side is integrated with multiple first servers, and high-performance, high-specification servers can be used as first servers. Each first server is installed with multiple types of PCI-E devices to be coupled, and high-bandwidth PCI-E devices can be used as PCI-E devices to be coupled. For example, PCI-E devices with a bandwidth of 200G or above can be used as PCI-E devices to be coupled. In this way, according to the test strategy of high bandwidth compatibility with low bandwidth, each high-bandwidth PCI-E device to be coupled can simultaneously receive bandwidth data of multiple low-bandwidth PCI-E devices to be tested. Among them, the PCI-E devices to be coupled can include network cards and HCA cards, that is, each first server can be installed with multiple network cards and multiple HCA cards.
网卡又称网络适配器(Network Interface Card,NIC)或网络接口卡,网络适配器的内核是链路层控制器,链路层控制器通常是实现许多链路层服务的单个特定目的的芯片,这些服务包括成帧,链路接入,流量控制,差错检测等。网络适配器是使计算机联网的设备,平常所说的网卡就是将PC(Personal Computer,个人计算机)和LAN连接的网络适配器。网卡插在计算机主板插槽中,负责将用户要传递的数据转换为网络上其它设备能够识别的格式,通过网络介质传输。A network card is also called a network adapter (NIC) or a network interface card. The core of a network adapter is a link layer controller, which is usually a single chip with a specific purpose to implement many link layer services, including framing, link access, flow control, error detection, etc. A network adapter is a device that connects a computer to a network. A network card is usually a network adapter that connects a PC (Personal Computer) to a LAN. A network card is inserted into a slot on a computer motherboard and is responsible for converting the data that the user wants to transmit into a format that can be recognized by other devices on the network and transmitted through the network medium.
HCA卡可应用于企业数据中心、高性能计算和嵌入式环境等领域,为服务器/存储的集群应用提供了高带宽、低延迟的解决方案。在集群数据库、并行应用、处理服务和高性能嵌入式I/O等应用中,HCA卡可使其性能实现最大程度的提高,缩短了操作周期,降低了资源损耗。在虚拟服务器环境下,ConnectX IB技术满足集群、通信、存储、I/O管理及增强性能等需求,简化了整个网络配置,这些芯片因其封装小巧,可以充分应用在刀片服务器上或主板设计中。HCA cards can be used in enterprise data centers, high-performance computing, and embedded environments, providing high-bandwidth, low-latency solutions for server/storage cluster applications. In applications such as cluster databases, parallel applications, processing services, and high-performance embedded I/O, HCA cards can maximize performance, shorten operation cycles, and reduce resource loss. In a virtual server environment, ConnectX IB technology meets the needs of clustering, communication, storage, I/O management, and enhanced performance, simplifying the entire network configuration. These chips can be fully used in blade servers or motherboard designs due to their compact packaging.
需要说明的是,网卡的性能指标评判标准可以包括带宽、吞吐量和延时等标准。其中,带宽是用来评估网络链路中的最大传输速率;吞吐量是用来评估单位时间内成功传输的数据量;延时是用来表示从网络中发出请求后,到远端响应的延迟时间。在不同的场景下,延时有不同的含义,例如,在请求连接的时候,比如TCP(Transmission ControlProtocol,传输控制协议)握手,代表连接的延时,而在普通的数据包的发送中,代表的是数据包来返的时间延时。在PCI-E设备的性能压力测试的考量标准中,主要是测试PCI-E设备的带宽性能。It should be noted that the performance index evaluation criteria of the network card may include bandwidth, throughput and latency. Among them, bandwidth is used to evaluate the maximum transmission rate in the network link; throughput is used to evaluate the amount of data successfully transmitted per unit time; latency is used to indicate the delay time from the request sent from the network to the remote response. In different scenarios, latency has different meanings. For example, when requesting a connection, such as TCP (Transmission Control Protocol) handshake, it represents the delay of the connection, and in the transmission of ordinary data packets, it represents the time delay of the data packet to and from. In the consideration criteria of the performance stress test of PCI-E devices, the bandwidth performance of PCI-E devices is mainly tested.
在本发明实施例中,服务端与交换机群组连接,可以通过将实验室的多个交换机级联到一起,得到交换机群组。其中,交换机群组作为中间介质,其作用能够为子网络中提供更多的连接端口,以便连接更多的服务器。一个交换机可以连接多个第一服务器,但是为了避免多个第一服务器连接同一个交换机争抢带宽资源,一个交换机可以对应连接一个第一服务器,此外还可以设置连接数量阈值,比如连接数量阈值设置为3个,那么一个交换机可以对应连接3个以内的第一服务器,本发明实施例对于交换机级联的数量不作出限定。In an embodiment of the present invention, the server is connected to a switch group, and the switch group can be obtained by cascading multiple switches in the laboratory together. The switch group serves as an intermediate medium, and its function is to provide more connection ports in the sub-network so as to connect more servers. A switch can be connected to multiple first servers, but in order to avoid multiple first servers connecting to the same switch competing for bandwidth resources, a switch can be connected to one first server. In addition, a connection quantity threshold can be set. For example, if the connection quantity threshold is set to 3, then a switch can be connected to no more than 3 first servers. The embodiment of the present invention does not limit the number of switch cascades.
在本发明实施例中,交换机群组不仅可以连接服务端,还可以连接客户端,客户端是需要测试的第二服务器。换言之,如果需要测试网卡,那么可以将网卡作为待测试PCI-E设备,将待测试PCI-E设备安装到第二服务器上,然后第二服务器作为客户端接入到交换机群组;如果需要测试HCA卡,那么可以将HCA卡作为待测试PCI-E设备,将待测试PCI-E设备安装到第二服务器上,然后第二服务器作为客户端接入到交换机群组。In the embodiment of the present invention, the switch group can not only connect to the server, but also connect to the client, and the client is the second server to be tested. In other words, if the network card needs to be tested, the network card can be used as the PCI-E device to be tested, and the PCI-E device to be tested can be installed on the second server, and then the second server can be connected to the switch group as a client; if the HCA card needs to be tested, the HCA card can be used as the PCI-E device to be tested, and the PCI-E device to be tested can be installed on the second server, and then the second server can be connected to the switch group as a client.
交换机群组可以通知服务端,由服务端针对该待测试PCI-E设备开展对联测试流程。其中,每个待对联PCI-E设备均具有一个或多个第一数据口,每个待测试PCI-E设备均具有一个或多个第二数据口。服务端可以先获取第二服务器上的待测试PCI-E设备的信息,待测试PCI-E设备的信息可以包括第二数据口的第二带宽值,第二带宽值是待测试PCI-E设备具有的每个第二数据口的所需带宽值,使得后续可以基于所需带宽值,在多个第一数据口中找到能够满足第二带宽值的待对联PCI-E设备,从而将匹配到的待测试PCI-E设备和待对联PCI-E设备进行对联测试。The switch group can notify the server, and the server will carry out a pair test process for the PCI-E device to be tested. Each PCI-E device to be tested has one or more first data ports, and each PCI-E device to be tested has one or more second data ports. The server can first obtain the information of the PCI-E device to be tested on the second server. The information of the PCI-E device to be tested can include the second bandwidth value of the second data port. The second bandwidth value is the required bandwidth value of each second data port of the PCI-E device to be tested, so that the PCI-E device to be tested that can meet the second bandwidth value can be found in multiple first data ports based on the required bandwidth value, so that the matched PCI-E device to be tested and the PCI-E device to be tested can be tested in pair.
步骤102,确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备。Step 102: determine a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested.
在本发明实施例中,第一服务器上有各种类型的待对联PCI-E设备,而多个第一服务器集成到服务端,因此需要在服务端找到与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备。示例性地,如果待测试PCI-E设备是网卡,那么需要在服务端找到属于网卡类型的多个目标待对联PCI-E设备;如果待测试PCI-E设备是HCA卡,那么需要在服务端找到属于HCA卡类型的多个目标待对联PCI-E设备。In an embodiment of the present invention, there are various types of PCI-E devices to be coupled on the first server, and multiple first servers are integrated into the server, so it is necessary to find multiple target PCI-E devices to be coupled that match the type of the PCI-E device to be tested on the server. For example, if the PCI-E device to be tested is a network card, then it is necessary to find multiple target PCI-E devices to be coupled that belong to the network card type on the server; if the PCI-E device to be tested is an HCA card, then it is necessary to find multiple target PCI-E devices to be coupled that belong to the HCA card type on the server.
步骤103,将所述多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值。Step 103: determine the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determine the first bandwidth value of each candidate first data port.
在本发明实施例中,找到同类型的多个目标待对联PCI-E设备后,每个目标待对联PCI-E设备均具有一个或多个第一数据口,因此可以将每个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口。其中,第二数据口与候选第一数据口是同一类型的数据口,比如待测试PCI-E设备是网卡,那么第二数据口和候选第一数据口均是网卡数据口;如果待测试PCI-E设备是HCA卡,那么第二数据口和候选第一数据口均是HCA卡数据口。In the embodiment of the present invention, after finding multiple target PCI-E devices of the same type to be coupled, each target PCI-E device to be coupled has one or more first data ports, so the first data port of each target PCI-E device to be coupled can be determined as a candidate first data port. The second data port and the candidate first data port are data ports of the same type, for example, if the PCI-E device to be tested is a network card, then the second data port and the candidate first data port are both network card data ports; if the PCI-E device to be tested is an HCA card, then the second data port and the candidate first data port are both HCA card data ports.
与第二数据口具有对应的第二带宽值一样,每个候选第一数据口也是具有对应的第一带宽值,由于候选第一数据口可能处于使用状态,也即是候选第一数据口此时可能被其他待测试PCI-E设备的第二数据口占用,即第一带宽值是实时变化的,因此服务端需要确定每个候选第一数据口此时的第一带宽值。Just as the second data port has a corresponding second bandwidth value, each candidate first data port also has a corresponding first bandwidth value. Since the candidate first data port may be in use, that is, the candidate first data port may be occupied by the second data port of other PCI-E devices to be tested, that is, the first bandwidth value changes in real time, the server needs to determine the first bandwidth value of each candidate first data port at this time.
步骤104,将所述第二数据口的第二带宽值依次与所述各个候选第一数据口的第一带宽值进行比较。Step 104: Compare the second bandwidth value of the second data port with the first bandwidth values of the candidate first data ports in sequence.
在本发明实施例中,可以依次遍历每个候选第一数据口,来将第二数据口的第二带宽值依次与每个候选第一数据口的第一带宽值进行比较,从而找到能够满足第二带宽值的候选第一数据口。In the embodiment of the present invention, each candidate first data port may be traversed in sequence to compare the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in sequence, thereby finding a candidate first data port that can meet the second bandwidth value.
步骤105,若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。Step 105: If the first bandwidth value is not less than the second bandwidth value, the candidate first data port corresponding to the first bandwidth value is used as the data exchange port of the second data port.
在本发明实施例中,如果第一带宽值不小于第二带宽值,即第一带宽值大于或等于第二带宽值,那么可以将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口;如果第一带宽值小于第二带宽值,那么可以无需将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口。In an embodiment of the present invention, if the first bandwidth value is not less than the second bandwidth value, that is, the first bandwidth value is greater than or equal to the second bandwidth value, then the candidate first data port corresponding to the first bandwidth value can be used as the data interaction port of the second data port; if the first bandwidth value is less than the second bandwidth value, then there is no need to use the candidate first data port corresponding to the first bandwidth value as the data interaction port of the second data port.
步骤106,为所述第二数据口分配IP地址。Step 106: assign an IP address to the second data port.
在本发明实施例中,找到第二数据口的数据交互口后,服务端可以为第二数据口分配IP地址,每个第二数据口均有独立的IP地址。这就像电脑一样,插网线会获取一个IP地址,这个IP地址是DHCP服务器给客户端主机自动分配的。DHCP(Dynamic HostConfiguration Protocol,动态主机配置协议)是一个局域网的网络协议,使用UDP协议工作,DHCP服务器除了可以给内部网络或网络服务供应商自动分配IP地址,还可以给用户或者内部网络管理员作为对所有计算机作中央管理的手段。In the embodiment of the present invention, after finding the data exchange port of the second data port, the server can assign an IP address to the second data port, and each second data port has an independent IP address. This is just like a computer. When you plug in a network cable, you will get an IP address. This IP address is automatically assigned to the client host by the DHCP server. DHCP (Dynamic Host Configuration Protocol) is a network protocol for a local area network that uses the UDP protocol. In addition to automatically assigning IP addresses to internal networks or network service providers, DHCP servers can also be used as a means of central management of all computers for users or internal network administrators.
服务端分配了IP地址才可以连通两个数据口,比如网卡测试中,第一服务器上的一张网卡A的两个数据口都有各自的IP地址,分别连接第二服务器上的一张网卡B的两个数据口,性能压力测试中,对联两个数据口的IP地址会有数据交互,所以必须要有互相连通的IP地址。The server can connect two data ports only after it has assigned an IP address. For example, in the network card test, the two data ports of a network card A on the first server have their own IP addresses, which are respectively connected to the two data ports of a network card B on the second server. In the performance stress test, the IP addresses of the two data ports will have data interaction, so there must be IP addresses that are connected to each other.
步骤107,采用所述IP地址连接所述第二数据口和所述数据交互口,以使所述数据交互口对应的待对联PCI-E设备与所述待测试PCI-E设备进行对联测试。Step 107: Use the IP address to connect the second data port and the data exchange port, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupled test with the PCI-E device to be tested.
在本发明实施例中,服务端为第二数据口分配IP地址后,服务端可以采用该IP地址去连接第二数据口和数据交互口,使得数据交互口对应的待对联PCI-E设备与待测试PCI-E设备可以进行对联测试。In an embodiment of the present invention, after the server allocates an IP address to the second data port, the server can use the IP address to connect the second data port and the data interaction port, so that the PCI-E device to be coupled corresponding to the data interaction port and the PCI-E device to be tested can be coupled to each other.
综上,在本发明实施例中,当第二服务器作为客户端接入交换机群组时,服务端获取第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值,然后确定与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备,将多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值,然后将第二数据口的第二带宽值依次与各个候选第一数据口的第一带宽值进行比较,若第一带宽值不小于第二带宽值,则将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口,接着为第二数据口分配IP地址,以采用IP地址连接第二数据口和数据交互口,以使数据交互口对应的待对联PCI-E设备与待测试PCI-E设备进行对联测试。本发明实施例通过将多个第一服务器集成到服务端,交换机群组作为中间介质,使得在性能压力测试中无需搭建多余的服务器,只需将待测试PCI-E设备接入到交换机群组,服务端自动获取待测试PCI-E设备的第二带宽值,自动匹配同类型且能够满足第二带宽值的目标待对联PCI-E设备,以将匹配到的两个PCI-E设备进行对联测试,从而大大缩减工作量,极大提升测试效率。In summary, in an embodiment of the present invention, when the second server accesses the switch group as a client, the server obtains the second bandwidth value of the second data port of the PCI-E device to be tested on the second server, and then determines a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested, determines the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determines the first bandwidth value of each candidate first data port, and then compares the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in turn, if the first bandwidth value is not less than the second bandwidth value, then uses the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port, and then allocates an IP address to the second data port, so as to connect the second data port and the data exchange port by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupling test with the PCI-E device to be tested. The embodiment of the present invention integrates multiple first servers into the server end, and uses the switch group as an intermediate medium, so that there is no need to build extra servers in the performance stress test. It only needs to connect the PCI-E device to be tested to the switch group, and the server end automatically obtains the second bandwidth value of the PCI-E device to be tested, and automatically matches the target PCI-E device to be coupled that is of the same type and can meet the second bandwidth value, so as to perform a coupled test on the two matched PCI-E devices, thereby greatly reducing the workload and greatly improving the test efficiency.
参照图2,示出了本发明实施例提供的另一种对联测试方法的步骤流程图,应用于服务端,所述服务端与交换机群组连接,所述服务端集成有多个第一服务器,所述多个第一服务器分别安装有多种类型的多个待对联PCI-E设备,所述多个待对联PCI-E设备分别具有一个或多个第一数据口,该方法具体可以包括如下步骤:2, a flowchart of another pairing test method provided by an embodiment of the present invention is shown, which is applied to a server, the server is connected to a switch group, the server is integrated with a plurality of first servers, the plurality of first servers are respectively installed with a plurality of types of PCI-E devices to be paired, the plurality of PCI-E devices to be paired respectively have one or more first data ports, and the method may specifically include the following steps:
步骤201,当第二服务器作为客户端接入所述交换机群组时,获取所述第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值。Step 201: When a second server accesses the switch group as a client, a second bandwidth value of a second data port of a PCI-E device to be tested on the second server is obtained.
在本发明实施例中,应用于服务端,服务端集成有多个第一服务器,每个第一服务器均是高性能、高规格的服务器。每个第一服务器均安装有多种类型的多个待对联PCI-E设备,每个待对联PCI-E设备均是高带宽的PCI-E设备,比如200G或200G以上带宽,按照高带宽兼容低带宽的测试策略,使得每个高带宽的待对联PCI-E设备可以同时接收多个低带宽的待测试PCI-E设备的带宽数据。其中,待对联PCI-E设备可以包括网卡和HCA卡,也即是每个第一服务器可以安装有多张网卡和多张HCA卡。In an embodiment of the present invention, it is applied to the server side, and the server side is integrated with multiple first servers, and each first server is a high-performance, high-specification server. Each first server is installed with multiple types of PCI-E devices to be coupled, and each PCI-E device to be coupled is a high-bandwidth PCI-E device, such as 200G or above bandwidth. According to the test strategy of high bandwidth compatibility with low bandwidth, each high-bandwidth PCI-E device to be coupled can simultaneously receive bandwidth data of multiple low-bandwidth PCI-E devices to be tested. Among them, the PCI-E devices to be coupled can include network cards and HCA cards, that is, each first server can be installed with multiple network cards and multiple HCA cards.
以网卡测试为例,当测试10G带宽数据口的网卡时,服务端上的网卡可以同时接收至少18个10G带宽数据口的数据来源(考虑数据损耗问题);当测试25G带宽数据口的网卡时,服务端上的网卡至少可以同时接收6个25G端口的数据来源(考虑数据损耗问题)。Taking the network card test as an example, when testing the network card with a 10G bandwidth data port, the network card on the server can simultaneously receive data sources from at least 18 10G bandwidth data ports (considering data loss issues); when testing the network card with a 25G bandwidth data port, the network card on the server can simultaneously receive data sources from at least 6 25G ports (considering data loss issues).
服务端与交换机群组连接,交换机群组可以通过级联多个交换机而得到,交换机群组作为中间介质,其作用能够为子网络中提供更多的连接端口,以便连接更多的服务器。其中,一个交换机可以连接一个或多个第一服务器,因此交换机群组可以连接多个第一服务器。The server is connected to a switch group, which can be obtained by cascading multiple switches. The switch group, as an intermediate medium, can provide more connection ports in the sub-network to connect more servers. Among them, one switch can be connected to one or more first servers, so the switch group can be connected to multiple first servers.
交换机群组不仅可以连接服务端,还可以连接客户端,客户端是需要测试的第二服务器。换言之,如果需要测试网卡,那么可以将网卡作为待测试PCI-E设备,将待测试PCI-E设备安装到第二服务器上,然后第二服务器作为客户端接入到交换机群组;如果需要测试HCA卡,那么可以将HCA卡作为待测试PCI-E设备,将待测试PCI-E设备安装到第二服务器上,然后第二服务器作为客户端接入到交换机群组。The switch group can not only connect to the server, but also to the client, which is the second server to be tested. In other words, if you need to test the network card, you can use the network card as the PCI-E device to be tested, install the PCI-E device to be tested on the second server, and then connect the second server to the switch group as a client; if you need to test the HCA card, you can use the HCA card as the PCI-E device to be tested, install the PCI-E device to be tested on the second server, and then connect the second server to the switch group as a client.
其中,每个待对联PCI-E设备均具有一个或多个第一数据口,每个待测试PCI-E设备均具有一个或多个第二数据口。参照图3,示出了本发明实施例提供的第一服务器、交换机群组、第二服务器的交互示意图,服务端集成有3个第一服务器,分别是第一服务器1、第一服务器2和第一服务器3,其中,第一服务器1安装有HCA卡1、网卡2和网卡3,第一服务器2安装有网卡4和HCA卡2,第一服务器3安装有HCA卡3、HCA卡4和网卡5;进一步地,HCA卡1具有第一数据口a~b,网卡2具有第一数据口c,网卡3具有第一数据口d~f,网卡4具有第一数据口g~h,HCA卡2具有第一数据口i~j,HCA卡3具有第一数据口k~l,HCA卡4具有第一数据口m~n,网卡5具有第一数据口o~q。当需要测试网卡1时,可以将网卡1作为待测试PCI-E设备,然后将待测试PCI-E设备安装到第二服务器,第二服务器作为客户端接入到交换机群组,其中,网卡1具有第二数据口X~Y。Wherein, each PCI-E device to be coupled has one or more first data ports, and each PCI-E device to be tested has one or more second data ports. Referring to FIG3, an interactive schematic diagram of a first server, a switch group, and a second server provided in an embodiment of the present invention is shown, and the server integrates three first servers, namely, a first server 1, a first server 2, and a first server 3, wherein the first server 1 is installed with an HCA card 1, a network card 2, and a network card 3, the first server 2 is installed with a network card 4 and an HCA card 2, and the first server 3 is installed with an HCA card 3, an HCA card 4, and a network card 5; further, the HCA card 1 has first data ports a to b, the network card 2 has a first data port c, the network card 3 has a first data port d to f, the network card 4 has a first data port g to h, the HCA card 2 has a first data port i to j, the HCA card 3 has a first data port k to l, the HCA card 4 has a first data port m to n, and the network card 5 has a first data port o to q. When the network card 1 needs to be tested, the network card 1 can be used as a PCI-E device to be tested, and then the PCI-E device to be tested is installed on the second server, and the second server is connected to the switch group as a client, wherein the network card 1 has second data ports X to Y.
服务端可以先获取第二服务器上的待测试PCI-E设备的信息,待测试PCI-E设备的信息可以包括第二数据口的第二带宽值,第二带宽值是待测试PCI-E设备具有的每个第二数据口的所需带宽值,使得后续可以基于所需带宽值,在多个第一数据口中找到能够满足第二带宽值的待对联PCI-E设备,从而将匹配到的待测试PCI-E设备和待对联PCI-E设备进行对联测试。The server may first obtain information about the PCI-E device to be tested on the second server. The information about the PCI-E device to be tested may include a second bandwidth value of the second data port. The second bandwidth value is a required bandwidth value of each second data port of the PCI-E device to be tested, so that a PCI-E device to be coupled that can meet the second bandwidth value can be found in multiple first data ports based on the required bandwidth value, thereby performing a coupled test on the matched PCI-E device to be tested and the PCI-E device to be coupled.
步骤202,确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备。Step 202: determine a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested.
在本发明实施例中,第一服务器上有各种类型的待对联PCI-E设备,而多个第一服务器集成到服务端,因此需要在服务端找到与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备。示例性地,如果待测试PCI-E设备是网卡,那么需要在服务端找到属于网卡类型的多个目标待对联PCI-E设备;如果待测试PCI-E设备是HCA卡,那么需要在服务端找到属于HCA卡类型的多个目标待对联PCI-E设备。In an embodiment of the present invention, there are various types of PCI-E devices to be coupled on the first server, and multiple first servers are integrated into the server, so it is necessary to find multiple target PCI-E devices to be coupled that match the type of the PCI-E device to be tested on the server. For example, if the PCI-E device to be tested is a network card, then it is necessary to find multiple target PCI-E devices to be coupled that belong to the network card type on the server; if the PCI-E device to be tested is an HCA card, then it is necessary to find multiple target PCI-E devices to be coupled that belong to the HCA card type on the server.
本发明的一个可选实施例中,步骤202可以包括以下子步骤:In an optional embodiment of the present invention, step 202 may include the following sub-steps:
子步骤S11,通过所述交换机群组接收所述第二服务器发送的数据包;Sub-step S11, receiving a data packet sent by the second server through the switch group;
子步骤S12,将所述数据包分别下发到所述多个第一服务器;Sub-step S12, sending the data packets to the multiple first servers respectively;
子步骤S13,在各个第一服务器中,确定能够接收到所述数据包的待对联PCI-E设备;Sub-step S13, determining, in each first server, a PCI-E device to be coupled that can receive the data packet;
子步骤S14,将所述能够接收到所述数据包的待对联PCI-E设备确定为,与所述待测试PCI-E设备的类型匹配的目标待对联PCI-E设备。Sub-step S14, determining the PCI-E device to be paired that can receive the data packet as the target PCI-E device to be paired that matches the type of the PCI-E device to be tested.
在本发明实施例中,客户端只给同类型的PCI-E设备发送数据包。例如,如果客户端要测试网卡,那么客户端只给服务端上的网卡数据口发送数据包;如果客户端要测试HCA卡,那么客户端只给服务端上的HCA卡数据口发送数据包。因此可以通过客户端向不同的第一服务器发送数据包的形式,来查找与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备。In the embodiment of the present invention, the client only sends data packets to PCI-E devices of the same type. For example, if the client wants to test the network card, the client only sends data packets to the network card data port on the server; if the client wants to test the HCA card, the client only sends data packets to the HCA card data port on the server. Therefore, the client can send data packets to different first servers to find multiple target PCI-E devices to be paired that match the type of the PCI-E device to be tested.
在具体实现中,第二服务器作为客户端,通过交换机群组向服务端发送数据包,服务端将这些数据包分别下发到多个第一服务器,然后在每个第一服务器中,确定能够接收到这些数据包的待对联PCI-E设备,从而将能够接收到这些数据包的待对联PCI-E设备确定为目标待对联PCI-E设备,目标待对联PCI-E设备即是与待测试PCI-E设备具有相同类型的待对联PCI-E设备。In a specific implementation, the second server acts as a client and sends data packets to the server through a switch group. The server sends these data packets to multiple first servers respectively, and then in each first server, determines the PCI-E device to be coupled that can receive these data packets, thereby determining the PCI-E device to be coupled that can receive these data packets as the target PCI-E device to be coupled, and the target PCI-E device to be coupled is a PCI-E device to be coupled that is of the same type as the PCI-E device to be tested.
在一种示例中,如图3所示,在客户端开始测试时,可以运行压力测试脚本,第二服务器向第一服务器1发送1个小时的数据包,然后向第一服务器2发送1个小时的数据包,然后向第一服务器3发送1个小时的数据包……以这种测试原则,在客户端运行压力测试脚本12个小时以上,向不同的第一服务器以1小时为时间界限发送数据包进行测试。In one example, as shown in FIG3 , when the client starts testing, the stress test script can be run, and the second server sends data packets to the first server 1 for one hour, then sends data packets to the first server 2 for one hour, and then sends data packets to the first server 3 for one hour… Based on this test principle, the stress test script is run on the client for more than 12 hours, and data packets are sent to different first servers with a time limit of one hour for testing.
由图3可知,第二服务器上的待测试PCI-E设备是网卡类型,因此第一服务器1上的网卡2和网卡3可以接收到数据包,以及第一服务器2上的网卡4可以接收到数据包,以及第一服务器3上的网卡5可以接收到数据包,因此网卡2~5均是与待测试PCI-E设备的类型匹配的目标待对联PCI-E设备。As can be seen from Figure 3, the PCI-E device to be tested on the second server is a network card type, so network card 2 and network card 3 on the first server 1 can receive data packets, and network card 4 on the first server 2 can receive data packets, and network card 5 on the first server 3 can receive data packets, so network cards 2 to 5 are all target PCI-E devices to be coupled that match the type of the PCI-E device to be tested.
步骤203,将所述多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值。Step 203: determine the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determine the first bandwidth value of each candidate first data port.
在本发明实施例中,找到同类型的多个目标待对联PCI-E设备后,每个目标待对联PCI-E设备均具有一个或多个第一数据口,因此可以将每个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口。其中,第二数据口与候选第一数据口是同一类型的数据口,比如待测试PCI-E设备是网卡,那么第二数据口和候选第一数据口均是网卡数据口;比如待测试PCI-E设备是HCA卡,那么第二数据口和候选第一数据口均是HCA卡数据口。In the embodiment of the present invention, after finding multiple target PCI-E devices of the same type to be coupled, each target PCI-E device to be coupled has one or more first data ports, so the first data port of each target PCI-E device to be coupled can be determined as a candidate first data port. The second data port and the candidate first data port are data ports of the same type, for example, if the PCI-E device to be tested is a network card, then the second data port and the candidate first data port are both network card data ports; for example, if the PCI-E device to be tested is an HCA card, then the second data port and the candidate first data port are both HCA card data ports.
在一种示例中,如图3所示,网卡2~5均是与待测试PCI-E设备的类型匹配的目标待对联PCI-E设备,其中,网卡2具有第一数据口c,网卡3具有第一数据口d~f,网卡4具有第一数据口g~h,网卡5具有第一数据口o~q,因此第一数据口c、d、e、f、g、h、o、p、q均是候选第一数据口。In an example, as shown in Figure 3, network cards 2 to 5 are all target PCI-E devices to be paired that match the type of the PCI-E device to be tested, wherein network card 2 has a first data port c, network card 3 has first data ports d to f, network card 4 has first data ports g to h, and network card 5 has first data ports o to q, so the first data ports c, d, e, f, g, h, o, p, and q are all candidate first data ports.
与第二数据口具有对应的第二带宽值一样,每个候选第一数据口也是具有对应的第一带宽值,由于候选第一数据口可能处于使用状态,也即是候选第一数据口此时可能被其他待测试PCI-E设备的第二数据口占用,即第一带宽值是实时变化的,因此服务端需要确定每个候选第一数据口此时的第一带宽值。Just as the second data port has a corresponding second bandwidth value, each candidate first data port also has a corresponding first bandwidth value. Since the candidate first data port may be in use, that is, the candidate first data port may be occupied by the second data port of other PCI-E devices to be tested, that is, the first bandwidth value changes in real time, the server needs to determine the first bandwidth value of each candidate first data port at this time.
本发明的一个可选实施例中,所述数据包包括带宽数据;步骤203可以包括以下子步骤包括:In an optional embodiment of the present invention, the data packet includes bandwidth data; step 203 may include the following sub-steps:
子步骤S21,确定各个候选第一数据口所能接收所述带宽数据的带宽上限值;Sub-step S21, determining the upper limit of the bandwidth that each candidate first data port can receive the bandwidth data;
子步骤S22,确定所述各个候选第一数据口的状态;所述状态包括空闲状态和使用状态;Sub-step S22, determining the state of each candidate first data port; the state includes an idle state and a used state;
子步骤S23,若所述候选第一数据口处于空闲状态,则将所述带宽上限值作为所述候选第一数据口的第一带宽值;Sub-step S23, if the candidate first data port is in an idle state, using the bandwidth upper limit value as the first bandwidth value of the candidate first data port;
子步骤S24,若所述候选第一数据口处于使用状态,则计算所述带宽上限值与被使用带宽值之间的差值,并将所述差值作为所述候选第一数据口的第一带宽值。Sub-step S24: If the candidate first data port is in use, then the difference between the bandwidth upper limit value and the used bandwidth value is calculated, and the difference is used as the first bandwidth value of the candidate first data port.
在本发明实施例中,数据包可以包括带宽数据,每个第一服务器可以收集每一次的带宽数据,对这些带宽数据进行分析,确定出每个候选第一数据口所能接收带宽数据的带宽上限值,带宽上限值即是候选第一数据口所能接收的最大带宽数据,相当于最大接收数据值,因此可以将最大接收数据值作为候选第一数据口所能接收带宽数据的带宽上限值。In an embodiment of the present invention, a data packet may include bandwidth data. Each first server may collect bandwidth data each time, analyze the bandwidth data, and determine the bandwidth upper limit value of the bandwidth data that each candidate first data port can receive. The bandwidth upper limit value is the maximum bandwidth data that the candidate first data port can receive, which is equivalent to the maximum received data value. Therefore, the maximum received data value can be used as the bandwidth upper limit value of the bandwidth data that the candidate first data port can receive.
由于候选第一数据口可能被其他待测试PCI-E设备的第二数据口占用,所以服务端需要确定每个候选第一数据口的状态,其中,状态可以包括空闲状态和使用状态。Since the candidate first data port may be occupied by the second data port of other PCI-E devices to be tested, the server needs to determine the state of each candidate first data port, where the state may include an idle state and a used state.
如果候选第一数据口处于空闲状态,那么可以说明该候选第一数据口没有被其他待测试PCI-E设备的第二数据口占用,因此可以直接将带宽上限值作为该候选第一数据口的第一带宽值;如果候选第一数据口处于使用状态,那么可以说明该候选第一数据口被其他待测试PCI-E设备的第二数据口占用,因此需要计算该候选第一数据口的剩余带宽空间,剩余带宽空间可以通过该候选第一数据口的带宽上限值减去被使用带宽值,得到的差值作为该候选第一数据口的第一带宽值。If the candidate first data port is in an idle state, it can be explained that the candidate first data port is not occupied by the second data port of other PCI-E devices to be tested, so the bandwidth upper limit value can be directly used as the first bandwidth value of the candidate first data port; if the candidate first data port is in use, it can be explained that the candidate first data port is occupied by the second data port of other PCI-E devices to be tested, so it is necessary to calculate the remaining bandwidth space of the candidate first data port, and the remaining bandwidth space can be obtained by subtracting the used bandwidth value from the bandwidth upper limit value of the candidate first data port, and the difference obtained is used as the first bandwidth value of the candidate first data port.
步骤204,将所述第二数据口的第二带宽值依次与所述各个候选第一数据口的第一带宽值进行比较。Step 204: Compare the second bandwidth value of the second data port with the first bandwidth values of the candidate first data ports in sequence.
在本发明实施例中,可以依次遍历每个候选第一数据口,来将第二数据口的第二带宽值依次与每个候选第一数据口的第一带宽值进行比较,从而找到能够满足第二带宽值的候选第一数据口。In the embodiment of the present invention, each candidate first data port may be traversed in sequence to compare the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in sequence, thereby finding a candidate first data port that can meet the second bandwidth value.
此外,为了便于后续自动分配符合带宽需求的候选第一数据口,也为了防止出现第二服务器总带宽大于第一服务器总带宽的现象,比如第一服务器是200G,带宽是100G的第二服务器对联测试是可以满速率进行的,相反的,如果第一服务器是100G,需要对联测试200G的第二服务器,就无法进行测试待测试PCI-E设备的极限性能,导致测试不准确,因此在比较第二数据口的第二带宽值与候选第一数据口的第一带宽值之前,服务端可以先确定第二服务器的带宽上限值以及确定每个第一服务器的带宽上限值,然后将第二服务器的带宽上限值依次与每个第一服务器的带宽上限值进行比较。如果某个第一服务器的带宽上限值大于或等于第二服务器的带宽上限值,那么可以针对该第一服务器执行比较第二数据口的第二带宽值与候选第一数据口的第一带宽值的步骤;如果某个第一服务器的带宽上限值小于第二服务器的带宽上限值,那么可以跳过该第一服务器,也即是无需针对该第一服务器执行比较第二数据口的第二带宽值与候选第一数据口的第一带宽值的步骤。In addition, in order to facilitate the subsequent automatic allocation of candidate first data ports that meet the bandwidth requirements, and to prevent the phenomenon that the total bandwidth of the second server is greater than the total bandwidth of the first server, for example, if the first server is 200G and the second server with a bandwidth of 100G is tested in parallel, it can be performed at full speed. On the contrary, if the first server is 100G and a second server with a bandwidth of 200G needs to be tested in parallel, the limit performance of the PCI-E device to be tested cannot be tested, resulting in inaccurate testing. Therefore, before comparing the second bandwidth value of the second data port with the first bandwidth value of the candidate first data port, the server can first determine the bandwidth upper limit value of the second server and the bandwidth upper limit value of each first server, and then compare the bandwidth upper limit value of the second server with the bandwidth upper limit value of each first server in turn. If the bandwidth upper limit value of a first server is greater than or equal to the bandwidth upper limit value of the second server, then the step of comparing the second bandwidth value of the second data port with the first bandwidth value of the candidate first data port can be performed for the first server; if the bandwidth upper limit value of a first server is less than the bandwidth upper limit value of the second server, then the first server can be skipped, that is, there is no need to perform the step of comparing the second bandwidth value of the second data port with the first bandwidth value of the candidate first data port for the first server.
在具体实现中,每个第一服务器可以收集每一次的带宽数据,对这些带宽数据进行分析,计算出第一服务器上的所有待对联PCI-E设备所能接收带宽数据的带宽上限值,将所有待对联PCI-E设备所能接收带宽数据的带宽上限值作为该第一服务器所能接收带宽数据的带宽上限值。具体地,可以将待对联PCI-E设备具有的第一数据口的带宽上限值进行相加,得到该待对联PCI-E设备所能接收带宽数据的带宽上限值,然后将第一服务器上的待对联PCI-E设备的带宽上限值进行相加,得到该第一服务器所能接收带宽数据的带宽上限值。同样地,第二服务器的带宽上限值可以通过将第二服务器上的待对联PCI-E设备具有的第二数据口的第二带宽值进行相加而得到。In a specific implementation, each first server can collect bandwidth data each time, analyze the bandwidth data, calculate the bandwidth upper limit value of the bandwidth data that can be received by all the PCI-E devices to be coupled on the first server, and use the bandwidth upper limit value of the bandwidth data that can be received by all the PCI-E devices to be coupled as the bandwidth upper limit value of the bandwidth data that can be received by the first server. Specifically, the bandwidth upper limit values of the first data ports of the PCI-E devices to be coupled can be added to obtain the bandwidth upper limit value of the bandwidth data that can be received by the PCI-E devices to be coupled, and then the bandwidth upper limit values of the PCI-E devices to be coupled on the first server can be added to obtain the bandwidth upper limit value of the bandwidth data that can be received by the first server. Similarly, the bandwidth upper limit value of the second server can be obtained by adding the second bandwidth values of the second data ports of the PCI-E devices to be coupled on the second server.
步骤205,若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。Step 205: If the first bandwidth value is not less than the second bandwidth value, the candidate first data port corresponding to the first bandwidth value is used as the data exchange port of the second data port.
在本发明实施例中,如果第一带宽值不小于第二带宽值,即第一带宽值大于或等于第二带宽值,那么可以将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口。In the embodiment of the present invention, if the first bandwidth value is not less than the second bandwidth value, that is, the first bandwidth value is greater than or equal to the second bandwidth value, then the candidate first data port corresponding to the first bandwidth value can be used as the data exchange port of the second data port.
本发明的一个可选实施例中,所述方法还可以包括:In an optional embodiment of the present invention, the method may further include:
若所述第一带宽值小于所述第二带宽值,则不将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。If the first bandwidth value is smaller than the second bandwidth value, the candidate first data port corresponding to the first bandwidth value is not used as the data exchange port of the second data port.
在本发明实施例中,如果第一带宽值小于第二带宽值,那么可以无需将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口,并且可以遍历其他候选第一数据口,直至找到符合带宽需求的数据交互口。In an embodiment of the present invention, if the first bandwidth value is smaller than the second bandwidth value, then the candidate first data port corresponding to the first bandwidth value may not be used as the data interaction port of the second data port, and other candidate first data ports may be traversed until a data interaction port that meets the bandwidth requirements is found.
在一种示例中,如图3所示,候选第一数据口包括第一数据口c、d、e、f、g、h、o、p、q,待测试PCI-E设备(网卡1)具有第二数据口X和Y,此时可以先将第二数据口X的第二带宽值X与候选第一数据口c的第一带宽值c进行比较。如果第一带宽值c大于或等于第二带宽值X,那么候选第一数据口c可以作为第二数据口X的数据交互口;如果第一带宽值c小于第二带宽值X,那么候选第一数据口c不能作为第二数据口X的数据交互口,此时可以遍历其他候选第一数据口。具体地,如果第一带宽值c小于第二带宽值X,那么可以将第二数据口X的第二带宽值X与候选第一数据口d的第一带宽值d进行比较,……,如果第一服务器1上的候选第一数据口c、d、e、f的第一带宽值均小于第二数据口X的第二带宽值,那么可以将第二数据口X的第二带宽值依次与第一服务器2上的候选第一数据口g、h的第一带宽值进行比较,……,如果第一服务器2上的候选第一数据口g、h的第一带宽值均小于第二数据口X的第二带宽值,那么可以将第二数据口X的第二带宽值依次与第一服务器3上的候选第一数据口o、p、q的第一带宽值进行比较,直至找到符合带宽需求的数据交互口。In an example, as shown in FIG3 , the candidate first data ports include first data ports c, d, e, f, g, h, o, p, and q, and the PCI-E device to be tested (network card 1) has second data ports X and Y. At this time, the second bandwidth value X of the second data port X can be compared with the first bandwidth value c of the candidate first data port c. If the first bandwidth value c is greater than or equal to the second bandwidth value X, then the candidate first data port c can be used as the data exchange port of the second data port X; if the first bandwidth value c is less than the second bandwidth value X, then the candidate first data port c cannot be used as the data exchange port of the second data port X, and other candidate first data ports can be traversed at this time. Specifically, if the first bandwidth value c is less than the second bandwidth value X, then the second bandwidth value X of the second data port X can be compared with the first bandwidth value d of the candidate first data port d, ..., if the first bandwidth values of the candidate first data ports c, d, e, and f on the first server 1 are all less than the second bandwidth value of the second data port X, then the second bandwidth value of the second data port X can be compared with the first bandwidth values of the candidate first data ports g and h on the first server 2 in sequence, ..., if the first bandwidth values of the candidate first data ports g and h on the first server 2 are all less than the second bandwidth value of the second data port X, then the second bandwidth value of the second data port X can be compared with the first bandwidth values of the candidate first data ports o, p, and q on the first server 3 in sequence, until a data interaction port that meets the bandwidth requirements is found.
需要说明的是,第二数据口Y的比较步骤与上述第二数据口X的比较步骤相同,在此不再赘述。It should be noted that the comparison step of the second data port Y is the same as the comparison step of the second data port X, which will not be described in detail herein.
上述示例仅用于使本领域技术人员更好理解本发明实施例,本发明对此不作出限定。The above examples are only used to help those skilled in the art better understand the embodiments of the present invention, and the present invention is not limited thereto.
本发明的一个可选实施例中,所述多个第一服务器分别部署不同的第一系统环境;步骤205可以包括以下子步骤:In an optional embodiment of the present invention, the multiple first servers respectively deploy different first system environments; step 205 may include the following sub-steps:
子步骤S31,若所述第一带宽值不小于所述第二带宽值,则确定所述第二服务器部署的第二系统环境,以及确定所述第一带宽值对应的候选第一数据口处于的目标第一系统环境;Sub-step S31, if the first bandwidth value is not less than the second bandwidth value, determining a second system environment in which the second server is deployed, and determining a target first system environment in which the candidate first data port corresponding to the first bandwidth value is located;
子步骤S32,判断所述目标第一系统环境是否与所述第二系统环境一致;Sub-step S32, determining whether the target first system environment is consistent with the second system environment;
子步骤S33,若所述目标第一系统环境与所述第二系统环境一致,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。Sub-step S33: if the target first system environment is consistent with the second system environment, using the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port.
在本发明实施例中,服务端一直保持接收数据状态,服务端上的不同的第一服务器可以部署不同的第一系统环境,比如第一服务器1部署centos8.2的系统,第一服务器2部署Redhat8.2的系统,第一服务器3部署Windows2022的系统,第一服务器4部署Ubuntu12.06的系统……以此类推。In an embodiment of the present invention, the server side always maintains a data receiving state, and different first servers on the server side can deploy different first system environments. For example, the first server 1 deploys a centos8.2 system, the first server 2 deploys a Redhat8.2 system, the first server 3 deploys a Windows2022 system, the first server 4 deploys an Ubuntu12.06 system... and so on.
第二服务器部署有第二系统环境,为了使对联测试的两个PCI-E设备处于相同的系统环境,服务端在第一带宽值不小于第二带宽值时,可以进一步确定第二服务器部署的第二系统环境,以及确定该第一带宽值对应的候选第一数据口处于的目标第一系统环境,然后判断目标第一系统环境是否与第二系统环境一致。如果第二系统环境是Redhat8.2系统,目标第一系统环境也是Redhat8.2系统,那么可以判断出目标第一系统环境与第二系统环境一致,因此可以将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口;如果第二系统环境是Redhat8.2系统,目标第一系统环境是Windows2022系统,那么可以判断出目标第一系统环境与第二系统环境不一致,因此无需将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口。The second server is deployed with a second system environment. In order to make the two PCI-E devices in the joint test in the same system environment, the server can further determine the second system environment deployed by the second server when the first bandwidth value is not less than the second bandwidth value, and determine the target first system environment where the candidate first data port corresponding to the first bandwidth value is located, and then determine whether the target first system environment is consistent with the second system environment. If the second system environment is a Redhat8.2 system and the target first system environment is also a Redhat8.2 system, then it can be determined that the target first system environment is consistent with the second system environment, so the candidate first data port corresponding to the first bandwidth value can be used as the data interaction port of the second data port; if the second system environment is a Redhat8.2 system and the target first system environment is a Windows2022 system, then it can be determined that the target first system environment is inconsistent with the second system environment, so there is no need to use the candidate first data port corresponding to the first bandwidth value as the data interaction port of the second data port.
步骤206,为所述第二数据口分配IP地址。Step 206: assign an IP address to the second data port.
在本发明实施例中,找到第二数据口的数据交互口后,服务端可以为第二数据口分配IP地址,每个第二数据口均有独立的IP地址。其中,IP地址可以用来连接第二数据口和数据交互口,使得匹配到的两个PCI-E设备可以进行对联测试。In the embodiment of the present invention, after finding the data exchange port of the second data port, the server can allocate an IP address to the second data port, and each second data port has an independent IP address. The IP address can be used to connect the second data port and the data exchange port, so that the two matched PCI-E devices can be tested in parallel.
步骤207,采用所述IP地址连接所述第二数据口和所述数据交互口,以使所述数据交互口对应的待对联PCI-E设备与所述待测试PCI-E设备进行对联测试。Step 207: Use the IP address to connect the second data port and the data exchange port, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupled test with the PCI-E device to be tested.
在本发明实施例中,服务端为第二数据口分配IP地址后,服务端可以采用该IP地址去连接第二数据口和数据交互口,使得数据交互口对应的待对联PCI-E设备与待测试PCI-E设备可以进行对联测试。In an embodiment of the present invention, after the server allocates an IP address to the second data port, the server can use the IP address to connect the second data port and the data interaction port, so that the PCI-E device to be coupled corresponding to the data interaction port and the PCI-E device to be tested can be coupled to each other.
本发明的一个可选实施例中,所述方法还可以包括:In an optional embodiment of the present invention, the method may further include:
基于两两连接的所述第二数据口和所述数据交互口,向所述第二服务器传输测试工具,以使所述第二服务器采用所述测试工具部署测试环境;在所述第二服务器部署完成测试环境后,启动针对所述待测试PCI-E设备的性能压力测试。Based on the second data port and the data interaction port connected in pairs, the test tool is transmitted to the second server so that the second server deploys the test environment using the test tool; after the second server completes the deployment of the test environment, the performance stress test of the PCI-E device to be tested is started.
在本发明实施例中,采用IP地址连接第二数据口和数据交互口后,服务端就可以基于两两连接的第二数据口和数据交互口,向第二服务器传输测试工具,测试工具是用来部署测试环境的,第二服务器通过交换机群组接收到测试工具后,可以自动安装测试工具,从而自动部署测试环境。在第二服务器部署完成测试环境后,服务器就可以启动针对待测试PCI-E设备的性能压力测试。In the embodiment of the present invention, after the second data port and the data exchange port are connected by an IP address, the server can transmit the test tool to the second server based on the second data port and the data exchange port connected in pairs. The test tool is used to deploy the test environment. After the second server receives the test tool through the switch group, the test tool can be automatically installed, thereby automatically deploying the test environment. After the second server completes the deployment of the test environment, the server can start the performance stress test for the PCI-E device to be tested.
本发明的一个可选实施例中,所述方法还可以包括:In an optional embodiment of the present invention, the method may further include:
若所有的第一带宽值均小于所述第二带宽值,则确定反馈满足所述第二带宽值的第一数据口的剩余被使用时间。If all the first bandwidth values are smaller than the second bandwidth value, it is determined to feed back the remaining usage time of the first data port that satisfies the second bandwidth value.
在本发明实施例中,如果遍历所有的候选第一数据口后仍没有找到满足待测试PCI-E设备所需带宽空间需求的数据交互口,即所有的第一带宽值均小于第二带宽值,那么可以确定反馈测试工程师的剩余被使用时间,剩余被使用时间是指满足第二带宽值的第一数据口的剩余时间。换言之,服务端上的所有第一数据口都在使用中,没有其他多余可用的第一数据口来进行测试,此时会有测试的先后顺序,比如测试一般是24小时,那么可以按照测试先后顺序计算出剩余时间,当某个第一数据口测试完成后可以发送指令通知测试工程师进行第二服务器的测试,从而做到合理分配。In an embodiment of the present invention, if after traversing all candidate first data ports, no data interaction port that meets the bandwidth space requirements of the PCI-E device to be tested is found, that is, all first bandwidth values are less than the second bandwidth value, then the remaining usage time of the feedback test engineer can be determined, and the remaining usage time refers to the remaining time of the first data port that meets the second bandwidth value. In other words, all first data ports on the server are in use, and there are no other redundant first data ports available for testing. At this time, there will be a test sequence, for example, the test is generally 24 hours, then the remaining time can be calculated according to the test sequence, and when a first data port test is completed, an instruction can be sent to notify the test engineer to test the second server, so as to achieve reasonable allocation.
相比现有的测试方法需要测试工程师搭配两台服务器,一台服务器作为服务端,另一台服务器作为客户端,将两台服务器对联。具体而言,目前的实际测试工作中,测试一款HCA卡或网卡需要另外搭配一台与其对联的服务器进行测试。例如,测试100G HCA卡时,将所要测试HCA卡安装到一台服务器上,但要配合这款HCA卡的测试,还需要搭建另一台服务器安装100G或者大于100G带宽的HCA卡来搭配测试。当部署两台服务器进行测试时,还需要在两台服务器中部署一样的系统环境,比如客户端安装Redhat7.8系统,在服务端也要安装Redhat7.8的系统来配合测试,甚至有时因为兼容性问题,在客户端和服务端也需要安装同一款HCA卡进行测试。由此可见,这样的测试原则无疑是加剧工作量,测试情况的单一性,不符合在实际应用中的使用原则,不利于问题的发现。Compared with the existing test method, the test engineer needs to match two servers, one server as the server and the other server as the client, and connect the two servers. Specifically, in the current actual test work, testing an HCA card or network card requires another server to be matched with it for testing. For example, when testing a 100G HCA card, the HCA card to be tested is installed on a server, but to cooperate with the test of this HCA card, it is necessary to build another server to install a 100G or greater bandwidth HCA card for matching testing. When deploying two servers for testing, it is also necessary to deploy the same system environment in the two servers. For example, if the client installs the Redhat7.8 system, the server also needs to install the Redhat7.8 system to cooperate with the test. Sometimes, due to compatibility issues, the same HCA card needs to be installed on the client and the server for testing. It can be seen that such a test principle undoubtedly increases the workload, and the singleness of the test situation does not conform to the use principle in actual applications, which is not conducive to the discovery of problems.
本发明实施例通过将多个交换机级联得到交换机群组,将多个高性能、高规格的第一服务器集成到服务端中,统一部署服务端作为接收端,接收端配置高带宽的待对联PCI-E设备,按照高带宽兼容低带宽的测试策略,使得每个高带宽的待对联PCI-E设备可以同时接收多个低带宽的待测试PCI-E设备的带宽数据。在不同的第一服务器中部署不同的第一系统环境,第二服务器作为客户端接入到交换机群组,第二服务器通过向不同的第一服务器发送数据包的形式,实现多种情况的搭配原则,以达到真实模拟应用场景的效果,便于发现更多问题。服务端收集分析与客户端交互时所能满足的最大带宽需求,每个第一服务器定义一个带宽上限值,以及收集分析每个待对联PCI-E设备具有的每个第一数据口的最大接收数据值,定义该最大接收数据值为该第一数据口的带宽上限值。服务端依据带宽上限值与实时交互数据计算出第一数据口的剩余带宽空间,将第一数据口的剩余带宽空间和第二数据口的第二带宽值做比对,筛选出符合带宽需求的候选第一数据口,作为待测试PCI-E设备的第二数据口的数据交互口,服务端可以自动为第二数据口分配IP地址,从而采用IP地址连接第二数据口和数据交互口,然后向第二服务器传输测试工具,使得第二服务器采用测试工具来自动部署测试环境,由此达到自动化、智能化的测试目的。The embodiment of the present invention obtains a switch group by cascading multiple switches, integrates multiple high-performance, high-specification first servers into the server, uniformly deploys the server as a receiving end, and configures a high-bandwidth PCI-E device to be coupled. According to the test strategy of high bandwidth compatibility with low bandwidth, each high-bandwidth PCI-E device to be coupled can simultaneously receive bandwidth data of multiple low-bandwidth PCI-E devices to be tested. Different first system environments are deployed in different first servers, and the second server is connected to the switch group as a client. The second server implements the matching principle of multiple situations by sending data packets to different first servers to achieve the effect of real simulation application scenarios, which is convenient for discovering more problems. The server collects and analyzes the maximum bandwidth requirements that can be met when interacting with the client, and each first server defines a bandwidth upper limit value, and collects and analyzes the maximum received data value of each first data port of each PCI-E device to be coupled, and defines the maximum received data value as the bandwidth upper limit value of the first data port. The server calculates the remaining bandwidth space of the first data port according to the bandwidth upper limit value and the real-time interaction data, compares the remaining bandwidth space of the first data port with the second bandwidth value of the second data port, and selects the candidate first data port that meets the bandwidth requirement as the data interaction port of the second data port of the PCI-E device to be tested. The server can automatically allocate an IP address to the second data port, thereby connecting the second data port and the data interaction port using the IP address, and then transmits the test tool to the second server, so that the second server uses the test tool to automatically deploy the test environment, thereby achieving the purpose of automated and intelligent testing.
综上,在本发明实施例中,当第二服务器作为客户端接入交换机群组时,服务端获取第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值,然后确定与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备,将多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值,然后将第二数据口的第二带宽值依次与各个候选第一数据口的第一带宽值进行比较,若第一带宽值不小于第二带宽值,则将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口,接着为第二数据口分配IP地址,以采用IP地址连接第二数据口和数据交互口,以使数据交互口对应的待对联PCI-E设备与待测试PCI-E设备进行对联测试。本发明实施例通过将多个第一服务器集成到服务端,交换机群组作为中间介质,使得在性能压力测试中无需搭建多余的服务器,只需将待测试PCI-E设备接入到交换机群组,服务端自动获取待测试PCI-E设备的第二带宽值,自动匹配同类型且能够满足第二带宽值的目标待对联PCI-E设备,以将匹配到的两个PCI-E设备进行对联测试,从而大大缩减工作量,极大提升测试效率。In summary, in an embodiment of the present invention, when the second server accesses the switch group as a client, the server obtains the second bandwidth value of the second data port of the PCI-E device to be tested on the second server, and then determines a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested, determines the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determines the first bandwidth value of each candidate first data port, and then compares the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in turn, if the first bandwidth value is not less than the second bandwidth value, then uses the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port, and then allocates an IP address to the second data port, so as to connect the second data port and the data exchange port by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupling test with the PCI-E device to be tested. The embodiment of the present invention integrates multiple first servers into the server end, and uses the switch group as an intermediate medium, so that there is no need to build extra servers in the performance stress test. It only needs to connect the PCI-E device to be tested to the switch group, and the server end automatically obtains the second bandwidth value of the PCI-E device to be tested, and automatically matches the target PCI-E device to be coupled that is of the same type and can meet the second bandwidth value, so as to perform a coupled test on the two matched PCI-E devices, thereby greatly reducing the workload and greatly improving the test efficiency.
参考图4,示出了本发明实施例提供的一种对联测试装置的结构框图,应用于服务端,所述服务端与交换机群组连接,所述服务端集成有多个第一服务器,所述多个第一服务器分别安装有多种类型的多个待对联PCI-E设备,所述多个待对联PCI-E设备分别具有一个或多个第一数据口,具体可以包括如下模块:Referring to FIG4 , a structural block diagram of a pairing test device provided by an embodiment of the present invention is shown, which is applied to a server end, the server end is connected to a switch group, the server end is integrated with a plurality of first servers, the plurality of first servers are respectively installed with a plurality of types of PCI-E devices to be paired, the plurality of PCI-E devices to be paired respectively have one or more first data ports, and specifically may include the following modules:
第二带宽值获取模块401,用于当第二服务器作为客户端接入所述交换机群组时,获取所述第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值;A second bandwidth value acquisition module 401 is used to acquire a second bandwidth value of a second data port of a PCI-E device to be tested on the second server when the second server accesses the switch group as a client;
目标待对联PCI-E设备确定模块402,用于确定与所述待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备;A target PCI-E device to be coupled determination module 402 is used to determine a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested;
第一带宽值确定模块403,用于将所述多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值;A first bandwidth value determination module 403, configured to determine the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determine a first bandwidth value of each candidate first data port;
带宽值比较模块404,用于将所述第二数据口的第二带宽值依次与所述各个候选第一数据口的第一带宽值进行比较;A bandwidth value comparison module 404, configured to compare the second bandwidth value of the second data port with the first bandwidth values of the candidate first data ports in sequence;
第一数据交互口确定模块405,用于若所述第一带宽值不小于所述第二带宽值,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口;A first data exchange port determination module 405, configured to use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the first bandwidth value is not less than the second bandwidth value;
IP地址分配模块406,用于为所述第二数据口分配IP地址;An IP address allocation module 406, configured to allocate an IP address to the second data port;
连接模块407,用于采用所述IP地址连接所述第二数据口和所述数据交互口,以使所述数据交互口对应的待对联PCI-E设备与所述待测试PCI-E设备进行对联测试。The connection module 407 is used to connect the second data port and the data exchange port by using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port can be coupled with the PCI-E device to be tested.
本发明的一个可选实施例中,所述多个第一服务器分别部署不同的第一系统环境;所述第一数据交互口确定模块405可以包括:In an optional embodiment of the present invention, the multiple first servers are respectively deployed in different first system environments; the first data interaction port determination module 405 may include:
系统环境确定子模块,用于若所述第一带宽值不小于所述第二带宽值,则确定所述第二服务器部署的第二系统环境,以及确定所述第一带宽值对应的候选第一数据口处于的目标第一系统环境;a system environment determination submodule, configured to determine, if the first bandwidth value is not less than the second bandwidth value, a second system environment in which the second server is deployed, and determine a target first system environment in which the candidate first data port corresponding to the first bandwidth value is located;
判断子模块,用于判断所述目标第一系统环境是否与所述第二系统环境一致;A determination submodule, used to determine whether the target first system environment is consistent with the second system environment;
第一数据交互口确定子模块,用于若所述目标第一系统环境与所述第二系统环境一致,则将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。The first data exchange port determination submodule is configured to use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the target first system environment is consistent with the second system environment.
本发明的一个可选实施例中,所述目标待对联PCI-E设备确定模块402可以包括:In an optional embodiment of the present invention, the target to-be-associated PCI-E device determination module 402 may include:
数据包接收子模块,用于通过所述交换机群组接收所述第二服务器发送的数据包;A data packet receiving submodule, configured to receive a data packet sent by the second server through the switch group;
数据包下发子模块,用于将所述数据包分别下发到所述多个第一服务器;A data packet sending submodule, used for sending the data packets to the multiple first servers respectively;
能够接收到数据包的待对联PCI-E设备确定子模块,用于在各个第一服务器中,确定能够接收到所述数据包的待对联PCI-E设备;A submodule for determining a PCI-E device to be paired that can receive a data packet, used to determine, in each first server, a PCI-E device to be paired that can receive the data packet;
目标待对联PCI-E设备确定子模块,用于将所述能够接收到所述数据包的待对联PCI-E设备确定为,与所述待测试PCI-E设备的类型匹配的目标待对联PCI-E设备。The target PCI-E device to be coupled determination submodule is used to determine the PCI-E device to be coupled that can receive the data packet as the target PCI-E device to be coupled that matches the type of the PCI-E device to be tested.
本发明的一个可选实施例中,所述数据包包括带宽数据;所述第一带宽值确定模块403可以包括:In an optional embodiment of the present invention, the data packet includes bandwidth data; the first bandwidth value determination module 403 may include:
带宽上限值确定子模块,用于确定各个候选第一数据口所能接收所述带宽数据的带宽上限值;A bandwidth upper limit determination submodule, used to determine a bandwidth upper limit value that each candidate first data port can receive the bandwidth data;
状态确定子模块,用于确定所述各个候选第一数据口的状态;所述状态包括空闲状态和使用状态;A state determination submodule, used to determine the state of each candidate first data port; the state includes an idle state and a used state;
处于空闲状态的第一带宽值确定子模块,用于若所述候选第一数据口处于空闲状态,则将所述带宽上限值作为所述候选第一数据口的第一带宽值;a first bandwidth value determination submodule in an idle state, configured to use the bandwidth upper limit value as the first bandwidth value of the candidate first data port if the candidate first data port is in an idle state;
处于使用状态的第一带宽值确定子模块,用于若所述候选第一数据口处于使用状态,则计算所述带宽上限值与被使用带宽值之间的差值,并将所述差值作为所述候选第一数据口的第一带宽值。The first bandwidth value determination submodule in use is used to calculate the difference between the bandwidth upper limit value and the used bandwidth value if the candidate first data port is in use, and use the difference as the first bandwidth value of the candidate first data port.
本发明的一个可选实施例中,所述装置还可以包括:In an optional embodiment of the present invention, the device may further include:
测试脚本传输模块,用于基于两两连接的所述第二数据口和所述数据交互口,向所述第二服务器传输测试工具,以使所述第二服务器采用所述测试工具部署测试环境;A test script transmission module, used for transmitting a test tool to the second server based on the second data port and the data interaction port connected in pairs, so that the second server deploys a test environment using the test tool;
性能压力测试启动模块,用于在所述第二服务器部署完成测试环境后,启动针对所述待测试PCI-E设备的性能压力测试。The performance stress test starting module is used to start the performance stress test for the PCI-E device to be tested after the second server completes the deployment of the test environment.
本发明的一个可选实施例中,所述装置还可以包括:In an optional embodiment of the present invention, the device may further include:
第二数据交互口确定模块,用于若所述第一带宽值小于所述第二带宽值,则不将所述第一带宽值对应的候选第一数据口作为所述第二数据口的数据交互口。The second data exchange port determination module is configured to not use the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port if the first bandwidth value is smaller than the second bandwidth value.
本发明的一个可选实施例中,所述装置还可以包括:In an optional embodiment of the present invention, the device may further include:
剩余被使用时间确定模块,用于若所有的第一带宽值均小于所述第二带宽值,则确定反馈满足所述第二带宽值的第一数据口的剩余被使用时间。The remaining used time determination module is used to determine and feedback the remaining used time of the first data port that meets the second bandwidth value if all the first bandwidth values are smaller than the second bandwidth value.
综上,在本发明实施例中,当第二服务器作为客户端接入交换机群组时,服务端获取第二服务器上的待测试PCI-E设备具有的第二数据口的第二带宽值,然后确定与待测试PCI-E设备的类型匹配的多个目标待对联PCI-E设备,将多个目标待对联PCI-E设备具有的第一数据口确定为候选第一数据口,并确定各个候选第一数据口的第一带宽值,然后将第二数据口的第二带宽值依次与各个候选第一数据口的第一带宽值进行比较,若第一带宽值不小于第二带宽值,则将第一带宽值对应的候选第一数据口作为第二数据口的数据交互口,接着为第二数据口分配IP地址,以采用IP地址连接第二数据口和数据交互口,以使数据交互口对应的待对联PCI-E设备与待测试PCI-E设备进行对联测试。本发明实施例通过将多个第一服务器集成到服务端,交换机群组作为中间介质,使得在性能压力测试中无需搭建多余的服务器,只需将待测试PCI-E设备接入到交换机群组,服务端自动获取待测试PCI-E设备的第二带宽值,自动匹配同类型且能够满足第二带宽值的目标待对联PCI-E设备,以将匹配到的两个PCI-E设备进行对联测试,从而大大缩减工作量,极大提升测试效率。In summary, in an embodiment of the present invention, when the second server accesses the switch group as a client, the server obtains the second bandwidth value of the second data port of the PCI-E device to be tested on the second server, and then determines a plurality of target PCI-E devices to be coupled that match the type of the PCI-E device to be tested, determines the first data ports of the plurality of target PCI-E devices to be coupled as candidate first data ports, and determines the first bandwidth value of each candidate first data port, and then compares the second bandwidth value of the second data port with the first bandwidth value of each candidate first data port in turn, if the first bandwidth value is not less than the second bandwidth value, then uses the candidate first data port corresponding to the first bandwidth value as the data exchange port of the second data port, and then allocates an IP address to the second data port, so as to connect the second data port and the data exchange port using the IP address, so that the PCI-E device to be coupled corresponding to the data exchange port performs a coupling test with the PCI-E device to be tested. The embodiment of the present invention integrates multiple first servers into the server end, and uses the switch group as an intermediate medium, so that there is no need to build extra servers in the performance stress test. It only needs to connect the PCI-E device to be tested to the switch group, and the server end automatically obtains the second bandwidth value of the PCI-E device to be tested, and automatically matches the target PCI-E device to be coupled that is of the same type and can meet the second bandwidth value, so as to perform a coupled test on the two matched PCI-E devices, thereby greatly reducing the workload and greatly improving the test efficiency.
对于装置实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
本发明实施例还提供了一种电子设备,包括:处理器,存储器,存储在存储器上并可在处理器上运行的计算机程序,该计算机程序被处理器执行时实现上述对联测试方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention also provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, each process of the above-mentioned couplet test method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be described here.
本发明实施例还提供了一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,计算机程序被处理器执行时实现上述对联测试方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the various processes of the above-mentioned couplet test method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
本说明书中的各个实施例均采用递进的方式描述,每个实施例重点说明的都是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。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.
本领域内的技术人员应明白,本发明实施例的实施例可提供为方法、装置、或计算机程序产品。因此,本发明实施例可采用完全硬件实施例、完全软件实施例、或结合软件和硬件方面的实施例的形式。而且,本发明实施例可采用在一个或多个其中包含有计算机可用程序代码的计算机可用存储介质(包括但不限于磁盘存储器、CD-ROM、光学存储器等)上实施的计算机程序产品的形式。Those skilled in the art will appreciate that the embodiments of the embodiments of the present invention may be provided as methods, devices, or computer program products. Therefore, the embodiments of the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the embodiments of the present invention 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 codes.
本发明实施例是参照根据本发明实施例的方法、终端设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理终端设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理终端设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。The embodiments of the present invention are described with reference to the flowcharts and/or block diagrams of the methods, terminal devices (systems), and computer program products according to the embodiments of the present invention. It should be understood that each process and/or box in the flowchart and/or block diagram, as well as the combination of the processes and/or boxes 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 a device for implementing the functions specified in one process or multiple processes in the flowchart and/or one box or multiple boxes in the block diagram.
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理终端设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。These computer program instructions may also be stored in a computer-readable memory that can direct 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 that implements the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
这些计算机程序指令也可装载到计算机或其他可编程数据处理终端设备上,使得在计算机或其他可编程终端设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程终端设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。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 computer-implemented processing, so that the instructions executed on the computer or other programmable terminal device provide steps for implementing the functions specified in one or more processes in the flowchart and/or one or more boxes in the block diagram.
尽管已描述了本发明实施例的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例做出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明实施例范围的所有变更和修改。Although the preferred embodiments of the present invention 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 embodiments and all changes and modifications that fall within the scope of the embodiments of the present invention.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者终端设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者终端设备中还存在另外的相同要素。Finally, it should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or terminal device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or terminal device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or terminal device including the elements.
以上对本发明所提供的对联测试方法、装置、电子设备和计算机可读存储介质,进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The couplet testing method, device, electronic device and computer-readable storage medium provided by the present invention are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only used to help understand the method of the present invention and its core idea. At the same time, for those skilled in the art, according to the idea of the present invention, there will be changes in the specific implementation methods and application scope. In summary, the content of this specification should not be understood as limiting the present invention.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211336860.3A CN115766549B (en) | 2022-10-28 | 2022-10-28 | Antithetical couplet test method, device, electronic equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211336860.3A CN115766549B (en) | 2022-10-28 | 2022-10-28 | Antithetical couplet test method, device, electronic equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115766549A CN115766549A (en) | 2023-03-07 |
CN115766549B true CN115766549B (en) | 2024-05-14 |
Family
ID=85354077
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211336860.3A Active CN115766549B (en) | 2022-10-28 | 2022-10-28 | Antithetical couplet test method, device, electronic equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115766549B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447121A (en) * | 2020-03-31 | 2020-07-24 | 龙芯中科(北京)信息技术有限公司 | Test method, device, equipment and storage medium of PCIE controller |
CN111538539A (en) * | 2020-04-23 | 2020-08-14 | 苏州浪潮智能科技有限公司 | Storage system starting method and device and computer readable storage medium |
CN114124968A (en) * | 2022-01-27 | 2022-03-01 | 深圳华锐金融技术股份有限公司 | Load balancing method, device, device and medium based on market data |
CN114448841A (en) * | 2021-12-30 | 2022-05-06 | 苏州浪潮智能科技有限公司 | A network card testing method, device, equipment and medium |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TW201413461A (en) * | 2012-09-17 | 2014-04-01 | Hon Hai Prec Ind Co Ltd | Disk array card expansion management method and system |
US11516106B2 (en) * | 2018-06-27 | 2022-11-29 | Intel Corporation | Protocol analyzer for monitoring and debugging high-speed communications links |
-
2022
- 2022-10-28 CN CN202211336860.3A patent/CN115766549B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111447121A (en) * | 2020-03-31 | 2020-07-24 | 龙芯中科(北京)信息技术有限公司 | Test method, device, equipment and storage medium of PCIE controller |
CN111538539A (en) * | 2020-04-23 | 2020-08-14 | 苏州浪潮智能科技有限公司 | Storage system starting method and device and computer readable storage medium |
CN114448841A (en) * | 2021-12-30 | 2022-05-06 | 苏州浪潮智能科技有限公司 | A network card testing method, device, equipment and medium |
CN114124968A (en) * | 2022-01-27 | 2022-03-01 | 深圳华锐金融技术股份有限公司 | Load balancing method, device, device and medium based on market data |
Also Published As
Publication number | Publication date |
---|---|
CN115766549A (en) | 2023-03-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9231846B2 (en) | Providing network capability over a converged interconnect fabric | |
CN108449282B (en) | Load balancing method and device | |
US8892723B2 (en) | Method and apparatus for enabling communication between iSCSI devices and SAS devices | |
CN112039722B (en) | MQTT protocol simulation method and simulation equipment | |
CN115913937A (en) | A network configuration method, device, equipment and storage medium for a container with multiple network cards | |
JP5091121B2 (en) | High speed data processing / communication method and apparatus for embedded system | |
WO2016101856A1 (en) | Data access method and apparatus | |
CN103179162B (en) | A kind of method and system of output journal | |
CN115134281A (en) | Network consumption source type component performance test optimization method, system and device | |
CN115766549B (en) | Antithetical couplet test method, device, electronic equipment and storage medium | |
CN113098955A (en) | Data transmission method, device, equipment and computer readable storage medium | |
KR102187301B1 (en) | The multiple virtual network communication system and method using virtual router | |
CN114448841B (en) | A network card testing method, device, equipment and medium | |
CN106100805A (en) | RJ45 network port test loop fixture and RJ45 network port test method | |
US11005782B2 (en) | Multi-endpoint adapter/multi-processor packet routing system | |
US8214473B1 (en) | Apparatus, system, and method for communicating with a device within a computer system | |
CN113900791A (en) | Job processing method and related equipment | |
CN104753867A (en) | Network data access method, equipment and system | |
CN112468334B (en) | A server configuration method, apparatus, device, and computer-readable storage medium | |
CN114661312B (en) | OpenStack cluster nesting deployment method and system | |
US20240372797A1 (en) | Methods, systems, and computer readable media for controlling a traffic generator using an open application programming interface | |
KR100275513B1 (en) | An automatic invoking method of a target debug server dynamically for a cross debugging | |
CN117667300A (en) | Computing system and related method | |
CN119557251A (en) | Bridging module, interaction method and related equipment | |
CN114648786A (en) | Method, device and equipment for transmitting finger vein data and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |