The invention discloses a P2P streaming media
system data request scheduling method based on a mixed dynamic
priority queue, comprising the following steps: respectively create a scheduling
time limit priority queue and a scheduling scarcity degree
priority queue at a data sending node; playing
time limit information and scarcity degree information are included in a
data request which is sent by a data receiving node; when each
data request is arrived at the data sending node, respectively insert the data request into the corresponding positions of the scheduling
time limit priority
queue and the scheduling scarcity degree priority
queue according to the scheduling time limit and the scarcity degree; when the data is scheduled, prior schedule a request of which the scheduling time limit is out of date in next scheduling cycle, secondly, prior schedule according to the scarcity degree, when each
data scheduling is finished, delete a scheduled data request from two queues, and adjust the scheduling time limit of each data request in the scheduling time limit priority
queue. Higher average data block arrive on
time rate and node uploading
bandwidth utilization ratio can be obtained by the method in the invention, thereby having better media playback quality.