CN102075525A - Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software - Google Patents
Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software Download PDFInfo
- Publication number
- CN102075525A CN102075525A CN2010106117345A CN201010611734A CN102075525A CN 102075525 A CN102075525 A CN 102075525A CN 2010106117345 A CN2010106117345 A CN 2010106117345A CN 201010611734 A CN201010611734 A CN 201010611734A CN 102075525 A CN102075525 A CN 102075525A
- Authority
- CN
- China
- Prior art keywords
- tcp
- hardware
- software
- connects
- invalidation request
- 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
Links
Images
Landscapes
- Computer And Data Communications (AREA)
Abstract
The invention provides a method for deleting transmission control protocol (TCP) connection in hardware by sending a connection invalid request to hardware by software. A core drive applies for a memory space which is used as a buffer zone for sending the TCP connection invalid request to the hardware by the software. Interface library software constructs TCP connection information to be deleted into the TCP connection invalid request according to the requirements of application software, and writes the TCP connection invalid request into the buffer zone of the TCP connection invalid request; the hardware inquires the buffer zone of the TCP connection invalid request at regular intervals and deletes the corresponding TCP connection in the hardware according to request information; and application software can delete the TCP connection in the hardware, the connection can be directly deleted from the hardware after one piece of TCP connection is processed, and data of the connection can be filtered out by a TCP connection table of the hardware and is not uploaded to host software, so that useless flow can be filtered out and system efficiency is improved.
Description
Technical field
The present invention relates to the network data processing field, be specifically related to a kind of the transmission to hardware and connect the method that invalidation request realizes that TCP connects in the deletion hardware by software.
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 TCP connection status management, shows to safeguard that with the TCP connection each TCP connects from, 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.
In general TCP uninstalling system, the management that TCP connects comprises the whole process of safeguarding that each connection is set up, transmitted, closes, eliminates, is responsible for by hardware fully, and software can only receive the data after hardware manages, and the TCP that can not go to delete in the hardware connects.Because if allow the TCP in the software modification hardware to connect table, hardware also may revised in the time of software modification, and the connection table that software and hardware is revised in the hardware simultaneously just may lead to a conflict.
In some system, application software only is concerned about that each TCP connects a part of data of beginning, when carrying out application layer protocol identification, and the several messages of beginning that only need each TCP to connect, the message of back is that software is unwanted.If the TCP that software can not be deleted in the hardware connects, all data that each TCP is connected all upload to software, cause system resource waste.
Summary of the invention
The object of the invention provides a kind of the transmission to hardware by software and connects the method that invalidation request realizes that TCP connects in the deletion hardware.
A kind of transmission to hardware by software connects the method that invalidation request realizes that TCP connects in the deletion hardware, may further comprise the steps:
A, driving be application a slice contiguous memory in kernel, sends the buffering area that TCP connects invalidation request as application software to hardware;
When B, application software will be deleted a TCP connection, call the api interface storehouse, the information structuring that connects according to this TCP goes out a TCP invalidation request data structure, writes the buffering area formation that TCP connects invalidation request;
C, hardware connect the buffering area of invalidation request every a timeslice run-down TCP, connect invalidation request if application software has write new TCP, then read TCP and connect the invalidation request data structure, according to TCP identification information wherein, inquiry TCP connects table, and the corresponding TCP of deletion connects.
After the follow-up message of D, deleted connection arrives network interface card hardware, can be filtered out, can not upload in the host software again by the TCP connection table of hardware.
A kind of optimal technical scheme of the present invention is: described buffering area is the circle queue that a TCP connects the data structure of invalidation request.
Another optimal technical scheme of the present invention is: after TCP connected deletion, the follow-up message of this connection will be dropped after arriving hardware TCP connection table, no longer is uploaded to host application software.
The TCP that the present invention can delete in the hardware by software connects, and just can directly delete this connection from hardware after handling a TCP connection, thereby can filter out useless flow, increase system efficiency.
Description of drawings
Fig. 1 is that system of the present invention forms schematic diagram
Specific embodiments
The present invention is the system of a software and hardware combining, and software to hardware the invalidation request data takes place to connect, and the TCP in the notice hardware deletion hardware connects.
Software is made of application interface library and kernel software, and kernel drives is responsible for memory headroom of application, sends the buffering area that TCP connects invalidation request as software to hardware.Interface library software is responsible for according to the application software requirement, to the TCP link information that will delete, is configured to TCP and connects invalidation request, writes TCP and connects the invalidation request buffering area.
Hardware is regularly inquired about TCP and is connected the invalidation request buffering area, if new request is arranged, then according to solicited message, TCP connection corresponding in the hardware is deleted.
Implementation method and process are as follows:
(1) drive software application TCP connects the invalidation request buffering area
Drive software is applied for a slice contiguous memory in kernel, send the buffering area that TCP connects invalidation request as software to hardware, and this buffering area is the formation that a TCP connects the invalidation request data structure.
(2) application software sends deletion TCP connection requests by interface library
When application software will be deleted a TCP connection, with regard to the API of calling interface library software, the information structuring that connects according to this TCP went out a TCP invalidation request data structure, this data structure is write TCP connect the formation of invalidation request buffering area.
(3) Hardware Response Delay TCP connects invalidation request
Hardware connects the invalidation request buffering area every a timeslice run-down TCP, if software has write new TCP invalidation request, then the invalidation request structure is read out, according to TCP identification information wherein, inquiry TCP connection table is deleted corresponding TCP connection, after the follow-up message of this connection arrives hardware TCP connection table, will be dropped, no longer be uploaded to host software.
Claims (3)
1. one kind send to connect the method that invalidation request realizes that TCP connects in the deletion hardware by software to hardware, it is characterized in that: may further comprise the steps:
A, driving be application a slice contiguous memory in kernel, sends the buffering area that TCP connects invalidation request as application software to hardware;
When B, application software will be deleted a TCP connection, call the api interface storehouse, the information structuring that connects according to this TCP goes out a TCP invalidation request data structure, writes the buffering area formation that TCP connects invalidation request;
C, hardware connect the buffering area of invalidation request every a timeslice run-down TCP, connect invalidation request if application software has write new TCP, then read TCP and connect the invalidation request data structure, according to TCP identification information wherein, inquiry TCP connects table, and the corresponding TCP of deletion connects;
After the follow-up message of D, deleted connection arrives network interface card hardware, can be filtered out, can not upload in the host software again by the TCP connection table of hardware.
2. a kind of according to claim 1 the transmission to hardware by software connects the method that invalidation request realizes that TCP connects in the deletion hardware, and it is characterized in that: described buffering area is the circle queue that a TCP connects the data structure of invalidation request.
3. a kind of according to claim 1 the transmission to hardware by software connects the method that invalidation request realizes that TCP connects in the deletion hardware, it is characterized in that: after TCP connects deletion, the follow-up message of this connection will be dropped after arriving hardware TCP connection table, no longer is uploaded to host application software.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010611734.5A CN102075525B (en) | 2010-12-17 | 2010-12-17 | Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010611734.5A CN102075525B (en) | 2010-12-17 | 2010-12-17 | Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102075525A true CN102075525A (en) | 2011-05-25 |
CN102075525B CN102075525B (en) | 2014-07-23 |
Family
ID=44033869
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010611734.5A Active CN102075525B (en) | 2010-12-17 | 2010-12-17 | Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102075525B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571562A (en) * | 2011-12-19 | 2012-07-11 | 曙光信息产业(北京)有限公司 | System and method for supporting multiple applications through stream reduction equipment by combining software and hardware |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1910869A (en) * | 2003-12-05 | 2007-02-07 | 艾拉克瑞技术公司 | TCP/IP offload device with reduced sequential processing |
US20080183901A1 (en) * | 2007-01-30 | 2008-07-31 | Omar Cardona | Network interface card transmission control protocol acceleration offload failure detection and recovery mechanism |
CN101841545A (en) * | 2010-05-14 | 2010-09-22 | 中国科学院计算技术研究所 | TCP stream restructuring and/or packetizing method and device |
-
2010
- 2010-12-17 CN CN201010611734.5A patent/CN102075525B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1910869A (en) * | 2003-12-05 | 2007-02-07 | 艾拉克瑞技术公司 | TCP/IP offload device with reduced sequential processing |
US20080183901A1 (en) * | 2007-01-30 | 2008-07-31 | Omar Cardona | Network interface card transmission control protocol acceleration offload failure detection and recovery mechanism |
CN101841545A (en) * | 2010-05-14 | 2010-09-22 | 中国科学院计算技术研究所 | TCP stream restructuring and/or packetizing method and device |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102571562A (en) * | 2011-12-19 | 2012-07-11 | 曙光信息产业(北京)有限公司 | System and method for supporting multiple applications through stream reduction equipment by combining software and hardware |
Also Published As
Publication number | Publication date |
---|---|
CN102075525B (en) | 2014-07-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8650159B1 (en) | Systems and methods for managing data in cloud storage using deduplication techniques | |
CA2883224C (en) | Information transmission method, apparatus, and system, terminal, and server | |
US10397161B2 (en) | Electronic mail (email) message lifecycle management | |
US20180088807A1 (en) | Method and device for migrating data | |
US9473435B2 (en) | Method and system for sending e-mail attached with large file on mobile device | |
US9288361B2 (en) | Systems, methods and computer program products for fax delivery and maintenance | |
US8719479B2 (en) | Network adaptor optimization and interrupt reduction | |
CN103825830A (en) | Method and device for system to achieve flow control based on TUXEDO middleware | |
CN103516580A (en) | Method of realizing message receiving and forwarding based on message queue and system thereof | |
CN103019837A (en) | Resource scheduling method, device and terminal equipment | |
CN105681472B (en) | A kind of log transmission method and device | |
US9003107B2 (en) | Method for adjusting storage space of partition of embedded multimedia card and terminal | |
EP2750042B1 (en) | Method and apparatus for managing memory | |
CN111615692A (en) | Data transfer method, calculation processing device, and storage medium | |
US11144481B2 (en) | Techniques for dynamically adjusting the manner in which I/O requests are transmitted between a computing device and a storage device | |
WO2023098050A1 (en) | Remote data access method and apparatus | |
CN102075525B (en) | Method for deleting TCP connection in hardware by sending connection invalid request to hardware by software | |
US8078771B2 (en) | Sending large command descriptor block (CDB) structures in serial attached SCSI (SAS) controller | |
CN105068875A (en) | Intelligence data processing method and apparatus | |
CN107819823A (en) | A kind of information processing method, server and computer-readable recording medium | |
EP3385836A1 (en) | Kernel update method and apparatus, and computer device | |
CN114416690A (en) | Data migration device, method and storage medium for file storage to object storage | |
CN102609217B (en) | High-speed storage method and high-speed storage system for IO (input/output) equipment | |
CN104571952A (en) | Method for separately processing data reading and writing requests and metadata reading and writing requests | |
CN104427003A (en) | Transmission apparatus, transmission method, and relay 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: 20220729 Address after: 100193 No. 36 Building, No. 8 Hospital, Wangxi Road, Haidian District, Beijing Patentee after: Dawning Information Industry (Beijing) Co.,Ltd. Patentee after: DAWNING 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 |