CN110098981A - TCP connection method, network delay determine method, apparatus and server - Google Patents

TCP connection method, network delay determine method, apparatus and server Download PDF

Info

Publication number
CN110098981A
CN110098981A CN201910352559.3A CN201910352559A CN110098981A CN 110098981 A CN110098981 A CN 110098981A CN 201910352559 A CN201910352559 A CN 201910352559A CN 110098981 A CN110098981 A CN 110098981A
Authority
CN
China
Prior art keywords
syn
request
proxy server
message
ack message
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.)
Pending
Application number
CN201910352559.3A
Other languages
Chinese (zh)
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.)
Xiamen Wangsu Co Ltd
Original Assignee
Xiamen Wangsu 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 Xiamen Wangsu Co Ltd filed Critical Xiamen Wangsu Co Ltd
Priority to CN201910352559.3A priority Critical patent/CN110098981A/en
Publication of CN110098981A publication Critical patent/CN110098981A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0864Round trip delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • 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
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • 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

The invention discloses a kind of TCP connection method, network delays to determine method, apparatus and server, wherein, the TCP connection method includes: that proxy server loads default kernel module, and realize following network connection procedures: the first SYN message that request transmitting terminal is sent is monitored and received to the proxy server;The proxy server and request responder establish connection;The proxy server sends the first SYN-ACK message corresponding with the first SYN message to the request transmitting terminal;The proxy server receives the first ACK message that the request transmitting terminal is sent, so that the request transmitting terminal and the proxy server are completed to be connected to the network.Technical solution provided by the invention can be improved the accuracy for the full link network connection time delay that request transmitting terminal detects.

Description

TCP connection method, network delay determine method, apparatus and server
Technical field
The present invention relates to Internet technical field, in particular to a kind of TCP connection method, network delay determine method, dress It sets and server.
Background technique
As network application and content are more and more abundant, network also increasingly congestion, but user is to network response speed It is required that it is higher and higher, in order to which user's access speed is accelerated or optimized, can will usually be used by modes such as agencies Family flowing of access guides environmentally being handled to acceleration or optimization.
In traditional agent way, agency is usually realized by the way that the request message of user is redirected forwarding Function, specific implementation process may include: client and proxy server establishes connection, proxy server again with response server Establish connection.In above-mentioned agent way, client is actually and proxy server establishes connection, therefore client is seen Network delay is actually the time delay between client and proxy server, rather than network delay is (i.e. end to end for full link Client is between response server).It is most of close to client network when due to proxy server deployment, client and Network delay between proxy server is often below the network delay between proxy server and response server, then client Network delay between proxy server may only have 1/the tens or even 1 percent of full link network time delay.That , for needing the application using full link network delay data, such as need to carry out network test to server-side in client The game application etc. of the real-time time delay of full link is obtained, after having used agency to be accelerated, the network delay actually obtained is Client then can not correctly reflect the network delay of full link, may correspond to the network delay between proxy server Data processing etc. causes misdirecting.
Therefore, a kind of Network Connection that client can be allowed accurately to detect full link network time delay is needed at present.
Summary of the invention
The application be designed to provide a kind of TCP connection method, network delay determines method, apparatus and server, energy Enough improve the accuracy for the full link network connection time delay that client detects.
To achieve the above object, on the one hand the application provides a kind of TCP connection method, comprising: proxy server load is pre- If kernel module, following network connection procedures are realized:
The first SYN message that request transmitting terminal is sent is monitored and received to the proxy server;
The proxy server and request responder establish connection;
The proxy server sends first SYN-ACK corresponding with the first SYN message to the request transmitting terminal Message;
The proxy server receives the first ACK message that the request transmitting terminal is sent, so that the request transmitting terminal It completes to be connected to the network with the proxy server.
To achieve the above object, on the other hand the application provides a kind of network connection time delay and determines method, comprising:
Transmitting terminal is requested to send the first SYN message to proxy server;
The request transmitting terminal receives first SYN- corresponding with the first SYN message of the proxy server feedback ACK message, and the first ACK message is sent to the proxy server;Wherein, the first SYN-ACK message is the agency It is issued when server and request responder completion establishment of connection;
The request transmitting terminal determines network delay according to the first SYN message and the first SYN-ACK message.
To achieve the above object, on the other hand the application also provides a kind of server, and the server is proxy server, It include: request signal receiving unit, response server connection unit, response signal transmission unit and confirmation signal receiving unit; Wherein,
The request signal receiving unit is used for and receives the first SYN message that request transmitting terminal is sent;
The response server connection unit, for establishing connection with request responder;
The response signal transmission unit is used for when the response server connection unit completes establishment of connection, to The request transmitting terminal sends the first SYN-ACK message corresponding with the first SYN message;
The confirmation signal receiving unit, the first ACK message sent for receiving the request transmitting terminal;Described first ACK message is corresponding with the first SYN-ACK message.
To achieve the above object, on the other hand the application also provides a kind of network delay determining device, comprising: request is sent Unit, response confirmation unit and time-delay calculation unit;Wherein,
The request transmitting unit, for sending the first SYN message to proxy server;
The response confirmation unit, for receiving the corresponding with the first SYN message of the proxy server feedback First SYN-ACK message, and the first ACK message is sent to the proxy server;The first SYN-ACK message is the generation It is issued when reason server and the request responder completion establishment of connection;
The time-delay calculation unit, for determining network according to the first SYN message and the first SYN-ACK message Time delay.
To achieve the above object, on the other hand the application also provides a kind of server, including memory and processor, described Memory is for storing computer program, when the computer program is executed by the processor, realizes above method embodiment party The method executed in case.
Therefore technical solution provided by the present application requests transmitting terminal to proxy server during TCP connection SYN message is issued, proxy server immediately will not SYN-ACK message corresponding with the SYN message after receiving the SYN message It is sent to the request transmitting terminal, but establishes connection with request responder, when the proxy server and the request respond It holds after completing establishment of connection, then the SYN-ACK message is sent to the request transmitting terminal.Therefore, when request transmitting terminal When receiving the SYN-ACK message that proxy server is sent, proxy server and request responder have been successfully established network Connection, it is ensured that after requesting transmitting terminal and proxy server to establish connection, the request transmitting terminal with request responder it Between can successfully realize that data are transmitted, improve request transmitting terminal and request the reliability of full link connection between responder.Together When, when calculating network delay based on the connection method, it is ensured that the network delay being calculated is the network delay of full link, The accuracy of network delay value is improved, can prevent the network delay being calculated from causing to the data processing etc. of application Misdirecting improves the user experience of application.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing.
Fig. 1 is a kind of structural schematic diagram of TCP connection system in this specification embodiment;
Fig. 2 is a kind of flow chart of the TCP connection method provided in this specification embodiment;
Fig. 3 is the schematic diagram of data transmission procedure in TCP connection in this specification embodiment;
Fig. 4 is a kind of flow chart that proxy server and request responder establish network connection in this specification embodiment;
Fig. 5 is the flow chart that a kind of network delay determines method in this specification embodiment;
Fig. 6 is a kind of module map of proxy server in this specification embodiment;
Fig. 7 is the module map that responder connection unit is requested in this specification proxy server embodiment;
Fig. 8 is a module map of network delay determining device in this specification embodiment;
Fig. 9 is the structural schematic diagram of server in the embodiment of the present invention;
Figure 10 is the structural schematic diagram of terminal in the embodiment of the present invention.
Specific embodiment
To make the object, technical solutions and advantages of the present invention clearer, below in conjunction with attached drawing to embodiment party of the present invention Formula is described in further detail.
The application provides a kind of TCP connection method, and this method can be applied to request transmitting terminal and be accessed using agent way In the application scenarios at respond request end.Referring to Fig. 1, may include: at least one request using the TCP connection system of this method Transmitting terminal (1 is only shown in figure), at least one proxy server (1 is only shown in figure) and at least one request responder (1 is only shown in figure).
The proxy server can be a server, or can be the server cluster of multiple servers composition.
The request transmitting terminal can be used for sending the request for obtaining data.The request transmitting terminal can for client, Proxy server etc..The request transmitting terminal can be the equipment such as PC machine, mobile phone, intelligent subscriber terminal.
Data needed for the request responder can be used for feeding back the request transmitting terminal.The request responder can be with For response server or other proxy servers.The response server can be server or server cluster etc..
In TCP connection method provided by the embodiments of the present application, the proxy server can provide a default kernel mould Block.The default kernel module can be the kernel module of creation preset kind socket.
The proxy server can load the default kernel module.The proxy server loads the kernel module When, the socket of preset kind can be created.
In one embodiment, the preset kind socket can be created according to preset function library.It is described default Function library can be the function library of application layer.
The preset kind can be set according to actual needs title.For example, in practical applications, the preset kind Title can be defined as " SOCK_PROXY ".
When the proxy server loads the default kernel module, TCP connection method as shown in Figure 2 may be implemented Step S21-S24, and data transmission procedure in TCP connection method as shown in Figure 3 may be implemented.
S21: the first SYN message that request transmitting terminal is sent is monitored and received to the proxy server.
The proxy server can monitor whether the client sends the first SYN message.
In one embodiment, after the proxy server loads the default kernel module, it can use described answer Socket with the function library creation of layer for monitoring realizes the monitor function to the request transmitting terminal connection request.
When the proxy server, which listens to the request transmitting terminal, has issued the first SYN message, the agency service Device can receive the first SYN message (referring to the SYN1 in Fig. 3).
After the proxy server receives the first SYN message, then the proxy server and the request transmitting terminal Between complete for the first time shake hands.
S22: connection is established at the proxy server and respond request end.
After the proxy server receives the first SYN message that the request transmitting terminal is sent, it can be asked with the response End is asked to establish connection.
The proxy server and the respond request end can establish connection by completing three-way handshake.
Fig. 4 is a kind of flow chart that proxy server and request responder establish network connection in this specification embodiment. In one embodiment, referring to figure 4., the method that the proxy server and the request responder establish TCP connection can To include step S41-S43.
S41: the proxy server sends the 2nd SYN message to the request responder.
The proxy server can send the 2nd SYN message to the request responder (referring to the SYN2 in Fig. 3).
S42: the proxy server receive it is described request responder feedback and the 2nd SYN message corresponding second SYN-ACK message.
The request responder can receive the 2nd SYN message, completes the proxy server and the request is rung First time between should holding shakes hands.
The 2nd SYN-ACK message can be generated in the request responder, and sends the 2nd SYN-ACK message (reference SYN-ACK2 in Fig. 3) to the proxy server.The 2nd SYN-ACK message can be opposite with the 2nd SYN message It answers.
The proxy server can receive the 2nd SYN-ACK message of the request responder feedback.Agency's clothes It is engaged in after device reception the 2nd SYN-ACK message, completes second between the proxy server and the request responder It shakes hands.
S43: the proxy server sends the 2nd ACK message to the request responder, is rung with realizing with the request It should hold and establish connection.
The proxy server can send the 2nd ACK message to the request responder (referring to the ACK2 in Fig. 3).Institute It is corresponding with the 2nd SYN-ACK message to state the 2nd ACK message.
After the request responder receives the 2nd ACK message, the proxy server and the request can be completed Third time between responder is shaken hands.Then, the proxy server and the request responder complete establishment of connection.
S23: the proxy server sends first SYN- corresponding with the first SYN message to the request transmitting terminal ACK message.
After the proxy server and the request responder establish connection, the proxy server can be to the request Transmitting terminal sends the first SYN-ACK message corresponding with the first SYN message (referring to the SYN-ACK1 in Fig. 3).
The first SYN-ACK message can be after the proxy server establishes connection with the request responder and generate 's.The first SYN-ACK message is also possible to the proxy server and receives be immediately generated after the first SYN message.
S24: the proxy server receives the first ACK message that the request transmitting terminal issues, so that the request is sent out Sending end and the proxy server are completed to be connected to the network.
It is after the request transmitting terminal receives the first SYN-ACK message that the proxy server issues, then described to ask It asks and completes second handshake between transmitting terminal and the proxy server.
The request transmitting terminal can issue the first ACK message referring to the ACK1 in Fig. 3 to the proxy server).Institute Stating the first ACK message can be corresponding with the first SYN-ACK message.
The proxy server can receive the first ACK message that the request transmitting terminal issues, at this point, the request is sent out Third time is completed between sending end and the proxy server to shake hands.So, complete between the request transmitting terminal and the server At establishment of connection.The network connection of full link is completed between the request transmitting terminal and the request responder as a result,.
In the above-described embodiment, after proxy server receives the SYN message that the request transmitting terminal issues, not immediately SYN-ACK message corresponding with the SYN message is sent to the request transmitting terminal, but to the proxy server and institute After stating request responder completion establishment of connection, the SYN-ACK message is sent to the request transmitting terminal.It can guarantee to ask When transmitting terminal being asked to receive confirmation signal packet, proxy server and request responder have been set up network connection, improve and ask It seeks transmitting terminal and requests the reliability of full link connection between responder.
The embodiment of the present application also provides a kind of network delay and determines method.Referring to Fig. 5, the network delay determines method It may comprise steps of.
S51: request transmitting terminal sends the first SYN message to proxy server.
S52: the request transmitting terminal is receiving proxy server feedback with the first SYN message corresponding first SYN-ACK message, and the first ACK message is sent to the proxy server.
In one embodiment, the first SYN-ACK message corresponding with the first SYN message can be in institute It is issued when stating proxy server and the request responder completion establishment of connection.Specifically, the first SYN-ACK message It can be and issued after the proxy server and the request responder complete three-way handshake.
S53: when the request transmitting terminal determines network according to the first SYN message and the first SYN-ACK message Prolong.
In one embodiment, the request transmitting terminal is reported according to the first SYN message and the first SYN-ACK Text determines network delay, can specifically include: the request transmitting terminal is by the sending time of the first SYN message and described the The time difference of the receiving time of one SYN-ACK message is as network delay.
In above embodiment, network delay is calculated based on the TCP connection method in this specification embodiment, it is ensured that The network delay being calculated is the network delay of full link, improves the accuracy of network delay value.
The embodiment of the present application also provides a kind of system of TCP connection.Referring to Fig. 1, the TCP connection system can wrap It includes: request transmitting terminal, proxy server and request responder.
The request transmitting terminal can be used for sending the first SYN message to the proxy server, receive agency's clothes Device feedback of being engaged in the corresponding first SYN-ACK message of the first SYN message of institute, and sent and described the to the proxy server The corresponding first ACK message of one SYN-ACK message.
The proxy server can be used for monitoring and receiving the first SYN message that the request transmitting terminal is sent, Connection is established with the response server, and is sent and the first SYN message corresponding first to the request transmitting terminal The first ACK message that SYN-ACK message and the reception request transmitting terminal are sent.
The request responder can be used for establishing connection with the proxy server.The request responder with it is described Proxy server can establish connection by the way of three-way handshake.
The embodiment of the present application also provides a kind of server, and the server is proxy server.Referring to Fig. 6, the generation Reason server may include: request signal receiving unit, request responder connection unit, response signal transmission unit and confirmation letter Number receiving unit.Wherein,
The request signal receiving unit can be used for and receive the first SYN message that request transmitting terminal is sent.
The request responder connection unit can be used for establishing connection with request responder.
The response signal transmission unit can be used for completing establishment of connection when the request responder connection unit When, the first SYN-ACK message corresponding with the first SYN message is sent to the request transmitting terminal.
The confirmation signal receiving unit can be used for receiving the first ACK message that the request transmitting terminal is sent.It is described First ACK message can be corresponding with the first SYN-ACK message.
In one embodiment, establishing connection between the request responder connection unit and the request responder can It is realized in a manner of using three-way handshake.
Referring to Fig. 7, in one embodiment, the request responder connection unit may include: the second request letter Number transmission sub-unit, the second response signal receiving subelement and the second confirmation signal transmission sub-unit.Wherein,
The second request signal transmission sub-unit can be used for sending the 2nd SYN message to the request responder.
The second response signal receiving subelement, can be used for receiving the request responder feedback with described second The corresponding 2nd SYN-ACK message of SYN message.
The second confirmation signal transmission sub-unit can be used for sending the 2nd ACK message to the request responder, with It realizes and establishes connection with the request responder.The 2nd SYN-ACK message can be corresponding with the 2nd ACK message.
The embodiment of the present application also provides a kind of network delay determining device.Referring to Fig. 8, the network delay determining device It may include: request transmitting unit, response confirmation unit and time-delay calculation unit.Wherein,
The request transmitting unit can be used for sending the first SYN message to proxy server.
The response confirmation unit, can be used for receiving the first SYN-ACK message of proxy server feedback, and to The proxy server sends the first ACK message.
The first ACK message is corresponding with the first SYN-ACK message.The first SYN-ACK message can be with The first SYN message is corresponding.
The first SYN-ACK message is that the proxy server and the request responder complete hair when establishment of connection Out.Establishing connection between the request responder and the proxy server can be realized by the way of three-way handshake.
The time-delay calculation unit can be used for being determined according to the first SYN message and the first SYN-ACK message Network delay.Specifically, the time-delay calculation unit can be used for the sending time and described first of the first SYN message The time difference of the receiving time of SYN-ACK message is as network delay.
Refering to Fig. 9, the application also provides a kind of server, and the server includes memory and processor, the storage Above method embodiment may be implemented when the computer program is executed by the processor for storing computer program in device The method of execution.
Referring to Fig. 10, in this application, the technical solution in above-described embodiment can be applied to meter as shown in Figure 10 In calculation machine terminal 10.Terminal 10 may include 102 (processor of one or more (one is only shown in figure) processors 102 can include but is not limited to the processing unit of Micro-processor MCV or programmable logic device FPGA etc.), for storing data Memory 104 and transmission module 106 for communication function.It will appreciated by the skilled person that shown in Figure 10 Structure be only illustrate, the structure of above-mentioned electronic device is not caused to limit.For example, terminal 10 may also include ratio More perhaps less component shown in Figure 10 or with the configuration different from shown in Figure 10.
Memory 104 can be used for storing the software program and module of application software, and processor 102 is stored in by operation Software program and module in memory 104, thereby executing various function application and data processing.Memory 104 can wrap Include high speed random access memory, may also include nonvolatile memory, as one or more magnetic storage device, flash memory or Other non-volatile solid state memories.In some instances, memory 104 can further comprise long-range relative to processor 102 The memory of setting, these remote memories can pass through network connection to terminal 10.The example of above-mentioned network includes But be not limited to internet, intranet, local area network, mobile radio communication and combinations thereof.
Specifically, in this application, the dispositions method of above-mentioned server can be used as computer program be stored in it is above-mentioned Memory 104 in, the memory 104 can be coupled with processor 102, then when processor 102 executes the memory When computer program in 104, each step in the dispositions method of above-mentioned server can be realized.
Transmitting device 106 is used to that data to be received or sent via a network.Above-mentioned network specific example may include The wireless network that the communication providers of terminal 10 provide.In an example, transmitting device 106 includes that a network is suitable Orchestration (Network Interface Controller, NIC), can be connected by base station with other network equipments so as to Internet is communicated.In an example, transmitting device 106 can be radio frequency (Radio Frequency, RF) module, For wirelessly being communicated with internet.
Therefore in technical solution provided by the present application, during TCP connection, request transmitting terminal to agency service Device issues SYN message, and proxy server immediately will not SYN-ACK report corresponding with the SYN message after receiving the SYN message Text is sent to the request transmitting terminal, but establishes connection with request responder, when the proxy server and the request are rung It should hold after completing establishment of connection, then the confirmation signal is sent to the request transmitting terminal.Therefore, when request sends termination When receiving the SYN-ACK message that proxy server is sent, proxy server and request responder have been successfully established network company It connects, it is ensured that after requesting transmitting terminal and proxy server to establish connection, between the request transmitting terminal and request responder It can successfully realize that data are transmitted, improve request transmitting terminal and request the reliability of full link connection between responder.Meanwhile When calculating network delay based on the connection method, it is ensured that the network delay being calculated is the network delay of full link, is mentioned The high accuracy of network delay value, can prevent the network delay being calculated from causing to miss to the data processing etc. of application Guidance, improves the user experience of application.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can It realizes by means of software and necessary general hardware platform, naturally it is also possible to be realized by hardware.Based on such Understand, substantially the part that contributes to existing technology can embody above-mentioned technical proposal in the form of software products in other words Out, which may be stored in a computer readable storage medium, such as ROM/RAM, magnetic disk, CD, packet Some instructions are included to use so that a computer equipment (can be personal computer, server or the network equipment etc.) executes Method described in certain parts of each embodiment or embodiment.
The foregoing is merely presently preferred embodiments of the present invention, is not intended to limit the invention, it is all in spirit of the invention and Within principle, any modification, equivalent replacement, improvement and so on be should all be included in the protection scope of the present invention.

Claims (11)

1. a kind of TCP connection method characterized by comprising proxy server loads default kernel module, realizes following networks Connection Step:
The first SYN message that request transmitting terminal is sent is monitored and received to the proxy server;
The proxy server and request responder establish connection;
The proxy server sends the first SYN-ACK message corresponding with the first SYN message to the request transmitting terminal;
The proxy server receives the first ACK message that the request transmitting terminal is sent, so that the request transmitting terminal and institute It states proxy server and completes network connection.
2. the method according to claim 1, wherein the proxy server and request responder establish connection packet It includes:
The proxy server sends the 2nd SYN message to the request responder;
Receive the 2nd SYN-ACK message corresponding with the 2nd SYN message of the request responder feedback;
The proxy server sends the 2nd ACK message to the request responder, is established with realizing with the request responder Connection.
3. the method according to claim 1, wherein the proxy server loads default kernel module, comprising: The kernel module of the proxy server load creation preset kind socket.
4. according to the method described in claim 3, it is characterized in that, the preset kind socket is created according to preset function library It builds.
5. a kind of network delay determines method characterized by comprising
Transmitting terminal is requested to send the first SYN message to proxy server;
The request transmitting terminal receives first SYN-ACK corresponding with the first SYN message of the proxy server feedback Message, and the first ACK message is sent to the proxy server;Wherein, the first SYN-ACK message is the agency service It is issued when device and request responder completion establishment of connection;
The request transmitting terminal determines network delay according to the first SYN message and the first SYN-ACK message.
6. according to the method described in claim 5, it is characterized in that, the first SYN-ACK message is the proxy server Issued when completing establishment of connection with request responder, comprising: the first SYN-ACK message be the proxy server with It is issued when the request responder completion three-way handshake.
7. according to the method described in claim 5, it is characterized in that, the request transmitting terminal according to the first SYN message and The first SYN-ACK message determines network delay, comprising: when the sending for requesting transmitting terminal for the first SYN message Between and the first SYN-ACK message receiving time time difference as network delay.
8. a kind of server, which is characterized in that the server is proxy server, comprising: request signal receiving unit, request Responder connection unit, response signal transmission unit and confirmation signal receiving unit;Wherein,
The request signal receiving unit is used for and receives the first SYN message that request transmitting terminal is sent;
The request responder connection unit, for establishing connection with request responder;
The response signal transmission unit is used for when the request responder connection unit completes establishment of connection, Xiang Suoshu Transmitting terminal is requested to send the first SYN-ACK message corresponding with the first SYN message;
The confirmation signal receiving unit, the first ACK message sent for receiving the request transmitting terminal;First ACK Message is corresponding with the first SYN-ACK message.
9. server according to claim 8, which is characterized in that the request responder connection unit includes: second to ask Ask signal transmission sub-unit, the second response signal receiving subelement and the second confirmation signal transmission sub-unit;Wherein,
The second request signal transmission sub-unit, for sending the 2nd SYN message to the request responder;
The second response signal receiving subelement, for receive it is described request responder feedback and the 2nd SYN message Corresponding 2nd SYN-ACK message;
The second confirmation signal transmission sub-unit, for sending the 2nd ACK message to the request responder, with realization and institute It states request responder and establishes connection.
10. a kind of network delay determining device characterized by comprising request transmitting unit, response confirmation unit and time delay meter Calculate unit;Wherein,
The request transmitting unit, for sending the first SYN message to proxy server;
The response confirmation unit, for receiving proxy server feedback with the first SYN message corresponding first SYN-ACK message, and the first ACK message is sent to the proxy server;The first SYN-ACK message is agency's clothes It is issued when business device and the request responder completion establishment of connection;
The time-delay calculation unit, when for determining network according to the first SYN message and the first SYN-ACK message Prolong.
11. a kind of server, which is characterized in that the server includes memory and processor, and the memory is for storing Computer program when the computer program is executed by the processor, is realized such as any claim in claim 1 to 7 The method.
CN201910352559.3A 2019-04-29 2019-04-29 TCP connection method, network delay determine method, apparatus and server Pending CN110098981A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910352559.3A CN110098981A (en) 2019-04-29 2019-04-29 TCP connection method, network delay determine method, apparatus and server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910352559.3A CN110098981A (en) 2019-04-29 2019-04-29 TCP connection method, network delay determine method, apparatus and server

Publications (1)

Publication Number Publication Date
CN110098981A true CN110098981A (en) 2019-08-06

Family

ID=67446320

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910352559.3A Pending CN110098981A (en) 2019-04-29 2019-04-29 TCP connection method, network delay determine method, apparatus and server

Country Status (1)

Country Link
CN (1) CN110098981A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165447A (en) * 2020-08-21 2021-01-01 杭州安恒信息技术股份有限公司 WAF equipment-based network security monitoring method, system and electronic device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986648A (en) * 2010-11-24 2011-03-16 北京星网锐捷网络技术有限公司 Negotiation method, device and network device of TCP option
CN102118278A (en) * 2010-12-31 2011-07-06 网宿科技股份有限公司 Method and system for measuring network conditions as well as method for monitoring network coverage
CN104219215A (en) * 2013-06-05 2014-12-17 深圳市腾讯计算机系统有限公司 Method, device, terminal, server and system for establishment of TCP (transmission control protocol) connection
CN108833487A (en) * 2018-05-23 2018-11-16 南京大学 A kind of TCP transmission protocol agent method
US20190037025A1 (en) * 2017-07-26 2019-01-31 Verizon Patent And Licensing Inc. Transmission control protocol (tcp) synchronize (syn) signaling passthrough for tcp proxy servers

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101986648A (en) * 2010-11-24 2011-03-16 北京星网锐捷网络技术有限公司 Negotiation method, device and network device of TCP option
CN102118278A (en) * 2010-12-31 2011-07-06 网宿科技股份有限公司 Method and system for measuring network conditions as well as method for monitoring network coverage
CN104219215A (en) * 2013-06-05 2014-12-17 深圳市腾讯计算机系统有限公司 Method, device, terminal, server and system for establishment of TCP (transmission control protocol) connection
US20190037025A1 (en) * 2017-07-26 2019-01-31 Verizon Patent And Licensing Inc. Transmission control protocol (tcp) synchronize (syn) signaling passthrough for tcp proxy servers
CN108833487A (en) * 2018-05-23 2018-11-16 南京大学 A kind of TCP transmission protocol agent method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112165447A (en) * 2020-08-21 2021-01-01 杭州安恒信息技术股份有限公司 WAF equipment-based network security monitoring method, system and electronic device
CN112165447B (en) * 2020-08-21 2023-12-19 杭州安恒信息技术股份有限公司 WAF equipment-based network security monitoring method, system and electronic device

Similar Documents

Publication Publication Date Title
CN108712485B (en) Resource subscription method and device for Internet of things equipment
US20040186918A1 (en) Method and apparatus for dispatching incoming data in a multi-application terminal
CN108933727A (en) The treating method and apparatus of message receipt
CN109922053A (en) Data transmission method, device, electronic equipment and readable storage medium storing program for executing
CN102595472B (en) Method and device for monitoring quality of service
US20130198266A1 (en) Facilitating communication between web-enabled devices
CN110999257B (en) Delivery method selection for delivery of server notifications
CN111224999A (en) Transmission protocol switching method, device, equipment and storage medium
US11233694B2 (en) Method and device for processing communication path
WO2012062108A1 (en) Test system and test method
CN104639555B (en) request processing method, system and device
CN106713454A (en) Network connection method and device
CN112350850A (en) Log file reporting method and device, storage medium and electronic equipment
CN110300026A (en) A kind of network connectivity fai_lure processing method and processing device
CN111865828A (en) Data transmission method, system, electronic device and storage medium
Sinky et al. Seamless handoffs in wireless HetNets: Transport-layer challenges and multi-path TCP solutions with cross-layer awareness
CN108809766A (en) A kind of method, apparatus and system obtaining RTT
CN106101468B (en) Method and device for determining transmission link
CN110098981A (en) TCP connection method, network delay determine method, apparatus and server
CN111555965B (en) Message pushing method and system suitable for iOS client
CN114071544A (en) Network testing method and device and electronic equipment
EP1499086A2 (en) Internet service synchronization method for mobile communication terminal
JP2013535736A (en) Apparatus for providing terminal management package and method for receiving terminal management package
CN112351070A (en) File transmission method and device, storage medium and electronic equipment
CN108540333A (en) The method of measurement network side handling capacity, home gateway, apparatus and system

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190806