Data transmission method and device, computer readable storage medium, and electronic device

By establishing data transmission queues between data centers and using Ethernet switches for point-to-point data transmission, the problem of high CPU workload and high DRAM bandwidth utilization during the data transmission process is solved, achieving more efficient data transmission and reducing costs. power consumption.

CN118301101BActive Publication Date: 2024-09-13CHINA TELECOM CORP LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410725915.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-05
Publication Date
2024-09-13
Estimated Expiration
2044-06-05

AI Technical Summary

Technical Problem

During data transmission, the CPU workload is high and the DRAM bandwidth utilization is high, resulting in increased power consumption.

Method used

By establishing a data transmission queue between the data sender and the receiver, using Ethernet switches for point-to-point data transmission, the transmission delay is reduced, the data transmission speed is improved, and the data is temporarily stored in the internal storage buffer of the data receiver, reducing the need for DRAM and CPU access frequency.

Benefits of technology

It effectively reduces the access frequency to DRAM and central processor during data transmission, reduces power consumption, improves data transmission efficiency, and solves the problems of high central processor workload and high DRAM bandwidth utilization.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118301101B
    Figure CN118301101B
Patent Text Reader

Abstract

The present disclosure is about a data transmission method and device, a computer-readable storage medium, and an electronic device, and relates to the field of computer technology. The method includes: determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on the information of the internal storage buffer of the data receiver; the data sender receives a data read instruction, and moves the target data to the internal storage buffer of the data receiver based on the data transmission queue; the data receiver receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiver. The present disclosure reduces the access frequency of the data transmission process to the DRAM and the central processing unit.
Need to check novelty before this filing date? Find Prior Art

Description

Background Art

[0002] Against the backdrop of exponential data growth and with the continuous enrichment and development of new specifications and technologies such as network interconnection technology, more and more data centers tend to migrate their infrastructure to storage transmission protocol hardware that supports scalability and decomposability, replacing traditional network connection methods with efficient cross-regional network interconnection to reduce power consumption and improve data transmission efficiency.

[0003] However, in the process of data transmission in many data centers, data must be processed by the host-side central processing unit in collaboration with DRAM (Dynamic Random Access Memory), resulting in problems such as high CPU workload and DRAM bandwidth utilization, and high power consumption during data processing.

[0004] Therefore, a new data transmission method needs to be provided.

[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention

[0006] The purpose of the present disclosure is to provide a data transmission method, a data transmission device, a computer storage medium and an electronic device, thereby at least to a certain extent overcoming the problems of high CPU workload and high DRAM bandwidth utilization caused by the limitations and defects of related technologies.

[0007] According to one aspect of the present disclosure, a data transmission method is provided, including:

[0008] Determine a data sender and a data receiver, and establish a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver;

[0009] The data sender receives a data read instruction and moves the target data to an internal storage buffer of the data receiver based on the data transmission queue;

[0010] The data receiver receives a data write instruction and stores the target data in the internal storage buffer into the flash memory of the data receiver.

[0011] In an exemplary embodiment of the present disclosure, determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver, includes:

[0012] Obtaining a first identifier and a second identifier in a storage pool, determining a solid state hard disk corresponding to the first identifier as the data sender, and determining a solid state hard disk corresponding to the second identifier as the data receiver;

[0013] Establishing a first connection between the central processor and the data sender based on the first identifier, and establishing a second connection between the central processor and the data receiver based on the second identifier;

[0014] Based on the second connection, the information of the internal storage buffer of the data receiver is synchronized to the data sender, so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer.

[0015] In an exemplary embodiment of the present disclosure, the method further includes:

[0016] The internal storage buffer is registered to obtain a registration key of the internal storage buffer.

[0017] In an exemplary embodiment of the present disclosure, synchronizing the registration key of the internal storage buffer of the data receiver to the data sender based on the second connection so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer includes:

[0018] In response to a remote direct memory access transmission request of the central processor, synchronizing the registration key to the central processor based on the second connection, so that the central processor synchronizes the registration key to the data sender through the first connection;

[0019] The data sender receives the registration key transmitted by the central processor via the first connection using remote direct memory access;

[0020] The data sender and the data receiver establish the data transmission queue based on the registration key.

[0021] In an exemplary embodiment of the present disclosure, after establishing a data transmission queue between the data sender and the data receiver, the data transmission method further includes:

[0022] The data receiver receives a buffer allocation instruction from a central processing unit, and allocates a data buffer in the internal storage buffer based on the buffer allocation instruction.

[0023] In an exemplary embodiment of the present disclosure, the data sender receives a data read instruction, and moves target data to an internal storage buffer of the data receiver based on the data transmission queue, including:

[0024] A data read instruction sent by the central processing unit is received, and the data sender starts remote direct memory access according to the data read instruction, and moves the target data from the flash memory of the data sender to the data buffer of the data receiver through the Ethernet switch.

[0025] In an exemplary embodiment of the present disclosure, the data receiving party receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiving party, including:

[0026] A data buffer and a data write instruction sent by the central processing unit are received, and target data temporarily stored in the data buffer is refreshed to the flash memory of the data receiver according to the data write instruction.

[0027] According to one aspect of the present disclosure, there is provided a data transmission device, comprising:

[0028] A transmission queue establishment module, used to determine a data sender and a data receiver, and to establish a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver;

[0029] A data reading module, configured at the data sender, for receiving a data reading instruction and moving target data to an internal storage buffer of the data receiver based on the data transmission queue;

[0030] The data writing module is configured at the data receiving party and is used to receive a data writing instruction and store the target data in the internal storage buffer into the flash memory of the data receiving party.

[0031] According to one aspect of the present disclosure, a computer storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the data transmission method described in any of the above exemplary embodiments is implemented.

[0032] According to one aspect of the present disclosure, there is provided an electronic device, including:

[0033] Processor; and

[0034] A memory, configured to store executable instructions of the processor;

[0035] The processor is configured to execute the data transmission method described in any of the above exemplary embodiments by executing the executable instructions.

[0036] A data transmission method provided by an embodiment of the present disclosure determines a data sender and a data receiver, and establishes a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver; the data sender receives a data read instruction, and moves target data to the internal storage buffer of the data receiver based on the data transmission queue; the data receiver receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiver; on the one hand, a data sender and a data receiver are determined, and a data transmission queue is established between the data sender and the data receiver, thereby realizing point-to-point transmission between devices, reducing transmission delay and improving data transmission speed; on the other hand, the data sender temporarily stores the target data in the internal storage buffer of the data receiver according to the data read instruction, while ensuring the data center throughput, reducing the access frequency of the data transmission process to the DRAM and the central processing unit, reducing the power consumed in the data transmission process, and solving the problems of high central processing unit workload and high DRAM bandwidth utilization when using DRAM as temporary storage in the related technology.

[0037] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.

[0039] Figure 1 The flowchart of data transmission in a related technology according to an exemplary embodiment of the present disclosure is schematically shown.

[0040] Figure 2 The following schematically shows a flow chart of a data transmission method according to an exemplary embodiment of the present disclosure.

[0041] Figure 3 A block diagram of a data transmission system according to an exemplary embodiment of the present disclosure is schematically shown.

[0042] Figure 4 A flowchart schematically illustrates a method for determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver according to an exemplary embodiment of the present disclosure.

[0043] Figure 5A flowchart schematically shows a method for synchronizing a registration key of an internal storage buffer of a data receiver to a data sender based on a second connection according to an example embodiment of the present disclosure, so that the data sender and the data receiver establish a data transmission queue based on information of the internal storage buffer.

[0044] Figure 6 The following schematically shows a flow chart of a data transmission method according to an exemplary embodiment of the present disclosure.

[0045] Figure 7 A block diagram schematically shows a data transmission device according to an exemplary embodiment of the present disclosure.

[0046] Figure 8 An electronic device for implementing the above data transmission method according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION

[0047] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.

[0048] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. These functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor devices and / or microcontroller devices.

[0049] As data grows exponentially, the demand for storage bandwidth and capacity in data center infrastructure is also growing rapidly at the same scale. These demands will put greater pressure on power consumption, design complexity and system costs, and also put forward higher requirements for the scalability of data center infrastructure and network interconnection capabilities between regions. With the continuous enrichment and development of new specifications and technologies such as NVMe-oF (NVMe over Fabric, a protocol specification that uses NVMe to connect hosts to storage through network structures) and RDMA (Remote Direct Memory Access) network interconnection technology, more and more data centers tend to migrate their infrastructure to storage transmission protocol hardware that supports scalability and decomposability, and replace traditional network connection methods with efficient cross-regional network interconnection to reduce power consumption and improve data transmission efficiency.

[0050] refer to Figure 1 As shown, in the related art, the data transmission process includes:

[0051] 1. The host CPU (Central Processing Unit) allocates a data buffer for data copying in DRAM (Dynamic Random Access Memory), and sends a read instruction based on NVMe (Non-Volatile Memory Express) to SSD (Solid State Disk) #1 based on the NVMe interface specification. SSD #1 parses the read instruction and obtains the data buffer pointer in DRAM.

[0052] 2. SSD#1 starts DMA (Direct Memory Access) transfer to move and copy data from the internal flash memory to the pre-allocated data buffer in the DRAM on the host.

[0053] 3. After the data transmission is completed, SSD#1 sends the transmission completion and connection interruption information to the CPU of the host;

[0054] 4. The host CPU allocates the same data buffer in DRAM again, and sends the allocated data buffer and NVMe-based write instructions to SSD#2. SSD#2 parses the write instructions and the host data buffer pointer;

[0055] 5. SSD#2 starts DMA transfer to move and copy data from the data buffer of the Host DRAM to the flash memory inside SSD#2;

[0056] 6. After the data transmission is completed, SSD#2 sends the transmission completion and connection interruption information to the host CPU.

[0057] During the above data transmission process, the CPU on the host side needs to allocate data buffers for data transmission in turn. The transmitted data needs to be written to and read from DRMA. The redundant mobile copy of data will increase the PCIe uplink transmission load, and the complex PCIe Switch module will increase the delay of data transmission and limit the speed of data transmission.

[0058] Based on one or more of the above problems, this exemplary embodiment first provides a data transmission method, which can be run on a host. Of course, those skilled in the art can also run the method of the present invention on other platforms as required, which is not specifically limited in this exemplary embodiment. Figure 2 As shown, the data transmission method may include steps S210 to S230:

[0059] Step S210. Determine a data sender and a data receiver, and establish a data transmission queue between the data sender and the data receiver based on information of the internal storage buffer of the data receiver;

[0060] Step S220. Receiving a data read instruction, based on the data transmission queue, the data sender moves the target data to the internal storage buffer of the data receiver;

[0061] Step S230: receiving a data write instruction, the data receiver stores the target data in the internal storage buffer into the flash memory of the data receiver.

[0062] The above-mentioned data transmission method determines a data sender and a data receiver, and establishes a data transmission queue between the data sender and the data receiver based on the information of the internal storage buffer of the data receiver; the data sender receives a data read instruction, and moves the target data to the internal storage buffer of the data receiver based on the data transmission queue; the data receiver receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiver; on the one hand, the data sender and the data receiver are determined, and a data transmission queue is established between the data sender and the data receiver, so as to realize point-to-point transmission between devices, reduce transmission delay and improve data transmission speed; on the other hand, the data sender temporarily stores the target data in the internal storage buffer of the data receiver according to the data read instruction, while ensuring the data center throughput, reducing the access frequency of the data transmission process to the DRAM and the central processing unit, reducing the power consumed in the data transmission process, and solving the problems of high central processing unit workload and high DRAM bandwidth utilization when using DRAM as temporary storage in the related technology.

[0063] In the following, each step involved in the data transmission method according to the exemplary embodiment of the present disclosure is explained and illustrated in detail.

[0064] First, the application scenarios and purposes of the exemplary embodiments of the present disclosure are explained and illustrated. Specifically, the exemplary embodiments of the present disclosure can be applied to the transmission of big data in a data center, and mainly study how to reduce the access frequency to the host CPU and DRAM during data transmission and improve the efficiency of data transmission.

[0065] In the present disclosure, the characteristics of the PCIe bus standard supporting point-to-point transmission between two PCIe devices and the internal storage buffer characteristics of the CMB (Controller Memory Buffer, a read-write storage buffer inside the solid-state drive controller) in the NVMe 1.2 version standard are used as the basis. First, a data sender and a data receiver are determined, and a data transmission queue is established between the data sender and the data receiver. After the data transmission queue is successfully established, a data buffer is allocated in the internal storage buffer of the data receiver. When the data sender receives a data read instruction, data transmission is performed through the data transmission queue. The data sender stores the target data in the data buffer of the data receiver. When the data receiver receives a data write command, the data receiver refreshes the target data in the data buffer to its own flash memory.

[0066] Next, the data transmission system involved in the exemplary embodiment of the present disclosure is explained and illustrated. Figure 3As shown, the data transmission system may include a host end 310, an Ethernet switch 320, and a storage pool 330. The host end 310 includes a CPU 311, a DRAM 312, a Root Complex (the central mechanism of the PCIe topology) 313, an IOH (Input Output Hub) north bridge 314, an ICH (Input / Output Controller Hub) south bridge 315, and a NIC (Network Interface Controller) 316; the Ethernet switch 320 is used to transmit target data; the storage pool 330 is the storage space of the host end 310, and includes a solid state drive 331 and an Ethernet converter 332 corresponding to the solid state drive in the storage pool. The CPU 311 obtains the solid state drive 331 in the storage pool, and determines the data sender and the data receiver based on the obtained solid state drive, wherein the solid state drive corresponding to the data receiver includes a CMB. After determining the data receiver and the data sender, CPU311 establishes connections with the data receiver and the data sender respectively, obtains the CMB in the data receiver and related information of the CMB, and synchronizes the related information of the CMB to the data sender. The data sender establishes a data transmission queue with the data receiver based on the Ethernet switch 320 based on the related information of the CMB. After the data transmission queue is established, CPU311 first allocates a data buffer in the CMB of the data receiver, and sends a data read instruction to the data sender. The data sender starts RDMA transmission, and moves the target data to the data buffer of the data receiver through the Ethernet switch based on the data transmission queue. After the RDMA transmission is completed, the data sender synchronizes the data transmission completion information with CPU311. After receiving the data transmission completion information, CPU311 allocates the data buffer to the data receiver, and sends a data write command to the data receiver. The data receiver refreshes the target data in the data buffer to the flash memory according to the data write command. After the target data is written, the data receiver synchronizes the data transmission completion information with CPU311, thereby completing the data transmission.

[0067] The following will be combined Figure 3 Steps S210 to S230 are explained and illustrated in detail.

[0068] In step S210, a data sender and a data receiver are determined, and a data transmission queue between the data sender and the data receiver is established based on information of an internal storage buffer of the data receiver.

[0069] Among them, when the data center is performing large data transmission, it can transfer the data in one solid-state hard disk to another solid-state hard disk. Therefore, the data sender and the data receiver are solid-state hard disks in the storage pool. The solid-state hard disk is a solid-state hard disk that supports Ethernet interface transmission. The solid-state hard disk of the data receiver includes a CMB internal storage buffer. The CMB internal storage buffer in the solid-state hard disk can be registered in the memory of the host side, and a registration key is obtained after registration. After obtaining the registration key, the data sender obtains the registration key through the CPU of the host side, and establishes a data transmission queue with the data receiver through the registration key. Among them, the data transmission queue is established based on the Ethernet network, that is, the data is transmitted through the Ethernet optical fiber when transmitting.

[0070] In this example embodiment, reference Figure 4 As shown, determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver may include:

[0071] Step S410. Obtain a first identifier and a second identifier in the storage pool, determine the solid state drive corresponding to the first identifier as the data sender, and determine the solid state drive corresponding to the second identifier as the data receiver;

[0072] Step S420. A first connection is established between the central processor and the data sender based on the first identifier, and a second connection is established between the central processor and the data receiver based on the second identifier;

[0073] Step S430: Synchronize the information of the internal storage buffer of the data receiver to the data sender based on the second connection, so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer.

[0074] Below, step S410-step S430 will be further explained and illustrated. Specifically, the CPU of the host side obtains the first identifier and the second identifier of the solid-state hard disk in the storage pool, determines the solid-state hard disk corresponding to the first identifier as the data sender, and determines the solid-state hard disk corresponding to the second identifier as the data receiver; based on the obtained first identifier, a first connection is established between the CPU and the solid-state hard disk corresponding to the first identifier, and based on the obtained second identifier, a second connection is established between the CPU and the solid-state hard disk corresponding to the second identifier; wherein, the communication between the CPU and the data sender based on the first connection and the communication between the CPU and the data receiver based on the second connection are based on an Ethernet switch. After establishing the first connection between the CPU and the data sender and the second connection with the data receiver, the information of the internal storage buffer of the data receiver can be synchronized to the data sender based on the second connection and the first connection in turn. When the data sender receives the information, a data transmission queue with the data receiver is established based on the information.

[0075] Furthermore, the information of the internal storage buffer may be a registration key of the internal storage buffer, and the data transmission method may further include:

[0076] The internal storage buffer is registered to obtain a registration key of the internal storage buffer.

[0077] Specifically, the data receiver may register its internal storage buffer in the memory of the host side to obtain the registration key registered in the memory.

[0078] Further, refer to Figure 5 As shown, synchronizing the registration key of the internal storage buffer of the data receiver to the data sender based on the second connection so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer may include:

[0079] Step S510. In response to the remote direct memory access transmission request of the central processor, the registration key is synchronized to the central processor based on the second connection, so that the central processor synchronizes the registration key to the data sender through the first connection;

[0080] Step S520. The data sender receives the registration key transmitted by the central processor via the first connection using remote direct memory access;

[0081] Step S530. The data sender and the data receiver establish the data transmission queue based on the registration key.

[0082] In the following, step S510-step S530 will be further explained and illustrated. Specifically, first, the data receiver responds to the remote direct memory access transmission request of the CPU, synchronizes the registration key of its internal storage buffer to the CPU through the second connection, and sends a synchronization completion message to the CPU after the synchronization is completed. After the CPU receives the synchronization completion message, it synchronizes the registration key of the internal storage buffer of the data receiver to the data sender based on the first connection. After the data sender receives the registration key, it can establish a data transmission queue with the data receiver based on the data key. After the data transmission queue is established, point-to-point data transmission can be performed based on the data transmission queue.

[0083] In this example embodiment, after establishing a data transmission queue between a data sender and a data receiver, the data transmission method may further include:

[0084] The data receiver receives a buffer allocation instruction from a central processing unit, and allocates a data buffer in the internal storage buffer based on the buffer allocation instruction.

[0085] Specifically, before the data sender and the data receiver perform point-to-point data transmission, a data buffer needs to be allocated in the internal storage buffer of the data receiver for temporarily storing the target data sent by the data sender. The allocation of the data buffer in the internal storage buffer is initiated by the CPU, and the CPU can distribute the data buffer in the internal storage buffer according to the size of the target data to be transmitted, wherein the size of the data buffer can be equal to the size of the target data or larger than the size of the target data. In this example embodiment, the size of the data buffer is not specifically limited.

[0086] In step S220, the data sender receives a data read instruction, and moves the target data to an internal storage buffer of the data receiver based on the data transmission queue.

[0087] The CPU controls the start of data transmission, and the data read instruction is an instruction based on NVMe. The data sender receives the data read instruction, and moves the target data to the internal storage buffer of the data receiver based on the data transmission queue, which may include:

[0088] A data read instruction sent by the central processing unit is received, and the data sender starts remote direct memory access according to the data read instruction, and moves the target data from the flash memory of the data sender to the data buffer of the data receiver through the Ethernet switch.

[0089] Specifically, after the data transmission queue is established, the CPU sends a data read instruction to the data sender through the Ethernet switch based on the first connection to start data transmission between the data sender and the data receiver. After the data sender receives the data read instruction sent by the CPU, remote direct memory access is started, and the target data to be sent to the data receiver is directly copied from its flash memory to the data buffer of the data receiver through the Ethernet switch based on the data transmission queue. After the data sender synchronizes the target data to the data buffer, a data synchronization completion message is sent to the CPU through the Ethernet based on the first connection.

[0090] After receiving the data synchronization completion message from the data sender, the CPU may send a message to the data receiver so that the data receiver receives the target data in the data buffer.

[0091] In step S230, the data receiver receives the data write instruction and stores the target data in the internal storage buffer into the flash memory of the data receiver.

[0092] In this example embodiment, after the CPU receives the data synchronization completion message sent by the data sender, the CPU notifies the data receiver through the second connection to write the target data in the data buffer. Before the CPU notifies the data receiver to write the target data, the data buffer needs to be sent to the data receiver first.

[0093] In this example embodiment, the data receiver receives a data write instruction and stores the target data in the internal storage buffer into the flash memory of the data receiver, which may include:

[0094] A data buffer and a data write instruction sent by the central processing unit are received, and target data temporarily stored in the data buffer is refreshed to the flash memory of the data receiver according to the data write instruction.

[0095] Specifically, the data receiver receives the data buffer sent by the CPU and the data write instruction based on NVME, wherein the data buffer sent by the CPU may be a pointer to the data buffer; when the data receiver receives the data write instruction, it may decode the data write instruction, and according to the decoded data write instruction, store the target data in the data buffer corresponding to the data buffer pointer into its own flash memory.

[0096] After the data receiver stores the target data from the data buffer to the flash memory, it can send a data transfer completion message to the CPU.

[0097] The data transmission method provided by the example embodiments of the present disclosure has at least the following advantages: on the one hand, in combination with the CMB internal storage buffer characteristics in the NVMe1.2 version standard, a data buffer is allocated inside a solid-state drive based on NVMe-oF, and DRAM is not used as temporary storage, which effectively ensures the throughput of the data center while greatly reducing the access frequency to DRAM during data transmission and reducing the power consumed during data transmission; on the other hand, a solid-state drive with an integrated Ethernet converter and supporting Ethernet interface transmission is used to replace the traditional complex PCIe Switch (packet switch) including multiple logical PCI connection bridges with a simple, low-power Ethernet optical fiber and Ethernet switch, which reduces latency and increases data copy speed on the Ethernet switch side, making hardware investment more cost-effective and reducing costs and increasing efficiency.

[0098] The following will be combined Figure 6 The data transmission method in the exemplary embodiment of the present disclosure is further explained and illustrated. The data transmission method may include:

[0099] Step S602 determines the data recipient and the data sender, establishes a first connection between the CPU and the data sender, and a second connection between the CPU and the data recipient;

[0100] Step S604. The data receiver registers the internal storage buffer and obtains the registration key;

[0101] Step S606. The CPU sends a request to obtain memory buffer information to the data recipient, and the data recipient synchronizes the registration key to the CPU based on the second connection;

[0102] Step S608. The CPU synchronizes the data key to the data sender through the first connection;

[0103] Step S610. The data sender and the data receiver establish a data transmission queue based on the data key;

[0104] Step S612. The CPU allocates a data buffer in the internal storage buffer of the data receiver and sends a data read instruction to the data sender;

[0105] Step S614. The data sender starts remote direct data access based on the data read instruction, stores the target data to the data buffer of the data receiver through the data transmission queue, and sends a data synchronization completion message to the CPU;

[0106] Step S616. The CPU sends the data buffer and the data write instruction to the data recipient via the second connection;

[0107] Step S618. The data receiver stores the target data in the data buffer into the flash memory according to the data buffer and the write instruction, and sends a data transmission completion message to the CPU.

[0108] The exemplary embodiment of the present disclosure also provides a data transmission device, referring to Figure 7 As shown, it may include: a transmission queue establishment module 710, a data reading module 720 and a data writing module 730. Among them:

[0109] A transmission queue establishment module 710 is used to determine a data sender and a data receiver, and to establish a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver;

[0110] A data reading module 720, configured at the data sender, is used to receive a data reading instruction and move the target data to an internal storage buffer of the data receiver based on the data transmission queue;

[0111] The data writing module 730 is configured at the data receiving party, and is used to receive a data writing instruction and store the target data in the internal storage buffer into the flash memory of the data receiving party.

[0112] The specific details of each module in the above data transmission device have been described in detail in the corresponding data transmission method, so they will not be repeated here.

[0113] In an exemplary embodiment of the present disclosure, determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver, includes:

[0114] Obtaining a first identifier and a second identifier in a storage pool, determining a solid state hard disk corresponding to the first identifier as the data sender, and determining a solid state hard disk corresponding to the second identifier as the data receiver;

[0115] Establishing a first connection between the central processor and the data sender based on the first identifier, and establishing a second connection between the central processor and the data receiver based on the second identifier;

[0116] Based on the second connection, the information of the internal storage buffer of the data receiver is synchronized to the data sender, so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer.

[0117] In an exemplary embodiment of the present disclosure, the method further includes:

[0118] The internal storage buffer is registered to obtain a registration key of the internal storage buffer.

[0119] In an exemplary embodiment of the present disclosure, synchronizing the registration key of the internal storage buffer of the data receiver to the data sender based on the second connection so that the data sender and the data receiver establish the data transmission queue based on the information of the internal storage buffer includes:

[0120] In response to a remote direct memory access transmission request of the central processor, synchronizing the registration key to the central processor based on the second connection, so that the central processor synchronizes the registration key to the data sender through the first connection;

[0121] The data sender receives the registration key transmitted by the central processor via the first connection using remote direct memory access;

[0122] The data sender and the data receiver establish the data transmission queue based on the registration key.

[0123] In an exemplary embodiment of the present disclosure, after establishing a data transmission queue between the data sender and the data receiver, the data transmission method further includes:

[0124] The data receiver receives a buffer allocation instruction from a central processing unit, and allocates a data buffer in the internal storage buffer based on the buffer allocation instruction.

[0125] In an exemplary embodiment of the present disclosure, the data sender receives a data read instruction, and moves target data to an internal storage buffer of the data receiver based on the data transmission queue, including:

[0126] A data read instruction sent by the central processing unit is received, and the data sender starts remote direct memory access according to the data read instruction, and moves the target data from the flash memory of the data sender to the data buffer of the data receiver through the Ethernet switch.

[0127] In an exemplary embodiment of the present disclosure, the data receiving party receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiving party, including:

[0128] A data buffer and a data write instruction sent by the central processing unit are received, and target data temporarily stored in the data buffer is refreshed to the flash memory of the data receiver according to the data write instruction.

[0129] It should be noted that, although several modules or units of the device for action execution are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. On the contrary, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.

[0130] In addition, although the steps of the method in the present disclosure are described in a specific order in the drawings, this does not require or imply that the steps must be performed in this specific order, or that all the steps shown must be performed to achieve the desired results. Additionally or alternatively, some steps may be omitted, multiple steps may be combined into one step, and / or one step may be decomposed into multiple steps, etc.

[0131] In an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.

[0132] Those skilled in the art will appreciate that various aspects of the present disclosure may be implemented as systems, methods or program products. Therefore, various aspects of the present disclosure may be specifically implemented in the following forms, namely: complete hardware implementation, complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as "circuits", "modules" or "systems".

[0133] Refer to the following Figure 8 The electronic device 800 according to this embodiment of the present disclosure is described. Figure 8 The electronic device 800 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.

[0134] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.

[0135] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 performs the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification. For example, the processing unit 810 can perform the following steps: Figure 2The steps S210 shown in the figure are as follows: determining a data sender and a data receiver, and establishing a data transmission queue between the data sender and the data receiver based on information of an internal storage buffer of the data receiver; S220: the data sender receives a data read instruction, and moves target data to the internal storage buffer of the data receiver based on the data transmission queue; S230: the data receiver receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiver.

[0136] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access storage unit (RAM) 8201 and / or a cache storage unit 8202 , and may further include a read-only storage unit (ROM) 8203 .

[0137] The storage unit 820 may also include a program / utility 8204 having a set (at least one) of program modules 8205, such program modules 8205 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.

[0138] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.

[0139] The electronic device 800 can also communicate with one or more external devices 900 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), and can also communicate with one or more devices that enable users to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). This communication can be carried out through an input / output (I / O) interface 850. In addition, the electronic device 800 can also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs) and / or public networks, such as the Internet) through a network adapter 860. As shown in the figure, the network adapter 860 communicates with other modules of the electronic device 800 through a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.

[0140] Through the description of the above implementation, it is easy for those skilled in the art to understand that the example implementation described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the implementation of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes a number of instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the implementation of the present disclosure.

[0141] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible implementations, various aspects of the present disclosure may also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to execute the steps according to various exemplary implementations of the present disclosure described in the above "Exemplary Method" section of the present specification.

[0142] According to the program product for implementing the above method in the embodiment of the present disclosure, it can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present disclosure is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.

[0143] The program product may be any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof.

[0144] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0145] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.

[0146] Program code for performing the operations of the present disclosure may be written in any combination of one or more programming languages, including object-oriented programming languages ​​such as Java, C++, etc., and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., using an Internet service provider to connect through the Internet).

[0147] In addition, the above-mentioned figures are only schematic illustrations of the processes included in the method according to the exemplary embodiments of the present disclosure, and are not intended to be limiting. It is easy to understand that the processes shown in the above-mentioned figures do not indicate or limit the time sequence of these processes. In addition, it is also easy to understand that these processes can be performed synchronously or asynchronously, for example, in multiple modules.

[0148] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.

Claims

1. A data transmission method, characterized in that: include: Obtain a first identifier and a second identifier in a storage pool, determine a solid-state hard disk corresponding to the first identifier as a data sender, and determine a solid-state hard disk corresponding to the second identifier as a data receiver; establish a first connection between a central processing unit and the data sender based on the first identifier, and establish a second connection between a central processing unit and the data receiver based on the second identifier; register an internal storage buffer of the data receiver to obtain a registration key of the internal storage buffer; In response to a remote direct memory access transmission request of the central processor, the registration key is synchronized to the central processor based on the second connection, so that the central processor synchronizes the registration key to the data sender through the first connection; the data sender receives the registration key transmitted by the central processor through the first connection by remote direct memory access; the data sender and the data receiver establish a data transmission queue based on the registration key; The data sender receives a data read instruction and moves the target data to an internal storage buffer of the data receiver based on the data transmission queue; The data receiver receives a data write instruction and stores the target data in the internal storage buffer into the flash memory of the data receiver.

2. The data transmission method according to claim 1, characterized in that: After establishing a data transmission queue between the data sender and the data receiver, the data transmission method further includes: The data receiver receives a buffer allocation instruction from a central processing unit, and allocates a data buffer in the internal storage buffer based on the buffer allocation instruction.

3. The data transmission method according to claim 2, characterized in that: The data sender receives a data read instruction, and moves target data to an internal storage buffer of the data receiver based on the data transmission queue, including: A data read instruction sent by the central processing unit is received, and the data sender starts remote direct memory access according to the data read instruction, and moves the target data from the flash memory of the data sender to the data buffer of the data receiver through the Ethernet switch.

4. The data transmission method according to claim 2, characterized in that: The data receiving party receives a data write instruction, and stores the target data in the internal storage buffer into the flash memory of the data receiving party, including: A data buffer and a data write instruction sent by the central processing unit are received, and target data temporarily stored in the data buffer is refreshed to the flash memory of the data receiver according to the data write instruction.

5. A data transmission device, characterized in that: include: A transmission queue establishment module, used to obtain a first identifier and a second identifier in a storage pool, determine the solid-state hard disk corresponding to the first identifier as a data sender, and determine the solid-state hard disk corresponding to the second identifier as a data receiver; establish a first connection between a central processing unit and the data sender based on the first identifier, and establish a second connection between the central processing unit and the data receiver based on the second identifier; register an internal storage buffer of the data receiver to obtain a registration key for the internal storage buffer; In response to a remote direct memory access transmission request of the central processor, the registration key is synchronized to the central processor based on the second connection, so that the central processor synchronizes the registration key to the data sender through the first connection; the data sender receives the registration key transmitted by the central processor through the first connection by remote direct memory access; the data sender and the data receiver establish a data transmission queue based on the registration key; A data reading module, configured at the data sender, for receiving a data reading instruction and moving target data to an internal storage buffer of the data receiver based on the data transmission queue; The data writing module is configured at the data receiving party and is used to receive a data writing instruction and store the target data in the internal storage buffer into the flash memory of the data receiving party.

6. A computer storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the data transmission method according to any one of claims 1 to 4 is implemented.

7. An electronic device, characterized in that: include: processor; as well as A memory, configured to store executable instructions of the processor; The processor is configured to execute the data transmission method according to any one of claims 1 to 4 by executing the executable instructions.