Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, embodiment of the present invention is described further in detail below in conjunction with accompanying drawing.
In the P2P network, in order to improve the P2P application performance, realize resources requesting party active chosen content source as required, fit better user's needs, satisfy user's QoE, the embodiment of the invention provides a kind of method that realizes that content source is selected, in peer-to-peer network P2P network, referring to Fig. 3, this method comprises:
S1: receive resource lookup request, carry the resource identification of resource request equipment resource to be obtained, resource request equipment provides equipment to resource P2P attribute demand indication in this resource lookup request from resource request equipment;
S2: according to the P2P attribute of each content source facility of record, and resource identification that receives and demand indication, selecting can provide resource to be obtained and the resource of the indication that satisfies the demands provides equipment;
S3: return the address that selected resource provides equipment to resource request equipment, so that resource request equipment provides device request resource to be obtained according to the address to resource.
Further, before above-mentioned steps S2, can also comprise:
Receive the resource information of each content source facility issue in the P2P network, comprise the resource identification of resource that content source facility is issued, the address of content source facility, the P2P attribute of content source facility in this resource information.
Or,
Further, before above-mentioned steps S2, can also comprise:
Receive the resource information of each content source facility issue in the P2P network, comprise the resource identification of resource that content source facility is issued, the resource data of content source facility issue, the P2P attribute of content source facility in this resource information;
Correspondingly, above-mentioned steps S3 also comprises:
Return the resource data that resource provides equipment to resource request equipment, this resource data that returns is resource request equipment resource to be obtained.
The method that the embodiment of the invention provides, by carry the indication of P2P attribute demand in the resource lookup request, according to the indication of P2P attribute demand, the resource of indicating of selecting to satisfy the demands provides equipment.Increased the right to choose of P2P service request side, the P2P service request can enough select resource that equipment is provided by demand, has promoted user's QoE.
For the method that the invention described above embodiment is provided is elaborated, see also following embodiment, wherein, it is example that embodiment 1 is applied to P2P network architecture schematic diagram shown in Figure 1 with the method that the embodiment of the invention is provided; It is that example describes that embodiment 2 is applied to P2P network architecture schematic diagram shown in Figure 2 with the method that the embodiment of the invention is provided, and sees for details as follows:
Embodiment 1
The embodiment of the invention provides a kind of method that realizes that content source is selected, with P2P network architecture schematic diagram shown in Figure 1 is example, suppose that content source facility (Peer1 and Peer5) issued same content on Root, resource request equipment (Peer3) will obtain this content, referring to Fig. 4, this method content sees for details as follows:
Step 101: at T0 constantly, Peer1 sends resource to the Root node and gives out information, and carries content (Key/Value) that Peer1 will issue and the moment T0 that issues this Key/Value during this resource gives out information.
Wherein, resource gives out information and specifically can adopt the Put order to realize.The content that Peer1 will issue specifically comprises Key/Value, and this Key value is the content-label value in the P2P network, and for convenience of explanation, it is that example describes that present embodiment is specially X with the Key that this Peer1 was issued.This Value specifically can be the corresponding particular content of this Key value, can also be the Peer1 address of this Key of issue, and present embodiment is example with Value for the Peer1 address for convenience of explanation.
The resource that step 102:Root node reception Peer1 sends gives out information, and it is right to preserve this Key/Value, and the record issue is T0 constantly, and returns resource to Peer1 and issue response.
Wherein, be the Put order if resource gives out information, then resource issue response is PutACK.Alternatively, the Root node also can not return resource issue response, and present embodiment does not limit this.
Step 103: at T1 constantly, Peer5 sends resource to the Root node and gives out information, and carries content (Key/Value) that Peer5 will issue and the moment T1 that issues this Key/Value during this resource gives out information.
For convenience of explanation, present embodiment is all example with the Key that Peer5 was issued mutually with the Key that Peer1 is issued.
The resource that step 104:Root node reception Peer5 sends gives out information, and it is right to preserve this Key/Value, and the record issue is T1 constantly, and returns resource to Peer1 and issue response.
Referring to table 1, the Key/Value information signal table of the Root nodes records that provides for the embodiment of the invention.
Table 1
Key |
Value |
Issue constantly |
X |
Peer1 |
T0 |
X |
Peer5 |
T1 |
...... |
...... |
...... |
Y |
Peer4 |
T0 |
...... |
...... |
...... |
Similarly, its Key/Value separately of the issue of other Peer nodes (as Peer4) to and issue constantly; Correspondingly, as shown in table 1, the keeping records of Root node the Key/Value that comes of all issues right, and issue is constantly.Suppose T2>T1>T0.
Step 105: at T2 constantly, Peer3 sends resource lookup message to the Root node, carries Key, the time-to-live that will obtain in this resource lookup message and preferentially indicates.
Wherein, this resource lookup message specifically can realize by Get order, and the user who supposes this Peer3 wishes to obtain Key and is specially X.
Because user's adding and withdraw from very frequent in the P2P network ... etc. reason, in order to significantly improve the efficient of resource downloading, therefore, requesting party Peer3 has carried the time-to-live in resource lookup message and has preferentially indicated.
Step 106:Root node receives the resource lookup message that Peer3 sends, preferentially indicate according to the Key and the time-to-live of carrying in this resource lookup message, search the Key/Value information signal table of self record, after issue is sorted constantly according to the resource of each Peer node, get access to the Value of Peer1 correspondence.Being Peer1 provides equipment for the selected resource that goes out.This step is implemented as follows:
At first, Root is according to Key value (being specially X), and getting access to the Peer of this Key value node can be provided is Peer1 and Peer5;
Then, Root from Peer1 and Peer5, selects Peer1 again according to the time-to-live priority indicator.
Because the time of Peer1 issue can think that early than Peer5 the Key time-to-live of Peer1 is longer than the Key time-to-live of Peer5, therefore, can think that generally Peer1 is more stable than Peer5, then according to the time-to-live priority indicator, selects Peer1.
Step 107:Root node returns the resource lookup response to Peer3, the address of carrying Peer1 in this resource lookup response.
Step 108:Peer3 receives the resource lookup response, and the address according to the Peer1 that carries in this resource lookup response sends resource request message to Peer1, realizes getting access to the corresponding data content of Key value from Peer1.
So far, to step 108, realized the needs according to requesting party (Peer3) by above-mentioned steps 101, selected its needed content source (Peer1), thereby satisfied user's demand, the user's that fits better needs satisfy user's QoE.
Wherein, the foregoing description is that the time-to-live is preferential with requesting party's demand, and present embodiment is only done example explanation, and other sees also table 2, the form signal table of the resource lookup message that provides for the embodiment of the invention.
Table 2
Field 1 |
Field 2 |
Field 3 |
Field 4 |
Field 5 |
Field 6 |
Reserved field |
Time-to-live is preferential |
Application type |
UpBW is preferential |
The maximum bandwidth that allows |
Not behind NAT/FW |
Concurrent connection number is maximum |
...... |
As shown in table 2, with present embodiment correspondingly, put 1 expression requesting party in the time-to-live priority field and wish to obtain preferential content source of time-to-live as resource provider, in table 2,
1, application type field, the expression requesting party wishes to obtain the resource that satisfies its needed application type, with Key value X is example, suppose to provide the application type of this Key value to comprise BTV (Broadcast TV, radio and television), VOD (Video On Demand, video on demand), VOIP (Voice Over InternetProtocol, IP phone), file-sharing, transaction management etc.If Peer2 has carried application type in the resource lookup request of initiating be file-sharing, then Root can be that the Peer node of issuing this content with the file-sharing form is selected in file-sharing according to this application type.Wherein, Root obtains the mode of the application type of the content correspondence that each Peer node issued, can obtain for the form that when content distributed, initiatively reports by the Peer node, can also be for obtaining by the means of obtaining to operator, present embodiment does not limit this.
2, UpBW (Upload BandWidth, upload bandwidth) priority field, the expression requesting party wishes to obtain resource and uploads the big Peer node of bandwidth, similar with the time-to-live priority field, that preserves in the Root node uploads bandwidth attribute, can obtain by the form that each Peer node initiatively reports when content distributed, can also be for obtaining by the means of obtaining to operator, present embodiment does not limit this.
3, the maximum bandwidth field that allows, expression is at the Peer node of different access waies (as modes such as wireless access, wired accesses), the requesting party selects the Peer node of the resource provider identical with own access way, thereby can realize that the requesting party selects the close resource provider of speed of download of uploading bandwidth and oneself, thereby can optimize transport process.Similar with above-mentioned field, the maximum of preserving in the Root node allows bandwidth attribute, can be obtained by the form that each Peer node initiatively reports when content distributed, can also be for obtaining by the means of obtaining to operator, and present embodiment does not limit this.
4, not at NAT (Network Address Translation, network address translation)/FW (FireWall, fire compartment wall) back field, the Peer node that the expression requesting party wishes to obtain the resource that its hope of issue obtains is not positioned at after the NAT/FW, because after if the Peer node of issuing this resource is positioned at NAT/FW, then can cause this Peer node request resource process of subsequent request Fang Zaixiang to cause unreachable problem, giving connects brings extra trouble, similar with above-mentioned field, whether preserve the P2P attribute behind NAT/FW in the Root node, can obtain by the form that each Peer node initiatively reports when content distributed, can also be for obtaining by the means of obtaining to operator, present embodiment does not limit this.
5, the maximum fields of concurrent connection number, it is the many nodes of concurrent connection number order that the expression requesting party wishes to get access to the Peer node of issuing its demand resource.Similar with above-mentioned field, as to preserve in Root node concurrent connection number attribute can be obtained by the form that each Peer node initiatively reports when content distributed, can also be for obtaining by the means of obtaining to operator, and present embodiment does not limit this.
To sum up, the embodiment of the invention is only done exemplary illustration with above-mentioned field, when specific implementation, be not restricted to above-mentioned field, can also comprise other P2P attribute fields further, for example, can also comprise the pressing degree field, expression requesting party's demand wishes that then getting access to the Peer node of issuing its demand resource is buffer memory (cache) if fill soon, if dash slowly, then can select the Peer node of its demand resource of issue of other non-cache.Those skilled in the art can be known, the P2P attribute that above-mentioned each field is indicated, the operation layer that can be divided into the requesting party is to the demand of P2P attribute and requesting party self demand to the P2P attribute, for example, above-mentioned operation layer demand comprises: application layer type, pressing degree, UpBW is preferential, concurrent connection number is maximum etc.; Above-mentioned requesting party's self demand comprises: maximum allow bandwidth, not after NAT/FW etc.
In addition, the requesting party is when sending above-mentioned resource lookup message, above-mentioned field can send use separately, can also combination in any use, for example, still Figure 1 shows that example, suppose to carry the Key value in the resource lookup message that Peer3 sends, time-to-live preferentially indicates and does not indicate behind NAT/FW, then correspondingly, returns to Peer3 if Root need select the Peer node that satisfies above-mentioned information.Present embodiment is not done any restriction to this.
In sum, the method that realization content source that the embodiment of the invention provides is selected, by in P2P service request side when initiating the P2P service request, indicate the principle in preferential chosen content source, thereby realize the principle that Root indicates according to P2P service request side, select suitable content source.Increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
Embodiment 2
The embodiment of the invention provides a kind of method that realizes that content source is selected, with P2P configuration diagram shown in Figure 2 is that example describes, suppose that content source facility (Client1, Client3) issued same content on P2P Overlay, resource request equipment (Client2) wishes to obtain this content, referring to Fig. 5, this method content sees for details and thes contents are as follows:
Step 201:Client1 sends resource and gives out information, and that carries during this resource gives out information that content (Key/Value) that Client1 will issue and Client1 can provide uploads bandwidth M1.
Wherein, resource gives out information and specifically can adopt the Put order to realize.For convenience of explanation, to be specially X with the Key that this Client1 was issued be that example describes to present embodiment; This Value be specifically as follows the corresponding particular content of this Key value, can be for issuing the Client address of this Key, present embodiment is example with Value for the Client1 address for convenience of explanation.
Step 202:Peer1 receives resource and gives out information, and the Key value of carrying in giving out information according to this resource finds the Root node, and this resource is given out information sends to this Root node.
As shown in Figure 2, this Root node is Peer2.
Step 203:Root receives the resource that Peer1 sends and gives out information, and it is right to preserve this Key/Value, and record Client1 can provide uploads bandwidth M1, and returns the resource issue to Peer1 and respond.
Wherein, be the Put order if resource gives out information, then resource issue response is Put ACK.Alternatively, the Root node also can not return resource issue response, and present embodiment does not limit this.
Step 204:Client3 sends resource and gives out information, and that carries during this resource gives out information that content (Key/Value) that Client3 will issue and Client3 can provide uploads bandwidth M3.
Wherein, for convenience of explanation, present embodiment is all example with the Key that Client3 was issued mutually with the Key value that Client1 is issued.
Step 205:Peer4 receives resource and gives out information, and the Key value of carrying in giving out information according to this resource finds the Root node, and this resource is given out information sends to this Root node.
As shown in Figure 2, this Root node is Peer2.
Step 206:Root receives the resource that Peer4 sends and gives out information, and it is right to preserve this Key/Value, and record Client3 can provide uploads bandwidth M3, and returns the resource issue to Peer4 and respond.
Referring to table 3, the Key/Value information signal table of the Root nodes records that provides for the embodiment of the invention.
Table 3
Key |
Value |
Upload bandwidth |
X |
Client1 |
M1 |
X |
Client3 |
M3 |
...... |
...... |
...... |
Y |
Client4 |
M3 |
...... |
...... |
...... |
Similarly, other Client nodes (as Client4) issue its Key/Value separately to and separately upload bandwidth attribute; Correspondingly, as shown in table 3, the keeping records of Root node the Key/Value that comes of all issues right, and separately upload bandwidth attribute.Suppose M3>M1.
Step 207:Client2 sends resource lookup message, carries Key value, the UpBW that will obtain in this resource lookup message and preferentially indicates.
Wherein, this resource lookup message specifically can realize by Get order, and the user who supposes this Client2 wishes to obtain the Key value and is specially X.
Step 208:Peer3 receives resource lookup message, and the Key according to carrying in this resource lookup message finds the Root node, and resource lookup message is sent to this Root node.
Step 209:Root node receives resource lookup message, preferentially indicates according to the Key and the UpBW that carry in this resource lookup message, searches the Key/Value information signal table of self record, obtains the Value of Client3 correspondence.Being Client3 provides equipment for the selected resource that goes out.This step is implemented as follows:
At first, Root is according to Key value (being specially X), and getting access to the Peer of this Key value node can be provided is Client1 and Client3;
Then, Root preferentially indicates according to UpBW again, from Client1 and Client3, selects Client3.
Step 210:Root node returns the resource lookup response to Peer3, the address of carrying Client3 in this resource lookup response.
Step 211:Peer3 receives the resource lookup response, and this resource lookup response is sent to Client2.
Step 212:Client2 receives the resource lookup response, and the address according to the Client3 that carries in this resource lookup response sends resource request message to Client3, realizes getting access to the corresponding data content of Key value from Client3.
Further, in step 209, if Root selects greater than a Client according to preferential indication of UpBW, then can be in conjunction with the local predetermined strategy of Root, from the content source of selecting that satisfies the Client2 demand, determine the content source that need return to Client2, as can selecting at random or select according to other rule, any restriction is not done in the present embodiment contrast.Or further, the content source of a plurality of Client2 of satisfying demands of selecting all can be returned to Client2, and make one's options by Client2 self, determine and need initiate resource request message to which Client wherein.Present embodiment is only done the example explanation, does not limit concrete implementation and method.
So far, to step 212, realized the needs according to requesting party (Client2) by above-mentioned steps 201, selected its needed content source (Client3), thereby satisfied user's demand, the user's that fits better needs satisfy user's QoE.
Still can be referring to the field shown in the table 2 among the embodiment 1, Client2 when initiating resource lookup message, also can carry the described field of table 2 any one or multiple, present embodiment repeats no more.
In sum, the method that realization content source that the embodiment of the invention provides is selected, by in P2P service request side when initiating the P2P service request, indicate the principle in preferential chosen content source, thereby realize the principle that Root indicates according to P2P service request side, select suitable content source.Increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
Embodiment 3
Present embodiment is that example describes to have disposed pTracker and safe Tracker in the network, wherein, pTracker is deployed under the carrier network, wherein, safe Tracker is for grasping the server of global safety, be used for safety evaluation method by specialty as technology such as scanning, penetration testing, the security configuration state of each node in the collection network, and it is assessed and sort.
Be example still with P2P configuration diagram shown in Figure 2, suppose that content source facility (Client1, Client3) issued same content on P2P Overlay, resource request equipment (Client2) wishes to obtain this content, and referring to Fig. 6, this method content sees for details and thes contents are as follows:
Step 301:Client1 has issued Key/Value by Peer1 on P2P Overlay.
Wherein, suppose that the Key that this Client1 issues is specially X.This step and embodiment 2 described step 201-steps 203 are similar, repeat no more.
Step 302:Client3 has issued Key/Value by Peer3 on P2P Overlay.
Wherein, because Client3 is the same with the content of Client1 issue, so this Key also is X.This step and embodiment 2 described step 204-steps 206 are similar, repeat no more.
Step 303:Client2 sends resource lookup message, carries Key, preferentially indication of safety that its hope is obtained in this resource lookup message.
Step 304:Peer3 receives resource lookup message, sends this resource lookup message to pTracker.
After step 305:pTracker received resource lookup message, according to its Key value (being specially X) of carrying, from the Key/Value centering of self storing, finding out to provide the Client of this Key value node, and the Client node of searching is constituted the Peer tabulation; Preferentially indicate according to the safety of wherein carrying, know and to transmit this resource lookup message to safety Tracker, then transmit this resource lookup message and send the Peer tabulation to safety Tracker to safety Tracker.
Step 306: safe Tracker preferentially indicates according to the safety of wherein carrying after receiving this resource lookup message, and the Peer that receives tabulation, returns by the resource provider of safe ordering to pTracker and tabulates.
Referring to table 4, for the embodiment of the invention provide by the resource provider of safe ordering tabulation signal table.
Table 4
Key |
Fail safe ordering (from high to low) |
X |
Client3 |
X |
Client1 |
X |
ClientN |
...... |
...... |
Step 307:pTracker selects Client3 after receiving the resource provider tabulation that safe Tracker returns; And return resource lookup response, the address of carrying the Client3 that selects in this resource lookup response to Peer3.That is, Client3 provides equipment for resource.
Step 308:Peer3 receives the resource lookup response, and this resource lookup response is sent to Client2.
Step 309:Client2 receives the resource lookup response, and the address according to the Client3 that carries in this resource lookup response sends resource request message to Client3, realizes getting access to the corresponding data content of Key value from Client3.
Present embodiment is to be the explanation that example is carried out to have disposed safe Tracker in network, similarly, can also dispose excitation Tracker in network, and this excitation Tracker is a server grasping overall popularity information.(at structure chart shown in Figure 1, this node of being added up is the Peer node by each node of statistics for it; At structure chart shown in Figure 2, be the Client node by the node added up) upload/the download ratio and the malicious act of statistics node, with node-classification be selfish/unselfish, perhaps good/bad, and according to its selfish degree or malice degree, promptly assess and sort by fame.
No matter above-mentioned be safe Tracker, still encourage Tracker, as functionality entities, can realize by the mode that server is set during specific implementation, and these servers can be to be provided by ISP (Internet ServerProvider, ISP), also can be P2P operator provides, or other third parties provide.
In sum, the method that realization content source that the embodiment of the invention provides is selected, by in P2P service request side when initiating the P2P service request, indicate the principle in preferential chosen content source, thereby realize the principle that Root indicates according to P2P service request side, select suitable content source.Increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
Embodiment 4
Referring to Fig. 7, the embodiment of the invention provides a kind of equipment of realizing that content source is selected, comprising:
Receiver module 401 is used to receive the resource lookup request from resource request equipment, carries the resource identification of resource request equipment resource to be obtained, resource request equipment provides equipment to resource P2P attribute demand indication in this resource lookup request;
Logging modle 402 is used to preserve the P2P attribute of each content source facility of issuing resource;
Select module 403, be used for the resource identification, the demand indication that receive according to receiver module 401, and the P2P attribute of logging modle 402 each content source facility of preserving, selecting can provide resource to be obtained and the resource of the indication that satisfies the demands provides equipment;
Sending module 404 is used for returning the address that the resource of selecting module 403 to select provides equipment to resource request equipment, so that resource request equipment provides device request resource to be obtained according to the address of returning to resource.
Wherein, select module 403 to comprise:
Search the unit, be used for according to the resource identification that receives, find out the content source facility of the resource that can provide to be obtained;
Selected cell is used for according to the P2P attribute demand indication that receives, and the P2P attribute preserved of logging modle 402 is selected the resource that satisfies the P2P attribute demand indication that receives equipment is provided from the content source facility of searching the unit and finding.
Further, realize that the equipment that content source is selected also comprises:
First obtains module, is used for receiving the resource information of each content source facility issue of P2P network, comprises resource identification, the address of content source facility and the P2P attribute of content source facility of the resource that content source facility sends in this resource information;
Or, realize that the equipment that content source is selected also comprises:
Second obtains module, is used for receiving the resource information of P2P network content source facility issue, comprises the resource identification of the resource that content source facility sends, the resource data of content source facility issue and the P2P attribute of content source facility in this resource information;
Correspondingly, sending module 404 also is used for returning the resource data that resource provides equipment to resource request equipment, and this resource data that returns is resource request equipment resource to be obtained;
Wherein, the indication of P2P attribute demand includes but not limited to:
Resource request equipment is wished the application type indication of the resource obtained, resource request equipment is indicated the pressing degree of the resource that hope is obtained, resource request equipment wishes that the bandwidth of uploading of the resource obtained preferentially indicates, concurrent connection number is preferentially indicated, resource request equipment wishes that the time-to-live of the resource obtained preferentially indicates, the maximum bandwidth that allows is indicated, resource request equipment wishes that the resource of obtaining do not indicate behind network address translation/fire compartment wall, resource provides preferential indication of the safety of equipment or resource to provide the popularity of equipment preferentially to indicate.
Wherein, the equipment of this realization content source selection is specially:
The root Root node of P2P network; Or,
The pTracker server of P2P network.
In sum, the equipment that the realization content source that the embodiment of the invention provides is selected, receiver module passes through in P2P service request side when initiating the P2P service request, reception indicates the principle in preferential chosen content source, thereby the principle of selecting module to indicate according to P2P service request side is selected suitable content source.Improved the P2P application performance, increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
Embodiment 5
Referring to Fig. 8, the embodiment of the invention provides a kind of resource request equipment, and this resource request equipment is arranged in the P2P network, comprising:
Sending module 501 is used for sending the resource lookup request to the P2P network, carries the resource identification of resource to be obtained in this resource lookup request, resource is provided the P2P attribute demand indication of equipment;
Receiver module 502, being used to receive resource that the P2P network returns provides the address of equipment, the indication of the resource identification that this address of returning is the network based reception of P2P, demand, selected go out resource to be obtained can be provided and the resource of the indication that satisfies the demands provides the equipment corresponding address;
Request module 503 is used for the address according to receiver module 502 receptions, provides device request resource to be obtained to resource.
Further, when this resource request equipment carried out the resource issue, this resource request equipment also comprised:
Release module is used for self providing the resource information of resource to the issue of P2P network, comprises resource identification, the address of self, the P2P attribute of self in this resource information; Or, comprise resource identification, described resource data, the P2P attribute of self in this resource information.
In sum, the equipment of the resource request that the embodiment of the invention provides, by in P2P service request side when initiating the P2P service request, sending module sends the principle that indicates preferential chosen content source, thereby realize the principle that Root indicates according to P2P service request side, select suitable content source.Improved the P2P application performance, increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
Embodiment 6
Referring to Fig. 9, the embodiment of the invention provides a kind of peer-to-peer network system, comprising: resource request equipment 601, realize the equipment 602 that content source is selected;
Resource request equipment 601 is used for to realizing that the equipment 602 that content source is selected sends the resource lookup requests, carry in this resource lookup request resource request equipment 601 resource to be obtained resource identification, self resource is provided the P2P attribute demand indication of equipment; Also be used to receive and realize that resource that equipment 602 that content source is selected returns provides the address of equipment; According to the address of returning, provide device request resource to be obtained to resource;
Realize the equipment 602 that content source is selected, be used to receive resource lookup request from resource request equipment 601; According to the resource identification that receives, the indication of P2P attribute demand, and the P2P attribute of each content source facility; Select resource to be obtained can be provided and satisfy the demands the indication resource equipment is provided; Return the address that resource provides equipment to resource request equipment 601.
Wherein, realize the equipment 602 that content source is selected, also be used for receiving the resource information of each content source facility issue of P2P network, comprise the address of resource identification, content source facility in this resource information, the P2P attribute of content source facility; Or,
Realize the equipment 602 that content source is selected, also be used for receiving each resource information of P2P network, comprise the resource data that resource identification, content source facility are issued in this resource information, the P2P attribute of content source facility the content source facility issue.
Wherein, when the resource data of realizing that equipment 602 received content source devices that content source is selected are issued, correspondingly,
Realize the equipment that content source is selected, also be used for returning the resource data that is provided that resource provides equipment that the resource data that returns is resource request equipment resource to be obtained to resource request equipment 601.
In sum, the embodiment of the invention provides the peer-to-peer network system, and resource request equipment indicates the principle in preferential chosen content source when initiating the P2P service request, thereby realizes the principle that content source selects the equipment basis to indicate, and selects suitable content source.Improved the P2P application performance, increased the right to choose of P2P service request side, the user's request of more fitting has promoted user's QoE.
" reception " speech in the embodiment of the invention can be understood as and initiatively obtains from other modules also can be to receive the information that other modules are sent.
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above embodiment sequence number is not represented the quality of embodiment just to description.
Part steps in the embodiment of the invention can utilize software to realize that corresponding software programs can be stored in the storage medium that can read, as CD or hard disk etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.