CN103457976A - Data downloading method and system - Google Patents
Data downloading method and system Download PDFInfo
- Publication number
- CN103457976A CN103457976A CN2012101791222A CN201210179122A CN103457976A CN 103457976 A CN103457976 A CN 103457976A CN 2012101791222 A CN2012101791222 A CN 2012101791222A CN 201210179122 A CN201210179122 A CN 201210179122A CN 103457976 A CN103457976 A CN 103457976A
- Authority
- CN
- China
- Prior art keywords
- file
- download
- downloaded
- cryptographic hash
- link
- 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.)
- Granted
Links
Images
Landscapes
- Information Transfer Between Computers (AREA)
Abstract
The invention provides a data downloading method. The data downloading method includes the steps that a downloading request of a file to be downloaded is obtained, wherein the downloading request comprises an original downloading link, and the original downloading link is any one of a source URL link, a BT seed file and an eMule downloading link; the hash value of the file to be downloaded is obtained according to the original downloading link; in accordance with the hash value of the file to be downloaded, when the original downloading link is a BT seed file, eMule downloading link information of the file to be downloaded and a multisource URL set are obtained; when the original downloading link is the eMule downloading link, BT seed file information of the file to be downloaded and the multisource URL set are obtained; when the original downloading link is the source URL link, the BT seed file information and the eMule downloading link information of the file to be downloaded and the multisource URL set are obtained; the file to be downloaded is downloaded according to the BT seed file information and/or the eMule downloading link information of the file to be downloaded and the multisource URL set. By means of the data downloading method, data sharing can be achieved for networks based on different downloading protocols. In addition, the invention further provides a data downloading system.
Description
Technical field
The present invention relates to network technology, particularly relate to a kind of data download method and system.
Background technology
Main data downloading mode has P2P and P2SP.P2P is based on point-to-point protocol, and by the transfer of data of arbitration intermediary server, P2SP puts server and point, and " point " refers to network node-or terminal.The p2sp download system can effectively be integrated the resource become scattered about in the Internet, for user's downloading data provides more passage, realize sharing of data, and stability has had larger reinforcement with respect to traditional P2P download system.Most widely used three kinds of download protocols are respectively Http download protocol, Bt download protocol and eMule download protocol at present.
Yet general p2sp download system adopts a kind of in above-mentioned three kinds of download protocols, every kind of download system can only be shared in the data under same download protocol.For example, the download system of user's employing is based on the Bt download protocol, as the user when downloading a certain data file, at first download system can obtain the seed file of this data file, then search the node (Peer) that has this data file in the Internet according to seed file, form a P2P network, and then realize sharing of this data file in this P2P network.The download system that is based on the eMule download protocol that another user adopts, as the user when downloading same data, at first download system obtains the informative abstract value of these data, then search according to this informative abstract value the Peer that has this data file in the Internet, and form a new P2P network.This user only can carry out data sharing with other nodes in the P2P network new at this, and can not share the data in the P2P network based on the Bt download protocol.
Therefore, current P2sp technology does not also fully realize that on network, the seamless of data resource shared.P2p network based on different download protocols is isolated, and the Peer between the same data file that they download also can't share, between different download protocols, also exist can not intercommunication wide gap.
Summary of the invention
Based on this, be necessary to provide a kind of and can realize data download method and the system that the network based on different download protocols carries out data sharing.
A kind of data download method comprises the following steps:
Obtain the download request of file to be downloaded, comprise original download link in described download request, described original download is linked as in origin url link, BT seed file, eMule download link any one;
Obtain the cryptographic Hash of described file to be downloaded according to described original download link;
According to the cryptographic Hash of described file to be downloaded, and, when described original download is linked as the BT seed file, obtain eMule download link information and the multi-source URL set of described file to be downloaded; When described original download is linked as the eMule download link, obtain Bt seed file information and the multi-source URL set of described file to be downloaded; When described original download is linked as the origin url link, obtain Bt seed file information and eMule download link information and the multi-source URL set of described file to be downloaded;
According to the Bt seed file information of obtaining file to be downloaded and/or eMule download link information and the described file to be downloaded of multi-source URL set download.
In embodiment, the described step that obtains the cryptographic Hash of described file to be downloaded according to described original download link is therein:
When described original download is linked as the origin url link, according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of described file to be downloaded;
When described original download is linked as the BT seed file, according to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the Bt seed file information of described file to be downloaded;
When described original download is linked as the eMule download link, according to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the eMule download link information of described file to be downloaded.
Therein in embodiment, when described original download is linked as the origin url link, according to the cryptographic Hash of described file to be downloaded, obtains the Bt seed file information of described file to be downloaded and the step of eMule download link information and multi-source URL set and be:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded;
According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
Therein in embodiment, when described original download is connected to the BT seed file, according to the cryptographic Hash of described file to be downloaded, obtains the eMule download link information of described file to be downloaded and the step of multi-source URL set and be:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
Therein in embodiment, when described original download is connected to the eMule download link, according to the cryptographic Hash of described file to be downloaded, obtains the Bt seed file information of described file to be downloaded and the step of multi-source URL set and be:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded.
Therein in embodiment, condition code and file sequence number that described Bt seed file information is the Bt seed file, informative abstract value and file size that described eMule download link information is file to be downloaded, described basis is obtained the Bt seed file information of file to be downloaded and/or the step of eMule download link information and the described file to be downloaded of multi-source URL set download is:
Described file to be downloaded is divided into to a plurality of bursts, and according to download capabilities, the downloading task of described burst is dispatched;
Download described burst according to the multi-source URL set of described file to be downloaded;
When described original download is linked as the Bt seed file, according to described original download, described burst is downloaded in link, otherwise, obtain the Bt seed according to the condition code of the Bt seed file of described file to be downloaded, and download described burst according to described BT seed;
When described original download is linked as the eMule download link, download described burst according to described original download link, otherwise, according to informative abstract value and the file size structure eMule download link of described file to be downloaded, and download described burst according to described eMule download link.
In embodiment, described method also comprises therein:
When described file to be downloaded is new file, set up and store the URL link of described new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash.
In embodiment, described method also comprises: when described file to be downloaded is new file, obtain and store the Bt seed file of described file to be downloaded therein.
In addition, also provide a kind of data downloading system, described system comprises Download Server and download client, and described Download Server comprises:
The resource query server, for obtaining the download request of file to be downloaded, comprise original download link in described download request, described original download is linked as in origin url link, BT seed file, eMule download link any one;
The logical server group, for obtaining the cryptographic Hash of described file to be downloaded according to described original download link;
Described logical server group is also for the cryptographic Hash according to described file to be downloaded, and, when described original download is linked as the BT seed file, the eMule download link information and the multi-source URL that obtain described file to be downloaded gather; When described original download is linked as the eMule download link, obtain Bt seed file information and the multi-source URL set of described file to be downloaded; When described original download is linked as the origin url link, obtain Bt seed file information and eMule download link information and the multi-source URL set of described file to be downloaded;
Described download client is for the Bt seed file information according to obtaining file to be downloaded and/or eMule download link information and the described file to be downloaded of multi-source URL set download.
In embodiment, described original download is linked as origin url link or BT seed file or eMule download link therein, and described logical server group comprises:
The U2h server, while linking for be linked as origin url when described original download, according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of described file to be downloaded;
The Bt2h server, for when described original download is linked as the BT seed file, according to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the Bt seed file information of described file to be downloaded;
The eMule2h server, for when described original download is linked as the eMule download link, according to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the eMule download link information of described file to be downloaded
Therein in embodiment, described logical server group also comprises one or both and the h2U server in h2Bt server and h2eMule server, wherein:
The h2U server, the mapping relations for the link of the URL according to default with cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
The h2Bt server, for the Bt seed file according to default and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded;
The h2eMule server, for the eMule download link information according to default and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
Therein in embodiment, condition code and file sequence number that described Bt seed file information is the Bt seed file, informative abstract value and file size that described eMule download link information is file to be downloaded, described download client comprises:
Scheduler module, for described file to be downloaded is divided into to a plurality of bursts, and dispatched the downloading task of described burst according to download capabilities;
Download module comprises:
The Http download unit, download described burst for the set of the multi-source URL according to described file to be downloaded;
The Bt download unit, for when described original download is linked as the Bt seed file, download described burst according to described original download link, otherwise, obtain the Bt seed according to the condition code of the Bt seed file of described file to be downloaded, and download described burst according to described BT seed;
The eMule download unit, for when described original download is linked as the eMule download link, download described burst according to described original download link, otherwise, according to informative abstract value and the file size structure eMule download link of described file to be downloaded, and download described burst according to described eMule download link.
Therein in embodiment, described Download Server also comprises the goods receiving module, the URL link of described new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash are set up and stored to described goods receiving module, for when described file to be downloaded is new file.
In embodiment, described Download Server also comprises the Bt seed server therein, and the Bt seed file of described file to be downloaded is obtained and stored to described Bt seed server, for when described file to be downloaded is new file.
Above-mentioned data download method and system, at first obtain the download request that comprises the link of file to be downloaded original download, and link according to original download the cryptographic Hash that obtains file to be downloaded.Then according to the cryptographic Hash of file to be downloaded, obtain two in the Bt seed file information of file to be downloaded and eMule download link information or link different one from original download in both, and the multi-source URL set of obtaining file to be downloaded.Finally according to multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded, download file to be downloaded.By said method and system, after the original download link that obtains file to be downloaded, can obtain multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded, thereby can adopt the downloading mode based on three kinds of download protocols to download file to be downloaded in p2p network separately simultaneously.Therefore, said method and system can take full advantage of Internet resources, realize that the network based on different download protocols carries out data sharing.
The accompanying drawing explanation
The schematic flow sheet that Fig. 1 is data download method in an embodiment;
Fig. 2 is that in an embodiment, basis is obtained the Bt seed file information of file to be downloaded and/or the schematic flow sheet of eMule download link information and the described file to be downloaded of multi-source URL set download;
The module diagram that Fig. 3 is data downloading system in an embodiment;
The module diagram that Fig. 4 is logical server group in an embodiment;
The module diagram that Fig. 5 is download client in an embodiment;
The module diagram that Fig. 6 is data downloading system in another embodiment.
Embodiment
As shown in Figure 1, in one embodiment, data download method comprises the following steps:
Step S110, obtain the download request of file to be downloaded, comprises the original download link in download request, and original download is linked as in origin url link, BT seed file, eMule download link any one.
Comprised the original download link of file to be downloaded in download request.After obtaining download request, can from download request, extract the original download link of file to be downloaded.In the ordinary course of things, original download is linked as origin url link or Bt seed or eMule download link.
Step S120, according to original download, link obtains the cryptographic Hash of file to be downloaded.
After the original download link that obtains file to be downloaded, need to obtain according to the original download link unique identifying number of file to be downloaded: the cryptographic Hash of file to be downloaded.
Step S130, according to the cryptographic Hash of file to be downloaded, and, when original download is linked as the BT seed file, obtain eMule download link information and the multi-source URL set of file to be downloaded; When original download is linked as the eMule download link, obtain Bt seed file information and the multi-source URL set of file to be downloaded; When original download is linked as the origin url link, obtain Bt seed file information and eMule download link information and the multi-source URL set of file to be downloaded.
Cryptographic Hash is the unique identification of file, no matter be therefore under which kind of download protocol, the cryptographic Hash of same file is also identical.Therefore, after obtaining the cryptographic Hash of file to be downloaded, can obtain the download link of file to be downloaded under different download protocols by default mapping relations.
In one embodiment, original download is linked as the origin url link, and above-mentioned steps S120 is specially: according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of file to be downloaded.
Particularly, when the original download of file to be downloaded is linked as the origin url link, inquire about default URL link and the mapping relations of cryptographic Hash, in these mapping relations, each URL link is to there being a cryptographic Hash.Find in mapping relations and link identical URL with origin url and link, its corresponding cryptographic Hash is just the cryptographic Hash of this file to be downloaded.
In the present embodiment, above-mentioned steps S130 is specially: according to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of file to be downloaded; According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of file to be downloaded; According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of file to be downloaded.
Particularly, identical file likely has a plurality of download address, and in the mapping relations of URL link and cryptographic Hash, each cryptographic Hash may corresponding a plurality of URL links.While inquiring about the mapping relations of default URL link and cryptographic Hash, can obtain a plurality of URL download link of file to be downloaded, a plurality of URL download link of file to be downloaded form multi-source URL set jointly.
Particularly, Bt seed file information comprises condition code and the file sequence number of Bt seed file.What in the mapping relations of Bt seed file information and cryptographic Hash, record is the mapping relations of one group of data forming of the file sequence number of the condition code of file cryptographic Hash and Bt seed and this Bt seed.Identical file is corresponding a plurality of Bt seed likely, therefore, in the mapping relations of Bt seed file information and cryptographic Hash, a stack features code and the file sequence number of the corresponding a plurality of same Bt seeds of each cryptographic Hash possibility.When obtaining the Bt seed file information of download file, generally obtain condition code and the file sequence number of downloading the fastest Bt seed of average speed.
In one embodiment, each file is after download completes, the relevant information of download such as that capital will be downloaded will be consuming time, average speed are reported feedback, according to feedack, can calculate the average speed of download of each Bt seed file of storage, thus convenient that the fastest Bt seed of download average speed of selecting.
Particularly, eMule download link information is file to be downloaded informative abstract value and file size.Because the informative abstract value is also the unique identification of file to be downloaded, therefore, the informative abstract value of the cryptographic Hash of file to be downloaded and file is relation one to one.Cryptographic Hash and the informative abstract of file to be downloaded and the mapping of file size of file to be downloaded have been recorded in default eMule download link information and the mapping relations of cryptographic Hash, therefore, inquire about and can obtain file to be downloaded unique informative abstract value and file size by cryptographic Hash.
In another embodiment, original download is linked as the BT seed file, and above-mentioned steps S120 is specially: according to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the Bt seed file information of file to be downloaded.
Particularly, when the original download of file to be downloaded is linked as the Bt kind period of the day from 11 p.m. to 1 a.m, inquire about default Bt seed file information and the mapping relations of cryptographic Hash.In the present embodiment, one group of data that the condition code of the Bt seed file that Bt seed file information is file to be downloaded and file sequence number form, in these mapping relations, the condition code of Bt seed file and file sequence number are corresponding with cryptographic Hash, wherein, same cryptographic Hash can be corresponding with condition code and the file sequence number of a plurality of same Bt seed files.Therefore while inquiring about, using the condition code of Bt seed of file to be downloaded and file sequence number as the inquiry major key, obtain the cryptographic Hash of file to be downloaded.
In the present embodiment, above-mentioned steps S130 is specially: according to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of file to be downloaded; According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of file to be downloaded.
In another embodiment, original download is linked as the eMule download link, and above-mentioned steps S120 is specially: according to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the eMule download link information of file to be downloaded.
Concrete, when the original link of file to be downloaded is the eMule download link, inquire about default eMule download link information and the mapping relations of cryptographic Hash.In the present embodiment, informative abstract value and file size that eMule download link information is file to be downloaded, in these mapping relations, informative abstract value and the file size of file to be downloaded are corresponding with cryptographic Hash, wherein, cryptographic Hash is corresponding one by one with informative abstract value and the file size of file to be downloaded.Therefore when inquiry, first from the eMule download link, extract the informative abstract value of file, then using the informative abstract value of file to be downloaded as the inquiry major key, thereby obtain the cryptographic Hash of file to be downloaded.
In the present embodiment, above-mentioned steps S130 is specially: according to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of file to be downloaded; According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of file to be downloaded.
Step S140, according to the Bt seed file information of obtaining file to be downloaded and/or eMule download link information and the described file to be downloaded of multi-source URL set download.
After obtaining multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded, can take Http download, Bt download and eMule to download three kinds of modes and download file to be downloaded.
As shown in Figure 2, in one embodiment, the condition code that Bt seed file information is the Bt seed file and file sequence number, informative abstract value and file size that eMule download link information is file to be downloaded, above-mentioned steps S140 is specially:
Step S141, be divided into a plurality of bursts by file to be downloaded, and according to download capabilities, the downloading task of burst is dispatched.
Particularly, because the resource of the downloading mode based on different agreement is variant, therefore, when downloading different files, the download capabilities of three kinds of downloading modes is also different.For example, the resource of file A under the Bt download protocol is more, and therefore for file A, the ability that Bt downloads is the strongest; And the resource of file B under the eMule agreement is more, therefore for file B, the ability that eMule downloads is the strongest.Therefore before being downloaded, at first need file to be downloaded is divided into to a plurality of bursts, and be the downloading task that the downloading mode based on different agreement distributes burst according to download capabilities.
Step S143, according to the multi-source URL set downloading slicing of file to be downloaded.
Particularly, while carrying out the Http download, at first according to the multi-source URL of file to be downloaded, gather, the node linked to the URL contained in multi-source URL set by the Tracker server lookup, composition is based on Http download protocol p2p network, then carry out the p2p download based on this p2p network, complete distributed downloading task.
Step S145, when original download is linked as the Bt seed file, according to original download link downloading slicing, otherwise, obtain the Bt seed according to the condition code of the Bt seed file of file to be downloaded, and according to BT seed downloading slicing.
Particularly, carry out Bt while downloading, if original download is linked as the Bt seed file, does not need by according to Bt seed file acquisition of information Bt seed file, and can directly by original download, link and carry out the Bt download.If original present link is not the Bt seed file, at first according to the condition code of the Bt seed file of file to be downloaded, obtain the Bt seed.The Bt seed is stored in the Bt seed bank, and it is corresponding with it that each Bt seed has unique Bt seed characteristics code, after the condition code that obtains the Bt seed file, can find by condition code the Bt seed in the Bt seed bank.Then utilize the Bt seed, by Tracker server (tracking server), inquire the node that contains this Bt seed, form based on Bt download protocol p2p network, then based on this p2p network, carry out the p2p download, complete distributed downloading task.
Step S147, when original download is linked as the eMule download link, according to original download link downloading slicing, otherwise, according to informative abstract value and the file size structure eMule download link of file to be downloaded, and according to eMule download link downloading slicing.
Particularly, while carrying out the eMule download, if original download is linked as the eMule download link, does not need to download and connect according to eMule download link acquisition of information eMule, and directly adopt the original download link to carry out the eMule download.If the original download link does not connect for eMule downloads, at first according to informative abstract value and the file size of file to be downloaded, construct the eMule download link, then utilize the eMule download link, by the Tracker server lookup to the node that contains this eMule download link, composition is based on eMule download protocol p2p network, then carry out the p2p download based on this p2p network, complete distributed downloading task.
In one embodiment, if in the downloading process of file to be downloaded, there are one or both downloading modes to fulfil distributed downloading task ahead of schedule, in order to save Internet resources, reduce download consuming time, will be redistributed remaining downloading task.
In another embodiment, data download method also comprises:
When file to be downloaded is new file, set up and store the URL link of new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash.
Particularly, after obtaining the original download link, if link the cryptographic Hash that can not inquire file to be downloaded according to original download, judge that this file to be downloaded is new file.At first calculate the cryptographic Hash of this new file, if the original download of new file is linked as the origin url link, set up and store the two-way mapping relations of URL link and cryptographic Hash; If the original download of new file is linked as the eMule download link, set up and store the two-way mapping relations of eMule download link information and cryptographic Hash; If the original download of new file is linked as the Bt seed file, set up and store the two-way mapping relations of Bt seed file information and cryptographic Hash.
In addition, when the original download of new file is linked as the Bt seed file, data download method also comprises:
Obtain and store the Bt seed file of file to be downloaded.
Particularly, the Bt seed file of new file is stored in the Bt seed bank, when in follow-up downloading process, after getting the condition code of this Bt seed file, can in the Bt seed bank, find corresponding Bt seed file.Thereby can be downloaded according to this Bt seed file.
Another agreement mutation of Bt download protocol is called the Magnet agreement, i.e. and " magnetic force link ", the Main Function of magnetic force link is identification BT seed file.This link is to generate " digital finger-print " of a plain text by the Hash result of different file contents, identifies the Bt seed file of file.Different is that this " digital finger-print " can be generated from any file by anyone, and (for example: BT Tracker server), and recognition accuracy is high without any need for the support of " central authority " to make " magnetic force link ".When the mutation Magnet agreement that adopts the Bt download protocol is downloaded, can directly by " digital finger-print " in Magnet agreement identification, be embodied in the Bt seed file in the Bt seed bank, then downloaded according to the Bt seed file, therefore can be improved the download efficiency of Magnet agreement.
As shown in Figure 3, the present invention also provides a kind of data downloading system.Data downloading system comprises Download Server 100 and download client 200.Wherein, Download Server 100 comprises resource query server 110, logical server group 120.
Comprised the original download link of file to be downloaded in download request.After obtaining download request, resource query server 110 can extract the original download link of file to be downloaded from download request.In the ordinary course of things, original download is linked as origin url link or Bt seed or eMule download link.
Obtain the original download link of file to be downloaded at resource query server 110 after, logical server group 120 need to obtain according to the original download link unique identifying number of file to be downloaded: the cryptographic Hash of file to be downloaded.
As shown in Figure 4, in one embodiment, logical server group 120 comprises U2h server 121, Bt2h server 123 and eMule2h server 125.Wherein:
When U2h server 121 links for be linked as origin url when original download, according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of file to be downloaded.
Cryptographic Hash is the unique identification of file, no matter be therefore under which kind of download protocol, the cryptographic Hash of same file is also identical.Therefore, logical server group 120, after obtaining the cryptographic Hash of file to be downloaded, can obtain the download link of file to be downloaded under different download protocols by default mapping relations.
In one embodiment, logical server group 120 also comprises h2U server 122, h2Bt server 124 and h2eMule server 126.Wherein:
In another embodiment, when original download is linked as the Bt seed file, logical server group 120 can only comprise h2U server 122 and h2eMule server 126.
In another embodiment, when original download is linked as the eMule download link, logical server group 120 can only comprise h2U server 122 and h2Bt server 124.
Obtain multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded logical server group 120 after, download client 200 can take Http download, Bt to download and three kinds of modes of eMule download are downloaded file to be downloaded.
As shown in Figure 5, in one embodiment, the condition code that Bt seed file information is the Bt seed file and file sequence number, download client 200 comprises scheduler module 210 and download module 220.Wherein, download module 220 comprises Http download unit 221, Bt download unit 223 and eMule download unit 225.
Particularly, because the resource of the downloading mode based on different agreement is variant, therefore, when downloading different files, the download capabilities of three kinds of downloading modes is also different.For example, the resource of file A under the Bt download protocol is more, and therefore, for file A, the ability that Bt downloads is the strongest; And the resource of file B under the eMule agreement is more, therefore for file B, the ability that eMule downloads is the strongest.Therefore, before being downloaded, at first scheduler module 210 needs file to be downloaded is divided into to a plurality of bursts, and is the downloading task that the different download unit of download module 220 distributes burst according to download capabilities.
Particularly, when Http download unit 221 carries out the Http download, at first according to the multi-source URL of file to be downloaded, gather, the node linked to the URL contained in multi-source URL set by the Tracker server lookup, composition is based on Http download protocol p2p network, then carry out the p2p download based on this p2p network, complete distributed downloading task.
Particularly, Bt download unit 223 carries out Bt while downloading, if original download is linked as the Bt seed file, 223 of Bt download units do not need by according to Bt seed file acquisition of information Bt seed file, and can directly by original download, link and carry out the Bt download.If original present link is not the Bt seed file, at first Bt download unit 223 obtains the Bt seed according to the condition code of the Bt seed file of file to be downloaded.The Bt seed is stored in the Bt seed bank, and it is corresponding with it that each Bt seed has unique Bt seed characteristics code, after Bt download unit 223 obtains the condition code of Bt seed files, can find by condition code the Bt seed in the Bt seed bank.Then utilize the Bt seed,, form based on Bt download protocol p2p network to the node that contains this Bt seed by the Tracker server lookup, then based on this p2p network, carry out the p2p download, complete distributed downloading task.
Particularly, when eMule download unit 225 carries out the eMule download, if original download is linked as the eMule download link, 225 of eMule download units do not need to download and connect according to eMule download link acquisition of information eMule, and directly adopt the original download link to carry out the eMule download.If the original download link does not connect for eMule downloads, at first eMule download unit 225 constructs the eMule download link according to informative abstract value and the file size of file to be downloaded, then utilize the eMule download link, by the Tracker server lookup to the node that contains this eMule download link, composition is based on eMule download protocol p2p network, then carry out the p2p download based on this p2p network, complete distributed downloading task.
In one embodiment, if in the downloading process of file to be downloaded, there is one or two download unit to fulfil distributed downloading task ahead of schedule, in order to save Internet resources, reduce download consuming time, scheduler module 210 will be redistributed remaining downloading task.Scheduler module 210 makes three download units always in running order, prevents idle download unit, thereby improves download efficiency.
As shown in Figure 6, in another embodiment, Download Server 100 also comprises goods receiving server 130 and Bt seed server 140.Wherein:
The URL link of new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash are set up and stored to goods receiving server 130, for when file to be downloaded is new file.
Particularly, after resource query server 110 obtains the original download link, if logical server group 120 links the cryptographic Hash that can not inquire file to be downloaded according to original download, judge that this file to be downloaded is new file.At first download client 200 calculates the cryptographic Hash of this new file, if the original download of new file is linked as the origin url link, the two-way mapping relations of URL link and cryptographic Hash are set up and stored to 130 of goods receiving servers; If the original download of new file is linked as the eMule download link, the two-way mapping relations of eMule download link information and cryptographic Hash are set up and stored to 130 of goods receiving servers; If the original download of new file is linked as the Bt seed file, the two-way mapping relations of Bt seed file information and cryptographic Hash are set up and stored to 130 of goods receiving servers.
In one embodiment, in above-mentioned newly-built mapping relations storage and index data base, the data of described index data base can be called by logical server group 120, and logical server group 120, carrying out query mappings while concerning, can search mapping relations from index data base.Simultaneously, above-mentioned newly-built mapping relations also will be synchronized with in logical server group's internal memory.Logical server group 120, when calling mapping relations, deposits middle inquiry at first within it, if just search in internal memory less than searching in index data base.The mode of searching like this can be accelerated the speed of high inquiry, thereby improves overall performance.
The Bt seed file of file to be downloaded is obtained and stored to Bt seed server 140.
Particularly, when the file to be downloaded original download that is new file and new file is linked as the Bt seed file, Bt seed server 140 is obtained the Bt seed file that file to be downloaded is complete, and the Bt seed file of file to be downloaded is stored in to the Bt seed bank.When in follow-up downloading process, after getting the condition code of this Bt seed file, can in the Bt seed bank, find corresponding Bt seed file.Thereby can be downloaded according to this Bt seed file.
Another agreement mutation of Bt download protocol is called the Magnet agreement, i.e. and " magnetic force link ", the Main Function of magnetic force link is identification BT seed file.This link is to generate " digital finger-print " of a plain text by the Hash result of different file contents, identifies the Bt seed file of file.Different is that this " digital finger-print " can be generated from any file by anyone, and (for example: BT Tracker server), and recognition accuracy is high without any need for the support of " central authority " to make " magnetic force link ".When the mutation Magnet agreement that adopts the Bt download protocol is downloaded, download client 200 can directly be embodied in the Bt seed file in the Bt seed bank by " digital finger-print " in Magnet agreement identification, then downloaded according to the Bt seed file, therefore can be improved the download efficiency of Magnet agreement.
Above-mentioned data download method and system, at first obtain the download request that comprises the link of file to be downloaded original download, and link according to original download the cryptographic Hash that obtains file to be downloaded.Then according to the cryptographic Hash of file to be downloaded, obtain two in the Bt seed file information of file to be downloaded and eMule download link information or link different one from original download in both, and the multi-source URL set of obtaining file to be downloaded.Finally according to multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded, download file to be downloaded.By said method and system, after the original download link that obtains file to be downloaded, can obtain multi-source URL set, Bt seed file information and the eMule download link information of file to be downloaded, thereby can adopt the downloading mode based on three kinds of download protocols to download file to be downloaded in p2p network separately simultaneously.Therefore, said method and system can take full advantage of Internet resources, realize that the network based on different download protocols carries out data sharing.
The above embodiment has only expressed several execution mode of the present invention, and it describes comparatively concrete and detailed, but can not therefore be interpreted as the restriction to the scope of the claims of the present invention.It should be pointed out that for the person of ordinary skill of the art, without departing from the inventive concept of the premise, can also make some distortion and improvement, these all belong to protection scope of the present invention.Therefore, the protection range of patent of the present invention should be as the criterion with claims.
Claims (14)
1. a data download method comprises the following steps:
Obtain the download request of file to be downloaded, comprise original download link in described download request, described original download is linked as in origin url link, BT seed file, eMule download link any one;
Obtain the cryptographic Hash of described file to be downloaded according to described original download link;
According to the cryptographic Hash of described file to be downloaded, and, when described original download is linked as the BT seed file, obtain eMule download link information and the multi-source URL set of described file to be downloaded; When described original download is linked as the eMule download link, obtain Bt seed file information and the multi-source URL set of described file to be downloaded; When described original download is linked as the origin url link, obtain Bt seed file information and eMule download link information and the multi-source URL set of described file to be downloaded;
Bt seed file information and/or eMule download link information and the described file to be downloaded of multi-source URL set download according to the file to be downloaded obtained.
2. data download method according to claim 1, is characterized in that, the described step that obtains the cryptographic Hash of described file to be downloaded according to described original download link is:
When described original download is linked as the origin url link, according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of described file to be downloaded;
When described original download is linked as the BT seed file, according to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the Bt seed file information of described file to be downloaded;
When described original download is linked as the eMule download link, according to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the eMule download link information of described file to be downloaded.
3. data download method according to claim 1 and 2, it is characterized in that, when described original download is linked as the origin url link, according to the cryptographic Hash of described file to be downloaded, the step of obtaining the Bt seed file information of described file to be downloaded and eMule download link information and multi-source URL set is:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded;
According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
4. data download method according to claim 1 and 2, it is characterized in that, when described original download is connected to the BT seed file, according to the cryptographic Hash of described file to be downloaded, the step of obtaining the eMule download link information of described file to be downloaded and multi-source URL set is:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
5. data download method according to claim 1 and 2, it is characterized in that, when described original download is connected to the eMule download link, according to the cryptographic Hash of described file to be downloaded, the step of obtaining the Bt seed file information of described file to be downloaded and multi-source URL set is:
According to default URL link and the mapping relations of cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
According to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded.
6. data download method according to claim 1, it is characterized in that, condition code and file sequence number that described Bt seed file information is the Bt seed file, informative abstract value and file size that described eMule download link information is file to be downloaded, described basis is obtained the Bt seed file information of file to be downloaded and/or the step of eMule download link information and the described file to be downloaded of multi-source URL set download is:
Described file to be downloaded is divided into to a plurality of bursts, and according to download capabilities, the downloading task of described burst is dispatched;
Download described burst according to the multi-source URL set of described file to be downloaded;
When described original download is linked as the Bt seed file, according to described original download, described burst is downloaded in link, otherwise, obtain the Bt seed according to the condition code of the Bt seed file of described file to be downloaded, and download described burst according to described BT seed;
When described original download is linked as the eMule download link, download described burst according to described original download link, otherwise, according to informative abstract value and the file size structure eMule download link of described file to be downloaded, and download described burst according to described eMule download link.
7. data download method according to claim 1, is characterized in that, described method also comprises:
When described file to be downloaded is new file, set up and store the URL link of described new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash.
8. data download method according to claim 7, is characterized in that, described method also comprises: when described file to be downloaded is new file, obtain and store the Bt seed file of described file to be downloaded.
9. a data downloading system, comprise Download Server and download client, it is characterized in that, described Download Server comprises:
The resource query server, for obtaining the download request of file to be downloaded, comprise original download link in described download request, described original download is linked as in origin url link, BT seed file, eMule download link any one;
The logical server group, for obtaining the cryptographic Hash of described file to be downloaded according to described original download link;
Described logical server group is also for the cryptographic Hash according to described file to be downloaded, and, when described original download is linked as the BT seed file, the eMule download link information and the multi-source URL that obtain described file to be downloaded gather; When described original download is linked as the eMule download link, obtain Bt seed file information and the multi-source URL set of described file to be downloaded; When described original download is linked as the origin url link, obtain Bt seed file information and eMule download link information and the multi-source URL set of described file to be downloaded;
Described download client is for the Bt seed file information according to obtaining file to be downloaded and/or eMule download link information and the described file to be downloaded of multi-source URL set download.
10. data downloading system as claimed in claim 9, is characterized in that, described original download is linked as origin url link or BT seed file or eMule download link, and described logical server group comprises:
The U2h server, while linking for be linked as origin url when described original download, according to default URL link and the mapping relations of cryptographic Hash, inquiry links corresponding cryptographic Hash with the origin url of described file to be downloaded;
The Bt2h server, for when described original download is linked as the BT seed file, according to default Bt seed file information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the Bt seed file information of described file to be downloaded;
The eMule2h server, for when described original download is linked as the eMule download link, according to default eMule download link information and the mapping relations of cryptographic Hash, inquire about the cryptographic Hash corresponding with the eMule download link information of described file to be downloaded.
11. data downloading system as described as claim 9 or 10, is characterized in that, described logical server group also comprises one or both and the h2U server in h2Bt server and h2eMule server, wherein:
The h2U server, the mapping relations for the link of the URL according to default with cryptographic Hash, inquire about the multi-source URL set corresponding with the cryptographic Hash of described file to be downloaded;
The h2Bt server, for the Bt seed file according to default and the mapping relations of cryptographic Hash, inquire about the Bt seed file information corresponding with the cryptographic Hash of described file to be downloaded;
The h2eMule server, for the eMule download link information according to default and the mapping relations of cryptographic Hash, inquire about the eMule download link information corresponding with the cryptographic Hash of described file to be downloaded.
12. data downloading system as claimed in claim 9, it is characterized in that, condition code and file sequence number that described Bt seed file information is the Bt seed file, informative abstract value and file size that described eMule download link information is file to be downloaded, described download client comprises:
Scheduler module, for described file to be downloaded is divided into to a plurality of bursts, and dispatched the downloading task of described burst according to download capabilities;
Download module comprises:
The Http download unit, download described burst for the set of the multi-source URL according to described file to be downloaded;
The Bt download unit, when described original download is linked as the Bt seed file, download described burst according to described original download link, otherwise, condition code for the Bt seed file according to described file to be downloaded is obtained the Bt seed, and downloads described burst according to described BT seed;
The eMule download unit, for when described original download is linked as the eMule download link, download described burst according to described original download link, otherwise, according to informative abstract value and the file size structure eMule download link of described file to be downloaded, and download described burst according to described eMule download link.
13. data downloading system as claimed in claim 9, it is characterized in that, described Download Server also comprises the goods receiving module, the URL link of described new file and the mapping relations between cryptographic Hash, Bt seed information and cryptographic Hash or eMule download link information and cryptographic Hash are set up and stored to described goods receiving module, for when described file to be downloaded is new file.
14. data downloading system as claimed in claim 13, it is characterized in that, described Download Server also comprises the Bt seed server, and the Bt seed file of described file to be downloaded is obtained and stored to described Bt seed server, for when described file to be downloaded is new file.
Priority Applications (4)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210179122.2A CN103457976B (en) | 2012-06-01 | 2012-06-01 | Data download method and system |
PCT/CN2013/071065 WO2013120412A1 (en) | 2012-02-17 | 2013-01-29 | Data download method, terminal, server and system |
PL407778A PL407778A1 (en) | 2012-02-17 | 2013-01-29 | Method, the terminal server and system for data collection |
US14/232,074 US8984100B2 (en) | 2012-02-17 | 2013-01-29 | Data downloading method, terminal, server, and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201210179122.2A CN103457976B (en) | 2012-06-01 | 2012-06-01 | Data download method and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103457976A true CN103457976A (en) | 2013-12-18 |
CN103457976B CN103457976B (en) | 2017-09-29 |
Family
ID=49739925
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201210179122.2A Active CN103457976B (en) | 2012-02-17 | 2012-06-01 | Data download method and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103457976B (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123341A (en) * | 2014-06-26 | 2014-10-29 | 小米科技有限责任公司 | Method and device for downloading file and route device |
CN104572839A (en) * | 2014-12-11 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | Retrieval method and retrieval system for resource file |
CN106603660A (en) * | 2016-12-14 | 2017-04-26 | 传线网络科技(上海)有限公司 | Collaborative downloading method, terminal and system for distributed type videos |
CN111934849A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Downloading method, device and system based on magnetic force link and readable storage medium |
CN113778673A (en) * | 2021-08-27 | 2021-12-10 | 深圳市广和通无线股份有限公司 | Data processing method, storage medium and device |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101247402A (en) * | 2008-03-17 | 2008-08-20 | 腾讯科技(深圳)有限公司 | Multimedia files downloading and broadcasting system and method |
CN101409706A (en) * | 2007-10-09 | 2009-04-15 | 华为技术有限公司 | Method, system and relevant equipment for distributing data of edge network |
CN101741883A (en) * | 2008-11-27 | 2010-06-16 | Tcl集团股份有限公司 | Method and system for enhancing network download speed of CE equipment |
CN102082807A (en) * | 2009-12-01 | 2011-06-01 | 突触计算机***(上海)有限公司 | File transmitting method and device based on multiple protocols |
-
2012
- 2012-06-01 CN CN201210179122.2A patent/CN103457976B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101409706A (en) * | 2007-10-09 | 2009-04-15 | 华为技术有限公司 | Method, system and relevant equipment for distributing data of edge network |
CN101247402A (en) * | 2008-03-17 | 2008-08-20 | 腾讯科技(深圳)有限公司 | Multimedia files downloading and broadcasting system and method |
CN101741883A (en) * | 2008-11-27 | 2010-06-16 | Tcl集团股份有限公司 | Method and system for enhancing network download speed of CE equipment |
CN102082807A (en) * | 2009-12-01 | 2011-06-01 | 突触计算机***(上海)有限公司 | File transmitting method and device based on multiple protocols |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104123341A (en) * | 2014-06-26 | 2014-10-29 | 小米科技有限责任公司 | Method and device for downloading file and route device |
CN104572839A (en) * | 2014-12-11 | 2015-04-29 | 百度在线网络技术(北京)有限公司 | Retrieval method and retrieval system for resource file |
CN106603660A (en) * | 2016-12-14 | 2017-04-26 | 传线网络科技(上海)有限公司 | Collaborative downloading method, terminal and system for distributed type videos |
CN111934849A (en) * | 2019-05-13 | 2020-11-13 | 阿里巴巴集团控股有限公司 | Downloading method, device and system based on magnetic force link and readable storage medium |
CN113778673A (en) * | 2021-08-27 | 2021-12-10 | 深圳市广和通无线股份有限公司 | Data processing method, storage medium and device |
CN113778673B (en) * | 2021-08-27 | 2024-02-09 | 深圳市广和通无线股份有限公司 | Data processing method, storage medium and apparatus |
Also Published As
Publication number | Publication date |
---|---|
CN103457976B (en) | 2017-09-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101860474B (en) | Peer-to-peer network and resource information processing method based on same | |
US9037657B2 (en) | Systems and methods for peer-to-peer bandwidth allocation | |
CN102882973B (en) | Distributed load balancing system and distributed load balancing method based on peer to peer (P2P) technology | |
CA2748688C (en) | Multi-source transmission system and method of instant messaging file | |
CN101102250B (en) | Distributed hashing mechanism for self-organizing networks | |
US20140095605A1 (en) | Method and apparatus for increasing localization of peer-to-peer traffic for content distribution in communication network | |
CN103024085B (en) | A kind of system and method processing the request of P2P node | |
CN103248645A (en) | BT (Bit Torrent) off-line data downloading system and method | |
CN102970242B (en) | Method for achieving load balancing | |
CN101841553A (en) | Method, user node and server for requesting location information of resources on network | |
CN103457976A (en) | Data downloading method and system | |
CN103812881B (en) | Offline download control method and device | |
CN110661891B (en) | Cross-network file instant transmission method and system based on unidirectional network | |
US8984100B2 (en) | Data downloading method, terminal, server, and system | |
AU2013271563B2 (en) | Bit Torrent scan with cross comparison for robust data monitoring | |
Chen et al. | BloomCast: Efficient and effective full-text retrieval in unstructured P2P networks | |
CN103326925A (en) | Message push method and device | |
CN102868617A (en) | P2P (peer-to-peer) network routing method and system | |
CN103248636A (en) | Offline download system and method | |
CN105227386A (en) | For method, the Apparatus and system of point population statistics online user number | |
Graffi et al. | Skyeye. kom: An information management over-overlay for getting the oracle view on structured p2p systems | |
CN103428231B (en) | Offline download method and system | |
Hecht et al. | B-tracker: Improving load balancing and efficiency in distributed p2p trackers | |
CN102098339A (en) | Audio file transmission method and system | |
Hasan et al. | A self adaptive super peer based topology for unstructured P2P 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |