Check patentability & draft patents in minutes with Patsnap Eureka AI!

Method for optimizing TCP (Transmission Control Protocol) connection management by adopting static linked list to structure TCP node pool

A node pool and static chain technology, applied in electrical components, transmission systems, etc., can solve problems such as reducing system efficiency and achieve the effect of improving efficiency

Active Publication Date: 2014-01-22
曙光网络科技有限公司
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] On a high-speed network monitoring system, it is often necessary to manage millions to tens of millions of concurrent connections. The establishment and deletion of TCP connections are very frequent, and the number of new and closed connections per second is sometimes as high as hundreds of thousands. Connections must apply for and release the TCP node structure, that is to say, frequent application and release of small memory will significantly reduce the efficiency of the entire system

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 optimizing TCP (Transmission Control Protocol) connection management by adopting static linked list to structure TCP node pool

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0015] The TCP management function of the present invention consists of two parts, one is a TCP concurrent connection table, and the other is a TCP node pool.

[0016] The connection table is implemented using a hash table structure, and each entry points to a pointer to a TCP node structure.

[0017] The TCP node pool uses a static linked list structure. During memory allocation, the node pool is an array composed of continuous static memory TCP nodes, which is only applied for once when the system is initialized; each available TCP node in the node pool is linked through the node index A linked list that can be dynamically taken out or put back from the node pool.

[0018] The method and process of TCP connection management are as follows:

[0019] (1) Initialize the TCP connection table at the beginning of the system.

[0020] Apply for memory, initialize the hash table for saving TCP connections, and set the index pointer of each hash entry pointing to the TCP node to -1...

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 optimizing TCP (Transmission Control Protocol) connection management by adopting a static linked list to structure a TCP node pool. A connection management structure comprises a TCP concurrent connection hash table and a TCP node pool; when a system is initialized, all the TCP nodes required by a memory are applied once and are serially connected in a static linked list to form a TCP node pool; when one TCP connection is established, one node only needs to be taken out from the node pool and hung into the hash table; when one TCP connection is deleted, the TCP node only needs to be taken down from the hash table and placed back to the node pool; and thus, the memory application and release operations during frequent establishment and closure of the TCP connections are avoided in the system operation process, and the efficiency of the TCP connection management system is increased.

Description

technical field [0001] The invention relates to the field of network data processing, in particular to a method for optimizing TCP connection management by constructing a TCP node pool by using a static linked list. Background technique [0002] TCP connection management is an important part of the TCP protocol stack. It is necessary to use a concurrent TCP connection table to save each current TCP connection. When a new TCP connection is established, a new entry needs to be created in the TCP connection table. When a When the TCP connection is closed, the connection entry needs to be deleted from the concurrent connection table. [0003] On a high-speed network monitoring system, it is often necessary to manage millions to tens of millions of concurrent connections. The establishment and deletion of TCP connections are very frequent, and the number of new and closed connections per second is sometimes as high as hundreds of thousands. Connections must apply for and release...

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): H04L29/06
Inventor 刘朝辉窦晓光纪奎刘灿李锋伟
Owner 曙光网络科技有限公司
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More