The invention discloses a
message forwarding system and a method. The
message forwarding system comprises a
session management module, a
message processing module, a first judgment module, a second judgment module, a receiving
queue and a sending
queue comprising a
priority queue and a common
queue. The
message forwarding method comprises steps: the
session management module and a
client build session, IP addresses and port numbers are distributed, and the message sent by the
client is put in the receiving queue; the
message processing module takes the message in the receiving queue and analyzes the
IP address and the port number of the
client, and the protocol type and the length of the message; and the first judgment module and the second judgment module judge whether the analyzed
IP address, the port number, the protocol type and the length meet set conditions, and the
message processing module puts the message in the common queue or the
priority queue for priority forwarding according to the judgment result. The message with large
data traffic can be prevented from being blocked at the forwarding end, and the accuracy and the forwarding efficiency for message forwarding can also be improved.