Method, device, and system for message distribution
First Claim
1. A method for message distribution, comprising:
- extracting, by a load balance (LB) device, a first ID from a first type of session message, wherein the first ID is a terminal number of a first terminal transmitting or receiving the first type of session message;
creating a session by using the first ID as a key word, and holding the session;
allocating a cluster node corresponding to the session;
distributing the first type of session message to a User Information Database (UIDB) in the cluster node corresponding to the session;
upon receiving a second type of session message, extracting, by the LB device, a second ID from the second type of session message, wherein the first type of session message is a session control message and the second type of session message is a session traffic message;
determining, according to the second ID, whether the second type of session message is associated with the session created by using the first ID, wherein the determining comprises;
extracting a third ID from the first type of session message, the third ID being the IP address of the first terminal transmitting or receiving the first type of session message, and creating a correspondence relationship between the IP address and the terminal number;
upon receiving the second type of session message, extracting the second ID from the type of session message, the second ID being the IP address of a second terminal transmitting or receiving the second type of session message;
based on the correspondence relationship between the IP address and the terminal number, searching for a terminal number corresponding to the second ID;
determining whether the found terminal number is same as the key word for creating the session; and
if the found terminal number is same as the key word, associating the second type of session message with the session; and
distributing the second type of session message to a Wireless Application Protocol (WAP) Gateway (GW) in the cluster node corresponding to the session when the second type of session message is associated with the session.
1 Assignment
0 Petitions
Accused Products
Abstract
The disclosure relates to a message distribution method, device, and system. A message distribution method includes: creating a session based on a received first type of session message and allocating a corresponding cluster node to the session; and upon receiving a second type of session message associated with the session, distributing the second type of session message to the cluster node corresponding to the session. With the technical solution according to the embodiments of the invention, both the first type of session message and the second type of session message may be processed on the same cluster node, smooth and dynamic capacity expansion may be achieved for the cluster, the system performance may be enhanced, and system maintenance may be facilitated.
-
Citations
11 Claims
-
1. A method for message distribution, comprising:
-
extracting, by a load balance (LB) device, a first ID from a first type of session message, wherein the first ID is a terminal number of a first terminal transmitting or receiving the first type of session message; creating a session by using the first ID as a key word, and holding the session;
allocating a cluster node corresponding to the session;distributing the first type of session message to a User Information Database (UIDB) in the cluster node corresponding to the session; upon receiving a second type of session message, extracting, by the LB device, a second ID from the second type of session message, wherein the first type of session message is a session control message and the second type of session message is a session traffic message; determining, according to the second ID, whether the second type of session message is associated with the session created by using the first ID, wherein the determining comprises; extracting a third ID from the first type of session message, the third ID being the IP address of the first terminal transmitting or receiving the first type of session message, and creating a correspondence relationship between the IP address and the terminal number; upon receiving the second type of session message, extracting the second ID from the type of session message, the second ID being the IP address of a second terminal transmitting or receiving the second type of session message; based on the correspondence relationship between the IP address and the terminal number, searching for a terminal number corresponding to the second ID; determining whether the found terminal number is same as the key word for creating the session; and if the found terminal number is same as the key word, associating the second type of session message with the session; and distributing the second type of session message to a Wireless Application Protocol (WAP) Gateway (GW) in the cluster node corresponding to the session when the second type of session message is associated with the session. - View Dependent Claims (2, 3, 4, 5)
-
-
6. A load balance device, comprising:
-
a preprocessing unit configured to create a session based on a received first type of session message;
allocate a corresponding cluster node to the session and distributing the first type of session message to a User Information Database (UIDB) in the cluster node corresponding to the session, wherein the first ID is a terminal number of a first terminal transmitting or receiving the first type of session message; anda distribution unit configured to;
upon receiving a second type of session message associated with the session, distribute the second type of session message to a Wireless Application Protocol (WAP) Gateway (GW) in the cluster node corresponding to the session, wherein the second ID is the IP address of a second terminal transmitting or receiving the second type of session message,wherein the preprocessing unit comprises; a first extraction module configured to extract a first ID from the first type of session message; a creation module configured to create the session by using the first ID as a key word, and hold the session; an allocation module, configured to allocate a corresponding cluster node to the session and distributing the first type of session message to the UIDB in the cluster node corresponding to the session; a third extraction module configured to extract a third ID from the first type of session message, the third ID being the IP address of a first terminal transmitting or receiving the first type of session message; and a relationship module configured to create a correspondence relationship between the IP address of the first terminal transmitting or receiving the first type of message and the terminal number; wherein the distribution unit comprises; a receiving module configured to receive a second type of session message, wherein the first type of session message is a session control message and the second type of session message is a session traffic message; a second extraction module configured to extract a second ID from the second type of session message; a determination module configured to determine, according to the second ID, whether the second type of session message is associated with the session created by using the first ID; and a transmission module configured to distribute the second type of session message associated with the session to the WAP GW in the cluster node corresponding to the session when the determination module determines that the second type of session message is associated with the session; and a searching module configured to;
based on the correspondence relationship in the relationship module, search for a terminal number corresponding to the second ID; andwherein the determination module is configured to determine whether the terminal number is same as the key word for creating the session, wherein the second type of session message is associated with the session if the terminal number is same as the key word. - View Dependent Claims (7, 8, 9, 10, 11)
-
Specification