CN102685160B - Resource downloading method, server, aware services device, client and system in P2SP - Google Patents

Resource downloading method, server, aware services device, client and system in P2SP Download PDF

Info

Publication number
CN102685160B
CN102685160B CN201110059177.5A CN201110059177A CN102685160B CN 102685160 B CN102685160 B CN 102685160B CN 201110059177 A CN201110059177 A CN 201110059177A CN 102685160 B CN102685160 B CN 102685160B
Authority
CN
China
Prior art keywords
hash value
server
resource file
p2sp
client
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.)
Active
Application number
CN201110059177.5A
Other languages
Chinese (zh)
Other versions
CN102685160A (en
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.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen 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 Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201110059177.5A priority Critical patent/CN102685160B/en
Publication of CN102685160A publication Critical patent/CN102685160A/en
Application granted granted Critical
Publication of CN102685160B publication Critical patent/CN102685160B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Information Transfer Between Computers (AREA)
  • Computer And Data Communications (AREA)

Abstract

Present invention is disclosed resource downloading method in a kind of P2SP, server, aware services device, client and system.The method comprising the steps of: P2SP server, after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file; When there is not described full text hash value, P2SP server judges whether the first hash value that there is client requested resource file; When there is first hash value, client carries out P2P download using described first hash value as the temporary unique identifier of described resource file; When there is not first hash value, the first data block of resource file described in client downloads, calculates first hash value and uploads.The present invention by carrying out P2P resource index using first hash value as the temporary unique identifier of new resource file, thus reduces new resource file when just issuing, and a large number of users pours in the pressure downloaded and bring file server bandwidth.

Description

Resource downloading method, server, aware services device, client and system in P2SP
Technical field
The present invention relates to P2SP (PeertoServer & Peer puts server and point) technology, be related specifically to resource downloading method in a kind of P2SP, server, aware services device, client and system.
Background technology
At traditional P2P (Peer-to-Peer, point-to-point) in download technology, if user terminal needs to download certain resource file in node (Peer), first the hash value obtaining this resource file is needed, then downloading software can using the unique identification of this hash value as this resource file, in P2P network, search for the node that other possess this hash value, then carry out P2P download by the node of search.
P2SP (PeertoServer & Peer puts server and point) downloading mode is the further extension to P2P technology.It is on the basis supporting P2P technology, also by searching database (index server), file server resources and P2P Internet resources (client resource) are integrated together simultaneously, during certain resource file of user terminal downloads, automatic search can be carried out, the suitable file server corresponding to resource file is selected to accelerate, the stability that it is downloaded and the speed of download, had very large raising than traditional P2P.
With reference to Fig. 1, in P2SP network of the prior art, when user terminal needs to download certain resource file, first receive user terminal to the inquiry (step S10) of this resource file by URL-Hash mapping server; Then the full text hash value (step S11) that there is this resource file is judged whether; When there is full text hash value, hash value carries out P2P download (step S12) as the unique identification of this resource file in full; When there is not full text hash value, downloading this resource file by means of only file server, and after having downloaded, calculate the full text hash value of this resource file and report to URL-Hash mapping server (step S13).
But when certain resource file occurs first in P2SP network, P2SP network there is no the record of this resource file, comprises the hash value that this resource file is corresponding.In this stage, the user terminal (client) of all this resource files of download cannot obtain the hash value of this resource file from P2SP server, therefore all under be loaded in this stage and cannot obtain P2P information, can only be downloaded by file server (normally HTTP downloads), download pressure and be transferred to file server.Only after some user terminal has downloaded this resource file completely, hash value can be reported, be convenient to other user terminals and carry out P2P download.
In existing P2SP network, issue first at resource file, simultaneously resource file belong to popular file and file is larger time, be published to from resource file and possess P2P ability, consuming time longer, and file server peak bandwidth is huge, at substantial resource.
Summary of the invention
Main purpose of the present invention, for providing resource downloading method in a kind of P2SP, server, aware services device, client and system, reduces when resource file is just issued to the bandwidth pressure that file server brings.
The present invention proposes resource downloading method in a kind of P2SP, comprises step:
P2SP server, after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
When there is not described full text hash value, P2SP server judges whether the first hash value that there is client requested resource file;
When there is first hash value, client carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
When there is not first hash value, the first data block of resource file described in client downloads, calculates first hash value and uploads.
Preferably, described client also comprises after the temporary unique identifier of described resource file carries out the step of P2P download using described first hash value:
Client, after P2P has downloaded, calculates full text hash value and uploads P2SP server;
The full text hash value of P2SP server receives client is uploaded, and uses described full text hash value to replace described first hash value.
The present invention separately proposes resource downloading server in a kind of P2SP, comprising:
First judge module, for after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
Second judge module, for when there is not described full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, providing the download of the first data block of described resource file, and receiving uploading of first hash value.
Preferably, described server also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
The present invention separately proposes resource downloading aware services device in a kind of P2SP, comprising:
Second judge module, for when there is not described full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, providing the download of the first data block of described resource file, and receiving uploading of first hash value.
Preferably, described aware services device also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
The present invention separately proposes resource downloading client in a kind of P2SP, comprising:
First request module, for after sending resource file download request to file server, judges whether by P2SP server the full text hash value that there is client requested resource file;
Second request module, for when there is not described full text hash value, judges whether by P2SP server the first hash value that there is client requested resource file;
First download module, for when there is first hash value, carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
Second download module, for when there is not first hash value, downloading the first data block of described resource file, calculates first hash value and upload.
Preferably, described client also comprises:
Request replacement module, for after P2P has downloaded, has calculated full text hash value and has uploaded, so that P2SP server makes in full hash value replace described first hash value.
The present invention separately proposes resource downloading system in a kind of P2SP, comprises client and server, and described client comprises:
First request module, for after sending resource file download request to file server, judges whether by P2SP server the full text hash value that there is client requested resource file;
Second request module, for when there is not described full text hash value, judges whether by P2SP server the first hash value that there is client requested resource file;
First download module, for when there is first hash value, carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
Second download module, for when there is not first hash value, downloading the first data block of described resource file, calculates first hash value and upload;
Described server comprises:
First judge module, for after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
Second judge module, for when there is not described full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, providing the download of the first data block of described resource file, and receiving uploading of first hash value.
Preferably, described client also comprises:
Request replacement module, for after P2P has downloaded, has calculated full text hash value and has uploaded P2SP server;
Described server also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
The present invention by carrying out P2P resource index using first hash value as the temporary unique identifier of new resource file, thus reduces new resource file when just issuing, and a large number of users pours in the pressure downloaded and bring file server bandwidth.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet that the resource file in prior art in P2SP network is downloaded;
Fig. 2 is steps flow chart schematic diagram in resource downloading method one embodiment in P2SP of the present invention;
Fig. 3 is another steps flow chart schematic diagram in resource downloading method one embodiment in P2SP of the present invention;
Fig. 4 is structural representation in resource downloading server one embodiment in P2SP of the present invention;
Fig. 5 is another structural representation in resource downloading server one embodiment in P2SP of the present invention;
Fig. 6 is structural representation in resource downloading aware services device one embodiment in P2SP of the present invention;
Fig. 7 is another structural representation in resource downloading aware services device one embodiment in P2SP of the present invention;
Fig. 8 is structural representation in resource downloading client one embodiment in P2SP of the present invention;
Fig. 9 is another structural representation in resource downloading client one embodiment in P2SP of the present invention;
Figure 10 is structural representation in resource downloading system one embodiment in P2SP of the present invention;
Figure 11 is another structural representation in resource downloading system one embodiment in P2SP of the present invention.
The realization of the object of the invention, functional characteristics and advantage will in conjunction with the embodiments, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
With reference to Fig. 2, an embodiment of resource downloading method in a kind of P2SP of the present invention is proposed.The method can comprise:
Step 20, P2SP server, after client transmission resource file downloads request to file server, judge whether the full text hash value that there is client requested resource file;
Step 21, when there is not above-mentioned full text hash value, P2SP server judges whether the first hash value that there is client requested resource file;
Step 22, when there is first hash value, client carries out P2P download using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file;
Step 23, when there is not first hash value, the first data block of the above-mentioned resource file of client downloads, calculates first hash value and uploads.
After client sends the request of resource file download to file server, this file server receives this resource file download request, and judges whether by P2SP server the full text hash value that there is this resource file.If there is hash value in full, then directly can carry out P2P download.
If there is no hash value, then P2SP server can judge whether the first hash value that there is this resource file again.When there is first hash value in P2SP server, the temporary unique identifier using this first hash value as above-mentioned resource file in P2SP network is run conventional P2P flow process and is carried out P2P download by this client; When there is not first hash value, client downloads the first data block of this resource file from P2SP server, and the hash value calculating this first data block is uploaded to P2SP server, for other clients in P2SP network provide the P2P of above-mentioned resource file to download.
When the full text hash value of above-mentioned resource file is not also uploaded to P2SP server, first store the first hash value of this resource file, and using first Hash as the temporary unique identifier required in P2P downloads of this resource file.Client is when downloading this resource file, first inquiry hash value in full, cannot find (namely in current P2SP network, this resource file was not also downloaded by complete) at full text hash value, so whether client attempts going to search its first hash value and existing.Because first hash value needs the data block of download usually less, then resource file is issued soon (such as after issue one or two minutes) in P2SP network, and first hash value will be calculated by client and upload.Now, other clients in P2SP network temporarily can use first hash value to enter conventional P2P as the temporary unique identifier of this resource file in P2SP network and download flow process, carry out P2P download.
When new resource file is just issued, a large number of users pours in download, can bring huge pressure within a certain period of time to file server bandwidth.Especially, when this new resource file is large files, the time of pressure is brought usually can to continue 1 to 2 hour.Resource downloading method in above-mentioned P2SP, makes improvements Gains resources file uniquely identified method for this kind of situation, in practical application test, significantly reduces the peak bandwidth of file server, decreases the burden of file server.
With reference to Fig. 3, also can comprise after above-mentioned steps S22:
Step S221, client, after P2P has downloaded, calculate full text hash value and upload P2SP server;
The full text hash value of step S222, P2SP server receives client is uploaded, and uses above-mentioned full text hash value to replace above-mentioned first hash value.
Client uses P2P to download after above-mentioned resource file completes, and calculates the full text hash value of this resource file, and this full text hash value is uploaded to P2SP server.P2SP server receives this full text hash value, and makes in full hash value replace above-mentioned first hash value, and hash value carries out the unique identification of P2P download as resource file in full.
Wherein, above-mentioned P2SP server can also be set to multiple, shares out the work and help one another between multiple P2SP server; Such as when P2SP server is multiple, a URL-Hash mapping server and an aware services device (another, also can access server and index server etc. to be set) can be set to.Above-mentioned URL-Hash server for receiving this resource file download request, and judges whether the full text hash value that there is this resource file, if there is hash value in full, then directly can carry out P2P download.Said sensed server is used for when there is not hash value, judges whether the first hash value that there is this resource file; When the full text hash value of resource file is not also uploaded, first store the first hash value of this resource file, and using first hash value as this resource file P2P download in temporary unique identifier, until after hash value has been uploaded in full, re-use hash value in full and replace this first hash value, then hash value carries out the unique identification of P2P download as resource file in full.By increasing by an aware services device in P2SP network, realize the sensed in advance of P2SP resources in network file.
Resource downloading method in P2SP, introduces aware services device in P2SP network, makes new resource file no longer need to be downloaded completely and can carry out P2P resource index in P2SP network, carries out normal P2P exchanges data; Only after the first hash value of generation, namely need carry out P2P resource index using first hash value as the temporary unique identifier of new resource file.Aware services device can according to first data block (head file) content of resource file, as the coupling of this resource file content, due to resource file most in the Internet (especially large application file and game file), there is the situation that content outside the identical and first data block of first data block contents is different hardly, therefore, when aforesaid way is just issued the new resource file of minimizing, a large number of users pours in the pressure downloaded and bring file server bandwidth.And, this aware services device can after the full text hash value receiving client upload, use this full text hash value to replace above-mentioned first hash value, hash value carries out the unique identification of P2P download as resource file in full, makes P2SP network can carry out conventional P2P and downloads.
With reference to Fig. 4, an embodiment of resource downloading server in a kind of P2SP of the present invention is proposed.This server and P2SP server 30 can comprise:
First judge module 31, for after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
Second judge module 32, for when there is not above-mentioned full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module 33, for when there is first hash value, provides the P2P using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file to download;
Second provides module 34, for when there is not first hash value, providing the download of the first data block of above-mentioned resource file, and receiving uploading of first hash value.
Above-mentioned first judge module 31, can client to file server (scheming not shown) send resource file download request and after this file server receives this resource file download request, judge the full text hash value that whether there is this resource file in P2SP server 30.If there is hash value in full, then directly can carry out P2P download.
Above-mentioned second judge module 32, when there is not hash value, can judge the first hash value that whether there is this resource file in P2SP server 30.
Above-mentioned first provides module 33, when can there is first hash value in P2SP server 30, can be the temporary unique identifier of client using this first hash value as above-mentioned resource file in P2SP network, makes client can run conventional P2P flow process and carries out P2P download.
Above-mentioned second provides module 34, when can there is not first hash value in P2SP server 30, the download of the first data block of this resource file is provided for client, make client can calculate the hash value of this first data block and be uploaded to P2SP server 30, for other clients in P2SP network provide the P2P of above-mentioned resource file to download.
When new resource file is just issued, a large number of users pours in download, can bring huge pressure within a certain period of time to file server bandwidth.Especially, when this new resource file is large files, the time of pressure is brought usually can to continue 1 to 2 hour.Above-mentioned P2SP server 30, makes improvements Gains resources file uniquely identified method for this kind of situation, in practical application test, significantly reduces the peak bandwidth of file server, decreases the burden of file server.
With reference to Fig. 5, above-mentioned P2SP server 30 also can comprise:
Replacement module 35, uploads for the full text hash value receiving client, and makes in full hash value replace above-mentioned first hash value.
Above-mentioned replacement module 35, can receive this full text hash value of client upload, and makes in full hash value replace above-mentioned first hash value, and hash value carries out the unique identification of P2P download as resource file in full.
Wherein, above-mentioned P2SP server 30 can also be set to multiple, shares out the work and help one another between multiple P2SP server 30; Such as when P2SP server 30 is multiple, a URL-Hash mapping server and an aware services device (another, also can access server and index server etc. to be set) can be set to.Above-mentioned first judge module 31 is arranged in URL-Hash server; Above-mentioned second judge module 32, first provides module 33, second to provide module 34 and replacement module 35 can be arranged in aware services device.Thus, by increasing by an aware services device in P2SP network, realize the sensed in advance of P2SP resources in network file.
Above-mentioned P2SP server 30, by carrying out P2P resource index using first hash value as the temporary unique identifier of new resource file, thus reduce new resource file when just issuing, a large number of users pours in the pressure downloaded and bring file server bandwidth.Further, can after the full text hash value receiving client upload, use this full text hash value to replace above-mentioned first hash value, hash value carries out the unique identification of P2P download as resource file in full, makes P2SP network can carry out conventional P2P and downloads.
With reference to Fig. 6, an embodiment of resource downloading aware services device 301 in a kind of P2SP of the present invention is proposed.This aware services device 301 can comprise:
Second judge module 32, for when there is not above-mentioned full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module 33, for when there is first hash value, provides the P2P using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file to download;
Second provides module 34, for when there is not first hash value, providing the download of the first data block of above-mentioned resource file, and receiving uploading of first hash value.
Above-mentioned second judge module 32, when can there is not hash value in URL-Hash server, judges the first hash value that whether there is this resource file in aware services device 301.
Above-mentioned first provides module 33, when can there is first hash value in aware services device 301, can be the temporary unique identifier of client using this first hash value as above-mentioned resource file in P2SP network, makes client can run conventional P2P flow process and carries out P2P download.
Above-mentioned second provides module 34, when can there is not first hash value in aware services device 301, the download of the first data block of this resource file is provided for client, make client can calculate the hash value of this first data block and be uploaded to aware services device 301, for other clients in P2SP network provide the P2P of above-mentioned resource file to download.
When new resource file is just issued, a large number of users pours in download, can bring huge pressure within a certain period of time to URL-Hash server bandwidth.Especially, when this new resource file is large files, the time of pressure is brought usually can to continue 1 to 2 hour.Resource downloading aware services device 301 in above-mentioned P2SP, makes improvements Gains resources file uniquely identified method for this kind of situation, in practical application test, significantly reduces the peak bandwidth of file server, decreases the burden of file server.
With reference to Fig. 7, said sensed server 301 also can comprise:
Replacement module 35, uploads for the full text hash value receiving client, and makes in full hash value replace above-mentioned first hash value.
Above-mentioned replacement module 35, can receive this full text hash value of client upload, and makes in full hash value replace above-mentioned first hash value, and hash value carries out the unique identification of P2P download as resource file in full.
Aware services device 301 in the present embodiment can use index server in P2SP network (scheming not shown) to substitute, can module 33, second be provided to provide module 34 and replacement module 35 to be arranged in this index server above-mentioned second judge module 32, first, substitute aware services device.
Said sensed server 301, by carrying out P2P resource index using first hash value as the temporary unique identifier of new resource file, thus reduce new resource file when just issuing, a large number of users pours in the pressure downloaded and bring file server bandwidth.Further, can after the full text hash value receiving client upload, use this full text hash value to replace above-mentioned first hash value, hash value carries out the unique identification of P2P download as resource file in full, makes P2SP network can carry out conventional P2P and downloads.
With reference to Fig. 8, resource downloading client 40 1 embodiment in a kind of P2SP of the present invention is proposed.This client 40 can comprise:
First request module 41, for after sending resource file download request to file server 30, judges whether by P2SP server 30 the full text hash value that there is client 40 requested resource file;
Second request module 42, for when there is not above-mentioned full text hash value, judges whether by P2SP server 30 the first hash value that there is client 40 requested resource file;
First download module 43, for when there is first hash value, carries out P2P download using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file;
Second download module 44, for when there is not first hash value, downloading the first data block of above-mentioned resource file, calculates first hash value and upload.
Above-mentioned first request module 41, can to send at file server 30 resource file download request after, judge whether by P2SP server 30 the full text hash value that there is this resource file.If there is hash value in full, then directly can carry out P2P download.
Above-mentioned second request module 42, when can there is not hash value in P2SP server 30, then judges whether by P2SP server 30 the first hash value that there is this resource file.
Above-mentioned first download module 43, when can there is first hash value in P2SP server 30, the temporary unique identifier using this first hash value as above-mentioned resource file in P2SP network, runs conventional P2P flow process and carries out P2P download.
Above-mentioned second download module 44, can when there is not first hash value, download the first data block of this resource file from file server, and the hash value calculating this first data block is uploaded to P2SP server 30, for other clients 40 in P2SP network provide the P2P of above-mentioned resource file to download.
Resource downloading client 40 in above-mentioned P2SP, when can there is not the full text hash value of resource file in P2SP server 30, using the first hash value of this resource file as the temporary unique identifier in P2SP network, carry out P2P download, reduce because new resource file is just issued on file server, a large number of users pours in the bandwidth pressure that download brings.
With reference to Fig. 9, above-mentioned client 40 also can comprise:
Request replacement module 45, for after P2P has downloaded, has calculated full text hash value and has uploaded, so that P2SP server 30 makes in full hash value replace above-mentioned first hash value.
Above-mentioned request replacement module 45, can use P2P to download after above-mentioned resource file completes in client 40, calculate the full text hash value of this resource file, and this full text hash value is uploaded to P2SP server 30.P2SP server 30 receives this full text hash value, and makes in full hash value replace above-mentioned first hash value, and hash value carries out the unique identification of P2P download as resource file in full, is convenient to carry out conventional P2P in P2SP network and downloads.
With reference to Figure 10, resource downloading system one embodiment in a kind of P2SP of the present invention is proposed.This system comprises client 40 and server and P2SP server 30, and above-mentioned client 40 comprises:
First request module 41, for after sending resource file download request to file server, judges whether by P2SP server 30 the full text hash value that there is client 40 requested resource file;
Second request module 42, for when there is not above-mentioned full text hash value, judges whether by P2SP server 30 the first hash value that there is client 40 requested resource file;
First download module 43, for when there is first hash value, carries out P2P download using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file;
Second download module 44, for when there is not first hash value, downloading the first data block of above-mentioned resource file, calculates first hash value and upload;
Above-mentioned P2SP server 30 comprises:
First judge module 31, for sending after resource file downloads request to file server in client 40, judges whether the full text hash value that there is client 40 requested resource file;
Second judge module 32, for when there is not above-mentioned full text hash value, judges whether the first hash value that there is client 40 requested resource file;
First provides module 33, for when there is first hash value, provides the P2P using above-mentioned first hash value as the temporary unique identifier of above-mentioned resource file to download;
Second provides module 34, for when there is not first hash value, providing the download of the first data block of above-mentioned resource file, and receiving uploading of first hash value.
When new resource file is just issued, a large number of users pours in download, can bring huge pressure within a certain period of time to file server bandwidth.Especially, when this new resource file is large files, the time of pressure is brought usually can to continue 1 to 2 hour.Resource downloading system in above-mentioned P2SP, makes improvements Gains resources file uniquely identified method for this kind of situation, in practical application test, significantly reduces the peak bandwidth of file server, decreases the burden of file server.
With reference to Figure 11, above-mentioned client 40 also comprises:
Request replacement module 45, for after P2P has downloaded, has calculated full text hash value and has uploaded P2SP server 30;
Above-mentioned P2SP server 30 also comprises:
Replacement module 35, uploads for the full text hash value receiving client 40, and makes in full hash value replace above-mentioned first hash value.
Wherein, above-mentioned P2SP server 30 can also be set to multiple, shares out the work and help one another between multiple P2SP server 30; Such as when P2SP server 30 is multiple, a URL-Hash mapping server and an aware services device (another, also can access server and index server etc. to be set) can be set to.Above-mentioned first judge module 31 is arranged in URL-Hash server; Above-mentioned second judge module 32, first provides module 33, second to provide module 34 and replacement module 35 can be arranged in aware services device.Thus, by increasing by an aware services device in P2SP network, realize the sensed in advance of P2SP resources in network file.
Resource downloading system in above-mentioned P2SP, by carrying out P2P resource index using first hash value as the temporary unique identifier of new resource file, thus reduce new resource file when just issuing, a large number of users pours in the pressure downloaded and bring file server bandwidth.Further, after the full text hash value can uploaded in reception client 40, use this full text hash value to replace above-mentioned first hash value, hash value carries out the unique identification of P2P download as resource file in full, makes P2SP network can carry out conventional P2P and downloads.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize specification of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a resource downloading method in P2SP, is characterized in that, comprises step:
P2SP server, after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
When there is not described full text hash value, P2SP server judges whether the first hash value that there is client requested resource file;
When there is first hash value, client carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
When there is not first hash value, the first data block of resource file described in client downloads, the hash value calculating first data block is as first hash value and upload.
2. resource downloading method in P2SP according to claim 1, is characterized in that, described client also comprises after the temporary unique identifier of described resource file carries out the step of P2P download using described first hash value:
Client, after P2P has downloaded, calculates full text hash value and uploads P2SP server;
The full text hash value of P2SP server receives client is uploaded, and uses described full text hash value to replace described first hash value.
3. a resource downloading server in P2SP, is characterized in that, comprising:
First judge module, for after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
Second judge module, for when there is not described full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, provides the download of the first data block of described resource file, and receives hash value the uploading as first hash value of first data block.
4. resource downloading server in P2SP according to claim 3, is characterized in that, described server also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
5. a resource downloading aware services device in P2SP, is characterized in that, comprising:
Second judge module, for when there is not full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, provides the download of the first data block of described resource file, and receives hash value the uploading as first hash value of first data block.
6. resource downloading aware services device in P2SP according to claim 5, is characterized in that, described aware services device also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
7. a resource downloading client in P2SP, is characterized in that, comprising:
First request module, for after sending resource file download request to file server, judges whether by P2SP server the full text hash value that there is client requested resource file;
Second request module, for when there is not described full text hash value, judges whether by P2SP server the first hash value that there is client requested resource file;
First download module, for when there is first hash value, carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
Second download module, for when there is not first hash value, downloads the first data block of described resource file, and the hash value calculating first data block is as first hash value and upload.
8. resource downloading client in P2SP according to claim 7, is characterized in that, described client also comprises:
Request replacement module, for after P2P has downloaded, has calculated full text hash value and has uploaded, so that P2SP server makes in full hash value replace described first hash value.
9. a resource downloading system in P2SP, comprises client and server, it is characterized in that, described client comprises:
First request module, for after sending resource file download request to file server, judges whether by P2SP server the full text hash value that there is client requested resource file;
Second request module, for when there is not described full text hash value, judges whether by P2SP server the first hash value that there is client requested resource file;
First download module, for when there is first hash value, carries out P2P download using described first hash value as the temporary unique identifier of described resource file;
Second download module, for when there is not first hash value, downloading the first data block of described resource file, calculates first hash value and upload;
Described server comprises:
First judge module, for after client transmission resource file downloads request to file server, judges whether the full text hash value that there is client requested resource file;
Second judge module, for when there is not described full text hash value, judges whether the first hash value that there is client requested resource file;
First provides module, for when there is first hash value, provides the P2P using described first hash value as the temporary unique identifier of described resource file to download;
Second provides module, for when there is not first hash value, provides the download of the first data block of described resource file, and receives hash value the uploading as first hash value of first data block.
10. resource downloading system in P2SP according to claim 9, is characterized in that, described client also comprises:
Request replacement module, for after P2P has downloaded, has calculated full text hash value and has uploaded P2SP server;
Described server also comprises:
Replacement module, uploads for the full text hash value receiving client, and makes in full hash value replace described first hash value.
CN201110059177.5A 2011-03-11 2011-03-11 Resource downloading method, server, aware services device, client and system in P2SP Active CN102685160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110059177.5A CN102685160B (en) 2011-03-11 2011-03-11 Resource downloading method, server, aware services device, client and system in P2SP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110059177.5A CN102685160B (en) 2011-03-11 2011-03-11 Resource downloading method, server, aware services device, client and system in P2SP

Publications (2)

Publication Number Publication Date
CN102685160A CN102685160A (en) 2012-09-19
CN102685160B true CN102685160B (en) 2016-04-13

Family

ID=46816523

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110059177.5A Active CN102685160B (en) 2011-03-11 2011-03-11 Resource downloading method, server, aware services device, client and system in P2SP

Country Status (1)

Country Link
CN (1) CN102685160B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369002B (en) * 2012-03-30 2018-03-27 腾讯科技(深圳)有限公司 A kind of method and system of resource downloading
CN112788135B (en) * 2021-01-05 2023-08-08 网宿科技股份有限公司 Resource scheduling method, equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552669A (en) * 2008-04-02 2009-10-07 林兆祥 Method and system of data transmission

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8037135B2 (en) * 2007-06-29 2011-10-11 Microsoft Corporation Automatic distributed downloading

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101552669A (en) * 2008-04-02 2009-10-07 林兆祥 Method and system of data transmission

Also Published As

Publication number Publication date
CN102685160A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
CN105099988B (en) Method, access method and device and system for supporting gray scale to issue
CN103297447B (en) A kind of resource share method and its equipment
KR101669312B1 (en) Individualized Data Communication on the Basis of a Descriptive File
CN101997759B (en) Service implementation method and service system
US20140359066A1 (en) System, method and device for offline downloading resource and computer storage medium
CN109982152B (en) P2P CDN service processing method, intelligent gateway and CDN platform
CN101584190A (en) System and method for combining pull and push modes
WO2013159703A1 (en) Offline download method, multimedia file download method and system thereof
CN101626397A (en) System for downloading files based on Bittorrent protocol
CN107566477B (en) Method and device for acquiring files in distributed file system cluster
CN102025595A (en) Flow optimization method and system
CN103944994A (en) Distributed resource obtaining method and device
CN103108008A (en) Method of downloading files and file downloading system
CN103581764B (en) Downloading and storing method, downloading and storing system and playing system suitable for HLS video file
CN103731507A (en) Data processing method and device of distributed data storage device
CN103327046A (en) P2SP system scheduling method, equipment and system based on node service capacity
CN103841135A (en) File accelerative download method and apparatus
CN101848188A (en) Method and device for updating data block checking information
CN101183946A (en) Method and system of obtaining resource listing of download file
CN101184110A (en) Resource download method, system and device
CN103812881A (en) Offline downloading control method and apparatus
CN102790806B (en) Method and device for downloading courseware based on http (hyper text transport protocol)
CN101883079A (en) Method and device used for accelerating to request multimedia contents in internet
CN102957972B (en) Video on demand method and system thereof
CN102685160B (en) Resource downloading method, server, aware services device, client and system in P2SP

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant