Method for implementing TCP connection management by using multistage memory searching mode

A connection management and memory technology, applied in the field of network security, can solve the problems of too many bytes of state storage and waste of storage space, and achieve the effect of alleviating hash collisions

Active Publication Date: 2011-04-13
曙光网络科技有限公司
View PDF3 Cites 16 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Use the off-chip first-level state table to maintain the connection. Some space is ...

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 implementing TCP connection management by using multistage memory searching mode
  • Method for implementing TCP connection management by using multistage memory searching mode

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0014] 1: The current packet is a syn packet.

[0015] Search the TCP connection index table according to the quaternion of the TCP connection. If no node is found and the Syn flag of the current package is valid, a node is established for the connection and an address is taken from the available address pool to allocate a TCP connection record buffer for it. Make a note of the connection's quadruple and sequence number, as well as current state information.

[0016] If the node is found and the Syn flag of the current packet is valid and the quaternion is the same, rebuild and replace operations are performed, the empty connection is rebuilt, the data connection is replaced, and the TCP connection record buffer information is updated at the same time.

[0017] If a node is found and the Syn flag of the current package is valid and the quaternion is different, if the external bucket is not full, allocate a connection record buffer for it, if the external bucket is full, perfor...

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 implementing trans control protocol (TCP) connection management by using a multistage memory searching mode. The method comprises the following steps of: establishing a hash table according to four groups of TCP connection, and plugging a bucket structure outside each table item; and storing a buffer area address for storing the link state in the bucket item, and reading and connecting current state information through the buffer area address. The method realizes connection management by using hardware; because the hash table only records address information, the required memory space is small; and more hash table items can be established in the limited memory space so as to effectively solve the hash collision problem.

Description

technical field [0001] The invention relates to the field of network security, in particular to a method for managing TCP connections by using a multi-level memory search mode. Background technique [0002] The TCP / IP (Trans control protocol / Internet Protocol) protocol stack has become the actual connection standard in the Internet at present. The TCP protocol belongs to the transport layer in the TCP / IP protocol stack, which provides a connection-oriented and reliable byte stream service to the application layer. Connection-oriented means that two TCP applications, usually a client and a server, must establish a TCP connection before exchanging data with each other. When the connection is established, data can be exchanged between each other for communication. When communication is complete, the connection must be released. A unique connection can be determined by obtaining the IP addresses and port numbers of both parties in the IP protocol header. [0003] In order to...

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
IPC IPC(8): H04L12/24H04L12/56H04L29/06H04L12/743
Inventor 纪奎窦晓光刘朝辉李峰伟
Owner 曙光网络科技有限公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products