[go: up one dir, main page]

CN106487817B - A kind of method for closing and device of TCP connection - Google Patents

A kind of method for closing and device of TCP connection Download PDF

Info

Publication number
CN106487817B
CN106487817B CN201611239061.9A CN201611239061A CN106487817B CN 106487817 B CN106487817 B CN 106487817B CN 201611239061 A CN201611239061 A CN 201611239061A CN 106487817 B CN106487817 B CN 106487817B
Authority
CN
China
Prior art keywords
server
connection
client
message
closed
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.)
Active
Application number
CN201611239061.9A
Other languages
Chinese (zh)
Other versions
CN106487817A (en
Inventor
石磊
丁浩
孙犁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing QIYI Century Science and Technology Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201611239061.9A priority Critical patent/CN106487817B/en
Publication of CN106487817A publication Critical patent/CN106487817A/en
Application granted granted Critical
Publication of CN106487817B publication Critical patent/CN106487817B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention provides a kind of method for closing of TCP connection and device, for server when closing the TCP connection with client, the server sends the first connection closed notice message to the client;The client receives and sends connection closed back message to the server after the first connection closed notice message;After the server receives and sends connection resetting message to the client after the connection closed back message, and the server has issued the connection resetting message, discharges and establish the occupied resource of the TCP connection;Client receives the connection resetting message, and the occupied resource of the TCP connection is established in release.When closing TCP connection, server resource can discharge the method for closing and device of a kind of TCP connection provided in an embodiment of the present invention in time, reduce Server latency, server resource is avoided to waste, and improve server efficiency.

Description

A kind of method for closing and device of TCP connection
Technical field
The present invention relates to Internet technical field, in particular to the method for closing and device of a kind of TCP connection.
Background technique
With the fast development of Internet technology, user client from network server for downloading the need of various data Ask growing day by day.All there can be the information of magnanimity to be downloaded daily, the optimisation technique of Internet resources occupied by downloading data becomes It is more and more important.
It is nearly all TCP (Transmission Control used in the download service process on network at present Protocol, transmission control protocol) agreement, for Transmission Control Protocol, when a TCP connection is closed, one is normal, complete TCP connection closing process include four steps.It is the stream of the method for closing of TCP connection in the prior art referring to Fig. 1, Fig. 1 Cheng Tu.Server end sends FIN/ACK (Finish/Acknowledgement, end/confirmation character) message, visitor to client Family end sends ACK (Acknowledgement confirms character) message to server end immediately after receiving FIN/ACK message, works as visitor Family end has handled the data received and has also confirmed that no data can be sent to after server end, will also send out to server end After sending a FIN/ACK message, server end to receive the FIN/ACK message of client, ACK message is replied, while waiting again Completely close connection after twice of MSL (Maximum segment lifetime, maximum lifetime) time again, and client After end receives the last ACK of server end, connection is just immediately closed off.The original intention of this design is in order to prevent when port is short When being reused in the time, there is the phenomenon that message entanglement, but in a practical situation, the probability pole of message entanglement phenomenon occurs It is low.
In the method that 4 above-mentioned steps close connection, server end needs after the message for having sent all closing connections Occupied resource could be discharged later by waiting twice of MSL time, and many times, server end receives client ACK message, the FIN/ACK message that client is sent can be received by needing to wait longer time, during this period of time, equally A large amount of resource can be occupied.So, when closing connection, many resources can be made to cannot get in the existing method for closing connection It timely discharges, to cause the waste of server resource, reduces server efficiency.
Summary of the invention
The method for closing and device for being designed to provide a kind of TCP connection of the embodiment of the present invention are closing TCP to realize When connection, server resource can discharge in time, reduce Server latency, server resource is avoided to waste, and improve service Device efficiency.Specific technical solution is as follows:
The embodiment of the present invention discloses a kind of method for closing of TCP connection, is applied to server end, including
Server sends the first connection closed notice message to client, and the first connection closed notice message is for leading to Know that the client closes the TCP connection with the server;
The server receives the connection closed back message that the client is sent, and the connection closed back message is used In notifying the server, the first connection closed notice message is had been received in the client;
The server sends connection resetting message to the client, and the connection resetting message is for making the client End terminates the TCP connection with the server;
The server terminates the TCP connection with the client, and discharges and establish the occupied money of the TCP connection Source.
Preferably, before the server sends the first connection closed notice message to client, further includes:
The server triggers obtain out code, the out code be used to indicate close the server with it is described The TCP connection of client.
Preferably, before the server sends the first connection closed notice message to client, further comprise:
The server obtains configuration information, and the configuration information is used to indicate the server, receives the client After holding the connection closed back message sent, sends the connection and reset message.
Preferably, the server sends connection resetting message to the client, comprising:
After the server receives the connection closed back message that the client is sent, default delay time is waited, The connection, which is sent, to the client again resets message.
Preferably, described to wait default delay time, then send the connection to the client and reset message, comprising:
In the default delay time, it is logical that the server receives the second connection closed that the client is sent Know message, then the server sends the company to the client immediately after receiving the second connection closed notice message Resetting message is connect, the second connection closed notice message is used to that the server to be notified to close immediately and the client TCP connection.
A kind of closing device of TCP connection is also disclosed in the embodiment of the present invention, is applied to server end, comprising:
Sending module sends the first connection closed notice message, first connection closed to client for server The TCP connection that notice message is used to that the client to be notified to close with the server;
Receiving module receives the connection closed back message that the client is sent, the company for the server It connects and closes back message for notifying the server, the first connection closed notice report has been received in the client Text;
The sending module is also used to the server to the client and sends connection resetting message, the connection weight Message is set for making the client terminate the TCP connection with the server;
Closedown module terminates the TCP connection with the client for the server, and discharges and establish the TCP company Connect occupied resource.
Preferably, the closing device of the TCP connection, further includes:
Module is obtained, for the server triggers or obtains out code, the out code, which is used to indicate, closes institute State the TCP connection of server Yu the client.
Preferably, the closing device of the TCP connection further comprises:
Configuration module obtains configuration information for the server, and the configuration information is used to indicate the server, connects After receiving the connection closed back message that the client is sent, sends the connection and reset message.
Preferably, the sending module is also used to the server and receives the connection closed time that the client is sent After answering message, default delay time is waited, then send the connection to the client and reset message.
Preferably, the sending module is also used in the default delay time, and the server receives described The second connection closed notice message that client is sent, then after the server receives the second connection closed notice message The connection is sent to the client immediately and resets message, and the second connection closed notice message is for notifying the service Device is closed and the TCP connection of the client immediately.
The method for closing and device of a kind of TCP connection provided in an embodiment of the present invention, can make server receive After the connection closed back message that client is sent, connection resetting message is sent to client, and close and connect with the TCP of client It connects, discharges server resource.It withouts waiting for client and feeds back FIN/ACK message again, also no longer need to wait twice of MSL Time just discharges server resource, improves the efficiency of server, while server resource is discharged and energy in time It is enough more efficiently to utilize server resource.Certainly, it implements any of the products of the present invention or method must be not necessarily required to reach simultaneously To all the above advantage.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below There is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with It obtains other drawings based on these drawings.
Fig. 1 is the flow chart of the method for closing of TCP connection in the prior art;
Fig. 2 is a kind of flow chart of the method for closing of TCP connection provided in an embodiment of the present invention;
Fig. 3 is another flow chart of the method for closing of TCP connection provided in an embodiment of the present invention;
Fig. 4 is the structure chart of the closing device of TCP connection provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other Embodiment shall fall within the protection scope of the present invention.
Referring to fig. 2, Fig. 2 is a kind of flow chart of the method for closing of TCP connection provided in an embodiment of the present invention, is applied to clothes Business device side, comprising:
Step 201, server sends the first connection closed notice message to client, and the first connection closed notice message is used The TCP connection with server is closed in notice client.
When a TCP connection is closed, in most cases, connection is all actively closed by server, client receives After instruction transmitted by server, then execute the relevant procedures for closing connection.
When server actively initiates to close one the TCP connection with client, firstly, to send the first connection to client Notice message is closed, by the first connection closed notice message, notifies client that can have sent without data, needs to close Close this TCP connection.Wherein, the first connection closed notice message can be FIN/ACK message.
Step 202, server receives the connection closed back message that client is sent, and connection closed back message is for leading to Know server, the first connection closed notice message has been received in client.
After client receives the first connection closed notice message of server transmission, client can send to server and connect Back message is closed, as the response to the first connection closed notice message.Connection closed back message is client to service Device indicates that client has had received the first connection closed notice message transmitted by server.Wherein, connection closed responds report Text can be ACK message.
Server receives the connection closed back message of client transmission, indicates that client has been received that server The first transmitted connection closed notice message, and made response.Server can carry out remaining closing step.
Step 203, server to client send connection resetting message, connection resetting message for make client terminate with The TCP connection of server.
After server receives the connection closed back message of client transmission, connection resetting message is sent to client.Even Resetting message is connect for alloing client to terminate the connection with server immediately.Connection resetting message can be RST (Reset, Resetting) message.RST message for terminating a TCP connection immediately.
So when client receives the RST message, so that it may release immediately foundation and connect used money with server Source.
When sending connection resetting message to client due to server, connection resetting message has the possibility of loss, so clothes Business device can send multiple connections to client simultaneously and reset messages, be lost even if having with guarantee and connecting resetting message, Client can also receive remaining connection resetting message.
Step 204, server terminates the TCP connection with client, and discharges and establish the occupied resource of TCP connection.
After server has sent connection resetting message to client, so that it may the TCP connection with client is terminated, And discharge resource used in foundation and the connection of client.
Server does not need to receive echo message transmitted by any client again, as long as server has issued to client Connection resetting message, the case where without the concern for client, so that it may the termination of the active connection, and discharge the connection and used Server resource.
In the embodiment of the present invention, after server receives connection closed back message transmitted by client, just to visitor Family end issues connection resetting message, and discharges server resource.It avoids in the prior art, server waits client anti-again The waiting time for presenting FIN/ACK message, improve server efficiency.The MSL time for waiting twice is no longer needed just to discharge simultaneously Server resource.Server resource is discharged in time and more efficiently utilizes server resource, it is unnecessary to avoid Resources idle.
Preferably, in the method for closing of TCP connection provided in an embodiment of the present invention, server sends first to client and connects It connects before closing notice message, further includes:
Server triggers obtain out code, and out code is used to indicate the TCP connection for closing server and client.
When server can be sent to client without data, which, which oneself can trigger to close, refers to It enables;Or server can obtain the out code for stopping that data are sent to client from other control units;It is also possible to take Be engaged in device consistency operation personnel, and artificial sends an out code to server, and the server is made to stop sending number to client According to.
Out code is used to indicate the TCP connection of server closing and client, server triggers or after obtaining the instruction, Just start the step of carrying out closing TCP connection.It ensure that server will not close and client because of other disturbing factors TCP connection, so that TCP connection is relatively reliable.
Preferably, in the method for closing of TCP connection provided in an embodiment of the present invention, server sends first to client and connects It connects before closing notice message, further comprises:
Server obtains configuration information, and configuration information is used to indicate server, receives the connection closed of client transmission After back message, connection resetting message is sent.
Before the TCP connection of server closing and client, server is configured, server, which obtains, matches confidence Breath, so that server can send out connection after the connection closed back message for receiving client transmission to client Message is reset, rather than client is waited to feed back FIN/ACK message again.
Specifically, configuration information can be in server setsockopt (socket setting), preset options journey is added Sequence realizes server after the connection closed back message for receiving client transmission, to client by the option program Send out connection resetting message.It is also possible to close this functionality of server by the option program, keep server extensive The closing mode for arriving original TCP connection again after receiving the connection closed back message that client is sent, waits client FIN/ACK message is fed back again in end.Wherein, preset options program can be SO_LINGER_RST option.SO_LINGER_RST Option can be realized by programming language.
In embodiments of the present invention, it by the configuration information of server, realizes server and is receiving client transmission Connection closed back message after, to client send out connection resetting message.And by server setsockopt Middle addition SO_LINGER_RST option, allows to whether control server opens this function.So as to according to practical need The adjustment of server is carried out, selection opens or closes this function of server, meets the different demands of different user.
Preferably, in the method for closing of TCP connection provided in an embodiment of the present invention, server sends connection weight to client Set message, comprising:
After server receives the connection closed back message of client transmission, default delay time is waited, then to service Device sends connection resetting message.
In a TCP connection, the data that server is sent to client, which are often first stored in, to be received in buffer area, so Client reads data from reception buffer area again afterwards.It, can in receiving buffer area when server initiates the closing of TCP connection It can there is also the data that client has not been read.So when server receives the connection closed back message of client transmission Afterwards, default delay time can be waited, then sends connection resetting message to client.Client receives connection resetting message Afterwards, the connection is terminated immediately and discharges occupied resource.
Default delay time, which is one, can according to need the value set, be then to be equivalently employed without and prolong when the value is 0 When the time, after server receives connection closed back message transmitted by client, immediately to client send connection resetting Message.
By presetting delay time, it is ensured that client has the regular hour that can read number from receiving in buffer area According to, ensure that data transmission integrality.Meanwhile preset time can according to need the setting of progress, to meet various differences In the case of demand.
Preferably, in the method for closing of TCP connection provided in an embodiment of the present invention, default delay time is waited, then to clothes Business device sends connection resetting message, comprising:
In default delay time, server receives the second connection closed notice message of client transmission, then takes Business device sends connection resetting message, the second connection closed notice to client immediately after receiving the second connection closed notice message Message is for notifying server to close immediately and the TCP connection of client.
In embodiments of the present invention, client-side is not needed to adjust, so client still can be according to routine The closing that is attached of TCP method for closing.After user end to server has sent connection closed back message, client is from connecing It receives buffer area and has read data, having handled the data received and the no data of confirmation can be sent to after server, also The second connection closed notice message can be sent to server, notice server can be closed immediately now and be terminated and client The TCP connection at end.
In default delay time, if server receives the second connection closed notice message of client transmission, It then indicates that client has been completed and receives the work such as buffered data reading, the connection can be closed immediately.So server is vertical Connection resetting message is sent to client, so that client terminates the connection immediately.
In embodiments of the present invention, in default delay time, after server receives the second connection closed notice message Connection resetting message is sent to client immediately.It need not terminate just to send connection resetting message until default delay time, shorten While default delay time, it ensure that client can read data from receiving in buffer area.To improve service Device efficiency.
Referring to Fig. 3, Fig. 3 is another flow chart of the method for closing of TCP connection provided in an embodiment of the present invention, is applied to Server end, comprising:
Step 301, server obtains configuration information.
Configuration information can be in server setsockopt, and SO_LINGER_RST option is added, by opening SO_ LINGER_RST option allows server to send connection resetting message to direct customer end.
Step 302, server triggers or acquisition out code.
Out code is used to indicate the TCP connection of server closing and client, server triggers or after obtaining the instruction, Just start the step of carrying out closing TCP connection.
Server oneself can trigger or obtain out code from other control units.
Step 303, server sends the first connection closed notice message to client.
First connection closed notice message can be FIN/ACK message, for notifying client to close the TCP with server Connection.
Step 304, server receives connection closed back message transmitted by client.
Connection closed back message can be ACK message, and for notifying server, the first connection is had been received in client Close notice message.
Step 305, default delay time is waited.
After server receives connection closed back message, default delay time, root when presetting delay time are started waiting It according to the value that actual conditions are set, such as can be 1 second, or 0, when default delay time is 0, expression is not to wait for presetting Delay time.
Step 306, if receive the second connection closed notice message.
Within the time for waiting default delay time, judge whether the second connection closed notice for receiving client transmission Message.If having received the second connection closed notice message, withouting waiting for delay time terminates, directly progress step 308。
Step 307, if reach default delay time.
If being not received by the second connection closed notice message within the time of default delay time, need etc. until Up to default delay time, after reaching default delay time, step 308 is carried out.
Step 308, server sends connection resetting message to client.
Connection resetting message can be RST message, by RST message, can make client terminates immediately and server it Between TCP connection.
Step 309, the TCP connection of server closing and client.
After server has sent connection resetting message to client, the TCP connection with client is terminated, and release Put resource used in foundation and the connection of client.Complete whole processes of this TCP connection closing.
In embodiments of the present invention, server withouts waiting for client again when closing the TCP connection with client FIN/ACK message is fed back, also no longer needs that twice of MSL time is waited just to discharge server resource, improves the effect of server Rate and performance.And by presetting delay time, after client having time can be made to have read data from reception buffer area, Closing the TCP connection.To ensure that the integrality of data transmission on the basis of improving server efficiency and performance.
Referring to fig. 4, Fig. 4 is the structure chart of the closing device of TCP connection provided in an embodiment of the present invention, is applied to server End, comprising:
Sending module 401 sends the first connection closed notice message to client for server, and the first connection closed is logical Know message for notifying client to close the TCP connection with server.
Receiving module 402, the connection closed back message of client transmission is received for server, and connection closed is responded For message for notifying server, the first connection closed notice message is had been received in client.
Sending module 401 is also used to server to client and sends connection resetting message, and connection resetting message is for making visitor Family end terminates the TCP connection with server.
Closedown module 403, for server terminate with the TCP connection of client, and discharge that establish TCP connection occupied Resource.
In the embodiment of the present invention, after server receives connection closed back message transmitted by client, just to visitor Family end issues connection resetting message, and discharges server resource.It avoids in the prior art, server waits client anti-again The waiting time for presenting FIN/ACK message, improve server efficiency.The MSL time for waiting twice is no longer needed just to discharge simultaneously Server resource.Server resource is discharged in time and more efficiently utilizes server resource, it is unnecessary to avoid Resources idle.
The device of the embodiment of the present invention is the device for applying the method for closing of above-mentioned TCP connection, then the pass of above-mentioned TCP connection All embodiments for closing method are suitable for the device, and can reach the same or similar beneficial effect.
Preferably, the closing device of TCP connection provided in an embodiment of the present invention, further includes:
Module is obtained, for server triggers or obtains out code, out code, which is used to indicate, closes server and visitor The TCP connection at family end.
Preferably, the closing device of TCP connection provided in an embodiment of the present invention further comprises:
Configuration module obtains configuration information for server, and configuration information is used to indicate server, receives client hair After the connection closed back message sent, connection resetting message is sent.
Preferably, the sending module 401 of TCP connection provided in an embodiment of the present invention closed in device, is also used to service It after device receives the connection closed back message of client transmission, waits between presetting delay, then sends connection resetting to server Message.
Preferably, the sending module 401 of TCP connection provided in an embodiment of the present invention closed in device is also used to work as In default delay time, server receives the second connection closed notice message of client transmission, then server receives the Connection resetting message is sent to client immediately after two connection closed notice messages, the second connection closed notice message is for notifying Server is closed and the TCP connection of client immediately.
It should be noted that, in this document, relational terms such as first and second and the like are used merely to a reality Body or operation are distinguished with another entity or operation, are deposited without necessarily requiring or implying between these entities or operation In any actual relationship or order or sequence.Moreover, the terms "include", "comprise" or its any other variant are intended to Non-exclusive inclusion, so that the process, method, article or equipment including a series of elements is not only wanted including those Element, but also including other elements that are not explicitly listed, or further include for this process, method, article or equipment Intrinsic element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that There is also other identical elements in process, method, article or equipment including the element.
Each embodiment in this specification is all made of relevant mode and describes, same and similar portion between each embodiment Dividing may refer to each other, and each embodiment focuses on the differences from other embodiments.Especially for system reality For applying example, since it is substantially similar to the method embodiment, so being described relatively simple, related place is referring to embodiment of the method Part explanation.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all Any modification, equivalent replacement, improvement and so within the spirit and principles in the present invention, are all contained in protection scope of the present invention It is interior.

Claims (6)

1. a kind of method for closing of TCP connection, which is characterized in that be applied to server end, comprising:
Server sends the first connection closed notice message to client, and the first connection closed notice message is for notifying institute State the TCP connection of client closing and the server;
The server receives the connection closed back message that the client is sent, and the connection closed back message is for leading to Know the server, the first connection closed notice message has been received in the client;
After the server receives the connection closed back message that the client is sent, waits and preset delay time, then to The client sends connection resetting message, and the connection resetting message is used to that the client to be made to terminate and the server TCP connection, the default delay time are 0;
The server terminates the TCP connection with the client, and discharges and establish the occupied resource of the TCP connection.
2. leading to the method according to claim 1, wherein the server sends the first connection closed to client Before knowing message, further includes:
The server triggers obtain out code, and the out code, which is used to indicate, closes the server and the client The TCP connection at end.
3. leading to the method according to claim 1, wherein the server sends the first connection closed to client Before knowing message, further comprise:
The server obtains configuration information, and the configuration information is used to indicate the server, receives the client hair After the connection closed back message sent, sends the connection and reset message.
4. a kind of closing device of TCP connection, which is characterized in that be applied to server end, comprising:
Sending module sends the first connection closed notice message, the first connection closed notice to client for server The TCP connection that message is used to that the client to be notified to close with the server;
Receiving module receives the connection closed back message that the client is sent for the server, and the connection is closed Back message is closed for notifying the server, the first connection closed notice message has been received in the client;
The sending module, after being also used to the connection closed back message that the server receives the client transmission, etc. Delay time to be preset, then connection resetting message is sent to the client, the connection resetting message is for making the client End terminates the TCP connection with the server, and the default delay time is 0;
Closedown module terminates the TCP connection with the client for the server, and discharges and establish the TCP connection institute The resource of occupancy.
5. device according to claim 4, which is characterized in that further include:
Module is obtained, for the server triggers or obtains out code, the out code, which is used to indicate, closes the clothes The TCP connection of business device and the client.
6. device according to claim 4, which is characterized in that further comprise:
Configuration module obtains configuration information for the server, and the configuration information is used to indicate the server, receives After the connection closed back message that the client is sent, sends the connection and reset message.
CN201611239061.9A 2016-12-28 2016-12-28 A kind of method for closing and device of TCP connection Active CN106487817B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611239061.9A CN106487817B (en) 2016-12-28 2016-12-28 A kind of method for closing and device of TCP connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611239061.9A CN106487817B (en) 2016-12-28 2016-12-28 A kind of method for closing and device of TCP connection

Publications (2)

Publication Number Publication Date
CN106487817A CN106487817A (en) 2017-03-08
CN106487817B true CN106487817B (en) 2019-09-17

Family

ID=58286014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611239061.9A Active CN106487817B (en) 2016-12-28 2016-12-28 A kind of method for closing and device of TCP connection

Country Status (1)

Country Link
CN (1) CN106487817B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106941536A (en) * 2017-05-03 2017-07-11 华东交通大学 Data interactive method between client and server based on http protocol
CN111949918B (en) * 2020-08-23 2024-03-08 云知声智能科技股份有限公司 Websocket connection optimization method and system based on distributed environment
CN113037873B (en) * 2021-05-24 2021-09-07 广东睿江云计算股份有限公司 A Method of Optimizing TCP Transmission
CN116489207A (en) * 2023-05-30 2023-07-25 杭州迪普科技股份有限公司 TCP connection processing method and device for intermediate equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7472416B2 (en) * 2004-01-09 2008-12-30 Cisco Technology, Inc. Preventing network reset denial of service attacks using embedded authentication information
US7565694B2 (en) * 2004-10-05 2009-07-21 Cisco Technology, Inc. Method and apparatus for preventing network reset attacks
CN101394444A (en) * 2008-11-12 2009-03-25 华为技术有限公司 Method, system and device for releasing TCP connection occupied after call ends
CN101547210A (en) * 2009-05-14 2009-09-30 福建星网锐捷网络有限公司 Method and device for processing TCP connection
CN101902440B (en) * 2009-05-27 2013-11-06 北京启明星辰信息技术股份有限公司 Method and device for blocking TCP connection
CN102364906B (en) * 2011-10-10 2014-05-07 华为技术有限公司 Reset connection method and equipment thereof
WO2015006773A1 (en) * 2013-07-12 2015-01-15 Seven Networks, Inc. Transport protocol layer optimization for managing signaling and power consumption
CN105991348B (en) * 2015-05-20 2019-03-15 杭州迪普科技股份有限公司 TCP connection method for closing and device
CN105516252A (en) * 2015-11-26 2016-04-20 华为技术有限公司 TCP (Transmission Control Protocol) connection switching method, apparatus and system

Also Published As

Publication number Publication date
CN106487817A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
CN106487817B (en) A kind of method for closing and device of TCP connection
CN106301959B (en) Gateway batch upgrading method and system based on WINDOWS and LINUX platform
TW200423641A (en) Improving availability and scalability in a messaging system in a manner transparent to the application
CN105208043A (en) Outer network agent module, inner network agent module and data transmitting method and system
CN105610888A (en) Method of using socket to push message based on Android and system thereof
EP1631024A3 (en) Method for streaming data between a server and a client
CN101790191A (en) Method and communication device for improving reset procedure of scheduling request
CN105245271B (en) Satellite communication network acceleration device and method
CN103618667A (en) Information transfer method, access gateway and system
CN108900433B (en) Method, terminal and server for transmitting lora message
CN106301969A (en) The management method of HTTP length link and system
US20250374313A1 (en) Systems, devices, and methods related to configuring multi-stream network with stream-aware scheduling
CN102571739A (en) Batch data transmission method and device
CN106603480B (en) The transmission method and device of files in stream media
US7213074B2 (en) Method using receive and transmit protocol aware logic modules for confirming checksum values stored in network packet
CA2503867A1 (en) Message send queue reordering based on priority
CN101697518B (en) Telecommunications equipment configuration method, system and telecommunications equipment
CN108040115B (en) File transmission method and device
CN105721509A (en) Server system
CN110166479A (en) A kind of method that Transmission system promotes UDP transmitting efficiency
EP1569491A3 (en) Group network system using bluetooth and generating method thereof
CN103095554B (en) Media information sending method, apparatus and system
CN105282235B (en) A method of solution RPC upgrades unstable in double-PON port ONU
CN106357454A (en) Log system control device and method
CN107666430A (en) A kind of E-mail sending method, device and terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant