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

Method and device for blocking TCP connection

A technology for connecting information and purposes, applied in the field of network security protection, can solve the problems of random assignment of RST packets, new serial numbers that expire and cannot be blocked, etc.

Inactive Publication Date: 2013-11-06
BEIJING VENUS INFORMATION TECH +1
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] At present, many main bypass network security devices have random assignment of RST packets; a small number of accurate calculations also have the problem that the new serial number generated under heavy traffic conditions expires and cannot be blocked

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 and device for blocking TCP connection
  • Method and device for blocking TCP connection
  • Method and device for blocking TCP connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Embodiment 1, a method for blocking a TCP connection, comprising:

[0052] Save the connection information of each TCP connection; the connection information of the TCP connection includes this TCP connection: client information, server information, request direction TCP wait sequence number and response direction TCP wait sequence number;

[0053] Grab the TCP packet, find the connection information of the TCP connection to which the TCP packet belongs, update the request direction TCP waiting sequence number and the response direction TCP waiting sequence number in the connection information according to the captured TCP packet;

[0054] If the captured TCP packet is a TCP packet that needs to be blocked, an RST packet is generated according to the updated connection information of the TCP connection to which the TCP packet belongs, and is sent to the client and the server of the TCP connection.

[0055] It can be seen that after sending the RST packet, if there is a ...

Embodiment 2

[0099] Embodiment 2, a device for blocking TCP connections, such as Figure 5 shown, including:

[0100] The storage unit is used to save the connection information of each TCP connection; the connection information of the TCP connection includes the TCP connection: client information, server information, request direction TCP waiting sequence number and response direction TCP waiting sequence number;

[0101] A grabbing unit, configured to grab the TCP packet, and find the connection information of the TCP connection to which the TCP packet belongs in the storage unit;

[0102] The update unit is used to update the request direction TCP waiting sequence number and the response direction TCP waiting sequence number in the connection information found according to the captured TCP packet;

[0103] A judging unit, configured to judge whether the captured TCP packet is a TCP packet that needs to be blocked, and if so, send a blocking instruction;

[0104] The blocking unit is c...

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 and a device for blocking TCP connection. The method comprises the following steps of: saving the connection information of each TCP connection, wherein the connection information of the TCP connection comprises client information, server information, request direction TCP waiting serial number and response direction TCP waiting serial number of the TCP connection; grabbing a TCP packet, finding the connection information of the TCP connection to which the TCP packet belongs, and updating the request direction TCP waiting serial number and the response direction TCP waiting serial number in the connection information according to the grabbed TCP packet; and if the grabbed TCP packet is a TCP packet to be blocked, generating an RST packet according to the updated connection information of the TCP connection to which the TCP packet belongs, and transmitting the RST packet to the client and the server of the TCP connection. The method for blocking the TCP connection can accurately and continuously block the connection. Therefore, the method can efficiently block illegal TCP connection under a high traffic environment.

Description

technical field [0001] The invention relates to network security protection, in particular to a method and device for blocking TCP connections. Background technique [0002] There are a large number of illegal TCP (Transmission Control Protocol, Transmission Control Protocol) connections on the network, for example, some connections with attack packets, or some unauthorized accesses. For bypass devices, blocking these illegal TCP connections is a very important function. Sending RST packets (TCP reset packets) is recognized as the most effective method of blocking TCP connections. The function of the RST packet must ensure that the sequence number of the RST packet must be equal to the sequence number waiting for the protocol stack of the target host, otherwise the protocol stack of the target host will ignore the RST packet. [0003] At present, many major bypass network security devices have random assignment of RST packets; a few with accurate calculations also have the...

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/06H04L12/70H04L1/16H04L29/12
Inventor 刘辉姚熙李新鹏
Owner BEIJING VENUS INFORMATION TECH