Task acceleration method based on DPU chip, DPU chip, electronic equipment and computer storage medium
By introducing the collaborative work of the interconnection forwarding unit and various offloading units into the DPU chip, task acceleration is achieved, solving the problem of heavy data processing burden on the host CPU, improving data processing efficiency and system stability, and adapting to a variety of business scenarios. needs.
Patent Information
- Application Number
- CN202410770193.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-14
- Publication Date
- 2024-09-17
AI Technical Summary
In various business scenarios, the data processing burden of the host CPU is heavy, which affects the data processing efficiency. There is still room for improvement in the data processing task efficiency of the existing DPU co-processor in multiple business scenarios.
A task acceleration method based on DPU chips is designed. Through the forwarding of task acceleration results between the interconnection forwarding unit and the upstream and downstream offloading units, the accelerated processing of data processing tasks is realized, including accelerating communication protocol processing in downlink data transmission and uplink The addition of packet segmentation and virtual network domain identification in data transmission, as well as data transmission and security processing between the DMA offload unit and the storage access offload unit.
It improves the processor's data processing task execution efficiency and improves the system stability of the DPU chip. Each offload unit can be independently configured and maintained to adapt to the data processing needs of different business scenarios.
Smart Images

Figure CN118656208A
Abstract
Description
Technical Field
[0001] Embodiments of the present invention relate to the field of computer technology, and in particular to a task acceleration method based on a DPU chip, a DPU chip, an electronic device, and a computer storage medium. Background Art
[0002] The host CPU can process data streams for a variety of business scenarios. The data processing burden of the host CPU is heavy, which may affect the data processing efficiency of the host CPU in a variety of business scenarios.
[0003] For specific business scenarios, coprocessors such as DPUs can be used to offload part of the host CPU's capabilities. However, when faced with data processing tasks in a variety of business scenarios, there is still room for improvement in data processing efficiency. Therefore, a new data task processing architecture is needed to adapt to data processing tasks in various business scenarios. Summary of the invention
[0004] In view of this, an embodiment of the present invention provides a task acceleration method based on a DPU chip, a DPU chip, an electronic device, and a computer storage medium to solve the above problems.
[0005] According to a first aspect of an embodiment of the present invention, a DPU chip is provided, comprising: an interconnect forwarding unit; at least one upstream unloading unit, which is arranged on the upstream side of the interconnect forwarding unit, each upstream unloading unit is used to accelerate the upstream task in the data processing task according to the acceleration type of the upstream unloading unit, and obtain the task acceleration result; at least one downstream unloading unit, which is arranged on the downstream side of the interconnect forwarding unit, each downstream unloading unit is used to accelerate the downstream task in the data processing task according to the acceleration type of the downstream unloading unit, and obtain the task acceleration result; the interconnect forwarding unit is used to execute the corresponding task acceleration result between the at least one upstream unloading unit and the at least one downstream unloading unit A forwarding operation, wherein the forwarding operation includes at least one of the above: forwarding the task acceleration result of the first upstream unloading unit in the at least one upstream unloading unit to the first downstream unloading unit in the at least one downstream unloading unit; forwarding the task acceleration result of the first downstream unloading unit in the at least one downstream unloading unit to the first upstream unloading unit in the at least one upstream unloading unit; forwarding the task acceleration result of the first upstream unloading unit in the at least one upstream unloading unit to the second upstream unloading unit in the at least one upstream unloading unit; forwarding the task acceleration result of the first downstream unloading unit in the at least one downstream unloading unit to the second downstream unloading unit in the at least one downstream unloading unit.
[0006] In another implementation of the present invention, the interconnect forwarding unit is specifically used for: in downlink data transmission, forwarding the communication protocol acceleration processing result of the basic network offload unit to the network processor, wherein the basic network offload unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offload unit and send it to the external network; in uplink data transmission, the network processor is used to receive a data packet from the external network, segment the received data packet into the virtual network where the data packet is located, and forward the segment to the basic network offload unit, so that the basic network offload unit forwards the segment to the corresponding virtual network.
[0007] In another implementation of the present invention, the interconnect forwarding unit is specifically used to: forward the task acceleration result of the first DMA offload unit of the host to the storage access offload unit, wherein the first DMA offload unit is used to perform memory access according to the memory access instruction of the upstream task, wherein the storage access offload unit is used to perform storage access according to the memory access result; the storage access offload unit forwards the storage access result to the second DMA offload unit of the coprocessor, wherein the second DMA offload unit is used to perform access acceleration processing on the storage access result via the coprocessor.
[0008] In another implementation of the present invention, the interconnect forwarding unit is specifically used to: forward the access acceleration result of the second DMA offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task;
[0009] In another implementation of the present invention, the interconnect forwarding unit is specifically used to: forward the task acceleration result of the first DMA offloading unit of the host to the security offloading unit, and the security offloading unit is used to perform data security processing on the task acceleration result; forward the task acceleration result of the security offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segmentation identifier in the data packet of the downstream task.
[0010] In another implementation of the present invention, the interconnect forwarding unit is specifically used to forward the task acceleration result of the first DMA offload unit of the host to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
[0011] In another implementation of the present invention, the interconnection forwarding unit is specifically used to: send the network processing result of the network processor performing the network forwarding task to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task; send the virtual network parsing result of the basic network offload unit to the second DMA offload unit of the coprocessor; forward the memory access result of the second DMA offload unit to the first DMA offload unit of the host.
[0012] In another implementation of the present invention, the interconnect forwarding unit is specifically used to forward the memory access result of the first DMA offload unit to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
[0013] According to a second aspect of an embodiment of the present invention, a DPU chip-based task acceleration method is provided, comprising: accelerating an upstream task in a data processing task by at least one upstream unloading unit disposed on the upstream side of the interconnect forwarding unit to obtain an upstream task acceleration result; forwarding the upstream task acceleration result to at least one downstream unloading unit disposed on the downstream side of the interconnect forwarding unit; accelerating a downstream task in the data processing task by the at least one downstream unloading unit to obtain a downstream task acceleration result.
[0014] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method described in the second aspect.
[0015] According to a fourth aspect of an embodiment of the present invention, there is provided a computer storage medium on which a computer program is stored. When the program is executed by a processor, the method described in the second aspect is implemented.
[0016] According to a fifth aspect of an embodiment of the present invention, there is provided a computer program product, comprising computer instructions, which, when executed by a processor, implement the method as described in the second aspect.
[0017] In the scheme of the embodiment of the present invention, at least one upstream offload unit can perform corresponding acceleration processing on upstream tasks, and at least one downstream offload unit can perform corresponding acceleration processing on downstream tasks, so that each offload unit can unload various functions of the processor respectively, and the interconnection forwarding unit can forward the intermediate task processing results between each upstream offload unit and each downstream offload unit, thereby ensuring the execution efficiency of the processor's data processing tasks. In addition, each offload unit can be independently configured and maintained, thereby improving the system stability of the DPU chip. BRIEF DESCRIPTION OF THE DRAWINGS
[0018] In order to more clearly illustrate the embodiments of the present invention 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 invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0019] Figure 1 Schematic diagram of the structure of a DPU chip according to some embodiments of the present invention.
[0020] Figure 2 for Figure 1 Schematic structural diagram of a DPU chip of some embodiments.
[0021] Figure 3A for Figure 2 Schematic diagram of the structure of a DPU chip with some offloading examples.
[0022] Figure 3B for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.
[0023] Figure 3C for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.
[0024] Figure 3D for Figure 2 Schematic structural diagram of DPU chips for other offloading examples.
[0025] Figure 4 The present invention is a flowchart of the steps of a task acceleration method according to some other embodiments of the present invention.
[0026] Figure 5 Schematic diagram of the structure of electronic devices according to other embodiments of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. All other embodiments obtained by ordinary technicians in the field based on the embodiments in the embodiments of the present invention should fall within the scope of protection of the embodiments of the present invention.
[0028] The specific implementation of the embodiment of the present invention is further described below in conjunction with the accompanying drawings of the embodiment of the present invention.
[0029] Figure 1 Schematic diagram of the structure of a DPU chip according to some embodiments of the present invention. Figure 1 The DPU chip includes an interconnect forwarding unit 110, at least one upstream offloading unit 120 and at least one downstream offloading unit 130.
[0030] It should be understood that the interconnect forwarding unit can be an interconnect network such as an on-chip network. For example, the on-chip network (Network-on-Chip, NOC) can be an on-chip interconnect bus, for example, a network on chip with up to 20 inputs and 20 outputs. In other words, the on-chip network is used to connect the data communication of each unloading unit in the chip, and control the data flow through instructions. Other unloading units can be directly connected to the NOC through the bus system or indirectly through other unloading units, and data interaction between unloading units can be realized according to different instructions.
[0031] In addition, at least one upstream unloading unit 120 is arranged at the upstream side of the interconnection forwarding unit. Each upstream unloading unit 120 is used to accelerate the upstream task in the data processing task according to the acceleration type of the upstream unloading unit to obtain the task acceleration result;
[0032] At least one downstream offloading unit 130 is disposed at the downstream side of the interconnection forwarding unit. Each downstream offloading unit 130 is used to accelerate the downstream task in the data processing task according to the acceleration type of the downstream offloading unit to obtain a task acceleration result.
[0033] The interconnect forwarding unit 110 is used to perform a corresponding task acceleration result forwarding operation between at least one upstream offloading unit 120 and at least one downstream offloading unit 130, and the forwarding operation includes at least one of the above:
[0034] forwarding a task acceleration result of a first upstream offloading unit in the at least one upstream offloading unit 120 to a first downstream offloading unit in the at least one downstream offloading unit 130;
[0035] forwarding a task acceleration result of a first downstream offloading unit in the at least one downstream offloading unit 130 to a first upstream offloading unit in the at least one upstream offloading unit 120;
[0036] forwarding a task acceleration result of a first upstream offloading unit in the at least one upstream offloading unit 120 to a second upstream offloading unit in the at least one upstream offloading unit 120;
[0037] The task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit 130 is forwarded to a second downstream offloading unit among the at least one downstream offloading unit 130 .
[0038] In the scheme of the embodiment of the present invention, at least one upstream offload unit can perform corresponding acceleration processing on upstream tasks, and at least one downstream offload unit can perform corresponding acceleration processing on downstream tasks, so that each offload unit can unload various functions of the processor respectively, and the interconnection forwarding unit can forward the intermediate task processing results between each upstream offload unit and each downstream offload unit, thereby ensuring the execution efficiency of the processor's data processing tasks. In addition, each offload unit can be independently configured and maintained, thereby improving the system stability of the DPU chip.
[0039] In other embodiments, Figure 2 As shown, at least one upstream offload module includes at least one of a DMA offload unit, a storage access offload unit such as an NVMe-oF offload unit, and a security offload unit. At least one downstream offload module includes at least one of a network processor and a basic network offload unit.
[0040] It should be understood that the storage access offload unit can manage and maintain at least one write queue and at least one read queue, each write queue can process write access instructions from different processing units in parallel, and each read queue can process read access instructions from different processing units in parallel. At least one write queue corresponds to a write operation to at least one storage unit, and at least one read queue corresponds to a read operation to at least one storage unit. Different local storage units connected through an interconnection forwarding network are different storage units, different remote storage units connected through an external network are different storage units, and local storage units and remote storage units are different storage units.
[0041] In other embodiments, the interconnect forwarding unit is specifically used to: in downlink data transmission, forward the communication protocol acceleration processing results of the basic network offload unit to the network processor, wherein the basic network offload unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offload unit and send it to the external network.
[0042] Alternatively, or optionally, the interconnect forwarding unit is specifically used for: in uplink data transmission, the network processor is used to receive a data packet from an external network, segment the received data packet into a virtual network where the data packet is located, and forward the segment to the basic network unloading unit, so that the basic network unloading unit forwards the segment to the corresponding virtual network.
[0043] It should be understood that a virtual network can correspond to at least one virtual machine. In uplink data transmission, as an example of the basic network offloading unit forwarding the segment to the corresponding virtual network, the basic network offloading unit can determine the virtual machine corresponding to the virtual machine identifier through the CPU according to the corresponding virtual network, and send the data packet to the corresponding virtual machine. Correspondingly, in downlink data transmission, the CPU sends a network processing request for the data packet to the coprocessor, and the coprocessor determines the virtual network where the virtual machine is located according to the network processing request, and sends the data packet as a downstream task to the basic network offloading unit. The basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, and the network processor is used to add a consistent communication protocol field to the data packet processed by the basic network offloading unit (the reverse operation of the forwarding process). It should be understood that the added consistent communication protocol field can include at least an IP address, and can also include a MAC address and a physical layer address. In some examples, multiple transport layer segments can be spliced into an IP data packet, and at least a consistent IP address is added to correspond to the physical machine where the DPU chip is located. In other examples, the network processor communicates directly with the external network. In this case, the network processor also needs to add the MAC address and physical layer address to the data packet; alternatively, the network processor can communicate with the external network indirectly through the MAC offload unit. In this case, the network processor can encapsulate the data packet into an IP datagram, and further encapsulate it into a data packet sent to the external network through the MAC offload unit.
[0044] More specifically, a network processor (NP) is composed of a microprocessor with multiple processing cores and several coprocessors, and the multiple processing cores process in parallel. The processing flow is controlled by programmable microcode to implement a network processing system with related functions such as data packet processing, data packet protocol header parsing, table entry lookup, QoS, etc.
[0045] In addition, the network processor mainly parses and identifies the received network data packets, obtains the processing method for the data packet by querying the table entries based on the key fields extracted from the network data packet, and performs a series of operations on the network data packet according to the matching flow table, such as statistics and rate limit (Meter), message modification, tunnel encapsulation (cap) or decapsulation (decap), filtering feature messages, mirroring (Mirror), or secondary parser or table lookup (Recirc).
[0046] More specifically, the basic network offloading unit can complete some functions of a standard network card. For example, the basic network offloading unit is used to perform addressing and forwarding of the second layer of the network (e.g., the MAC layer) and perform network virtualization based on the MAC layer. For example, the basic network offloading unit at least adds a MAC address and a virtual network domain identifier to the received data packet.
[0047] In addition, the basic network offload unit also adds the data packet to the corresponding queue in the parallel processing queue (for example, a queue with a specific queue number), wherein the parallel queue processing is performed by multiple cores in the network processor. That is to say, through the parallel queue processing, the calculation of the load balancing RSS (Receive Side Scaling) is realized. In addition, in the development process of the basic network offload unit, the RSS of the DPDK (Data Plane Development Kit) can be adapted according to the received queue number.
[0048] In addition, the basic network offload unit is also used to implement the functions of TSO (TCP Segmentation Offload, TCP segmentation offload), GSO (Generic Segmentation Offload, general segmentation offload), and verification. In addition, the basic network offload unit can support the separate configuration of different vfs through virtual network domain identifiers. The basic network offload unit is also used to complete the TCP, UDP and IP layer checksum offload and fragment message reassembly functions when receiving.
[0049] In addition, the basic network offloading unit is also used to support VLAN-Tag offloading, Queue\PF\VF mapping table maintenance, support promiscuous mode, support VLAN broadcast mode, support MAC address filtering, VLAN filtering, etc. For example, an identifier indicating at least one of the above functions is added to the protocol header of the data packet.
[0050] In the case of a storage access offload unit such as an NVMe-oF offload unit, the interconnect forwarding unit forwards the task acceleration result of the first DMA offload unit of the host to the storage access offload unit, wherein the first DMA offload unit is used to perform memory access according to the memory access instruction of the upstream task, wherein the storage access offload unit is used to perform storage access according to the memory access result, such as Figure 3A Then, the interconnect forwarding unit forwards the storage access result to the second DMA offloading unit of the coprocessor, wherein the second DMA offloading unit is used to perform access acceleration processing on the storage access result via the coprocessor, such as Figure 3A The data flow is shown in (2).
[0051] Furthermore, the interconnect forwarding unit also forwards the access acceleration result of the second DMA offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3A The data flow is shown in (3).
[0052] More specifically, the storage access offload unit may be an NVMe-oF offload unit. The storage access offload unit is used to implement an initialization system for NVMe storage protocol offload, and supports functions such as automatic disk mounting, SRIOV, bare metal boot, QOS traffic speed limit, and VF hot swap with underlying transmission protocols such as Fabric. In other words, the storage access offload unit can be connected to an interconnect forwarding unit such as an on-chip network through an underlying transmission protocol such as Fabric.
[0053] In addition, the storage access offload unit can be connected between multiple DMA offload units, for example, as a bridge unit connected between the first DMA offload unit and the second DMA offload unit, supporting the first DMA offload unit and the second DMA offload unit to share the functions of the storage access offload unit, including but not limited to: access to storage devices, and memory access functions, interrupts and other functions performed by storage devices through DMA offload units. When the host and coprocessor work together, the DPU chip can be used as a storage access offload unit to implement the offloading of the NVMe oF protocol. In some embodiments, the storage access offload unit can be used to connect and access storage devices in the local server. In other embodiments, the network processor and the basic network offload unit can be used to connect and access remote destination storage devices in other servers.
[0054] In some other embodiments, in the case of a security offload unit, the interconnect forwarding unit forwards the task acceleration result of the first DMA offload unit of the host to the security offload unit, and the security offload unit is used to perform data security processing on the task acceleration result, such as Figure 3BThe data flow is shown in (1).
[0055] Then, the interconnect forwarding unit forwards the task acceleration result of the security offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3B The data flow is shown in (2).
[0056] More specifically, the security offload unit is a hardware device that provides data security functions. The security offload unit is used to encrypt and decrypt data to protect the security and confidentiality of data. The security offload unit mainly implements the following encryption and decryption algorithms SM2 / SM3 / SM4, TRNG, RSA / SHA / AES, IPSEC / TLS, etc.
[0057] In other embodiments, in the case of the basic network offloading unit, the interconnect forwarding unit forwards the task acceleration result of the first DMA offloading unit of the host to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, such as Figure 3C The data flow is shown in Figure 2.
[0058] In some other embodiments, in the case of a virtual machine switching network, the interconnect forwarding unit sends the network processing result of the network processor performing the network forwarding task to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task. The interconnect forwarding unit sends the virtual network parsing result of the basic network offloading unit to the second DMA offloading unit of the coprocessor, such as Figure 3D The interconnect forwarding unit forwards the memory access result of the second DMA offloading unit to the first DMA offloading unit of the host, as shown in the data flow (1). Figure 3D Then, the interconnect forwarding unit forwards the memory access result of the first DMA offloading unit to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, as shown in FIG. Figure 3D The data flow is shown in (3).
[0059] In the above-mentioned embodiments, the DMA offload unit may be a flexible DMA unit. The DMA offload unit is connected to an interconnect forwarding unit such as an on-chip network through a bus system such as PCIe.
[0060] In addition, the bus system supports flexible multi-queue DMA functions, supporting multiple queues in the sending and receiving directions (for example, up to 1024 queues), each queue supporting multiple DMA descriptors, and by configuring the data sending and receiving strategy, the control logic performs DMA access operations on data according to the DMA descriptors in each queue.
[0061] In addition, in the upstream direction example, the service data is sent from the device to the host memory or the coprocessor memory via the DMA offload unit. For example, after receiving the service data stream, a bus system such as PCIe looks up the corresponding host memory queue address according to the queue number and fills and encapsulates the packet content, and then uploads it to the corresponding cache queue of the host memory through DMA, and the application reads the data from the packet receiving address.
[0062] It should be understood that the DMA offload unit can receive access instructions from a processing unit such as a host or a coprocessor. The DMA offload unit can manage and maintain at least one write queue and at least one read queue, and the at least one write queue can process write access instructions from at least one processing unit in parallel, and the at least one read queue can process read access instructions from at least one processing unit in parallel. The write access instructions of at least one processing unit are processed by the DMA offload unit to serially access the memory; the read access instructions of at least one processing unit are processed by the DMA offload unit to serially access the memory.
[0063] In addition, in the example of the downlink direction, the service data is read from the host memory or coprocessor memory to the device. For example, multiple queue data in the host memory are loaded at the same time and need to be sent to the hardware, which will be cached and scheduled and then output to the corresponding PF (i.e., physical function) or VF (i.e., virtual function). After receiving the data sent by the host, the hardware will parse and reorganize it and send the data to the receiving service module according to the queue number.
[0064] In addition, multiple queues can be configured to have different QoS priorities, and data packets with different QoS requirements can be added to queues with corresponding QoS priorities.
[0065] The following will be combined Figure 4 Task acceleration methods according to other embodiments of the present invention are described. Figure 4 The task acceleration method is applied to the DPU chip, including:
[0066] S410: Accelerating the upstream task in the data processing task by at least one upstream unloading unit arranged at the upstream side of the interconnection forwarding unit to obtain an upstream task acceleration result.
[0067] S420: Forwarding the upstream task acceleration result to at least one downstream offloading unit arranged at the downstream side of the interconnection forwarding unit.
[0068] S430: Accelerate the downstream tasks in the data processing tasks by using the at least one downstream offloading unit to obtain downstream task acceleration results.
[0069] In the scheme of the embodiment of the present invention, at least one upstream offload unit can perform corresponding acceleration processing on upstream tasks, and at least one downstream offload unit can perform corresponding acceleration processing on downstream tasks, so that each offload unit can unload various functions of the processor respectively, and the interconnection forwarding unit can forward the intermediate task processing results between each upstream offload unit and each downstream offload unit, thereby ensuring the execution efficiency of the processor's data processing tasks. In addition, each offload unit can be independently configured and maintained, thereby improving the system stability of the DPU chip.
[0070] The task acceleration method further comprises at least one of the following: forwarding a task acceleration result of a first upstream offloading unit in the at least one upstream offloading unit to a first downstream offloading unit in the at least one downstream offloading unit;
[0071] forwarding a task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit to a first upstream offloading unit among the at least one upstream offloading unit;
[0072] forwarding a task acceleration result of a first upstream offloading unit among the at least one upstream offloading unit to a second upstream offloading unit among the at least one upstream offloading unit;
[0073] The task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit is forwarded to a second downstream offloading unit among the at least one downstream offloading unit.
[0074] In other embodiments, the task acceleration result of the first downstream offload unit in the at least one downstream offload unit is forwarded to the second downstream offload unit in the at least one downstream offload unit, including: forwarding the communication protocol acceleration processing result of the basic network offload unit to the network processor, wherein the basic network offload unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier to the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offload unit.
[0075] In some other embodiments, the task acceleration result of the first upstream offload unit in the at least one upstream offload unit is forwarded to the second upstream offload unit in the at least one upstream offload unit, including: forwarding the task acceleration result of the first DMA offload unit of the host to the storage access offload unit, wherein the first DMA offload unit is used to perform memory access according to the memory access instruction of the upstream task, and the storage access offload unit is used to perform storage access according to the memory access result; the storage access offload unit forwards the storage access result to the second DMA offload unit of the coprocessor, and the second DMA offload unit is used to perform access acceleration processing on the storage access result via the coprocessor.
[0076] In some other embodiments, forwarding the task acceleration result of the first upstream offload unit in the at least one upstream offload unit to the first downstream offload unit in the at least one downstream offload unit includes: forwarding the access acceleration result of the second DMA offload unit to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task;
[0077] In some other embodiments, forwarding the task acceleration result of the first upstream offload unit in the at least one upstream offload unit to the second upstream offload unit in the at least one upstream offload unit includes: forwarding the task acceleration result of the first DMA offload unit of the host to the security offload unit, and the security offload unit is used to perform data security processing on the task acceleration result. Forwarding the task acceleration result of the first upstream offload unit in the at least one upstream offload unit to the first downstream offload unit in the at least one downstream offload unit includes: forwarding the task acceleration result of the security offload unit to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
[0078] In other embodiments, the task acceleration result of the first upstream offload unit in the at least one upstream offload unit is forwarded to the first downstream offload unit in the at least one downstream offload unit, including: forwarding the task acceleration result of the first DMA offload unit of the host to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segmentation identifier in the data packet of the downstream task.
[0079] In some other embodiments, forwarding the task acceleration result of the first downstream offload unit in the at least one downstream offload unit to the second downstream offload unit in the at least one downstream offload unit includes: sending the network processing result of the network processor performing the network forwarding task to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task. Forwarding the task acceleration result of the first downstream offload unit in the at least one downstream offload unit to the first upstream offload unit in the at least one upstream offload unit includes: sending the virtual network parsing result of the basic network offload unit to the second DMA offload unit of the coprocessor. Forwarding the task acceleration result of the first upstream offload unit in the at least one upstream offload unit to the second upstream offload unit in the at least one upstream offload unit includes: forwarding the memory access result of the second DMA offload unit to the first DMA offload unit of the host.
[0080] In other embodiments, the task acceleration result of the first upstream offload unit in the at least one upstream offload unit is forwarded to the first downstream offload unit in the at least one downstream offload unit, including: forwarding the memory access result of the first DMA offload unit to the basic network offload unit, so that the basic network offload unit adds the corresponding virtual network domain identifier and transport layer segmentation identifier in the data packet of the downstream task.
[0081] It should be understood that the specific implementation of each step in the task acceleration method can refer to the corresponding description of the corresponding steps in the above-mentioned DPU chip embodiment, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the above-described device and module can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0082] Reference Figure 5 , shows a schematic structural diagram of an electronic device according to another embodiment of the present invention. The specific embodiment of the present invention does not limit the specific implementation of the electronic device.
[0083] like Figure 5 As shown, the electronic device may include: a processor (processor) 502 for executing a program 510 , a communication interface (Communications Interface) 504 , a memory (memory) 506 , and a communication bus 508 .
[0084] The processor, the communication interface, and the memory communicate with each other via a communication bus.
[0085] Communication interface, used to communicate with other electronic devices or servers.
[0086] The processor is used to execute the program, and specifically can execute the relevant steps in the above method embodiment.
[0087] Specifically, the program may include program codes including computer operation instructions.
[0088] The processor may be a CPU, or an application specific integrated circuit ASIC (Application Specific Integrated Circuit), or one or more integrated circuits configured to implement the embodiments of the present invention. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or processors of different types, such as one or more CPUs and one or more ASICs.
[0089] The memory is used to store programs. The memory may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0090] The program may include multiple computer instructions. Specifically, the program may enable a processor to execute the task acceleration method described in any of the aforementioned method embodiments through the multiple computer instructions.
[0091] The specific implementation of each step in the program can refer to the corresponding description of the corresponding steps, modules or units in the above method embodiments, and has corresponding beneficial effects, which will not be repeated here. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working process of the DPU chip, device or module described above can refer to the corresponding process description in the above method embodiments, which will not be repeated here.
[0092] The embodiment of the present invention further provides a computer storage medium on which a computer program is stored, and when the program is executed by a processor, the method described in any of the above-mentioned multiple method embodiments is implemented. The computer storage medium includes, but is not limited to: a compact disc read-only memory (CD-ROM), a random access memory (RAM), a floppy disk, a hard disk or a magneto-optical disk, etc.
[0093] An embodiment of the present invention further provides a computer program product, including computer instructions, which instruct a computing device to execute the task acceleration method in the above-mentioned multiple method embodiments.
[0094] In addition, it should be noted that the user-related information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to sample data used to train the model, data used for analysis, stored data, displayed data, etc.) involved in the embodiments of the present invention are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations and standards, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0095] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present invention 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 invention.
[0096] The above-mentioned method according to the embodiment of the present invention can be implemented in hardware, firmware, or implemented as software or computer code that can be stored in a recording medium (such as a CD-ROM, RAM, floppy disk, hard disk or magneto-optical disk), or implemented as a computer code originally stored in a remote recording medium or a non-temporary machine-readable medium downloaded through a network and to be stored in a local recording medium, so that the method described herein can be stored in such software processing on a recording medium using a general-purpose computer, a dedicated processor or programmable or dedicated hardware (such as an application-specific integrated circuit (ASIC) or a field programmable gate array (FPGA)). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., a random access memory (RAM), a read-only memory (ROM), a flash memory, etc.) that can store or receive software or computer code, and when the software or computer code is accessed and executed by a computer, a processor or hardware, the method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the method shown here, the execution of the code converts the general-purpose computer into a dedicated computer for executing the method shown here.
[0097] Those of ordinary skill in the art will appreciate that the units and method steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the embodiments of the present invention.
[0098] The above implementation methods are only used to illustrate the embodiments of the present invention, and are not limitations of the embodiments of the present invention. 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 invention. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present invention. The patent protection scope of the embodiments of the present invention should be defined by the claims.
Claims
1. A DPU chip, characterized in that: include: Interconnect forwarding unit; At least one upstream unloading unit is arranged at the upstream side of the interconnection forwarding unit, each upstream unloading unit is used to accelerate the upstream task in the data processing task according to the acceleration type of the upstream unloading unit to obtain the task acceleration result; At least one downstream unloading unit is arranged at the downstream side of the interconnection forwarding unit, and each downstream unloading unit is used to accelerate the downstream task in the data processing task according to the acceleration type of the downstream unloading unit to obtain a task acceleration result; The interconnect forwarding unit is used to perform a corresponding task acceleration result forwarding operation between the at least one upstream offloading unit and the at least one downstream offloading unit, and the forwarding operation includes at least one of the above: forwarding a task acceleration result of a first upstream offloading unit among the at least one upstream offloading unit to a first downstream offloading unit among the at least one downstream offloading unit; forwarding a task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit to a first upstream offloading unit among the at least one upstream offloading unit; forwarding a task acceleration result of a first upstream offloading unit among the at least one upstream offloading unit to a second upstream offloading unit among the at least one upstream offloading unit; The task acceleration result of a first downstream offloading unit among the at least one downstream offloading unit is forwarded to a second downstream offloading unit among the at least one downstream offloading unit.
2. The DPU chip according to claim 1, characterized in that: The interconnection forwarding unit is specifically used for: In downlink data transmission, the communication protocol acceleration processing result of the basic network offloading unit is forwarded to the network processor, wherein the basic network offloading unit is used to add the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task, and the network processor is used to add the corresponding communication protocol field to the data packet processed by the basic network offloading unit and send it to the external network; In uplink data transmission, the network processor is used to receive data packets from an external network, segment the received data packets into the virtual network where the data packets are located, and forward the segments to the basic network unloading unit, so that the basic network unloading unit forwards the segments to the corresponding virtual network.
3. The DPU chip according to claim 2, characterized in that: The interconnection forwarding unit is specifically used for: forwarding a task acceleration result of a first DMA offload unit of the host to a storage access offload unit, wherein the first DMA offload unit is used to perform memory access according to a memory access instruction of an upstream task, wherein the storage access offload unit is used to perform storage access according to the memory access result; The storage access result is forwarded to a second DMA offload unit of the coprocessor, wherein the second DMA offload unit is used to perform access acceleration processing on the storage access result via the coprocessor.
4. The DPU chip according to claim 3, characterized in that: The interconnection forwarding unit is specifically used for: The access acceleration result of the second DMA offloading unit is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
5. The DPU chip according to claim 2, characterized in that: The interconnection forwarding unit is specifically used for: forwarding the task acceleration result of the first DMA offloading unit of the host to the security offloading unit, wherein the security offloading unit is used to perform data security processing on the task acceleration result; The task acceleration result of the security offloading unit is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
6. The DPU chip according to claim 2, characterized in that: The interconnection forwarding unit is specifically used for: The task acceleration result of the first DMA offloading unit of the host is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
7. The DPU chip according to claim 2, characterized in that: The interconnection forwarding unit is specifically used for: Sending the network processing result of the network forwarding task performed by the network processor to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task; Sending the virtual network parsing result of the basic network offloading unit to the second DMA offloading unit of the coprocessor; The memory access result of the second DMA offloading unit is forwarded to the first DMA offloading unit of the host.
8. The DPU chip according to claim 7, characterized in that: The interconnection forwarding unit is specifically used for: The memory access result of the first DMA offloading unit is forwarded to the basic network offloading unit, so that the basic network offloading unit adds the corresponding virtual network domain identifier and transport layer segment identifier in the data packet of the downstream task.
9. A task acceleration method based on a DPU chip, characterized in that: include: Accelerating the upstream task in the data processing task by at least one upstream unloading unit arranged at the upstream side of the interconnection forwarding unit to obtain an upstream task acceleration result; forwarding the upstream task acceleration result to at least one downstream offloading unit arranged at the downstream side of the interconnect forwarding unit; The at least one downstream offloading unit accelerates the downstream tasks in the data processing tasks to obtain a downstream task acceleration result.
10. An electronic device, characterized in that: include: A processor, a memory, a communication interface and a communication bus, wherein the processor, the memory and the communication interface communicate with each other via the communication bus; The memory is used to store at least one executable instruction, and the executable instruction enables the processor to execute the method according to claim 9.
11. A computer storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method according to claim 9 is implemented.
Citation Information
Cited By
Communication method and device and storage medium
CN120881177A
A communication method, apparatus and storage medium
CN120881177B
Ensemble communication unloading method, system, equipment and medium
CN121979690A
