The application discloses a data
queue management method and
system based on a balanced
binary tree, relates to communication technology, and comprises the following steps: establishing a
data node structure of a balanced
binary tree; receiving or sending data through a
queue according to task requirements, wherein, in the case that a communication node sends data outward, a corresponding sending
queue is established based on the balanced
binary tree; in the case that the communication node receives data, a
data node is inserted into the balanced binary tree, and when the priority of data to be inserted is higher than that of a leaf node to be sent redundantly, the data is inserted after the corresponding leaf node; and after the
insertion or deletion operation is completed, the balanced binary tree is balanced by rotating left or right according to a balance factor of the balanced binary tree. The method adjusts the priority of different data types according to different types of data, prevents the accumulation of the same
data link table in the balanced binary tree, and improves the sending efficiency of the balanced binary tree queue.