CN106027582A - Content-related parallel downloading method and device - Google Patents

Content-related parallel downloading method and device Download PDF

Info

Publication number
CN106027582A
CN106027582A CN201510588898.3A CN201510588898A CN106027582A CN 106027582 A CN106027582 A CN 106027582A CN 201510588898 A CN201510588898 A CN 201510588898A CN 106027582 A CN106027582 A CN 106027582A
Authority
CN
China
Prior art keywords
download
downloading
content
thread
downloaded
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201510588898.3A
Other languages
Chinese (zh)
Inventor
张树坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vision Network (beijing) Technology Co Ltd
Original Assignee
Vision Network (beijing) Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vision Network (beijing) Technology Co Ltd filed Critical Vision Network (beijing) Technology Co Ltd
Priority to CN201510588898.3A priority Critical patent/CN106027582A/en
Publication of CN106027582A publication Critical patent/CN106027582A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Abstract

The invention discloses a content-related parallel downloading method, and the method comprises the following steps that A, a device obtains a downloading descriptor corresponding a downloaded content, and obtains the source information of the downloaded content through the corresponding relation of the downloading descriptor; B, the device respectively builds corresponding threads through employing a plurality of downloaded content blocks; C, the device builds a download connection through the downloading threads, and transmits a downloading request of the downloaded content blocks to a downloading server; D, the device obtains the downloaded content blocks, and then assembles the downloaded content blocks into the complete downloaded content. The invention also discloses a content-related parallel downloading device, and the device comprises a downloading agent unit, a descriptor processing unit, a parallel downloading management unit, a downloading request unit, a downloading thread building unit, and an assistant downloading unit. The method and device can build a new downloading task for a downloading thread which completes a downloading task, so as to assist other downloading threads for downloading, thereby effectively improving the downloading speed and robustness, and enabling the downloading to be more unhindered.

Description

Method for parallel downloading that a kind of content is relevant and device
Technical field
The present invention relates to computer and the communications field, particularly relate to the relevant method for parallel downloading of a kind of content and device.
Background technology
Along with being showing improvement or progress day by day of internet industry, download technology development, user can pass through the Internet download rich in natural resources. In order to promote speed of download, multithreading is currently mainly used to download.During multithreading is downloaded, if server is to a certain The response of download thread is the slowest, can affect the response speed of whole downloading task.Such as, if in the response of this download thread Disconnected, and other download thread of downloading task are complete, the most whole downloading task can be blocked in the download thread of this interruption, Until the response of this download thread recovers, and when completing the task of this download thread, whole downloading task just can complete.Cause This, in existing download technology, can affect slowly because of the response speed of some or multiple download thread, easily occur downloading Slowly, download the problems such as obstruction, have a strong impact on the downloading experience of user.
Existing over the air provides two download scenarios, and the most single content is downloaded and serial download, but On total download time, do not reduce.
Summary of the invention
The present invention provides the method for parallel downloading and device that a kind of content is relevant, exists under serial in order to solving in prior art Carry time-consuming problem.
The method for parallel downloading that a kind of content that the present invention proposes is relevant includes:
Method for parallel downloading that a kind of content is relevant and device, be applied to support to download system that content can download with piecemeal and Device, it is characterised in that comprise the following steps:
Device obtains downloads the Download Descriptor that content is corresponding, closes by Download Descriptor is corresponding with download content source information System, Download Descriptor can provide multiple download content source information and the data volume of described download content of described download content;
Device uses block algorithm that described file to be downloaded is divided into multiple download content blocks, and according in the plurality of download Hold block and set up the most corresponding multiple download thread;
Device is set up multiple download by multiple download thread and is connected, and sends the plurality of download respectively to download server The download request of content blocks, and the multiple download content blocks described in download;
After multiple download content blocks described in device acquisition, assemble them into complete download content.
Described download content source information, for universal resource locator URI.
The method for parallel downloading that described a kind of content is relevant, it is characterised in that set up many according to the information of file to be downloaded Individual download thread;And
After a download thread in the plurality of download thread completes downloading task, complete downloading task for described Download thread set up newly downloaded task to assist other download thread in the plurality of download thread to be downloaded.
Described download content piecemeal is operated by the data volume according to downloading content.
The described information according to file to be downloaded is set up multiple download thread and is farther included:
Use block algorithm that described file to be downloaded is divided into multiple download content blocks, and according to the plurality of download content blocks Set up the most corresponding multiple download thread;And set up multiple download connection by the plurality of download thread, with respectively according to institute State multiple download content blocks to be downloaded.
The method for parallel downloading that described a kind of content is relevant, it is characterised in that described completed downloading task for described Download thread is set up newly downloaded task and is farther included:
Obtain expected residual download time in other download thread described the longest and/or do not download the downloading wire that content is most Journey, and using the longest for described expected residual download time and/or do not download the most download thread of content as downloading wire to be assisted Journey;And
According to described download thread to be assisted do not download content set up described in completed described in the download thread of downloading task Newly downloaded task.
Described download content piecemeal is operated, is to carry out according to the data volume downloading content.
Also include the step safeguarding download status information, in described download-maintenance information, be provided with described multiple downloads The download status information of content blocks.
Described download status information, completes including not asking, download neutralization download.
Described method, also includes that the step of interrupting information downloaded in record.
Described download interrupting information, including: download content blocks size, download content blocks state, download content blocks interruption Position.
After described download is interrupted recovering, the download content blocks operation described in download, from the beginning of downloading content blocks interruption position.
Also include, according to the data volume downloading content, arranging the step of memory space.
Described memory space, can be the memory space reserved at device.
Described memory space, in downloading process, the memory space of dynamic expansion.
The Parallel download device that a kind of content is relevant, including download agent unit, it is characterised in that also include: at descriptor Reason unit, Parallel download administrative unit, download request unit;
Described download request unit, for downloading server request Download Descriptor and downloading content blocks;
Described descriptor processing unit, for obtaining Download Descriptor, and the download described in parsing from download request unit Descriptor;
Described Parallel download administrative unit, downloads content blocks for obtaining from described download request unit, and is assembled Become complete download content.
Described Parallel download administrative unit, is additionally provided with download status information administrative unit, for block to downloading content State information is managed.
The Parallel download device that described a kind of content is relevant, also includes:
Download thread sets up unit, for setting up multiple download thread according to the information of file to be downloaded;And
Assist download unit, after a download thread in the plurality of download thread completes downloading task, for The described download thread having completed downloading task sets up newly downloaded task to assist other download thread in the plurality of download thread It is downloaded.
Described Parallel download administrative unit, is additionally provided with download interrupt management unit, for downloading in content blocks download Disconnected information is managed, and makees persistence process to downloading content blocks status information.
Described download thread is set up unit and is farther included:
Division unit, is used for using block algorithm that described file to be downloaded is divided into multiple download content blocks, and according to described Multiple download content blocks set up the most corresponding multiple download thread;And
Described assistance download unit farther includes:
Acquiring unit, for obtain expected residual download time in other download thread described the longest and/or in not downloading Hold most download thread, and by the longest for described expected residual download time and/or do not download the most download thread of content and make For download thread to be assisted.
The present invention extends the download scene of OMADL, can a download thread in multiple download thread complete to download After task, set up newly downloaded task for completing the download thread of downloading task, with assist in multiple download thread other under Load thread is downloaded, and is effectively improved speed of download and robustness, it is to avoid one or more download thread response speeds are delayed Slow impact, makes download more smooth and easy, promotes user's downloading experience.Therefore this method is used can to download big chi with fast and reliable Very little download content.

Claims (21)

1. the method for parallel downloading that content is relevant, is applied to support to download system and the device that content can be downloaded with piecemeal, its It is characterised by, comprises the following steps:
Device obtains downloads the Download Descriptor that content is corresponding, by the corresponding relation of Download Descriptor Yu download content source information, Download Descriptor can provide multiple download content source information and the data volume of described download content of described download content;
Device uses block algorithm that described file to be downloaded is divided into multiple download content blocks, and according to the plurality of download content blocks Set up the most corresponding multiple download thread;
Device is set up multiple download by multiple download thread and is connected, and sends the plurality of download content respectively to download server The download request of block, and the multiple download content blocks described in download;
After multiple download content blocks described in device acquisition, assemble them into complete download content.
The method for parallel downloading that a kind of content the most as claimed in claim 1 is relevant, it is characterised in that described download content source Information, for universal resource locator URI.
The method for parallel downloading that a kind of content the most as claimed in claim 1 is relevant, it is characterised in that according to file to be downloaded Information sets up multiple download thread;And
After a download thread in the plurality of download thread completes downloading task, complete under downloading task for described Carry thread and set up newly downloaded task to assist other download thread in the plurality of download thread to be downloaded;
Described download content piecemeal is operated by the data volume according to downloading content.
4. set up multiple download thread according to the information of file to be downloaded as claimed in claim 3 to farther include:
Use block algorithm that described file to be downloaded is divided into multiple download content blocks, and set up according to the plurality of download content blocks The most corresponding multiple download thread;And
Set up multiple download by the plurality of download thread to connect, to be downloaded according to the plurality of download content blocks respectively.
The method for parallel downloading that a kind of content the most as claimed in claim 1 is relevant, it is characterised in that described complete for described The download thread of downloading task is set up newly downloaded task and is farther included:
Obtain expected residual download time in other download thread described the longest and/or do not download the download thread that content is most, and Using the longest for described expected residual download time and/or do not download the most download thread of content as download thread to be assisted;With And
According to described download thread to be assisted do not download content set up described in completed downloading task download thread described new under Load task.
The method for parallel downloading that a kind of content the most as claimed in claim 1 is relevant, it is characterised in that also include safeguarding and download shape The step of state information, in described download-maintenance information, is provided with the download status information of described multiple download content blocks.
The method for parallel downloading that a kind of content the most as claimed in claim 1 is relevant, it is characterised in that described download state letter Breath, completes including not asking, download neutralization download.
The method for parallel downloading that a kind of content the most as claimed in claim 7 is relevant, it is characterised in that in also including that record is downloaded The step of disconnected information.
The method for parallel downloading that a kind of content the most as claimed in claim 8 is relevant, it is characterised in that letter is interrupted in described download Breath, including: download content blocks size, download content blocks state, download content blocks interruption position.
The method for parallel downloading that a kind of content the most as claimed in claim 7 is relevant, it is characterised in that described download is interrupted After recovery, the download content blocks operation described in download, from the beginning of downloading content blocks interruption position.
11. set up newly downloaded task for the described download thread having completed downloading task as claimed in claim 5 farther includes:
Whether the data volume not downloading content of download thread to be assisted described in judgement is less than predetermined threshold value;
If it is determined that less than described predetermined threshold value, then set up according to the described starting point not downloading content and accelerate to download block, treat described The download content blocks assisting download thread is labeled as main download block, and sets up between described main download block and described acceleration download block Incidence relation.
12. set up newly downloaded task for the described download thread having completed downloading task as claimed in claim 5 farther includes:
If the download block of the described download thread having completed downloading task is for downloading content blocks, then stop according to described incidence relation Described download content blocks downloads block as acceleration corresponding during main download block;And
If the described download thread correspondence having completed downloading task is downloaded block and is downloaded block for acceleration, then will according to described incidence relation The described download result accelerating to download block is incorporated into the main download block that described acceleration download block is corresponding.
The method for parallel downloading that 13. a kind of contents as claimed in claim 1 are relevant, it is characterised in that under described device is incited somebody to action During load content blocks is assembled into complete download content, also include, according to the data volume downloading content, arranging the step of memory space Suddenly.
14. arrange memory space method as claimed in claim 13, it is characterised in that described memory space, can be The memory space that device is reserved.
15. arrange memory space method as claimed in claim 13, it is characterised in that described memory space, for downloading Cheng Zhong, the memory space of dynamic expansion.
The Parallel download device that 16. 1 kinds of contents are relevant, including download agent unit, it is characterised in that also include: descriptor Processing unit, Parallel download administrative unit, download request unit;
Described download request unit, for downloading server request Download Descriptor and downloading content blocks;
Described descriptor processing unit, for obtaining Download Descriptor from download request unit, and the download described in parsing describes Symbol;
Described Parallel download administrative unit, downloads content blocks for obtaining from described download request unit, and has assembled them into Whole download content.
The Parallel download device that 17. a kind of contents as claimed in claim 16 are relevant, also includes:
Download thread sets up unit, for setting up multiple download thread according to the information of file to be downloaded;And
Assist download unit, after a download thread in the plurality of download thread completes downloading task, for described The download thread having completed downloading task sets up newly downloaded task to assist other download thread in the plurality of download thread to carry out Download.
The Parallel download device that 18. a kind of contents as claimed in claim 16 are relevant, it is characterised in that described Parallel download Administrative unit, is additionally provided with download status information administrative unit, for being managed download content blocks status information.
The Parallel download device that 19. a kind of contents as claimed in claim 16 are relevant, it is characterised in that described Parallel download Administrative unit, is additionally provided with download interrupt management unit, is managed for download content blocks is downloaded interrupting information, and right Download content blocks status information and make persistence process.
The Parallel download device that 20. a kind of contents as claimed in claim 17 are relevant, it is characterised in that described download thread is built Vertical unit farther includes:
Division unit, is used for using block algorithm that described file to be downloaded is divided into multiple download content blocks, and according to the plurality of Download content blocks and set up the most corresponding multiple download thread.
The Parallel download device that 21. a kind of contents as claimed in claim 17 are relevant, it is characterised in that described assistance is downloaded single Unit farther includes:
Acquiring unit, for obtain expected residual download time in other download thread described the longest and/or do not download content Many download thread, and using the longest for described expected residual download time and/or do not download the most download thread of content as treating Assist download thread.
CN201510588898.3A 2015-09-16 2015-09-16 Content-related parallel downloading method and device Pending CN106027582A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510588898.3A CN106027582A (en) 2015-09-16 2015-09-16 Content-related parallel downloading method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510588898.3A CN106027582A (en) 2015-09-16 2015-09-16 Content-related parallel downloading method and device

Publications (1)

Publication Number Publication Date
CN106027582A true CN106027582A (en) 2016-10-12

Family

ID=57082562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510588898.3A Pending CN106027582A (en) 2015-09-16 2015-09-16 Content-related parallel downloading method and device

Country Status (1)

Country Link
CN (1) CN106027582A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170201566A1 (en) * 2016-01-08 2017-07-13 Guangzhou Uc Network Technology Co., Ltd. File downloading method, apparatus, and terminal device
CN108270871A (en) * 2018-01-29 2018-07-10 广东五科技股份有限公司 The file block method for down loading and device of a kind of client
CN110138867A (en) * 2019-05-17 2019-08-16 哈工大机器人(山东)智能装备研究院 File transmission and method of reseptance, computer equipment and storage medium
CN113434170A (en) * 2021-06-22 2021-09-24 重庆长安汽车股份有限公司 Finished automobile OTA data downloading and deploying method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852101A (en) * 2005-08-10 2006-10-25 华为技术有限公司 Parallel downloading method and terminal
EP1826980A1 (en) * 2006-02-28 2007-08-29 Microsoft Corporation Progressive downloading
CN101656751A (en) * 2008-08-18 2010-02-24 北京数码大方科技有限公司 Method and system for accelerating file uploading and downloading
CN101802781A (en) * 2007-09-17 2010-08-11 僖迪网络科技株式会社 Method for downloading file in parallel
CN103631569A (en) * 2013-12-23 2014-03-12 百度在线网络技术(北京)有限公司 Download method and download device
US8954525B2 (en) * 2011-01-21 2015-02-10 Kaseya Limited Method and apparatus of performing remote computer file exchange

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1852101A (en) * 2005-08-10 2006-10-25 华为技术有限公司 Parallel downloading method and terminal
EP1826980A1 (en) * 2006-02-28 2007-08-29 Microsoft Corporation Progressive downloading
CN101802781A (en) * 2007-09-17 2010-08-11 僖迪网络科技株式会社 Method for downloading file in parallel
CN101656751A (en) * 2008-08-18 2010-02-24 北京数码大方科技有限公司 Method and system for accelerating file uploading and downloading
US8954525B2 (en) * 2011-01-21 2015-02-10 Kaseya Limited Method and apparatus of performing remote computer file exchange
CN103631569A (en) * 2013-12-23 2014-03-12 百度在线网络技术(北京)有限公司 Download method and download device

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170201566A1 (en) * 2016-01-08 2017-07-13 Guangzhou Uc Network Technology Co., Ltd. File downloading method, apparatus, and terminal device
CN108270871A (en) * 2018-01-29 2018-07-10 广东五科技股份有限公司 The file block method for down loading and device of a kind of client
CN110138867A (en) * 2019-05-17 2019-08-16 哈工大机器人(山东)智能装备研究院 File transmission and method of reseptance, computer equipment and storage medium
CN113434170A (en) * 2021-06-22 2021-09-24 重庆长安汽车股份有限公司 Finished automobile OTA data downloading and deploying method and device
CN113434170B (en) * 2021-06-22 2023-03-14 重庆长安汽车股份有限公司 Finished automobile OTA data downloading and deploying method and device

Similar Documents

Publication Publication Date Title
CN109361740B (en) Block generation method, device, equipment and medium of block chain
CN106027582A (en) Content-related parallel downloading method and device
CN106484453B (en) Method and device for realizing system upgrading
US9635098B2 (en) Open platform, open platform access system, storage medium, and method for allowing third party application to access open platform
CN109213900B (en) Data modification method, device, equipment and medium for block chain
CN104581397B (en) The method for upgrading system and device of android set top box
US20170185431A1 (en) Method and apparatus for dynamically implementing application function
CN103268277B (en) A kind of method and system of output journal information
CN103631569B (en) Method for down loading and device
ATE525827T1 (en) METHOD AND SYSTEM FOR AUTOMATIC RECOVERY FROM EQUIPMENT FAILURE
MX2021009703A (en) Methods and systems for token-based anchoring of a physical object in a distributed ledger environment.
CN104601366B (en) It is a kind of control, service node configuration service method and device
CN109361542B (en) Client fault processing method, device, system, terminal and server
WO2016082649A1 (en) Method and device for automatically processing static test data of rail transit vehicle
RU2012132396A (en) METHOD AND DEVICE FOR DETERMINING A COMMUNICATION PURPOSE AND ASSISTING COMMUNICATIONS BASED ON THE OBJECT DESCRIPTOR
CN108989052B (en) Transaction request processing method and system
CN112000355A (en) Method and device for firmware upgrading and household appliance
CN107766064A (en) The method and device of component upgrade
CN106533769B (en) fault recovery method and device
BR112016001671A2 (en) METHOD, APPARATUS AND SYSTEM FOR THE DISTRIBUTION OF INFORMATION IN GRAPHIC CODE
CN106557522B (en) Method and equipment for providing timing function
CN104580135B (en) A kind of terminal real-time control system and method based on UEFI
CN108616381B (en) Event correlation alarm method and device
CN108270787B (en) Data decryption method and device and electronic equipment
CN105786597A (en) Method and device for realizing task switching in uCOS-III operation system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20161012