The embodiment of the invention discloses a message dispatching method and a device thereof and relates to the field of communication, the
utilization rate of
data cache can be raised, and resources are saved. The method comprises the following step: (1) the message dispatching device receives a message and stores the message into internal
package cache, the message information is extracted and
queue entering request information is generated, and the
queue entering request information comprises a
queue number and a
message length; (2) the corresponding queue descriptor is read from a stored queue descriptor
list according to the
queue number; (3) whether a packet is lost or not is judged according to the queue descriptor, and if a judgment result is that the packet is lost, first queue entering
request response information is generated according to the data length, the
message length and the unit space size of a queue
tail message descriptor in the queue message descriptor; (4) the message is written into an external memory according to the first queue entering response information, queue entering information is generated, and the message enters the queue according to the queue entering information. The message dispatching method and the device are used for the message dispatching.