IP Library › Granted Patent US 11,102,272
Granted Patent B2
US 11,102,272 · App. 16/849,715 · Granted Aug 24, 2021

Method and device for downloading resource file

Inventor: Xinying Dai (Shanghai, CN)
Assignee: WANGSU SCIENCE AND TECHNOLOGY CO., LTD.
H04L67/06H04L67/104H04L67/2842
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 11,102,272
App. No.
16/849,715
Granted
Aug 24, 2021
Kind
B2
Abstract

The present disclosure discloses a method and a device for downloading a resource file, which belongs to data transmission technologies. The method is applied to a client in a peer-to-peer network, including: receiving a download request for a target resource file, and determining a data block download sequence of the target resource file ( 201 ); adjusting a download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and a data block consumption progress of the target resource file ( 202 ); and downloading the data blocks of the target resource file through a plurality of download paths with different network qualities based on the adjusted download priority of each of the data blocks ( 203 ).

Claims (60)

1. A method for downloading a resource file, applied to a client in a peer-to-peer network, comprising:

receiving a download request for a target resource file, and determining a data block download sequence of the target resource file;

adjusting a download priority of each of data blocks of the target resource file in real time according to the data block download sequence and a data block consumption progress of the target resource file; and

downloading the data blocks of the target resource file through a plurality of download paths based on the adjusted download priority of each of the data blocks; wherein

the plurality of download paths are distinguished according to different network qualities, and have pre-established correspondences to download priorities; and

downloading the data blocks of the target resource file through the plurality of download paths based on the adjusted download priority of each of the data blocks comprises:

determining a data download range corresponding to a respective one of the plurality of download paths according to the pre-established correspondences; and

downloading data blocks within the data download range through the respective one of the download paths.

2. The method according to claim 1 , wherein the download paths comprise downloading from a CDN node, downloading from a super peer node and/or downloading from a normal peer node.

3. The method according to claim 1 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file comprises:

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as a data cache capacity and a network quality that correspond to each of the download paths.

4. The method according to claim 3 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data cache capacity and the network quality that correspond to each of the download paths comprises:

determining a data download window corresponding to each of the download paths in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data cache capacity corresponding to each of the download paths; and

setting different download priorities for the data blocks in different data download windows according to the network quality of each of the download paths.

5. The method according to claim 1 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file comprises:

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as a minimum consumption rate of the target resource file.

6. The method according to claim 5 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the minimum consumption rate of the target resource file comprises:

setting a data block coverage area corresponding to each of preset download priorities according to the minimum consumption rate of the target resource file; and

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data block coverage area.

7. The method according to claim 1 , wherein downloading the data blocks of the target resource file through the plurality of download paths with different network qualities based on the adjusted download priority of each of the data blocks comprises:

setting a priority increasing threshold corresponding to each of the download paths according to a data download speed of each of the download paths and a minimum consumption rate of the target resource file;

determining a data download range corresponding to each of the download paths based on the adjusted download priority of each of the data blocks and the network qualities of different download paths; and

selecting, for the data blocks within any one of data download ranges, a target download path based on the priority increasing threshold and a random number, and downloading the data blocks through the target download path.

8. The method according to claim 1 , wherein after receiving the download request for the target resource file, the method further comprises:

acquiring download configuration information of the target resource file from a preset configuration server in the peer-to-peer network, wherein the download configuration information comprises data block information and a minimum consumption rate of the target resource file and a data cache capacity corresponding to each of the download paths.

9. The method according to claim 1 , wherein downloading the data blocks of the target resource file through the plurality of download paths with different network qualities based on the adjusted download priority of each of the data blocks comprises:

downloading the data blocks of the target resource file through the plurality of download paths with the different network qualities based on the adjusted download priority of each of the data blocks and node load conditions corresponding to different download paths.

10. A client, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by the processor to perform the following method:

receiving a download request for a target resource file, and determining a data block download sequence of the target resource file;

adjusting a download priority of each of data blocks of the target resource file in real time according to the data block download sequence and a data block consumption progress of the target resource file; and

downloading the data blocks of the target resource file through a plurality of download paths based on the adjusted download priority of each of the data blocks; wherein

the plurality of download paths are distinguished according to different network qualities, and have pre-established correspondences to download priorities; and

downloading the data blocks of the target resource file through the plurality of download paths based on the adjusted download priority of each of the data blocks comprises:

determining a data download range corresponding to a respective one of the plurality of download paths according to the pre-established correspondences; and

downloading data blocks within the data download range through the respective one of the download paths.

11. The client according to claim 10 , wherein the download paths comprise downloading from a CDN node, downloading from a super peer node and/or downloading from a normal peer node.

12. The client according to claim 10 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file comprises:

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as a data cache capacity and a network quality that correspond to each of the download paths.

13. The client according to claim 12 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data cache capacity and the network quality that correspond to each of the download paths comprises:

determining a data download window corresponding to each of the download paths in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data cache capacity corresponding to each of the download paths; and

setting different download priorities for the data blocks in different data download windows according to the network quality of each of the download paths.

14. The client according to claim 10 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file comprises:

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as a minimum consumption rate of the target resource file.

15. The client according to claim 14 , wherein adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the minimum consumption rate of the target resource file comprises:

setting a data block coverage area corresponding to each of preset download priorities according to the minimum consumption rate of the target resource file; and

adjusting the download priority of each of the data blocks of the target resource file in real time according to the data block download sequence and the data block consumption progress of the target resource file as well as the data block coverage area.

16. The client according to claim 10 , wherein downloading the data blocks of the target resource file through the plurality of download paths with different network qualities based on the adjusted download priority of each of the data blocks comprises:

setting a priority increasing threshold corresponding to each of the download paths according to a data download speed of each of the download paths and a minimum consumption rate of the target resource file;

determining a data download range corresponding to each of the download paths based on the adjusted download priority of each of the data blocks and the network qualities of different download paths; and

selecting, for the data blocks within any one of data download ranges, a target download path based on the priority increasing threshold and a random number, and downloading the data blocks through the target download path.

17. The client according to claim 10 , wherein after receiving the download request for the target resource file, the method further comprises:

acquiring download configuration information of the target resource file from a preset configuration server in a peer-to-peer network, wherein the download configuration information comprises data block information and a minimum consumption rate of the target resource file and a data cache capacity corresponding to each of the download paths.

18. A computer readable storage medium, wherein the storage medium stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, the at least one program, the code set or the instruction set is loaded and executed by a processor to perform the following method:

receiving a download request for a target resource file, and determining a data block download sequence of the target resource file;

adjusting a download priority of each of data blocks of the target resource file in real time according to the data block download sequence and a data block consumption progress of the target resource file; and

downloading the data blocks of the target resource file through a plurality of download paths based on the adjusted download priority of each of the data blocks; wherein

the plurality of download paths are distinguished according to different network qualities, and have pre-established correspondences to download priorities; and

downloading the data blocks of the target resource file through the plurality of download paths based on the adjusted download priority of each of the data blocks comprises:

determining a data download range corresponding to a respective one of the plurality of download paths according to the pre-established correspondences; and

downloading data blocks within the data download range through the respective one of the download paths.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jul 21, 2021
From: DAI, XINYING
To: WANGSU SCIENCE & TECHNOLOGY CO. LTD.
Reel/Frame 056939/0712 →
Priority Claims (1)
CN 201911319000.7 · Dec 19, 2019 · national
Continuity (2)
Continuation PCTCN2020074959 · Feb 12, 2020
Related Publication 20210194951A1 · Jun 24, 2021