CN102111403A - Method and device for acquiring transmission control protocol (TCP) connection data at high speed - Google Patents

Method and device for acquiring transmission control protocol (TCP) connection data at high speed Download PDF

Info

Publication number
CN102111403A
CN102111403A CN2010106089839A CN201010608983A CN102111403A CN 102111403 A CN102111403 A CN 102111403A CN 2010106089839 A CN2010106089839 A CN 2010106089839A CN 201010608983 A CN201010608983 A CN 201010608983A CN 102111403 A CN102111403 A CN 102111403A
Authority
CN
China
Prior art keywords
tcp
message
data
network interface
high speed
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN2010106089839A
Other languages
Chinese (zh)
Other versions
CN102111403B (en
Inventor
刘朝辉
张英文
李静
张磊
白宗元
纪奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dawning Network Technology Co., Ltd.
Original Assignee
Dawning Information Industry Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Dawning Information Industry Beijing Co Ltd filed Critical Dawning Information Industry Beijing Co Ltd
Priority to CN201010608983.9A priority Critical patent/CN102111403B/en
Publication of CN102111403A publication Critical patent/CN102111403A/en
Application granted granted Critical
Publication of CN102111403B publication Critical patent/CN102111403B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method and device for acquiring transmission control protocol (TCP) connection data at a high speed. After a hardware network card receives messages and carries out TCP connection management, directly uploading ordered messages in which information headers for recording TCP connection are added to a host machine; carrying out rearrangement of TCP disordered data on disordered messages, wherein data splicing is not performed by a buffer in the rearrangement process; and carrying out data splicing, TCP data format conversion and other operations after an application program interface (API) library receives the TCP messages. According to the invention, the messages can be submitted to the host machine in time; original message data can be conveniently converted into a TCP data format, thus playing a role of data splicing; and the whole system can acquire the TCP data at a high speed.

Description

A kind of method and apparatus that is used for obtaining at a high speed TCP connection data
Technical field
The present invention relates to the network data processing field, be specifically related to a kind of method and apparatus that TCP connects data that is used for obtaining at a high speed.
Background technology
The TCP Unloading Technology is the TCP/ip network protocol stack in the host software to be handled to be cured in the network interface card hardware realize, so that reduce the cpu of system load, increases the technology of network I/O bandwidth.The TCP uninstalling system generally comprises two parts function, and first is the management of TCP connection status, shows to safeguard that with the TCP connection each TCP connects beginning, transfer of data, closing state.Second portion is the tcp data management, is used for the data of out of order TCP message are resequenced, and the data extract of TCP transmission is come out to submit to main frame.
Generally in the TCP uninstalling system, hardware will use a data buffer when carrying out the tcp data management, the data extract that each TCP connects is come out, finishing reordering of tcp data and splice with buffer, is that unit is submitted to host computer system then with the buffering area.
Application number 200680026247.4 discloses the method and system of a kind of transparent transmission control protocol (TCP) unloading, and the various aspects of described method comprise: collect the TCP section in the network interface Card processor, but state information is not transferred to host computer system.The TCP section of collecting is buffered in the colligator.Colligator can check the network flow relevant with the TCP section of collecting to have inlet in stream look-up table (FLT).When FLT expired, colligator can cut out current inlet, and network flow is assigned to available inlet.Information among the also renewable FLT of colligator.When the incident that stops the collection of TCP section took place, colligator can generate the TCP section of single polymerization based on the TCP section of collecting.The TCP section and the state information of polymerization can be sent to main frame to handle.
Application number 03820350.2 discloses a kind of system and method for TCP unloading.On TEEC, receive input TCP grouping, and at least a portion of handling described input grouping by described TEEC once, and needn't carry out any reorganization and/or repeating transmission by described TEEC.The described input of at least a portion TCP grouping can be buffered at least one inner elastomeric buffer of described TEEC.Described inner elastomeric buffer can comprise reception inner elastomeric buffer and/or send the inner elastomeric buffer.Therefore, the described input of at least a portion TCP grouping can be buffered in the described reception inner elastomeric buffer.The input grouping of the described processing of at least a portion can be put in the part of a mainframe memory, so that handled by host-processor or CPU.In addition, DMA is sent in the part of described mainframe memory but the input TCP of the described processing of at least a portion divides into groups.
The shortcoming of obtaining tcp data with general TCP uninstalling system is, some applied business need be handled in real time to tcp data, main frame need in time be taken the data of TCP transmission, after needing hardware to splice a certain amount of data, general TCP uninstalling system submits to main frame again, though help improving system bandwidth, reduced the response speed of system.
Summary of the invention
The object of the invention provides a kind of system tcp data is in time uploaded main frame, avoids tcp data to splice in hardware.
A kind of method that is used for obtaining at a high speed TCP connection data comprises following steps:
A, special chip extract the TCP link information after receiving the TCP message by network interface from message, and carry in the internal memory to plate original message is temporary;
B, special chip are according to the TCP link information of message, and the inquiry plate carries the TCP connection table in the internal memory, if the message that newly connects just connects new list item of increase to this in connecting table; If close the message of connection, just connecting the list item deletion that should connect in the table; If the data message that has connected, the then current state of this connection of record in connecting list item;
C, for the tcp data message, special chip is according to connecting the state that writes down in the list item, it is out of order to judge whether this message has taken place, if do not have out of orderly, then directly is uploaded to main frame; If take place out of orderly, then message is put into chained list, wait for that follow-up message resequences, after ordering is finished, be that unit uploads main frame with the message;
D, network interface card increase a self-defining header structure before main frame is submitted message to before the encapsulation header of message, preserve the information that this TCP connects;
E, drive software carry internal memory to message from the network interface card plate and are transferred to host memory;
When F, application software read tcp data by the api interface storehouse, interface library software read original message from host memory, and according to the information header of COM Continuation of Message, the location tcp data the original message data structure, converts the tcp data structure of application need to.
A kind of optimal technical scheme of the present invention is: the sequencer procedure that takes place after out of order uses the message chained list, does not use the splicing buffer, only to the message rearrangement, does not carry out the splicing of tcp data.
An optimal technical scheme more of the present invention is: the TCP link information of preserving in the described D step comprises the skew in message of connection status, tcp data.
A kind of equipment that is used for obtaining at a high speed TCP connection data comprises network interface card and host software part,
Described network interface card comprises that special chip, network interface and plate carry internal memory;
Described host software comprises that partly network interface card drives and application software api interface storehouse.
A kind of optimal technical scheme of the present invention is: described special chip is the main control chip of network interface card, moves all message processing logics.
The present invention can in time submit to main frame to message, can conveniently realize the conversion of original message data to the tcp data form again, plays the effect of data splicing, and whole system can realize the tcp data that obtains at a high speed.
Description of drawings
Fig. 1 is a system construction drawing of the present invention
Embodiment
The technical program is the equipment of a software and hardware one, hardware be with special chip for the network interface card that main devices designs, comprise network interface, special chip, plate carry internal memory and constitute.Software is driven by network interface card and application software api interface storehouse constitutes.
The function of the every part of system is as follows:
(1) network interface: network message Data Receiving network access card.
(2) special chip: the main control chip of network interface card, move all message processing logics.
(3) plate carries internal memory: the connection table that storage TCP connection management is used, temporary message.
(4) network interface card drives: the administration configuration network interface card, and for network interface card provides path to the transfer of data of main frame.
(5) api interface storehouse: connect the DLL (dynamic link library) of network interface card system and application software, the message format of network interface card being submitted to main frame converts the tcp data form that application software needs to.
The processing method and the process of this equipment are as follows:
(1) the hardware network interface card receives message.
Special chip extracts the TCP link information after receiving the TCP message by network interface from message, and carries in the internal memory to plate original message is temporary.
(2) the hardware network interface card carries out the TCP connection management.
Special chip is according to the TCP link information of message, the inquiry plate carries the TCP connection table in the internal memory, if the message that newly connects, just in connecting table, connect new list item of increase to this, if close the message of connection, just connecting the list item deletion that should connect in the table, if the data message that has connected, the then current state of this connection of record in connecting list item.
(3) network interface card hardware carries out the rearrangement of the out of order data of TCP, but does not carry out data splicing.
To the tcp data message, special chip is according to connecting the state that writes down in the list item, and it is out of order to judge whether this data message takes place, if do not have out of orderly, then directly is uploaded to main frame; If take place out of orderly, then message is put into chained list, wait for that follow-up message resequences, after ordering is finished, be that unit uploads main frame with the message.This sequencer procedure uses the message chained list, does not use the splicing buffer, does not carry out the splicing of tcp data.
(4) network interface card hardware adds information header to message, record TCP link information.
Network interface card increases a self-defining header structure before main frame is submitted message to before the encapsulation header of message, wherein preserve the information that this TCP connects, and comprises connection status, the tcp data skew in message etc.
(5) drive software carries internal memory to message from the network interface card plate and is transferred to host memory.
(6) Data Format Transform is carried out in the api interface storehouse.
When application software read tcp data by the api interface storehouse, interface library software read original message from host memory, and according to the information header of COM Continuation of Message, the location tcp data the original message data structure, converts the tcp data structure of application need to.
The present invention uses in the network security private server of dawn production, has obtained good effect.

Claims (5)

1. one kind is used for obtaining at a high speed the method that TCP connects data, it is characterized in that: comprise following steps:
A, special chip extract the TCP link information after receiving the TCP message by network interface from message, and carry in the internal memory to plate original message is temporary;
B, special chip are according to the TCP link information of message, and the inquiry plate carries the TCP connection table in the internal memory, if the message that newly connects just connects new list item of increase to this in connecting table; If close the message of connection, just connecting the list item deletion that should connect in the table; If the data message that has connected, the then current state of this connection of record in connecting list item;
C, for the tcp data message, special chip is according to connecting the state that writes down in the list item, it is out of order to judge whether this message has taken place, if do not have out of orderly, then directly is uploaded to main frame; If take place out of orderly, then message is put into chained list, wait for that follow-up message resequences, after ordering is finished, be that unit uploads main frame with the message;
D, network interface card increase a self-defining header structure before main frame is submitted message to before the encapsulation header of message, preserve the information that this tcp connects;
E, drive software carry internal memory to message from the network interface card plate and are transferred to host memory;
When F, application software read the tcp data by the api interface storehouse, interface library software read original message from host memory, and according to the information header of COM Continuation of Message, location tcp data the original message data structure, convert the tcp data structure of application need to.
2. a kind of according to claim 1 being used for obtained at a high speed the method that TCP connects data, it is characterized in that: the sequencer procedure use message chained list after out of order takes place, do not use the splicing buffer, do not carry out the splicing of tcp data.
3. a kind of according to claim 1 method that is used for obtaining at a high speed TCP connection data, it is characterized in that: the TCP link information of preserving in the described D step comprises the skew in message of connection status, tcp data.
4. one kind is used for obtaining at a high speed the equipment that TCP connects data, it is characterized in that: comprise network interface card and host software part,
Described network interface card comprises that special chip, network interface and plate carry internal memory;
Described host software comprises that partly network interface card drives and application software api interface storehouse.
5. be used for obtaining at a high speed the equipment that TCP connects data as a kind of as described in the claim 4, it is characterized in that: described special chip is the main control chip of network interface card, moves all message processing logics.
CN201010608983.9A 2010-12-17 2010-12-17 Method and device for acquiring transmission control protocol (TCP) connection data at high speed Active CN102111403B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010608983.9A CN102111403B (en) 2010-12-17 2010-12-17 Method and device for acquiring transmission control protocol (TCP) connection data at high speed

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010608983.9A CN102111403B (en) 2010-12-17 2010-12-17 Method and device for acquiring transmission control protocol (TCP) connection data at high speed

Publications (2)

Publication Number Publication Date
CN102111403A true CN102111403A (en) 2011-06-29
CN102111403B CN102111403B (en) 2014-05-21

Family

ID=44175433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010608983.9A Active CN102111403B (en) 2010-12-17 2010-12-17 Method and device for acquiring transmission control protocol (TCP) connection data at high speed

Country Status (1)

Country Link
CN (1) CN102111403B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519036A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Method and device for sending service request message

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040258076A1 (en) * 2003-06-05 2004-12-23 Jha Ashutosh K. Setting up a delegated TCP connection
CN1679282A (en) * 2002-08-30 2005-10-05 美国博通公司 System and method for TCP offload
CN101253745A (en) * 2005-07-18 2008-08-27 博通以色列研发公司 Method and system for transparent TCP offload
CN101601256A (en) * 2007-01-30 2009-12-09 国际商业机器公司 Network interface card transmission control protocol acceleration offload fault detect and Restoration Mechanism
US7738500B1 (en) * 2005-12-14 2010-06-15 Alacritech, Inc. TCP timestamp synchronization for network connections that are offloaded to network interface devices

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1679282A (en) * 2002-08-30 2005-10-05 美国博通公司 System and method for TCP offload
US20040258076A1 (en) * 2003-06-05 2004-12-23 Jha Ashutosh K. Setting up a delegated TCP connection
CN101253745A (en) * 2005-07-18 2008-08-27 博通以色列研发公司 Method and system for transparent TCP offload
US7738500B1 (en) * 2005-12-14 2010-06-15 Alacritech, Inc. TCP timestamp synchronization for network connections that are offloaded to network interface devices
CN101601256A (en) * 2007-01-30 2009-12-09 国际商业机器公司 Network interface card transmission control protocol acceleration offload fault detect and Restoration Mechanism

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104519036A (en) * 2013-09-30 2015-04-15 腾讯科技(深圳)有限公司 Method and device for sending service request message
US9392081B2 (en) 2013-09-30 2016-07-12 Tencent Technology (Shenzhen) Company Limited Method and device for sending requests
CN104519036B (en) * 2013-09-30 2017-10-31 腾讯科技(深圳)有限公司 A kind of method and device for sending business request information

Also Published As

Publication number Publication date
CN102111403B (en) 2014-05-21

Similar Documents

Publication Publication Date Title
US10069916B2 (en) System and method for transparent context aware filtering of data requests
CN107749840B (en) One-way data secure transmission and cooperative processing system and method based on one-way gatekeeper
US8650159B1 (en) Systems and methods for managing data in cloud storage using deduplication techniques
CN109067733B (en) Method and apparatus for transmitting data, and method and apparatus for receiving data
US7506080B2 (en) Parallel processing of frame based data transfers
CN112130748B (en) Data access method, network card and server
US10708378B2 (en) Data processing method and apparatus, server, and controller
CN102065071A (en) Storage equipment supporting multi-transport protocol
WO2014173151A1 (en) Method, device and terminal for data processing
CN104462562A (en) Data migration system and method based on data warehouse automation
CN102185833A (en) Fiber channel (FC) input/output (I/O) parallel processing method based on field programmable gate array (FPGA)
EP2431939A1 (en) Distributed image processing method and image processing system
CN114201421A (en) Data stream processing method, storage control node and readable storage medium
CN103176751A (en) Unified service system under multiple storage protocols
CN102339359A (en) Medical image storing and transmitting system
CN107196992A (en) A kind of file data management system of law-enforcing recorder
CN101098265A (en) Data network access system and method
CN111083408B (en) Method, system and equipment for processing video storage service
CN102111403B (en) Method and device for acquiring transmission control protocol (TCP) connection data at high speed
US20150199298A1 (en) Storage and network interface memory share
CN204859420U (en) Intelligent building video monitor system
US9288267B2 (en) Handling of data transfer in a LAN-free environment
CN202121599U (en) Equipment for obtaining TCP connection data with high speed
CN115344633A (en) Data processing method, device, equipment and storage medium
CN201536405U (en) Cluster image operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20171213

Address after: 300384 Tianjin city Xiqing District Huayuan Industrial Zone (outer ring) Haitai Huake Street No. 15 1-3

Patentee after: Sugon Information Industry Co., Ltd.

Address before: 100084 Beijing Haidian District City Mill Street No. 64

Patentee before: Dawning Information Industry (Beijing) Co., Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180409

Address after: 430040 Wuhuan Road No. 666 (10), economic and Technological Development Zone, Wuhan, Hubei Province

Patentee after: Dawning Network Technology Co., Ltd.

Address before: 300384 Tianjin city Xiqing District Huayuan Industrial Zone (outer ring) Haitai Huake Street No. 15 1-3

Patentee before: Sugon Information Industry Co., Ltd.

TR01 Transfer of patent right