US8996704B2ActiveUtilityA1

Method and system for connecting clients with server

45
Assignee: WANG ZHIHONGPriority: Oct 8, 2011Filed: Sep 11, 2012Granted: Mar 31, 2015
Est. expiryOct 8, 2031(~5.3 yrs left)· nominal 20-yr term from priority
Inventors:Zhihong Wang
H04L 67/14H04L 65/1069
45
PatentIndex Score
0
Cited by
4
References
11
Claims

Abstract

The present invention discloses a method for connecting clients with a server. The method includes: the client obtains random number seed information; the client calculates out a random delay time according to the random number seed information and a random function after the client is disconnected from the server, wherein the random delay time is a delay time for reconnection between the client and the server; and the client sends a connection request to the server upon expiry of the random delay time. Therefore, when the server is restarted or breaks down, each client delays the connection according to the random delay time calculated by them respectively, thereby preventing plenty of clients from requesting to connect to the server simultaneously and avoiding service interruption of the server.

Claims

exact text as granted — not AI-modified
What is claimed is: 
     
       1. A method for connecting a client with a server, comprising:
 obtaining, by the client, random number seed information; 
 calculating, by the client, a random delay time according to the random number seed information and a random function after the client is disconnected from the server, wherein the random delay time is a delay time for reconnection between the client and the server; and 
 sending, by the client, a connection request to the server upon expiry of the random delay time, wherein the connection request is used for requesting to reconnect to the server; 
 wherein the random number seed information=(number of all client connections bearable by the server/number of client connections bearable by the server per second)*adjustment factor, wherein 
 the adjustment factor is a coefficient for adjusting size of a random number seed. 
 
     
     
       2. The method for connecting a client with a server according to  claim 1 , wherein:
 the random number seed information is obtained by the client from the server or configured by the client itself. 
 
     
     
       3. The method for connecting a client with a server according to  claim 1 , wherein:
 after the client obtains the random number seed information, the method further comprises: 
 updating the random number seed information stored in the client if the random number seed information obtained by the client is new. 
 
     
     
       4. The method for connecting a client with a server according to  claim 3 , wherein:
 the new random number seed information is obtained by the client from the server or configured by the client itself. 
 
     
     
       5. The method for connecting a client with a server according to  claim 1 , wherein:
 before obtaining the random number seed information, the client obtains a default value of the random number seed information. 
 
     
     
       6. The method for connecting a client with a server according to  claim 5 , wherein:
 if the client stores the random number seed information, the client calculates the random delay time according to the random number seed information and the random function, wherein the random delay time is the delay time for reconnection between the client and the server; and 
 if the client fails to receive or store the random number seed information or loses the random number seed information, the client calculates the random delay time according to the default value of the random number seed information and the random function, wherein the random delay time is the delay time for reconnection between the client and the server. 
 
     
     
       7. A system for handling connections between a client and a server, comprising the client and the server, wherein:
 the client is configured to: obtain random number seed information; calculate a random delay time according to the random number seed information and a random function after the client is disconnected from the server, wherein the random delay time is a delay time for reconnection between the client and the server; and send a connection request to the server upon expiry of the random delay time, wherein the connection request is used for requesting to reconnect to the server; and 
 the server is configured to generate the random number seed information and send the random number seed information to the client; 
 wherein the random number seed information=(number of all client connections bearable by the server/number of client connections bearable by the server per second)*adjustment factor, wherein 
 the adjustment factor is a coefficient for adjusting size of a random number seed. 
 
     
     
       8. A client, comprising a processor and a non-transitory processor-readable medium having processor-executable instructions stored thereon, wherein, the processor is configured to comprising:
 an obtaining unit, configured to obtain random number seed information; 
 a calculating unit, configured to calculate a random delay time according to the random number seed information and a random function, wherein the random delay time is a delay time for reconnection between the client and a server; and 
 a requesting unit, configured to send a connection request to the server upon expiry of the random delay time, wherein the connection request is used for requesting to reconnect to the server; 
 wherein the random number seed information=(number of all client connections bearable by the server/number of client connections bearable by the server per second)*adjustment factor, wherein 
 the adjustment factor is a coefficient for adjusting size of a random number seed. 
 
     
     
       9. The client according to  claim 8 , wherein the processor is further configured to comprising:
 an updating unit, configured to update the random number seed information. 
 
     
     
       10. A server, comprising a processor and a non-transitory processor-readable medium having processor-executable instructions stored thereon, wherein, the processor is configured to:
 an information generating unit, configured to generate random number seed information; and 
 a sending unit, configured to send the random number seed information to a client; wherein the random number seed information is a delay random number seed for calculating a random delay time after the client is disconnected from the server, and the random delay time is a delay time for reconnection between the client and the server; and 
 receive a connection request sent by the client upon expiry of the random delay time, wherein the connection request is used for requesting to reconnect to the server; 
 wherein the random number seed information=(number of all client connections bearable by the server/number of client connections bearable by the server per second)*adjustment factor, wherein 
 the adjustment factor is a coefficient for adjusting size of a random number seed. 
 
     
     
       11. The server according to  claim 10 , wherein the processor is further configured to further comprising:
 an answering unit, configured to answer the client's request for obtaining the random number seed information.

Cited by (0)

No later patents cite this yet.

References (0)

No backward citations on record.