CN109995724A - A kind of communication means, client and communication system - Google Patents

A kind of communication means, client and communication system Download PDF

Info

Publication number
CN109995724A
CN109995724A CN201711490113.4A CN201711490113A CN109995724A CN 109995724 A CN109995724 A CN 109995724A CN 201711490113 A CN201711490113 A CN 201711490113A CN 109995724 A CN109995724 A CN 109995724A
Authority
CN
China
Prior art keywords
tfo
syn packet
packet
standard
syn
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.)
Granted
Application number
CN201711490113.4A
Other languages
Chinese (zh)
Other versions
CN109995724B (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.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201711490113.4A priority Critical patent/CN109995724B/en
Publication of CN109995724A publication Critical patent/CN109995724A/en
Application granted granted Critical
Publication of CN109995724B publication Critical patent/CN109995724B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • 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]
    • H04L69/163In-band adaptation of TCP data exchange; In-band control procedures

Abstract

This application discloses a kind of communication means, client and communication systems;Above-mentioned communication means, comprising: client sends the SYN packet of TFO when establishing transmission control protocol TCP with server-side and connecting, and transmission standard SYN packet after the SYN packet for sending TFO and before the SYN packet of TFO is overtime.In this way, sending a standard SYN packet to find whether TFO fails by multiple, to guarantee the communication performance under the unavailable scene of TFO.

Description

A kind of communication means, client and communication system
Technical field
This application involves but be not limited to the communication technology more particularly to a kind of communication means, client and communication system.
Background technique
Fig. 1 is that TCP as defined in the transmission control protocol (TCP, Transmission Control Protocol) of standard connects Connect the three-way handshake interaction schematic diagram of establishment process.As shown in Figure 1, the three-way handshake process of TCP includes:
Shake hands for the first time: client (Client) sends synchronization (SYN, a Synchronous) packet, SYN in the SYN packet Mark position is 1, and serial number (sequence number, hereinafter referred to as seq) can be M, and client enters SYN_SEND shape State;Wherein, M value can determine at random;
Second handshake: server-side (Server), can person in charge of reception at ceremonies for 1 according to SYN flag position after receiving the SYN packet of client Connection is established in the request of family end, and server-side is wrapped to client feedback SYN ACK (confirmation of synchronization), shows that the request of client is connect By;Server-side is all set to 1 in SYN ACK packet, by SYN flag position and ACK flag position, and serial number seq is set as N, acknowledged sequence number (Ack number) is set as M+1, i.e., the serial number that acknowledged sequence number is equal to the SYN packet that client is sent adds 1;Server-side enters SYN_ RECV state;Wherein, N value can also determine at random;
Third time is shaken hands: after client receives the SYN ACK packet of server-side return, ACK is marked in checking SYN ACK packet Will position is 1, and when acknowledged sequence number is M+1, then returns to confirmation (ACK) and wrap to server-side, in the ACK packet, by ACK flag Position is set as 1, and acknowledged sequence number is set as N+1;After server-side receives the ACK packet, ACK flag position is 1 in checking ACK packet, And acknowledged sequence number then illustrates that the TCP connection between client and server-side is successfully established when being N+1, client and server-side into Enter ESTABLISHED (connection is established) state.
It, can between client and server-side after being successfully established TCP connection between client and server-side by three-way handshake Carried out data transmission with the TCP connection based on foundation.
As can be seen from FIG. 1, in standard TCP, three-way handshake can waste RTT (round-trip delay, a Round-Trip Time)。
TFO (TCP Fast Open) is a kind of couple of TCP (the Transmission Control issued by Google Protocol, transmission control protocol) extension.TFO permission carries out data exchange during TCP three-way handshake, to save one The secondary RTT time.
Fig. 2 is the interaction diagrams of TFO.As shown in Fig. 2, the interaction flow of TFO includes:
The first step, client send the SYN packet (that is, SYN packet of TFO) for having business datum, and can be Pass through the cookie (that is, FOC (Fast Open Cookie)) for normally connecting acquisition before carrying in Fast Open option;
After second step, server-side receive SYN packet, the cookie wherein carried is verified;If the cookie is effective, service End returns to SYN ACK packet, and the business datum that SYN packet carries is passed to application layer;If the cookie is invalid, server-side The business datum in SYN packet can be lost, while returning to a SYN ACK packet to client to confirm the serial number in SYN packet;
Third step, when cookie is effective, connection complete before, server-side can give client send response data;
After 4th step, client receive SYN ACK packet, ACK packet is sent to confirm the SYN ACK packet and data of server-side; If the business datum in the SYN packet that client is sent in the first step is not confirmed that client can be at this by server Corresponding business datum is retransmitted in ACK packet.
Remaining connection of TFO process handles the TCP connection process of similar standard.It should be noted that client once obtains FOC is got, TFO process can be repeated until cookie is expired.Using before TFO, client can be common by one Three-way handshake connection obtains FOC.For example, client sends the SYN packet for having Fast Open option, while carrying one A cookie is requested in the empty domain cookie;Server-side generates a cookie, then passes through the Fast of a SYN ACK packet Open option returns to client;It is used when this cookie of client-cache is in case of subsequent use TFO.
However, due to the limitation of routing device and operator's internetwork device on internet, causing under internet environment TFO fails degeneration for standard TCP, specifically, will lead to if intermediate equipment does not support TFO under subnetwork environment The degeneration of TFO time-out is the TCP connection of standard, so that connection speed on the whole is even lower than the TCP connection speed of standard.
Summary of the invention
It is the general introduction to the theme being described in detail herein below.This general introduction is not the protection model in order to limit claim It encloses.
The embodiment of the present application provides a kind of communication means, client and communication system, can ensure in the unavailable scene of TFO Under communication performance.
In a first aspect, the embodiment of the present application provides a kind of communication means, comprising:
Client sends the SYN packet of TFO when establishing TCP connection with server-side, and the SYN packet for sending the TFO it Send standard SYN packet afterwards and before the SYN packet time-out of the TFO.
In the exemplary embodiment, the sending instant of the sending instant of the SYN packet of the TFO and the standard SYN packet Between interval duration can be greater than or equal to 0 and be less than or equal to 20 milliseconds.
In the exemplary embodiment, after the SYN packet and standard SYN packet for sending TFO, the above method can also be wrapped It includes:
The client receives ACK packet;According to the ACK packet, judge whether TFO fails.
In the exemplary embodiment, described to judge whether TFO fails according to the ACK packet, may include:
It is long equal to the data that the serial number of the SYN packet of TFO and the SYN packet carry in the acknowledged sequence number that the ACK packet carries When the sum of degree adds 1, confirmation TFO success;
When the serial number that the acknowledged sequence number that the ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
Second aspect, the embodiment of the present application provide a kind of client, comprising:
Sending module suitable for when establishing TCP connection with server-side, sending the SYN packet of TFO, and is sending the TFO's Standard SYN packet is sent after SYN packet and before the SYN packet time-out of the TFO.
In the exemplary embodiment, the sending instant of the sending instant of the SYN packet of the TFO and the standard SYN packet Between interval duration can be greater than or equal to 0 and be less than or equal to 20 milliseconds.
In the exemplary embodiment, the client can also include:
Receiving module is suitable for receiving ACK packet;
Processing module is suitable for judging whether TFO fails according to the ACK packet.
In the exemplary embodiment, the processing module may be adapted to be judged by the following manner whether TFO fails:
It is long equal to the data that the serial number of the SYN packet of TFO and the SYN packet carry in the acknowledged sequence number that the ACK packet carries When the sum of degree adds 1, confirmation TFO success;
When the serial number that the acknowledged sequence number that the ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
The third aspect, the embodiment of the present application provide a kind of communication system, comprising: client, server-side and intermediate equipment;
The client is suitable for sending TFO's when establishing TCP connection by the intermediate equipment and the server-side SYN packet, and standard SYN packet is sent after the SYN packet for sending the TFO and before the SYN packet time-out of the TFO;
The intermediate equipment is suitable for the SYN packet of the TFO being sent to the server-side, and lose when itself supports TFO Abandon the standard SYN packet;When itself does not support TFO, the standard SYN packet is sent to the server-side, and described in discarding The SYN packet of TFO.
In the exemplary embodiment, when the intermediate equipment supports TFO, the server-side receives the TFO's After SYN packet, the serial number for SYN packet of the acknowledged sequence number equal to the TFO that the ACK packet of return carries and the number of SYN packet carrying Add 1 according to the sum of length;When the intermediate equipment does not support TFO, after the server-side receives the standard SYN packet, return ACK packet carry acknowledged sequence number be equal to the standard SYN packet serial number add 1.
Fourth aspect, the embodiment of the present application provide a kind of terminal device, comprising: memory and processor;Wherein, described Memory is for storing signal procedure, and the signal procedure is read by the processor when executing, and executes following operation: with clothes Business end sends the SYN packet of TFO when establishing TCP connection, and after the SYN packet for sending the TFO and the SYN packet of the TFO surpasses When before send standard SYN packet.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with signal procedure, the signal procedure Following operation is realized when being executed by processor: when establishing TCP connection with server-side, sending the SYN packet of TFO, and sending institute It states after the SYN packet of TFO and sends standard SYN packet before the SYN packet time-out of the TFO.
In the embodiment of the present application, client sends the SYN packet of TFO when establishing TCP connection with server-side, and is sending out It send after the SYN packet of TFO and sends standard SYN packet before the SYN packet time-out of TFO;In this way, sending a standard SYN by multiple Packet is to find whether TFO fails, to guarantee the communication performance under the unavailable scene of TFO.
Detailed description of the invention
Fig. 1 is the three-way handshake interaction diagrams of TCP connection establishment process as defined in standard TCP;
Fig. 2 is the interaction diagrams of TFO;
Fig. 3 is a kind of interaction diagrams of communication system provided by the embodiments of the present application;
Fig. 4 is another interaction diagrams of communication system provided by the embodiments of the present application;
Fig. 5 is the flow chart of communication means provided by the embodiments of the present application;
Fig. 6 is the schematic diagram of client provided by the embodiments of the present application.
Specific embodiment
The embodiment of the present application is described in detail below in conjunction with attached drawing, it should be understood that embodiments described below is only For instruction and explanation of the application, it is not used to limit the application.
It should be noted that each feature in the embodiment of the present application and embodiment can be tied mutually if do not conflicted It closes, within the scope of protection of this application.In addition, though logical order is shown in flow charts, but in certain situations Under, it can be with the steps shown or described are performed in an order that is different from the one herein.
In some embodiments, the calculating equipment for executing communication means may include one or more processors (CPU), defeated Enter/output interface, network interface and memory (memory).
Memory may include non-volatile memory in computer-readable medium, random access memory (RAM) and/or The forms such as Nonvolatile memory, such as read-only memory (ROM) or flash memory (flash RAM).Memory is computer-readable medium Example.Memory may include module 1, module 2 ... ..., module N (N is the integer greater than 2).
Computer-readable medium includes permanent and non-permanent, removable and non-movable storage medium.Storage medium It can be accomplished by any method or technique information storage.Information can be the mould of computer readable instructions, data structure, program Block or other data.The example of the storage medium of computer includes, but are not limited to phase change memory (PRAM), static random-access is deposited Reservoir (SRAM), dynamic random access memory (DRAM), other kinds of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory techniques, CD-ROM are read-only Memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic Property storage equipment or any other non-transmission medium, can be used for storing and can be accessed by a computing device information.According to herein Define, computer-readable medium does not include non-temporary computer readable media (transitory media), such as modulation data Signal and carrier wave.
Below first to this application involves standard synchronisation (SNY, Synchronous) packet and TFO SYN packet carrying information It is illustrated.It should be noted that herein only to this application involves information be illustrated.
Compared to standard SNY packet, the SYN packet of TFO can also carry business datum (data) and FOC (Fast Open Cookie).The SYN packet of standard SNY packet and TFO all include SNY flag bit, confirmation (ACK) flag bit, serial number (sequence Number) field and acknowledged sequence number (Ack number) field.Wherein, indicate that initiating one newly connects when SYN flag position is 1 It connects;Sequence number field accounts for 32, wherein serial number is carried, for identifying the byte stream sent from TCP source to destination, initiator's hair This is marked when sending data;Acknowledged sequence number field accounts for 32, wherein acknowledged sequence number is carried, when only ACK flag position is 1, Acknowledged sequence number field is just effective.
Fig. 3 and Fig. 4 is the interaction diagrams of communication system provided by the embodiments of the present application.Communication system provided in this embodiment System includes: client, intermediate equipment and server-side.
Under internet environment, due to internetwork device (the i.e. client and service of routing device on internet and operator Intermediate equipment between end) limitation, there is the case where not supporting TFO in these equipment, this will lead to performance of TFO lower than standard The performance of shaking hands of TCP.
In the present embodiment, client sends the SYN packet of TFO when establishing TCP connection by intermediate equipment and server-side, And standard SYN packet is sent after the SYN packet for sending TFO and before the SYN packet time-out of TFO.
Wherein, the SYN packet time-out of TFO, which indicates to send, does not receive in the setting duration after the SYN packet of TFO for SYN packet Response.
Wherein, the SYN packet of TFO and standard SYN packet can be sent simultaneously;Alternatively, preferentially sending the SYN packet of TFO, and TFO The sending instant of SYN packet and the sending instant of standard SYN packet between interval duration be less than above-mentioned setting duration.For example, TFO The sending instant of SYN packet and the sending instant of standard SYN packet between interval duration can be less than or equal to 100ms, example Property, the interval duration between the sending instant of the two can be for more than or equal to 0 and less than or equal to 20ms.However, this Shen Please this is not limited.In practical applications, can according to the network environment locating for client determine both sending instant it Between interval duration.
Wherein, intermediate equipment is suitable for the SYN packet of TFO being sent to server-side, and abandon standard when itself supports TFO SYN packet;When itself does not support TFO, standard SYN packet is sent to server-side, and abandon the SYN packet of TFO.
Illustratively, when client sends the SYN packet and standard SYN packet of TFO simultaneously, if intermediate equipment supports TFO, Intermediate equipment can forward the SYN packet of TFO to server-side, and abandon standard SYN packet, intermediate if intermediate equipment does not support TFO Equipment can forward standard SYN packet to server-side, and abandon the SYN packet of TFO.
Illustratively, when intermediate equipment supports TFO, after server-side receives the SYN packet of TFO, the ACK packet of return is carried The serial number of SYN packet of the acknowledged sequence number equal to TFO and the sum of the data length of SYN packet carrying add 1;It is not supported in intermediate equipment When TFO, after server-side receives standard SYN packet, the serial number that the acknowledged sequence number that the ACK packet of return carries is equal to standard SYN packet adds 1。
As shown in figure 3, after intermediate equipment receives the SYN packet of TFO, service can be transmitted to when intermediate equipment supports TFO End, server-side can preferentially receive the SYN packet of TFO, so that the TCP connection for completing TFO is established;Intermediate equipment can be because connect It establishes and abandons the standard SYN packet received below.The TCP connection establishment process of TFO is completed in Fig. 3 between server-side and client Other explanations be referred to description shown in Fig. 2, therefore repeated no more in this.
As shown in figure 4, intermediate equipment can abandon the SYN packet of the TFO received when intermediate equipment does not support TFO, then service End only will receive standard SYN packet, establish to complete normal TCP connection.TCP is completed in Fig. 4 between server-side and client Other explanations of connection establishment process are referred to description shown in FIG. 1, therefore repeat no more in this.
In the present embodiment, there was only 40 bytes (20 byte IP+20 byte TCP) in view of SYN packet, even if more when connection is established It is also considerably less to send influence of the data packet of 40 bytes for network, therefore, send a standard SYN Bao Laifa by multiple Whether existing TFO fails, to guarantee the communication performance under the unavailable scene of TFO.
Fig. 5 is the flow chart of communication means provided by the embodiments of the present application.As shown in figure 5, communication provided in this embodiment Method, comprising:
S501, client send the SYN packet of TFO when establishing TCP connection with server-side;Wherein, the SYN packet of TFO carries Business datum;
S502, client send standard SYN packet after the SYN packet for sending TFO and before the SYN packet time-out of TFO.
In the exemplary embodiment, the SYN packet of TFO and standard SYN packet can be sent simultaneously;Alternatively, preferentially sending TFO SYN packet, and the interval duration between the sending instant of the SYN packet of TFO and the sending instant of standard SYN packet be less than TFO SYN Wrap the setting duration of time-out.Illustratively, interval duration can be greater than or equal to 0 and be less than or equal to 100ms, such as when interval Long range is 0 to 20ms.
In the present embodiment, after S502, the communication means of the present embodiment can also include:
S503, client receive the ACK packet that server-side returns, and judge whether TFO fails;
Wherein, the data that the serial number and the SYN packet that the SYN packet of TFO is equal in the acknowledged sequence number that the ACK packet carries carry are long When the sum of degree adds 1, confirmation TFO success;
When the serial number that the acknowledged sequence number that the ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
In the present embodiment, according to the acknowledged sequence number that ACK packet carries, which SYN the ACK packet that identification server-side returns is for The response of packet, by determining whether server-side has handled the business datum that the SYN packet of TFO carries, to judge whether TFO succeeds. In the business datum that the SYN packet that server-side has handled TFO carries, then show TFO success, conversely, then showing that TFO fails.
In the present embodiment, after client confirmation TFO success, client using conventional TCP data transmission flow into The transmission of row data;It, can also be using conventional TCP data transmission flow in client confirmation TFO failure after standard TCP success Carry out data transmission.The situation successful compared to TFO, client is when TFO fails, it is also necessary to retransmit the SYN packet carrying of TFO Business datum.
Fig. 6 is the schematic diagram of client provided by the embodiments of the present application.As shown in fig. 6, client provided in this embodiment, Include:
Sending module 601 suitable for when establishing TCP connection with server-side, sending the SYN packet of TFO, and is sending TFO's Standard SYN packet is sent after SYN packet and before the SYN packet time-out of TFO.
Illustratively, the interval duration between the sending instant of the SYN packet of TFO and the sending instant of standard SYN packet can be with Range less than or equal to 100ms, such as interval duration is 0 to 20ms.
Wherein, the client of the present embodiment can also include:
Receiving module 602 is suitable for receiving ACK packet;
Processing module 603, suitable for judging whether TFO fails according to ACK packet.
Wherein, processing module 603 may be adapted to be judged by the following manner whether TFO fails:
In the sum of the data length that the serial number of SYN packet of the acknowledged sequence number that ACK packet carries equal to TFO and the SYN packet carry When adding 1, confirmation TFO success;When the serial number that the acknowledged sequence number that ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
Relevant treatment explanation about client provided in this embodiment is referred to above-mentioned communication system and communication means Description, therefore repeated no more in this.
The embodiment of the present application also provides a kind of terminal device, comprising: memory and processor, for storing on memory Signal procedure;The signal procedure is when being read out by the processor execution, the step of executing communication means provided in this embodiment.
Wherein, processor can include but is not limited to microprocessor (MCU, Microcontroller Unit) or programmable The processing unit of logical device (FPGA, Field-Programmable Gate Array) etc..Memory can be used for storing application The software program and module of software, as in the present embodiment the corresponding program instruction of communication means or module, processor pass through The software program and module being stored in memory is run to realize thereby executing various function application and data processing Above-mentioned communication means.Memory may include high speed random access memory, may also include nonvolatile memory, such as one or more A magnetic storage device, flash memory or other non-volatile solid state memories.In some instances, memory can be wrapped further The memory remotely located relative to processor is included, these remote memories can pass through network connection to above-mentioned terminal device. The example of above-mentioned network includes but is not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Wherein, above-mentioned terminal device can also include: communication unit, can receive or send number via a network According to.In an example, communication unit can be radio frequency (Radio Frequency, referred to as RF) module, be used to pass through nothing Line mode is communicated with internet.
In addition, the embodiment of the present application also provides a kind of computer-readable medium, it is stored with signal procedure, the signal procedure quilt The step of processor realizes above-mentioned communication means when executing.
It will appreciated by the skilled person that whole or certain steps, system, dress in method disclosed hereinabove Functional module/unit in setting may be implemented as software, firmware, hardware and its combination appropriate.In hardware embodiment, Division between the functional module/unit referred in the above description not necessarily corresponds to the division of physical assemblies;For example, one Physical assemblies can have multiple functions or a function or step and can be executed by several physical assemblies cooperations.Certain groups Part or all components may be implemented as by processor, such as the software that digital signal processor or microprocessor execute, or by It is embodied as hardware, or is implemented as integrated circuit, such as specific integrated circuit.Such software can be distributed in machine readable Jie In matter (for example, computer-readable medium), computer-readable medium may include computer storage medium (or non-transitory be situated between Matter) and communication media (or fugitive medium).As known to a person of ordinary skill in the art, term computer storage medium includes In any method or skill for storing information (such as computer readable instructions, data structure, program module or other data) The volatile and non-volatile implemented in art, removable and nonremovable medium.Computer storage medium includes but is not limited to RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disc (DVD) or other optical disc storages, magnetic Box, tape, disk storage or other magnetic memory apparatus or it can be used for storing desired information and can be visited by computer Any other medium asked.In addition, known to a person of ordinary skill in the art be, communication media generally comprises computer-readable Other numbers in the modulated data signal of instruction, data structure, program module or such as carrier wave or other transmission mechanisms etc According to, and may include any information delivery media.
The advantages of basic principles and main features and the application of the application have been shown and described above.The application is not by upper The limitation for stating embodiment, the above embodiments and description only describe the principles of the application, are not departing from the application Under the premise of spirit and scope, the application be will also have various changes and improvements, these changes and improvements both fall within claimed Within the scope of the application.

Claims (12)

1. a kind of communication means characterized by comprising
Client sends the synchronization SYN packet of TFO when establishing transmission control protocol TCP with server-side and connecting, and described in the transmission Standard SYN packet is sent after the SYN packet of TFO and before the SYN packet time-out of the TFO.
2. the method according to claim 1, wherein the sending instant of the SYN packet of the TFO and the standard Interval duration between the sending instant of SYN packet is greater than or equal to 0 and is less than or equal to 20 milliseconds.
3. the method according to claim 1, wherein it is described send TFO SYN packet and standard SYN packet after, institute State method further include:
The client receives confirmation ACK packet;
According to the ACK packet, judge whether TFO fails.
4. according to the method described in claim 3, it is characterized in that, described judge whether TFO fails according to the ACK packet, packet It includes:
The ACK packet carry acknowledged sequence number equal to TFO SYN packet serial number and the SYN packet carrying data length it When with adding 1, confirmation TFO success;
When the serial number that the acknowledged sequence number that the ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
5. a kind of client characterized by comprising
Sending module, suitable for when establishing transmission control protocol TCP with server-side and connecting, sending the synchronization SYN packet of TFO, and It sends after the SYN packet of the TFO and sends standard SYN packet before the SYN packet time-out of the TFO.
6. client according to claim 5, which is characterized in that the sending instant and the standard of the SYN packet of the TFO Interval duration between the sending instant of SYN packet is greater than or equal to 0 and is less than or equal to 20 milliseconds.
7. client according to claim 5, which is characterized in that the client further include:
Receiving module is suitable for receiving confirmation ACK packet;
Processing module is suitable for judging whether TFO fails according to the ACK packet.
8. client according to claim 7, which is characterized in that the processing module is suitable for being judged by the following manner Whether TFO fails:
The ACK packet carry acknowledged sequence number equal to TFO SYN packet serial number and the SYN packet carrying data length it When with adding 1, confirmation TFO success;
When the serial number that the acknowledged sequence number that the ACK packet carries is equal to standard SYN packet adds 1, confirmation TFO failure.
9. a kind of communication system characterized by comprising client, server-side and intermediate equipment;
The client is suitable for sending out when establishing transmission control protocol TCP with the server-side by the intermediate equipment and connecting The synchronization SYN packet of TFO is sent, and sends standard after the SYN packet for sending the TFO and before the SYN packet time-out of the TFO SYN packet;
The intermediate equipment is suitable for the SYN packet of the TFO being sent to the server-side, and abandon institute when itself supports TFO State standard SYN packet;When itself does not support TFO, the standard SYN packet is sent to the server-side, and abandon the TFO's SYN packet.
10. system according to claim 9, which is characterized in that when the intermediate equipment supports TFO, the server-side After the SYN packet for receiving the TFO, the serial number for SYN packet of the acknowledged sequence number equal to the TFO that the confirmation ACK packet of return carries Add 1 with the sum of the data length that the SYN packet carries;When the intermediate equipment does not support TFO, the server-side receives institute After stating standard SYN packet, the serial number that the acknowledged sequence number that the ACK packet of return carries is equal to the standard SYN packet adds 1.
11. a kind of terminal device characterized by comprising memory and processor;Wherein, the memory is for storing Signal procedure when the signal procedure reads execution by the processor, executes following operation: transmitting control establishing with server-side When agreement TCP connection processed, the synchronization SYN packet of TFO is sent, and after the SYN packet for sending the TFO and the SYN packet of the TFO Standard SYN packet is sent before time-out.
12. a kind of computer-readable medium, which is characterized in that be stored with signal procedure, the signal procedure is executed by processor Shi Shixian or less is operated: when establishing transmission control protocol TCP with server-side and connecting, sending the synchronization SYN packet of TFO, and sending out It send after the SYN packet of the TFO and sends standard SYN packet before the SYN packet time-out of the TFO.
CN201711490113.4A 2017-12-29 2017-12-29 Communication method, client and communication system Active CN109995724B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711490113.4A CN109995724B (en) 2017-12-29 2017-12-29 Communication method, client and communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711490113.4A CN109995724B (en) 2017-12-29 2017-12-29 Communication method, client and communication system

Publications (2)

Publication Number Publication Date
CN109995724A true CN109995724A (en) 2019-07-09
CN109995724B CN109995724B (en) 2021-12-17

Family

ID=67111490

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711490113.4A Active CN109995724B (en) 2017-12-29 2017-12-29 Communication method, client and communication system

Country Status (1)

Country Link
CN (1) CN109995724B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219215A (en) * 2013-06-05 2014-12-17 深圳市腾讯计算机系统有限公司 Method, device, terminal, server and system for establishment of TCP (transmission control protocol) connection
US20150215277A1 (en) * 2014-01-28 2015-07-30 Electronics And Telecommunications Research Institute Network address translation apparatus with cookie proxy function and method for nat supporting cookie proxy function
US20170359843A1 (en) * 2016-06-10 2017-12-14 Apple Inc. Zero-Round-Trip-Time Connectivity over the Wider Area Network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104219215A (en) * 2013-06-05 2014-12-17 深圳市腾讯计算机系统有限公司 Method, device, terminal, server and system for establishment of TCP (transmission control protocol) connection
US20150215277A1 (en) * 2014-01-28 2015-07-30 Electronics And Telecommunications Research Institute Network address translation apparatus with cookie proxy function and method for nat supporting cookie proxy function
US20170359843A1 (en) * 2016-06-10 2017-12-14 Apple Inc. Zero-Round-Trip-Time Connectivity over the Wider Area Network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
GOOGLE等: ""TCP fast open"", 《IETF》 *

Also Published As

Publication number Publication date
CN109995724B (en) 2021-12-17

Similar Documents

Publication Publication Date Title
US10027781B2 (en) TCP link configuration method, apparatus, and device
CN109412946B (en) Method, device, server and readable storage medium for determining back source path
JP2018528679A (en) Device and method for establishing a connection in a load balancing system
CN109729104B (en) Client source address acquisition method, device, server and computer readable medium
CN104219215B (en) A kind of method for building up of TCP connection, device, terminal, server and system
CN108234087B (en) Data transmission method and sending end
CN107995233B (en) Method for establishing connection and corresponding equipment
EP2741463A1 (en) Data packet transmission method
GB2519491A (en) Method and system for increasing data flow transmission
US11689564B2 (en) Method and apparatus for processing data in cleaning device
CN108429682A (en) A kind of optimization method and system of network transmission link
CN110830516B (en) Network access method, device, network control equipment and storage medium
CN110557355B (en) Method and equipment for detecting man-in-the-middle attack through user equipment
CN110417632B (en) Network communication method, system and server
EP2692115A1 (en) Sctp endpoint migration
US20210203728A1 (en) Opportunistic Transmission Control Protocol (TCP) Connection Establishment
CN112118594A (en) Data uploading method, data downloading method, electronic equipment and storage medium
EP3059924B1 (en) Devices and methods for performing tcp handshakes
CN109995724A (en) A kind of communication means, client and communication system
US20200153945A1 (en) Technique for Transport Protocol Selection and Setup of a Connection Between a Client and a Server
CN109495330B (en) Method and device for realizing UDP interception test
CN111669364B (en) Data transmission method, device, electronic equipment and medium
US10581979B2 (en) Information transmission method and apparatus
CN114125080A (en) Message link terminal protocol stack construction method and analysis method, device and terminal
CN114157670A (en) Message transmission method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40010731

Country of ref document: HK

GR01 Patent grant
GR01 Patent grant