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

Method for realizing TCP (transmission control protocol) connection data buffer by combining software and hardware

A technology for connecting data and data caching, applied in data exchange networks, electrical components, digital transmission systems, etc., can solve the problem of hardware consumption and large storage, and achieve the effect of reducing the cost of network card hardware

Active Publication Date: 2014-07-30
DAWNING INFORMATION IND BEIJING +1
View PDF4 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In some systems that need to process TCP data in real time, the host not only needs to get the data transmitted by TCP in time, but sometimes also needs to link the data at the end of the previous data packet with the data at the beginning of the next data packet for processing, that is, It is said that part of the data of the previous data packet needs to be cached to the next data packet. If it is cached in the hardware, the hardware needs to consume a large amount of storage

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
  • Method for realizing TCP (transmission control protocol) connection data buffer by combining software and hardware

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0016] The present invention is a system combining software and hardware, and the hardware is a TCP unloading device capable of carrying out TCP connection management and random rearrangement of network messages. The software mainly expands the TCP node structure representing a TCP connection in the application software API interface library, and reserves a cache area before the memory of each TCP data packet to cache the end data in the previous packet , and record the length of the cached data at the same time, and use a pointer to indicate the starting position of the data to be processed currently.

[0017] The realization method and process of this invention are as follows:

[0018] (1) The hardware network card receives the message, and performs TCP connection management and sorting.

[0019] The network card starts the TCP offloading function, manages the TCP connection state, reorders the out-of-order TCP data, and uploads it to the host software in units of messages....

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

The invention provides a method for realizing TCP connection data caching by combining software and hardware. The hardware network card receives the message, performs TCP connection management and sorting, the interface library constructs the TCP node structure for the new connection, and reserves a buffer area before the memory of the TCP data of each packet to cache the end data in the previous packet , and record the length of the cached data at the same time, and use a pointer to indicate the starting position of the data to be processed currently. After the interface library receives the tcp data packet, it extracts the TCP data from the data message and updates the TCP node structure. If the application needs to cache the message, the interface library caches the data in the TCP node by copying the data and moving the pointer. When the next tcp data packet After arriving, the interface library uses the cached data to stitch together the two packets before and after. The invention does not need to cache data in the network card hardware of the TCP unloading system, thereby reducing the cost of the network card hardware.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a method for realizing TCP connection data caching by combining software and hardware. Background technique [0002] TCP offloading technology is a technology that solidifies the TCP / IP network protocol stack processing in the host software to the network card hardware to reduce the system CPU load and increase the network IO bandwidth. The TCP offloading system generally includes two parts of functions. The first part is TCP connection state management, which uses the TCP connection table to maintain the state of each TCP connection start, data transmission, and close. The second part is TCP data management, which is used to reorder the data of out-of-order TCP packets, extract the data transmitted by TCP and submit it to the host. [0003] Generally, in the TCP offloading system, when the hardware performs TCP data management, a data buffer is generally used in the TCP o...

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/70H04L29/08H04L47/27
Inventor 刘朝辉窦晓光纪奎张磊白宗元刘灿李锋伟
Owner DAWNING INFORMATION IND BEIJING