CN101873355A - Method, device and system for downloading file - Google Patents

Method, device and system for downloading file Download PDF

Info

Publication number
CN101873355A
CN101873355A CN 201010212450 CN201010212450A CN101873355A CN 101873355 A CN101873355 A CN 101873355A CN 201010212450 CN201010212450 CN 201010212450 CN 201010212450 A CN201010212450 A CN 201010212450A CN 101873355 A CN101873355 A CN 101873355A
Authority
CN
China
Prior art keywords
file
download
terminal
subfile
data
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
CN 201010212450
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.)
Shenzhen Xunlei Network Technology Co Ltd
Original Assignee
Shenzhen Xunlei Network 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 Shenzhen Xunlei Network Technology Co Ltd filed Critical Shenzhen Xunlei Network Technology Co Ltd
Priority to CN 201010212450 priority Critical patent/CN101873355A/en
Publication of CN101873355A publication Critical patent/CN101873355A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the invention relates to the technical field of communication, in particular to a method, a device and a system for downloading a file. The method comprises the following steps of: receiving a file downloading request sent by a terminal, wherein the request carries file attributes of a file to be downloaded; acquiring a data source of the file to be downloaded according to the file attributes; downloading the file to be downloaded at the data source and saving the downloaded file; and sending the downloaded file to the terminal. Through the method, the device and the system provided by the embodiment of the invention, the file is downloaded through a server, and then is sent to the terminal, so the time for receiving the file by the terminal is shortened, and the rate of downloading the file by the terminal is improved.

Description

A kind of methods, devices and systems of file in download
Technical field
The present invention relates to technical field of communication, particularly a kind of methods, devices and systems of file in download.
Background technology
At present, data are downloaded an important application function that has become in the Internet, user terminal can directly obtain the Various types of data that needs by the Internet, but the abundant raising that reaches content quality along with data content, the volume of file in download is also increasing, film video file size as a high definition can reach tens GB, the network insertion bandwidth of many user terminals is big inadequately, and speed of download is owing to reasons such as network multi-level transfer are restricted, need the long period if download bigger file, cause user terminal must keep operating state for a long time.
Summary of the invention
The embodiment of the invention provides a kind of methods, devices and systems of file in download, can pass through the server file in download, and after the file download finishes, re-send to terminal, shorten terminal and received the time of file, and improved the speed of terminal downloads file.
The embodiment of the invention provides a kind of method of file in download, and this method comprises:
The file in download request that receiving terminal sends, described request is carried the file attribute of pre-file in download;
According to described file attribute, obtain the data source of described pre-file in download;
Download described pre-file in download at described data source place and preserve downloaded files;
Send described downloaded files to described terminal.
Accordingly, the embodiment of the invention provides a kind of device of file in download, comprising:
Receiver module is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download;
Acquisition module is used for obtaining the data source of described pre-file in download according to described file attribute;
Download module is used for downloading described pre-file in download at described data source place;
Memory module is used to preserve downloaded files;
Sending module is used for sending described downloaded files to described terminal.
The embodiment of the invention also provides a kind of method of file in download, and this method comprises:
Terminal to server sends the file in download request, and described request is carried the file attribute of pre-file in download;
Described server obtains the data source of described pre-file in download according to described file attribute, downloads described pre-file in download at described data source place;
Described server is preserved downloaded files, and sends described downloaded files to described terminal;
Described terminal receives described downloaded files.
Accordingly, the embodiment of the invention provides a kind of system of file in download, comprising: terminal and server;
Described terminal is used for the file in download request that sends to described server; Receive the downloaded files that described server sends;
Described server is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download; According to described file attribute, obtain the data source of described pre-file in download; Download described pre-file in download at described data source place and preserve downloaded files; Send described downloaded files to described terminal.
The methods, devices and systems of the file in download that the embodiment of the invention provides are used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download; According to described file attribute, obtain the data source of described pre-file in download; Download described pre-file in download at described data source place and preserve downloaded files; Send described downloaded files to described terminal.The methods, devices and systems of the file in download that the embodiment of the invention provides, by the server file in download, and question paper downloads and to re-send to terminal after finishing, and shortens terminal and receives the time of file, and improved the speed of terminal downloads file.
Description of drawings
Fig. 1 is the method flow schematic diagram of file in download in the embodiment of the invention one;
Fig. 2 is the method flow schematic diagram of file in download in the embodiment of the invention two;
Fig. 3 is the method flow schematic diagram of file in download in the embodiment of the invention three;
Fig. 4 is the method flow schematic diagram of file in download in the embodiment of the invention four;
Fig. 5 is the device schematic diagram of file in download in the embodiment of the invention five;
Fig. 6 is the system schematic of file in download in the embodiment of the invention six.
Embodiment
At length set forth to the main realization principle of embodiment of the invention technical scheme, embodiment and to the beneficial effect that should be able to reach below in conjunction with each accompanying drawing.
Embodiment one:
The embodiment of the invention provides a kind of method of file in download, and as shown in Figure 1, this method may further comprise the steps:
The file in download request that step 101, receiving terminal send, the file attribute of pre-file in download is carried in this request; Concrete, when terminal is downloaded certain file in advance, send the file in download request to server.After server receives this file in download request, resolve the file attribute that this request carries and obtain the data source address, this document attribute comprises the unique identification of pre-file in download and/or the data source address of pre-file in download.When this document attribute comprises unique identification, when not comprising the data source address of pre-file in download, know the data source address of pre-file in download by this unique identification and the corresponding relation of the data source address of pre-file in download.
Wherein, unique identification is the data content of pre-file in download to be calculated according to pre-defined algorithm obtain.Default algorithm is that the different pieces of information of file is handled the algorithm that obtains result, and its result (being file fingerprint) is used for the processed file of unique identification.Select the algorithm of result repetition rate in tolerance interval during selection algorithm, for example the data content of file is carried out Hash operation and obtain cryptographic Hash, the cryptographic Hash of this document can unique representative this document content information.Hash algorithm can adopt MD5 (Message-DigestAlgorithm, md5-challenge), MD4, SHA (Secure Hash Algorithm, SHA), SHS (Secure Hash Standard, SHA) scheduling algorithm is as computing formula.
Wherein, the concrete mode of calculation document fingerprint can for: choose whole file data resource before, during and after each 32KB data, also can choose any several sections of file, utilize aforementioned algorithm respectively these three parts to be calculated, after resulting three values are linked in sequence, utilize aforementioned algorithm that the data after connecting are calculated once more, with the value that obtains at last file fingerprint as this document data resource; The concrete mode of calculation document fingerprint can also for: the data content of file is equally divided into N part, utilize aforementioned algorithm that each part is carried out Hash calculation respectively, obtain a value as BCID (Block ContentIdentity, piecemeal user supplied video content using fingerprints); Then all BCID are carried out hash algorithm one time, a value that obtains, this value are called GCID (Global Content Identity, global user supplied video content using fingerprints), with this GCID as file fingerprint.Because file fingerprint obtains according to the content of file, therefore can the unique identification file, even the title of file, URL (User Route List, the user's routing table) difference deposited, as long as its content does not change, its file identification all is same.
Step 102, according to file attribute, obtain the data source of pre-file in download;
If file attribute comprises the data source address of pre-file in download, can directly obtain the data source of pre-file in download according to this address; If file attribute comprises unique identification, when not comprising the data source address of pre-file in download,, obtain the data source of pre-file in download then according to the one-to-one relationship of unique identification with the data source address of pre-file in download.
Step 103, download pre-file in download at the data source place and preserve downloaded files;
Concrete, server obtains the size of pre-file in download, then according to each predetermined subfile size, should pre-file in download be divided into a plurality of subfiles and download, can download these a plurality of subfiles by predefined procedure, also can download at random.Wherein, each predetermined subfile size can be identical, also can be different, and less than the size of pre-file in download.Downloaded files can be saved in the data temporary storage cell in the server earlier, and this data temporary storage cell includes but not limited to disk, flash memory; After file is downloaded and finished then, the file in download in the data temporary storage cell is dumped to data-storage system, this data-storage system is scalable distributed file system.
And, can also the subfile quantity of downloading simultaneously be limited, just downloading should be a plurality of during subfile, and the subfile quantity of Xia Zaiing should be less than or equal to download subfile restricted number predetermined the time simultaneously.For example, a file is divided into 100 subfiles, downloading the subfile restricted number simultaneously is 10, promptly only allows simultaneously 10 subfiles and downloads.When the parton file of pre-file in download has been finished download, can suspend download this moment, and the subfile that will finish download dumps to data-storage system, and the data temporary storage cell has only fraction memory space (less than the memory space of 10 sub-file sizes) occupied.
Step 104, send downloaded files to terminal.
Concrete, the file in download in the data-storage system is sent to terminal, when this when file in download has been the parton file of pre-file in download, terminal need revert to pre-file in download with it after receiving all subfiles of this pre-file in download.
Wherein, when this pre-file in download is multimedia file, after being divided into a plurality of subfiles, need download all subfiles according to the sequencing of file data frame, after the parton file is finished download, this parton file can be sent to terminal and play, continue to download all the other subfiles simultaneously.
When downloading multimedia file, play in this process of not finishing multimedia file in download, need to have selected the multimedia time point of broadcast by operation as the user, and the subfile at the data place of this time point correspondence is not downloaded as yet, then need at first to determine the subfile at the data place of this time point correspondence, and preferentially obtain the subfile at this partial data place from data source, so that can respond user's operation, in time play.Concrete, multimedia file is made up of file header, frame data and three parts of index usually.Wherein file header has been described this multimedia file and the overall information of data wherein, as file type, the wide height (at video file) of playing total duration, maximal rate, video image and frame number etc.; Frame data have comprised the data (video file has comprised frame of video and audio frame simultaneously) of each frame of video and/or audio frame; The timestamp of each frame and the corresponding relation of its position in multimedia file preserved in index.For example the user drags playing progress bar to 10 and minutes 40 seconds locates, by reading and analyzing to index structure, can find timestamp 10 minutes 40 seconds the position of frame data in the whole multimedia file, and preferentially begin to download from the subfile of having stored the multimedia file data that began in 10 minutes 40 seconds.
The method that provides by the embodiment of the invention by the server file in download, and re-sends to terminal after the file download finishes as can be seen from the above description, has shortened terminal and has received the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
In the practical application; usually having super amount data stores after server is downloaded; in the file process of downloading; the data block of institute's file in download not necessarily begins to download successively and write from start-up portion; i.e. download at random also writes; and the random read-write performance of data-storage system that is used for storage file in the server is not good, causes both conflicting.The method of using the embodiment of the invention to provide, owing to earlier downloaded files is saved in the data temporary storage cell, after in this data temporary storage cell, the data of random writing being optimized, again whole file is dumped to data-storage system, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file.
And, in the prior art during server file in download, usually in advance in storage medium request distribute a forms file identical with being downloaded file size, in this forms file, write then and be downloaded file data.Do not download when a file and to finish, when just not writing total data in the forms file, this is downloaded file and can not deletes from the data in server temporary storage cell, this document can not be dumped in the data-storage system.In addition, in actual applications, the data temporary storage cell can be Internet Service Provider's (telecommunications, Netcom etc.) memory space in the server of being rented, its resource-constrained, and lease cost is higher, so usually when file data does not download to the data temporary storage cell fully, do not allow to suspend and download.The method of using the embodiment of the invention to provide, because pre-file in download is divided into a plurality of subfiles to be downloaded, and the time of downloading each subfile is shorter, the subfile of having downloaded can be dumped to data-storage system fast, therefore, not only can not download when finishing and suspend download, but also can take the space of less data temporary storage cell at the parton file.Simultaneously, because each subfile is file independently, also can download the data block in this subfile at random.
Embodiment two:
Below by another embodiment the method for a kind of file in download provided by the invention is elaborated, pre-file in download can be divided into a plurality of subfiles and download,, and can fix tentatively download at any time so that take less memory space, as shown in Figure 2, this method may further comprise the steps:
The file in download request that step 201, server receiving terminal send, the file attribute of pre-file in download is carried in this request; Concrete, when terminal is downloaded certain file in advance, send the file in download request to server.After server receives this file in download request, resolve the file attribute that this request carries and obtain the data source address, this document attribute comprises the unique identification of pre-file in download and/or the data source address of pre-file in download.When this document attribute comprises unique identification, when not comprising the data source address of pre-file in download, know the data source address of pre-file in download by this unique identification and the corresponding relation of the data source address of pre-file in download.
Step 202, server obtain the data source of pre-file in download according to file attribute;
If file attribute comprises the data source address of pre-file in download, can directly obtain the data source of pre-file in download according to this address; If file attribute comprises unique identification, when not comprising the data source address of pre-file in download,, obtain the data source of pre-file in download then according to the one-to-one relationship of unique identification with the data source address of pre-file in download.
Step 203, server obtain the size of pre-file in download;
Step 204, server should pre-downloaded files be divided into a plurality of subfiles and download according to each predetermined subfile size; Wherein, this each predetermined subfile size is less than pre-downloaded files size, and can begin to be divided into a plurality of subfiles from the data start-up portion of this pre-file in download, and each predetermined subfile size can be identical, also can be different.Can be at random when downloading subfile or select several subfiles to download simultaneously in certain sequence, can carry out at random or certain progressive download the data block in each subfile simultaneously.Specifically, when pre-file in download is multimedia file, can when all files is not finished in download, can play in order to make terminal, should download subfile according to the sequencing of file data frame, when terminal need be obtained a certain section multimedia file, can preferentially download the subfile at this segment file place.Because those of ordinary skills can clearly understand this process, do not repeat them here.
And, can also the subfile quantity of downloading simultaneously be limited, just downloading should be a plurality of during subfile, and the subfile quantity of Xia Zaiing should be less than or equal to download subfile restricted number predetermined the time simultaneously.Can when suspending download, the user take less memory space like this.
Step 205, server file in download are saved in the data temporary storage cell;
Step 206, server dump to data-storage system with the file in download in the data temporary storage cell; Concrete, server at first directly is saved in the data temporary storage cell with downloaded files, after treating that one or more subfiles downloads are finished, should one or more subfiles dump to data-storage system, simultaneously these one or more subfiles of deleted data temporary storage cell.
Step 207, server send downloaded files to terminal.
Concrete, the file in download in the data-storage system is sent to terminal, when this when file in download has been the parton file of pre-file in download, terminal need revert to pre-file in download with it after receiving all subfiles of this pre-file in download.It should be noted that, when this pre-file in download is multimedia file, after being divided into subfile, need download subfile according to the sequencing of file data frame, after the parton file is finished download, this parton file can be sent to terminal and play, continue to download all the other subfiles simultaneously.
The method that provides by the embodiment of the invention by the server file in download, and re-sends to terminal after the file download finishes as can be seen from the above description, has shortened terminal and has received the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
Embodiment three:
Below by another embodiment the method for a kind of file in download provided by the invention is elaborated, terminal and server are formed the system of a file in download, in this system, when using the method that the embodiment of the invention provides, as shown in Figure 3, this method may further comprise the steps:
Step 301, terminal to server send the file in download request, and the file attribute of pre-file in download is carried in this request;
Concrete, when terminal is downloaded certain file in advance, to the file in download request of server transmission.After server receives this file in download request, resolve its file attribute that carries of this acquisition request, this document attribute comprises the unique identification of pre-file in download and/or the data source address of pre-file in download.When this document attribute comprises unique identification, when not comprising the data source address of pre-file in download, this unique identification has corresponding relation with the data source address of pre-file in download, promptly can set up the one-to-one relationship of the data source address of unique identification and pre-file in download in advance, can know the data source address of pre-file in download thus by unique identification.Wherein, unique identification is the data content of pre-file in download to be calculated according to pre-defined algorithm obtain.
Step 302, server obtain the data source of pre-file in download according to file attribute, download described pre-file in download at the data source place, and preserve downloaded files;
Concrete, if file attribute comprises the data source address of pre-file in download, can directly get access to the data source of pre-file in download according to this address; If file attribute comprises unique identification, when not comprising the data source address of pre-file in download,, get access to the data source of pre-file in download then according to the one-to-one relationship of unique identification with the data source address of pre-file in download.
Server obtains the size of pre-file in download, then according to each predetermined subfile size, should pre-downloaded files be divided into a plurality of subfiles and download, can download these a plurality of subfiles by predefined procedure, also can download at random.Downloaded files can be saved in the data temporary storage cell in the server earlier, and this data temporary storage cell includes but not limited to disk, flash memory; File dumps to data-storage system with the file in download in the data temporary storage cell after downloading and finishing, and this data-storage system is scalable distributed file system.And, can also the subfile quantity of downloading simultaneously be limited, just downloading should be a plurality of during subfile, and the subfile quantity of Xia Zaiing should be less than or equal to download subfile restricted number predetermined the time simultaneously.
Step 303, server send downloaded files to terminal;
Step 304, terminal receive this downloaded files.
Concrete, server sends to terminal with the file in download in the data-storage system, when this when file in download has been the parton file of pre-file in download, terminal need revert to pre-file in download with it after receiving all subfiles of this pre-file in download.It should be noted that, when this pre-file in download is multimedia file, after being divided into subfile, need download subfile according to the sequencing of file data frame, after treating that the parton file is finished download, this parton file can be sent to terminal and play, continue to download all the other subfiles simultaneously.
The method that provides by the embodiment of the invention as can be seen from the above description, by the server file in download, and question paper downloads and re-sends to terminal after finishing, and shortens terminal and receives the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
Embodiment four:
Below by another embodiment the method for a kind of file in download provided by the invention is elaborated, terminal and server are formed the system of a file in download, carrying out pre-file in download can being divided into a plurality of subfiles when file is downloaded in this system downloads, so that take less memory space, and can fix tentatively download at any time, as shown in Figure 4, this method may further comprise the steps:
Step 401, terminal to server send the file in download request, and the file attribute of pre-file in download is carried in this request;
Step 402, server obtain the data source of pre-file in download according to file attribute;
Concrete, after server receives this file in download request, resolve its file attribute that carries of this acquisition request, this document attribute comprises the unique identification of pre-file in download and/or the data source address of pre-file in download.When this document attribute comprises unique identification, when not comprising the data source address of pre-file in download, this unique identification has corresponding relation with the data source address of pre-file in download, promptly can set up the one-to-one relationship of the data source address of unique identification and pre-file in download in advance, can know the data source address of pre-file in download thus by unique identification.
If file attribute comprises the data source address of pre-file in download, can directly get access to the data source of pre-file in download according to this address; If file attribute comprises unique identification, when not comprising the data source address of pre-file in download,, get access to the data source of pre-file in download then according to the one-to-one relationship of unique identification with the data source address of pre-file in download.
Step 403, server obtain the size of pre-file in download;
Step 404, server should pre-downloaded files be divided into a plurality of subfiles and download according to each predetermined subfile size; Wherein, this each predetermined subfile size is less than pre-downloaded files size, and can begin to be divided into a plurality of subfiles from the data start-up portion of this pre-file in download, and each predetermined subfile size can be identical, also can be different.Can be at random when downloading subfile or select several subfiles to download simultaneously in certain sequence, can carry out at random or certain progressive download the data block in each subfile simultaneously.Specifically, when pre-file in download is multimedia file, can when all files is not finished in download, can play in order to make terminal, should download subfile according to the sequencing of file data frame, when terminal need be obtained a certain section multimedia file, can preferentially download the subfile at this segment file place.Because those of ordinary skills can clearly understand this process, do not repeat them here.
And, can also the subfile quantity of downloading simultaneously be limited, just downloading should be a plurality of during subfile, and the subfile quantity of Xia Zaiing should be less than or equal to download subfile restricted number predetermined the time simultaneously.Can when suspending download, the user take less memory space like this.
Step 405, server file in download are saved in the data temporary storage cell;
Step 406, server dump to data-storage system with the file in download in the data temporary storage cell; Concrete, server at first directly is saved in the data temporary storage cell with downloaded files, after treating that one or more subfiles downloads are finished, should one or more subfiles dump to data-storage system, simultaneously these one or more subfiles of deleted data temporary storage cell.
Step 407, server send downloaded files to terminal;
The downloaded files that step 408, terminal reception server send.
Concrete, server sends to terminal with the file in download in the data-storage system, when this when file in download has been the parton file of pre-file in download, terminal need revert to pre-file in download with it after receiving all subfiles of this pre-file in download.It should be noted that, when this pre-file in download is multimedia file, after being divided into subfile, need download subfile according to the sequencing of file data frame, after treating that the parton file is finished download, this parton file can be sent to terminal and play, continue to download all the other subfiles simultaneously.
The method that provides by the embodiment of the invention as can be seen from the above description, by the server file in download, and question paper downloads and re-sends to terminal after finishing, and shortens terminal and receives the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
Embodiment five:
Accordingly, the embodiment of the invention also provides a kind of device of file in download, and as shown in Figure 5, this device comprises:
Receiver module 501 is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download;
Acquisition module 502 is used for obtaining the data source of described pre-file in download according to described file attribute;
Download module 503 is used for downloading described pre-file in download at described data source place;
Memory module 504 is used to preserve downloaded files;
Sending module 505 is used for sending described downloaded files to described terminal.
Preferable, another embodiment of the present invention provide in, this download module comprises:
Obtain submodule, be used to obtain the size of pre-downloaded files;
The control submodule is used for according to each predetermined subfile size described pre-downloaded files being divided into a plurality of subfiles;
Implementation sub-module is used to download described a plurality of subfile.
The device that provides by the embodiment of the invention as can be seen from the above description, by the server file in download, and question paper downloads and re-sends to terminal after finishing, and shortened terminal and received the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
Embodiment six:
Accordingly, the embodiment of the invention also provides a kind of system of file in download, as shown in Figure 6, comprising: terminal 601 and server 602;
This terminal 601 is used for the file in download request that sends to server 602; The downloaded files that reception server 602 sends;
This server 602 is used for the file in download request that receiving terminal 601 sends, and the file attribute of pre-file in download is carried in this request; According to file attribute, obtain the data source of pre-file in download; Download described pre-file in download at the data source place and preserve downloaded files; Send this downloaded files to terminal 601.
From above description, as can be seen, the methods, devices and systems of the file in download that proposes according to the embodiment of the invention, by the server file in download, and question paper is downloaded and to be re-send to terminal after finishing, shorten terminal and received the time of file, and improved the speed of terminal downloads file.Simultaneously, by being divided into a plurality of subfiles, pre-file in download downloads, can be when the tentative download of terminal, take less memory space, and used the data temporary storage cell that downloaded files is stored, after treating that the download of whole file or subfile finishes, dump to data-storage system again, solved randomness and the not good contradiction of data-storage system random read-write performance of downloading the data block in each file thus.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, if of the present invention these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, then the present invention also is intended to comprise these changes and modification interior.

Claims (18)

1. the method for a file in download is characterized in that, this method comprises:
The file in download request that receiving terminal sends, described request is carried the file attribute of pre-file in download;
According to described file attribute, obtain the data source of described pre-file in download;
Download described pre-file in download at described data source place and preserve downloaded files;
Send described downloaded files to described terminal.
2. the method for claim 1 is characterized in that, described file attribute comprises:
The data source address of the unique identification of described pre-file in download and/or described pre-file in download, described unique identification are the data content of pre-file in download to be calculated according to pre-defined algorithm obtain.
3. method as claimed in claim 2 is characterized in that, when described file attribute was the unique identification of pre-file in download, described unique identification had corresponding relation with the data source address of pre-file in download.
4. the method for claim 1 is characterized in that, describedly downloads described pre-file in download at described data source place, comprising:
Obtain the size of pre-file in download;
Each subfile size according to predetermined is divided into a plurality of subfiles with described pre-file in download;
Download described a plurality of subfile.
5. method as claimed in claim 4 is characterized in that, during the described a plurality of subfile of described download, the subfile quantity of Xia Zaiing is less than or equal to and downloads the subfile restricted number predetermined the time simultaneously.
6. method as claimed in claim 4 is characterized in that, and is described to the described downloaded files of described terminal transmission, comprising:
When described pre-file in download is multimedia file, download the parton file of described pre-file in download in order, send to terminal for described terminal plays with downloading the parton file of finishing, continue to download the residue subfile simultaneously.
7. the method for claim 1 is characterized in that, described preservation is downloaded files, comprising:
Downloaded files is saved in the data temporary storage cell, and described data temporary storage cell includes but not limited to disk, flash memory;
After described file download is finished, the file in download in the described data temporary storage cell is dumped to data-storage system, described data-storage system is scalable distributed file system.
8. the device of a file in download is characterized in that, comprising:
Receiver module is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download;
Acquisition module is used for obtaining the data source of described pre-file in download according to described file attribute;
Download module is used for downloading described pre-file in download at described data source place;
Memory module is used to preserve downloaded files;
Sending module is used for sending described downloaded files to described terminal.
9. device as claimed in claim 8 is characterized in that, described download module comprises:
Obtain submodule, be used to obtain the size of pre-file in download;
The control submodule is used for according to each predetermined subfile size described pre-file in download being divided into a plurality of subfiles;
Implementation sub-module is used to download described a plurality of subfile.
10. the method for a file in download is characterized in that, this method comprises:
Terminal to server sends the file in download request, and described request is carried the file attribute of pre-file in download;
Described server obtains the data source of described pre-file in download according to described file attribute, downloads described pre-file in download at described data source place;
Described server is preserved downloaded files, and sends described downloaded files to described terminal;
Described terminal receives described downloaded files.
11. method as claimed in claim 10 is characterized in that, describedly downloads described pre-file in download at described data source place, comprising:
Obtain the size of pre-file in download;
Each subfile size according to predetermined is divided into a plurality of subfiles with described pre-file in download;
Download described a plurality of subfile.
12. method as claimed in claim 11 is characterized in that, during the described a plurality of subfile of described download, the subfile quantity of Xia Zaiing is less than or equal to and downloads the subfile restricted number predetermined the time simultaneously.
13. method as claimed in claim 11 is characterized in that, and is described to the described downloaded files of described terminal transmission, comprising:
When described pre-file in download is multimedia file, download the parton file of described pre-file in download in order, send to terminal for described terminal plays with downloading the parton file of finishing, continue to download the residue subfile simultaneously.
14. method as claimed in claim 11 is characterized in that, described terminal receives after the described downloaded files, also comprises:
After terminal receives all subfiles of pre-file in download, described all subfiles are reverted to pre-file in download.
15. method as claimed in claim 10 is characterized in that, described preservation is downloaded files, comprising:
Downloaded files is saved in the data temporary storage cell, and described data temporary storage cell includes but not limited to disk, flash memory;
After described file download is finished, the file in download in the described data temporary storage cell is dumped to data-storage system, described data-storage system is scalable distributed file system.
16. the system of a file in download is characterized in that, comprising: terminal and server;
Described terminal is used for the file in download request that sends to described server; Receive the downloaded files that described server sends;
Described server is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download; According to described file attribute, obtain the data source of described pre-file in download; Download described pre-file in download at described data source place and preserve downloaded files; Send described downloaded files to described terminal.
17. system as claimed in claim 16 is characterized in that, described server comprises:
Receiver module is used for the file in download request that receiving terminal sends, and described request is carried the file attribute of pre-file in download;
Acquisition module is used for obtaining the data source of described pre-file in download according to described file attribute;
Download module is used for downloading described pre-file in download at described data source place;
Memory module is used to preserve downloaded files;
Sending module is used for sending described downloaded files to described terminal.
18. system as claimed in claim 17 is characterized in that, described download module comprises:
Obtain submodule, be used to obtain the size of pre-file in download;
The control submodule is used for according to each predetermined subfile size described pre-file in download being divided into a plurality of subfiles;
Implementation sub-module is used to download described a plurality of subfile.
CN 201010212450 2010-06-28 2010-06-28 Method, device and system for downloading file Pending CN101873355A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010212450 CN101873355A (en) 2010-06-28 2010-06-28 Method, device and system for downloading file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010212450 CN101873355A (en) 2010-06-28 2010-06-28 Method, device and system for downloading file

Publications (1)

Publication Number Publication Date
CN101873355A true CN101873355A (en) 2010-10-27

Family

ID=42998014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010212450 Pending CN101873355A (en) 2010-06-28 2010-06-28 Method, device and system for downloading file

Country Status (1)

Country Link
CN (1) CN101873355A (en)

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355486A (en) * 2011-08-11 2012-02-15 深圳市迅雷网络技术有限公司 Data download method and apparatus thereof
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
WO2013091172A1 (en) * 2011-12-20 2013-06-27 华为技术有限公司 File download method, device, and system in content delivery network
CN103428276A (en) * 2013-07-30 2013-12-04 中国联合网络通信集团有限公司 Downloading method and device
CN103560997A (en) * 2013-10-09 2014-02-05 北京奇虎科技有限公司 Application program download management method and device and download server
CN103634383A (en) * 2013-11-21 2014-03-12 北京奇虎科技有限公司 Mobile terminal-based multi-link subsection downloading method and mobile terminal
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
CN103780658A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 File downloading method, device and system
CN104010210A (en) * 2014-06-12 2014-08-27 广东欧珀移动通信有限公司 Playing control method, device and system of multiple playing devices
CN104994143A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 File downloading method and device
CN105871986A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data downloading method and device, and terminal
CN108174244A (en) * 2017-12-29 2018-06-15 深圳Tcl新技术有限公司 File Mapping method, mapping server, TV and storage medium
CN107689979B (en) * 2017-04-26 2019-12-13 平安科技(深圳)有限公司 method and equipment for processing download request
CN114513499A (en) * 2022-01-25 2022-05-17 统信软件技术有限公司 File downloading method, downloading device and computing equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008001876A1 (en) * 2006-06-30 2008-01-03 Sony Corporation Information processing device, information processing method, recording medium, and program
CN101158964A (en) * 2007-11-09 2008-04-09 深圳市迅雷网络技术有限公司 System, device and method for automatically modifying target downloading file information
CN101179474A (en) * 2007-12-21 2008-05-14 深圳市迅雷网络技术有限公司 Download method, system and device
CN101179525A (en) * 2007-12-21 2008-05-14 深圳市迅雷网络技术有限公司 Method, system and device for obtaining file information
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server
CN101282348A (en) * 2007-04-06 2008-10-08 上海晨兴电子科技有限公司 Method for implementing flow medium function using HTTP protocol

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008001876A1 (en) * 2006-06-30 2008-01-03 Sony Corporation Information processing device, information processing method, recording medium, and program
CN101282348A (en) * 2007-04-06 2008-10-08 上海晨兴电子科技有限公司 Method for implementing flow medium function using HTTP protocol
CN101158964A (en) * 2007-11-09 2008-04-09 深圳市迅雷网络技术有限公司 System, device and method for automatically modifying target downloading file information
CN101179474A (en) * 2007-12-21 2008-05-14 深圳市迅雷网络技术有限公司 Download method, system and device
CN101179525A (en) * 2007-12-21 2008-05-14 深圳市迅雷网络技术有限公司 Method, system and device for obtaining file information
CN101216834A (en) * 2007-12-29 2008-07-09 腾讯科技(深圳)有限公司 File downloading method, system, device and server

Cited By (23)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102355486A (en) * 2011-08-11 2012-02-15 深圳市迅雷网络技术有限公司 Data download method and apparatus thereof
CN102957712A (en) * 2011-08-17 2013-03-06 阿里巴巴集团控股有限公司 Method and system for loading website resources
CN102957712B (en) * 2011-08-17 2016-04-20 阿里巴巴集团控股有限公司 Site resource loading method and system
WO2013091172A1 (en) * 2011-12-20 2013-06-27 华为技术有限公司 File download method, device, and system in content delivery network
US9628352B2 (en) 2011-12-20 2017-04-18 Huawei Technologies Co., Ltd. Method, apparatus and system for downloading file in content delivery network
CN102857834B (en) * 2012-09-17 2016-06-15 四川长虹电器股份有限公司 Read the method for video progress
CN102857834A (en) * 2012-09-17 2013-01-02 四川长虹电器股份有限公司 Video progress reading method
CN103780658B (en) * 2012-10-25 2017-09-12 中国电信股份有限公司 Document down loading method, device and system
CN103780658A (en) * 2012-10-25 2014-05-07 中国电信股份有限公司 File downloading method, device and system
CN103428276A (en) * 2013-07-30 2013-12-04 中国联合网络通信集团有限公司 Downloading method and device
CN103428276B (en) * 2013-07-30 2016-09-14 中国联合网络通信集团有限公司 Method for down loading and device
CN103560997A (en) * 2013-10-09 2014-02-05 北京奇虎科技有限公司 Application program download management method and device and download server
CN103634383B (en) * 2013-11-21 2016-11-23 北京奇虎科技有限公司 Multi-link subsection method for down loading based on mobile terminal and mobile terminal
CN103634383A (en) * 2013-11-21 2014-03-12 北京奇虎科技有限公司 Mobile terminal-based multi-link subsection downloading method and mobile terminal
CN103731497A (en) * 2013-12-31 2014-04-16 华为终端有限公司 Method for supporting wireless access to storage device and mobile route hot point device
US9848333B2 (en) 2013-12-31 2017-12-19 Huawei Device Co., Ltd. Method supporting wireless access to storage device, and mobile routing hotspot device
CN104010210A (en) * 2014-06-12 2014-08-27 广东欧珀移动通信有限公司 Playing control method, device and system of multiple playing devices
CN104994143A (en) * 2015-06-19 2015-10-21 小米科技有限责任公司 File downloading method and device
CN104994143B (en) * 2015-06-19 2018-06-19 小米科技有限责任公司 Document down loading method and device
CN105871986A (en) * 2015-12-11 2016-08-17 乐视网信息技术(北京)股份有限公司 Data downloading method and device, and terminal
CN107689979B (en) * 2017-04-26 2019-12-13 平安科技(深圳)有限公司 method and equipment for processing download request
CN108174244A (en) * 2017-12-29 2018-06-15 深圳Tcl新技术有限公司 File Mapping method, mapping server, TV and storage medium
CN114513499A (en) * 2022-01-25 2022-05-17 统信软件技术有限公司 File downloading method, downloading device and computing equipment

Similar Documents

Publication Publication Date Title
CN101873355A (en) Method, device and system for downloading file
CN101287107B (en) Demand method, system and device of media file
CN100556129C (en) A kind of equity connects flow medium live system and device
CN101868793B (en) A kind of peer playback devices and method of operating thereof
CN102055717B (en) Quick playing method, terminal and server
CN102694831B (en) Mobile terminal streaming compensation data method and system, content distributing network
WO2013159703A1 (en) Offline download method, multimedia file download method and system thereof
US9356985B2 (en) Streaming video to cellular phones
CN102196008A (en) Peer-to-peer downloading method, video equipment and content transmission method
JP6153298B2 (en) DISTRIBUTION DEVICE, REPRODUCTION DEVICE, DATA STRUCTURE, DISTRIBUTION METHOD, CONTROL PROGRAM, AND RECORDING MEDIUM
CN102006368A (en) Streaming media audio file play method based on mobile terminal memory card cache technology
CN111787406A (en) Video playing method, electronic equipment and storage medium
CN104618738B (en) A kind of smart television program broadcasting method and device
CN104202655A (en) Method and device of downloading audio and video files
CN101277211A (en) Method and apparatus for buffering data
CN101068341B (en) Stream media dispatching system and medium file scheduling method thereof
CN205430501U (en) Mobile terminal web advertisement video and positive video seamless handover device
CN101202882B (en) Method, system for transmitting medium resource and set-top box
JPWO2014010501A1 (en) REPRODUCTION DEVICE, REPRODUCTION METHOD, DISTRIBUTION DEVICE, DISTRIBUTION METHOD, DISTRIBUTION PROGRAM, REPRODUCTION PROGRAM, RECORDING MEDIUM, AND METADATA
CN105812831B (en) Network program recording method, device and system and playing method and device
CN103365977A (en) Storage processing method and device for data on nonvolatile storage medium
CN103220587A (en) Method and device for obtaining time shifting contents
CN103338263A (en) Method and system for sharing audio and video files based on players
CN103648021B (en) The method that network video file is played from USB storage device
CN111225248B (en) On-demand content management method and content distribution network on-demand server

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101027