CN104954321A - Connection switching method, device and system - Google Patents

Connection switching method, device and system Download PDF

Info

Publication number
CN104954321A
CN104954321A CN201410114705.6A CN201410114705A CN104954321A CN 104954321 A CN104954321 A CN 104954321A CN 201410114705 A CN201410114705 A CN 201410114705A CN 104954321 A CN104954321 A CN 104954321A
Authority
CN
China
Prior art keywords
server
client
identification information
service server
connection
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
CN201410114705.6A
Other languages
Chinese (zh)
Other versions
CN104954321B (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
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 CN201410114705.6A priority Critical patent/CN104954321B/en
Publication of CN104954321A publication Critical patent/CN104954321A/en
Application granted granted Critical
Publication of CN104954321B publication Critical patent/CN104954321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/04Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks
    • H04L63/0428Network architectures or network communication protocols for network security for providing a confidential data exchange among entities communicating through data packet networks wherein the data content is protected, e.g. by encrypting or encapsulating the payload

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Hardware Design (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Computer And Data Communications (AREA)

Abstract

The invention discloses a connection switching method, device and system. According to the invention, when a client has data exchange with a service server through a first connection, a to-be-switched acceleration server is determined and a switching request with server mark information of the acceleration server is sent to the service server. A second connection with the service server is established through the acceleration service and data is sent to the acceleration server. The acceleration server adds the server mark information of itself to the data and sends the data to the service server. The service server performs data exchange with the client through the second connection when that the server mark information carried by the data and the server mark information carried by the switching request are identical is determined. Therefore, the client does not need to break the connection with the service server and connection switching can be realized during data exchange with the service server. The efficiency of data exchange between the client and the service server can be improved effectively.

Description

A kind of connection switching method, Apparatus and system
Technical field
The present invention relates to field of computer technology, particularly relate to a kind of connection switching method, Apparatus and system.
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.
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, namely, client is longer to the time of delay of service server, 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 again by accelerating server, to get around the higher network node of load.
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.
But, client is not changeless to the time of delay of service server and each acceleration server, but along with network load condition is (as the loading condition of each network node between client to service server, the network load condition of each acceleration server) change change, therefore, in practical application scene, occur that the connection speed that user is at a time connected to service server by acceleration server is very fast possibly, the situation that in the process connected, connection speed is but more and more slower, this time of delay just needing the real-time determination of client which acceleration server to be connected to service server by is minimum, or whether the time of delay being directly connected to service server is minimum, and the acceleration server or service server that connect is switched according to the result determined.
In the prior art, when client is connected to service server by an acceleration server, if be switched to another accelerate server or be directly switch to this service server, or, when client is directly connected to service server, service server is connected to by certain acceleration server if be switched to, all first to disconnect the connection with the current acceleration server that is connected or service server, re-establish connection again, this obviously can reduce the efficiency of data interaction between client and service server.
Such as, user is when playing games by network, client is current is connected to game server by accelerating server 1, if sometime follow-up, client determines that the time of delay being connected to game server by acceleration server 2 is less, then need to disconnect and the connection accelerating server 1, also the connection with game server is just disconnected, user needs first to roll off the production line in other words, again being connected to game server by accelerating server 2 again, reducing the efficiency of data interaction between client and game server.
Summary of the invention
In view of the above problems, propose the present invention to provide a kind of overcoming the problems referred to above or the connection switching method solved the problem at least in part, Apparatus and system, effectively can improve the efficiency of data interaction between client and service server.
According to a first aspect of the invention, a kind of connection switching method is proposed, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Determine the first acceleration server that will be switched to;
The handover request sending the server identification information carrying described first acceleration server to described service server is connected by described first;
Accelerate server foundation by described first to be connected with second of described service server;
Send the data to described first and accelerate server, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described client to make described service server.
Alternatively, determine that the first acceleration server that will be switched to comprises further:
To the first time of delay that described first connects, and monitored by the second time of delay that each acceleration server is connected to service server;
When monitoring existence and being less than second time of delay of described first time of delay, be defined as by the acceleration server corresponding the second minimum time of delay being switched to first accelerates server.
Alternatively, described service server also comprises before carrying out data interaction by described second connection and described client:
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request.
Alternatively, the handover request sending the server identification information carrying described first acceleration server to described service server comprises further:
Send to described service server and carry the handover request that described first accelerates the server identification information of server and the client identification information of described client;
Before sending the data to described first acceleration server, also comprise:
Described first is sent to by described client identification information to accelerate server;
Described first acceleration server adds the server identification information that described first accelerates server to described data and comprises further:
Described first accelerates server adds in described data by the described first server identification information accelerating server with the described client identification information received;
Described service server also comprises before carrying out data interaction by described second connection and described client:
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
According to a second aspect of the invention, a kind of connection switching method is proposed, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Accelerate the connection establishment request that server receives the transmission of described client, and be that the foundation of described client is connected with second of described service server;
Described acceleration server receives the data that described client sends;
The server identification information of described acceleration server is added in described data, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
According to a third aspect of the present invention, a kind of connection switching method is proposed, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Receive described client and connect by described first the handover request of carrying server identification information sent;
Receive the data of carrying server identification information accelerated server and connect transmission by second, wherein, described second connect be described client is set up by described acceleration server with the connection of described service server, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request;
If so, then connect by described second and carry out data interaction with described client;
Otherwise, refuse to connect by described second to carry out data interaction with described client.
According to a fourth aspect of the present invention, a kind of connection switching apparatus is proposed, for switching the connection between described device and service server, wherein, described device and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Switch determination module, for determining the first acceleration server that will be switched to;
Request sending module, for connecting by described first the handover request sending the server identification information carrying described first acceleration server to described service server;
Link block, is connected with second of described service server for accelerating server foundation by described first;
Data transmission blocks, server is accelerated for sending the data to described first, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described device to make described service server.
According to a fifth aspect of the present invention, a kind of connection switching apparatus is proposed, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Link block for receiving the connection establishment request that described client sends, and is that the foundation of described client is connected with second of described service server;
Data reception module, for receiving the data that described client sends;
Sending module, for being added in described data by the server identification information of described device, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
According to a sixth aspect of the invention, a kind of connection switching apparatus is proposed, for switching the connection between client and described device, wherein, client and described device establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Request receiving module, connects by described first the handover request of carrying server identification information sent for receiving described client;
Data reception module, for receiving the data of carrying server identification information accelerated server and sent by the second connection, wherein, described second connect be described client is set up by described acceleration server with the connection of described device, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Whether judge module is identical with the server identification information carried in described handover request for judging the server identification information carried in the data that receive;
Data transmission blocks, for when the judged result of described judge module is for being, connect by described second and carry out data interaction with described client, when the judged result of described judge module is no, refuse to connect by described second to carry out data interaction with described client.
According to a seventh aspect of the present invention, propose a kind of connection switched system, described system comprises: client, first accelerates server, service server; Wherein, described client and described service server establish first and are connected and connect by described first and carry out data interaction;
Described client, for determining the first acceleration server that will be switched to, connect by described first, send to described service server and carry the handover request that described first accelerates the server identification information of server, accelerate server foundation by described first to be connected with second of described service server, send the data to described first and accelerate server;
Described first accelerates server, for when receiving the connection establishment request that described client sends, setting up be connected with second of described service server for described client; When receiving the data that described client sends, the server identification information that described first accelerates server being added in described data, and sends to described service server;
Described service server, connect by described first the handover request of carrying server identification information sent for receiving described client, receive described first and accelerate the data of carrying server identification information of server by the second connection transmission, judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request, if, then connect by described second and carry out data interaction with described client, otherwise, refuse to connect by described second to carry out data interaction with described client.
According to connection switching method provided by the invention, client is when connecting by first and service server carries out exchanges data, determine the acceleration server that will be switched to, the handover request of carrying the server identification information accelerating server is sent to service server, and be connected with second of service server by the foundation of this acceleration server, send the data to this acceleration server, the server identification information of self adds to after in data and sends to service server by this acceleration server, when the server identification information that service server carries in the data determining to receive is identical with the server identification information carried in handover request, connect by second and carry out data interaction with client, therefore, client is without the need to disconnecting the connection with service server, can realize carrying out switching in the process of data interaction being connected with service server, effectively can improve the efficiency of data interaction between client and service server.
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 connection switching method according to one embodiment of the invention;
Fig. 2 accelerates to connect by mutual realization the concrete grammar switched between server and service server three according to the client, first of one embodiment of the invention;
Fig. 3 carries out in the process of data interaction by the second connection that first accelerates server with service server according to the client of one embodiment of the invention, seamlessly switches to the method for being carried out data interaction by the second acceleration server and service server;
Fig. 4 is first connection switching apparatus structural representation according to one embodiment of the invention;
Fig. 5 is second connection switching apparatus structural representation according to one embodiment of the invention;
Fig. 6 is the 3rd the connection switching apparatus structural representation according to one embodiment of the invention;
Fig. 7 is the connection switched system structural representation 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 connection switching method according to one embodiment of the invention, can comprise step:
S101: client and service server are set up first and be connected, carries out data interaction by this first connection with service server.
S102: client determines the first acceleration server that will be switched to.
S103: client connects by first handover request sending the server identification information carrying this first acceleration server to service server.
S104: client is accelerated server foundation by first and is connected with second of this service server.
S105: client sends the data to the first acceleration server, the first acceleration server is made to add in data by this first server identification information accelerating server, and send to service server by the second connection, carry out data interaction by the second connection with client to make service server.
From the foregoing, according to this embodiment, client is when connecting by first and service server carries out exchanges data, the handover request of the server identification information carrying the acceleration server (the acceleration server that will be switched to is the first acceleration server) that will be switched to can be sent to service server, and be connected with second of service server by the foundation of this acceleration server, send the data to this acceleration server, the server identification information of self adds to after in data and sends to service server by this acceleration server, service server then connects by second and client carries out data interaction, therefore, client is without the need to disconnecting the connection with service server, can realize carrying out switching in the process of data interaction being connected with service server, effectively can improve the efficiency of data interaction between client and service server.
According to one embodiment of the present of invention, step S103 as shown in Figure 1 and the execution sequence of S104 are in no particular order.Client is when being connected with second of service server by the first acceleration server foundation, server can be accelerated to first and send connection establishment request, first accelerates server then when receiving the connection establishment request that client sends, set up for client and be connected with second of service server, also namely, second described in the embodiment of the present invention connects and comprises client and accelerate the connection of server and accelerate the connection of server and service server.
It is acceleration server in order to this client of informing business server will be switched to that client sends the object of handover request to service server.Certainly, after service server receives this handover request, can connect by first equally and return handoff response to client, to inform that this service server of client receives handover request.
Accelerate server the server identification information of self to be added in the data that client sends and send to the object of service server to be again: which these data of informing business server accelerated server and sent by.
And service server is after receiving the data that service server sends, can judge that whether the server identification information carried in the data received is identical with the server identification information carried in handover request, if, then connect by second and carry out data interaction with client, otherwise, refuse to connect by second to carry out data interaction with client.The server identification information carried in the data that service server judging the receives object whether identical with the server identification information carried in handover request be then: judge that the whether certain acceleration server of being informed by it of client have sent data to service server.Therefore, if the determination result is YES, then can determine that client sends data by its acceleration server of informing to service server, switch correct, thus service server by this acceleration server to client return data, namely, connect by second and carry out data interaction with client, if judged result is no, then determine that client does not send data by its acceleration server of informing, switching makes mistakes, thus service server is refused by this acceleration server to client return data, that is, refuse to connect by second to carry out data interaction with client.
According to one embodiment of the present of invention, establish direct-connected first with service server in client to be connected, and when carrying out data interaction by this first connection, client, first is accelerated to connect by mutual realization the concrete grammar switched between server and service server three and can as shown in Figure 2, be comprised the following steps:
S201: client determines the first acceleration server that will be switched to.
S202: client connects by first handover request sending the server identification information carrying this first acceleration server to service server.
S203: client is accelerated server foundation by first and is connected with second of this service server.
S204: client sends the data to the first acceleration server.
S205: the first accelerates server adds to this first server identification information accelerating server in data, and sends to service server by the second connection.
S206: when the server identification information that service server carries in the data determining to receive is identical with the server identification information carried in handover request, connects by second and carries out data interaction with client.
Such as, user when being played games by network, the client of this user can first set up with game server (namely, service server) direct-connected relation, this direct-connected relation is the first connection, carries out data interaction by this first connection with game server, and keeps this first connection not disconnect.
When client is determined to be switched to by accelerating server 1 and being connected to game server, then connect by first, carry the handover request of the server identification information of this acceleration server 1 to game server, and be connected with second of game server by accelerating server 1 foundation simultaneously.Also can to game server handover request, and after receiving the handoff response that game server returns, then set up be connected with second of game server by accelerating server 1.This second connection comprises client and accelerates the connection of server 1 and accelerate the connection of server 1 and game server.
Accelerating server 1 is after client and game server establish the second connection, client then can send to the data of game server to send to and accelerate server 1, accelerate server 1 server identification information of self is added in these data, and send to game server.
Owing to have received the handover request of the server identification information carrying this acceleration server 1 before game server, therefore, after receiving and accelerating the data sent of server 1, can judge that whether the server identification information that carries in these data is the server identification information of this acceleration server 1 carried in handover request, if, the data that then game server can return to client send to accelerates server 1, by accelerating server 1, these data are returned to client, namely, connect by second and carry out data interaction with client, otherwise, refuse to connect by second to carry out data interaction with client.
As can be seen from upper example, due to client be when maintenance first connect do not disconnect, inform its acceleration server 1 that will be switched to of game server, and be connected with second of game server by the foundation of acceleration server 1, the most originally will connect by first sends to the data of game server to give game server by the second connection transmission, therefore, can without the need to disconnecting the connection with game server, also be, user can without the need to rolling off the production line, can realize switching in reciprocal process connecting, improve the efficiency of data interaction.
According to one embodiment of the present of invention, client is when determine to be switched to first accelerates server, the first time of delay that client can connect first, and monitored by the second time of delay that each acceleration server is connected to service server, when monitoring existence and being less than second time of delay of this first time of delay, be defined as by the acceleration server corresponding the second minimum time of delay being switched to first accelerates server.
Wherein, monitoring first time of delay that client can be real-time and the second time of delay, also can according to setting cycle, periodically the first time of delay of monitoring and the second time of delay.Client is when the first time of delay that monitoring first connects, connect by first and send test data to service server, and record delivery time, when receiving by first the test response data that service server returns, record the time of reception, according to the time span of this delivery time to the time of reception, determined for the first time of delay.Similar, client is when monitoring is connected to the second time of delay of service server by certain acceleration server, also test data is sent by this acceleration server to service server, and record delivery time, when being received the test response data that service server returns by this acceleration server, record the time of reception, according to the time span of this delivery time to the time of reception, determined for the second time of delay.
Such as, its first time of delay be connected with first of service server of client control is 80ms, second time of delay being connected to service server by accelerating server 1 of monitoring is 97ms, the second time of delay being connected to service server by accelerating server 2 is 63ms, the second time of delay being connected to service server by accelerating server 3 is 75ms, then client determines that the second time of delay that there is acceleration server 2 and accelerate server 3 is less than this first time of delay, therefore, by the acceleration server corresponding the second minimum time of delay monitored, namely, the acceleration server 2 that 63ms is corresponding, be defined as being switched to first accelerates server.
According to one embodiment of the present of invention, in order to which acceleration server will be which client of informing business server will be switched to more accurately, when client connects transmission handover request by first, also the client identification information of this client self also can be carried in handover request and send to service server, also be, client connects by first, sends the handover request of carrying the server identification information of the first acceleration server and the client identification information of this client to service server.Like this, by the client identification information that carries in this handover request and server identification information, service server can know which which client will be switched to and accelerate server accurately.
Wherein, client identification information described in the embodiment of the present invention can comprise: medium education (MediaAccessControl, MAC) address, the combination of one or more logged in identify label (IDentity, ID), cookie that username and password is corresponding etc.Server identification information can comprise: accelerate the combination of one or more in the IP address of server, the title of acceleration server, the URL(uniform resource locator) (Uniform ResourceLocator, URL) of acceleration server etc.
Take client identification information as the login ID of client, server identification information is the URL of acceleration server is example, and the form carrying the handover request of client identification information and server identification information can be:
<qh>
ip:1.1.1.1|cdnsvr:jiasu1.com|khid:12345
</qh>
In the handover request of above-mentioned form, 1.1.1.1 is Internet protocol (InternetProtocol, the IP) address of client, and for identifying the source address of this handover request, 12345 is the login ID of client, and jiasu1.com is the URL accelerating server.By this handover request, service server can know that the client that IP address is 1.1.1.1, login ID is 12345 will be switched to the acceleration server that URL is jiasu1.com accurately.
Accordingly, client sends before data to service server accelerating server by first, also the client identification information of this client self to be sent to the first acceleration server, concrete, the client identification information of this client self when accelerating server transmission connection establishment request to first, can be carried in this connection establishment request and sending to the first acceleration server by client.When then the first acceleration server receives the data of client transmission, this first server identification information accelerating server self and this client identification information received can be added in the data received, and send to service server.
Be still IP address and the login ID of client with client identification information, server identification information is the URL of acceleration server is example, first accelerates server adds to the server identification information of self and the client identification information that receives after in the data that client sends, and the form of these data can be:
<cdnip>jiasu1.com</cdnip>
<khid>12345<khid>
<khsj>
// be the data that client is sent herein
<khsj>
</cdnsvr>
After the above-mentioned data that with the addition of server identification information jiasu1.com and client identification information 12345 are sent to service server, service server then can judge that whether the server identification information carried in the data received is identical with the server identification information carried in handover request, and judge that whether the client identification information carried in the data received is identical with the client identification information carried in handover request, if two judged results are and are, then determine that the acceleration server that the client sending handover request is informed by it have sent data to service server, thus carry out data interaction by the second connection with client, if at least one judged result is no, then determine that the acceleration server that the client sending handover request is not informed by it sends data to service server, refuse to connect by second to carry out data interaction with client.
According to one embodiment of the present of invention, when client carries out data interaction by the second connection with service server, save Internet resources if consider, then can disconnect client and be connected with first of service server.But consider first time of delay that will be connected by this first connection monitoring first, and follow-up also may also will connection from second switches back the first connection, therefore, this embodiment of the invention, when client carries out data interaction by the second connection with service server, still can keep client to be connected with first of service server.
More than carrying out in the process of data interaction for connecting by direct-connected first in client with service server, seamlessly switching to and accelerating server by certain and to be connected with service server and the method for being carried out data interaction by this acceleration server and service server.
The following describes and accelerate second of server in client by first and connect and carry out in the process of data interaction with service server, seamlessly switch to direct-connected first and connect the method for carrying out data interaction with service server.
According to one embodiment of the present of invention, because client is being carried out in the process of data interaction by the second connection (second connects by the first acceleration server foundation) with service server, still remain direct-connected with service server first to be connected, therefore, client is being carried out in the process of data interaction by the second connection with service server, when determining to be switched to the first connection and service server carries out data interaction, then directly can disconnect this second connection, and carry out data interaction by this first connection with service server.
Wherein, client can be less than in the first time of delay monitoring the first connection any one by accelerate server be connected to the second time of delay of service server time, determine from second connect be switched to the first connection.
When disconnection second connects, client can be accelerated server to first and send connection disconnection request.First acceleration server then disconnects being connected with second of client and service server of its foundation, client and service server is connected by first and carries out data interaction after receiving this connection disconnection request.
Wherein, this connection disconnects the identification information that the client identification information and first that can carry this client self in request accelerates server, and form can be as follows:
<cdnqh>
ip:1.1.1.1|cdnsvr:jiasu1.com|khid:12345
</cdnqh>
Wherein, 1.1.1.1 is the IP address of client, and disconnect the source address of request for identifying this connection, 12345 is the login ID of client, and jiasu1.com is the URL of the first acceleration server.After the connection receiving above-mentioned form disconnects and asking, first accelerates server can know that the client-requested that IP address is 1.1.1.1, login ID is 12345 disconnects the second connection.
Certainly, after the first acceleration server receives and connects the request of disconnection, also can forward this connection disconnection to service server and ask, service server is known, and this client will disconnect the second connection, connect carry out data interaction with service server by first.
The following describes and carry out in the process of data interaction by the second connection that first accelerates server with service server in client, seamlessly switch to the method for being carried out data interaction by the second acceleration server and service server, as shown in Figure 3, can comprise the following steps:
S301: client determine to be switched to by second accelerate server is connected with service server time, disconnection second connection.
S302: the first accelerates server disconnects being connected with second of client and service server of its foundation.
S303: client connects by first, resends the handover request of the server identification information carrying this second acceleration server to service server.
S304: client is accelerated server foundation by second and is connected with the 3rd of service server.
S305: client sends the data to the second acceleration server.
S306: the second accelerates server adds to the server identification information of self in the data received, and sends to service server by the 3rd connection.
S307: when the server identification information carried in the handover request that the server identification information that service server carries in the data determining to receive and client resend is identical, connects by the 3rd and carries out data interaction with client.
Contrary, if service server determines that the server identification information carried in the data received is different from the server identification information carried in the handover request that client resends, then refuse to connect by the 3rd to carry out data interaction with client.
To be connected from first the method being switched to the second connection similar with client, according to one embodiment of the present of invention, client connects the process being switched to the 3rd connection from second, in step S303, also the handover request of carrying this second acceleration server identification information of server and the client identification information of this client self can be resend to service server, accordingly, the client identification information of self also will be sent to the second acceleration server by client.In step S306, second accelerates server then can add to the server identification information of self and the client identification information received in the data that client sends, and sends to service server.In step S307, service server then can judge that whether the server identification information carried in the data received is identical with the server identification information carried in the handover request that client resends, and judge that whether the client identification information carried in the data received is identical with the client identification information carried in the handover request that client resends, if two judged results are and are, then connect by the 3rd and carry out information interaction with client, if it is no for there is at least one judged result, then refuse to connect by the 3rd to carry out information interaction with client.
Be the connection switching method that the embodiment of the present invention provides above, based on same thinking, the embodiment of the present invention additionally provides connection switching apparatus and system, as shown in Fig. 4, Fig. 5, Fig. 6, Fig. 7.
Fig. 4 is first connection switching apparatus structural representation according to one embodiment of the invention, and wherein, described device and service server establish first and be connected and connect by described first and carry out data interaction, and described device comprises:
Switch determination module 401, for determining the first acceleration server that will be switched to;
Request sending module 402, for connecting by described first the handover request sending the server identification information carrying described first acceleration server to described service server;
Link block 403, is connected with second of described service server for accelerating server foundation by described first;
Data transmission blocks 404, server is accelerated for sending the data to described first, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described device to make described service server.
Described switching determination module 401 specifically for, to the first time of delay that described first connects, and monitored by the second time of delay that each acceleration server is connected to service server, when monitoring existence and being less than second time of delay of described first time of delay, be defined as by the acceleration server corresponding the second minimum time of delay being switched to first accelerates server.
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request before carrying out data interaction by described second connection and described client.
Described request sending module 402 specifically for, send to described service server and carry the handover request that described first accelerates the server identification information of server and the client identification information of described device;
Described device also comprises:
Mark sending module 405, for send the data to described first acceleration server in described data transmission blocks 304 before, sends to described first to accelerate server by described client identification information;
After described data transmission blocks 404 sends the data to described first acceleration server, described first accelerates server adds to the described first server identification information accelerating server in described data with the described client identification information received, and sends to described service server by described second connection;
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request before carrying out data interaction by described second connection and described client.
Described link block 403 also for, carry out in the process of data interaction by described second connection with described service server at described device, when determining that will be switched to described first connection carries out data interaction with described service server, disconnect described second to connect, described device is connected by described first and carries out data interaction with described service server.
Described link block 403 also for, carry out in the process of data interaction by described second connection with described service server at described device, when determine to be switched to by second accelerate server carry out data interaction with described service server time, disconnect described second connection;
Described request sending module 402 also for, connect by described first, resend to described service server and carry the handover request of server identification information that described second accelerates server;
Described link block 403 also for, by described second accelerate server set up be connected with the 3rd of described service server;
Described data transmission blocks 404 also for, send the data to described second and accelerate server, making described second to accelerate server adds in described data by the server identification information that described second accelerates server, and send to described service server by described 3rd connection, carry out data interaction by described 3rd connection with described device to make described service server.
As shown in Figure 4 first concrete connection switching apparatus can be arranged in client.
Fig. 5 is second connection switching apparatus structural representation according to one embodiment of the invention, and wherein, client and service server establish first and be connected and connect by described first and carry out data interaction, and described device comprises:
Link block 501 for receiving the connection establishment request that described client sends, and is that the foundation of described client is connected with second of described service server;
Data reception module 502, for receiving the data that described client sends;
Sending module 503, for being added in described data by the server identification information of described device, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
Described connection establishment request is that described client sends to described service server transmission the rear of handover request to described device, carries the server identification information of described device in described handover request;
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request before carrying out data interaction by described second connection and described client.
Described link block 501 also for, receive the client identification information of described client that described client sends;
Described sending module 503 specifically for, described server identification information and the described client identification information that receives are added in described data, and send to described service server;
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request before carrying out data interaction by described second connection and described client.
Described link block 501 also for, receive described client send connection disconnect request time, disconnect described second connect, described client and described service server are connected by described first and carry out data interaction.
As shown in Figure 5 second concrete connection switching apparatus specifically can be arranged in and accelerate server.
Fig. 6 is the 3rd the connection switching apparatus structural representation according to one embodiment of the invention, and wherein, client and described device establish first and be connected and connect by described first and carry out data interaction, and described device comprises:
Request receiving module 601, connects by described first the handover request of carrying server identification information sent for receiving described client;
Data reception module 602, for receiving the data of carrying server identification information accelerated server and sent by the second connection, wherein, described second connect be described client is set up by described acceleration server with the connection of described device, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Whether judge module 603 is identical with the server identification information carried in described handover request for judging the server identification information carried in the data that receive;
Data transmission blocks 604, for when the judged result of described judge module 603 is for being, connect by described second and carry out data interaction with described client, when the judged result of described judge module 603 is no, refuse to connect by described second to carry out data interaction with described client.
Described request receiver module 601 specifically for, receive described client by described first connect send the handover request of carrying server identification information and client identification information;
Described data reception module 602 specifically for, receive described acceleration server by second connect send the data of carrying server identification information and client identification information;
Described data transmission blocks 604 also for, connecting with before described client carries out data interaction by described second, determine that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
Described data transmission blocks 604 also for, when described acceleration server disconnect is connected with second of described device time, carry out data interaction by described first connection and described client.
The as shown in Figure 6 the 3rd concrete connection switching apparatus specifically can be arranged in service server.
Fig. 7 is the connection switched system structural representation according to one embodiment of the invention, and described system comprises: client 701, first accelerates server 702, service server 704; Wherein, described client 701 and described service server 704 establish first and are connected and connect by described first and carry out data interaction;
Described client 701, for determining the first acceleration server 702 that will be switched to, connect by described first, send to described service server 704 and carry the handover request that described first accelerates the server identification information of server 702, accelerate server 702 foundation by described first to be connected with second of described service server 704, send the data to described first and accelerate server 702;
Described first accelerates server 702, for when receiving the connection establishment request that described client 701 sends, setting up be connected with second of described service server 704 for described client 701; When receiving the data that described client 701 sends, the server identification information that described first accelerates server 702 being added in described data, and sends to described service server 704;
Described service server 704, connect by described first the handover request of carrying server identification information sent for receiving described client 701, receive described first and accelerate the data of carrying server identification information of server 702 by the second connection transmission, judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request, if, then connect by described second and carry out data interaction with described client 701, otherwise, refuse to connect by described second to carry out data interaction with described client 701.
Described client 701 specifically for, send to described service server 704 and carry the handover request that described first accelerates the server identification information of server 702 and client 701 identification information of described client 701, and before sending the data to described first acceleration server 702, sent to by described client 701 identification information described first to accelerate server 702;
Described first accelerate server 702 specifically for, after receiving the data that described client 701 sends, the server identification information and described client 701 identification information that receives that accelerate server 702 by described first add in described data;
Described service server 704 specifically for, after receiving the data of the first acceleration server 702 transmission, when the server identification information carried in the data determining to receive is identical with the server identification information carried in described handover request, and when determining that client 701 identification information that carries in the data received is identical with client 701 identification information carried in described handover request, connect by described second and carry out data interaction with described client 701.
Described system also comprises: second accelerates server 703;
Described client 701 also for, carrying out in the process of data interaction by described second connection with described service server 704, when determine to be switched to by second accelerate server 703 be connected with described service server 704 time, disconnect described second to connect, connect by described first, resend to described service server 704 and carry the handover request that described second accelerates the server identification information of server 703, accelerate server 703 foundation by described second to be connected with the 3rd of described service server 704, send the data to described second and accelerate server 703,
Described second accelerates server 703, adds in described data for the server identification information accelerating server 703 by described second, and sends to described service server 704 by described 3rd connection;
Described service server 704 also for, when the server identification information carried in the data determining to receive is identical with the server identification information carried in the handover request that described client 701 resends, connects by the described 3rd and carry out data interaction with described client 701.
According to connection switching method provided by the invention, client is when connecting by first and service server carries out exchanges data, determine the acceleration server that will be switched to, the handover request of carrying the server identification information accelerating server is sent to service server, and be connected with second of service server by the foundation of this acceleration server, send the data to this acceleration server, the server identification information of self adds to after in data and sends to service server by this acceleration server, when the server identification information that service server carries in the data determining to receive is identical with the server identification information carried in handover request, connect by second and carry out data interaction with client, therefore, client is without the need to disconnecting the connection with service server, can realize carrying out switching in the process of data interaction being connected with service server, effectively can improve the efficiency of data interaction between client and service server.
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 A1, a kind of connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Determine the first acceleration server that will be switched to;
The handover request sending the server identification information carrying described first acceleration server to described service server is connected by described first;
Accelerate server foundation by described first to be connected with second of described service server;
Send the data to described first and accelerate server, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described client to make described service server.
A5, method as described in A1, wherein, also comprise:
Carrying out in the process of data interaction by described second connection with described service server, when determining that will be switched to described first connection carries out data interaction with described service server, disconnect described second to connect, and carry out data interaction by described first connection with described service server.
A6, method as described in A1, wherein, also comprise:
Carrying out in the process of data interaction with described service server connecting by described second, when determine to be switched to by second accelerate server be connected with described service server time, disconnect described second connection;
Connect by described first, resend to described service server and carry the handover request that described second accelerates the server identification information of server;
Accelerate server foundation by described second to be connected with the 3rd of described service server;
Send the data to described second and accelerate server, making described second to accelerate server adds in described data by the server identification information that described second accelerates server, and send to described service server by described 3rd connection, carry out data interaction by described 3rd connection with described client to make described service server.
The present invention includes A7, a kind of connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Accelerate the connection establishment request that server receives the transmission of described client, and be that the foundation of described client is connected with second of described service server;
Described acceleration server receives the data that described client sends;
The server identification information of described acceleration server is added in described data, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
A8, method as described in A7, wherein, described connection establishment request is that described client sends the rear of handover request to described service server and sends to described acceleration server, carries the server identification information of described acceleration server in described handover request;
Described service server also comprises before carrying out data interaction by described second connection and described client:
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request.
A9, method as described in A7 or A8, wherein, before receiving the data that described client sends, also comprise:
Receive the client identification information of the described client that described client sends;
Add the server identification information of described acceleration server to described data to comprise further:
Described server identification information and the described client identification information received add in described data by described acceleration server;
Described service server also comprises before carrying out data interaction by described second connection and described client:
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
A10, method as described in A7, wherein, also comprise:
When described acceleration server receives the connection disconnection request of described client transmission, disconnect described second and connect, described client and described service server are connected by described first and carry out data interaction.
The present invention includes A11, a kind of connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Receive described client and connect by described first the handover request of carrying server identification information sent;
Receive the data of carrying server identification information accelerated server and connect transmission by second, wherein, described second connect be described client is set up by described acceleration server with the connection of described service server, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request;
If so, then connect by described second and carry out data interaction with described client;
Otherwise, refuse to connect by described second to carry out data interaction with described client.
A12, method as described in A11, wherein, receive described client and connect by described first the handover request of carrying server identification information sent and comprise further:
Receive described client and connect by described first the handover request of carrying server identification information and client identification information sent;
Receive described acceleration server to be comprised further by the data of carrying server identification information that second connects transmission:
Receive described acceleration server and connect by second the data of carrying server identification information and client identification information sent;
Before carrying out data interaction by described second connection and described client, also comprise:
Determine that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
A13, method as described in A11, wherein, also comprise:
When described acceleration server disconnection is connected with second of described service server, described service server connects by described first and described client carries out data interaction.
The present invention includes A14, a kind of connection switching apparatus, for switching the connection between described device and service server, wherein, described device and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Switch determination module, for determining the first acceleration server that will be switched to;
Request sending module, for connecting by described first the handover request sending the server identification information carrying described first acceleration server to described service server;
Link block, is connected with second of described service server for accelerating server foundation by described first;
Data transmission blocks, server is accelerated for sending the data to described first, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described device to make described service server.
A15, device as described in A14, wherein, described switching determination module specifically for, to the first time of delay that described first connects, and monitored by the second time of delay that each acceleration server is connected to service server, when monitoring existence and being less than second time of delay of described first time of delay, be defined as by the acceleration server corresponding the second minimum time of delay being switched to first accelerates server.
A16, device as described in A14, wherein, described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request before carrying out data interaction by described second connection and described client.
A17, device as described in A14 or A16, wherein, described request sending module specifically for, send to described service server and carry the handover request that described first accelerates the server identification information of server and the client identification information of described device;
Described device also comprises:
Mark sending module, for send the data to described first acceleration server in described data transmission blocks before, sends to described first to accelerate server by described client identification information;
After described data transmission blocks sends the data to described first acceleration server, described first accelerates server adds to the described first server identification information accelerating server in described data with the described client identification information received, and sends to described service server by described second connection;
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request before carrying out data interaction by described second connection and described client.
A18, device as described in A14, wherein, described link block also for, carry out in the process of data interaction by described second connection with described service server at described device, when determining that will be switched to described first connection carries out data interaction with described service server, disconnect described second to connect, described device is connected by described first and carries out data interaction with described service server.
A19, device as described in A14, wherein, described link block also for, carry out in the process of data interaction by described second connection with described service server at described device, when determine to be switched to by second accelerate server carry out data interaction with described service server time, disconnect described second connection;
Described request sending module also for, connect by described first, resend to described service server and carry the handover request of server identification information that described second accelerates server;
Described link block also for, by described second accelerate server set up be connected with the 3rd of described service server;
Described data transmission blocks also for, send the data to described second and accelerate server, making described second to accelerate server adds in described data by the server identification information that described second accelerates server, and send to described service server by described 3rd connection, carry out data interaction by described 3rd connection with described device to make described service server.
The present invention includes A20, a kind of connection switching apparatus, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Link block for receiving the connection establishment request that described client sends, and is that the foundation of described client is connected with second of described service server;
Data reception module, for receiving the data that described client sends;
Sending module, for being added in described data by the server identification information of described device, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
A21, device as described in A20, wherein, described connection establishment request is that described client sends the rear of handover request to described service server and sends to described device, carries the server identification information of described device in described handover request;
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request before carrying out data interaction by described second connection and described client.
A22, device as described in A20 or A21, wherein, described link block also for, receive the client identification information of the described client that described client sends;
Described sending module specifically for, described server identification information and the described client identification information that receives are added in described data, and send to described service server;
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request before carrying out data interaction by described second connection and described client.
A23, device as described in A20, wherein, described link block also for, when receiving connection that described client sends and disconnecting request, disconnect described second and connect, described client and described service server are connected by described first and carry out data interaction.
The present invention includes A24, a kind of connection switching apparatus, for switching the connection between client and described device, wherein, client and described device establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Request receiving module, connects by described first the handover request of carrying server identification information sent for receiving described client;
Data reception module, for receiving the data of carrying server identification information accelerated server and sent by the second connection, wherein, described second connect be described client is set up by described acceleration server with the connection of described device, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Whether judge module is identical with the server identification information carried in described handover request for judging the server identification information carried in the data that receive;
Data transmission blocks, for when the judged result of described judge module is for being, connect by described second and carry out data interaction with described client, when the judged result of described judge module is no, refuse to connect by described second to carry out data interaction with described client.
A25, device as described in A24, wherein, described request receiver module specifically for, receive described client and connect by described first the handover request of carrying server identification information and client identification information sent;
Described data reception module specifically for, receive described acceleration server by second connect send the data of carrying server identification information and client identification information;
Described data transmission blocks also for, connecting with before described client carries out data interaction by described second, determine that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
A26, device as described in A24, wherein, described data transmission blocks also for, when described acceleration server disconnect is connected with second of described device time, carry out data interaction by described first connection and described client.
The present invention includes A27, a kind of connection switched system, described system comprises: client, first accelerates server, service server; Wherein, described client and described service server establish first and are connected and connect by described first and carry out data interaction;
Described client, for determining the first acceleration server that will be switched to, connect by described first, send to described service server and carry the handover request that described first accelerates the server identification information of server, accelerate server foundation by described first to be connected with second of described service server, send the data to described first and accelerate server;
Described first accelerates server, for when receiving the connection establishment request that described client sends, setting up be connected with second of described service server for described client; When receiving the data that described client sends, the server identification information that described first accelerates server being added in described data, and sends to described service server;
Described service server, connect by described first the handover request of carrying server identification information sent for receiving described client, receive described first and accelerate the data of carrying server identification information of server by the second connection transmission, judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request, if, then connect by described second and carry out data interaction with described client, otherwise, refuse to connect by described second to carry out data interaction with described client.
A28, system as described in A27, wherein, described client specifically for, send to described service server and carry the handover request that described first accelerates the server identification information of server and the client identification information of described client, and before sending the data to described first acceleration server, sent to by described client identification information described first to accelerate server;
Described first accelerate server specifically for, after receiving the data that described client sends, the server identification information and the described client identification information that receives that accelerate server by described first add in described data;
Described service server specifically for, after receiving the data of the first acceleration server transmission, when the server identification information carried in the data determining to receive is identical with the server identification information carried in described handover request, and when determining that the client identification information that carries in the data received is identical with the client identification information carried in described handover request, connect by described second and carry out data interaction with described client.
A29, system as described in A27, wherein, described system also comprises: second accelerates server;
Described client also for, carrying out in the process of data interaction by described second connection with described service server, when determine to be switched to by second accelerate server be connected with described service server time, disconnect described second to connect, connect by described first, resend to described service server and carry the handover request that described second accelerates the server identification information of server, accelerate server foundation by described second to be connected with the 3rd of described service server, send the data to described second and accelerate server;
Described second accelerates server, adds in described data for the server identification information accelerating server by described second, and sends to described service server by described 3rd connection;
Described service server also for, when the server identification information carried in the data determining to receive is identical with the server identification information carried in the handover request that described client resends, connects by the described 3rd and carry out data interaction with described client.

Claims (10)

1. a connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Determine the first acceleration server that will be switched to;
The handover request sending the server identification information carrying described first acceleration server to described service server is connected by described first;
Accelerate server foundation by described first to be connected with second of described service server;
Send the data to described first and accelerate server, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described client to make described service server.
2. the method for claim 1, wherein determine that the first acceleration server that will be switched to comprises further:
To the first time of delay that described first connects, and monitored by the second time of delay that each acceleration server is connected to service server;
When monitoring existence and being less than second time of delay of described first time of delay, be defined as by the acceleration server corresponding the second minimum time of delay being switched to first accelerates server.
3., before the method for claim 1, wherein described service server carries out data interaction by described second connection and described client, also comprise:
Described service server determines that the server identification information carried in the data received is identical with the server identification information carried in described handover request.
4. the method as described in claim 1 or 3, wherein, the handover request sending the server identification information carrying described first acceleration server to described service server comprises further:
Send to described service server and carry the handover request that described first accelerates the server identification information of server and the client identification information of described client;
Before sending the data to described first acceleration server, also comprise:
Described first is sent to by described client identification information to accelerate server;
Described first acceleration server adds the server identification information that described first accelerates server to described data and comprises further:
Described first accelerates server adds in described data by the described first server identification information accelerating server with the described client identification information received;
Described service server also comprises before carrying out data interaction by described second connection and described client:
Described service server determines that the client identification information carried in the data received is identical with the client identification information carried in described handover request.
5. a connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Accelerate the connection establishment request that server receives the transmission of described client, and be that the foundation of described client is connected with second of described service server;
Described acceleration server receives the data that described client sends;
The server identification information of described acceleration server is added in described data, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
6. a connection switching method, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described method comprises:
Receive described client and connect by described first the handover request of carrying server identification information sent;
Receive the data of carrying server identification information accelerated server and connect transmission by second, wherein, described second connect be described client is set up by described acceleration server with the connection of described service server, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request;
If so, then connect by described second and carry out data interaction with described client;
Otherwise, refuse to connect by described second to carry out data interaction with described client.
7. a connection switching apparatus, for switching the connection between described device and service server, wherein, described device and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Switch determination module, for determining the first acceleration server that will be switched to;
Request sending module, for connecting by described first the handover request sending the server identification information carrying described first acceleration server to described service server;
Link block, is connected with second of described service server for accelerating server foundation by described first;
Data transmission blocks, server is accelerated for sending the data to described first, making described first to accelerate server adds in described data by the server identification information that described first accelerates server, and send to described service server by described second connection, carry out data interaction by described second connection with described device to make described service server.
8. a connection switching apparatus, for switching the connection between client and service server, wherein, client and service server establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Link block for receiving the connection establishment request that described client sends, and is that the foundation of described client is connected with second of described service server;
Data reception module, for receiving the data that described client sends;
Sending module, for being added in described data by the server identification information of described device, and sends to described service server, described service server is connected by described second and carries out data interaction with described client.
9. a connection switching apparatus, for switching the connection between client and described device, wherein, client and described device establish first and are connected and connect by described first and carry out data interaction, and described device comprises:
Request receiving module, connects by described first the handover request of carrying server identification information sent for receiving described client;
Data reception module, for receiving the data of carrying server identification information accelerated server and sent by the second connection, wherein, described second connect be described client is set up by described acceleration server with the connection of described device, described in carry server identification information data described acceleration server the server identification information of described acceleration server is added in the data of described client transmission and obtains;
Whether judge module is identical with the server identification information carried in described handover request for judging the server identification information carried in the data that receive;
Data transmission blocks, for when the judged result of described judge module is for being, connect by described second and carry out data interaction with described client, when the judged result of described judge module is no, refuse to connect by described second to carry out data interaction with described client.
10. connect a switched system, described system comprises: client, first accelerates server, service server; Wherein, described client and described service server establish first and are connected and connect by described first and carry out data interaction;
Described client, for determining the first acceleration server that will be switched to, connect by described first, send to described service server and carry the handover request that described first accelerates the server identification information of server, accelerate server foundation by described first to be connected with second of described service server, send the data to described first and accelerate server;
Described first accelerates server, for when receiving the connection establishment request that described client sends, setting up be connected with second of described service server for described client; When receiving the data that described client sends, the server identification information that described first accelerates server being added in described data, and sends to described service server;
Described service server, connect by described first the handover request of carrying server identification information sent for receiving described client, receive described first and accelerate the data of carrying server identification information of server by the second connection transmission, judge that whether the server identification information carried in the data received is identical with the server identification information carried in described handover request, if, then connect by described second and carry out data interaction with described client, otherwise, refuse to connect by described second to carry out data interaction with described client.
CN201410114705.6A 2014-03-25 2014-03-25 A kind of connection switching method, apparatus and system Active CN104954321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410114705.6A CN104954321B (en) 2014-03-25 2014-03-25 A kind of connection switching method, apparatus and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410114705.6A CN104954321B (en) 2014-03-25 2014-03-25 A kind of connection switching method, apparatus and system

Publications (2)

Publication Number Publication Date
CN104954321A true CN104954321A (en) 2015-09-30
CN104954321B CN104954321B (en) 2019-05-07

Family

ID=54168681

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410114705.6A Active CN104954321B (en) 2014-03-25 2014-03-25 A kind of connection switching method, apparatus and system

Country Status (1)

Country Link
CN (1) CN104954321B (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN106921730A (en) * 2017-01-24 2017-07-04 腾讯科技(深圳)有限公司 The changing method and system of a kind of game server
CN107707943A (en) * 2017-06-29 2018-02-16 贵州白山云科技有限公司 A kind of method and system for realizing cloud service fusion
WO2018191977A1 (en) * 2017-04-21 2018-10-25 华为技术有限公司 Application data migration method and network device
CN111600794A (en) * 2020-07-24 2020-08-28 腾讯科技(深圳)有限公司 Server switching method, terminal, server and storage medium
CN112235399A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Content pushing method and device, computer equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020163746A1 (en) * 2001-05-04 2002-11-07 Chang David Y. Server accelerator switch
CN101646216A (en) * 2009-08-28 2010-02-10 中兴通讯股份有限公司 System and method for maintaining business continuity among different access networks
CN101741741A (en) * 2008-11-25 2010-06-16 美国博通公司 Communication method and communication system
CN101827020A (en) * 2010-03-03 2010-09-08 深圳市深信服电子科技有限公司 Method and system for speeding up built persistent connection without disconnection
CN102916950A (en) * 2012-10-12 2013-02-06 苏州阔地网络科技有限公司 Method and system for transmitting streaming media

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020163746A1 (en) * 2001-05-04 2002-11-07 Chang David Y. Server accelerator switch
CN101741741A (en) * 2008-11-25 2010-06-16 美国博通公司 Communication method and communication system
CN101646216A (en) * 2009-08-28 2010-02-10 中兴通讯股份有限公司 System and method for maintaining business continuity among different access networks
CN101827020A (en) * 2010-03-03 2010-09-08 深圳市深信服电子科技有限公司 Method and system for speeding up built persistent connection without disconnection
CN102916950A (en) * 2012-10-12 2013-02-06 苏州阔地网络科技有限公司 Method and system for transmitting streaming media

Cited By (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106302434A (en) * 2016-08-11 2017-01-04 腾讯科技(深圳)有限公司 Server adaptation method, device and system
CN106302434B (en) * 2016-08-11 2022-01-14 腾讯科技(深圳)有限公司 Server adaptation method, device and system
US11110347B2 (en) 2017-01-24 2021-09-07 Tencent Technology (Shenzhen) Company Ltd Game server switching method, apparatus, and system
CN106921730A (en) * 2017-01-24 2017-07-04 腾讯科技(深圳)有限公司 The changing method and system of a kind of game server
US11612811B2 (en) 2017-01-24 2023-03-28 Tencent Technology (Shenzhen) Company Ltd Game server switching method, apparatus, and system
WO2018137523A1 (en) * 2017-01-24 2018-08-02 腾讯科技(深圳)有限公司 Game server switching method, relevant device and system
CN106921730B (en) * 2017-01-24 2019-08-30 腾讯科技(深圳)有限公司 A kind of switching method and system of game server
WO2018191977A1 (en) * 2017-04-21 2018-10-25 华为技术有限公司 Application data migration method and network device
CN109792447A (en) * 2017-04-21 2019-05-21 华为技术有限公司 Using data migration method and the network equipment
EP3605990A4 (en) * 2017-04-21 2020-02-05 Huawei Technologies Co., Ltd. Application data migration method and network device
US10827003B2 (en) 2017-04-21 2020-11-03 Huawei Technologies Co., Ltd. Application data migration method and network device
CN109792447B (en) * 2017-04-21 2020-11-06 华为技术有限公司 Application data migration method and network equipment
CN107707943B (en) * 2017-06-29 2018-09-18 贵州白山云科技有限公司 A kind of method and system for realizing cloud service fusion
CN107707943A (en) * 2017-06-29 2018-02-16 贵州白山云科技有限公司 A kind of method and system for realizing cloud service fusion
CN111600794A (en) * 2020-07-24 2020-08-28 腾讯科技(深圳)有限公司 Server switching method, terminal, server and storage medium
CN112235399A (en) * 2020-10-14 2021-01-15 腾讯科技(深圳)有限公司 Content pushing method and device, computer equipment and storage medium
CN112235399B (en) * 2020-10-14 2024-01-02 腾讯科技(深圳)有限公司 Content pushing method, device, computer equipment and storage medium

Also Published As

Publication number Publication date
CN104954321B (en) 2019-05-07

Similar Documents

Publication Publication Date Title
CN104954321A (en) Connection switching method, device and system
CN103339901B (en) Terminal in content guiding network environment and the communication means of intermediate node and terminal and intermediate node
CN104601682A (en) Method for switching gateway of internet of things as well as associated device and system
CN102932352B (en) The method that communicates and server is carried out with client
CN104092792A (en) Method, system and client-side for achieving flow optimization based on domain name resolution request
CN103973555A (en) GRE protocol tunnel building method, communication device and communication system
CN109155939A (en) A kind of load migration method, apparatus and system
CN101771604A (en) Routing detection method, system and intermediate routing device
CN104519138B (en) A kind of data transmission method and system based on distributed FTP
CN109561167A (en) A kind of domain name analytic method and device
CN104426816A (en) Virtual machine communication method and device
CN104468389A (en) Message processing method, servers and server system
CN113596792A (en) Binding method and device of electronic equipment, storage medium and electronic device
CN112954770A (en) Device binding method and device, storage medium and electronic device
CN101877841B (en) Method, system and network equipment for realizing urgent services
CN106657076B (en) TCP service implementation method and device for network name space
EP2480009A1 (en) Multimedia message transmission method and apparatus thereof, and domain name server
CN104320766A (en) Spam short message identification method, device and equipment
CN111600769A (en) Site detection method and device and storage medium
CN103138961B (en) server control method, controlled server and central control server
CN104980978A (en) WiFi access point switching method and device
CN114301989A (en) Information transmission method, device and system
CN105009097A (en) Message transmission device, message transmission method, and message transmission program
CN113535402A (en) Load balancing processing method and device based on 5G MEC and electronic equipment
CN104581796A (en) Sending method of M2M application request, CSE and system

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
TR01 Transfer of patent right

Effective date of registration: 20220715

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

TR01 Transfer of patent right