Load balancing method, device and system based on user identification
A technology of load balancing and user identification, applied in the field of communication, can solve problems such as the inability to effectively cope with the increase in the number of network users, the lack of a server load balancing solution, etc., and achieve the effect of load balancing
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0030] The embodiment of the present invention provides a load balancing method based on user identification, image 3 is the flowchart of the method, such as image 3 As shown, the method includes:
[0031] Step 301, receiving login data including PeerID from the client, wherein the PeerID is randomly generated by the client;
[0032] Step 302, verifying whether the PeerID matches itself according to the configuration list, the configuration list includes the mapping relationship between server information and PeerID in the system;
[0033] Step 303, if it is judged that the PeerID does not match itself according to the mapping relationship, then search for a server matching the PeerID, and send the server information matching the PeerID to the client;
[0034] Step 304, if the PeerID matches itself, determine whether the PeerID is unique;
[0035] Step 305, if the PeerID is unique, then generate a login success message and send it to the client, otherwise, go to step 306;...
Embodiment 2
[0051] The embodiment of the present invention also provides a load balancing device based on user identification, preferably, the device is used to implement the method in the first embodiment, such as Figure 5 As shown, the device includes:
[0052] The login data receiving unit 1 is used to receive the login data including PeerID from the client, wherein the PeerID is randomly generated by the client;
[0053] Data matching unit 2 is used to verify whether PeerID matches itself according to the configuration list, and the configuration list includes the mapping relationship between server information and PeerID in the system;
[0054] Matching server search unit 3 is used to search for a server matching PeerID when judging that PeerID does not match itself according to the mapping relationship;
[0055] Matching server information sending unit 4, for sending the server information matched with PeerID to the client;
[0056] Data uniqueness judging unit 5, for judging whe...
Embodiment 3
[0068] The embodiment of the present invention also provides a load balancing system based on user identification, such as Figure 7 As shown, the system includes the load balancing device and the client in the second embodiment above. In actual operation, the load balancing device and the server can be set as one.
[0069] Clients are mainly mobile terminal devices, such as Figure 8 As shown, the working principle of the client is: when the client device is started, the PeerID generation function of the client will randomly generate a 32-64-bit PeerID; after that, the client device will send the login packet containing the PeerID information through the network transmission protocol to the server.
[0070] The server side includes a load balancing device, such as Figure 9 As shown, the working principle of the server is: the message processing module of the server receives the login packet containing PeerID information from the client; the message processing module checks...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 