CN104954320A - Method, device and system for establishing connection - Google Patents

Method, device and system for establishing connection Download PDF

Info

Publication number
CN104954320A
CN104954320A CN201410114689.0A CN201410114689A CN104954320A CN 104954320 A CN104954320 A CN 104954320A CN 201410114689 A CN201410114689 A CN 201410114689A CN 104954320 A CN104954320 A CN 104954320A
Authority
CN
China
Prior art keywords
measured
time
server
delay
acceleration server
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
CN201410114689.0A
Other languages
Chinese (zh)
Other versions
CN104954320B (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 Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201410114689.0A priority Critical patent/CN104954320B/en
Publication of CN104954320A publication Critical patent/CN104954320A/en
Application granted granted Critical
Publication of CN104954320B publication Critical patent/CN104954320B/en
Expired - Fee Related 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
    • H04L67/141Setup of application sessions
    • 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

Abstract

The invention discloses a method, device and system for establishing connection. According to the invention, a service serve can determine first delay time from the service server to each to-be-tested acceleration server and returns the determined first delay time to a client. After the client determines second delay time from the client to each to-be-tested acceleration server, a to-be-tested server can be selected and prepared for connection establishment according to the first delay time from the to-be-tested acceleration servers to the service server and the second delay time from the client to the to-be-tested acceleration servers. Therefore, the connection speed of that the client connects to the service server through the acceleration server can be improved effectively.

Description

A kind of method, Apparatus and system connected
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of method, the Apparatus and system that connect.
Background technology
Along with the fast development of computer technology and network technology, user can carry out miscellaneous service by network.General, user when carrying out business, by client's side link to service server, to obtain the business service that this service server provides.
But, in actual applications, client needs just can be connected to service server by several network nodes (as switch etc.), if and the load of certain network node is wherein higher, the connection speed of client and service server will be caused lower, therefore, in order to improve the connection speed of client and service server, in prior art, client is when setting up the connection with service server, usually first set up and the connection accelerating server, service server is connected to, to get around the higher network node of load again by accelerating server.
Such as, user, when being played games by network, first can be passed through its client's side link to acceleration server, then be connected to game server (that is, service server) by accelerating server.
Further, between client and service server, there is multiple acceleration server usually, client is when setting up the connection with acceleration server, first to test the speed to each acceleration server, to measure the time of delay that self arrives each acceleration server, again according to testing the speed result, selecting to postpone a minimum acceleration server and connecting with it.
In the prior art, client to the method that acceleration server tests the speed is: client sends a test packet to this acceleration server, and record delivery time, when receiving the response data packet that acceleration server returns for this test packet, record the time of reception, according to the time span of delivery time to the time of reception, determine that client arrives the time of delay of this acceleration server.
But, can be found out the speed-measuring method accelerating server by above-mentioned client, the result that tests the speed of the prior art only reflects client to the time of delay of accelerating server, for the acceleration server that delay is minimum, if this acceleration server is very long to the time of delay of service server, after then client is connected to service server by this acceleration server, connection speed may be still slower.
Summary of the invention
In view of the above problems, proposing the present invention to provide a kind of method connected, the Apparatus and system that overcome the problems referred to above or solve the problem at least in part, effectively can improving client is connected to service server connection speed by accelerating server.
According to a first aspect of the invention, propose a kind of method connected, comprising:
Client sends the request message connected to service server;
Receive the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
According to each identification information received, determine that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
According to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by select acceleration server to be measured and described service server connect.
Alternatively, determine that described client self comprised further to the second time of delay of acceleration server to be measured corresponding to each identification information:
Described client sends test packet to the acceleration server to be measured that the identification information received is corresponding, and to record delivery time be the first moment;
When receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment;
According to the time span in the first moment to second moment of record, determine that described client self arrives the second time of delay of acceleration server to be measured.
Alternatively, according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, also to comprise:
Described client, for acceleration server to be measured corresponding to each identification information received, sends test packet by this acceleration server to be measured to described service server, and to record delivery time be the 3rd moment;
When the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment;
To arrive the second time of delay of this acceleration server to be measured according to described 3rd moment of record to the time span in the 4th moment, described service server to the first time of delay of this acceleration server to be measured and described client self, determine the processing delay time of this acceleration server to be measured;
According to each first time of delay and the second time of delay, select acceleration server to be measured to connect and comprise further:
For the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value;
The to be measured acceleration server minimum with value determined is selected to connect.
According to a second aspect of the invention, propose a kind of method connected, comprising:
Service server receives the request message connected that client sends;
According to described request message, determine each acceleration server to be measured;
Determine that described service server self arrives the first time of delay of each acceleration server to be measured;
The identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect.
Alternatively, according to described request message, determine that each acceleration server to be measured comprises further:
Described service server, according to the identification information of the described client of carrying in described request message, determines the geographical position at described client place, and wherein, the identification information of described client comprises the internet protocol address of described client;
According to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client;
According to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured.
Alternatively, determine that described service server self comprised further to the first time of delay of each acceleration server to be measured:
Described service server sends test packet to acceleration server to be measured, and records delivery time;
When receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception;
According to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.
Alternatively, described client is selected acceleration server to be measured to connect to comprise further:
Described client is according to the identification information of each acceleration server to be measured, determine second time of delay of described client to each acceleration server to be measured, and according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by select acceleration server to be measured and described service server connect.
According to a third aspect of the present invention, propose a kind of device connected, comprising:
Sending module, for sending the request message connected to service server;
Receiver module, for receiving the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
First determination module, for according to each identification information received, determines that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
Select link block, for according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by selection acceleration server to be measured and described service server connect;
Further, described first determination module specifically for, the to be measured acceleration server corresponding to the identification information received sends test packet, and to record delivery time be the first moment, when receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment, according to the time span in the first moment to second moment of record, determined that described client self arrives the second time of delay of acceleration server to be measured;
Further, described device also comprises:
Second determination module, for in described selection link block according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, for the acceleration server to be measured that each identification information received is corresponding, test packet is sent to described service server by this acceleration server to be measured, and to record delivery time be the 3rd moment, when the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment, according to the time span in described 3rd moment to the 4th moment of record, described service server is to the first time of delay of this acceleration server to be measured and described device self to the second time of delay of this acceleration server to be measured, determine the processing delay time of this acceleration server to be measured,
Described selection link block specifically for, for the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value; The to be measured acceleration server minimum with value determined is selected to connect.
According to a fourth aspect of the present invention, propose a kind of device connected, comprising:
Receiver module, for receiving the request message connected that client sends;
Server determination module, for according to described request message, determines each acceleration server to be measured;
Postpone determination module, for determining that described device self arrives the first time of delay of each acceleration server to be measured;
Sending module, for the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect;
Further, described server determination module specifically for, according to the identification information of the described client of carrying in described request message, determine the geographical position at described client place, according to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client, according to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured, wherein, the identification information of described client comprises the internet protocol address of described client,
Further, described delay determination module specifically for, test packet is sent to acceleration server to be measured, and record delivery time, when receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception, according to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.
According to a fifth aspect of the present invention, propose a kind of system connected, comprising:
Client, for sending the request message connected to service server, receive the identification information of the acceleration server each to be measured that described service server returns and described service server the first time of delay to described each acceleration server to be measured, according to each identification information received, determine that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information, according to each first time of delay and the second time of delay, acceleration server to be measured is selected to connect, and by select acceleration server to be measured and described service server connect,
Service server, for receiving the request message connected that client sends, according to described request message, determine each acceleration server to be measured, determine that described service server self is to the first time of delay of each acceleration server to be measured, the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client;
Acceleration server to be measured, for being service server and client forwarding data bag.
According to the method connected provided by the invention, service server can determine the first time of delay self arriving each acceleration server to be measured, and the first time of delay determined is returned to client, after client determines the second time of delay self arriving each acceleration server to be measured, acceleration server to be measured can be selected to the first time of delay of service server and client to the second time of delay of acceleration server to be measured and connect according to acceleration server to be measured, therefore client is connected to service server connection speed by accelerating server can effectively be improved.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 is the method that connects according to one embodiment of the invention;
Fig. 2 is the method for the processing delay time of the determination acceleration server to be measured of foundation one embodiment of the invention;
Fig. 3 is the apparatus structure schematic diagram connected according to one embodiment of the invention;
Fig. 4 is another the apparatus structure schematic diagram connected according to one embodiment of the invention;
Fig. 5 is the system configuration schematic diagram connected according to one embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
Below in conjunction with Figure of description, the embodiment of the present invention is described in detail.
Fig. 1 is the method that connects according to one embodiment of the invention, can comprise step:
S101: client sends the request message connected to service server.
S102: receive the identification information of acceleration server each to be measured that service server returns according to this request message and this service server the first time of delay to each acceleration server to be measured.
S103: according to each identification information received, determines the second time of delay self arriving acceleration server to be measured corresponding to each identification information.
S104: according to each first time of delay and the second time of delay, selects acceleration server to be measured to connect, and by select acceleration server to be measured and service server connect.
Wherein, after service server receives the request message connected of client transmission, each acceleration server to be measured can be determined according to this request message, and determine the first time of delay self arriving each acceleration server to be measured, then the identification information of each acceleration server to be measured and each first time of delay of determining are sent to client.
From the foregoing, according to this embodiment, service server can determine the first time of delay self arriving each acceleration server to be measured, and the first time of delay determined is returned to client, after client determines the second time of delay self arriving each acceleration server to be measured, acceleration server to be measured can be selected to the first time of delay of service server and client to the second time of delay of acceleration server to be measured and connect according to acceleration server to be measured, therefore client is connected to service server connection speed by accelerating server can effectively be improved.
According to one embodiment of the present of invention, client is when being connected to service server by acceleration server, first can send directly to service server the request message connected, the identification information of client can be carried in this request message, service server is again according to the identification information of the client of carrying in this request message, determine the geographical position at this client place, and in each acceleration server, determine the acceleration server to be measured that the geographical position at several and this client place is nearer.Wherein, the identification information of client can be Internet protocol (Internet Protocol, the IP) address of client.When then service server determines acceleration server to be measured according to the identification information of client, specifically can according to the IP address of this client, determine the geographical position at this client place, again according to the geographical position at the geographical position of each acceleration server of preserving in advance and this client place determined, determine the distance of each acceleration server to this client, last according to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured.
Wherein, service server can preserve the network segment of IP address and the corresponding relation in geographical position in advance, when determining the geographical position at this client place according to the IP address of client, then can determine to be the geographical position at this client place in the geographical position that the network segment at the place, IP address of this client is corresponding.
Such as, when user is played games by network, client can first directly to game server (namely, service server) send the request message connected, the IP address of client is carried in this request message, after game server receives this request message, the geographical position at this client place can be determined according to the IP address of this client of carrying in this request message.Suppose that game server saves altogether and accelerate the geographical position that server 1 ~ 10 these 10 accelerates server, specified quantity is 5, then game server determines that nearest with the geographical position at this client place 5 are accelerated server for accelerate server 1 ~ 5, will speed up server 1 ~ 5 as acceleration server to be measured.
According to one embodiment of the present of invention, service server determines that self to the method for the first time of delay of each acceleration server to be measured can be: service server sends test data report to acceleration server to be measured, and record delivery time, when receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception, finally according to the time span of the delivery time recorded to the time of reception, determine that service server self arrives the first time of delay of acceleration server to be measured.Concrete, service server can using the delivery time of record to the time of reception time span 1/2 as self to the first time of delay of this acceleration server to be measured.
Such as, for an acceleration server to be measured, suppose that service server sends delivery time from test packet to this acceleration server to be measured is 104ms to the time span of the time of reception receiving the response data packet that this acceleration server to be measured returns, then service server can by 1/2 of this 104ms, and namely 52ms is defined as the first time of delay that self arrives this acceleration server to be measured.
Service server determines self after the first time of delay of each acceleration server to be measured, then can by each acceleration server to be measured and determine self send to client to the first time of delay of each acceleration server to be measured.Client then according to the identification information of each acceleration server to be measured, can determine that this client self arrives the second time of delay of each acceleration server to be measured.
Similar, in step s 103, client determines that self to the method for the second time of delay of each acceleration server to be measured can be: client sends test packet to the acceleration server to be measured that the identification information received is corresponding, and to record delivery time be the first moment, when receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment, according to the time span in the first moment to second moment of record, determine that this client self arrives the second time of delay of acceleration server to be measured.Concrete, client can using 1/2 of the time span in the first moment to the second moment as self to the second time of delay of this acceleration server to be measured.
According to one embodiment of the present of invention, client determines self after the second time of delay of each acceleration server to be measured, according to each first time of delay and the second time of delay, the method selecting acceleration server to be measured to connect can be: client is for each acceleration server to be measured, determine service server arrive the first time of delay of this acceleration server to be measured and client to this acceleration server to be measured the second time of delay and value, and according to determine for each acceleration server to be measured and value, the to be measured acceleration server minimum with value determined is selected to connect, the fastest of service server is connected to make this acceleration server to be measured by selecting.
Such as, suppose acceleration server to be measured 1 ~ 5 to the first time of delay of service server and client and the second time of delay as shown in table 1.
Table 1
As can be seen from Table 1, service server is 47 to the first time of delay of acceleration server 4 to be measured and client to the second time of delay of acceleration server 4 to be measured with value, it is minimum and value, therefore, client can select acceleration server 4 to be measured to connect, and is connected with service server by acceleration server 4 to be measured.
Consider in practical application scene, for both client and service server, accelerate server after receiving the packet that wherein one sends, may not merely want directly this packet to be transmitted to another one, but certain process to be carried out to this packet, again by process after Packet Generation to another one, therefore, even if it is all less to the second time of delay of the first time of delay of service server and acceleration server to client end to accelerate server, if but the processing delay time accelerating server self handle packet is very large, so client be connected to the connection speed of service server by this acceleration server still can be very low.
Therefore, according to one embodiment of the present of invention, client is according to each first time of delay and the second time of delay, select acceleration server to be measured connect before (namely, before step S104), the processing delay time of each acceleration server to be measured can also be determined, determine the method for the processing delay time of acceleration server to be measured as shown in Figure 2, comprise: client is for acceleration server to be measured corresponding to each identification information received, test packet is sent to service server by this acceleration server to be measured, and to record delivery time be the 3rd moment, when the response data packet that the service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment, according to the time span in the 3rd moment to the 4th moment of record, service server is to the first time of delay of this acceleration server to be measured and client self to the second time of delay of this acceleration server to be measured, determine the processing delay time of this acceleration server to be measured.
Concrete, when the first time of delay delivery time that to be service server send from packet to acceleration server to be measured to receive response data packet the time of reception time span 1/2, and, second time of delay be client to the first moment that acceleration server to be measured sends packet to receive response data packet the second moment time span 1/2 time, client is by formula T-2 (t 1+ t 2) determine the processing delay time of acceleration server to be measured, wherein, T to be client to send test packet by the 3rd moment from acceleration server to be measured to service server to the time span in the 4th moment receiving the response data packet that service server that acceleration server to be measured sends returns, t 1be the first time of delay, t 2it was the second time of delay.
After client determines the processing delay time of each acceleration server to be measured, when selecting acceleration server to be measured to connect, acceleration server to be measured that then can be corresponding for each identification information received, determine the first product taking advantage of the first weights the first time of delay, take advantage of the second product of the second weights the second time of delay, processing delay time takes advantage of the 3rd product of the 3rd weights, determine the first product, second product, 3rd product and value, the to be measured acceleration server minimum with value determined is selected to connect, and be connected to service server by the acceleration server to be measured selected, this acceleration server to be measured selected is the fastest acceleration server to be measured being connected to service server.Wherein, the first weights, the second weights and the 3rd weights can set as required.
Such as, for acceleration server 1 ~ 5 to be measured as shown in table 1, client receives this service server that service server determines and divides the first time of delay being clipped to these five acceleration servers to be measured, and determining after this client self point is clipped to the second time of delay of these five acceleration servers to be measured, then the 3rd moment can determining to send packet to service server respectively by these five acceleration servers to be measured is to the time span in the 4th moment receiving response data packet.The 3rd moment determined respectively for these five acceleration servers to be measured is as shown in table 2 to the time span in the 4th moment.
Table 2
After determining the 3rd moment as shown in table 2 to the time span in the 4th moment respectively for acceleration server 1 ~ 5 to be measured, then can for each acceleration server to be measured, determine processing delay time, according to each first time of delay shown in table 2, the time span in the second time of delay and the 3rd moment to the 4th moment, can determine that the processing delay time of acceleration server 1 to be measured is 130-2 (52+10)=6, the processing delay time of acceleration server 2 to be measured is 270-2 (108+21)=12, the processing delay time of acceleration server 3 to be measured is 200-2 (21+51)=56, the processing delay time of acceleration server 4 to be measured is 110-2 (15+32)=16, the processing delay time of acceleration server 5 to be measured is 189-2 (72+15)=15.
Suppose that the first default weights and the second weights are 1, the 3rd weight setting is 3, then:
For acceleration server 1 to be measured, can determine to take advantage of for the first time of delay the first weights to add and take advantage of for the second time of delay that the second weights add that processing delay time takes advantage of the 3rd weights is 80 with value;
For acceleration server 2 to be measured, can determine to take advantage of for the first time of delay the first weights to add and take advantage of for the second time of delay that the second weights add that processing delay time takes advantage of the 3rd weights is 165 with value;
For acceleration server 3 to be measured, can determine to take advantage of for the first time of delay the first weights to add and take advantage of for the second time of delay that the second weights add that processing delay time takes advantage of the 3rd weights is 240 with value;
For acceleration server 4 to be measured, can determine to take advantage of for the first time of delay the first weights to add and take advantage of for the second time of delay that the second weights add that processing delay time takes advantage of the 3rd weights is 95 with value;
For acceleration server 5 to be measured, can determine to take advantage of for the first time of delay the first weights to add and take advantage of for the second time of delay that the second weights add that processing delay time takes advantage of the 3rd weights is 132 with value.
As can be seen here, if only consider that acceleration server to be measured is to the first time of delay of service server and client and the second time of delay, so client should select acceleration server 4 to be measured to connect, if but the processing delay time of acceleration server to be measured self is also taken into account, the to be measured acceleration server minimum with value determined is acceleration server 1 to be measured, therefore, client selects acceleration server 1 to be measured to connect, and is connected to service server by acceleration server 1 to be measured.
Certainly, client is in first time of delay of this service server to each acceleration server to be measured of receiving service server transmission, and determine this client to each acceleration server to be measured the second time of delay after, also can according to the first time of delay and the second time of delay with the order be worth from small to large, select the acceleration server to be measured of some successively, the acceleration server process to be measured time of delay determining respectively again to select, first time of delay of the acceleration server to be measured that last basis is selected, second time of delay and processing delay time, from the acceleration server to be measured selected, determine the acceleration server to be measured that will connect and connect with it.
Still be described for table 1, acceleration server to be measured 1 ~ 5 by the first time of delay and the second time of delay be worth that to sort from small to large be acceleration server 4 to be measured, acceleration server 1 to be measured, acceleration server 3 to be measured, acceleration server 5 to be measured, acceleration server 2 to be measured, then client first can select front 3 acceleration servers to be measured, namely, select acceleration server 4 to be measured, acceleration server 1 to be measured, acceleration server 3 to be measured, determine the processing delay time of these three acceleration servers to be measured more respectively, finally according to the first time of delay of these three acceleration servers to be measured, second time of delay and processing delay time, from these three acceleration servers to be measured, select the acceleration server to be measured that will connect and connect with it, service server is connected to by the acceleration server to be measured connected.
Be more than the method connected provided by the invention, based on same invention thinking, present invention also offers the device connected and the system connected, as shown in Fig. 3, Fig. 4, Fig. 5.
Fig. 3 is the apparatus structure schematic diagram connected according to one embodiment of the invention, comprising:
Sending module 301, for sending the request message connected to service server;
Receiver module 302, for receiving the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
First determination module 303, for according to each identification information received, determines that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
Select link block 304, for according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by selection acceleration server to be measured and described service server connect.
Described first determination module 303 specifically for, the to be measured acceleration server corresponding to the identification information received sends test packet, and to record delivery time be the first moment, when receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment, according to the time span in the first moment to second moment of record, determine that described client self arrives the second time of delay of acceleration server to be measured.
Described device also comprises:
Second determination module 305, for in described selection link block 304 according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, for the acceleration server to be measured that each identification information received is corresponding, test packet is sent to described service server by this acceleration server to be measured, and to record delivery time be the 3rd moment, when the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment, according to the time span in described 3rd moment to the 4th moment of record, described service server is to the first time of delay of this acceleration server to be measured and described device self to the second time of delay of this acceleration server to be measured, determine the processing delay time of this acceleration server to be measured,
Described selection link block 304 specifically for, for the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value; The to be measured acceleration server minimum with value determined is selected to connect.
The concrete device connected as shown in Figure 3 can be arranged in client.
Fig. 4 is another the apparatus structure schematic diagram connected according to one embodiment of the invention, comprising:
Receiver module 401, for receiving the request message connected that client sends;
Server determination module 402, for according to described request message, determines each acceleration server to be measured;
Postpone determination module 403, for determining that described device self arrives the first time of delay of each acceleration server to be measured;
Sending module 404, for the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect.
Described server determination module 402 specifically for, according to the identification information of the described client of carrying in described request message, determine the geographical position at described client place, according to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client, according to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured, wherein, the identification information of described client comprises the internet protocol address of described client.
Described delay determination module 403 specifically for, test packet is sent to acceleration server to be measured, and record delivery time, when receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception, according to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.
The concrete device connected as shown in Figure 4 can be arranged in service server.
Fig. 5 is the system configuration schematic diagram connected according to one embodiment of the invention, comprising:
Client 501, for sending the request message connected to service server 502, receive the identification information of the acceleration server 503 each to be measured that described service server 502 returns and described service server 502 the first time of delay to described each acceleration server 503 to be measured, according to each identification information received, determine that described client 501 self arrives the second time of delay of acceleration server 503 to be measured corresponding to each identification information, according to each first time of delay and the second time of delay, acceleration server 503 to be measured is selected to connect, and connected with described service server 502 by the acceleration server to be measured 503 selected,
Service server 502, for receiving the request message connected that client 501 sends, according to described request message, determine each acceleration server 503 to be measured, determine that described service server 502 self is to the first time of delay of each acceleration server 503 to be measured, the identification information of each acceleration server 503 to be measured and each first time of delay of determining are sent to described client 501;
Acceleration server 503 to be measured, for being service server 502 and client 501 forwarding data bag.
According to the method connected provided by the invention, service server can determine the first time of delay self arriving each acceleration server to be measured, and the first time of delay determined is returned to client, after client determines the second time of delay self arriving each acceleration server to be measured, acceleration server to be measured can be selected to the first time of delay of service server and client to the second time of delay of acceleration server to be measured and connect according to acceleration server to be measured, therefore client is connected to service server connection speed by accelerating server can effectively be improved.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In specification provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this specification (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary compound mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the equipment of the implantation information in the interception application program of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computer of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.
The application can be applied to computer system/server, and it can operate with other universal or special computing system environment numerous or together with configuring.The example of the well-known computing system being suitable for using together with computer system/server, environment and/or configuration includes but not limited to: personal computer system, server computer system, thin client, thick client computer, hand-held or laptop devices, the system based on microprocessor, Set Top Box, programmable consumer electronics, NetPC Network PC, little type Ji calculate machine Xi Tong ﹑ large computer system and comprise the distributed cloud computing technology environment of above-mentioned any system, etc.
Computer system/server can describe under the general linguistic context of the computer system executable instruction (such as program module) performed by computer system.Usually, program module can comprise routine, program, target program, assembly, logic, data structure etc., and they perform specific task or realize specific abstract data type.Computer system/server can be implemented in distributed cloud computing environment, and in distributed cloud computing environment, task is performed by the remote processing devices by communication network links.In distributed cloud computing environment, program module can be positioned at and comprise on the Local or Remote computing system storage medium of memory device.
The present invention includes A8, a kind of device connected, it comprises:
Sending module, for sending the request message connected to service server;
Receiver module, for receiving the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
First determination module, for according to each identification information received, determines that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
Select link block, for according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by selection acceleration server to be measured and described service server connect.
A9, device as described in A8, wherein, described first determination module specifically for, the to be measured acceleration server corresponding to the identification information received sends test packet, and to record delivery time be the first moment, when receiving the response data packet that acceleration server to be measured returns for test packet, record time of reception was the second moment, according to the time span in the first moment to second moment of record, determine that described client self arrives the second time of delay of acceleration server to be measured.
A10, device as described in A8, also comprise:
Second determination module, for in described selection link block according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, for the acceleration server to be measured that each identification information received is corresponding, test packet is sent to described service server by this acceleration server to be measured, and to record delivery time be the 3rd moment, when the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment, according to the time span in described 3rd moment to the 4th moment of record, described service server is to the first time of delay of this acceleration server to be measured and described device self to the second time of delay of this acceleration server to be measured, determine the processing delay time of this acceleration server to be measured,
Described selection link block specifically for, for the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value; The to be measured acceleration server minimum with value determined is selected to connect.
The present invention includes A11, a kind of device connected, it comprises:
Receiver module, for receiving the request message connected that client sends;
Server determination module, for according to described request message, determines each acceleration server to be measured;
Postpone determination module, for determining that described device self arrives the first time of delay of each acceleration server to be measured;
Sending module, for the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect.
A12, device as described in A11, wherein, described server determination module specifically for, according to the identification information of the described client of carrying in described request message, determine the geographical position at described client place, according to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client, according to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured, wherein, the identification information of described client comprises the internet protocol address of described client.
A13, device as described in A11, wherein, described delay determination module specifically for, test packet is sent to acceleration server to be measured, and record delivery time, when receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception, according to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.

Claims (10)

1. the method connected, it comprises:
Client sends the request message connected to service server;
Receive the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
According to each identification information received, determine that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
According to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by select acceleration server to be measured and described service server connect.
2. the method for claim 1, wherein determine that described client self comprised further to the second time of delay of acceleration server to be measured corresponding to each identification information:
Described client sends test packet to the acceleration server to be measured that the identification information received is corresponding, and to record delivery time be the first moment;
When receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment;
According to the time span in the first moment to second moment of record, determine that described client self arrives the second time of delay of acceleration server to be measured.
3., the method for claim 1, wherein according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, also to comprise:
Described client, for acceleration server to be measured corresponding to each identification information received, sends test packet by this acceleration server to be measured to described service server, and to record delivery time be the 3rd moment;
When the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment;
To arrive the second time of delay of this acceleration server to be measured according to described 3rd moment of record to the time span in the 4th moment, described service server to the first time of delay of this acceleration server to be measured and described client self, determine the processing delay time of this acceleration server to be measured;
According to each first time of delay and the second time of delay, select acceleration server to be measured to connect and comprise further:
For the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value;
The to be measured acceleration server minimum with value determined is selected to connect.
4. the method connected, it comprises:
Service server receives the request message connected that client sends;
According to described request message, determine each acceleration server to be measured;
Determine that described service server self arrives the first time of delay of each acceleration server to be measured;
The identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect.
5. method as claimed in claim 4, wherein, according to described request message, determine that each acceleration server to be measured comprises further:
Described service server, according to the identification information of the described client of carrying in described request message, determines the geographical position at described client place, and wherein, the identification information of described client comprises the internet protocol address of described client;
According to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client;
According to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured.
6. method as claimed in claim 4, wherein, determine that described service server self comprised further to the first time of delay of each acceleration server to be measured:
Described service server sends test packet to acceleration server to be measured, and records delivery time;
When receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception;
According to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.
7. method as claimed in claim 4, wherein, described client is selected acceleration server to be measured to connect to comprise further:
Described client is according to the identification information of each acceleration server to be measured, determine second time of delay of described client to each acceleration server to be measured, and according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by select acceleration server to be measured and described service server connect.
8. the device connected, it comprises:
Sending module, for sending the request message connected to service server;
Receiver module, for receiving the identification information of the acceleration server each to be measured that described service server returns according to described request message and described service server the first time of delay to described each acceleration server to be measured;
First determination module, for according to each identification information received, determines that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information;
Select link block, for according to each first time of delay and the second time of delay, select acceleration server to be measured to connect, and by selection acceleration server to be measured and described service server connect;
Further, described first determination module specifically for, the to be measured acceleration server corresponding to the identification information received sends test packet, and to record delivery time be the first moment, when receiving the response data packet that acceleration server to be measured returns for test packet, recording the time of reception was the second moment, according to the time span in the first moment to second moment of record, determined that described client self arrives the second time of delay of acceleration server to be measured;
Further, described device also comprises:
Second determination module, for in described selection link block according to each first time of delay and the second time of delay, select before acceleration server to be measured connects, for the acceleration server to be measured that each identification information received is corresponding, test packet is sent to described service server by this acceleration server to be measured, and to record delivery time be the 3rd moment, when the response data packet that the described service server receiving this acceleration server transmission to be measured returns, recording the time of reception was the 4th moment, according to the time span in described 3rd moment to the 4th moment of record, described service server is to the first time of delay of this acceleration server to be measured and described device self to the second time of delay of this acceleration server to be measured, determine the processing delay time of this acceleration server to be measured,
Described selection link block specifically for, for the acceleration server to be measured that each identification information received is corresponding, the second product determining to take advantage of the first product of the first weights the first time of delay, the second time of delay took advantage of the second weights, processing delay time take advantage of the 3rd product of the 3rd weights, determine the first product, the second product, the 3rd product and value; The to be measured acceleration server minimum with value determined is selected to connect.
9. the device connected, it comprises:
Receiver module, for receiving the request message connected that client sends;
Server determination module, for according to described request message, determines each acceleration server to be measured;
Postpone determination module, for determining that described device self arrives the first time of delay of each acceleration server to be measured;
Sending module, for the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client, makes described client select acceleration server to be measured to connect;
Further, described server determination module specifically for, according to the identification information of the described client of carrying in described request message, determine the geographical position at described client place, according to the geographical position of each acceleration server preserved in advance and the geographical position at described client place determined, determine the distance of each acceleration server to described client, according to the distance determined order from small to large, determine the acceleration server of specified quantity successively, as acceleration server to be measured, wherein, the identification information of described client comprises the internet protocol address of described client,
Further, described delay determination module specifically for, test packet is sent to acceleration server to be measured, and record delivery time, when receiving the response data packet that acceleration server to be measured returns for test packet, record the time of reception, according to the time span of the delivery time recorded to the time of reception, determine that described service server self arrives the first time of delay of acceleration server to be measured.
10. the system connected, it comprises:
Client, for sending the request message connected to service server, receive the identification information of the acceleration server each to be measured that described service server returns and described service server the first time of delay to described each acceleration server to be measured, according to each identification information received, determine that described client self arrives the second time of delay of acceleration server to be measured corresponding to each identification information, according to each first time of delay and the second time of delay, acceleration server to be measured is selected to connect, and by select acceleration server to be measured and described service server connect,
Service server, for receiving the request message connected that client sends, according to described request message, determine each acceleration server to be measured, determine that described service server self is to the first time of delay of each acceleration server to be measured, the identification information of each acceleration server to be measured and each first time of delay of determining are sent to described client;
Acceleration server to be measured, for being service server and client forwarding data bag.
CN201410114689.0A 2014-03-25 2014-03-25 method, device and system for establishing connection Expired - Fee Related CN104954320B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410114689.0A CN104954320B (en) 2014-03-25 2014-03-25 method, device and system for establishing connection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410114689.0A CN104954320B (en) 2014-03-25 2014-03-25 method, device and system for establishing connection

Publications (2)

Publication Number Publication Date
CN104954320A true CN104954320A (en) 2015-09-30
CN104954320B CN104954320B (en) 2019-12-06

Family

ID=54168680

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410114689.0A Expired - Fee Related CN104954320B (en) 2014-03-25 2014-03-25 method, device and system for establishing connection

Country Status (1)

Country Link
CN (1) CN104954320B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185212A1 (en) * 2016-04-25 2017-11-02 华为技术有限公司 Multicast delay diagnosis method and apparatus
CN112601176A (en) * 2020-12-07 2021-04-02 四川迅游网络科技股份有限公司 Acceleration method and system based on user terminal positioning information

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080182604A1 (en) * 2007-01-31 2008-07-31 Fujitsu Limited Communications apparatus, server apparatus, and information processing system
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN102916950A (en) * 2012-10-12 2013-02-06 苏州阔地网络科技有限公司 Method and system for transmitting streaming media
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server
CN103634129A (en) * 2012-08-22 2014-03-12 腾讯科技(深圳)有限公司 Proxy server setting method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080182604A1 (en) * 2007-01-31 2008-07-31 Fujitsu Limited Communications apparatus, server apparatus, and information processing system
CN102624920A (en) * 2012-03-31 2012-08-01 奇智软件(北京)有限公司 Method and device for performing access through proxy server
CN103634129A (en) * 2012-08-22 2014-03-12 腾讯科技(深圳)有限公司 Proxy server setting method and device
CN102916950A (en) * 2012-10-12 2013-02-06 苏州阔地网络科技有限公司 Method and system for transmitting streaming media
CN103117907A (en) * 2013-03-11 2013-05-22 星云融创(北京)信息技术有限公司 Network speed test method and system and method and system for selecting accelerating server

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017185212A1 (en) * 2016-04-25 2017-11-02 华为技术有限公司 Multicast delay diagnosis method and apparatus
CN107615731A (en) * 2016-04-25 2018-01-19 华为技术有限公司 A kind of multicast time delay diagnostic method and device
EP3435616A4 (en) * 2016-04-25 2019-01-30 Huawei Technologies Co., Ltd. Multicast delay diagnosis method and apparatus
CN107615731B (en) * 2016-04-25 2020-06-26 华为技术有限公司 Multicast delay diagnosis method and device
US11032122B2 (en) 2016-04-25 2021-06-08 Huawei Technologies Co., Ltd. Multicast delay diagnosis method and apparatus
CN112601176A (en) * 2020-12-07 2021-04-02 四川迅游网络科技股份有限公司 Acceleration method and system based on user terminal positioning information

Also Published As

Publication number Publication date
CN104954320B (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN104699612B (en) For processing method, equipment and the system in software test
CN103150513B (en) The method of the implantation information in interception application program and device
US20170171344A1 (en) Scheduling method and server for content delivery network service node
KR20150088713A (en) End-to-end route tracing over a named-data network
CN104901997A (en) System and method for direct storage access in a content-centric network
CN104852934A (en) Method for realizing flow distribution based on front-end scheduling, device and system thereof
CN109302498A (en) A kind of network resource access method and device
CN106294094A (en) The method of testing of game server, client, server and system
CN104219330A (en) Method and system for auditing screen record based on WEB proxy
CN103067439B (en) Load-balancing method and system
US20170168881A1 (en) Process chain discovery across communication channels
CN110519127B (en) Network delay detection method, device and storage medium
CN104376127A (en) Data manipulation method and device
CN113472900B (en) Message processing method, device, storage medium and computer program product
CN102523302A (en) Load balance method for virtual machine cluster, server and system
CN106201794A (en) The detection method of a kind of server and device
CN103580988A (en) Method for message receiving, pushing and transmitting, device, server group and system
CN107888870A (en) A kind of monitoring method, apparatus and system
CN105407013A (en) User online state statistical system and method
CN104052679B (en) The load-balancing method of network traffics and device
CN104486361A (en) Online game connection building method, game terminal and system
CN102932434B (en) A kind of method and device for carrying out load balancing to server
CN108847952A (en) The processing method of request link context, apparatus and system
CN111147583A (en) HTTP redirection rewriting method and device
CN103634410A (en) Data synchronization method based on content distribution network (CDN), client end and server

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
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191206

Termination date: 20210325