Embodiment
The inventor finds by analysis, employing has its advantage by the transmission means of peer node transfer, such as, can utilize in transmitting procedure for the peer node of media content being carried out transfer and carry out copying of media content and reproducting content is offered the user terminal that other ask same media content, thereby the repetition flow in the minimizing network, also can carry out security monitoring to the higher media content of security permission in the transfer process of media content by described peer node, thus problem that the minimizing media content is maliciously propagated etc.But, adopt this transmission means might cause corresponding peer node load overweight and affect efficiency of transmission.By transmission means straight-through between the user, its advantage is arranged also and adopt, such as not needing through the peer node transfer, thereby can't too much take the P2P Internet resources in transmitting procedure, thereby can improve efficiency of transmission etc.
Analyzing above-mentioned two kinds of transmission meanss separately on the basis of advantage, the embodiment of the present invention provides a kind of P2P network media transmission method, and it can realize the mutual supplement with each other's advantages of above-mentioned two kinds of transmission meanss.Described P2P network can be at the P2P network based on peer node-user terminal (Peer-Client) framework.See also Fig. 1, when the user terminal (hereinafter referred to as the requesting terminal) of request media content is asked corresponding media content to the user terminal that media content is provided (hereinafter referred to as the content source terminal) in the P2P network, at first, the peer node of requesting terminal side (hereinafter referred to as requesting node) receives the media content request from the requesting terminal; Secondly, the described request node is according to described media content request, obtain the tolerance sign relevant to the media content of described request terminal request, wherein said tolerance sign is for one or more combinations of the loading level of popular degree, security permission or the relevant peer node of the media content of expression described request terminal request; At last, the described request node is carried to described tolerance sign the media content request that receives, and the media content request that will comprise described tolerance sign sends to the content source terminal, adopts straight-through transmission means between the transmission means of peer node transfer or content source terminal and requesting terminal to send the media content of described request terminal request to ask described content source terminal according to described tolerance sign.
Further, for instance, when the popular degree of described tolerance sign expression media content, if the access statistic of described media content surpasses a certain predetermined reference value, the described media content of described tolerance sign expression is popular content, and it can correspondence be designated as H-tag=1; And if the access statistic of described media content is during less than or equal to this predetermined reference value, the described media content of described tolerance sign expression is the unexpected winner content, and it can correspondence be designated as H-tag=0.Again such as, when the security permission of described tolerance sign expression media content, if described media content need to be by security monitoring, described tolerance sign can be designated as H-tag=1; Otherwise, be designated as H-tag=0.Again such as, when described measurement representation represents the loading level of relevant peer node, if the peer node that described media content is corresponding (as source node etc.) load is normal, work as described peer node if described tolerance sign can be designated as H-tag=1 and overload occurs, be designated as H-tag=0.
Further, the described request node is after obtaining described tolerance sign, also can be further analyze the value of described tolerance sign, judge that take the value according to described tolerance sign described media content is whether as popular content or judge described media content whether whether the be correlated with load of peer node of needs security monitoring or judgement is normal.
Further, described media content request can carry the address information of described request terminal, and the described request node also can according to its analysis result to the value of described tolerance sign, be processed the address information that described media content request is carried accordingly.Such as, when the corresponding media content of described tolerance sign expression is that popular content or its need security monitoring or its relevant peer node load when normal, the described request node also can further be replaced described request terminal address information with its local address information, thereby its local address information is carried on described media content request and sends to the peer node (hereinafter referred to as source node) of described content source terminal or content source end side, so that described content source terminal can adopt the transmission means of peer node transfer to carry out the transmission of media content.And when the corresponding media content of described tolerance sign expression be that unexpected winner content or its be not when needing security monitoring or its relevant peer node overload, the described request node carries out transparent transmission to the requesting terminal address information that the media content request that receives is carried, thereby described request terminal address information is sent to described content source terminal, so that described content source terminal can adopt the straight-through transmission means of content source terminal and requesting terminal to carry out the transmission of media content.
Further, the described request node can be handed to described content source terminal by the media content request that source node will comprise described tolerance sign, and utilize described tolerance sign to notify the peer node of described content source end side in delivering process, the entrained address information of media content request that comprises described tolerance sign to be carried out respective handling, such as address information being replaced or carrying out transparent transmission.
Further, can have certain corresponding relation between the transmission means of described tolerance sign and media content.Such as, if described tolerance is designated H-tag=1, be described media content be popular content or its need security monitoring or its relevant peer node load normal, the described request node can notify described content source terminal to adopt the transmission means of peer node transfer by described tolerance sign; And if described tolerance is designated H-tag=0, be that described media content is that unexpected winner content or its do not need security monitoring or its relevant peer node overload, the described request node notifies described content source terminal to adopt transmission means straight-through between content source terminal and requesting terminal by described tolerance sign.
Further, when described content source terminal adopts the transmission means of peer node transfer, the described request node also can will be delivered to the described request terminal from the media content of described content source terminal, and is confirmed whether the media content that exists other user terminal requests same in delivering process; If exist, described media content copied, and reproducting content is sent to the respective user terminal.Further, the described request node also can carry out copying and saving with the media content via its transfer in advance, then is confirmed whether the media content that exists other user terminal requests same; If exist, the media content with pre-save directly exports the respective user terminal to.
For ease of understanding, this situation of popular degree that the below is used for the presentation medium content take described tolerance sign is as example, and the P2P network media transmission method that by reference to the accompanying drawings embodiment of the present invention is provided is described further.See also Fig. 2, Fig. 3, wherein Fig. 2 is the Signalling exchange figure of a kind of specific embodiments of P2P network media transmission method of the present invention when media content is popular content, and Fig. 3 is the Signalling exchange figure of a kind of specific embodiments of P2P network media transmission method of the present invention when media content is the unexpected winner content.P2P network media transmission method specific embodiments of the present invention mainly comprises the following steps:
Step 201, the requesting terminal sends media content request Setup_0 to requesting node, and wherein, described media content request Setup_0 portability has the address information of described requesting terminal, is used for carrying out the IP address of media content transmission or port etc. as its inside.
Step 202, requesting node is searched corresponding media content in the P2P network, and from index node obtain described media content corresponding search response, describedly search response and can comprise be used to the content source terminal that described media content is provided and/or the address information of corresponding source node etc.
Step 203, requesting node obtains the tolerance sign relevant to media content from the metric processing unit.Particularly, at first, the described request node sends the query requests that is used for inquiring described media content calculation of correlation information to the metric processing unit.Described metric can be the loading level of popular degree, security permission or the relevant peer node of corresponding media content, and it is example that the present embodiment adopts the popular degree of media content.Described metric processing unit can be for being used for described metric is carried out the solid element of analyzing and processing, and it can be configured to the functional module of described request intra-node or be arranged at as one and is specifically designed to the peer node of carrying out the media information statistics in described P2P network or as a server etc. that is independent of peer node described in described P2P network.
Secondly, the described query requests of described metric processing unit response is carried out analyzing and processing and is generated the tolerance sign that is used for identifying described metric described metric (as, the visit capacity of media content).A kind of optional scheme is as follows: when the access statistic of described media content surpassed a certain predetermined reference value, described metric processing unit generated tolerance sign H-tag=1; And when the access statistic of described media content during less than or equal to this predetermined reference value, described metric processing unit generates tolerance sign H-tag=0.Further, described metric processing unit is sent to the described request node with the tolerance sign of its generation.
Step 204, requesting node resolves to judge described tolerance sign whether described media content is popular content.Particularly, the described request node can judge according to the value of described tolerance sign.Such as, be 1 if the described request node parses the value of described tolerance sign H-tag, media content corresponding to judgement is popular content; And if the described request node to parse the value of described tolerance sign H-tag be 0, media content corresponding to judgement is the unexpected winner content.
Further, when the described media content of described tolerance sign expression is popular content, the described request node selects to adopt the transmission means of peer node transfer, and upgrades described media content request and adopt its selected transmission means (namely by the peer node transfer) to carry out the transmission of media content with the content of announcement source terminal; And when the described media content of described tolerance sign expression is the unexpected winner content, the described request node selects to adopt the transmission means of selecting by straight-through between the user (such as straight-through between content source terminal and requesting terminal), and upgrades described media content request and adopt its selected transmission means (namely by straight-through between the user) to carry out the transmission of media content with the content of announcement source terminal.
Particularly, see also Fig. 2, if described media content is popular content, i.e. H-tag=1, execution in step 205A-208A.
Step 205A, requesting node be by upgrading described tolerance sign H-tag=1 carrying to the mode of described media content request to it, and will send media content request after renewal to source node.
In one embodiment, the described request node is preserved described tolerance sign H-tag=1 on the one hand in this locality, on the other hand described tolerance sign H-tag=1 is attached to described media content request Setup_0.Further, described request node also described request terminal address information that described media content request Setup_0 is entrained replaces with local address information (being the address information of described request node itself), thereby described media content request Setup_0 is updated to the media content request Setup_1A that carries described tolerance sign and requesting node address information.Further, described request node-agent described request terminal is sent to source node with this media content request Setup_1A.
Step 206A, described source node further upgrades the media content request that it receives, and the media content request after upgrading is sent to the content source terminal.
In one embodiment, described source node is after the described request node receives described media content request Setup_1A, know that by its tolerance sign H-tag=1 that carries corresponding media content is popular content on the one hand, and preserve described tolerance sign H-tag=1 in this locality.On the other hand, described source node also requesting node address information that described media content request Setup_1A is entrained replaces with the address information (being source node address information) of itself, thereby media content request Setup_1A further is updated to the media content request Setup_2A that carries described tolerance sign and source node address information.And described source node is also further acted on behalf of the described request node this media content request Setup_2A is sent to the content source terminal.
This shows, described request terminal, requesting node and source node by corresponding media content request Setup_0, Setup_1A, Setup_2A, are notified the address information of itself to described request node, source node and content source terminal respectively.
Step 207A, described content source terminal is returned to the request response to the requesting terminal.Described content source terminal knows from the tolerance sign H-tag=1 that described media content request Setup_2A carries the transmission means that the described request node selects employing to carry out transfer by peer node such as source node and requesting nodes, and further returns to the request response by described source node and requesting node to the described request terminal.particularly, at first described content source terminal sends to source node the request response Setup-ack_0 that carries the content source address information, then described request is responded its content source address information of carrying of Setup-ack_0 replaces with the address information (being source node address information) of itself to described source node, and act on behalf of described content source to the described request response Setup-ack_1A that carries by source node address information of requesting node transmission, described request node and then described request is responded source node address information that Setup-ack_1A carries replace with the address information (being the requesting node address information) of itself, and act on behalf of described source node and send the request response Setup-ack_2A carry the requesting node address information to the requesting terminal.
As seen, by request response Setup-ack_0, Setup-ack_1A, the Setup-ack_2A of correspondence, described content source terminal, source node and requesting node just are passed to described source node, requesting node and requesting terminal with the address information of itself respectively.
Further, after receiving described request response Setup-ack_2A, the described request terminal can send session establishment acknowledge message Session-ok to requesting node.Described session establishment acknowledge message Session-ok further through the transmission that continues of requesting node and source node, is received by described content source terminal.So far, just set up the transfer transmission passage that utilizes source node and requesting node to carry out transfer between described content source terminal and requesting terminal.
Step 208A, described content source terminal with corresponding media content transmission to the described request terminal.That is, described content source terminal is utilized the described media content of described transfer transmission channel transfer.The media content that is sent by described content source terminal sequentially after the transfer of source node and requesting node, is sent to the described request terminal.
Further, in the process that described transfer transmission passage transmits, described source node and requesting node also can further be confirmed whether the media content that exists other user terminal requests same at described media content.If described source node or requesting node receive the media content request from other user terminals during this period, the media content through its transfer is copied, and further reproducting content is sent to the user terminal of the described media content of described other requests.
Further, described source node and requesting node also can initiatively copy in advance described media content, and the content that will copy in advance are pre-stored to its inner memory module in carrying out the transfer process of media content.When described source node or requesting node find to exist the same media content of other user terminal requests, just directly will be pre-stored within its inner reproducting content and export corresponding user terminal to.
This shows, when media content corresponding to described tolerance sign expression was popular content, described content source terminal adopts carried out the transmission of described media content by the transmission means of peer node transfer.In transmitting procedure, when existing a plurality of user terminals to ask simultaneously same media content, corresponding peer node can copy the transferring content through its transfer, and directly offers other user terminals of the same content of request.Utilize this stream copy mode, the repetitive stream of described P2P network is measured dredge, effectively reduce the flow of described P2P network, improve the utilization ratio of Internet resources.
And on the other hand, see also Fig. 3, and if described media content is the unexpected winner content, i.e. H-tag=0, execution in step 205B-208B:
Step 205B, requesting node by with described tolerance sign H-tag=0 carrying to described media content request so that it is upgraded, and will send media content request after renewal to source node.
In one embodiment, the described request node is preserved described tolerance sign H-tag=0 on the one hand in this locality, on the other hand described tolerance sign H-tag=0 is attached to described media content request Setup_0.205A is different from step, and the described request node is not replaced the entrained requesting terminal address information of media content request Setup_0, but direct this address information of transparent transmission.Thus, the described request node just is updated to described media content request Setup_0 the media content request Setup_B that carries described tolerance sign and requesting terminal address information.Further, described request node-agent described request terminal is sent to source node with this media content request Setup_B.
Step 206B, described source node act on behalf of the described media content request after the described request node upgrades to the transmission of content source terminal;
Described source node knows that by its tolerance sign H-tag=0 that carries corresponding media content is the unexpected winner content after the described request node receives described media content request Setup_B, and preserves described tolerance sign H-tag=0 in this locality.And, its requesting terminal address information of carrying of the direct transparent transmission of described source node, it further just is sent to the content source terminal with this media content request Setup_B thus.
Step 207B, described content source terminal is returned to the request response to the requesting terminal.
Particularly, the content source terminal is known the transmission means of described request node selection employing by leading directly between the user from the tolerance sign H-tag=0 that described media content request Setup_B carries.Further, described content source terminal sends by described source node and requesting node the request response Setup-ack_B that carries the content source address information to the described request terminal.So far, the other side's address information is just known respectively in described content source terminal and requesting terminal by described media content request Setup_B and request response Setup-ack_B,
Further, after receiving described request response Setup-ack_B, the described request terminal is by the transmission that continues of described request node and source node, acknowledge message Session-ok is set up in session send to the content source terminal, described content source terminal just and just set up one between the described request terminal in the peer node then directly by the straight-through transmission channel of described content source end face to the described request terminal thus.
Step 208B, the content source terminal with corresponding media content transmission to the described request terminal.Particularly, described content source utilizes described straight-through transmission channel and described request terminal directly to carry out the media content transmission session, namely provides described media content to the described request terminal.
As seen, when media content corresponding to described tolerance sign expression was the unexpected winner content, described content source terminal adopted transmission means straight-through between the user to carry out the transmission of described media content.By this transmission means, therefore described media content and without the transfer of peer node neither can take the P2P Internet resources, can effectively improve efficiency of transmission again.
In sum, the P2P network media transmission method that provides of the embodiment of the present invention selects corresponding transmission means to carry out the transmission of media content according to the popular degree of media content.Adopt the peer node transfer and carry out as required the transmission means that stream copies when media content is popular content, thereby the repetition flow that may exist in network is effectively dredged; And adopt transmission means straight-through between the user when media content is the unexpected winner content, improve efficiency of transmission.Thus, the P2P network media transmission method that provides of the embodiment of the present invention is realized the mutual supplement with each other's advantages by straight-through two kinds of media content transmission modes between peer node transfer and user.
In addition, among the P2P network transfer method that the embodiment of the present invention provides, the corresponding metric of described tolerance sign can also be the loading level of the security permission of described media content or peer node corresponding to described media content.In these two kinds of situations, the transmission of described media content can be carried out with reference to the specific embodiments of above-mentioned P2P network transfer method, below is briefly described.
Such as, take the security permission of described tolerance sign expression media content as example, when the security permission of described media content was higher, the tolerance that described metric processing unit provides was designated H-tag=1.In the case, know that described media content need to be by security monitoring after the described request node is resolved described tolerance sign, the transmission means by the peer node transfer is adopted in selection.In the transmitting procedure of described media content, the P2P network can carry out security monitoring by the peer node (as source node and requesting node etc.) of media content being carried out transfer.On the contrary, when the security permission of described media content hanged down, the tolerance that described metric processing unit provides was designated H-tag=0.In the case, the described request node selects to adopt the transmission means by straight-through between the user by the parsing of described tolerance sign is known that described media content does not need by security monitoring.
And for example, take the loading level of peer node corresponding to described tolerance sign expression as example, when peer node load corresponding to described media content was normal, the tolerance that described metric processing unit provides was designated H-tag=1.In the case, the described request node normally can carry out the media content transfer by the parsing of described tolerance sign being known relevant peer node (as source node) load, selects to adopt the transmission means by the peer node transfer.And when peer node overload corresponding to described media content, the tolerance that described metric processing unit provides is designated H-tag=0.In the case, the described request node selects to adopt the transmission means by straight-through between the user by the parsing of described tolerance sign being known relevant the peer node load is overweight may temporarily can't carry out the media content transfer.
Further, described tolerance sign can also represent the combination between the loading level three of popular degree, security permission or its relevant peer node of described media content, and concrete compound mode can be determined according to actual needs.In the case, the transmission of described media content also can be carried out with reference to the specific embodiments of above-mentioned P2P network transfer method.
Based on described P2P network media transmission method, the embodiment of the present invention also further provides a kind of P2P network media transmission system.See also Fig. 4, it is the structural representation of P2P network media transmission system embodiment one of the present invention, and the P2P network media transmission system 500 that embodiment one provides comprises:
Content source terminal 502, it is used for providing media content;
Requesting terminal 501, it is used for asking corresponding media contents by the mode of sending media content request to described content source 502, and wherein said media content request can carry the address information of described request terminal 501;
Requesting node 510, it is used for receiving the media content request from described request terminal 501, obtain the tolerance sign relevant to the media content of described request terminal request and it is carried to the media content request that receives, wherein said tolerance sign is for one or more combinations of the loading level of popular degree, security permission or the relevant peer node of the media content of expression described request terminal request;
Source node 520, it is used for the media content request that carries described tolerance sign that described request node 510 provides is delivered to described content source 502;
Wherein, described content source terminal 502 also can be further used for receiving the media content request that includes the tolerance sign by described, and adopts transmission means straight-through between the transmission means of peer node transfer or content source terminal and requesting terminal that the media content of described request node request is sent to described request terminal 501 according to described tolerance sign.
Further, the P2P of institute network media transmission system 500 also can comprise:
Metric processing unit 540, it can be for being independent of the functional entity of described request node 510 and source node 520, and it can be used for the loading level of popular degree, security permission or the relevant peer node of described media content is analyzed, and provides corresponding tolerance sign according to analysis result to described request node 510.
Further, described P2P network media transmission system 500 also can comprise:
Index node 530, it is used for preserving the content indexing of described media content, and the inquiry of response request node 510 offers described request node 510 with the information of described content indexing.Wherein, the information of described content indexing can comprise address information that the content source of described media content terminal 502 is provided and/or the address information of its corresponding source node 520.
Further, described request node 510 also can be further used for described tolerance sign is analyzed, take the media content corresponding according to the analysis result judgement whether as popular content or its whether the needs security monitoring or its relevant peer node load whether normal.
Further, described request node 510 can also be according to described tolerance spectroscopic analysis result, carry out respective handling to described from the entrained address information of the media content request of requesting terminal 501, such as, when media content corresponding to described tolerance sign expression is popular content or needs security monitoring or peer node load that it is relevant when normal, the address information that described media content request is carried replaces with the address information of described request node 510 itself; Otherwise, the address information that the described media content request of transparent transmission is carried.
Further, when the described media content of described tolerance sign expression is popular content, described source node 520 and requesting node 510 also can will deliver to the requesting terminal 501 from the media content of described content source terminal 502, and are confirmed whether the media content that exists other user terminal requests same in delivering process; If exist, described media content copied, and reproducting content is sent to the respective user terminal.
In addition, as three logical role in P2P network media transmission system, in described request node 510, index node 530 and source node 520 threes, arbitrary node can be taken on any one or two of described three logical role, or simultaneously when three logical role of people.
See also Fig. 5, it is for the structural representation of P2P network media transmission system embodiment two of the present invention, the P2P network media transmission system 500 that P2P network media transmission system 600 and the described embodiment one that embodiment two provides provides is close, and the main distinction is, the metric processing unit 640 of described P2P network media transmission system 600 is a functional module of requesting node 610, and is arranged at the inside of described request node 610.Described request node 610 does not need to receive the tolerance sign from the outside after the media content request that receives from requesting terminal 601, but directly 640 obtains the correspondence metric sign from its inner information analysis unit.
Further, described metric processing unit 640 also can be set to the inner function module of other peer node such as index node 630 or source node 620.
Based on above-mentioned P2P network media transmission system 500 and 600, the embodiment of the present invention also further provides a kind of peer node for P2P network media transmission system.See also Fig. 6, the peer node 700 that the embodiment of the present invention provides can be used as the requesting node of P2P network, and it comprises:
Media request receiving module 710, it is used for receiving the media content request from the requesting terminal, and wherein said media content request portability has the address information of described requesting terminal;
Tolerance identifier acquisition module 720, it is used for obtaining the tolerance sign relevant to the media content of described request terminal request, and described tolerance sign is for one or more combinations of the loading level of popular degree, security permission or the relevant peer node of the media content of expression described request terminal request;
Media request update module 730, its media content request that is used for described tolerance sign carrying to described media request receiving module is received comprises the media content request of described tolerance sign with generation;
Media request sending module 740, it is used for described tolerance sign and media content request are sent to the content source terminal, adopts the straight-through transmission means transmission media content corresponding with described media content request between the transmission means of peer node transfer or content source terminal and requesting terminal to ask described content source terminal according to described tolerance sign.
Further, described peer node 700 also can comprise:
Address information memory module 750, it is used for storing the address information of described peer node, and described peer node address information is provided to described media request update module 730.
Further, be popular content or need security monitoring or relevant peer node load when normal at the described media content of described tolerance sign expression, described media request update module 730 also is used for the described address information that replaces with described request node itself from the entrained requesting terminal address information of the media content request of requesting terminal; And be the unexpected winner content or do not need security monitoring or during relevant peer node overload, it is described from the entrained requesting terminal address information of the media content request of requesting terminal that described media request update module 730 also is used for transparent transmission at the described media content of described tolerance sign expression.
Further, described peer node 700 also can comprise:
Media content receiver module 760, media content that is provided by the content source terminal be used for to be provided for it, and wherein said media content can be by in other peer node then be sent to described media content receiver module 760;
Media content is delivered module 770, and it is used for and will delivers requesting terminal to correspondence by the media content that described media content receiver module 760 receives;
Media content memory module 780, it is used for preserving delivers through media content the media content that module 770 is delivered.
Described media content is delivered module 770 in carrying out the process that media content delivers, and also can whether have the same media content of other user terminal requests to described media request receiving module 710 requests; If exist, its media content of delivering is copied and be stored in described media content memory module 780, and the reproducting content of further described media content memory module 780 being preserved provides to described other user terminals.
Further, described peer node 700 can also comprise:
Module 790 is delivered in the request response, it is used for and will be delivered to the described request terminal by the request response that described content source terminal is returned, and determines whether the own address information of described peer node 700 that is provided by described address information memory module 750 is provided the address information that the described request response is carried according to the tolerance sign of being obtained by described tolerance identifier acquisition module 720.
Wherein, when the corresponding media content of described tolerance sign expression is popular content or needs security monitoring or relevant peer node load when normal, described request response is delivered module 790 and will ask to respond the address information of carrying and replace with the address information that described address information memory module 750 provides, to set up the transfer transmission passage.When the corresponding media content of described tolerance sign expression is the unexpected winner content or does not need security monitoring or during relevant peer node overload, the described request response is delivered module 790 and directly the address information that the described request response is carried is pass-through to the requesting terminal, to set up straight-through transmission channel.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by the mode that software adds essential hardware platform, can certainly all implement by hardware.Based on such understanding, technical scheme of the present invention is to can embodying with the form of software product in whole or in part that background technology contributes, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of some part of each embodiment of the present invention or embodiment.
The above; only for the better embodiment of the present invention, but protection scope of the present invention is not limited to this, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement are within all should being encompassed in protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.