[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN118885344A - Interface performance testing method and device - Google Patents

Interface performance testing method and device Download PDF

Info

Publication number
CN118885344A
CN118885344A CN202410939227.6A CN202410939227A CN118885344A CN 118885344 A CN118885344 A CN 118885344A CN 202410939227 A CN202410939227 A CN 202410939227A CN 118885344 A CN118885344 A CN 118885344A
Authority
CN
China
Prior art keywords
target
data
interface
optical fiber
access
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.)
Pending
Application number
CN202410939227.6A
Other languages
Chinese (zh)
Inventor
高姣姣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Metabrain Intelligent Technology Co Ltd
Original Assignee
Suzhou Metabrain Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Suzhou Metabrain Intelligent Technology Co Ltd filed Critical Suzhou Metabrain Intelligent Technology Co Ltd
Priority to CN202410939227.6A priority Critical patent/CN118885344A/en
Publication of CN118885344A publication Critical patent/CN118885344A/en
Pending legal-status Critical Current

Links

Landscapes

  • Optical Communication System (AREA)

Abstract

The embodiment of the application provides a method and a device for testing interface performance, wherein the method comprises the following steps: receiving a target test request; responding to the target test request, and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector; the target connection link is called through a reference access channel to execute target data access to target storage equipment, so that target access information is obtained; and detecting the performance of the target interface of the target optical fiber interface when transmitting data according to the target access information. The application solves the problem of lower testing efficiency of the performance of the interface in the related technology, and achieves the effect of improving the testing efficiency of the performance of the interface.

Description

Interface performance testing method and device
Technical Field
The embodiment of the application relates to the field of computers, in particular to a method and a device for testing interface performance.
Background
In the cloud computing era, massive data need to be written and read, an FC card (Fiber Channel interface card) has the advantages of Channel and network, has the advantages of high bandwidth, high reliability, high stability, electromagnetic interference resistance and the like, can provide very stable and reliable optical Fiber connection, and is easy to construct a large-scale data transmission and communication network. In order to ensure that the FC card can normally perform data transmission on the server, the FC card needs to be tested before leaving the factory, so that the quality of the FC card is ensured, and the influence on the data transmission of equipment due to the quality problem of the FC card is avoided.
In order to realize the test of the FC card, two servers are adopted in the related technology, one server is used as a client, the other server is used as a server, one FC card is deployed on the client, the FC card to be tested is deployed on the server, the FC card on the client server and the FC card to be tested stored on the server are connected by using an optical fiber, an FC network is built, and connection is established; the client is controlled to read and write the data of the server through the FC card, and the data transmission performance of the FC card to be tested on the server is determined according to the test result.
Disclosure of Invention
The embodiment of the application provides a method and a device for testing interface performance, which are used for at least solving the problem of lower testing efficiency of the interface performance in the related technology.
According to an embodiment of the present application, there is provided a method for testing interface performance, including:
In one exemplary embodiment of the present invention,
Receiving a target test request, wherein the target test request is used for requesting to test the performance of a target optical fiber interface on the optical fiber channel interface card when data is transmitted;
Responding to the target test request, and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, wherein the reference optical fiber interface is an optical fiber interface meeting target performance conditions in the optical fiber channel interface card;
Executing target data access on target storage equipment through a reference access channel to acquire target access information, wherein the target data access is data access on a target storage space corresponding to a target access channel in the first storage equipment, the target access channel is an access channel which is identified as the target storage equipment in an access channel established in the controller, the reference access channel is a storage channel which is allocated to the reference optical fiber interface in the access channel established in the controller, and the second storage equipment comprises the target storage equipment;
And detecting the performance of the target interface of the target optical fiber interface when transmitting data according to the target access information.
As an optional implementation manner, the calling the target connection link through the reference access channel performs target data access on the target storage device to obtain target access information, which includes at least one of the following:
Invoking the target connection link to execute first data access to the target storage device through the reference access channel, wherein the first data access is used for writing first data stored in a reference storage space corresponding to the reference access channel in the first storage device into the target storage space, and the target data access comprises the first data access; monitoring a data writing parameter for writing the first data into the target storage space in the process of executing the first data access, wherein the target access information comprises the data writing parameter;
Invoking the target connection link to perform a second data access to the target storage device through the reference access channel, wherein the second data access is used for reading second data from the target storage space and storing the second data into the reference storage space, and the target data access comprises the second data access; and detecting a data reading parameter for reading the second data from the target storage space in the process of executing the second data access, wherein the target data access information comprises the data reading parameter.
As an optional implementation manner, the invoking the target connection link through the reference access channel to perform the first data access on the target storage device includes:
Searching a reference interface address of the reference optical fiber interface corresponding to the reference access channel from the interface address of the optical fiber interface with the corresponding relation and the access channel;
Transmitting the first data in the reference storage space to the reference optical fiber interface according to the reference interface address through the reference access channel, wherein the first data is used for being transmitted to the target optical fiber interface through the target connection link at the reference optical fiber interface;
Under the condition that the first data reported by the target optical fiber interface is received, determining the target access channel corresponding to the target optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the first data to the target storage space through the target access channel.
As an optional implementation manner, the invoking the target connection link through the reference access channel to perform the second data access on the target storage device includes:
Invoking the target connection link to send a data reading request to the target storage device through the reference access channel, wherein the data reading request is used for requesting to read the second data stored in the target storage space;
Under the condition that the data reading request reported by the target optical fiber interface is received, second data in the target storage space is sent to the target optical fiber interface through the target access channel, wherein the second data is transmitted to the reference optical fiber interface through the target connection link at the target optical fiber interface;
Under the condition that the second data reported by the reference optical fiber interface is received, determining the reference access channel corresponding to the reference optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the second data to the reference storage space through the reference access channel.
As an optional implementation manner, the detecting the target interface performance of the target optical fiber interface when transmitting data according to the target access information includes at least one of the following:
Matching a data reading parameter with a first parameter condition, wherein the data reading parameter is used for indicating a data reading condition of reading data from the target storage space corresponding to the target storage device, and the target access information comprises the data reading parameter; converting the data transmission performance of the target optical fiber interface according to the matching result of the data reading parameter and the first parameter condition, wherein the target interface performance comprises the data transmission performance;
Matching a data writing parameter with a second parameter condition, wherein the data writing parameter is used for indicating a data writing condition of writing data into the target storage space corresponding to the target storage device, and the target access information comprises the data writing parameter; and converting the data receiving performance of the target optical fiber interface according to the matching result of the data writing parameters and the second parameter conditions, wherein the target interface performance comprises the data receiving performance.
As an alternative embodiment, the constructing, by the interface connector, the target connection link between the target optical fiber interface and the reference optical fiber interface includes:
Screening out the reference optical fiber interfaces meeting the target performance condition from other optical fiber interfaces on the optical fiber channel interface card, wherein the other optical fiber interfaces are the optical fiber interfaces on the optical fiber channel interface card except the target optical fiber interfaces;
generating a target control instruction according to a first interface address corresponding to the target optical fiber interface and a second interface address corresponding to the reference optical fiber interface;
and sending the target control instruction to the interface connector, wherein the interface connector is used for responding to the target control instruction and controlling the connection link between the first interface address and the second interface address to be in a communicating state.
As an alternative embodiment, each of the optical fiber interfaces includes a transmitting port for transmitting data to the outside and a receiving port for receiving data, the interface connectors are respectively connected with the transmitting port and the receiving port of each of the optical fiber interfaces,
The method for testing the interface performance further comprises the following steps:
receiving a reference test request, wherein the reference test request is used for requesting to test the data transmission performance of the optical fiber communication interface card;
Responding to the reference test request, and screening out candidate optical fiber interfaces meeting the target performance condition from the optical fiber interfaces included in the optical fiber communication interface card;
Constructing a candidate connection link between a candidate sending port and a candidate receiving port of the candidate optical fiber interface through the interface connector;
Transmitting a target instruction to the fibre channel interface card, wherein the target instruction is used for indicating that first cache data stored in a first register corresponding to the candidate transmitting port is transmitted to a second register corresponding to the candidate receiving port through the candidate connecting link, the first register is used for temporarily storing data to be transmitted by the candidate transmitting port, and the second register is used for temporarily storing data received by the candidate receiving port;
Under the condition that the first cache data in the first register is determined to be sent completely, matching the second cache data received by the second register with the first cache data;
And under the condition that the first cache data and the second cache data are matched and consistent, determining that the data transmission performance of the optical fiber communication interface card meets a preset performance condition.
According to another embodiment of the present application, there is provided a test apparatus for interface performance, including:
the first receiving module is used for receiving a target test request, wherein the target test request is used for requesting to test the performance of a target optical fiber interface on the optical fiber channel interface card when data is transmitted;
the first construction module is used for responding to the target test request and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, wherein the reference optical fiber interface is an optical fiber interface meeting target performance conditions in the optical fiber channel interface card;
The calling module is used for calling the target connection link to execute target data access on target storage equipment through a reference access channel to obtain target access information, wherein the target data access is data access on a target storage space corresponding to the target access channel in the first storage equipment, the target access channel is an access channel which is identified as the target storage equipment in the access channels established in the controller, the reference access channel is a storage channel which is allocated to the reference optical fiber interface in the access channels established in the controller, and the second storage equipment comprises the target storage equipment;
and the detection module is used for detecting the performance of the target interface of the target optical fiber interface when the data is transmitted according to the target access information.
According to a further embodiment of the application, there is also provided a computer readable storage medium having stored therein a computer program, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
According to a further embodiment of the application there is also provided an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
According to the application, the first storage device and the controller are configured for the fiber channel interface card to be tested, the controller is connected in the fiber channel interface card and the first storage device, a plurality of access channels are established on the controller, each access channel is distributed with a corresponding storage space on the first storage device, each channel is distributed with a corresponding fiber interface in the fiber channel interface card, and further each fiber interface can be identified as being connected with a corresponding second storage device on the fiber channel interface card side, so that when the performance of the target fiber interface is required to be tested, a target connection link between the reference fiber interface and the target fiber interface is constructed by using the interface connector, and then the target data access to the target storage device can be carried out by calling the reference access channel corresponding to the reference fiber interface, the test of the interface performance of the fiber interface on the fiber channel interface card in a data access mode is realized, the operation of the interface performance of the fiber interface on the fiber channel interface card in the transmission data is avoided, the complex test environment of the interface performance test in the related technology is avoided, the test effect of the performance of the interface in the related technology is low, the efficiency of the interface performance of the interface in the related technology is improved, and the performance of the interface is improved.
Drawings
FIG. 1 is a schematic diagram of a hardware environment of a method for testing interface performance according to an embodiment of the present application;
FIG. 2 is a flow chart of a method of testing interface performance according to an embodiment of the present application;
figure 3 is an alternative SCST driver architecture diagram in accordance with an embodiment of the application;
FIG. 4 is a block diagram of an alternative FC card performance test device according to an embodiment of the application;
FIG. 5 is a schematic diagram of an alternative fiber optic interface loopback connection according to an embodiment of the present application;
FIG. 6 is a schematic diagram of an alternative port self-loopback connection according to an embodiment of the present application;
fig. 7 is a block diagram of an interface performance testing apparatus according to an embodiment of the present application.
Detailed Description
Embodiments of the present application will be described in detail below with reference to the accompanying drawings in conjunction with the embodiments.
It should be noted that the terms "first," "second," and the like in the description and the claims of the present application and the above figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order.
The method embodiments provided in the embodiments of the present application may be executed in a server apparatus or similar computing device. Taking the operation on the server device as an example, fig. 1 is a block diagram of a hardware structure of the server device according to a testing method of interface performance in an embodiment of the present application. As shown in fig. 1, the server device may include one or more (only one is shown in fig. 1) processors 102 (the processor 102 may include, but is not limited to, a microprocessor MCU, a programmable logic device FPGA, or the like processing means) and a memory 104 for storing data, wherein the server device may further include a transmission device 106 for communication functions and an input-output device 108. It will be appreciated by those of ordinary skill in the art that the architecture shown in fig. 1 is merely illustrative and is not intended to limit the architecture of the server apparatus described above. For example, the server device may also include more or fewer components than shown in FIG. 1, or have a different configuration than shown in FIG. 1.
The memory 104 may be used to store a computer program, for example, a software program of application software and a module, such as a computer program corresponding to a method for testing interface performance in an embodiment of the present application, and the processor 102 executes the computer program stored in the memory 104 to perform various functional applications and data processing, that is, implement the method described above. Memory 104 may include high-speed random access memory, and may also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include memory remotely located with respect to the processor 102, which may be connected to the server device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The transmission device 106 is used to receive or transmit data via a network. Specific examples of the network described above may include a wireless network provided by a communication provider of a server device. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, simply referred to as a NIC) that can connect to other network devices through a base station to communicate with the internet. In one example, the transmission device 106 may be a Radio Frequency (RF) module, which is configured to communicate with the internet wirelessly.
In this embodiment, a method for testing interface performance is provided, and fig. 2 is a flowchart of a method for testing interface performance according to an embodiment of the present application, as shown in fig. 2, where the flowchart includes the following steps:
Step S202, receiving a target test request, wherein the target test request is used for requesting to test the performance of a target optical fiber interface on the optical fiber channel interface card when data is transmitted;
Step S204, responding to the target test request, and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, wherein the reference optical fiber interface is an optical fiber interface meeting target performance conditions in the optical fiber channel interface card;
Step S206, executing target data access on a target storage device through a reference access channel to obtain target access information, wherein the target data access is data access on a target storage space corresponding to a target access channel in the first storage device, the target access channel is an access channel which is identified as the target storage device in access channels established in the controller, the reference access channel is a storage channel which is allocated to the reference optical fiber interface in the access channels established in the controller, and the second storage device comprises the target storage device;
step S208, detecting the target interface performance of the target optical fiber interface when transmitting data according to the target access information.
Through the steps, the first storage device and the controller are configured for the fiber channel interface card to be tested, the controller is connected to the fiber channel interface card and the first storage device, a plurality of access channels are established on the controller, each access channel is distributed with a corresponding storage space on the first storage device, each channel is distributed to a corresponding fiber interface in the fiber channel interface card, and further, each fiber interface can be identified to be connected with a corresponding second storage device on the fiber channel interface card side, so that when the performance of a target fiber interface is required to be tested, a target connection link between a reference fiber interface and the target fiber interface is constructed by using the interface connector, and then target data access can be carried out on the target storage device by calling a reference access channel corresponding to the reference fiber interface, the test of the interface performance of the fiber interface on the fiber channel interface card in a data access mode is realized, the operation of complex test environment when the interface performance is tested in the related technology is tested is avoided, the problem of low performance of the related technology is solved, and the performance of the interface can be tested, and the performance of the interface is improved.
In the embodiment of the application, the interface connector is connected with each optical fiber interface and is used for constructing a connection link between any two optical fiber interfaces in the optical fiber channel interface card, or the same optical fiber interface can also comprise a data sending end and a data receiving end, and the interface connector can also be used for constructing a connection link between the data sending end and the data receiving end to form a data closed loop.
Optionally, in the embodiment of the present application, the number of access channels is matched with the number of optical fiber interfaces in the optical fiber channel interface card, where each optical fiber interface in the optical fiber channel interface card is allocated with one access channel, and the optical fiber interface may access, through the corresponding access channel, a storage space on the first storage device that bets with the access channel.
Optionally, in the embodiment of the present application, the storage resources of the first storage device may be, but not limited to, allocated according to the number of optical fiber interfaces in the optical fiber channel interface card, to obtain the storage space of the access channel corresponding to each optical fiber interface, where the storage space size of each access channel may be obtained by equally dividing the storage resources of the first storage device according to the number of optical fiber interfaces, or may also be obtained by allocating the storage space of the first storage device according to the interface information of each optical fiber interface, where the interface information is used to indicate that the corresponding optical fiber interface is a service type of the configured data transmission service, that is, when the optical fiber channel interface card is actually used, there is a requirement for customizing the service, that is, different optical fiber interfaces on the same optical fiber channel interface card are required to execute services of different service types, and then the storage resource calling proportion between multiple optical fiber interfaces may be determined according to the service data transmission information corresponding to the service type, and the storage space of the first storage device may be split according to the storage resource calling proportion, to obtain the storage resources corresponding to each access channel.
In the embodiment provided in step S202, the target test request may be used to request to test the data transmission performance of one or more target optical fiber interfaces, and when the target test request is used to request to test the data transmission performance of a plurality of target optical fiber interfaces, a first optical fiber interface meeting the target performance condition may be screened out for each target optical fiber interface in the optical fiber channel interface card, and then the first optical fiber interface may be used as a reference optical fiber interface of the corresponding target optical fiber interface, or a reference optical fiber interface meeting the target performance condition may be screened out in the optical fiber channel interface card, so as to implement the test of the interface performance of the plurality of target optical fiber interfaces by using one reference optical fiber interface. When testing the interface performance of a plurality of target optical fiber interfaces by using one reference optical fiber interface, firstly constructing a connection relation between the reference optical fiber interface and each of the target optical fiber interfaces by using an interface connector, splitting reference test data stored in a reference storage space corresponding to the reference optical fiber interface in a first storage device according to a first number of the target optical fiber interfaces to be tested, obtaining reference sub-test data corresponding to each target optical fiber interface, and then calling a target connection link corresponding to each target optical fiber interface by using a reference test channel to send the corresponding reference sub-test data to a target storage device corresponding to the corresponding target optical fiber interface, thereby storing the reference sub-test data in a target storage space corresponding to the target storage device in the first storage device, wherein when the reference test channel sends the reference sub-test data to the target storage device, the reference sub-test data can be sent accordingly according to the position of the reference sub-test data in the reference test data, namely, the sequence of sending the reference sub-test data to the plurality of target optical fiber interfaces is determined according to the position of the corresponding reference sub-test data in the reference test data, and then predicting the performance of each target optical fiber interface corresponding to the target storage device; after the reference subtest data is stored in the target storage space of the corresponding target optical fiber interface, the corresponding target access channel can be called according to the sequence of sending the reference subtest data to the target optical fiber interface, the reference subtest data stored in the target storage space corresponding to the target access channel is transmitted to the reference storage space through the target connection link, and data writing information of writing the reference subtest data into the reference storage space is detected, so that the data sending performance of the target optical fiber interface corresponding to the reference subtest data is predicted according to the data writing information, wherein the target interface performance comprises the data sending performance and the data receiving performance. Through the content, batch testing of a plurality of target optical fiber interfaces through one reference optical fiber interface is realized, and the testing efficiency of the optical fiber interfaces is improved.
In the embodiment provided in step S204, a plurality of target connection optical fibers may be configured in the interface connector for each optical fiber interface, where the number of target connection optical fibers of each optical fiber interface is configured according to the number of other optical fiber interfaces included in the optical fiber channel interface card except for the current optical fiber interface, a first end of each optical fiber interface configured with a plurality of target connection optical fibers is connected to the current optical fiber interface, a second end of each target connection optical fiber is connected to the corresponding other optical fiber interface, and the interface connector may control the signal on-off state on the target connection optical fiber, so that the target connection link between the target optical fiber interface and the reference optical fiber interface may be constructed by controlling the signal link on the target connection optical fiber between the target optical fiber interface and the reference optical fiber interface to be in the path state.
Optionally, in an embodiment of the present application, a target performance condition is used to indicate that the data transmission performance of the reference optical fiber interface is greater than or equal to a target threshold.
In the embodiment provided in step S206 above, the target data access may include, but is not limited to, writing data to the target storage device or reading data from the target storage device.
Optionally, in the embodiment of the present application, the target access information is used to indicate an execution condition of executing the target data access operation on the target storage device, where the target access information may include, but is not limited to, a data writing bandwidth, an average data writing bandwidth, a writing delay, a data reading bandwidth, a data reading average bandwidth, a reading delay, and the like, which are not limited in this scheme.
In the embodiment provided in step S208, the target interface performance may be, but is not limited to, a target interface performance corresponding to the target access information determined from the access information and the interface performance having the correspondence relationship.
In an embodiment of the present application, the in-controller checkpointing of the access channels allowed to be identified by the fibre channel interface card as the second storage device may be implemented, but is not limited to, by an SCST driver deployed in the controller, FIG. 3 is an alternative SCST driver architecture diagram according to an embodiment of the present application, as shown in FIG. 3, the SCST driver refers to a universal SCSI target subsystem (SCST) of Linux, allowing complex storage devices to be created on any Linux machine. These devices may provide advanced functionality such as replication, thin provisioning, deduplication, high availability, automatic backup, and the like. The SCST device may use any link that supports SCSI style data exchange: iSCSI, fibre channel, FCoE, SAS, infiniBand (SRP), wide (parallel) SCSI, etc. The user layer of Scst drive provides a scstadmin interface that uses these instruction sets to enable communication between the FC card and the physical disk. The kernel layer provides a target drive, and can be connected with an FC protocol, namely the FC card is connected to the block device through scst core to realize communication. Scst drive has the function of creating luns (collectively logical unit number, namely, logical unit number. Scsi) with limited number of devices that can be hooked on the bus, typically 6 or 15, and can be described by target IDs (also called scsi IDs), and the function of luns is to expand target id. to have a plurality of lun devices under each target, which is usually abbreviated as lun device, and by using this function, FC card ports are mapped onto lun virtual ports, and further mapped onto physical disks, so as to implement data reading and writing.
The embodiment of the application mainly aims at the application of the FC card, and generally uses a server as an initiator terminal and a storage device as a target terminal for communication. In general, one device can only be used as an initiator terminal or a target terminal, so that data loop-back cannot be realized by using a single device. According to the link detection method based on the single control device, different ports of the FC are configured into different modes through software configuration, whether the ports of the current FC card can perform normal reading and writing can be detected, whether data sent by the FC card can be forwarded and received through an internal module or not can be detected, and the link health detection method of the FC card is increased.
As an optional implementation manner, the calling the target connection link through the reference access channel performs target data access on the target storage device to obtain target access information, which includes at least one of the following:
Invoking the target connection link to execute first data access to the target storage device through the reference access channel, wherein the first data access is used for writing first data stored in a reference storage space corresponding to the reference access channel in the first storage device into the target storage space, and the target data access comprises the first data access; monitoring a data writing parameter for writing the first data into the target storage space in the process of executing the first data access, wherein the target access information comprises the data writing parameter;
Invoking the target connection link to perform a second data access to the target storage device through the reference access channel, wherein the second data access is used for reading second data from the target storage space and storing the second data into the reference storage space, and the target data access comprises the second data access; and detecting a data reading parameter for reading the second data from the target storage space in the process of executing the second data access, wherein the target data access information comprises the data reading parameter.
Optionally, in the embodiment of the present application, a mapping relationship between an optical fiber interface connected to the access channel and a storage space allocated by the access channel in the first storage device is maintained in the access channel, so that the access channel may extract data from the storage space through the mapping relationship and send the data to the optical fiber interface, or the access channel may also store data received from the optical fiber interface into the storage space, which is not limited in this scheme.
Alternatively, in the embodiment of the present application, the data writing parameters may include, but are not limited to, a data writing bandwidth, an average data writing bandwidth, a writing delay, and the like, which is not limited in this scheme.
Optionally, in the embodiment of the present application, the data reading parameter may include, but is not limited to, a data reading bandwidth, a data reading average bandwidth, a reading delay, and the like, which is not limited in this scheme.
Through the above, the data can be written into the target storage device or read from the target storage device by calling the target connection link through the reference access channel, and the data needs to pass through the target optical fiber structure when the data is written into the target storage device and the data is read from the target storage device, so that the data writing performance and the data reading performance of the target optical fiber interface are determined through monitoring the data writing parameters and the data reading parameters of the target memory, and the accuracy of performance detection of the target optical fiber interface is improved.
As an optional implementation manner, the invoking the target connection link through the reference access channel to perform the first data access on the target storage device includes:
Searching a reference interface address of the reference optical fiber interface corresponding to the reference access channel from the interface address of the optical fiber interface with the corresponding relation and the access channel;
Transmitting the first data in the reference storage space to the reference optical fiber interface according to the reference interface address through the reference access channel, wherein the first data is used for being transmitted to the target optical fiber interface through the target connection link at the reference optical fiber interface;
Under the condition that the first data reported by the target optical fiber interface is received, determining the target access channel corresponding to the target optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the first data to the target storage space through the target access channel.
Through the above, the mapping relationship between the optical fibers and the access channels is constructed, so that the transmission relationship between the data from the storage space to the access channels and then to the optical fiber interfaces is realized, and each optical fiber interface can be identified as being connected with one storage device on the side of the optical fiber channel interface card, so that the virtual storage device for each optical fiber structure is realized in a virtual mode, and the complex operation of building a test environment during the interface performance test of the optical fiber channel interface card is avoided.
As an optional implementation manner, the invoking the target connection link through the reference access channel to perform the second data access on the target storage device includes:
Invoking the target connection link to send a data reading request to the target storage device through the reference access channel, wherein the data reading request is used for requesting to read the second data stored in the target storage space;
Under the condition that the data reading request reported by the target optical fiber interface is received, second data in the target storage space is sent to the target optical fiber interface through the target access channel, wherein the second data is transmitted to the reference optical fiber interface through the target connection link at the target optical fiber interface;
Under the condition that the second data reported by the reference optical fiber interface is received, determining the reference access channel corresponding to the reference optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the second data to the reference storage space through the reference access channel.
Optionally, in the embodiment of the present application, scst drivers are combined with FC card drivers, and FC card ports are mapped onto physical disks, so as to implement link diagnosis. By using a fio tool (which is a tool for testing the storage performance of hardware, an I/O load can be simulated to perform a pressure test on a storage medium, and I/O data of the storage medium is intuitively presented), so that reading and writing of an FC card port can be realized, and fig. 4 is a block diagram of an optional FC card performance testing device according to an embodiment of the present application, as shown in fig. 4, a controller (a CPU in the corresponding diagram) and a first storage device (a memory in the corresponding diagram) are disposed on a server for testing the performance of an FC card, and when performing a port reading operation, a user process fio sends a read request to a physical disk block device, data read from the physical disk is driven by scst to reach an FC port mounted on the physical disk, and is forwarded to another port through an optical fiber, so that data reading is realized (in a direction indicated by an orange arrow in the diagram). When writing operation is carried out, data to be written is forwarded to another FC card port through one port, and is driven by scst, and the data is written into a physical disk bound by the port (the direction indicated by a dotted line head in the figure). The specific implementation method is as follows:
1) Compiling scst to drive to a storage device, creating a virtual disk vmdisk by using a parameter open_dev by using a scstadmin command, and mapping the virtual disk vmdisk to an actual physical disk;
2) Mapping virtual disk vmdisk to FC card designation port, designated with FC card specific wwpn number;
3) Enabling the FC card port;
After the establishment is completed through the command, the FC card port is mapped to the disk device, and the specific method for forwarding port data and reading and writing is as follows:
Test environment: two ports (corresponding to the target optical fiber interface and the reference optical fiber interface) of the FC card are selected, the optical modules are respectively inserted, then the emitting end of the port 3 optical module is connected to the receiving end of the port 4 optical module through optical fibers, and the emitting end of the port 4 optical module is connected to the receiving end of the port 3 optical module through optical fibers, so that loop-back of the two ports is realized. Fig. 5 is a schematic diagram of an alternative optical fiber interface loopback connection according to an embodiment of the present application, as shown in fig. 5, the port 3 (i.e. the reference optical fiber interface) is connected with the port 4 (i.e. the target optical fiber interface) through an optical fiber, and a data transmitting port and a data receiving port are disposed in the reference optical fiber interface and the target optical fiber interface, so that the data transmitting port in the reference optical fiber interface is connected with the data receiving port in the target optical fiber interface, and the data receiving port in the reference optical fiber interface is connected with the data transmitting port in the target optical fiber interface. The specific test process is as follows:
1) Connecting the transmitting end of the port 1 optical module to the receiving end of the port 2 optical module through optical fibers, connecting the transmitting end of the port 2 optical module to the receiving end of the port 1 optical module through optical fibers, and connecting the optical modules of the two test ports;
2) Using a performance testing tool: a fio tool for performing random read-write test on the disk equipment mounted on the test port;
3) After the test is finished, fio outputs a series of data, such as average IO bandwidth, bandwidth and the like, and whether the read-write forwarding of the data of the FC card test port is normal can be known by checking the values;
4) If the data transmission fails, the port data forwarding is indicated to have a problem, and if the data transmission is successful, the data forwarding is indicated to be normal.
Through the above, the mapping relationship between the optical fibers and the access channels is constructed, so that the transmission relationship between the data from the storage space to the access channels and then to the optical fiber interfaces is realized, and each optical fiber interface can be identified as being connected with one storage device on the side of the optical fiber channel interface card, so that the virtual storage device for each optical fiber structure is realized in a virtual mode, and the complex operation of building a test environment during the interface performance test of the optical fiber channel interface card is avoided.
As an optional implementation manner, the detecting the target interface performance of the target optical fiber interface when transmitting data according to the target access information includes at least one of the following:
Matching a data reading parameter with a first parameter condition, wherein the data reading parameter is used for indicating a data reading condition of reading data from the target storage space corresponding to the target storage device, and the target access information comprises the data reading parameter; converting the data transmission performance of the target optical fiber interface according to the matching result of the data reading parameter and the first parameter condition, wherein the target interface performance comprises the data transmission performance;
Matching a data writing parameter with a second parameter condition, wherein the data writing parameter is used for indicating a data writing condition of writing data into the target storage space corresponding to the target storage device, and the target access information comprises the data writing parameter; and converting the data receiving performance of the target optical fiber interface according to the matching result of the data writing parameters and the second parameter conditions, wherein the target interface performance comprises the data receiving performance.
Optionally, in an embodiment of the present application, the first parameter condition may be a parameter condition set according to a data reading requirement of a user on the target optical fiber interface, and when the data reading parameter meets the first parameter condition, it may be determined that the target optical fiber interface meets the target performance condition.
Optionally, in the embodiment of the present application, the second parameter condition may be a parameter condition set according to a data writing requirement of a user on the target optical fiber interface, and when the data writing parameter meets the second parameter condition, it may be determined that the target optical fiber interface meets the target performance condition.
Through the above, the data sending performance of the target optical fiber interface for sending data is determined by setting the first parameter condition of the data reading parameter and the second parameter condition corresponding to the data writing parameter, and then by matching the data reading parameter with the first parameter condition, the data receiving performance of the target optical fiber interface for receiving data is determined by matching the data writing parameter with the second parameter condition, and the accuracy of the interface performance detection result of the optical fiber channel interface card is improved.
As an alternative embodiment, the constructing, by the interface connector, the target connection link between the target optical fiber interface and the reference optical fiber interface includes:
Screening out the reference optical fiber interfaces meeting the target performance condition from other optical fiber interfaces on the optical fiber channel interface card, wherein the other optical fiber interfaces are the optical fiber interfaces on the optical fiber channel interface card except the target optical fiber interfaces;
generating a target control instruction according to a first interface address corresponding to the target optical fiber interface and a second interface address corresponding to the reference optical fiber interface;
and sending the target control instruction to the interface connector, wherein the interface connector is used for responding to the target control instruction and controlling the connection link between the first interface address and the second interface address to be in a communicating state.
Optionally, in the embodiment of the present application, the controller maintains the interface performance test result of each optical fiber interface in the optical fiber channel interface card, and the target performance condition may be, but not limited to, a target threshold value for characterizing the data transmission performance of the interface, where the target threshold value may be a preset fixed value, or set according to the data transmission performance of the optical fiber interface that has been tested, and this scheme is not limited.
Through the above, by arranging the interface connector, under the condition that the target optical fiber interface to be tested and the reference optical fiber interface for testing the target optical fiber interface are determined, the target connection link between the target optical fiber interface and the reference optical fiber interface is automatically constructed through the interface connector, so that a tester is prevented from manually constructing the interface connection link, and the interface performance testing efficiency of the optical fiber interface is improved.
As an alternative embodiment, each of the optical fiber interfaces includes a transmitting port for transmitting data to the outside and a receiving port for receiving data, the interface connectors are respectively connected with the transmitting port and the receiving port of each of the optical fiber interfaces,
The method for testing the interface performance further comprises the following steps:
receiving a reference test request, wherein the reference test request is used for requesting to test the data transmission performance of the optical fiber communication interface card;
Responding to the reference test request, and screening out candidate optical fiber interfaces meeting the target performance condition from the optical fiber interfaces included in the optical fiber communication interface card;
Constructing a candidate connection link between a candidate sending port and a candidate receiving port of the candidate optical fiber interface through the interface connector;
Transmitting a target instruction to the fibre channel interface card, wherein the target instruction is used for indicating that first cache data stored in a first register corresponding to the candidate transmitting port is transmitted to a second register corresponding to the candidate receiving port through the candidate connecting link, the first register is used for temporarily storing data to be transmitted by the candidate transmitting port, and the second register is used for temporarily storing data received by the candidate receiving port;
Under the condition that the first cache data in the first register is determined to be sent completely, matching the second cache data received by the second register with the first cache data;
And under the condition that the first cache data and the second cache data are matched and consistent, determining that the data transmission performance of the optical fiber communication interface card meets a preset performance condition.
In the embodiment of the application, the diagnosis of the internal link of the FC card can be realized in a further mode, and the method comprises the following steps:
Test environment: selecting one of the ports of the FC card, inserting the optical module, connecting the receiving end and the transmitting end of the optical module through an optical fiber, enabling data to enter the receiving end of the optical module from the transmitting end of the optical module through the optical fiber and enter the port of the FC card, and realizing self-loopback of the ports, wherein FIG. 6 is an optional port self-loopback connection schematic diagram according to an embodiment of the application, and the data transmitting port and the data receiving port included in the port 4 are connected in a self-loopback manner through the optical fiber as shown in FIG. 6. The specific test process is as follows:
1) Connecting the head fiber and the tail fiber of an optical fiber to an optical module of an FC card test port, wherein the test port of the FC card is in a diagnosis mode;
2) Inquiring an FC card chip manual, acquiring a register value of an FC card sending message, and enabling the FC card chip to start sending a data message by operating the register;
3) The data packet sent by the chip is forwarded to the sending end of the optical module through the internal link of the FC card, and the sending end of the optical module is transmitted back to the receiving end of the optical module through the optical fiber, so that the self-loop-back of the port is realized. The optical module receiving end transmits the received data packet back to the chip through the FC card internal link;
4) At this time, a register of the number of messages received and sent by the FC card is obtained, and whether the data packet received by the FC card is equal to the sent data packet is read. If the data message received by the FC card is 0, the internal forwarding link is not communicated, and the link is abnormal; if the number of the sending messages and the number of the receiving messages of the FC card are not equal, the data forwarded inside the FC card loses the packet, and the link quality is problematic; if the data message sent by the FC card is equal to the number of the received messages, the link is normal.
5) By using the method, the self-loopback test of long-time message forwarding can be performed, and the link stability of forwarding data inside the FC card can be tested.
The application combines scst drive and FC card drive, mounts the test net port to the disk device, and proposes two link detection modes of the FC card based on single control device, one is that the FC card is self-looped, the receiving and transmitting ends of the optical modules of one port of the FC card are connected by using optical fibers, and then a data register is operated to realize the detection of the internal link of the FC card; one is FC card dual port loopback, which connects two FC card ports and uses FIO tool to read and write disk test. Through the two modes, whether internal data forwarding of the current FC card is normal or not can be checked, and whether the FIO bandwidth is normal or not is checked, so that the health diagnosis standard of the FC card is increased, and the quality of components is improved.
The application has at least the following advantages:
1. Vmdisk is simulated in the equipment memory by utilizing scst technology, and is used as a target storage target unit for FC card test, scst drive and FC card drive are combined, and a test network port is mapped to the disk equipment, so that a read-write and data forwarding mode of the FC card is realized.
2. The FC card port self-loop-back link detection is carried out, the receiving and transmitting ends of the optical modules of one port of the FC card are connected by utilizing the optical fiber, data are sent through the FC card chip, the data are forwarded inside the FC card to the transmitting end of the optical module, and the data packet is forwarded to the receiving end of the optical module through the optical fiber, so that the port self-loop-back is realized. By the method, whether the internal data forwarding of the FC card is normal or not can be detected, and diagnosis of the internal data forwarding link of the FC card is realized.
3. The method comprises the steps of performing loop-back link detection on the double ports of the FC card, connecting optical modules of two test ports by using optical fibers, introducing SCST (serial bus interface) drive, mounting the ports of the FC card on a disk device, performing read-write test on the device mounted on the test ports of the FC card by using a fio detection tool, and detecting whether the performance forwarding of the FC card is normal or not, so that port link diagnosis can be realized.
From the description of the above embodiments, it will be clear to a person skilled in the art that the method according to the above embodiments may be implemented by means of software plus the necessary general hardware platform, but of course also by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a storage medium (e.g. ROM/RAM, magnetic disk, optical disk) comprising instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method according to the embodiments of the present application.
The embodiment also provides a device for testing the performance of an interface, which is used for implementing the above embodiment and the preferred implementation manner, and is not described in detail. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
Fig. 7 is a block diagram of a structure of an interface performance testing apparatus according to an embodiment of the present application, applied to a controller, where the controller is connected between a first storage device and a fibre channel interface card to be tested, the fibre channel interface card includes a plurality of optical interfaces for transmitting data, the optical interfaces are respectively connected with interface connectors, a plurality of access channels allowed to be identified by the fibre channel interface card as a second storage device are established in the controller, the optical interfaces are allocated with the corresponding access channels, and the access channels are allocated with the corresponding storage space on the first storage device, as shown in fig. 7, where the apparatus includes:
A first receiving module 702, configured to receive a target test request, where the target test request is used to request to test performance of a target optical fiber interface on the optical fiber channel interface card when transmitting data;
a first construction module 704, configured to respond to the target test request, and construct a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, where the reference optical fiber interface is an optical fiber interface in the fibre channel interface card that meets a target performance condition;
A calling module 706, configured to call, through a reference access channel, the target connection link to perform target data access on a target storage device to obtain target access information, where the target data access is data access on a target storage space corresponding to a target access channel in the first storage device, the target access channel is an access channel identified as the target storage device in an access channel established in the controller, the reference access channel is a storage channel allocated to the reference optical fiber interface in the access channel established in the controller, and the second storage device includes the target storage device;
And the detection module 708 is configured to detect, according to the target access information, a target interface performance of the target optical fiber interface when transmitting data.
Through the above, the first storage device and the controller are configured for the fibre channel interface card to be tested, the controller is connected to the fibre channel interface card and the first storage device, a plurality of access channels are established on the controller, each access channel is allocated to a corresponding storage space on the first storage device, each channel is allocated to a corresponding fibre interface in the fibre channel interface card, and further each fibre interface can be identified to be connected with a corresponding second storage device on the side of the fibre channel interface card, so that when the performance of the target fibre interface needs to be tested, a target connection link between a reference fibre interface and the target fibre interface is constructed by using the interface connector, and then target data access can be performed on the target storage device by calling a reference access channel corresponding to the reference fibre interface, so that the test of the interface performance of the fibre interface on the fibre channel interface card in transmitting data in a data access mode is realized, the complex test environment during the test of the interface performance in the related technology is avoided, the problem of low performance of the interface in the related technology is solved, and the test effect of the performance of the interface can be achieved.
Optionally, the calling module includes:
A first calling unit, configured to call, through the reference access channel, the target connection link to perform a first data access on the target storage device, where the first data access is used to write first data stored in a reference storage space corresponding to the reference access channel in the first storage device into the target storage space, and the target data access includes the first data access; monitoring a data writing parameter for writing the first data into the target storage space in the process of executing the first data access, wherein the target access information comprises the data writing parameter;
A second calling unit, configured to call, through the reference access channel, the target connection link to perform a second data access on the target storage device, where the second data access is used to read a second data store from the target storage space into the reference storage space, and the target data access includes the second data access; and detecting a data reading parameter for reading the second data from the target storage space in the process of executing the second data access, wherein the target data access information comprises the data reading parameter.
Optionally, the first calling unit is further configured to:
Searching a reference interface address of the reference optical fiber interface corresponding to the reference access channel from the interface address of the optical fiber interface with the corresponding relation and the access channel;
Transmitting the first data in the reference storage space to the reference optical fiber interface according to the reference interface address through the reference access channel, wherein the first data is used for being transmitted to the target optical fiber interface through the target connection link at the reference optical fiber interface;
Under the condition that the first data reported by the target optical fiber interface is received, determining the target access channel corresponding to the target optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the first data to the target storage space through the target access channel.
Optionally, the second calling unit is further configured to:
Invoking the target connection link to send a data reading request to the target storage device through the reference access channel, wherein the data reading request is used for requesting to read the second data stored in the target storage space;
Under the condition that the data reading request reported by the target optical fiber interface is received, second data in the target storage space is sent to the target optical fiber interface through the target access channel, wherein the second data is transmitted to the reference optical fiber interface through the target connection link at the target optical fiber interface;
Under the condition that the second data reported by the reference optical fiber interface is received, determining the reference access channel corresponding to the reference optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the second data to the reference storage space through the reference access channel.
Optionally, the detection module includes:
The first matching unit is used for matching a data reading parameter with a first parameter condition, wherein the data reading parameter is used for indicating a data reading condition of reading data from the target storage space corresponding to the target storage device, and the target access information comprises the data reading parameter; converting the data transmission performance of the target optical fiber interface according to the matching result of the data reading parameter and the first parameter condition, wherein the target interface performance comprises the data transmission performance;
The second matching unit is used for matching a data writing parameter with a second parameter condition, wherein the data writing parameter is used for indicating the data writing condition of writing data into the target storage space corresponding to the target storage device, and the target access information comprises the data writing parameter; and converting the data receiving performance of the target optical fiber interface according to the matching result of the data writing parameters and the second parameter conditions, wherein the target interface performance comprises the data receiving performance.
Optionally, the first building module includes:
the screening unit is used for screening the reference optical fiber interfaces meeting the target performance condition from other optical fiber interfaces on the optical fiber channel interface card, wherein the other optical fiber interfaces are the optical fiber interfaces on the optical fiber channel interface card except the target optical fiber interfaces;
The generating unit is used for generating a target control instruction according to a first interface address corresponding to the target optical fiber interface and a second interface address corresponding to the reference optical fiber interface;
and the sending unit is used for sending the target control instruction to the interface connector, wherein the interface connector is used for responding to the target control instruction and controlling the connection link between the first interface address and the second interface address to be in a communication state.
Optionally, the apparatus includes:
The second receiving module is used for receiving a reference test request, wherein the reference test request is used for requesting to test the data transmission performance of the optical fiber communication interface card;
The screening module is used for responding to the reference test request and screening candidate optical fiber interfaces meeting the target performance condition from the optical fiber interfaces included in the optical fiber communication interface card;
A second construction module, configured to construct, through the interface connector, a candidate connection link between a candidate transmission port and a candidate reception port of the candidate optical fiber interface;
The sending module is used for sending a target instruction to the fiber channel interface card, wherein the target instruction is used for indicating to transmit first cache data stored in a first register corresponding to the candidate sending port to a second register corresponding to the candidate receiving port through the candidate connecting link, the first register is used for temporarily storing data to be sent by the candidate sending port, and the second register is used for temporarily storing data received by the candidate receiving port;
The matching module is used for matching the second cache data received by the second register with the first cache data under the condition that the first cache data in the first register is determined to be sent completely;
the determining module is used for determining that the data transmission performance of the optical fiber communication interface card meets the preset performance condition under the condition that the first cache data and the second cache data are matched and consistent.
It should be noted that each of the above modules may be implemented by software or hardware, and for the latter, it may be implemented by, but not limited to: the modules are all located in a co-processor; or the above modules may be located in different processors in any combination.
Embodiments of the present application also provide a computer readable storage medium having a computer program stored therein, wherein the computer program is arranged to perform the steps of any of the method embodiments described above when run.
In one exemplary embodiment, the computer readable storage medium may include, but is not limited to: a usb disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory RAM), a removable hard disk, a magnetic disk, or an optical disk, or other various media capable of storing a computer program.
An embodiment of the application also provides an electronic device comprising a memory having stored therein a computer program and a processor arranged to run the computer program to perform the steps of any of the method embodiments described above.
In an exemplary embodiment, the electronic device may further include a transmission device connected to the processor, and an input/output device connected to the processor.
Embodiments of the application also provide a computer program product comprising a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
Embodiments of the present application also provide another computer program product comprising a non-volatile computer readable storage medium storing a computer program which, when executed by a processor, implements the steps of any of the method embodiments described above.
Embodiments of the present application also provide a computer program comprising computer instructions stored on a computer readable storage medium; the processor of the computer device reads the computer instructions from the computer readable storage medium and the embedder executes the computer instructions to cause the computer device to perform the steps of any of the method embodiments described above.
Specific examples in this embodiment may refer to the examples described in the foregoing embodiments and the exemplary implementation, and this embodiment is not described herein.
It will be appreciated by those skilled in the art that the modules or steps of the application described above may be implemented in a general purpose computing device, they may be concentrated on a single computing device, or distributed across a network of computing devices, they may be implemented in program code executable by computing devices, so that they may be stored in a storage device for execution by computing devices, and in some cases, the steps shown or described may be performed in a different order than that shown or described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple modules or steps of them may be fabricated into a single integrated circuit module. Thus, the present application is not limited to any specific combination of hardware and software.
The above description is only of the preferred embodiments of the present application and is not intended to limit the present application, but various modifications and variations can be made to the present application by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the principle of the present application should be included in the protection scope of the present application.

Claims (10)

1. A method for testing interface performance is characterized in that,
The method is applied to a controller, the controller is connected between a first storage device and a fiber channel interface card to be tested, the fiber channel interface card comprises a plurality of fiber interfaces for transmitting data, the fiber interfaces are respectively connected with an interface connector, a plurality of access channels which are allowed to be identified as a second storage device by the fiber channel interface card are established in the controller, the fiber interfaces are allocated with the corresponding access channels, and the access channels are allocated with the corresponding storage space on the first storage device, and the method comprises the following steps:
receiving a target test request, wherein the target test request is used for requesting to test the performance of a target optical fiber interface on the optical fiber channel interface card when data is transmitted;
Responding to the target test request, and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, wherein the reference optical fiber interface is an optical fiber interface meeting target performance conditions in the optical fiber channel interface card;
Executing target data access on target storage equipment through a reference access channel to acquire target access information, wherein the target data access is data access on a target storage space corresponding to a target access channel in the first storage equipment, the target access channel is an access channel which is identified as the target storage equipment in an access channel established in the controller, the reference access channel is a storage channel which is allocated to the reference optical fiber interface in the access channel established in the controller, and the second storage equipment comprises the target storage equipment;
And detecting the performance of the target interface of the target optical fiber interface when transmitting data according to the target access information.
2. The method of claim 1, wherein the step of determining the position of the substrate comprises,
And the target data access is executed on the target storage device by calling the target connection link through the reference access channel, so as to obtain target access information, wherein the target access information comprises at least one of the following steps:
Invoking the target connection link to execute first data access to the target storage device through the reference access channel, wherein the first data access is used for writing first data stored in a reference storage space corresponding to the reference access channel in the first storage device into the target storage space, and the target data access comprises the first data access; monitoring a data writing parameter for writing the first data into the target storage space in the process of executing the first data access, wherein the target access information comprises the data writing parameter;
Invoking the target connection link to perform a second data access to the target storage device through the reference access channel, wherein the second data access is used for reading second data from the target storage space and storing the second data into the reference storage space, and the target data access comprises the second data access; and detecting a data reading parameter for reading the second data from the target storage space in the process of executing the second data access, wherein the target data access information comprises the data reading parameter.
3. The method of claim 2, wherein the step of determining the position of the substrate comprises,
The invoking the target connection link through the reference access channel to perform a first data access to the target storage device includes:
Searching a reference interface address of the reference optical fiber interface corresponding to the reference access channel from the interface address of the optical fiber interface with the corresponding relation and the access channel;
Transmitting the first data in the reference storage space to the reference optical fiber interface according to the reference interface address through the reference access channel, wherein the first data is used for being transmitted to the target optical fiber interface through the target connection link at the reference optical fiber interface;
Under the condition that the first data reported by the target optical fiber interface is received, determining the target access channel corresponding to the target optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the first data to the target storage space through the target access channel.
4. The method of claim 2, wherein the step of determining the position of the substrate comprises,
The invoking the target connection link through the reference access channel to perform a second data access to the target storage device includes:
Invoking the target connection link to send a data reading request to the target storage device through the reference access channel, wherein the data reading request is used for requesting to read the second data stored in the target storage space;
Under the condition that the data reading request reported by the target optical fiber interface is received, second data in the target storage space is sent to the target optical fiber interface through the target access channel, wherein the second data is transmitted to the reference optical fiber interface through the target connection link at the target optical fiber interface;
Under the condition that the second data reported by the reference optical fiber interface is received, determining the reference access channel corresponding to the reference optical fiber interface from the optical fiber interface and the access channel with corresponding relation;
and storing the second data to the reference storage space through the reference access channel.
5. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The detecting the target interface performance of the target optical fiber interface when transmitting data according to the target access information comprises at least one of the following steps:
Matching a data reading parameter with a first parameter condition, wherein the data reading parameter is used for indicating a data reading condition of reading data from the target storage space corresponding to the target storage device, and the target access information comprises the data reading parameter; converting the data transmission performance of the target optical fiber interface according to the matching result of the data reading parameter and the first parameter condition, wherein the target interface performance comprises the data transmission performance;
Matching a data writing parameter with a second parameter condition, wherein the data writing parameter is used for indicating a data writing condition of writing data into the target storage space corresponding to the target storage device, and the target access information comprises the data writing parameter; and converting the data receiving performance of the target optical fiber interface according to the matching result of the data writing parameters and the second parameter conditions, wherein the target interface performance comprises the data receiving performance.
6. The method of claim 1, wherein the step of determining the position of the substrate comprises,
The constructing, by the interface connector, a target connection link between the target fiber interface and a reference fiber interface, including:
Screening out the reference optical fiber interfaces meeting the target performance condition from other optical fiber interfaces on the optical fiber channel interface card, wherein the other optical fiber interfaces are the optical fiber interfaces on the optical fiber channel interface card except the target optical fiber interfaces;
generating a target control instruction according to a first interface address corresponding to the target optical fiber interface and a second interface address corresponding to the reference optical fiber interface;
and sending the target control instruction to the interface connector, wherein the interface connector is used for responding to the target control instruction and controlling the connection link between the first interface address and the second interface address to be in a communicating state.
7. The method of claim 1, wherein the step of determining the position of the substrate comprises,
Each of the optical fiber interfaces includes a transmitting port for transmitting data to the outside and a receiving port for receiving data, the interface connectors are respectively connected with the transmitting port and the receiving port of each of the optical fiber interfaces,
The method for testing the interface performance further comprises the following steps:
receiving a reference test request, wherein the reference test request is used for requesting to test the data transmission performance of the optical fiber communication interface card;
Responding to the reference test request, and screening out candidate optical fiber interfaces meeting the target performance condition from the optical fiber interfaces included in the optical fiber communication interface card;
Constructing a candidate connection link between a candidate sending port and a candidate receiving port of the candidate optical fiber interface through the interface connector;
Transmitting a target instruction to the fibre channel interface card, wherein the target instruction is used for indicating that first cache data stored in a first register corresponding to the candidate transmitting port is transmitted to a second register corresponding to the candidate receiving port through the candidate connecting link, the first register is used for temporarily storing data to be transmitted by the candidate transmitting port, and the second register is used for temporarily storing data received by the candidate receiving port;
Under the condition that the first cache data in the first register is determined to be sent completely, matching the second cache data received by the second register with the first cache data;
And under the condition that the first cache data and the second cache data are matched and consistent, determining that the data transmission performance of the optical fiber communication interface card meets a preset performance condition.
8. A testing device for interface performance is characterized in that,
The device is applied to a controller, the controller is connected between a first storage device and a fiber channel interface card to be tested, the fiber channel interface card comprises a plurality of fiber interfaces for transmitting data, the fiber interfaces are respectively connected with an interface connector, a plurality of access channels which are allowed to be identified as a second storage device by the fiber channel interface card are established in the controller, the fiber interfaces are allocated with corresponding access channels, and the access channels are allocated with corresponding storage spaces on the first storage device, and the device comprises:
the first receiving module is used for receiving a target test request, wherein the target test request is used for requesting to test the performance of a target optical fiber interface on the optical fiber channel interface card when data is transmitted;
the first construction module is used for responding to the target test request and constructing a target connection link between the target optical fiber interface and a reference optical fiber interface through the interface connector, wherein the reference optical fiber interface is an optical fiber interface meeting target performance conditions in the optical fiber channel interface card;
The calling module is used for calling the target connection link to execute target data access on target storage equipment through a reference access channel to obtain target access information, wherein the target data access is data access on a target storage space corresponding to the target access channel in the first storage equipment, the target access channel is an access channel which is identified as the target storage equipment in the access channels established in the controller, the reference access channel is a storage channel which is allocated to the reference optical fiber interface in the access channels established in the controller, and the second storage equipment comprises the target storage equipment;
and the detection module is used for detecting the performance of the target interface of the target optical fiber interface when the data is transmitted according to the target access information.
9. A computer-readable storage medium comprising,
The computer readable storage medium has stored therein a computer program, wherein the computer program when executed by a processor realizes the steps of the method as claimed in any of claims 1 to 7.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, characterized in that,
The processor, when executing the computer program, implements the steps of the method as claimed in any one of claims 1 to 7.
CN202410939227.6A 2024-07-12 2024-07-12 Interface performance testing method and device Pending CN118885344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410939227.6A CN118885344A (en) 2024-07-12 2024-07-12 Interface performance testing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410939227.6A CN118885344A (en) 2024-07-12 2024-07-12 Interface performance testing method and device

Publications (1)

Publication Number Publication Date
CN118885344A true CN118885344A (en) 2024-11-01

Family

ID=93223394

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202410939227.6A Pending CN118885344A (en) 2024-07-12 2024-07-12 Interface performance testing method and device

Country Status (1)

Country Link
CN (1) CN118885344A (en)

Similar Documents

Publication Publication Date Title
CN110430100B (en) Network connectivity detection method and device
CN111654519B (en) Method and device for transmitting data processing requests
US8412858B2 (en) Techniques for indicating a passive state for a device
US8032581B2 (en) Persistent information unit pacing
US8495255B2 (en) Discovery and configuration of device configurations
US8819374B1 (en) Techniques for performing data migration
WO2022052953A1 (en) Failed link handover method and system, and related device
CN115344197A (en) Data access method, network card and server
US20220222016A1 (en) Method for accessing solid state disk and storage device
CN113312143A (en) Cloud computing system, command processing method and virtualization simulation device
CN116627861B (en) Data processing method and system based on expander, electronic equipment and storage medium
CN112039722A (en) MQTT protocol simulation method and simulation equipment
US8065133B1 (en) Method for testing a storage network including port level data handling
CN109428778B (en) Mainboard network connectivity test method and device
CN115080479B (en) Transmission method, server, device, bare metal instance and baseboard management controller
US7266730B2 (en) Information system
CN118885344A (en) Interface performance testing method and device
CN117632497A (en) Data processing method based on DPU and related equipment
US12105613B2 (en) Performance scale testing with I/O reuse
US9286253B2 (en) System and method for presenting devices through an SAS initiator-connected device
CN115391202A (en) Multi-control cluster race performance testing method, device, terminal and storage medium
CN113438749A (en) Multi-public-network connection driving method and device, computer equipment and storage medium
US9071544B2 (en) Method and system for managing network elements
CN110166558B (en) Communication method, device and equipment of multi-control storage cluster
CN115801633B (en) Multi-client sharing concurrency performance testing method and system for SAN storage

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination