CN103188305B - A kind of multithread breakpoint continued transmission method and system - Google Patents
A kind of multithread breakpoint continued transmission method and system Download PDFInfo
- Publication number
- CN103188305B CN103188305B CN201110454391.0A CN201110454391A CN103188305B CN 103188305 B CN103188305 B CN 103188305B CN 201110454391 A CN201110454391 A CN 201110454391A CN 103188305 B CN103188305 B CN 103188305B
- Authority
- CN
- China
- Prior art keywords
- file
- download
- queue
- small documents
- downloads
- 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.)
- Expired - Fee Related
Links
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention discloses a kind of multithread breakpoint continued transmission method and system, belong to network transmission technology field.First file is cut into several small documents by server by the present invention, and each small documents is respectively provided with respective download address;Creating several thread passages the most on the terminal device, each thread passage is provided with one and downloads queue, downloads corresponding one of queue for one and downloads file task;Terminal unit is set up with server and is connected, and file is downloaded in request;The download address being cut into all small documents according to file downloads this document, and after suspension during networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download file;After all small documents of file are downloaded, it is combined into a file.The present invention solves the problem of repeated downloads data with existing when user restarts application program after each suspension, it is to avoid the time wasted when user downloads big file, improves efficiency when user downloads file.
Description
Technical field
The invention belongs to network transmission technology field, be specifically related to a kind of multithread breakpoint continued transmission method and system, be primarily adapted for use in the mobile terminal devices such as iPad/iPhone and download large file.
Background technology
Multithread breakpoint continued transmission refers to user can download multiple data file by creating multiple passages after starting application program simultaneously, and spontaneously some big files can be divided into a number of small documents send according to arranging, if the user while failed all to download in the case of once networking, when starting application program next time, just download can be continued according to last cut-off point.
Large file is downloaded based on mobile phone users such as increasing iPad/iPhone, it is likely to there will be the situation of suspension in downloading process, the Data duplication downloaded in order to avoid user is downloaded, this technology of breakpoint transmission can be utilized, record cut-off point during suspension each time, upper once network time continue on once download.Utilizing multithreading can be that user opens up multiple download channel simultaneously, adds the speed of download of large user.
Summary of the invention
For defect present in prior art, the technical problem to be solved is to provide a kind of efficiency much higher thread breaker point continuous transmission method and system.
For solving above-mentioned technical problem, the technical solution used in the present invention is as follows:
A kind of multithread breakpoint continued transmission method, comprises the following steps:
(1) file is cut into several small documents by server, and each small documents is respectively provided with respective download address;
(2) creating several thread passages on the terminal device, each thread passage is provided with one and downloads queue, downloads corresponding one of queue for one and downloads file task;
(3) terminal unit is set up with server and is connected, and file is downloaded in request;
(4) be cut into the download address described file of download of all small documents according to described file, after suspension during networking next time, serial number and the point that ends up according to downloading queue during suspension send request to server, continue download file;
(5), after all small documents of described file are downloaded, it is combined into a file.
A kind of multithread breakpoint continued transmission system, including terminal unit and server, described server includes that each small documents is respectively provided with the cutting device of respective download address for file is cut into some small documents;
Described terminal unit includes for creating several thread passages, and each thread passage is provided with one and downloads queue, downloads the corresponding establishment device downloading file task of queue for one;Being connected for setting up with server, the request unit of file is downloaded in request;Downloading described file for being cut into the download address of all small documents according to described file, after suspension during networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download the download apparatus of file;After downloading when all small documents of described file, it is combined into the combination unit of a file.
The method of the invention and system, by big file is cut into small documents fragment, download the mode of many fragments address, solve the problem of repeated downloads data with existing when user restarts application program after each suspension, avoid the time wasted when user downloads big file, support that user downloads multiple file by multithreading multichannel simultaneously simultaneously, substantially increase efficiency when user downloads file.It is also possible to protection resource can not be stolen, easily because each file has multiple URL request, it is necessary to obtain whole URL and just can download whole complete file.
Accompanying drawing explanation
Fig. 1 is the structured flowchart of multithread breakpoint continued transmission system in detailed description of the invention;
Fig. 2 is the flow chart of multithread breakpoint continued transmission method in detailed description of the invention;
Fig. 3 is that in detailed description of the invention, terminal unit sets up, with server, the flow chart being connected.
Detailed description of the invention
Below in conjunction with the accompanying drawings the detailed description of the invention of the present invention is described in detail.
As it is shown in figure 1, multithread breakpoint continued transmission system includes terminal unit 1 and server 2 in present embodiment, server 2 includes that cutting device 21, terminal unit 1 include creating device 11, attachment means 12, recording equipment 13, download apparatus 14 and combination unit 15.
Cutting device 21 in server 2 is for being cut into some small documents by file, and each small documents is respectively provided with respective download address.
Creating device 11 and be used for creating several thread passages, each thread passage is provided with one and downloads queue, downloads corresponding one of queue for one and downloads file task.Request unit 12 is connected for setting up with server 2, and file is downloaded in request.Recording equipment 13, for recording the sum downloading queue in each thread passage before starting to download file, has often downloaded a file, and the download number of queues in this thread passage subtracts 1.Download apparatus 14 downloads described file for the download address being cut into all small documents according to described file, and after suspension during networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download file.Combination unit 15, after downloading when all small documents of described file, is combined into a file.
As in figure 2 it is shown, the method using system shown in Figure 1 to realize multithread breakpoint continued transmission comprises the following steps:
(1) file in server 2 is cut into some small documents by cutting device 21, all subsidiary respective download address (i.e. URL address) of each small documents.Preferably, each small documents is about 10M.
(2) creating device 11 and create some thread passages on terminal unit 1, each thread passage is provided with one and downloads queue, downloads corresponding one of queue for one and downloads file task.
The download bandwidth of each thread passage is fixed.Each download queue is one and downloads file task, and that downloads queue record one download file task always downloads number of request, has often downloaded a request, continuation is downloaded the next one and downloads request, so can ensure that the integrity of download file.Download in queue at one, can be with the multiple request of Parallel download, it is achieved multithreading is downloaded simultaneously.
(3) request unit 12 is set up with server 2 and is connected, and file is downloaded in request.
Being connected as it is shown on figure 3, attachment means 12 is set up with server 2, request is downloaded the process of file and is comprised the following steps:
1. request unit 12 sends connection request to server 2, and server 2 returns file download list array;
2. download list array is deposited in download queue;
3. during queue is downloaded in appointment, each small documents deposits path.
(4) download address that download apparatus 14 is cut into all small documents according to described file downloads described file, and after suspension during networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download file.
Recording equipment 13 records the sum downloading queue small file download address before starting to download file, has often downloaded a small documents, and the sum of this download queue small file download address subtracts 1.
Downloading in queue and have recorded the download address of all small documents after file to be downloaded is split, download apparatus 14 can be according to the multiple small documents of download address Parallel download of each small documents.In downloading process, if there is offline condition, download apparatus 14 records the current serial number downloading queue and ending point, when networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download this document, until having downloaded all small documents of this document.
(5), after downloading, all small documents are combined into a file by combination unit 15.
Obviously, those skilled in the art can carry out various change and modification without departing from the spirit and scope of the present invention to the present invention.So, if these amendments of the present invention and modification belong within the scope of the claims in the present invention and equivalent technology thereof, then the present invention is also intended to comprise these change and modification.
Claims (6)
1. a multithread breakpoint continued transmission method, it is characterised in that comprise the following steps:
(1) file is cut into several small documents by server, and each small documents is respectively provided with respective download address;
(2) creating several thread passages on the terminal device, each thread passage is provided with one and downloads queue, downloads corresponding one of queue for one and downloads file task;
(3) terminal unit is set up with server and is connected, and file is downloaded in request;
(4) be cut into the download address described file of download of all small documents according to described file, after suspension during networking next time, serial number and the point that ends up according to downloading queue during suspension send request to server, continue download file;
(5), after all small documents of described file are downloaded, it is combined into a file;
Described method is additionally included in record before starting to download file and downloads the sum of queue small file download address, has often downloaded a small documents, the step that the sum of this download queue small file download address subtracts 1.
2. multithread breakpoint continued transmission method as claimed in claim 1, it is characterised in that: described in step (1), small documents size is 10M.
3. multithread breakpoint continued transmission method as claimed in claim 1, it is characterised in that: in step (2), the download bandwidth of each thread passage is fixed.
4. multithread breakpoint continued transmission method as claimed in claim 1, it is characterised in that: terminal unit described in step (3) is set up with server and is connected, and request is downloaded the process of file and comprised the following steps:
1. terminal unit sends file download request to server, and server returns file download list array, stores the download address of all small documents that described file is cut in described file download table data;
2. during download list array is deposited into download queue by terminal unit;
3. during queue is downloaded in appointment, each small documents deposits path.
5. the multithread breakpoint continued transmission method as according to any one of Claims 1 to 4, it is characterised in that: in step (4), each download queue can the multiple small documents of Parallel download.
6. a multithread breakpoint continued transmission system, including terminal unit (1) and server (2), it is characterized in that: described server (2) includes that, for file is cut into some small documents, each small documents is respectively provided with the cutting device (21) of respective download address;
Described terminal unit (1) includes for creating several thread passages, and each thread passage is provided with one and downloads queue, downloads the corresponding establishment device (11) downloading file task of queue for one;Being connected for setting up with server (2), the request unit (12) of file is downloaded in request;Downloading described file for being cut into the download address of all small documents according to described file, after suspension during networking next time, serial number and ending point according to downloading queue during suspension send request to server, continue to download the download apparatus (14) of file;After downloading when all small documents of described file, it is combined into the combination unit (15) of a file;
Described terminal unit (1) also includes downloading the sum of queue small file download address for record before starting to download file, often download a small documents, the recording equipment (13) that the sum of this download queue small file download address subtracts 1.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110454391.0A CN103188305B (en) | 2011-12-30 | 2011-12-30 | A kind of multithread breakpoint continued transmission method and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110454391.0A CN103188305B (en) | 2011-12-30 | 2011-12-30 | A kind of multithread breakpoint continued transmission method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103188305A CN103188305A (en) | 2013-07-03 |
CN103188305B true CN103188305B (en) | 2016-08-03 |
Family
ID=48679270
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110454391.0A Expired - Fee Related CN103188305B (en) | 2011-12-30 | 2011-12-30 | A kind of multithread breakpoint continued transmission method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103188305B (en) |
Families Citing this family (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103428276B (en) * | 2013-07-30 | 2016-09-14 | 中国联合网络通信集团有限公司 | Method for down loading and device |
CN104184789A (en) * | 2014-02-24 | 2014-12-03 | 无锡天脉聚源传媒科技有限公司 | File downloading method and device |
CN105635213B (en) * | 2014-10-31 | 2019-08-16 | 广州市动景计算机科技有限公司 | A kind of network connection method for down loading and device |
CN104994143B (en) * | 2015-06-19 | 2018-06-19 | 小米科技有限责任公司 | Document down loading method and device |
CN105187564B (en) * | 2015-10-14 | 2019-02-19 | 中科宇图天下科技有限公司 | A kind of method of mobile phone terminal document breakpoint transmission |
CN107360254A (en) * | 2017-08-22 | 2017-11-17 | 北京奇艺世纪科技有限公司 | A kind of document down loading method, device, server and terminal |
CN108600312A (en) * | 2018-03-21 | 2018-09-28 | 深圳市奥软网络科技有限公司 | A kind of multi-threaded parallel method for down loading based on file block |
CN109309725B (en) * | 2018-10-25 | 2021-10-08 | 深圳市腾讯信息技术有限公司 | Application downloading and updating method and device, computer equipment and storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291195A (en) * | 2008-05-23 | 2008-10-22 | 中兴通讯股份有限公司 | File downloading method, system and terminal realizing breaker point continuous transmission |
CN102055785A (en) * | 2009-11-09 | 2011-05-11 | 杭州华三通信技术有限公司 | Online upgrade method for distributed system, distributed system and equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100952762B1 (en) * | 2003-02-27 | 2010-04-14 | 엘지전자 주식회사 | Real-time debugging method of digital signal processor |
-
2011
- 2011-12-30 CN CN201110454391.0A patent/CN103188305B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101291195A (en) * | 2008-05-23 | 2008-10-22 | 中兴通讯股份有限公司 | File downloading method, system and terminal realizing breaker point continuous transmission |
CN102055785A (en) * | 2009-11-09 | 2011-05-11 | 杭州华三通信技术有限公司 | Online upgrade method for distributed system, distributed system and equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103188305A (en) | 2013-07-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103188305B (en) | A kind of multithread breakpoint continued transmission method and system | |
CN107483627A (en) | A kind of file distributing, method for down loading, Distributor, client and system | |
CN105812435B (en) | Application upgrading data packet processing method and device, electronic equipment and system | |
EP3125501B1 (en) | File synchronization method, server, and terminal | |
CN106657174A (en) | Data synchronizing and updating methods and data synchronizing and updating devices | |
CN105491087B (en) | A kind of document down loading method, device and electronic equipment | |
WO2008111376A1 (en) | File transfer method and file transfer system | |
CN104378234A (en) | Cross-data-center data transmission processing method and system | |
CN103037005A (en) | File synchronization method and device of on-line storage service | |
CN103077061A (en) | Installing method of application software in Android equipment and system | |
CN105721526B (en) | The synchronous method and device of a kind of terminal, server file | |
CN105718299A (en) | Virtual machine configuration method, device and system | |
US20140114920A1 (en) | Method For Synchronizing Files | |
CN103096131B (en) | A kind of live method for stream processing and device | |
CN105893135B (en) | Distributed data processing method and data center | |
US9286365B2 (en) | Data synchronizing system and method thereof | |
CN107908408A (en) | A kind of long-distance cloud mobile phone application installation method | |
CN103873631B (en) | Method and device for displaying call interface of mobile terminal | |
CN103049502A (en) | Memorizer management method and management device of satellite user terminal | |
CN106060111A (en) | Resource downloading method and device and terminal device | |
CN101146107B (en) | A method and device for data download | |
CN102710673A (en) | Method and device for downloading data by terminal | |
CN104618219A (en) | Cross-machine-room data synchronizing method and device | |
CN104349345A (en) | Flow statistics method, flow statistics device and mobile terminal | |
CN105493513A (en) | Content provision device, content provision method, program, terminal device and content provision system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20160803 Termination date: 20161230 |
|
CF01 | Termination of patent right due to non-payment of annual fee |