Summary of the invention
For the lower deployment cost of the P2Pization that reduces CDN, the embodiment of the invention provides the method for content distributing network peer-to-peer network and method and system that content is provided.Described technical scheme is as follows:
A kind of method with the content distributing network peer-to-peer network, described method comprises:
Memory contents in the content storage entity of content distributing network CDN, described content storage entity is the CDN Edge Server;
Between the peer node of described CDN and peer-to-peer network, connect;
The index information of the content that described content storage entity is stored is published in the described peer-to-peer network by described peer node, and described peer node is the Peer node, and described peer-to-peer network is P2P overlay;
Described peer node is the equipment that is independent of described content storage entity;
If increase or remove described CDN Edge Server, only need to notify described P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of described Peer node.
The embodiment of the invention is less to the change of CDN than the technical scheme of existing CDN P2Pization, be easier to dispose and upgrading, and upgrade cost is low.
A kind of method that content is provided, described method comprises:
Memory contents in the content storage entity of content distributing network CDN, described content storage entity is the CDN Edge Server; Between the peer node of described CDN and peer-to-peer network, connect; The index information of the content that described content storage entity is stored is published in the described peer-to-peer network by described peer node, and described peer node is the Peer node, and described peer-to-peer network is P2P overlay;
If increase or remove described CDN Edge Server, only need to notify described P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of described Peer node;
After receiving the request of obtaining the given content index information that the user sends, described peer-to-peer network finds the index information of described given content and returns to described user according to described request;
After described content storage entity receives the request of obtaining described given content that described user sends according to described index information, the described given content of storage is offered described user;
Described peer node is the equipment that is independent of described content storage entity.
When the embodiment of the invention provides content to the user in the CDN of P2Pization, existing CDN is changed less, reduced cost than existing method.
A kind of system that content is provided comprises: content distributing network CDN and peer-to-peer network,
Described CDN is used for storing content into the content storage entity, described content storage entity is the CDN Edge Server, and the index information of described content is published in the described peer-to-peer network, described peer node is the Peer node, described peer-to-peer network is P2P overlay; The request of obtaining given content of sending according to the user offers described user with the described given content of described content storage entity storage;
Described peer-to-peer network is used for after the request of described given content index information is obtained in user's transmission, find the index information of described given content and return to described user according to described request, the peer node in the described peer-to-peer network is the equipment that is independent of described content storage entity;
If described CDN also is used for increasing or removing described CDN Edge Server, only need to notify described P2P overlay increase and delete corresponding content indexing, do not need to revise the routing iinformation of described Peer node.
When the embodiment of the invention provides content to the user in the CDN of P2Pization, if increase or remove the content storage entity, only need notice P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the content storage entity of CDN does not need change, thereby has reduced cost than existing method.
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.
Embodiment one
The embodiment of the invention provides a kind of method with the content distributing network peer-to-peer network, may further comprise the steps:
110: memory contents in the content storage entity of content distributing network CDN.
120: between the peer node of CDN and peer-to-peer network, connect.
130: the index information of the content that the content storage entity is stored is published in the peer-to-peer network by peer node.
Wherein, peer node is the equipment that is independent of the content storage entity.
Further, step 130 can specifically comprise:
The content indexing information that the content indexing server receiving center server CS of CDN sends, and this index information is published in the peer-to-peer network by peer node.
Perhaps step 130 also can specifically comprise:
The content storage entity is published to the index information of the content that it is stored in the peer-to-peer network by peer node.
In the present embodiment, peer-to-peer network is P2P overlay, and by the Peer node maintenance, CDN only need to be at the content change time notice P2P of storage overlay, the route of the issue of content and content and search all and finished by the Peer node on the P2P overlay.The peer network node of the embodiment of the invention is the function logic entity, and not necessarily therefore physical entity also can be placed on peer network node on the equipment such as scheduling feature entity of CDN.The embodiment of the invention only emphasizes that peer node is separated with the content storage entity of CDN and gets final product, and do not emphasize that peer node must separate with miscellaneous equipment.In the present embodiment, the content storage entity is the Edge Server of CDN.
During the P2Pization deployment of CDN network, if increase or remove the CDN Edge Server, only need notice P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2Poverlay form and the intercommunication of other system, only need to adjust corresponding Peer node, the content storage entity of CDN does not need to change, so the embodiment of the invention is easy to dispose and upgrade than the technical scheme of existing CDN P2Pization, and upgrade cost is low.
Embodiment two
The embodiment of the invention provides a kind of method that content is provided, and as shown in Figure 2, comprises the steps:
210: memory contents in the content storage entity of content distributing network CDN; Between the peer node of CDN and peer-to-peer network, connect; The index information of the content that the content storage entity is stored is published in the peer-to-peer network by peer node.
In the present embodiment, peer-to-peer network is the P2P overlay that is comprised of the Peer node, the route of the issue of content and content and search all and finished by the Peer node on the P2P overlay.The content carrying of the embodiment of the invention is finished by the content storage entity of CDN.
220: after receiving the request of obtaining the given content index information that the user sends, peer-to-peer network finds the index information of given content and returns to the user according to this request.
230: after the content storage entity receives the request of obtaining given content that the user sends according to this index information, the given content of storage is offered the user.
Wherein, peer node is the equipment that is independent of the content storage entity.
The peer network node of the embodiment of the invention is the function logic entity, and not necessarily therefore physical entity also can be placed on peer network node on the equipment such as scheduling feature entity of CDN.The embodiment of the invention only emphasizes that the peer node function is separated with the content storage entity of CDN and gets final product, and do not emphasize that the peer node function must separate with miscellaneous equipment.During the P2Pization deployment of CDN network, if increase or remove the content storage entity, only need notice P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the content storage entity of CDN does not need change, so the embodiment of the invention has reduced cost than existing method.
Embodiment three
The embodiment of the invention provides the another kind of method that content is provided, and as shown in Figure 3, may further comprise the steps:
The CS of 301:CDN pushes (Push) to CDN ES with content.
The embodiment of the invention takes the form of film as example take foregoing, and the central server of CDN is pushed to multi-section (can be hundreds and thousands of sections) film respectively on a plurality of (at least one) Edge Server of CDN.In the present embodiment, the content storage entity is Edge Server ES.
302:CDN ES sends content indexing information to the network route entity of supporting the P2P technology.
Issue (Put) signaling that the CDN Edge Server adopts the P2P technology is published to the sign of memory contents and self address (be key/value to) on the Peer node of P2P Overlay.Here the sign of the memory contents issued of ES and self address are exactly the index information of the film of the upper storage of this ES.Self address of ES in the present embodiment can be its IP address or its user identification logic in P2P Overlay number.CDN ES change in the present embodiment among the existing CDN is issue (Put), deletion (Remove), the renewal functions such as (Update) that will support P2P.
The foregoing index information comprises: the address information of the ES of the content identification of content, storage corresponding contents etc.Need to prove that ES also can adopt the mode uploaded that content indexing information is uploaded on P2P Overlay and the Peer node that this ES directly links to each other.
The peer network node of the embodiment of the invention is the function logic entity, and therefore physical entity not necessarily also can be placed on peer network node on the miscellaneous equipment of non-content storage entity of CDN.The embodiment of the invention only emphasizes that the peer node function is separated with the content storage entity of CDN and gets final product, and do not emphasize that the peer node function must separate with miscellaneous equipment.
303: user (Client) initiates request to electric program menu service entities (EPG).
304: user's electron gain program guide.
305: the user is according to the electric program menu that obtains, and selects the content that oneself needs, and initiates corresponding content requests to the scheduling feature entity of CDN.
When the user wants to appreciate film, can ask a electric program menu to EPG, then select the film of own needs according to electric program menu, such as film " disguise of an evildoer ", and initiate corresponding request to the scheduling feature entity of CDN.
306: the scheduling feature entity is searched corresponding content indexing information to the Peer node on the P2P Overlay.
The scheduling feature entity adopts (Get) signaling is searched the index information from corresponding film " disguise of an evildoer " to the Peer node on the P2P Overlay of searching of P2P technology.Scheduling feature entity change in embodiments of the present invention among the existing CDN is to support that P2P's searches (Get) function.
Peer node on the 307:P2P Overlay returns lookup result to the scheduling feature entity after finding the content indexing information of corresponding contents.
The Peer node is searched the index information of film " disguise of an evildoer " by distributed hashtable (DHT) algorithm, returns lookup result to the scheduling feature entity, is stored in such as " disguise of an evildoer " to be numbered on 2 the Edge Server.
308: the scheduling feature entity sends to the user with content indexing information, thereby makes the user be redirected to content source, i.e. corresponding ES.
The scheduling feature entity is stored in the information that is numbered on 2 the Edge Server with " disguise of an evildoer " and returns to user subject, is numbered 2 CDN Edge Server thereby user subject is redirected to.
309: the user sends content session to ES and consults request.
The user sends content session to the CDN Edge Server and consults request, requires to transmit the content of film " disguise of an evildoer ".
310:ES returns negotiate response to the user.
The CDN Edge Server returns negotiate response to the user, and the expression user can wait for the content that receives film " disguise of an evildoer ".
311:ES is transferred to the user with corresponding contents.
The CDN Edge Server with the content delivery of film " disguise of an evildoer " to the user.
When the embodiment of the invention provides content to the user in the CDN of P2Pization, change less to existing CDN, when increasing or remove the CDN Edge Server, only need to notify P2P overlay to increase or delete corresponding content indexing information, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the ES of CDN does not need change, so the embodiment of the invention has reduced cost than existing method.
Embodiment four
The another kind that the embodiment of the invention provides provides the method for content, as shown in Figure 4, may further comprise the steps:
The central server CS of 401:CDN pushes (Push) to CDN ES with content, simultaneously CS with the content indexing information updating to CDN content indexing server.
The foregoing index information comprises: the address information of the ES of the content identification of content, storage corresponding contents etc.The embodiment of the invention takes the form of film as example take foregoing, the central server of CDN is pushed to multi-section (can be hundreds and thousands of sections) film respectively on a plurality of (at least one) Edge Server of CDN, and the film index information which Edge Server each film is stored in is updated on the CDN content indexing server.In the present embodiment, the content storage entity is the ES Edge Server.
402:CDN content indexing server sends content indexing information to the network route entity of supporting the P2P technology.
In the embodiment of the invention, CDN content indexing server adopts issue (Put) signaling of P2P technology that the film index information is published on the Peer node of P2P Overlay.CDN content indexing server change in embodiments of the present invention among the existing CDN is issue (Put), deletion (Remove), the renewal functions such as (Update) that will support P2P.The peer network node of the embodiment of the invention is the function logic entity, and therefore physical entity not necessarily also can be placed on peer network node on the miscellaneous equipment of non-content storage entity of CDN.The embodiment of the invention only emphasizes that the peer node function is separated with the content storage entity of CDN and gets final product, and do not emphasize that the peer node function must separate with miscellaneous equipment.
Need to prove that CDN content indexing server also can adopt the mode uploaded that content indexing information is uploaded on P2POverlay and the Peer node that this content indexing server directly links to each other.
403: user (Client) initiates request to electric program menu service entities (EPG).
404: user's electron gain program guide.
405: the user is according to the electric program menu that obtains, and selects the content that oneself needs, and initiates corresponding content requests to the scheduling feature entity of CDN.
When the user wants to appreciate film, can ask a electric program menu to EPG, then select the film of own needs according to electric program menu, such as film " disguise of an evildoer ", and initiate corresponding request to the scheduling feature entity of CDN.
406: the scheduling feature entity is searched corresponding content indexing information to the Peer node on the P2P Overlay.
The scheduling feature entity adopts (Get) signaling is searched the index information from corresponding film " disguise of an evildoer " to the Peer node on the P2P Overlay of searching of P2P technology.Scheduling feature entity change in embodiments of the present invention among the existing CDN is to support that P2P's searches (Get) function.
Peer node on the 407:P2P Overlay returns lookup result to the scheduling feature entity after finding the content indexing information of corresponding contents.
The Peer node is searched the index information of film " disguise of an evildoer " by distributed hashtable (DHT) algorithm, returns lookup result to the scheduling feature entity, is stored in such as " disguise of an evildoer " to be numbered on 2 the Edge Server.
408: the scheduling feature entity returns to the user with content indexing information, thereby makes the user be redirected to content source, i.e. corresponding ES.
The scheduling feature entity is stored in the information that is numbered on 2 the Edge Server with " disguise of an evildoer " and returns to the user, is numbered 2 CDN Edge Server thereby the user is redirected to.
409: the user sends content session to the content storage entity and consults request.
The user sends content session to the CDN Edge Server and consults request, requires to transmit the content of film " disguise of an evildoer ".
410:ES returns negotiate response to the user.
The CDN Edge Server returns negotiate response to user subject, and the expression user subject can be waited for the content that receives film " disguise of an evildoer ".
411:ES is transferred to the user with corresponding contents.
The CDN Edge Server with the content delivery of film " disguise of an evildoer " to the user.
When the embodiment of the invention provides content to the user in the CDN of P2Pization, change less to existing CDN, when increasing or remove the CDN Edge Server, only need to notify P2P overlay to increase or delete corresponding content indexing information, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the ES of CDN does not need change, so the embodiment of the invention has reduced cost than existing method.
Embodiment five
The embodiment of the invention provides a kind of system that content is provided, and referring to Fig. 5, comprising: content distributing network CDN501 and peer-to-peer network 502,
CDN501 is used for storing content into the content storage entity, and the index information of content is published in the peer-to-peer network; The request of obtaining given content of sending according to the user offers the user with the given content of content storage entity storage;
Peer-to-peer network 502 is used for finding the index information of given content and returning to the user according to this request after the user initiates to obtain the request of given content index information, and wherein the peer node in the peer-to-peer network is the equipment that is independent of the content storage entity.
In the present embodiment, the content storage entity is the Edge Server ES of CDN.
CDN501 specifically comprises:
Edge Server ES5011 is used for the content of the central server CS5012 propelling movement of reception CDN501, and stores this content; The index information of this content is published in the peer-to-peer network 502; After the request of obtaining given content that the reception user sends, the given content of storing is offered described user.
Issue (Put) signaling that the CDN Edge Server adopts the P2P technology is published to the sign of memory contents and self address (be key/value to) on the peer-to-peer network.Here the sign of the memory contents issued of ES and self address are exactly the index information of the film of the upper storage of this ES.Self address of ES in the present embodiment can be its IP address or its user identification logic in P2P Overlay number.CDN ES change in the present embodiment among the existing CDN is issue (Put), deletion (Remove), the renewal functions such as (Update) that will support P2P.
Further, CDN501 also comprises:
Scheduling feature entity 5013 is used for receiving the first request that Client-initiated obtains given content, to the index information of peer-to-peer network 502 requests and reception given content; Then the index information with given content returns to the user.
Further, ES5011 also is used for:
Receive second request of obtaining this content that the index information of the given content that the user returns according to peer-to-peer network 502 sends; And with the storage given content offer the user.
In the present embodiment, the P2P overlay that peer-to-peer network 502 controls are comprised of the Peer node finishes, and content carrying is finished by the ES5011 of CDN.P2P overlay is by the Peer node maintenance, CDN501 only need to be when the content change of storage notice P2P overlay, the route of the issue of content and content and search all and finished by the Peer node on the P2P overlay.The peer network node of the embodiment of the invention is the function logic entity, and not necessarily therefore physical entity also can be placed on peer network node on the equipment such as scheduling feature entity of CDN.The embodiment of the invention only emphasizes that the peer network node function is separated with CDN501 and gets final product, and do not emphasize that the peer network node function must separate with miscellaneous equipment.During the P2Pization deployment of CDN network, if increase or remove the CDN Edge Server, only need notice P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the content storage entity of CDN does not need change.
When the system of the embodiment of the invention provides content to the user in the CDN of P2Pization, change less to existing CDN, when increasing or remove the CDN Edge Server, only need to notify P2P overlay to increase or delete corresponding content indexing information, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the ES of CDN does not need change, so the embodiment of the invention has reduced cost than existing system.
Embodiment six
The embodiment of the invention provides the another kind of system that content is provided, and referring to Fig. 6, comprising: content distributing network CDN601 and peer-to-peer network 602,
CDN601 is used for memory contents, and the index information of content is published in the peer-to-peer network 602; The request of obtaining given content of sending according to the user offers the user with the given content of storing;
Peer-to-peer network 602 is used for finding the index information of given content and returning to the user according to this request after the user initiates to obtain the request of given content index information, and wherein the peer node in the peer-to-peer network is the equipment that is independent of the content storage entity.
In the present embodiment, the content storage entity is the Edge Server ES of CDN.
CDN601 specifically comprises:
Edge Server ES6011 is used for the content of the central server CS6012 propelling movement of reception CDN, and stores this content; After the request of obtaining given content that CDN reception user sends, the given content of storing is offered the user;
Content indexing server 6013 is used for the index information of this content that receiving center server CS6012 sends, and index information is published in the peer-to-peer network 602.
Further, CDN601 also comprises:
Scheduling feature entity 6014 is used for receiving the first request that Client-initiated obtains the given content index information, to the index information of peer-to-peer network 602 requests and reception given content; Then the index information with given content returns to the user.
Further, ES6011 also is used for:
Receive second request of obtaining this content that the index information of the given content that the user returns according to peer-to-peer network 602 sends; And with the storage given content offer the user.
In the present embodiment, the P2P overlay that peer-to-peer network 602 controls are comprised of the Peer node finishes, and content carrying is finished by the ES6011 of CDN.P2P overlay is by the Peer node maintenance, CDN601 only need to be when the content change of storage notice P2P overlay, the route of the issue of content and content and search all and finished by the Peer node on the P2P overlay.The peer network node of the embodiment of the invention is the function logic entity, and not necessarily therefore physical entity also can be placed on peer network node on the equipment such as scheduling feature entity of CDN.The embodiment of the invention only emphasizes that the peer network node function is separated with CDN601 and gets final product, and do not emphasize that the peer network node function must separate with miscellaneous equipment.During the P2Pization deployment of CDN network, if increase or remove the CDN Edge Server, only need notice P2P overlay to increase and delete corresponding content indexing, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the content storage entity of CDN does not need change.
When the system of the embodiment of the invention provides content to the user in the CDN of P2Pization, change less to existing CDN, when increasing or remove the CDN Edge Server, only need to notify P2P overlay to increase or delete corresponding content indexing information, do not need to revise the routing iinformation of Peer node.When system that above-mentioned CDN network and P2P overlay form during with the intercommunication of other system, only need to adjust corresponding Peer node, the ES of CDN does not need change.Therefore the embodiment of the invention has reduced cost than existing system.Compare with embodiment six, the ES of present embodiment does not need to change issue (Put), deletion (Remove), the renewal functions such as (Update) into supporting P2P, the content indexing server of original CDN also can keep simultaneously, is used to provide the content indexing service.
The embodiment of the invention can utilize software to realize, corresponding software program can be stored in the storage medium that can read, for example, and in the hard disk of router, buffer memory or the CD.
The above only is preferred embodiment of the present invention, and is in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.