P2P download task scheduling method and system
A task scheduling and task decomposition technology, which is applied in transmission systems, digital transmission systems, electrical components, etc., can solve the problem that the contribution equipment cannot fully accommodate the download task data, and achieve the effect of reducing the burden, lowering the entry threshold, and increasing the income
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0044] Such as figure 1 As shown, the present invention provides a P2P download task scheduling method, comprising:
[0045] Step S11, decompose all download tasks into several data blocks of fixed size, specifically, all data to be downloaded, with data blocks as the scheduling unit, the size of a data block can be set to 64MB or other data that is more effective according to operating experience Block size, the data block size of the entire scheduling system is the same, so that the download task with a large amount of data can be decomposed into multiple data blocks to participate in scheduling;
[0046] Step S12, scoring each data block and sorting the scoring values;
[0047] Step S13, determining the number of available data blocks (capacity) according to the capacity of the contributing device;
[0048] Step S14, according to the number of obtainable data blocks, obtain the data blocks with the highest score value and store them in the contribution device, that is, ea...
Embodiment 2
[0053] Such as figure 2 As shown, the present invention provides another P2P download task scheduling method. The difference between this embodiment and Embodiment 2 is that in this embodiment, each data block is scored according to the current number of contributing devices of the data block and the attributes of the data block And sort the scoring value, so that the scoring value can be adjusted according to the number of contributing devices and the attributes of the data block, including:
[0054]In step S21, all download tasks are decomposed into several data blocks of a fixed size, specifically, all data to be downloaded is scheduled with a data block as a scheduling unit. The size of a data block can be set to 64MB, or other data block sizes that are more effective according to operating experience. The data block size of the entire scheduling system is the same, so that download tasks with a large amount of data can be decomposed into multiple data blocks to participa...
Embodiment 3
[0064] Such as image 3 As shown, the present invention provides another P2P download task scheduling method. The difference between this embodiment and Embodiment 3 is that in this embodiment, according to scoring value = net contribution traffic price * log (preferred level) / log (contribution time limit) / The formula for the current number of contributing devices is used to score and sort the scoring values, so that the scoring values can be adjusted according to the number of contributing devices and the contribution time limit, net contribution traffic price and priority, including:
[0065] In step S31, all download tasks are decomposed into several data blocks of a fixed size (blocks). Specifically, all data to be downloaded is scheduled with a data block as a scheduling unit. The size of a data block can be set to 64MB, or other data block sizes that are more effective according to operating experience. The data block size of the entire scheduling system is the sam...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 