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

A method and device for closing a transmission control protocol tcp connection

A transmission control protocol and device shutdown technology, applied in the Internet field, can solve problems such as resource occupation, increased network resource occupation, and long waiting time for servers, and achieve the effect of reducing occupation

Active Publication Date: 2020-07-03
BEIJING QIYI CENTURY SCI & TECH CO LTD
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] However, in practical applications, for the vast majority of cases where the server side actively closes the connection, there are the following problems: even if the connection is closed normally, the server enters TIME-WAIT (time-wait) after sending all the packets that close the connection. ) state, resources will still be occupied, and these resources will be released after waiting for a period of time (2MSL); in most cases, when the server receives the ACK packet sent by the client, it enters FIN-WAIT-2 (end-wait -2) After the state, after a long time, no FIN / ACK packet from the client is received, which leads to a longer waiting time on the server side, thus occupying resources
It can be seen that in the above two cases, the existing TCP connection closing method will cause the server to wait for a long time, thereby increasing the occupation of network resources required for the server to maintain the state of the TCP connection

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
  • A method and device for closing a transmission control protocol tcp connection
  • A method and device for closing a transmission control protocol tcp connection
  • A method and device for closing a transmission control protocol tcp connection

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0050] The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

[0051] A method for closing a transmission control protocol TCP connection provided by an embodiment of the present invention will firstly be described in detail below.

[0052] see figure 1 , figure 1A schematic flow diagram of a method for closing a transmission control protocol TCP connection provided by an embodiment of the present invention, applied to a server, may include the following steps:

[0053] S101. Send a target data packet corresponding to t...

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 embodiment of the invention provides a method and device for closing a transmission control protocol TCP connection applied to a server. The method comprises the following steps: transmitting target data packets corresponding to a target data request packet to a client according to the target data request packet transmitted by the client, wherein the target data packets are data packets including a PSH flag; receiving an ACK packet sent by the client after receiving the last target data packet; transmitting at least one RST packet to the client according to the received ACK packet; and closing a server TCP connection that is currently connected to the client. With the embodiment of the invention, the occupation of network resources is reduced.

Description

technical field [0001] The invention relates to the technical field of the Internet, in particular to a method and a device for closing a transmission control protocol (TCP) connection. Background technique [0002] Download services on today's network almost all use the TCP (Transmission Control Protocol, Transmission Control Protocol) protocol from the perspective of the transport layer. For the TCP protocol, when a TCP connection is closed, the closing process of a normal and complete TCP connection is: the server sends a FIN / ACK (Finish / Acknowledgment, completion / confirmation) characters) packet; the client will immediately reply with an ACK packet after receiving this packet, indicating that it has received the information sent by the server; when the client has processed the received data and confirmed that it has no data to send to the server, it will send the The server sends a FIN / ACK packet; after receiving the FIN / ACK packet sent by the client, the server replies...

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/08H04L29/06H04L1/16
CPCH04L1/1607H04L67/143H04L69/163
Inventor 石磊丁浩孙犁
Owner BEIJING QIYI CENTURY SCI & TECH CO LTD