Patent ID: 8856243

Claim:
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.