Data transceiving method and device based on DPU, electronic equipment and storage medium

By plugging the DPU card into the main device, the processing of the NVMe-oF and RDMA protocols is offloaded to the DPU card, which solves the problem of excessive CPU resource consumption of the NVMe over RDMA protocol stack in high-bandwidth applications and achieves more efficient data Transceiver processing and hardware design are simplified.

CN118764548APending Publication Date: 2024-10-11YUSUR TECH CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410762752.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-13
Publication Date
2024-10-11

AI Technical Summary

Technical Problem

In high-bandwidth application scenarios, the software-based NVMe over RDMA protocol stack consumes too much CPU resources, causing storage performance indicators such as latency, throughput, and IOPS to reach performance bottlenecks, making it difficult to achieve the same execution performance as hardware.

Method used

By plugging the DPU card into the main device, the conversion processing of the NVMe-oF and RDMA protocols is offloaded to the DPU card, and the protocol processing module and co-processor in the DPU card are used to perform data sending and receiving operations, thereby reducing the CPU resource consumption of the main device. And achieve simplified design and low cost through hardware.

Benefits of technology

It greatly reduces the CPU resource consumption of the main device, improves the efficiency of data sending and receiving processing, reduces the data processing delay, and reduces the complexity and cost of hardware implementation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118764548A_ABST
    Figure CN118764548A_ABST
Patent Text Reader

Abstract

The invention provides a data transceiving method and device based on a DPU (Data Processing Unit), electronic equipment and a storage medium, which are applied to a DPU card comprising a first protocol processing module, a second protocol processing module and a storage module. The method comprises the steps that a first protocol processing module responds to a data receiving and sending instruction of main equipment and communicates with a second protocol processing module cooperatively to determine a data access address corresponding to the data receiving and sending instruction in a storage module; and transmitting the transmission data of the data transceiving instruction between the main equipment and the storage module based on the first protocol format and the data access address through the first protocol processing module, and transmitting the transmission data of the data transceiving instruction between the network equipment and the storage module based on the second protocol format and the data access address through the second protocol processing module. Therefore, the protocol conversion processing is unloaded from the main device to the DPU card, so that the CPU resource occupancy rate of the data receiving and transmitting service to the host can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data transmission, and in particular to a DPU-based data transmission and reception method, device, electronic device and storage medium. Background Art

[0002] NVMe over Fabric (NVMe oF for short) is a relatively new protocol specification designed to use NVMe to connect host devices to network storage devices through a network structure. Currently, the fabric transmissions supported and used by NVMe include NVMe-oF using RDMA (also known as NVMe over RDMA), NVMe-oF using Fibre Channel, and NVMe-oF using TCP. Among them, the NVMe over RDMA specification uses remote direct memory access (RDMA) to enable data and memory to be transferred between computers and storage devices over the network.

[0003] Although RDMA is the fastest and lowest-cost transmission mechanism for transmitting data over the network in the existing technology, it needs to be implemented by running RDMA user-mode drivers or kernel-mode drivers. In some application scenarios, when the network bandwidth reaches 50Gbps, 100Gbps or even higher, a large amount of CPU resources are required to specifically process RDMA, NVMe-oF and other protocol stacks.

[0004] In addition, software-implemented NVMe over RDMA can easily cause various storage performance indicators (for example, latency, throughput, IOPS, etc.) to reach performance bottlenecks earlier during disk read and write processes. If you want to achieve the same execution performance as hardware, you need to consume more CPU resources. Summary of the invention

[0005] In view of this, an embodiment of the present application provides a DPU-based data transmission and reception solution, by plugging a DPU card into the main device to offload the protocol conversion processing in the data transmission and reception task from the main device to the DPU card, thereby improving the data transmission and reception processing efficiency and reducing the CPU resource consumption of the main device for the data transmission and reception task.

[0006] According to a first aspect of an embodiment of the present application, a DPU-based data transceiving method is provided, which is applied to a DPU card connecting a main device and a network device, wherein the DPU card includes a first protocol processing module connected to the main device, a second protocol processing module connected to the network device, and a storage module connected to the first protocol processing module and the second protocol processing module, wherein the method includes: communicating and negotiating with the second protocol processing module in response to a data transceiving instruction of the main device through the first protocol processing module to determine a data access address corresponding to the data transceiving instruction in the storage module; transmitting, through the first protocol processing module, transmission data of the data transceiving instruction between the main device and the storage module based on a first protocol format and the data access address, and transmitting, through the second protocol processing module, transmission data of the data transceiving instruction between the network device and the storage module based on a second protocol format different from the first protocol format and the data access address, so as to collaboratively execute the data transceiving operation of the data transceiving instruction.

[0007] According to a second aspect of an embodiment of the present application, a DPU-based data transceiver device is provided, which is applied to a DPU card connecting a main device and a network device, wherein the DPU card includes a first protocol processing module connected to the main device, a second protocol processing module connected to the network device, and a storage module connected to the first protocol processing module and the second protocol processing module, and the device includes: a control unit, which is configured to communicate and negotiate with the second protocol processing module through the first protocol processing module in response to a data transceiver instruction of the main device, so as to determine a data access address corresponding to the data transceiver instruction in the storage module; a transmission unit, which is configured to transmit the transmission data of the data transceiver instruction between the main device and the storage module based on a first protocol format and the data access address through the first protocol processing module, and transmit the transmission data of the data transceiver instruction between the network device and the storage module through the second protocol processing module based on a second protocol format different from the first protocol format and the data access address, so as to collaboratively execute the data transceiver operation of the data transceiver instruction.

[0008] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising: a memory and a processor, wherein a computer program is stored in the memory, and when the computer program is executed by the processor, the method described in the first aspect is implemented.

[0009] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, wherein the computer storage medium stores a computer program code, and when the computer program code is executed by a processor, the processor executes the method described in the first aspect.

[0010] To sum up, the DPU-based data transmission and reception solution provided by various aspects of the present application, by offloading the protocol conversion processing from the main device to the DPU card to execute the data transmission and reception (reading and writing) tasks of the main device, can not only reduce the CPU resources of the main device required to execute data transmission and reception tasks, but also has the advantages of simple hardware architecture design and low hardware implementation cost. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0012] Figure 1 Schematic diagram of a system architecture suitable for implementing the DPU-based data transceiver solution of the present application.

[0013] Figure 2 for Figure 1 Another exemplary embodiment diagram of a system architecture is shown.

[0014] Figure 3 This is a processing flow chart of a DPU-based data transceiver method according to an exemplary embodiment of the present application.

[0015] Figure 4 This is a processing flow chart of a DPU-based data transceiving method according to another exemplary embodiment of the present application.

[0016] Figure 5 This is a processing flow chart of a DPU-based data transceiving method according to another exemplary embodiment of the present application.

[0017] Figure 6 This is a structural block diagram of a DPU-based data transceiver device according to an exemplary embodiment of the present application.

[0018] Figure 7 It is a structural block diagram of an electronic device according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0019] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the embodiments of the present application should fall within the scope of protection of the embodiments of the present application.

[0020] NVMe over Fabrics, also known as NVMe oF, is a relatively new protocol specification designed to connect hosts to network storage through a network fabric using NVMe. Compared to the traditional iSCSI protocol for network storage access, NVMe-oF supports organizations to create ultra-high-performance storage networks with latency comparable to direct-attached storage. As a result, fast storage devices can be shared between servers on demand. NVMe-oF can be seen as an alternative to SCSI or iSCSI over Fibre Channel, with the advantages of lower latency, higher I / O rates, and better productivity.

[0021] Currently, NVMe supports and uses three types of structural transmissions: NVMe-oF using RDMA (or NVMe over RDMA), NVMe-oF using Fibre Channel, and NVMe-oF using TCP. Among them, the NVMe over RDMA specification enables data and memory to be transferred between computers and storage devices over the network by using remote direct memory access (RDMA).

[0022] Specifically, RDMA (Remote Direct Memory Access) technology, i.e. remote direct memory access, is a high-performance network communication technology. It can use dedicated hardware on the network adapter, such as the RDMA engine on the network card, to bypass the operating system kernel and directly transmit data under the network transport layer. This direct memory access method can reduce the delay of data transmission and the load of the CPU, improve the efficiency of network communication, and is currently the fastest and lowest-cost data transmission mechanism for transmitting data over the network. However, this data transmission mechanism needs to be implemented by running the RDMA user-mode driver or kernel-mode driver. When the network bandwidth reaches 50Gbps, 100Gbps or even higher, it is necessary to consume CPU resources in the main device to specifically process RDMA, NVMe-oF and other protocol stacks.

[0023] Furthermore, software-implemented NVMe over RDMA can easily cause various storage performance indicators (such as latency, throughput, IOPS, etc.) to reach performance bottlenecks earlier during the data reading and writing process. If you want to achieve the same execution performance as hardware, you need to consume more CPU resources.

[0024] In order to solve the performance problems caused by the software-based implementation of NVMe over RDMA, the embodiments of the present disclosure propose a semi-unload system and implementation scheme of NVMe over RDMA (Initiator), which can reduce the occupancy rate of the CPU resources of the main device for data transmission and reception services, while taking into account the complexity of hardware implementation. The specific implementation of each embodiment of the present application will be described in detail below in conjunction with the accompanying drawings.

[0025] Figure 1 Schematic diagram of the hardware architecture of the DPU-based data transceiver method suitable for implementing the various embodiments of the present application. Figure 1 As shown, the system architecture 100 mainly includes a main device 110 , a network device 130 , and a DPU (Data Processing Unit) card 120 connected to the main device 110 and the network device 130 .

[0026] The host device 110 may be any suitable device for storing information, data, programs and / or any other suitable type of content, including but not limited to: a storage system device, a server cluster, a cloud server, etc.

[0027] In some embodiments, the master device 110 may include a host memory 112 for storing the data sent and received by the master device 110. For example, the host memory 112 may include, but is not limited to, a DDR memory (double data rate synchronous dynamic random access memory).

[0028] The network device 130 can be connected to the main device 110 for communication and interaction of network data transmission, and the network device 130 may include but is not limited to: storage system equipment, server clusters, cloud servers, etc. It should be noted that the number of network devices 130 is not limited to the number shown in the drawings, and can be increased or decreased according to actual needs, and this application does not limit this.

[0029] The DPU card 120 can be respectively connected to the main device 110 and the network device 130 for communication, so as to read data from the main device 110 and send it to the network device 130, or receive data from the network device 130 and write it to the main device 110, thereby realizing the data sending and receiving operation of the main device 110.

[0030] For example, in Figure 2 In the system architecture 200 shown, the DPU card 220 can be plugged into the main device 210 through the PCIE (Peripheral Component Interconnect Express) module 221, so that the DPU card 220 becomes a peripheral device of the main device 210. In addition, the DPU card 220 can be connected to the network device 230 through the MAC (Medium Access Control) module 229 to provide data transmission operations between the main device 210 and the network device 230, wherein the MAC module 229 is responsible for performing the conversion between the RDMA data format and the MAC format to perform the network data receiving and sending operations.

[0031] In some embodiments, the DPU card 120 may include a first protocol processing module 122 connected to the main device 110, a second protocol processing module 124 connected to the network device 130, a coprocessor 128 connected to the first protocol processing module 122 and the second protocol processing module 124, and a storage module 126 connected to the first protocol processing module 122, the second protocol processing module 124, and the coprocessor 128.

[0032] Combined with reference Figure 1 and Figure 2 The first protocol processing module 122 may be an NVMe oF protocol processing module 222, and the second protocol processing module 124 may be an RDMA protocol processing module 224, so as to implement conversion processing between NVMe oF and RDMA based on the hardware level.

[0033] The coprocessor 128 may include an embedded soft core (e.g., microblaze soft core 228), which is configured to convert the NVMe format commands issued by the master device 210 into RDMA format commands, and notify the RDMA protocol processing module 224 to establish a link with the RDMA protocol processing module 224, and configure the established link information into the NVMe oF protocol processing module 222.

[0034] The storage module 126 may include a DDR module (double data rate synchronous dynamic random access memory) 226, wherein the NVMe oF protocol processing module 222, the RDMA protocol processing module 224 and the microblaze soft core 228 may access the DDR module 226 to achieve data sharing. The NVMe oF protocol processing module 222 may move data between the host device 210 (host memory 212), the RDMA protocol processing module 224 and the DDR module 226 according to the execution command of the microblaze soft core 228.

[0035] It should be noted that the technical solution of this embodiment can be implemented in any type of accelerator card, not limited to the DPU card shown in the accompanying drawings. Figure 1 The DPU card 120 is equivalently replaced by an FPGA card to implement the data sending and receiving solutions of the various embodiments of the present disclosure.

[0036] Based on the above Figure 1 According to the hardware architecture of the present disclosure, an embodiment of the present disclosure provides a data transceiver method 300 based on a DPU, which mainly includes the following steps:

[0037] Step 302: In response to the data receiving and sending instruction of the master device, the first protocol processing module communicates and negotiates with the second protocol processing module to determine the data access address corresponding to the data receiving and sending instruction in the storage module.

[0038] In some embodiments, the first protocol processing module 122 can obtain data sending and receiving instructions from the main device 110, and notify the coprocessor 128 to execute the data sending and receiving operations corresponding to the data sending and receiving instructions, so that the coprocessor 128 can initiate a link request to the second protocol processing module 124, and negotiate to determine the data access address in the storage module 126 corresponding to the data sending and receiving instructions.

[0039] In some embodiments, the data transceiving instruction may include a data sending instruction or a data receiving instruction.

[0040] In some embodiments, the coprocessor 128 may respond to a data transceiver instruction of the master device 110, convert the data transceiver instruction from a first protocol format to a second protocol format, and send the data instruction in the second protocol format to the second protocol processing module, so as to cooperate with the second protocol processing module to determine the data access address in the storage module corresponding to the data transceiver instruction.

[0041] For example, refer to Figure 2 The microblaze soft core 228 converts the data receiving and sending instructions of the main device 210 from the NVMe format to the RDMA format, and sends it to the RDMA protocol processing module 224, so that the RDMA protocol processing module 224 establishes a link with the RDMA protocol processing module 224 to negotiate and determine the data access address corresponding to the data receiving and sending instructions in the DDR module 226.

[0042] Step 304: Transmitting the transmission data of the data receiving and sending instructions between the main device and the storage module through the first protocol processing module based on the first protocol format and the data access address; transmitting the transmission data of the data receiving and sending instructions between the network device and the storage module through the second protocol processing module based on the second protocol format different from the first protocol format and the data access address, so as to collaboratively execute the data receiving and sending operations of the data receiving and sending instructions.

[0043] In some embodiments, when the data receiving and sending instructions are data sending instructions, the first protocol processing module 122 can obtain the transmission data of the data sending instruction from the host memory 112 of the main device 110 based on the first protocol format and the data access address, and store it in the storage module 126, and then the second protocol processing module 124 can read the transmission data of the data sending instruction from the storage module 126 based on the second protocol format and the data access address, and send it to the network device 130.

[0044] For example, refer to Figure 2The NVMe oF protocol processing module 222 can obtain the transmission data of the data sending instruction from the host memory 212 based on the NVMe oF protocol and the data access address, and store it in the DDR module 226. Then, the RDMA protocol processing module 224 can read the transmission data of the data sending instruction from the DDR module 226 based on the RDMA protocol format and the data access address, and send it to the network device 230.

[0045] In some embodiments, when the data sending and receiving instruction is a data receiving instruction, the second protocol processing module 124 can receive the transmission data of the data receiving instruction from the network device 130 based on the second protocol format and the data access address, and store it in the storage module 126. Then, the first protocol processing module 122 can obtain the transmission data of the data receiving instruction from the storage module 126 based on the first protocol format and the data access address, and write it into the host memory 112 of the master device 110.

[0046] For example, refer to Figure 2 The RDMA protocol processing module 224 can obtain the transmission data of the data receiving instruction from the network device 230 based on the RDMA protocol format and the data access address, and store it in the DDR module 226. Then, the NVMe oF protocol processing module 222 can read the transmission data of the data receiving instruction from the DDR module 226 based on the NVMe oF protocol and the data access address, and write it into the host memory 212.

[0047] In some embodiments, the NVMe oF protocol processing module 222 also includes an access router 2226, wherein the DMA engine 2224, the microblaze soft core 228, and the RDMA protocol processing module 224 can respectively access the DDR module 226 via the access router 2226 to perform data access operations.

[0048] To sum up, the DPU-based data transmission and reception method of this embodiment, by plugging a DPU card into the main device, offloads NVMe-oF and the corresponding RDMA protocol from the main device to the DPU card for processing, which can greatly reduce the CPU resource consumption of the main device in high-bandwidth application scenarios and improve the utilization rate of the CPU resources of the main device.

[0049] Furthermore, this embodiment sets a MAC module, a first protocol processing module, and a second protocol processing module in the DPU card to implement the conversion processing of the network protocol, NVMe-oF, and RDMA in the DPU card in a hardware-based form, and uses a coprocessor to be responsible for the software control part of the data sending and receiving service. In this way, it can not only simplify the hardware design complexity in the DPU card to reduce the hardware implementation cost, but also obtain a larger data bandwidth and lower data processing delay, thereby improving the data sending and receiving processing efficiency.

[0050] In addition, the present embodiment adopts the microblaze soft core to replace the SOC, which can realize the programmability of the microprocessor in hardware, so as to facilitate the transplantation of the technical solution of the present embodiment to any type of acceleration card for implementation.

[0051] Figure 4 The method 400 of this embodiment shows the processing flow of executing the data sending instruction of the master device through the DPU card, which mainly includes the following steps:

[0052] Step 402: Obtain a data sending instruction from the master device through the first protocol module.

[0053] In some embodiments, the NVMe oF protocol processing module 222 includes a shared register 2222.

[0054] The master device 210 may store the data to be sent into the host memory 212 of the master device 210 , and send a corresponding data sending instruction to the shared register 2222 .

[0055] Step 404: In response to the data sending instruction of the master device, the coprocessor communicates with the second protocol processing module to determine the data access address in the storage module corresponding to the data sending instruction.

[0056] In some embodiments, the shared register 2222 can be used to notify the microblaze soft core 228 to communicate and negotiate with the RDMA protocol processing module 224 according to the data sending instruction of the master device 210 to determine the data access address in the DDR module 226 corresponding to the data sending instruction.

[0057] Step 406: trigger the first protocol processing module through the coprocessor, read the transmission data of the data sending instruction from the main device based on the first protocol format and the data access address, and write the transmission data into the storage module.

[0058] In some embodiments, the NVMe oF protocol processing module 222 includes a DMA (Direct Memory Access) engine 2224.

[0059] The microblaze soft core 228 can respond to the determination result of the data access address and notify the DMA engine 2224 to take the data in the host memory 212. The DMA engine 2224 can read the transmission data of the data sending instruction from the host memory 212 based on the NVMe oF protocol format and the data access address, and store it in the specified area of ​​the DDR module 226, that is, the storage area in the DDR module 226 corresponding to the data access address.

[0060] Step 408: Through the coprocessor, in response to the determination result that the transmission data has been written into the storage module, trigger the second protocol module to read the transmission data from the storage module based on the second protocol format and the data access address, and send the transmission data to the network device.

[0061] In some embodiments, the microblaze soft core 228 can respond to the determination result that the transmission data of the data sending instruction has been stored in the DDR module 226, and notify the RDMA protocol processing module 224 to take the data in the DDR module 226. The RDMA protocol processing module 224 reads the transmission data of the data sending instruction from the DDR module 226 based on the RDMA protocol and the data access address, and converts the transmission data from the RDMA protocol format to the MAC format via the MAC module 229, and then sends it to the network device 230.

[0062] Figure 5 The method 500 of this embodiment shows the processing flow of executing the data receiving instruction of the main device through the DPU card, which mainly includes the following steps:

[0063] Step 502: Obtain a data receiving instruction from the master device through the first protocol module.

[0064] In some embodiments, the NVMe oF protocol processing module 222 includes a shared register 2222.

[0065] The master device 210 may send a data receiving instruction to the shared register 2222 of the NVMe oF protocol processing module 222 to inform that external network data needs to be requested.

[0066] Step 504: In response to the data receiving instruction, the coprocessor communicates with the second protocol processing module to determine the data access address in the storage module corresponding to the data receiving instruction.

[0067] In some embodiments, the microblaze soft core 228 can be notified to communicate and negotiate with the RDMA protocol processing module 224 through the shared register 2222 according to the data receiving instruction of the master device 210 to determine the data access address corresponding to the data receiving instruction in the DDR module 226.

[0068] Step 506: trigger the second protocol processing module through the coprocessor to read the transmission data of the data receiving instruction from the network device based on the second protocol format and the data access address, and write the transmission data into the storage module.

[0069] In some embodiments, the microblaze soft core 228 can respond to the determination result of the data access address to notify the RDMA protocol processing module 224 to receive external network data. The RDMA protocol processing module 224 can obtain the transmission data of the data receiving instruction from the network device 230 via the MAC module 229, wherein the MAC module 229 is responsible for converting the transmission data received from the network device 230 from the MAC format to the RDMA format, and sending it to the RDMA protocol processing module 224. The RDMA protocol processing module 224 writes the transmission data into the DDR module 226 based on the second protocol format and the data access address.

[0070] Step 508: In response to the determination result that the transmission data has been written into the storage module, the coprocessor triggers the DMA engine to read the transmission data from the storage module based on the first protocol format and the data access address, and write the transmission data into the host device.

[0071] In some embodiments, the microblaze soft core 228 can respond to the determination result that the transmission data of the data receiving instruction has been stored in the DDR module 226, and notify the DMA engine 2224 to obtain the transmission data of the data receiving instruction from the DDR module 226 based on the NVMe oF protocol format and the data access address and store it in the host memory 212 of the master device 210.

[0072] In summary, through the embodiments of the present application, by inserting a DPU card in the main device, using the NVMe-oF protocol processing module and the RDMA protocol processing module in the DPU card, the conversion processing of the NVMe-oF protocol and the corresponding RDMA protocol is performed in a hardware-based manner, and by setting the microblaze soft core in the DPU card, the execution logic of the data transceiver service is controlled in a software-based manner. Thus, the present disclosure implements the semi-unloading of the NVMe over RDMA protocol by combining hardware with software, which can reduce the CPU resource consumption of the main device by NVMe over RDMA, especially in high-bandwidth application scenarios, which can greatly reduce the CPU consumption of the data transceiver service for the main device, reduce the processing delay of NVMe command requests, and increase data throughput. In addition, the hardware design complexity of the design scheme disclosed in the present disclosure is low, and it has a low hardware implementation cost.

[0073] Figure 6 4 is a structural block diagram of a DPU-based data transceiver device 600 according to an exemplary embodiment of the present disclosure.

[0074] The device 600 of this embodiment is applied to Figure 1The system architecture 100 shown includes a DPU card 120 connected to a main device 110 and a network device 130. The DPU card 120 includes a first protocol processing module 122 connected to the main device 110, a second protocol processing module 124 connected to the network device 130, and a storage module 126 connected to the first protocol processing module 122 and the second protocol processing module 124.

[0075] like Figure 6 As shown, the device 600 of this embodiment includes:

[0076] The control unit 602 is configured to communicate and negotiate with the second protocol processing module through the first protocol processing module in response to the data receiving and sending instruction of the master device to determine the data access address corresponding to the data receiving and sending instruction in the storage module.

[0077] The transmission unit 604 is configured to transmit the transmission data of the data transceiver instruction between the main device and the storage module through the first protocol processing module based on the first protocol format and the data access address, and to transmit the transmission data of the data transceiver instruction between the network device and the storage module through the second protocol processing module based on a second protocol format different from the first protocol format and the data access address, so as to collaboratively execute the data transceiver operation of the data transceiver instruction.

[0078] In some embodiments, the first protocol processing module includes a shared register, and the DPU includes a coprocessor; the control unit 602 is also configured to: obtain the data sending and receiving instructions of the main device through the shared register, and send them to the coprocessor, and communicate with the second protocol processing module through the coprocessor in response to the data sending and receiving instructions to determine the data access address in the storage module corresponding to the data sending and receiving instructions.

[0079] In some embodiments, the data transceiver instruction obtained from the main device has a first protocol format, and the coprocessor includes an embedded soft core; and the control unit 602 is also configured to: in response to the data transceiver instruction, convert the data transceiver instruction from the first protocol format to the second protocol format; send the data instruction with the second protocol format to the second protocol processing module, so as to cooperate with the second protocol processing module to determine the data access address in the storage module corresponding to the data transceiver instruction.

[0080] In some embodiments, the data receiving and sending instructions include data sending instructions, and the first protocol processing module includes a DMA engine; the transmission unit 604 is also configured to: through the coprocessor, trigger the DMA engine to read the transmission data of the data sending instruction from the master device based on the first protocol format and the data access address, and write the transmission data to the storage module; through the coprocessor, in response to the determination result that the transmission data has been written to the storage module, trigger the second protocol module to read the transmission data from the storage module based on the second protocol format and the data access address, and send the transmission data to the network device.

[0081] In some embodiments, the data sending and receiving instructions include data receiving instructions, and the first protocol processing module includes a DMA engine; and the transmission unit 604 is also configured to: through the coprocessor, trigger the second protocol processing module to read the transmission data of the data receiving instruction from the network device based on the second protocol format and the data access address, and write the transmission data to the storage module; through the coprocessor, in response to the determination result that the transmission data has been written to the storage module, trigger the DMA engine to read the transmission data from the storage module based on the first protocol format and the data access address, and write the transmission data to the master device.

[0082] In some embodiments, the first protocol format includes an NVMe oF protocol format, the second protocol format includes an RDMA protocol format, and the DPU card also includes a MAC module, which is configured to: perform an interchange between the RDMA protocol format and the MAC protocol format on the transmission data of the data transceiver instruction to transmit the transmission data of the data transceiver instruction between the network device and the second protocol processing module.

[0083] In some embodiments, the master device includes a host memory; and the transmission unit 604 is further configured to: transmit the transmission data of the data receiving and sending instructions between the host memory and the storage module through the first protocol module based on the first protocol format and the data access address.

[0084] An embodiment of the present disclosure provides a computer storage medium storing a computer program code. When the computer program code is executed by a processor, the processor executes the DPU-based data transmission and reception method described in each embodiment of the present application.

[0085] The exemplary embodiments of the present disclosure provide an electronic device, comprising: at least one processor; and a memory connected to the at least one processor in communication. The memory stores a computer program that can be executed by the at least one processor, and when the computer program is executed by the at least one processor, the electronic device executes the DPU-based data transceiving method according to each exemplary embodiment of the present disclosure.

[0086] Please refer to Figure 7 , a block diagram of an electronic device 700 that can serve as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0087] like Figure 7 As shown, the electronic device 700 includes a computing unit 701, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 702 or a computer program loaded from a storage unit 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the device 700 can also be stored. The computing unit 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0088] A plurality of components in the electronic device 700 are connected to the I / O interface 705, including: an input unit 706, an output unit 707, a storage unit 708, and a communication unit 709. The input unit 706 may be any type of device capable of inputting information to the electronic device 700, and the input unit 706 may receive input digital or character information, and generate key signal inputs related to user settings and / or function control of the electronic device. The output unit 707 may be any type of device capable of presenting information, and may include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 708 may include but is not limited to a disk, an optical disk. The communication unit 709 allows the electronic device 700 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and may include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth™ device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.

[0089] The computing unit 701 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 701 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 701 performs the various methods and processes described above. For example, in some embodiments, the DPU-based data transceiving method described above may be implemented as a computer software program, which is tangibly included in a machine-readable medium, such as a storage unit 708. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 700 via the ROM 702 and / or the communication unit 709. In some embodiments, the computing unit 701 may be configured to perform the DPU-based data transceiving method described above in any other appropriate manner (e.g., by means of firmware).

[0090] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, implements the functions / operations specified in the flow chart and / or block diagram. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0091] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0092] As used in this disclosure, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and / or device (e.g., disk, optical disk, memory, programmable logic device (PLD)) for providing machine instructions and / or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal for providing machine instructions and / or data to a programmable processor.

[0093] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0094] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a DPU-based data transceiver), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0095] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and the server relationship is generated by computer programs running on respective computers and having a client-server relationship with each other.

[0096] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present disclosure can be split into more components / steps, or two or more components / steps or partial operations of components / steps can be combined into new components / steps to achieve the purpose of the embodiments of the present disclosure.

[0097] The above implementation methods are only used to illustrate the embodiments of the present disclosure, and are not limitations of the embodiments of the present disclosure. Ordinary technicians in the relevant technical field may make various changes and modifications without departing from the spirit and scope of the embodiments of the present disclosure. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present disclosure. The scope of patent protection of the embodiments of the present disclosure should be defined by the claims.

Claims

1. A data transceiver method based on DPU, characterized in that: A DPU card for connecting a main device and a network device, the DPU card comprising a first protocol processing module connected to the main device, a second protocol processing module connected to the network device, and a storage module connected to the first protocol processing module and the second protocol processing module, the method comprising: By means of the first protocol processing module, in response to the data receiving and sending instruction of the master device, communicating and negotiating with the second protocol processing module, so as to determine the data access address corresponding to the data receiving and sending instruction in the storage module; The transmission data of the data receiving and sending instructions are transmitted between the main device and the storage module based on the first protocol format and the data access address through the first protocol processing module, and the transmission data of the data receiving and sending instructions are transmitted between the network device and the storage module based on a second protocol format different from the first protocol format and the data access address through the second protocol processing module, so as to collaboratively execute the data receiving and sending operations of the data receiving and sending instructions.

2. The method according to claim 1, characterized in that The first protocol processing module includes a shared register, and the DPU includes a coprocessor; The first protocol processing module, in response to the data receiving and sending instruction of the master device, communicates and negotiates with the second protocol processing module to determine the data access address corresponding to the data receiving and sending instruction in the storage module, including: Obtaining a data receiving and sending instruction of the master device through the shared register, and sending the instruction to the coprocessor; The coprocessor is communicated with the second protocol processing module in response to the data receiving and sending instruction to determine a data access address in the storage module corresponding to the data receiving and sending instruction.

3. The method according to claim 2, characterized in that The data transceiver instruction obtained from the master device has a first protocol format, and the coprocessor includes an embedded soft core; And wherein, the coprocessor, in response to the data receiving and sending instruction, communicates with the second protocol processing module to determine the data access address corresponding to the data receiving and sending instruction in the storage module, including: In response to the data receiving and sending instruction, converting the data receiving and sending instruction from the first protocol format to the second protocol format; A data instruction in the second protocol format is sent to the second protocol processing module, so as to cooperate with the second protocol processing module to determine a data access address in the storage module corresponding to the data sending and receiving instruction.

4. The method according to claim 2, characterized in that: The data transceiver instruction includes a data sending instruction, and the first protocol processing module includes a DMA engine; And wherein, the data sending and receiving operation of the collaborative execution of the data sending and receiving instruction includes: Triggering the DMA engine to read the transmission data of the data sending instruction from the master device based on the first protocol format and the data access address through the coprocessor, and write the transmission data into the storage module; Through the coprocessor, in response to the determination result that the transmission data has been written to the storage module, the second protocol module is triggered to read the transmission data from the storage module based on the second protocol format and the data access address, and send the transmission data to the network device.

5. The method according to claim 2, characterized in that: The data transceiver instruction includes a data receiving instruction, and the first protocol processing module includes a DMA engine; And wherein, the data sending and receiving operation of the collaborative execution of the data sending and receiving instruction includes: Triggering the second protocol processing module to read the transmission data of the data receiving instruction from the network device based on the second protocol format and the data access address through the coprocessor, and write the transmission data into the storage module; Through the coprocessor, in response to the determination result that the transmission data has been written to the storage module, the DMA engine is triggered to read the transmission data from the storage module based on the first protocol format and the data access address, and write the transmission data to the master device.

6. The method according to any one of claims 1, 4 and 5, characterized in that: The first protocol format includes an NVMeoF protocol format, the second protocol format includes an RDMA protocol format, and the DPU card further includes a MAC module; Wherein, the method further comprises: The MAC module is used to perform an exchange between the RDMA protocol format and the MAC protocol format on the transmission data of the data transceiving instruction, so as to transmit the transmission data of the data transceiving instruction between the network device and the second protocol processing module.

7. The method according to any one of claims 1, 4 and 5, characterized in that: The host device includes a host memory; Wherein, the method comprises: The transmission data of the data receiving and sending instruction is transmitted between the host memory and the storage module through the first protocol module based on the first protocol format and the data access address.

8. A data transceiver device based on DPU, characterized in that: A DPU card for connecting a main device and a network device, the DPU card comprising a first protocol processing module connected to the main device, a second protocol processing module connected to the network device, and a storage module connected to the first protocol processing module and the second protocol processing module, the device comprising: a control unit configured to communicate and negotiate with the second protocol processing module through the first protocol processing module in response to the data receiving and sending instruction of the master device, so as to determine a data access address in the storage module corresponding to the data receiving and sending instruction; A transmission unit is configured to transmit the transmission data of the data transceiver instruction between the main device and the storage module through the first protocol processing module based on the first protocol format and the data access address, and to transmit the transmission data of the data transceiver instruction between the network device and the storage module through the second protocol processing module based on a second protocol format different from the first protocol format and the data access address, so as to collaboratively execute the data transceiver operation of the data transceiver instruction.

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

10. A computer storage medium, characterized in that: The computer storage medium stores a computer program code, and when the computer program code is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 7.

Citation Information

Cited By

  • NVMeoF remote storage system and method based on GPU direct command control

    CN121979832A

  • Interface device and method, data computing device and data processing system including the same

    US20250258783A1