Unlock instant, AI-driven research and patent intelligence for your innovation.

A data transmission method and device

A data transmission method and transmission control protocol technology, applied in the field of communication, can solve problems such as the reduction of CPU resource utilization.

Active Publication Date: 2020-04-28
HUAWEI TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] Embodiments of the present invention provide a data transmission method and device, which solves the problem that in multi-core application scenarios, due to the fact that data transmission on various data transmission connections needs to be bound with a unified CPU for interrupt operations, CPU resources The problem of reduced utilization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A data transmission method and device
  • A data transmission method and device
  • A data transmission method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0085] Embodiments of the present invention provide a data transmission method, such as image 3 shown, including:

[0086] 101. The TOE receives a first TCP packet transmitted on a first TCP connection.

[0087] 102. The TOE searches the locally stored connection information table for the identifier and first address information of the first CPU corresponding to the first TCP connection, where the connection information table includes a correspondence between the first TCP connection and the identifier of the first CPU, And the corresponding relationship between the first TCP connection and the first address information.

[0088] 103. The TOE stores the data in the first TCP packet in a storage location indicated by the first address information.

[0089] 104. The TOE initiates a first interrupt request to the first CPU according to the identifier of the first CPU, and triggers the first CPU to obtain the data in the first TCP packet from the memory according to the first a...

Embodiment 2

[0118] Embodiments of the present invention provide a data transmission method, such as Figure 5 shown, including:

[0119] 301. The TOE acquires configuration information for establishing a first TCP connection from a sender.

[0120] 302. If the first CID obtained according to the configuration information is not stored in the TOE, the TOE sends a second interrupt request to the control device.

[0121]303. After receiving the second interrupt request, the control device determines a CPU from the N CPUs as the first CPU, and the first CPU is used to process data transmitted over the first TCP connection.

[0122] 304. The control device sends instruction information to the first CPU, where the instruction information is used to instruct the first CPU to process data transmitted on the first TCP connection.

[0123] 305. The first CPU determines first address information according to the indication information, where the first address information is used to indicate a stor...

Embodiment 3

[0147] attached Figure 7 What is shown is the hardware schematic diagram of TOE01 provided by the present invention.

[0148] Wherein, the TOE01 includes a control module 01, a TOE receiving end 100 connected to the control module 01, and a TOE sending end 200, wherein the TOE receiving end 100 specifically includes a header parsing module 02, a first DMA controller 03, a first processing The engine 04 and the first cache 05 , the TOE sender 200 specifically includes an encapsulation module 06 , a second DMA controller 07 , a second processing engine 08 and a second cache 09 .

[0149] The control module 01 is the control center of the TOE01, and the control module 01 executes various functions of the control module 01 by processing the instructions and data received by the TOE receiving end 100 or the TOE sending end 200. Wherein, the corresponding relationship between the first TCP connection and the identification of the first CPU, and the corresponding relationship betwe...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

Embodiments of the invention provide a data transmission method and an apparatus thereof and relates to the communication technology field. In a multi-core application scene, resource utilization rates of a plurality of CPUs are low. By uisng the method and the apparatus of the invention, the above problem is solved. The scheme comprises the following steps of receiving a first TCP message transmitted on first TCP connection; searching an identification of a first CPU corresponding to the first TCP connection and first address information in a connection information table stored locally, wherein the connection information table includes a corresponding relation of the first TCP connection and the identification of the first CPU and a corresponding relation of the first TCP connection and the first address information; storing data in the first TCP message in a storage position indicated by the first address information; according to the identification of the first CPU, initiating a first interruption request to the first CPU, and triggering the first CPU and acquiring data in the first TCP message from a memory according to the first address information.

Description

technical field [0001] The present invention relates to the field of communication technology, in particular to a data transmission method and device. Background technique [0002] TOE (Transmission Control Protocol Offload Engine, TCP offload engine for short) is used to transfer part of the processing tasks related to TCP / IP on the CPU to a dedicated unit. Take the network card integrated with TOE as an example, refer to figure 1 , by adopting the TOE network card equipped with TOE, the four-layer processing tasks including the TCP layer and the IP layer can be transferred from the host CPU to the TOE network card, which greatly reduces the processing burden of the host CPU. [0003] In a multi-core system including multiple CPUs, such as Soc (system on chip, system on chip) or a server with multiple CPUs, such as figure 2 As shown, usually the TOE is mounted on the system bus of the sending end or the receiving end, and communicates with the memory and multiple CPUs re...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Patents(China)
IPC IPC(8): H04L12/803
Inventor 祝磊张振兴李东皤
Owner HUAWEI TECH CO LTD