Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
The flow chart of the processing method of the resource downloading that Fig. 1 provides for the embodiment of the invention one.The resource downloading that the processing method of the resource downloading of present embodiment is applied in the P2P network is handled.Accordingly, the executive agent of present embodiment is the resource downloading processing unit.As shown in Figure 1, the processing method of the resource downloading of present embodiment specifically can comprise the steps:
The client of step 100, the regional Intranet of interception is sent to the download request of regional outer net; This download request comprises the download address of this zone outer net and the resource information sign that request is downloaded; This download request is used for according to this download address, and the first information file of this resource information correspondence is downloaded in request from this zone outer net; This first information file comprises the address of first Resource Server of the regional outer net of storing this resource information;
In the prior art in the P2P network each client all be reciprocity, do not consider the problem of each described operator of client.For ease of describing, the network that all clients that belong to same operator in the P2P network are formed is called regional Intranet here, and all is referred to as regional outer net outside should the zone Intranet.For each regional Intranet, the resource downloading processing unit of a correspondence is arranged all.The processing method of the resource downloading of present embodiment is the processing of the resource downloading processing unit of regional Intranet to the P2P resource downloading of regional Intranet.Particularly, the resource downloading processing unit of regional Intranet is tackled the download request that client in this zone Intranet is sent to regional outer net.Include the download address and the resource information sign of regional outer net in this download request.For example, the download address of this zone outer net can be URL(uniform resource locator) (Uniform/Universal Resource Locator; Hereinafter to be referred as URL), be also referred to as web page address or network address.The download request of this client is to be used for according to the first information file of download address from described regional outer net downloaded resources message identification correspondence.The seed of the resource information that can will download for client of first information file for example, can comprise the address of first Resource Server of the regional outer net of the resource information that will download of storage user in this first information file, download this resource information from this first Resource Server for client.Can also comprise form, size and the resource information sign of resource information information such as filename in this first information file as resource information.Need to prove, the seed of aforementioned resource information is a specific embodiment but not specifically limits, with Bit torrent technology is example, the seed of resource information is an index file, form is * .torrent, is used to put down in writing the size of file to be downloaded, the address of Download Server, publisher's data such as address.Bit torrent client software can be downloaded file to be downloaded by the information of the kind subrecord of resource information.
Step 101, according to this resource information sign, from second Resource Server of regional Intranet, obtain the second corresponding message file, this second message file comprises the address of second Resource Server of this zone Intranet of storing this resource information;
Particularly, in above-mentioned steps 100, after resource downloading processing unit interception download request, the resource information sign that comprises in the download request of resource downloading processing unit according to interception, from second Resource Server of regional Intranet, obtain the message file of download request correspondence, for ease of describing, this message file is referred to as second message file.Because this first information file and second message file all are the message files that the download request correspondence will be downloaded, just all identify corresponding message file with resource information.Therefore, this first information file and this second message file have corresponding relation.Just comprise that this resource information is stored in the address of first Resource Server of regional outer net in the first information file; And second message file comprises that this resource information is stored in the address of second Resource Server of regional Intranet.
Step 102, this second message file is sent to this client,, download this resource information from this second Resource Server for the address of this client according to this second Resource Server.
Particularly, the resource downloading processing unit gets access to after second message file, this second message file is sent to the client of the regional Intranet of request download, for the address of client according to second Resource Server of the regional Intranet in this second message file, the resource information that download request is downloaded from second Resource Server.
The processing method of the resource downloading of present embodiment is sent to the download request of regional outer net by the client of intercepting and capturing regional Intranet, and this request is redirected on the Resource Server of regional Intranet, downloads by regional Intranet for the user; Can reduce scheduling flow effectively, improve dispatching efficiency.And the technical scheme that adopts present embodiment can reduce the pressure of whole P2P network in the scheduling process, the performance of assurance P2P network.
Compare with prior art, adopt the technical scheme of present embodiment, can reduce the scheduling flow of client downloads resource information.Even suspend repeatedly and restart the downloading task of finishing scheduling in the client of regional Intranet, can triggering system not dispatch repeatedly yet, can avoid P2P to suffer the risk that the malice dispatch request is attacked effectively.
On the basis of the foregoing description, a kind of scheme is, after the step 100 of the foregoing description, before the step 101, can also comprise the steps: to determine to store second message file in second Resource Server of regional Intranet.
Particularly, the client that the resource downloading processing unit is intercepted regional Intranet is sent to after the download request of regional outer net, this download request is detected, judge in second Resource Server of this zone Intranet correspondence whether store the message file corresponding, i.e. second message file with the download request of tackling.In determining second Resource Server, store second message file of this download request correspondence, carry out subsequent step 101 and step 102 then, successfully to realize regional download schedule.Can not repeat them here with reference to above-mentioned description embodiment illustrated in fig. 1 in detail.
Corresponding above scheme, the resource downloading processing unit can also may further comprise the steps before carrying out above-mentioned steps 100:
(a) download first information file from regional outer net; And, download corresponding resource information from first Resource Server according to the address of first Resource Server of the regional outer net in the first information file;
(b) on second Resource Server that the first information file downloaded and corresponding resource information are stored in regional Intranet correspondence;
(c) address that second Resource Server is revised as in the address of first Resource Server in the first information file makes first information file be updated to second message file.
In other embodiments, the address in revising first information file, other information relevant with concrete Resource Server in the first information file also can corresponding modify.
Particularly, the resource downloading processing unit needed this resource downloading processing unit to download first information file and this first information file corresponding resource information of this download request correspondence from first Resource Server of the regional outer net of download request correspondence before carrying out above regional Intranet scheduling.This download can be that the resource downloading processing unit is initiatively downloaded, can be the resource downloading processing unit after detecting download request, finding have corresponding message file and resource information thereof just to download on second Resource Server of regional Intranet correspondence yet.After the resource downloading processing unit is downloaded, in second Resource Server that the first information file downloaded and corresponding resource information are stored in regional Intranet correspondence.The address that second Resource Server of regional Intranet correspondence is revised as in the address of first Resource Server of the regional outer net in the first information file then.Like this, when other clients of this zone Intranet ask to download corresponding message file and resource information again, directly can download from second Resource Server of regional Intranet correspondence.
The processing method of the resource downloading of present embodiment can reduce scheduling flow effectively, improves dispatching efficiency.And the technical scheme that adopts present embodiment can reduce the pressure of whole P2P network in the scheduling process, the performance of assurance P2P network.
The flow chart of the processing method of the resource downloading that Fig. 2 provides for the embodiment of the invention two.As shown in Figure 2, the processing method of the resource downloading of present embodiment after above-mentioned step 100 embodiment illustrated in fig. 1, before the step 101, also comprises the steps:
Step 103, determine not store in second Resource Server this second message file;
Particularly, the client that regional Intranet is got in the interception of resource downloading processing unit is sent to after the download request of regional outer net, whether has the second corresponding message file of download request with interception in first Resource Server of resource downloading processing unit surveyed area Intranet.This step specifically refers to, and the resource downloading processing unit is found not exist in second Resource Server of regional Intranet correspondence and the second corresponding message file of download request of interception after testing.
Step 104, according to download request, download first information file from regional outer net; And, download corresponding resource information from first Resource Server of regional outer net according to the address of first Resource Server of the regional outer net in the first information file;
Particularly, through above-mentioned steps 103, the resource downloading processing unit is found not exist in second Resource Server of regional Intranet after second message file corresponding with the download request of interception, the resource downloading processing unit is downloaded corresponding first information file according to the download address in the download request from regional outer net.The address of first Resource Server that can comprise the regional outer net of storage resources information in this first information file, the resource downloading processing unit according to the address of first Resource Server of the regional outer net in the first information file, is downloaded corresponding resource information from first Resource Server of regional outer net again.
Step 105, the first information file downloaded and corresponding resource information are stored in regional Intranet correspondence second Resource Server on;
Step 106, with the address that second Resource Server is revised as in the address of first Resource Server in the first information file, make first information file be updated to second message file.
Particularly, the resource downloading processing unit downloads to after first information file and the corresponding resource information, and first information file and corresponding resource information are buffered in second Resource Server of regional Intranet.The address that second Resource Server of this zone Intranet is revised as in the address of first server of regional outer net in this first information file makes this first information file be updated to second message file then.
Wherein step 105 and step 106 can not have sequencing, the address that the resource downloading processing unit also can be revised as second Resource Server with the address of first Resource Server in the first information file earlier makes first information file be updated to second message file; And then second message file that renewal is obtained and corresponding resource information file storage are on second Resource Server of regional Intranet correspondence.Here the first information file and second message file all are corresponding with download request, all are the message files of the resource information of request download.First information file is to be stored on first Resource Server of regional outer net, and second message file is to be stored on second Resource Server corresponding with the client The corresponding area Intranet that sends request.
The resource downloading processing unit downloads to after second message file corresponding with download request, then carries out subsequent step 101 and step 102, with the scheduling that realizes that the zone is downloaded.Can not repeat them here with reference to above-mentioned description embodiment illustrated in fig. 1 in detail.
The processing method of the resource downloading of present embodiment is to occur in this resource downloading processing unit message file and the corresponding resource information of cache resources for the first time, so that other client subsequent download of corresponding P2P zone Intranet is convenient.
The processing method of the resource downloading of present embodiment, by downloading first information file and corresponding resource information from regional outer net, and the address that second Resource Server in the regional Intranet is revised as in the address of first Resource Server of regional outer net in the message file, so that the download of the client of regional Intranet.By adopting the scheme of present embodiment, can guarantee the dispatching efficiency of follow-up resource downloading, further guaranteed the high-performance of P2P network in the resource downloading process.
The flow chart of the processing method of the resource downloading that Fig. 3 provides for the embodiment of the invention three.As shown in Figure 3, the processing method of the resource downloading of present embodiment can comprise the steps:
The client that step 200, resource downloading processing unit are tackled regional Intranet is sent to the download request of regional outer net; Execution in step 201;
Wherein this download request comprises the download address of regional outer net and the resource information sign that request is downloaded; This download request is used for according to the first information file of this download address from regional outer net downloaded resources information correspondence; And this first information file comprises the address of server of the regional outer net of storage resources information;
Step 201, resource downloading processing unit are judged second message file that whether stores this download request correspondence in second Resource Server of regional Intranet;
When storing second message file of this download request correspondence in second Resource Server of regional Intranet, carry out following steps 202.
When not storing second message file of this download request correspondence in second Resource Server of regional Intranet, execution in step 205.
Step 202, resource downloading processing unit obtain second message file of this download request correspondence, execution in step 203 according to the sign of the resource information in the download request from second Resource Server;
Wherein this second message file comprises the address of second Resource Server of the regional Intranet of storing this resource information;
Step 203, resource downloading processing unit send to this client with this second message file; Execution in step 204;
Resource information is downloaded from second Resource Server of regional Intranet in the address of second Resource Server of the regional Intranet in step 204, client basis second message file that receives; Finish.
Step 205, resource downloading processing unit are downloaded this first information file according to download request from first Resource Server of regional outer net; Execution in step 206;
Step 206, resource downloading processing unit are downloaded corresponding resource information according to the address of first Resource Server of the regional outer net in the first information file from first Resource Server; Execution in step 207;
The address that step 207, resource downloading processing unit are revised as second Resource Server of regional Intranet correspondence with the address of first Resource Server of the regional outer net in the first information file makes first information file be updated to second message file; Execution in step 208;
On second Resource Server that second message file that step 208, resource downloading processing unit obtain renewal and corresponding resource information are stored in regional Intranet correspondence; Execution in step 202.
The second message file corresponding resource information here is first information file corresponding resource information.
The processing method of the resource downloading of present embodiment, by download from regional outer net and the cache client request deposit message file and corresponding resource information, and the address that the Resource Server of regional Intranet is revised as in the address of the resource information file that comprises in the message file, can be when the client of regional Intranet be downloaded this message file once more, simplify the flow process of subdispatch, improve dispatching efficiency and scheduling performance, also can avoid Local Area Network to suffer the risk that the malice dispatch request is attacked simultaneously.
The flow chart of the processing method of the resource downloading that Fig. 4 provides for the embodiment of the invention four.As shown in Figure 4, the processing method of the resource downloading of present embodiment can comprise the steps:
The download request that the client of step 300, resource downloading processing unit replication region Intranet sends; Execution in step 301;
Particularly, can adopt mirroring device or light-dividing device to introduce the download request of the client transmission of regional Intranet; The download request that the client that also can adopt mirroring device or light-dividing device to duplicate a regional Intranet sends.
Step 301, resource downloading processing unit judge that this download request is sent to the download request of regional outer net or is sent to the download request of regional Intranet; When this download request is when being sent to the download request of regional Intranet, execution in step 302; When this download request is when being sent to the download request of regional outer net, execution in step 303.
Step 302, resource downloading processing unit allow download schedule.
Step 303, further, resource downloading processing unit are judged second message file that whether stores this download request correspondence in second Resource Server of regional Intranet;
When in the resource downloading processing unit is judged second Resource Server of regional Intranet, storing second message file of this download request correspondence, execution in step 304.
When in the resource downloading processing unit is judged second Resource Server of regional Intranet, not storing second message file of this download request correspondence, execution in step 308;
Step 304, resource downloading processing unit are tackled the download request that this client is sent to regional outer net; Execution in step 305;
Step 305, resource downloading processing unit obtain second message file of this download request correspondence according to the resource information sign that comprises in the download request from second Resource Server of regional Intranet; Execution in step 306;
Wherein this second message file comprises the address of second Resource Server of the regional Intranet of storing this resource information.
Step 306, resource downloading processing unit send to this client with this second message file; Execution in step 307;
Corresponding resource information is downloaded from second Resource Server in the address of second Resource Server in step 307, this client basis second message file that receives; Finish.
Step 308, client and resource downloading processing unit are downloaded first information file according to download request from first Resource Server of regional outer net respectively; Execution in step 309;
At this moment, owing to do not have corresponding message file in second Resource Server of regional Intranet, need not tackle the download request of client this moment, gone voluntarily to download by client.Rather than, after the download of client awaits resource downloading processing unit, from second Resource Server of regional Intranet, download again as the foregoing description three.Compare with the foregoing description three.Reduce the stand-by period of client, promoted the performance of system.And because the not message file and the corresponding resource information of this download request correspondence in second Resource Server of regional Intranet, the resource downloading processing unit is also downloaded the message file and the corresponding resource information of this download request correspondence simultaneously.
Step 309, this client and resource downloading processing unit according to the address of first Resource Server of the regional outer net in the first information file, are downloaded resource information from this first Resource Server respectively; Execution in step 310;
On second Resource Server that step 310, resource downloading processing unit are stored in regional Intranet correspondence with the first information file downloaded and corresponding resource information; Execution in step 311;
Step 311, resource downloading processing unit are revised as the address of first Resource Server of the regional outer net in the first information file address of second Resource Server of regional Intranet, make first information file be updated to second message file, for other client downloads of regional Intranet.Finish.
The processing method of the resource downloading of present embodiment, by downloading and cache client information requested file and corresponding resource information from regional outer net, and the address that the Resource Server of regional Intranet is revised as in the address of the resource information file that comprises in the message file, can be when the client of regional Intranet be downloaded this message file once more, simplify the flow process of subdispatch, improve dispatching efficiency and scheduling performance.Also can avoid simultaneously Local Area Network to suffer the risk that the malice dispatch request is attacked.
Introduce the application scenarios of processing method of the resource downloading of two kinds of embodiment of the invention below.
The processing method of the P2P resource downloading of the embodiment of the invention is applied in the BT file download flow subdispatch.Particularly, when the BT of regional Intranet client first when the seed file of certain resource information is downloaded in regional outer net request, the resource downloading processing unit of this zone Intranet can be earlier downloaded this seed file and is buffered on the Tracker server of regional Intranet correspondence from regional outer net Tracker server, and the resource downloading processing unit utilizes the Tracker server address of regional Intranet to replace regional outer net Tracker server address then.When the BT client that regional Intranet is arranged again when outer net is downloaded the seed file of this resource information, will be detected by this resource downloading processing unit and this download request is redirected to the Tracker server of regional Intranet, obtain amended seed file from regional Intranet.The BT client just directly obtains the Tracker server address of regional Intranet according to the amended seed file that gets access to, and the BT client just can be obtained requested resource information from the Tracker server of regional Intranet.Compared with prior art, do not need promptly to finish subdispatch through protocol detection and redirection module once more.Scheduling process also can not repeat them here with reference to the record of said method embodiment in detail.
In the resource downloading processing unit, adopt this technical scheme to carry out subdispatch to the downloading flow of BT client.Zone in a large amount of BT downloading flow can effectively alleviate dispatching patcher pressure, and the BT flow control at interior web area, is saved port band width.
The processing method of the P2P resource downloading of the embodiment of the invention is applied in the scheduling of P2P program request flow region, specific as follows:
When the P2P of regional Intranet program request client first when the configuration file of certain resource information is downloaded in regional outer net request, the resource downloading processing unit of this zone Intranet can be earlier on the program server of regional outer net download configuration file, comprise the configuration server address of regional outer net in this configuration file.This resource downloading processing unit adopts the configuration server address of regional Intranet to replace regional outer net configuration server address in the configuration file then.When regional Intranet has P2P program request client again to regional outer net download configuration file, can be detected by the resource downloading processing unit, and this download request is redirected in the regional Intranet by this resource downloading processing unit, obtain amended configuration file.P2P program request client just directly obtains the configuration server address of regional Intranet according to this configuration file.P2P program request client just can be obtained required resource information from the configuration server of regional Intranet.Compared with prior art, do not need promptly to finish subdispatch through detecting and being redirected once more.Scheduling process also can not repeat them here with reference to the record of said method embodiment in detail.
In the resource downloading processing unit, adopt this technical scheme, can carry out the network traffics that the client of P2P program request forms by configuration file and carry out subdispatch various.For the effective mitigation system scheduling pressure in the zone of big flow.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
The structural representation of the resource downloading processing unit that Fig. 5 provides for the embodiment of the invention five.The resource downloading processing unit of present embodiment is applied to handle the resource downloading in the P2P network.As shown in Figure 5, the resource downloading processing unit of present embodiment can comprise: blocking module 10, scheduler module 11 and sending module 12.
Wherein blocking module 10 client that is used to tackle regional Intranet is sent to the download request of regional outer net; Download request comprises the download address of regional outer net and the resource information sign that request is downloaded; Download request is used for according to download address, and request is from the first information file of regional outer net downloaded resources information correspondence; First information file comprises the address of first Resource Server of the regional outer net of storage resources information.Scheduler module 11 is used for obtaining the second corresponding message file according to resource information sign from second Resource Server of regional Intranet, and second message file comprises the address of second Resource Server of the regional Intranet of storage resources information.Sending module 12 is used for second message file is sent to client, for the address of client according to second Resource Server, downloads resource information from second Resource Server.
The resource downloading processing unit of present embodiment is corresponding with a P2P zone Intranet, and the use that matches.When certain client of P2P zone Intranet when regional outer net sends download request, blocking module 10 these download requests of interception in the resource downloading processing unit, and this download request redirected to scheduler module 11, that is to say that scheduler module 11 is connected with blocking module 10, according to the sign of the resource information in the download request of blocking module 10 interceptions, obtain the second corresponding message file from second Resource Server of regional Intranet correspondence, second message file comprises the address of second Resource Server of the regional Intranet of storage resources information.Sending module 12 is connected with scheduler module 11, and second message file that scheduler module 11 is obtained sends to client, for the address of client according to second Resource Server, downloads resource information from second Resource Server.Wherein scheduler module 11 is connected with second Resource Server of this zone Intranet, the storage file in second Resource Server is dispatched, with from wherein obtaining the second corresponding message file.
Implementation and reciprocal process between each module of resource downloading processing unit of present embodiment can not repeat them here with reference to the associated description of said method embodiment.
The resource downloading processing unit of present embodiment is realized that by each module the client of intercepting and capturing regional Intranet is sent to the download request of regional outer net, and this request is redirected on the Resource Server of regional Intranet, downloads by regional Intranet for the user; Can reduce scheduling flow effectively, improve dispatching efficiency.And the technical scheme that adopts present embodiment can reduce the pressure of whole P2P network in the scheduling process, the performance of assurance P2P network.
Compare with prior art, existing skill realizes that the download of resource information will be through twice scheduling.And the technical scheme of employing present embodiment, the technical scheme of present embodiment only can download to message file through once dispatching.Therefore compared with prior art, the present embodiment technical scheme can reduce by 50% scheduling.Even suspend repeatedly and restart the downloading task of finishing scheduling in the client of regional Intranet, can triggering system not dispatch repeatedly yet, can avoid P2P to suffer the risk that the malice dispatch request is attacked effectively.
On the basis of the technical scheme of the foregoing description five, the resource downloading processing unit of present embodiment can also comprise: first determination module.This first determination module is connected with scheduler module 11 with blocking module 10 respectively.After blocking module 10 interception download requests, this first determination module is according to the download request of blocking module 10 interceptions, whether there is the corresponding message file of tackling with blocking module 10 of download request in second Resource Server of surveyed area Intranet correspondence, i.e. second message file; And determine to store in second Resource Server the second corresponding message file of download request with blocking module 10 interceptions.Scheduler module 11 is used for when first determination module determines that second Resource Server stores second message file corresponding with the download request of blocking module 10 interceptions then, and scheduler module 11 is obtained the second corresponding message file from second Resource Server of regional Intranet.
Before carrying out above regional Intranet scheduling, need this resource downloading processing unit to download first information file and this first information file corresponding resource information of this download request correspondence from first Resource Server of the regional outer net of download request correspondence to the resource downloading processing unit.This download can be that the resource downloading processing unit is initiatively downloaded, and also can be the resource downloading processing unit after detecting download request, and finding does not have corresponding message file and resource information thereof just to download on second Resource Server of regional Intranet.After the resource downloading processing unit is downloaded, the address that second Resource Server of regional Intranet correspondence is revised as in the address of first Resource Server of the regional outer net in the first information file of downloading; And amended message file is stored in second Resource Server of regional Intranet correspondence.Like this, when other clients of this zone Intranet ask to download corresponding message file and resource information again, directly can download from second Resource Server of regional Intranet.
Adopt technique scheme, can reduce scheduling flow effectively, improve dispatching efficiency.And the technical scheme that adopts present embodiment can reduce the pressure of whole P2P network in the scheduling process, the performance of assurance P2P network.
Fig. 6 is the structural representation of the resource downloading processing unit of the embodiment of the invention six.As shown in Figure 6, on above-mentioned basis embodiment illustrated in fig. 5, the resource downloading processing unit of present embodiment can also comprise second determination module 14, download module 15, modified module 16 and memory module 17.
Wherein second determination module 14 is used for determining that second Resource Server does not store second message file.Download module 15 is used for according to download request, downloads first information file from regional outer net; And, download corresponding resource information from first Resource Server according to the address of first Resource Server in the first information file.Modified module 16 is used for address that second Resource Server is revised as in the address of first Resource Server of first information file, makes first information file be updated to second message file.Memory module 17 is used for this second message file and this corresponding resource information are stored in second Resource Server.
Second determination module 14 in the resource downloading processing unit of present embodiment is connected with blocking module 10.Second determination module 14 also is connected with second Resource Server, after blocking module 10 interception download requests, second determination module 14 is according to the download request of blocking module 10 interceptions, whether store the corresponding message file of tackling with blocking module 10 of download request in second Resource Server of surveyed area Intranet, i.e. second message file; And determine not store this second message file in second Resource Server.Download module 15 is connected with second determination module 14, and download module 15 is used for when second determination module 14 determines that second Resource Server does not store second message file, and download module 15 is downloaded first information file according to download request from regional outer net; And, download corresponding resource information from first Resource Server according to the address of first Resource Server in the first information file.Modified module 16 is connected with download module 15, and the address with second Resource Server is revised as in the address of first Resource Server in the first information file of download module 15 downloads makes first information file be updated to second message file.Memory module 17 is connected with modified module 16 with download module 15 respectively, and the resource information that second message file that obtains after modified module 16 is revised and download module 15 are downloaded is stored in second Resource Server.This moment, scheduler module 11 was connected with memory module 17 with blocking module 10 respectively, scheduler module 11 is obtained second message file of the download request correspondence of blocking module 10 interceptions of storing in second Resource Server from the event memory of memory module 17 second Resource Server.
Implementation and reciprocal process between each module of resource downloading processing unit of present embodiment can not repeat them here with reference to the associated description of said method embodiment.
Download module 15 in the present embodiment, modified module 16 and memory module 17 also can be used in the scheme behind the foregoing description five, realization is from regional outer net download message file and corresponding resource information, and revises address and storage resources information and amended message file in this message file.
The resource downloading processing unit of present embodiment, realize downloading first information file and corresponding resource information by each module from regional outer net, and the address that second Resource Server in the regional Intranet is revised as in the address of first Resource Server of regional outer net in the message file, so that the download of the client of regional Intranet.By adopting the scheme of present embodiment, can guarantee the dispatching efficiency of follow-up resource downloading, further guaranteed the high-performance of P2P network in the resource downloading process.
Fig. 7 is the structural representation of the resource downloading processing unit of the embodiment of the invention seven.As shown in Figure 7, on above-mentioned basis embodiment illustrated in fig. 5, the blocking module 10 in the resource downloading processing unit of present embodiment can comprise: copied cells 101, first determining unit 102, second determining unit 103 and interception unit 104.
Wherein copied cells 101 is used to duplicate download request.The client that it is regional Intranet that first determining unit 102 is used for definite download request is sent to the download request of regional outer net.Second determining unit 103 is used for determining that second Resource Server stores second message file of download request correspondence.The client that interception unit 104 is used to tackle regional Intranet is sent to the download request of regional outer net.
The client that copied cells 101 is used for the replication region Intranet in the resource downloading processing unit of present embodiment is sent to the download request of regional outer net.The copied cells 101 of present embodiment can adopt light-dividing device or mirroring device to realize.First determining unit 102 is connected with copied cells 101, and first determining unit 102 is used to detect the download request that copied cells 101 duplicates, and to detect this download request be that client is sent to the download request of regional Intranet or the download request of regional outer net; And determine that the download request of duplicating is the download request that client is sent to regional Intranet.Second determining unit 103 is connected with first determining unit 102, it is that client is when being sent to the download request of regional Intranet that second determining unit 103 is used for determining download requests when first determining unit 102, further whether store second message file of this download request correspondence in second Resource Server of surveyed area Intranet correspondence, and store second message file of this download request correspondence in second Resource Server of definite regional Intranet correspondence.Interception unit 104 is connected with second determining unit 103, be used for when second determining unit 103 determines that second Resource Server of regional Intranet correspondence stores second message file of this download request correspondence, the client of tackling regional Intranet is sent to the download request of regional outer net.Scheduler module 11 is connected with interception unit 104, scheduler module 11 is used for obtaining second message file of this download request correspondence from second Resource Server of regional Intranet correspondence after the client of the regional Intranet of interception unit 104 interceptions is sent to the download request of regional outer net.The subdispatch of regional Intranet resource downloading is finished in the operation of follow-up execution sending module 12.In detail with reference to the foregoing description five.
Need to prove, in the present embodiment, also may there be another kind of situation: when second determining unit 103 does not store second message file of download request correspondence in second Resource Server of surveyed area Intranet correspondence, client can continue to download first information file according to download request, and downloads corresponding resource information according to the address of first Resource Server of the regional outer net in the first information file.At this moment, also can comprise download module 15, modified module 16 and memory module 17 in the resource downloading processing unit of present embodiment.Accordingly, can adopt download module 15, modified module 16 and the memory module 17 identical with the foregoing description six.Download module 15 is connected with second determining unit 103, when second determining unit 103 stores second message file of download request correspondence in for second Resource Server that detects regional Intranet correspondence, download module 15 is downloaded first information file according to download request from regional outer net; And, download corresponding resource information from first Resource Server according to the address of first Resource Server in the first information file.Modified module 16 is connected with download module 15, and the address with second Resource Server is revised as in the address of first Resource Server in the first information file of download module 15 downloads makes first information file be updated to second message file.Memory module 17 is connected with modified module 16 with download module 15 respectively, and the resource information that modified module 16 amended second message files and download module 15 downloaded is stored in second Resource Server, for the client downloads of regional Intranet.Can not repeat them here with reference to the record of above-mentioned related embodiment in detail.
Implementation in the resource downloading processing unit of present embodiment between each module and reciprocal process can not repeat them here with reference to the associated description of said method embodiment.
The resource downloading processing unit of present embodiment is realized the subdispatch that P2P resources in network is downloaded by each module, can simplify in the regional Intranet flow process of subdispatch in the resource downloading process effectively, improves dispatching efficiency and scheduling performance.Also can avoid simultaneously Local Area Network to suffer the risk that the malice dispatch request is attacked.
The resource downloading processing unit of above embodiment, when carrying out download schedule, the corresponding regional Intranet of each resource downloading processing unit.But can adopt a resource downloading processing unit can support a plurality of regional Intranets simultaneously.Just a plurality of regional Intranets can be shared a resource downloading processing unit, just when certain regional Intranet is worked, the address that to be revised as second Resource Server of this zone Intranet from the address of the resource information the message file that regional outer net is downloaded accordingly, and amended message file and corresponding resource information are stored in second Resource Server of regional Intranet correspondence.That is to say that the corresponding different zone of second Resource Server need be set to different regional addresss.Realization mechanism in the download schedule of each regional Intranet is all identical, in detail can be with reference to the record of the various embodiments described above.
Fig. 8 is the structural representation of the resource downloading treatment system of the embodiment of the invention eight.As shown in Figure 8, the kind resource downloading treatment system of present embodiment is applied to handle the resource downloading in the peer-to-peer network.The resource downloading treatment system of present embodiment specifically can comprise: at least one client 20, resource downloading processing unit 21 and second Resource Server 22.
Wherein at least one client 20 is in the same area Intranet in the P2P network.Resource downloading processing unit 21 is connected with second Resource Server 22 with at least one client 20 respectively.Resource downloading processing unit 21 is used to tackle the download request that arbitrary client 20 is sent to regional outer net; Wherein this download request comprises the download address of regional outer net and the resource information sign that request is downloaded.This download request is used for according to download address, and request is from the first information file of regional outer net downloaded resources information correspondence.The first information file here comprises the address of first Resource Server of the regional outer net of storage resources information.Resource downloading processing unit 21 and according to resource information sign obtains the second corresponding message file from second Resource Server 22 of regional Intranet correspondence.Wherein second message file comprises the address of second Resource Server 22 of the regional Intranet of storage resources information.Second message file that resource downloading processing unit 21 will obtain at last sends to the client 20 that sends download request, for the address of client 20 according to second Resource Server 22, downloads resource information from second Resource Server 22.Second Resource Server 22 is used for second message file of storage area Intranet.
Resource downloading processing unit 21 in the resource downloading treatment system of present embodiment can not repeat them here with reference to the record of above-mentioned related embodiment in detail with reference to the foregoing description five, six or seven described resource downloading processing unit.
The resource downloading treatment system of present embodiment realizes can be arbitrary described with reference to said method embodiment one to four to the realization mechanism of the processing of the resource downloading in the P2P network, can not repeat them here with reference to the record of above-mentioned related embodiment in detail.
The resource downloading treatment system of present embodiment, when carrying out download schedule, the corresponding regional Intranet of each resource downloading treatment system.But can adopt a resource downloading treatment system can support a plurality of regional Intranets simultaneously.Just a plurality of regional Intranets can be shared a resource downloading treatment system, just when certain regional Intranet is worked, the address that to be revised as second Resource Server of this zone Intranet from the address of the resource information the message file that regional outer net is downloaded accordingly, and amended message file and corresponding resource information are stored in second Resource Server of regional Intranet correspondence.That is to say that the corresponding different regional Intranet of second Resource Server need be set to different regional addresss.Realization mechanism in the download schedule of each regional Intranet is all identical, in detail can be with reference to the record of the various embodiments described above.
The resource downloading treatment system of present embodiment realizes the subdispatch that the P2P resources in network is downloaded by the resource downloading processing unit, can simplify in the regional Intranet flow process of subdispatch in the resource downloading process effectively, improves dispatching efficiency and scheduling performance.Also can avoid simultaneously Local Area Network to suffer the risk that the malice dispatch request is attacked.
Device embodiment described above only is schematic, wherein the unit as the separating component explanation can or can not be physically to separate also, the parts that show as the unit can be or can not be physical locations also, promptly can be positioned at a place, perhaps also can be distributed at least two network element.Can select wherein some or all of module to realize the purpose of present embodiment scheme according to the actual needs.Those of ordinary skills promptly can understand and implement under the situation of not paying performing creative labour.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical scheme.