Data transmission method and device based on DPU, electronic equipment and computer storage medium
By exclusively transmitting transaction data packets in the communication main line in the arbitration unit of the DPU and transmitting log data when the transmission is completed, the transaction data packet transmission delay and competition problems are solved, and low-latency and efficient data transmission are achieved.
Patent Information
- Application Number
- CN202411358054.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-20
AI Technical Summary
In high-frequency trading in the financial trading field, there is competition between transaction market data packets and log data during the transmission process, which makes it impossible to ensure that the transaction market data packets are transmitted to the client CPU in a timely manner.
After receiving the transaction data packet in the arbitration unit of the DPU, it exclusively occupies the main line of communication for transmission, and when the transaction data packet is transmitted, the log data in the cache unit is transmitted to the CPU to avoid log data and transaction data. Transmission competition between packets.
It realizes low-latency trading market data packet transmission, ensures that trading market data packets arrive at the CPU in time, avoids transmission competition between log data and trading market data packets, and ensures low-latency data transmission.
Smart Images

Figure CN119172376A_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to the field of computer technology, and in particular to a DPU-based data transmission method, device, electronic device, and computer storage medium. Background Art
[0002] High-Frequency Trading (HFT) in the financial trading field is an important application field of ultra-low latency and is also the field that pursues the most extreme performance. Financial institutions and exchanges need to trade at the microsecond or even nanosecond level to gain market advantages. Therefore, it is crucial for trading platforms and network infrastructure to achieve ultra-low latency.
[0003] With the popularization of DPU (Data Processing Unit) ultra-low latency technology, an ultra-low latency high-speed trading system is established based on DPU. The market server sends the trading market data packet to the client (Host) CPU, and transmits the market trading data packet and DPU log data to the client (Host) CPU through DPU, so that the client CPU can generate trading strategies in time.
[0004] Both the transaction quotation data packet and log data are transmitted to the CPU through the communication main line (PCIe). However, during the transmission process, there will be transmission competition between the transaction quotation data packet and the log data, and thus it is impossible to ensure that the transaction quotation data packet is transmitted to the client's CPU in a timely manner. Summary of the invention
[0005] In view of this, embodiments of the present application provide a data transmission method, device, electronic device and computer storage medium based on DPU.
[0006] According to a first aspect of an embodiment of the present application, a DPU-based data transmission method is provided, which is applied to an arbitration unit of the DPU, wherein the DPU further includes a cache unit and a communication main line, wherein one end of the arbitration unit is connected to the cache unit, and the other end is connected to the communication main line, and the method includes:
[0007] If the transaction quotation data packet is received, the transaction quotation data packet is transmitted to the CPU via the communication main line;
[0008] When the transaction quotation data packet is transmitted, the log data stored in the cache unit is transmitted to the CPU through the communication main line, wherein the log data is collected by the DPU and written into the cache unit during the process of transmitting the transaction quotation data packet.
[0009] In some embodiments, when the transaction quotation data packet is transmitted, transmitting the log data of the cache unit to the CPU via the communication main line includes:
[0010] Reading a log data packet in the cache unit, wherein the log data is stored in the cache unit in the form of a plurality of the log data packets;
[0011] The log data packet is sent to the CPU via the communication main line.
[0012] In some embodiments, the cache unit includes a first cache unit and a second cache unit connected to each other, wherein the storage capacity of the first cache unit is smaller than the storage capacity of the second cache unit;
[0013] The step of reading the log data packet in the cache unit includes:
[0014] The log data packet is read in the first cache unit, wherein the log data packet is read in the second cache unit by the first cache unit when the log data is transmitted.
[0015] In some embodiments, the method further comprises:
[0016] If the transaction quotation data packet is received during the process of transmitting the log data packet to the CPU via the communication main line, the transmission of the log data packet is stopped, and the transaction quotation data packet is transmitted via the communication main line.
[0017] In some embodiments, the method further comprises:
[0018] If the log data packet is being transmitted, the transmission of the log data packet is stopped, and it is detected whether there is a first log data packet being transmitted; if so, it is detected whether the transmission of the first log data packet is completed;
[0019] If the transmission of the first log data packet is not completed, a retention instruction is sent to the first cache unit, and an error mark is added to the first log data packet, wherein the retention instruction is used to instruct the first cache unit to retain the first log data packet, and the error mark is used to instruct the CPU to delete the received first log data packet.
[0020] In some embodiments, the method further comprises:
[0021] When the transaction quotation data packet is transmitted, the first log data packet is obtained in the first cache unit, and the first log data packet is transmitted to the CPU through the communication main line.
[0022] According to a second aspect of an embodiment of the present application, a data transmission device based on a DPU is provided, which is applied to an arbitration unit of the DPU, wherein the DPU further includes a cache unit and a communication main line, wherein one end of the arbitration unit is connected to the cache unit, and the other end is connected to the communication main line, and the device includes:
[0023] A first transmission module, configured to transmit the transaction quotation data packet to the CPU via the communication main line upon receiving the transaction quotation data packet;
[0024] The second transmission module is used to transmit the log data stored in the cache unit to the CPU through the communication main line when the transmission of the transaction quotation data packet is completed, wherein the log data is collected by the DPU and written into the cache unit during the process of transmitting the transaction quotation data packet.
[0025] According to a third aspect of an embodiment of the present application, 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 through the communication bus; the memory is used to store at least one executable instruction, and the executable instruction enables the processor to perform operations corresponding to the DPU-based data transmission method as described in the first aspect.
[0026] According to a fourth aspect of an embodiment of the present application, a computer storage medium is provided, on which a computer program is stored. When the program is executed by a processor, the DPU-based data transmission method as described in the first aspect is implemented.
[0027] According to the DPU-based data transmission method provided in the embodiment of the present application, after receiving the transaction market data packet, the arbitration unit transmits the transaction market data packet to the CPU through the communication main line, so that the transaction market data packet can monopolize the communication main line, and then the transaction market data packet can be transmitted to the CPU with low latency. Furthermore, when the transmission of the transaction market data packet is completed, the arbitration unit transmits the log data stored in the cache unit to the CPU, which can avoid transmission competition between the log data and the transaction market data packet, and further ensure the low-latency transmission of the transaction market data packet to the CPU. BRIEF DESCRIPTION OF THE DRAWINGS
[0028] In order to more clearly illustrate the embodiments of the present application 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 application. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0029] Figure 1An exemplary schematic diagram of a DPU applicable to an embodiment of the present application;
[0030] Figure 2 is a flowchart of a data transmission method based on DPU according to an embodiment of the present application;
[0031] Figure 3 An exemplary schematic diagram of another DPU applicable to the embodiments of the present application;
[0032] Figure 4 is a flowchart of a DPU-based data transmission method according to another embodiment of the present application;
[0033] Figure 5 is a structural block diagram of a DPU-based data transmission method and device according to an embodiment of the present application;
[0034] Figure 6 It is a schematic diagram of the structure of an electronic device according to an embodiment of the present application. DETAILED DESCRIPTION
[0035] 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.
[0036] The specific implementation of the embodiment of the present application is further explained below in conjunction with the accompanying drawings of the embodiment of the present application.
[0037] The embodiment of the present application provides a data transmission method based on a DPU, which is applied to an arbitration unit of a DPU, such as Figure 1 As shown, it is a schematic diagram of a DPU structure provided in an embodiment of the present application. The DPU in the embodiment of the present application includes an arbitration unit, a cache unit, a media access control unit and a communication main line, wherein one end of the arbitration unit is connected to the media access unit and the cache unit respectively, and the other end is connected to the communication main line. Furthermore, the DPU is connected to the CPU through the communication main line.
[0038] Furthermore, the DPU-based data transmission method of the embodiment of the present application comprises the following specific steps: Figure 2 As shown, including:
[0039] S201, if the arbitration unit receives a transaction quotation data packet, the arbitration unit transmits the transaction quotation data packet to the CPU via the communication main line.
[0040] In an embodiment of the present application, when the market server sends a transaction market data packet to the DPU, the DPU receives the transaction market data packet through the media access control unit. After receiving the transaction market data packet, the media access controller sends the transaction market data packet to the arbitration unit. After receiving the transaction market data packet, the arbitration unit transmits the transaction market data packet to the CPU through the communication main line to ensure low-latency transmission of the transaction market data packet.
[0041] S202, when the transaction quotation data packet transmission is completed, the arbitration unit transmits the log data stored in the cache unit to the CPU through the communication main line.
[0042] In the embodiment of the present application, when the arbitration unit transmits the transaction quotation data packet to the CPU through the communication main line, the DPU collects its own operation data, operation status data and other log data, and temporarily writes the log data into the cache unit inside the DPU. When the arbitration unit determines that the transmission of the transaction quotation data packet is completed, the arbitration unit reads the log data in the cache unit and transmits the log data to the CPU through the communication main line, thereby avoiding transmission competition between the log data and the transaction quotation data packet.
[0043] According to the DPU-based data transmission method provided in the embodiment of the present application, after receiving the transaction market data packet, the arbitration unit transmits the transaction market data packet to the CPU through the communication main line, so that the transaction market data packet can monopolize the communication main line, and then the transaction market data packet can be transmitted to the CPU with low latency. Furthermore, when the transmission of the transaction market data packet is completed, the arbitration unit transmits the log data stored in the cache unit to the CPU, which can avoid transmission competition between the log data and the transaction market data packet, and further ensure the low-latency transmission of the transaction market data packet to the CPU.
[0044] Furthermore, the DPU-based data transmission method of the embodiment of the present application may further include the following steps:
[0045] S203: If the arbitration unit does not receive the transaction quotation data packet and the cache unit stores the log data, the log data is transmitted to the CPU via the communication main line.
[0046] In an embodiment of the present application, when the arbitration unit does not receive a transaction quotation data packet, the arbitration unit determines that the transaction quotation data packet does not need to be transmitted at this time, and further determines that the transmission of the log data at this time will not compete with the transmission of the transaction quotation data packet. The arbitration unit determines whether the log data exists in the cache unit, and when it is determined that the log data exists in the cache unit, the arbitration unit transmits the log data to the CPU to complete the transmission of the log data.
[0047] Furthermore, when the transaction quotation data packet is transmitted, the embodiment of the present application transmits the log data of the cache unit to the CPU through the communication main line, which may include the following steps:
[0048] S2021, the arbitration unit reads the log data packet in the cache unit.
[0049] In the embodiment of the present application, the arbitration unit reads the log data packet in the cache unit during the process of transmitting the log data to the CPU via the communication main line. Specifically, when the DPU of the embodiment of the present application writes the log data to the cache unit, it obtains a preset number of bytes, and divides the log data into a plurality of log sub-data using the preset number of bytes, and further, encapsulates each log sub-data to generate a plurality of log data packets, and finally writes the log data to the cache unit in the form of the log data packet, so that the log data in the cache unit is stored in the form of a plurality of log data packets.
[0050] S2022: The arbitration unit sends the log data packet to the CPU through the communication main line.
[0051] In the embodiment of the present application, after the arbitration unit completes reading the log data packet, the arbitration unit sends the read log data packet to the CPU through the communication main line to transmit the log data to the CPU.
[0052] The embodiment of the present application can conveniently transmit log data by dividing log data into log data packets for transmission.
[0053] Furthermore, if Figure 3 As shown, an embodiment of the present application provides another DPU structure schematic diagram, wherein the cache unit of the embodiment of the present application includes a first cache unit and a second cache unit connected to each other, and the storage capacity of the first cache unit is smaller than the storage capacity of the second storage unit. Specifically, one end of the first cache unit is connected to the arbitration unit, and the other end is connected to the second storage unit.
[0054] Furthermore, the reading of the log data packet in the cache unit in the embodiment of the present application may include the following steps:
[0055] S20211, the arbitration unit reads the log data packet in the first cache unit.
[0056] In an embodiment of the present application, when the arbitration unit transmits the log data packet, the log data packet is read in the first cache unit, and further, the arbitration unit transmits the log data packet to the CPU via the communication main line. Specifically, the log data packet of the first cache unit is read in the second cache unit by the first cache unit when the log data is transmitted. Further, when the DPU writes the log data packet to the cache unit, the DPU writes the log data packet to the second cache unit, and when the log data packet needs to be transmitted, the first cache unit reads the log data packet in the second cache unit.
[0057] Furthermore, in the first cache unit, after the arbitration unit completes reading the log data packet, the first cache unit retains the log data packet, and when the arbitration unit completes transmitting the log data packet, the first cache unit deletes the log data packet.
[0058] Furthermore, after the second cache unit reads the log data packet, the second cache unit deletes the read log data packet.
[0059] The embodiment of the present application stores log data through a cache unit, which can avoid competition between the transmission of log data and the transmission of market trading data packets. By setting up two cache units, the transmitted log data packets can be temporarily retained during the transmission of the log data packets, and then the log data packets can be deleted when the transmission of the log data packets is completed. Deleting the log data packets can ensure that the log data packets are completely transmitted to the CPU, thereby ensuring the completeness of the log data transmission.
[0060] Furthermore, the DPU-based data transmission method of the embodiment of the present application may further include the following steps:
[0061] S204, if the arbitration unit receives a transaction quotation data packet during the process of transmitting the log data packet to the CPU via the communication main line, the arbitration unit stops transmitting the log data packet and transmits the transaction quotation data packet via the communication main line.
[0062] In an embodiment of the present application, when the arbitration unit is transmitting a log data packet to the CPU via the communication main line, if the arbitration unit receives a transaction quotation data packet sent by the media access control unit, the arbitration unit determines that the transaction quotation data packet needs to be transmitted at this time, and then the arbitration unit immediately stops transmitting the log data packet and transmits the transaction quotation data packet to the CPU via the communication main line.
[0063] In the process of transmitting the log data packet to the CPU via the communication main line, if the arbitration unit receives the transaction market data packet sent by the media access control unit, the transaction market data packet can be transmitted to the CPU in a timely manner by immediately stopping the transmission of the log data packet and transmitting the transaction market data packet to the CPU via the communication main line.
[0064] Furthermore, the DPU-based data transmission method of the embodiment of the present application may further include the following steps:
[0065] The DPU-based data transmission method of this embodiment can be executed by any appropriate electronic device with data processing capabilities, including but not limited to: servers, mobile terminals (such as mobile phones, PADs, etc.) and PCs, etc.
[0066] S205 , if the transmission of the log data packet is stopped during the transmission of the log data packet, the arbitration unit detects whether there is a first log data packet being transmitted.
[0067] In the embodiment of the present application, when the arbitration unit stops transmitting the log data packet during the process of transmitting the log data packet, the arbitration unit simultaneously detects whether there is a first log data packet being transmitted at this time.
[0068] S206: If yes, the arbitration unit sends a retain instruction to the first cache unit and adds an error mark to the first log data packet.
[0069] In an embodiment of the present application, after the arbitration unit determines to store the first log data packet, the arbitration unit sends a retention instruction to the first cache unit to instruct the first cache unit to save the first data packet, and adds an error mark to the first log data packet to instruct the CPU to delete the first log data packet.
[0070] S207, when the transaction quotation data packet is transmitted, the arbitration unit obtains the first log data packet in the first cache unit, and transmits the first log data packet to the CPU through the communication main line.
[0071] In an embodiment of the present application, when the arbitration unit completes transmission of the newly received transaction quotation data packet, the arbitration unit re-reads the first log data packet in the first cache unit, and re-transmits the first log data packet to the CPU through the communication main line, thereby ensuring that the log data packets that the CPU can receive are all complete.
[0072] In the embodiment of the present application, after the arbitration unit determines that the first data packet exists, it sends a retention instruction to the first cache unit to instruct the first cache unit to save the first data packet, and adds an error mark in the first log data packet to instruct the CPU to delete the first log data packet. When the transmission of the newly received transaction quotation data packet is completed, the arbitration unit re-reads the first log data packet in the first cache unit, and re-transmits the first log data packet to the CPU through the communication main line, thereby ensuring the integrity of the log data transmission.
[0073] Furthermore, the embodiment of the present application provides another data transmission method based on DPU, the specific steps are as follows: Figure 4 Shown include:
[0074] If the arbitration unit receives a transaction quotation data packet, it transmits the transaction quotation data packet to the CPU through the communication main line. In the process of transmitting the transaction quotation data packet to the CPU through the communication main line, the DPU collects its own operation data, operation status data and other log data, and obtains a preset number of bytes at the same time, and uses the preset number of bytes to divide the log data into multiple log sub-data. Further, each log sub-data is encapsulated to generate multiple log data packets, and finally the log data is written into the second cache unit in the form of a log data packet.
[0075] When transmitting the log data packet, the arbitration unit reads the log data packet in the first cache unit to transmit the log data packet to the CPU through the communication main line. When the arbitration unit transmits the log data packet to the CPU through the communication main line, if the arbitration unit receives the transaction market data packet sent by the media access control unit, the transaction market data packet is transmitted to the CPU through the communication main line.
[0076] When the arbitration unit stops transmitting the log data packet during the process of transmitting the log data packet, the arbitration unit simultaneously detects whether there is a first log data packet being transmitted at this time. If so, the arbitration unit sends a retention instruction to the first cache unit to instruct the first cache unit to save the first data packet, and adds an error mark in the first log data packet to instruct the CPU to delete the first log data packet. When the arbitration unit completes the transmission of the received transaction quotation data packet, the arbitration unit re-reads the first log data packet in the first cache unit, and re-transmits the first log data packet to the CPU through the communication main line.
[0077] Furthermore, the embodiment of the present application provides a data transmission device based on a DPU, which is applied to an arbitration unit of the DPU, wherein the DPU further includes a cache unit and a communication main line, wherein one end of the arbitration unit is connected to the cache unit, and the other end is connected to the communication main line, as shown in FIG. Figure 5 As shown, the device comprises:
[0078] The first transmission module 501 is used to transmit the transaction market data packet to the CPU through the communication main line if the transaction market data packet is received;
[0079] The second transmission module 502 is used to transmit the log data stored in the cache unit to the CPU through the communication main line when the transaction quotation data packet is transmitted, wherein the log data is collected by the DPU and written into the cache unit during the process of transmitting the transaction quotation data packet.
[0080] Furthermore, the first transmission module 501 of the embodiment of the present application is also used to read log data packets in the cache unit, wherein the log data is stored in the cache unit in the form of multiple log data packets; and send the log data packets to the CPU through the communication main line.
[0081] Furthermore, the first transmission module 501 of the embodiment of the present application is also used to read the log data packet in the first cache unit, wherein the log data packet is read by the first cache unit in the second cache unit when the log data is transmitted.
[0082] Furthermore, the DPU-based data transmission device in the embodiment of the present application also includes a third transmission module, which is specifically used to stop transmitting the log data packet and transmit the transaction market data packet through the communication main line if a transaction market data packet is received during the process of transmitting the log data packet to the CPU through the communication main line.
[0083] Furthermore, the DPU-based data transmission device in the embodiment of the present application also includes a detection module, which is specifically used to stop transmitting the log data packet during the transmission of the log data packet and detect whether there is a first log data packet being transmitted; if so, send a retention instruction to the first cache unit and add an error mark to the first log data packet, wherein the retention instruction is used to instruct the first cache unit to retain the first log data packet, and the error mark is used to instruct the CPU to delete the received first log data packet.
[0084] Furthermore, the second transmission module 502 of the embodiment of the present application is also used to obtain the first log data packet in the first cache unit when the transaction quotation data packet is transmitted, and transmit the first log data packet to the CPU through the communication main line.
[0085] The DPU-based data transmission device of this embodiment is used to implement the corresponding DPU-based data transmission methods in the aforementioned multiple method embodiments, and has the beneficial effects of the corresponding method embodiments, which will not be described in detail here. In addition, the functional implementation of each module in the deadlock processing device of this embodiment can refer to the description of the corresponding parts in the aforementioned method embodiments, which will not be described in detail here.
[0086] Reference Figure 6 , shows a schematic diagram of the structure of an electronic device according to an embodiment of the present application. The specific embodiment of the present application does not limit the specific implementation of the electronic device.
[0087] like Figure 6 As shown, the electronic device may include: a processor (processor) 602 , a communication interface (Communications Interface) 604 , a memory (memory) 606 , and a communication bus 608 .
[0088] in:
[0089] The processor 602 , the communication interface 604 , and the memory 606 communicate with each other via a communication bus 608 .
[0090] The communication interface 604 is used to communicate with other electronic devices or servers.
[0091] The processor 602 is used to execute the program 610, and specifically can execute the relevant steps in the above-mentioned DPU-based data transmission method embodiment.
[0092] Specifically, the program 610 may include program codes, which include computer operation instructions.
[0093] The processor 602 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of the present application. The one or more processors included in the smart device may be processors of the same type, such as one or more CPUs; or may be processors of different types, such as one or more CPUs and one or more ASICs.
[0094] The memory 606 is used to store the program 610. The memory 606 may include a high-speed RAM memory, and may also include a non-volatile memory, such as at least one disk memory.
[0095] The program 610 may be specifically configured to enable the processor 602 to perform the following operations:
[0096] In an optional implementation, the program 610 is also used to enable the processor 602 to implement each step in the program 610. The specific implementation can refer to the corresponding steps and corresponding descriptions in the units in the above-mentioned DPU-based data transmission method embodiment, 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 devices and modules can refer to the corresponding process description in the above-mentioned method embodiment, which will not be repeated here.
[0097] An embodiment of the present application also provides a computer program product, including computer instructions, which instruct a computing device to perform operations corresponding to any DPU-based data transmission method in the above-mentioned multiple method embodiments.
[0098] It should be pointed out that, according to the needs of implementation, the various components / steps described in the embodiments of the present application 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 application.
[0099] The above-mentioned method according to the embodiment of the present application 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 AS IC or FPGA). It can be understood that a computer, a processor, a microprocessor controller or programmable hardware includes a storage component (e.g., RAM, ROM, flash memory, etc.) that can store or receive software or computer code. When the software or computer code is accessed and executed by a computer, a processor or hardware, the DPU-based data transmission method described herein is implemented. In addition, when a general-purpose computer accesses the code for implementing the DPU-based data transmission method shown herein, the execution of the code converts the general-purpose computer into a dedicated computer for executing the DPU-based data transmission method shown herein.
[0100] 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 application.
[0101] The above implementation methods are only used to illustrate the embodiments of the present application, and are not limitations on the embodiments of the present application. Ordinary technicians in the relevant technical field can make various changes and modifications without departing from the spirit and scope of the embodiments of the present application. Therefore, all equivalent technical solutions also belong to the scope of the embodiments of the present application. The scope of patent protection of the embodiments of the present application should be limited by the claims.
Claims
1. A data transmission method based on DPU, characterized in that: An arbitration unit applied to a DPU, wherein the DPU further comprises a cache unit and a communication main line, wherein one end of the arbitration unit is connected to the cache unit and the other end is connected to the communication main line, and the method comprises: If a transaction quotation data packet is received, the transaction quotation data packet is transmitted to the CPU via the communication main line; When the transaction quotation data packet is transmitted, the log data stored in the cache unit is transmitted to the CPU through the communication main line, wherein the log data is collected by the DPU and written into the cache unit during the process of transmitting the transaction quotation data packet.
2. The method according to claim 1, characterized in that: When the transaction quotation data packet is transmitted, the log data of the cache unit is transmitted to the CPU via the communication main line, including: Reading a log data packet in the cache unit, wherein the log data is stored in the cache unit in the form of a plurality of the log data packets; The log data packet is sent to the CPU via the communication main line.
3. The method according to claim 2, characterized in that The cache unit comprises a first cache unit and a second cache unit connected to each other, wherein the storage capacity of the first cache unit is smaller than the storage capacity of the second cache unit; The step of reading the log data packet in the cache unit includes: The log data packet is read in the first cache unit, wherein the log data packet is read in the second cache unit by the first cache unit when the log data is transmitted.
4. The method according to claim 3, characterized in that The method further comprises: If the transaction quotation data packet is received during the process of transmitting the log data packet to the CPU via the communication main line, the transmission of the log data packet is stopped, and the transaction quotation data packet is transmitted via the communication main line.
5. The method according to claim 4, characterized in that The method further comprises: If during the process of transmitting the log data packet, the transmission of the log data packet is stopped, and it is detected whether there is a first log data packet being transmitted; If it exists, a retention instruction is sent to the first cache unit, and an error mark is added to the first log data packet, wherein the retention instruction is used to instruct the first cache unit to retain the first log data packet, and the error mark is used to instruct the CPU to delete the received first log data packet.
6. The method according to claim 5, characterized in that The method further comprises: When the transaction quotation data packet is transmitted, the first log data packet is obtained in the first cache unit, and the first log data packet is transmitted to the CPU through the communication main line.
7. A data transmission device based on DPU, characterized in that: An arbitration unit applied to a DPU, wherein the DPU further includes a cache unit and a communication main line, wherein one end of the arbitration unit is connected to the cache unit and the other end is connected to the communication main line, and the device includes: A first transmission module, configured to transmit a transaction quotation data packet to the CPU via the communication main line upon receipt of the transaction quotation data packet; The second transmission module is used to transmit the log data stored in the cache unit to the CPU through the communication main line when the transmission of the transaction quotation data packet is completed, wherein the log data is collected by the DPU and written into the cache unit during the process of transmitting the transaction quotation data packet.
8. 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 perform operations corresponding to the DPU-based data transmission method as described in any one of claims 1-6.
9. A computer storage medium having a computer program stored thereon, wherein when the program is executed by a processor, the DPU-based data transmission method as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising computer instructions, wherein the computer instructions instruct a computing device to perform operations corresponding to the DPU-based data transmission method as described in any one of claims 1-6.
