WO2011137850A1 - 内容获取、交付方法及装置 - Google Patents

内容获取、交付方法及装置 Download PDF

Info

Publication number
WO2011137850A1
WO2011137850A1 PCT/CN2011/074960 CN2011074960W WO2011137850A1 WO 2011137850 A1 WO2011137850 A1 WO 2011137850A1 CN 2011074960 W CN2011074960 W CN 2011074960W WO 2011137850 A1 WO2011137850 A1 WO 2011137850A1
Authority
WO
WIPO (PCT)
Prior art keywords
cdn
content
csg
identifier
identification information
Prior art date
Application number
PCT/CN2011/074960
Other languages
English (en)
French (fr)
Inventor
李金成
和晓艳
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011137850A1 publication Critical patent/WO2011137850A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/563Data redirection of data network streams

Definitions

  • Embodiments of the present invention relate to communication technologies, and in particular, to a content acquisition and delivery method and apparatus. Background technique
  • a content delivery network is usually composed of a content routing entity (CR), a content storage entity (CSG), and a content delivery entity (CD).
  • the CR may include a storage control entity and a delivery control entity, and is mainly responsible for routing the content related request, including scheduling the content request of the terminal (TM) to the appropriate CD;
  • the CSG is mainly responsible for the content provider (Content Provider,
  • the content source provided by the Service Provider (SP) is used to obtain the original content and store it, and distribute the content to the CD.
  • the CD is a service provider of the CDN and is a content-providing device for the TM.
  • the embodiment of the present invention provides a content acquisition and delivery method and device, which are used to solve the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested content of the unsigned CP/SP to the TM, and the service is guaranteed. Work properly.
  • An embodiment of the present invention provides a content acquisition method, including:
  • the CSG in the second CDN or the CD in the second CDN acquires the content sent by the CSG in the first CDN, and the first CDN is contracted with the CP/SP to obtain the first CDN from the CP/SP. Said content.
  • An embodiment of the present invention provides a content delivery method, including:
  • the CR in the first CDN obtains a content request from the terminal to request content corresponding to the content identifier, the first CDN signing with the CP/SP to cause the first CDN to obtain the content from the CP/SP Content
  • the CR in the first CDN sends, to the terminal, identification information of a CR in the second CDN or a CD in the second CDN according to a delivery policy, so that the terminal requests the CD from the second CDN and the The content corresponding to the content identifier.
  • the embodiment of the present invention further provides a content obtaining apparatus, which is disposed in the second CDN, and includes an obtaining module, configured to acquire content sent by the CSG in the first CDN, where the first CDN is contracted with the CP/SP, so that The first CDN acquires the content from the CP/SP.
  • a content obtaining apparatus which is disposed in the second CDN, and includes an obtaining module, configured to acquire content sent by the CSG in the first CDN, where the first CDN is contracted with the CP/SP, so that The first CDN acquires the content from the CP/SP.
  • the embodiment of the present invention further provides a content delivery apparatus, which is disposed in the first CDN, and the first CDN is contracted with the CP/SP, so that the first CDN obtains content from the CP/SP, including: receiving a module, configured to obtain a content request from a terminal, to request content corresponding to the content identifier;
  • a sending module configured to send, to the terminal, the CR information in the second CDN or the CD information in the second CDN according to the delivery policy, so that the terminal requests the CD in the second CDN to correspond to the content identifier Content.
  • the embodiment of the present invention obtains the content sent by the CSG in the first CDN by using the CSG in the second CDN or the CD in the second CDN, so that the CD in the second CDN can be obtained from the CSG in the other CDN.
  • FIG. 1 is a schematic flowchart of a content acquisition method according to Embodiment 1 of the present invention.
  • FIG. 2 is a schematic flowchart of a content acquisition method according to Embodiment 2 of the present invention.
  • FIG. 3 is a schematic flowchart of a content acquisition method according to Embodiment 3 of the present invention.
  • FIG. 4 is a schematic flowchart of a content acquisition method according to Embodiment 4 of the present invention.
  • FIG. 5 is a schematic flowchart of a content obtaining method according to Embodiment 5 of the present invention.
  • FIG. 6 is a schematic flowchart of a content acquisition method according to Embodiment 6 of the present invention.
  • FIG. 7 is a schematic flowchart diagram of a content obtaining method according to Embodiment 7 of the present invention.
  • Embodiment 8 is a schematic flowchart of a content obtaining method according to Embodiment 8 of the present invention.
  • FIG. 9 is a schematic flowchart diagram of a content obtaining method according to Embodiment 9 of the present invention.
  • FIG. 10 is a schematic flowchart of a content delivery method according to Embodiment 10 of the present invention.
  • FIG. 11 is a schematic flowchart of a content delivery method according to Embodiment 11 of the present invention
  • FIG. 12 is a schematic flowchart of a content delivery method according to Embodiment 12 of the present invention
  • FIG. 13 is a content delivery method according to Embodiment 13 of the present invention
  • FIG. 14 is a schematic flowchart diagram of a content delivery method according to Embodiment 14 of the present invention
  • FIG. 15 is a schematic structural diagram of a content acquisition apparatus according to Embodiment 15 of the present invention; Schematic diagram of the content delivery device. detailed description
  • FIG. 1 is a schematic flowchart of a content acquisition method according to Embodiment 1 of the present invention. As shown in FIG. 1 , the content acquisition method in this embodiment may include the following steps:
  • Step 101 The CSG in the second CDN or the CD in the second CDN acquires the content sent by the CSG in the first CDN, and the first CDN is contracted with the CP/SP, so that the first CDN is obtained from the CP/SP. Said content.
  • the second CDN may be contracted with the first CDN, and the first CDN may directly provide the content of the CP/SP to the second CDN (for details, refer to the second embodiment of the present invention to the fifth embodiment of the present invention); or, The second CDN may also not be contracted with the first CDN, and the first CDN may provide the content of the CP/SP to the second CDN through the third CDN contracted with the first CDN (for details, refer to the following embodiments of the present invention to the present invention.
  • Inventive Example IX The second CDN may be contracted with the first CDN, and the first CDN may directly provide the content of the CP/SP to the second CDN (for details, refer to the second embodiment of the present invention to the fifth embodiment of the present invention); or, The second CDN may also not be contracted with the first CDN, and the first CDN may provide the content of the CP/SP to the second CDN through the third CDN contracted with the first CDN (for details, refer to the following embodiments of the present invention to the present invention.
  • the content corresponding to the content identifier sent by the CSG in the first CDN is obtained by the CSG in the second CDN or the CD in the second CDN, so that the CD in the second CDN can be obtained from the CSG in the other CDN.
  • the problem is to ensure the normal operation of the business.
  • the embodiment of the present invention can assume that CDN1 covers area 1 and CDN2 covers area 2, and CP/SP wants to provide services for TM in area 1 and area 2, but CP/SP only contracts with CDN1 (ie, CSG1 can source content from CP/SP). Get content), CDN1 and CDN2 sign up.
  • CDN1 covers area 1 and CDN2 covers area 2
  • CP/SP only contracts with CDN1 (ie, CSG1 can source content from CP/SP). Get content), CDN1 and CDN2 sign up.
  • the embodiment is applicable to a scenario in which CSG1 in CDN1 injects content into CSG2/CD2 in CDN2 in advance.
  • the content acquisition method in this embodiment may include the following steps:
  • Step 201 CR1 sends a content distribution request message to the CR2, where the content distribution request message includes the content identifier and the identification information of the CSG1.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name, and the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address and a domain name.
  • the information included in the content distribution request message may be carried by a common field, for example, a Uniform Resource Locator (URL), or may be carried by a separate field, for example: URL, expandable An extensible Markup Language (XML) element or attribute, one or more items in the HTTP header field.
  • URL Uniform Resource Locator
  • XML expandable An extensible Markup Language
  • the content distribution request message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • identifier information of the CDN1 For example: Carry the above information through a URL: http://CR2 identification information /192.168.1.1/www.sina.com.cdn1.net/video/a.flv, where 192.168.1.1 represents the identification information of CSG1, here
  • the port defaults to 80. www.sina.com.cdn1.net represents the identification information of CDN1 and the identification information of the CP/SP.
  • a.flv represents the content identifier.
  • the file name is used as an example, and video/a.flv indicates The content path.
  • CDN1 does not want to expose the identification information of CP/SP, it can be HTTP: ⁇ CR2 identification information /192.168.l1/www.cdn1.net/vjdeo/ailV o Hypertext Transfer Protocol (HTTP)
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • CR1 can be based on pre-set policies and subscription information.
  • the content distribution request message is sent to the CR2, or the content distribution request message is sent to the CR2, and the content distribution request message is not sent to the CR2.
  • the step is not limited to the CR1 sending the content distribution request message to the CR2, and the new network element entity may send the content distribution request message to the CR2, which is not limited in this embodiment.
  • Step 202 CR2 selects CSG2/CD2, and sends a content distribution request message to the selected CSG2/CD2, where the content distribution request message includes the content identifier and the identifier information of the CSG1.
  • the CR2 may verify the received content distribution request message, for example: whether it is from the contracted CDN, whether the request is legal, etc. After the verification is passed, the appropriate CSG2/CD2 is selected, and the content is forwarded to the selected CSG2/CD2. Distribute the request message. Before CR2 forwards the content distribution request message, CR2 may modify the received content distribution request message.
  • Step 203 CSG2/CD2 returns a content distribution response message to CR2.
  • the content distribution response message may include the identifier information of the CSG2/CD2, and the identifier information of the CSG2/CD2 may include, but is not limited to, the following information: an IP address and a domain name.
  • Step 204 CR2 returns a content distribution response message to CR1.
  • the content distribution response message may include at least one of identifier information of the CDN2 and the content identifier.
  • Step 205 The CSG2/CD2 sends a request content message to the CSG1 according to the acquired identification information of the CSG1, where the content content message includes the content identifier.
  • Step 206 The CSG1 returns content corresponding to the content identifier to the CSG2/CD2 according to the content identifier.
  • the CSG2/CD2 obtains the content distribution request message through the CR2, and requests the content corresponding to the content identifier included in the content distribution request message from the CSG1 according to the identification information of the CSG1 included in the content distribution request message.
  • CSG2/CD2 Obtaining the content corresponding to the content identifier sent by CSG1, and realizing that CD2 can obtain the content of CDN2 unsigned CP/SP from CSG (CSG1) in other contracted CDN (CDN1), thereby enabling delivery of the content to TM, and solving the existing In the technology, the CD selected by the CR in the CDN cannot deliver the requested content of the unsigned CP/SP to the TM, ensuring the normal operation of the service.
  • FIG. 3 is a schematic flowchart of a content acquisition method according to Embodiment 3 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • This embodiment is applicable to CSG1 in CDN1 to CSG2/ in CDN2 in advance.
  • the content acquisition method of this embodiment may include the following steps:
  • Step 301 CR1 sends a content distribution request message to CR2, where the content distribution request message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the content distribution request message may further include at least one of identifier information of the CDN1, identifier information of the CP/SP, and identifier information of the CSG1.
  • the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information included in the content distribution request message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, an item in an HTTP header field, or A few items.
  • CR1 may be based on a preset policy and subscription information (for example, the policy may be that once the CP/SP injects content into the CDN1, the CDN1 sends a content distribution request message to the CDN2 with which it is contracted) The content distribution request message is sent to the CR2, or the content distribution request message is sent to the CR2 after the request of the other entity (for example, the network management entity).
  • the policy may be that once the CP/SP injects content into the CDN1, the CDN1 sends a content distribution request message to the CDN2 with which it is contracted
  • the content distribution request message is sent to the CR2, or the content distribution request message is sent to the CR2 after the request of the other entity (for example, the network management entity).
  • the step is not limited to the CR1 sending the content distribution request message to the CR2, and the new network element entity (for example, the network management entity) sends the content distribution request message to the CR2, which is not performed in this embodiment. limit.
  • Step 302 CR2 selects CSG2/CD2, and sends a content distribution request message to the selected CSG2/CD2, where the content distribution request message includes the content identifier;
  • the CR2 may verify the received content distribution request message, for example: whether it is from the contracted CDN, whether the request is legal, etc. After the verification is passed, the appropriate CSG2/CD2 is selected, and the content is forwarded to the selected CSG2/CD2. Distribute the request message. Before CR2 forwards the content distribution request message, CR2 may modify the received content distribution request message.
  • Step 303 CSG2/CD2 returns a content distribution response message to CR2.
  • the content distribution response message may include the identifier information of the CSG2/CD2, and the identifier information of the CSG2/CD2 may include, but is not limited to, the following information: an IP address and a domain name.
  • Step 302 and step 303 above are optional execution steps.
  • Step 304 CR2 returns a content distribution response message to CR1, where the content distribution response message includes the identification information of CSG2/CD2;
  • the identifier information of the CSG2/CD2 may be obtained by the CR2 from the content distribution response message in the foregoing step 303, or may be obtained by the CR2 according to the local configuration information.
  • the content distribution response message may include the identifier information of the CDN2, and the foregoing At least one of the content identifiers.
  • www.cdn2.net represents the identification information of CDN2
  • a.flv represents the content identifier
  • here is a file name example
  • video/a.flv indicates the content path.
  • Step 305 CR1 sends a content distribution notification message to the CSG1, where the content distribution notification message includes the identifier information of the CSG2/CD2 and the content identifier.
  • the content distribution notification message may include the identifier information of the CDN2.
  • Step 306 The CSG1 returns content corresponding to the content identifier to the CSG2/CD2 according to the identifier information of the CSG2/CD2 and the content identifier.
  • Step 307 The CSG1 returns a content distribution response message to the CR1.
  • the CR2 or CSG2/CD2 obtains the content distribution request message, and returns the identification information of the CSG2/CD2 to the CR1, so that the CSG2/CD2 can obtain the content corresponding to the content identifier sent by the CSG1, thereby realizing that the CD2 can be contracted from the other.
  • the CSG (CSG1) in the CDN (CDN1) obtains the content of the CDN2 unsigned CP/SP, thereby enabling the content to be delivered to the TM, and solving the problem that the CD selected by the CR in the CDN in the prior art cannot be delivered to the TM.
  • the issue of signing the content of the CP/SP ensures the normal operation of the business.
  • Embodiment 4 is a schematic flowchart of a content acquisition method according to Embodiment 4 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • This embodiment is applicable to CD2 in CDN2 to obtain a request content message from a TM.
  • the subsequent CD2 cache does not have a Cache miss triggered scene to get the content.
  • the content acquisition method in this embodiment may include the following steps:
  • Step 401 The CD2 sends a request content message to the CR2, where the content content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include the identifier information of the CDN1, the CP/SP. At least one of the identification information and the identification information of the CD2.
  • the identifier information of the CD2 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • Step 402 CR2 sends a request content message to CR1, where the request content message includes the content identifier.
  • CR2 may send a request content message to CR1 according to a preset policy and subscription information (for example, the policy may be that CR2 sends a request content message to CR1 of CDN1 subscribed to CDN2 according to the obtained content identifier).
  • the policy may be that CR2 sends a request content message to CR1 of CDN1 subscribed to CDN2 according to the obtained content identifier.
  • the CR2 may modify the received request content message, for example: adding the identifier information of the CDN2.
  • the content of the request is implemented by the CR2 proxy CD2 to the request of the CR1.
  • the request may also be implemented by the CR2 redirecting the request of the CD2 to the CR1, which is not described here.
  • Step 403 CR1 returns a request response message to CR2, where the request response message includes the selected CSG1 identification information and the content identifier.
  • the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address, a domain name.
  • Step 404 CR2 returns a request response message to the CD2, where the request response message includes the identifier information of the CSG1 and the content identifier.
  • Step 405 The CD2 sends a request content message to the CSG1 according to the acquired identification information of the CSG1, where the request content message includes the content identifier.
  • Step 406 The CSG1 returns the content corresponding to the content identifier to the CD2 according to the content identifier.
  • the CD2 obtains the request content message from the TM, and if the CD2 cache does not hit, the content corresponding to the content identifier included in the request content message may be requested by the CR2 to the CR1, and further the CSG1 returned according to the acquired CR1.
  • the identification information of the CSG1 is requested by the CSG1 corresponding to the content identifier included in the request content message, so that the CD2 can obtain the content corresponding to the content identifier sent by the CSG1, so that the CD2 can be obtained from other CDNs (CDN1).
  • the CSG obtains the content of the CDN2 unsigned CP/SP, thereby enabling the content to be delivered to the TM, and solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested unsigned CP/SP content to the TM.
  • the problem is to ensure the normal operation of the business.
  • FIG. 5 is a schematic flowchart of a content obtaining method according to Embodiment 5 of the present invention.
  • This embodiment is another specific embodiment of the foregoing Embodiment 1 of the present invention.
  • the present embodiment is applicable to CD2 in CDN2 to obtain a request content message from the TM.
  • the subsequent CD2 cache does not have a Cache miss triggered scene to get the content.
  • the content acquisition method in this embodiment may include the following steps:
  • Step 501 CD2 sends a request content message to CR2, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1, identifier information of the CP/SP, and identifier information of the CD2.
  • the identifier information of the CD2 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or an item in an HTTP header field. Or a few.
  • Step 502 The CR2 sends a request content message to the CR1, where the request content message includes the identifier information of the CD2 and the content identifier.
  • the identifier information of the CD2 may be obtained by the CR2 from the request content message in the foregoing step 501, or may be obtained by the CR2 according to the local configuration information.
  • the CR2 may modify the received request content message, for example: adding the identifier information of the CDN2.
  • the CR2 proxy CD2 requests CR1 to implement the content of the request.
  • the CR2 can redirect the request of the CD2 to the CR1 to implement the content of the request, which is not described here.
  • Step 503 CR1 sends a content distribution notification message to the CSG1, where the content distribution notification message includes the identifier information of the CD2 and the content identifier.
  • the content distribution notification message may include the identifier information of the CDN2.
  • Step 504 The CSG1 returns the content corresponding to the content identifier to the CD2 according to the identifier information of the CD2 and the content identifier.
  • the CD2 obtains the request content message from the TM, and if the CD2 cache does not hit, the content corresponding to the content identifier included in the request content message may be requested by the CR2 to the CR1, and the identification information of the CD2 is sent to the CR1. Therefore, the CD2 can acquire the content corresponding to the content identifier sent by the CSG1, and realize that the CD2 can obtain the content of the CDN2 unsigned CP/SP from the CSG (CSG1) in the other CDN (CDN1), thereby being able to deliver the content to the TM, and solve the problem.
  • the CD selected by the CR in the CDN in the prior art cannot be selected.
  • the embodiment of the present invention may also assume that the CDN1 coverage area 1, the CDN2 coverage area 2, and the CDN3 coverage area 3, the CP/SP hopes to provide services for the TM in the area 1, the area 2, and the area 3, but the CP/SP only CDN1 is contracted (ie, CSG1 can obtain content from the content source of CP/SP), CDN1 is contracted with CDN2, and CDN2 is contracted with CDN3.
  • the technical solution of the first embodiment of the present invention will be further described in detail below by using the sixth embodiment of the present invention to the ninth embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a content acquisition method according to Embodiment 6 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • the embodiment is applicable to CSG1 in CDN1 to CSG3/ in CDN3 in advance.
  • the content acquisition method of this embodiment may include the following steps:
  • Step 601 CR1 sends a content distribution request message to the CR2, where the content distribution request message includes the content identifier, the identification information of the CSG1, and the distribution destination information.
  • the foregoing content identifier may include, but is not limited to, the following identifiers: a file name and a domain name; the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address and a domain name; the foregoing distribution destination information may be the identifier information of the CDN3, or may be The identification information of the area 3, for example, the area 3 is further divided into multiple sub-domains, and may also carry the sub-domain identification information of the area 3. Specifically, the information included in the content distribution request message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, an item in an HTTP header field, or A few items.
  • the content distribution request message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • identifier information of the CDN1 For example: Carry the above information through a URL: HTTP://CR2 identification information /192.168.1.1/ Distribution purpose information /www.sina.com.cdnl.net/video/a.flv, where 192.168.1.1 represents the identification information of CSG1, here IP is taken as an example, the port defaults to 80, and www.sina.com.cdn1.net represents the identifier of CDN1.
  • Information and CP/SP identification information, a.flv stands for content identification.
  • video/a.flv indicates the content path.
  • CDN1 does not wish to expose the identification information of the CP/SP, it may be the identification information of HTTP://CR2/192.168.1.1/ distribution destination information/www.cdn1.net/video/a.flv.
  • HTTP HyperText Transfer Protocol
  • FTP FTP
  • the CR1 may send the content distribution request message to the CR2 according to the preset policy and the subscription information, or may further send the content distribution request message to the CR2 after receiving the request of another entity. This example does not limit this.
  • the step is not limited to the CR1 sending the content distribution request message to the CR2, and the new network element entity may send the content distribution request message to the CR2, which is not limited in this embodiment.
  • Step 602 CR2 selects CR3 according to the obtained distribution destination information, and sends a content distribution request message to the selected CR3, where the content distribution request message includes the content identifier and the identifier information of the CSG1.
  • the content distribution request message may include the distribution destination information, where the distribution destination information may be the identifier information of the CDN3, or may be the identifier information of the area 3, for example, the area 3 is further divided into multiple sub-domains, and the area may be carried. 3 subdomain identification information.
  • CR2 may verify the received content distribution request message, for example: whether the CDN from the subscription, whether the request is legal, etc., after the verification is passed, according to the distribution destination information, select an appropriate CR3, and forward the above to the selected CR3.
  • Content distribution request message Before CR2 forwards the content distribution request message, CR2 may modify the received content distribution request message.
  • the CR2 may create a mapping relationship between the distribution destination information and the identification information and/or the content identifier of the CP/SP for routing by the subsequent terminal.
  • Step 603 CR3 selects CSG3/CD3, and sends a content distribution request message to the selected CSG3/CD3, where the content distribution request message includes the content identifier and the identifier information of the CSG1.
  • the CR3 may verify the received content distribution request message, for example: whether the CDN from the subscription, the request is legal, etc., after the verification is passed, select the appropriate CSG3/CD3, and forward the content to the selected CSG3/CD3. Distribute the request message.
  • the CR3 may modify the received content distribution request message before the CR3 forwards the content distribution request message.
  • Step 604 CSG3/CD3 returns a content distribution response message to CR3.
  • the content distribution response message may include the identifier information of the CSG3/CD3, and the identifier information of the CSG3/CD3 may include, but is not limited to, the following information: an IP address and a domain name.
  • Step 605 CR3 returns a content distribution response message to CR2.
  • the content distribution response message may include at least one of identifier information of the CDN3 and the content identifier.
  • Step 606 CR2 returns a content distribution response message to CR1.
  • the content distribution response message may include at least one of identifier information of the CDN3 and the content identifier.
  • Step 607 The CSG3/CD3 sends a request content message to the CSG1 according to the acquired identification information of the CSG1, where the content content message includes the content identifier.
  • Step 608 The CSG1 returns content corresponding to the content identifier to the CSG3/CD3 according to the content identifier.
  • the CSG3/CD3 obtains the content distribution request message through the CR2 and the CR3, and requests the CSG1 to correspond to the content identifier included in the content distribution request message according to the identification information of the CSG1 included in the content distribution request message.
  • the content so that CSG3/CD3 can obtain the content corresponding to the content identifier sent by CSG1, and realize that CD3 can obtain CDN3 unsigned from CSG (CSG1) in other unsigned CDN (CDN1).
  • the content of the CP/SP which enables the delivery of the content to the TM, solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested content of the unsigned CP/SP to the TM, and ensures the normal operation of the service. get on.
  • FIG. 7 is a schematic flowchart of a content acquisition method according to Embodiment 7 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • the embodiment is applicable to CSG1 in CDN1 to CSG3/ in CDN3 in advance.
  • the content acquisition method of this embodiment may include the following steps:
  • Step 701 CR1 sends a content distribution request message to CR2, where the content distribution request message includes content identifier and distribution destination information.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name; the foregoing distribution destination information may be the identifier information of the CDN3, and may also be the identifier information of the area 3, for example, the area 3 is further divided into multiple sub-domains, and The sub-domain identification information of the area 3 is carried.
  • the content distribution request message may further include at least one of identifier information of the CDN1, identifier information of the CP/SP, and identifier information of the CSG1.
  • the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information included in the content distribution request message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, an item in an HTTP header field, or A few items.
  • CDN1 does not wish to expose the identification information of the CP/SP, it may be the identification information of HTTP://CR2/192.168.1.1/ distribution destination information/www dnl.net/video/ailv. If the content distribution request message does not include the identification information of the CSG1, the identifier information/distribution destination information of the HTTP://CR2 may be /www.cdnl.net/video/ailV o
  • HTTP HyperText Transfer Protocol
  • FTP FTP
  • the CR1 may send the content distribution request message to the CR2 according to the preset policy and the subscription information, or may further send the content distribution request message to the CR2 after receiving the request of another entity. This example does not limit this.
  • the step is not limited to the CR1 sending the content distribution request message to the CR2, and the new network element entity may send the content distribution request message to the CR2, which is not limited in this embodiment.
  • Step 702 CR2 selects CR3 according to the obtained distribution destination information, and sends a content distribution request message to the selected CR3, where the content distribution request message includes the content identifier.
  • the content distribution request message may further include at least one of the distribution destination information and the identifier information of the CSG1, where the distribution destination information may be the identifier information of the CDN3, or may be the identifier information of the area 3, such as an area. 3 is further divided into multiple sub-domains, and may also carry sub-domain identification information of the area 3.
  • CR2 may verify the received content distribution request message, for example: whether it is from the contracted CDN, whether the request is legal, etc., after the verification is passed, according to the distribution destination information, select an appropriate CR3, and forward the above to the selected CR3.
  • Content distribution request message Before CR2 forwards the content distribution request message, CR2 may modify the received content distribution request message.
  • CR2 may create a mapping relationship between the distribution destination information and the identification information and/or the content identifier of the CP/SP for routing by subsequent terminals.
  • Step 703 CR3 selects CSG3/CD3, and sends a content distribution request message to the selected CSG3/CD3, where the content distribution request message includes the content identifier;
  • CR3 can verify the received content distribution request message, for example: whether it is from the contracted CDN, whether the request is legal, etc., after the verification is passed, select an appropriate one.
  • CSG3/CD3 forwards the above content distribution request message to the selected CSG3/CD3. among them,
  • CR3 may modify the received content distribution request message before forwarding the content distribution request message.
  • Step 704 CSG3/CD3 returns a content distribution response message to CR3.
  • the content distribution response message may include the identifier information of the CSG3/CD3, and the identifier information of the CSG2/CD2 may include, but is not limited to, the following information: an IP address and a domain name.
  • Step 703 and step 704 above are optional execution steps.
  • Step 705 The CR3 returns a content distribution response message to the CR2, where the content distribution response message includes the identification information of the CSG3/CD3.
  • the identification information of the CSG3/CD3 may be obtained by the CR3 from the content distribution response message in the foregoing step 704, or may be obtained by the CR3 according to the local configuration information.
  • the content distribution response message may include at least one of identifier information of the CDN3 and the content identifier.
  • identifier information of the CDN3 For example: Carry the above information through a URL: http://CR2 identification information /192.168.1.3/www.cdn3.net/video/a.flv, where 192.168.1.3 represents the identification information of CSG3/CD3, here IP
  • www.cdn3.net represents the identification information of CDN3
  • a.flv represents the content identifier
  • the file name is an example
  • video/a.flv represents the content path.
  • Step 706 CR2 returns a content distribution response message to CR1, where the content distribution response message includes the identification information of CSG3/CD3.
  • the content distribution response message may include at least one of identifier information of the CDN3 and the content identifier.
  • Step 707 The CR1 sends a content distribution notification message to the CSG1, where the content distribution notification message includes the identifier information of the CSG3/CD3 and the content identifier.
  • the content distribution notification message may include the identifier information of the CDN3.
  • Step 708 The CSG1 is configured according to the identifier information of the CSG3/CD3 and the content identifier. Sending content corresponding to the above content identifier to CSG3/CD3;
  • Step 709 The CSG1 returns a content distribution response message to the CR1.
  • CSG3/CD3 obtains the content distribution request message through CR2 and CR3, and returns the identification information of CSG3/CD3 to CR1, so that CSG3/CD3 can acquire the content corresponding to the content identifier sent by CSG1, thereby realizing that CD3 can be obtained from
  • the CSG (CSG1) in the other unsigned CDN (CDN1) obtains the content of the CDN3 unsigned CP/SP, so that the content can be delivered to the TM, and the CD selected by the CR in the CDN in the prior art cannot be delivered to the TM.
  • the question of the content of the requested unsigned CP/SP ensures the normal operation of the business.
  • FIG. 8 is a schematic flowchart of a content obtaining method according to Embodiment 8 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • the present embodiment is applicable to CD3 in CDN3 to obtain a request content message from the TM.
  • the subsequent CD3 cache has no hits (Cache miss) triggered scenes to get content.
  • the content acquisition method in this embodiment may include the following steps:
  • Step 801 The CD3 sends a request content message to the CR3, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1, identifier information of the CP/SP, and identifier information of the CD3.
  • the identifier information of the CD3 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • Step 802 CR3 sends a request content message to CR2, where the request content message includes the content identifier.
  • the CR3 may modify the received request content message, for example: adding the identifier information of the CDN3.
  • Step 803 CR2 sends the foregoing request content message to CR1.
  • CR2 may determine that the requested content exists in CDN1 according to at least one of the obtained content identifier and the identification information of the CP/SP, and send the requested content message to CR1.
  • CR2 may modify the received request content message before forwarding the request content message, for example: adding the identifier information of the CDN2.
  • This step is to implement the request content by requesting CR3 and CR2 proxy CD3 to CR1.
  • this step can also implement the request content by redirecting the CD3 request to CR1 through CR3 and CR2. Let me repeat.
  • Step 804 CR1 returns a request response message to CR2, where the request response message includes the selected CSG1 identification information and the content identifier.
  • the identifier information of the CSG1 may include, but is not limited to, the following information: an IP address, a domain name.
  • Step 805 CR2 returns the foregoing request response message to CR3.
  • Step 806 The CR3 returns a request response message to the CD3, where the request response message includes the identifier information of the CSG1 and the content identifier.
  • Step 807 The CD3 sends a request content message to the CSG1 according to the acquired identification information of the CSG1, where the content content message includes the content identifier.
  • Step 808 The CSG1 returns the content corresponding to the content identifier to the CD3 according to the content identifier.
  • CD3 obtains a request content message from the TM, and if the cache does not hit, The content corresponding to the content identifier included in the request content message may be requested by CR3 and CR2, and the content included in the request content message may be requested from the CSG1 according to the identifier information of the CSG1 returned by the acquired CR1.
  • Identifying the corresponding content so that the CD3 can obtain the content corresponding to the content identifier sent by the CSG1, so that the CD3 can obtain the content of the CDN3 unsigned CP/SP from the CSG (CSG1) in the other unsigned CDN (CDN1), thereby enabling Delivering the content to the TM solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested content of the unsigned CP/SP to the TM, and the normal operation of the service is ensured.
  • FIG. 9 is a schematic flowchart of a content acquisition method according to Embodiment 9 of the present invention.
  • This embodiment is another embodiment of the foregoing Embodiment 1 of the present invention.
  • the embodiment is applicable to CD3 in CDN3 to obtain a request content message from the TM.
  • the subsequent cache has no Cache miss triggered scenes for getting content.
  • the content acquisition method in this embodiment may include the following steps:
  • Step 901 The CD3 sends a request content message to the CR3, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1, identifier information of the CP/SP, and identifier information of the CD3.
  • the identifier information of the CD3 may include, but is not limited to, the following information: an IP address, a domain name.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • Step 902 The CR3 sends a request content message to the CR2, where the request content message includes the identifier information of the CD3 and the content identifier.
  • the identifier information of the CD3 may be obtained by the CR3 from the request content message in the foregoing step 901, or may be obtained by the CR3 according to the local configuration information.
  • the CR3 may modify the received request content message, for example: adding the identifier information of the CDN3.
  • Step 903 CR2 sends the foregoing request content message to CR1.
  • CR2 may determine that the requested content exists in CDN1 according to at least one of the obtained content identifier and the identification information of the CP/SP, and send the requested content message to CR1.
  • CR3 and CR2 proxy CD3 request CR1 to implement the requested content.
  • this step can also redirect the request of CD3 to CR1 through CR3 and CR2 to implement the requested content. Narration.
  • Step 904 The CR1 sends a content distribution notification message to the CSG1, where the content distribution notification message includes the identifier information of the CD3 and the content identifier.
  • the content distribution notification message may include the identifier information of the CDN3.
  • Step 905 The CSG1 returns the content corresponding to the content identifier to the CD3 according to the identifier information of the CD3 and the content identifier.
  • the CD3 obtains the request content message from the TM, and if the cache does not hit, the content corresponding to the content identifier included in the requested content message may be requested by CR3 and CR2, and the identification information of the CD3 is sent to the CR1. Therefore, the CD3 can obtain the content corresponding to the content identifier sent by the CSG1, so that the CD3 can obtain the content of the CDN3 unsigned CP/SP from the CSG (CSG1) in the other unsigned CDN (CDN1), thereby being able to deliver the content to the TM.
  • the CD in the CDN may further adopt hierarchical deployment, for example: generally deploying multiple CD domains in the metropolitan area network, where each CD domain may have multiple CD, one or more slave delivery control entities (ie, delivery control entities in the sub-CR), and also provides a primary CR delivery control entity (ie, the delivery control entity in the global CR) to uniformly manage multiple CD domains With control.
  • the CSG in the CDN can also be deployed in a layered manner, and will not be described here.
  • the CR (CR2 or CR3) in the second CDN according to the second embodiment of the present invention to the ninth embodiment of the present invention may include the primary CR and the primary CR in the second CDN.
  • the sub-CR in the selected second CDN may specifically be that the primary CR first receives the request or response, then selects the sub-CR and forwards it to the sub-CR for processing.
  • the CR (CR2) in the third CDN to which the above-described sixth embodiment of the present invention to the ninth embodiment of the present invention may include the primary CR in the third CDN and the third CDN selected by the primary CR.
  • CR specifically, the primary CR first receives the request or response, then selects the sub-CR and forwards it to the sub-CR for processing.
  • step 10100 a CR in a first CDN obtains a content request from a TM, and requests content corresponding to a content identifier, where the first CDN is used. Signing with the CP/SP to enable the first CDN to obtain the content from the CP/SP;
  • Step 1002 The CR in the first CDN sends the CR information in the second CDN or the CD in the second CDN to the TM according to the delivery policy, so that the TM requests the CD from the second CDN and the content. Identify the corresponding content.
  • the second CDN may be contracted with the first CDN, and the CR in the first CDN may directly return the CR in the second CDN or the identification information of the CD in the second CDN to the TM requesting the content (for details, refer to the following Inventive Embodiment 11: Embodiment 12 of the present invention; or, the CR in the first CDN may also return the CR in the second CDN or the CD in the second CDN to the TM of the requested content through the CR in the third CDN.
  • Identification information (detailed description can Referring to the thirteenth embodiment of the present invention described below, the fourteenth embodiment of the present invention.
  • the CR in the first CDN may determine that the requested content message needs to be served by the second CDN according to the set delivery policy. For example: Based on TM's strategy of location, time, cost and other factors, it needs to be served by the second CDN.
  • the identifier information of the CR in the second CDN or the CD in the second CDN is sent to the TM, so that the CR
  • the TM can request the content corresponding to the content identifier from the CD in the second CDN, so that the TM can acquire the content of the CP/SP delivered by the CD in the other CDN, and the normal operation of the service is ensured.
  • the embodiment of the present invention can assume that CDN1 covers area 1 and CDN2 covers area 2, and CP/SP wants to provide services for TM in area 1 and area 2, but CP/SP only contracts with CDN1 (ie, CSG1 can source content from CP/SP). Get content), CDN1 and CDN2 sign up.
  • CDN1 covers area 1 and CDN2 covers area 2
  • CP/SP only contracts with CDN1 (ie, CSG1 can source content from CP/SP). Get content), CDN1 and CDN2 sign up.
  • FIG. 11 is a schematic flowchart of a content delivery method according to Embodiment 11 of the present invention.
  • This embodiment is a specific embodiment of Embodiment 10 of the present invention.
  • the content delivery method of this embodiment may include the following steps:
  • Step 1101 The TM sends a DNS request message to a Domain Name Server (DNS) 1;
  • DNS Domain Name Server
  • the DNS1 server acts as the authorized DNS for the domain name specified by the CP/SP. Specifically, when the TM requests the service, the DNS resolution process is triggered. For the DNS resolution process, refer to related content in the prior art, and details are not described herein again.
  • the DNS server of CDN1 acts as the authorized DNS server for the domain name specified by the CP.
  • Step 1102 The DNS1 returns a DNS response message to the TM, where the DNS response message includes the identifier information of the CR1.
  • Step 1 101 and step 1102 described above are optional execution steps.
  • Step 1103 The TM sends a request content message to the CR1 according to the acquired identifier information of the CR1, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL such as a URL
  • XML element or an attribute such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • www.sina.com.cdnl .net represents CDN1 identification information and The identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1104 CR1 determines, according to the set delivery policy, that the request content message is processed by the CDN2, and returns a request response message to the TM, where the request response message includes the identifier information of the CR2 and the content identifier.
  • CR1 may determine that the requested content message needs to be served by the CDN2 according to the set delivery policy. For example: A strategy based on factors such as location, time, cost, etc., needs to be served by CDN2.
  • the request response message may further include at least one of identifier information of the CDN1, identifier information of the CR1, and identifier information of the CP/SP.
  • the identifier information of the CR1 may include, but is not limited to, the following information: an IP address and a domain name, for requesting the identification information of the CSG1 to the CR1 when the cache does not hit.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL For example: Carry the above information through a URL: http://CR2 identification information / CR1 identification information / www.sina.com.cdnl.net/video/a. flv, where www.sina.com.cdnl.net representative
  • the identification information of the CDN1 and the identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • the above-mentioned HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • This step is to implement the request content by redirecting the TM request to CR2 through CR1.
  • Step 1105 The TM sends a request content message to the CR2 according to the acquired identifier information of the CR2, where the request content message includes the content identifier.
  • Step 1 106 CR2 selects CD2, and returns a request response message to the TM, where the request response message includes the selected CD2 identification information and the content identifier.
  • the identifier information of the CD2 may include, but is not limited to, the following information: an IP address and a domain name.
  • the request response message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • CR2 in this step can select an appropriate CD2 according to the load status of the CD and/or the set delivery policy (for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD).
  • the set delivery policy for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD.
  • Step 1107 The TM sends a request content message to the CD2 according to the acquired identification information of the CD2, where the request content message includes the content identifier.
  • Step 1108 The CD2 returns the content corresponding to the content identifier to the TM according to the content identifier.
  • the CD2 in this step can obtain the content requested by the foregoing TM through the foregoing embodiment 2 of the present invention and the third embodiment of the present invention.
  • the content of the above-mentioned TM is obtained by the above-mentioned fourth embodiment of the present invention and the fifth embodiment of the present invention.
  • the fourth embodiment of the present invention and the fifth embodiment of the present invention are related content, no more details here.
  • the CR1 after acquiring the content request from the TM, the CR1 sends the identification information of the CR2 to the TM according to the set delivery policy, so that the TM can request the content corresponding to the content identifier from the CD2 through the CR2, thereby realizing TM can obtain the content of the unsigned CP/SP delivered by the CD (CD2) in the other CDN (CDN2), and solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested unsigned CP/ to the TM.
  • the problem of the content of the SP ensures the normal operation of the business and ensures the normal operation of the business.
  • FIG. 12 is a schematic flowchart of a content delivery method according to Embodiment 12 of the present invention.
  • This embodiment is another specific embodiment of Embodiment 10 of the present invention.
  • the content delivery method of this embodiment may include the following steps:
  • Step 1201 The TM sends a DNS request message to the DNS1.
  • the DNS1 server acts as the authorized DNS for the domain name specified by the CP/SP. Specifically, when the TM requests the service, the DNS resolution process is triggered. For the DNS resolution process, refer to related content in the prior art, and details are not described herein again.
  • the DNS server of CDN1 acts as the authorized DNS server for the domain name specified by the CP.
  • Step 1202 The DNS1 returns a DNS response message to the TM, where the DNS response message includes the identifier information of the CR1.
  • Step 1201 and step 1202 described above are optional execution steps.
  • Step 1203 The TM sends the requested content to the CR1 according to the acquired identification information of the CR1.
  • the message, the content content message includes the content identifier;
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL such as a URL
  • XML element or an attribute such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • www.sina.com.cdnl .net represents CDN1 identification information and The identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1204 CR1 determines, according to the set delivery policy, that the request content message is processed by the CDN2, and sends a request content message to the CR2, where the request content message includes a content identifier.
  • the CR1 may be according to the set delivery policy. Determining that the request content message needs to be served by CDN2. For example: A strategy based on factors such as location, time, cost, etc., needs to be served by CDN2.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL For example: Carry the above information through a URL: HTTP: ⁇ CR2 identification information / www.sina.com.cdnl .net/video/a. flv, where www.sina.com.cdnl .net represents CDN1 identification information and The identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • the above-mentioned HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1205 CR2 selects CD2, and returns a request response message to CR1, and the above request is ringing.
  • the message should include the selected CD2 identification information and the above content identifier;
  • the identifier information of the CD2 may include, but is not limited to, the following information: an IP address and a domain name.
  • the request response message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • CR2 in this step can select an appropriate CD2 according to the load status of the CD and/or the set delivery policy (for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD).
  • the set delivery policy for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD.
  • Step 1206 CR1 returns a request response message to the TM, where the request response message includes the identifier information of the CD2 and the content identifier.
  • the request response message may further include at least one of identifier information of the CDN1, identifier information of the CR1, and identifier information of the CP/SP.
  • the identifier information of the CR1 may include, but is not limited to, the following information: an IP address and a domain name, for requesting the identification information of the CSG1 to the CR1 when the cache does not hit.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • Step 1207 The TM sends a request content message to the CD2 according to the obtained identification information of the CD2, where the request content message includes the content identifier.
  • Step 1208 The CD2 returns the content corresponding to the content identifier to the TM according to the content identifier.
  • the CD2 in this step can obtain the content requested by the foregoing TM through the foregoing embodiment 2 of the present invention and the third embodiment of the present invention.
  • the content of the above-mentioned TM is obtained by the above-mentioned fourth embodiment of the present invention and the fifth embodiment of the present invention.
  • the fourth embodiment of the present invention and the fifth embodiment of the present invention are related content, no more details here.
  • the CR1 after acquiring the content request from the TM, the CR1 sends the identification information of the CD2 to the TM through the CR2 according to the set delivery policy, so that the TM can request the content corresponding to the content identifier from the CD2, thereby realizing TM can obtain the content of the unsigned CP/SP delivered by the CD (CD2) in the other CDN (CDN2), and solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested unsigned CP/ to the TM.
  • the problem of the content of the SP ensures the normal operation of the business and ensures the normal operation of the business.
  • the foregoing eleventh embodiment of the present invention and the twelfth embodiment of the present invention may further include the following steps:
  • the CD 2 reports the information of the content distribution and/or the information delivered by the content to CR1 and/or CR2, and the information that CR2 reports the content distribution and/or the content delivery of the content to CR1.
  • the specific implementation may be that the CD2 reports to the Network Operation Center (NoC) of the CDN1 and/or the CDN2, and the NoC of the CR2 to the CDN1, and the report is not described here.
  • NoC Network Operation Center
  • the embodiment of the present invention may also assume that the CDN1 coverage area 1, the CDN2 coverage area 2, and the CDN3 coverage area 3, the CP/SP hopes to provide services for the TM in the area 1, the area 2, and the area 3, but the CP/SP only CDN1 is contracted (ie, CSG1 can obtain content from the content source of CP/SP), CDN1 is contracted with CDN2, and CDN2 is contracted with CDN3.
  • the technical solution of the tenth embodiment of the present invention will be further described in detail below by using the thirteenth embodiment of the present invention and the fourteenth embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of a content delivery method according to Embodiment 13 of the present invention.
  • This embodiment is another specific embodiment of Embodiment 10 of the present invention.
  • the content delivery method of this embodiment may include the following steps:
  • Step 1301 The TM sends a DNS request message to the DNS1.
  • the DNS1 server acts as the authorized DNS for the domain name specified by the CP/SP. Specifically, when the TM requests the service, the DNS resolution process is triggered. For the DNS resolution process, refer to related content in the prior art, and details are not described herein again.
  • the DNS server of CDN1 acts as the authorized DNS server for the domain name specified by the CP.
  • Step 1302 The DNS1 returns a DNS response message to the TM, where the DNS response message includes the identifier information of the CR1.
  • Step 1301 and step 1302 described above are optional execution steps.
  • Step 1303 The TM sends a request content message to the CR1 according to the acquired identifier information of the CR1, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL such as a URL
  • XML element or an attribute such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • flv where www.sina.com.cdn1.net stands for The identification information of the CDN1 and the identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1304 CR1 determines, according to a preset delivery policy, that the request content message is processed by the CDN2, and returns a request response message to the TM, where the request response message includes the identifier information of the CR2 and the content identifier.
  • CR1 may determine that the requested content message needs to be served by the CDN2 according to the set delivery policy, for example: a policy based on factors such as location, time, cost, etc. of the TM, which needs to be served by the CDN2; or CR1 may Determining that the content requested by the request content message is not provided by CDN1, the request content message is forwarded to CR2 of CDN2.
  • the request response message may further include at least one of identifier information of CDN1, identifier information of CR1, and identifier information of the CP/SP.
  • the identifier information of the CR1 may include, but is not limited to, the following information: an IP address and a domain name, for requesting the identification information of the CSG1 to the CR1 when the cache does not hit.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • flv where www.sina.com.cdn1.net Representing the identification information of the CDN1 and the identification information of the CP/SP, a.flv represents the content identification, here the file name is an example, and video/a.flv indicates the content path.
  • HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • This step is to implement the request content by redirecting the TM request to CR2 through CR1.
  • Step 1305 The TM sends a request content message to the CR2 according to the acquired identifier information of the CR2, where the request content message includes the content identifier.
  • Step 1306, CR2 determines that the request content message is processed by CDN3, and returns to TM And the request response message includes the identifier information of the CR3 and the content identifier. Specifically, the CR2 may determine, according to at least one of the location of the TM, the identifier information of the CP/SP, and the content identifier, that the requested content message is determined by CDN3 processing. Specifically, the user in a particular area is processed by a particular CDN; or a particular CP/SP and/or certain content is processed by a particular CDN.
  • Step 1307 The TM sends a request content message to the CR3 according to the acquired identifier information of the CR3, where the request content message includes the content identifier.
  • Step 1308 CR3 selects CD3, and returns a request response message to the TM, where the request response message includes the selected CD3 identification information and the content identifier.
  • the identifier information of the CD3 may include but is not limited to the following information: an IP address and a domain name.
  • the request response message may further include at least one of identifier information of the CDN1, identifier information of the CDN2, and identifier information of the CP/SP.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • CR3 in this step can select an appropriate CD3 according to the load status of the CD and/or the set delivery policy (for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD).
  • the set delivery policy for example, a policy based on the location of the TM, the correspondence between the content of the CP/SP and the CD.
  • Step 1309 The TM sends the requested content to the CD3 according to the acquired identification information of the CD3.
  • the message, the request content message includes the content identifier;
  • Step 1310 The CD3 returns the content corresponding to the content identifier to the CD3 according to the content identifier.
  • the CD3 in this step can obtain the content of the foregoing request by using the foregoing embodiment 2 of the present invention and the third embodiment of the present invention.
  • the foregoing description of the second embodiment of the present invention and the third embodiment of the present invention The content is not described here again; or the content of the foregoing may be obtained by the above-mentioned fourth embodiment of the present invention and the fifth embodiment of the present invention.
  • the fourth embodiment of the present invention and the fifth embodiment of the present invention are related content, no more details here.
  • the CR1 after acquiring the content request from the UI, the CR1 sends the identifier information of the CR2 to the UI according to the set delivery policy, and after acquiring the content request from the UI, the CR2 sends the content request to the UI according to the set delivery policy.
  • the identification information of the CR3, so that the ⁇ can request the content corresponding to the content identifier from the CD3 through the CR3, and the content of the unsigned CP/SP delivered by the CD (CD3) in the other CDN (CDN3) can be obtained.
  • CD selected by the CR in the CDN in the prior art cannot deliver the requested content of the unsigned CP/SP to the TM is solved, and the normal operation of the service is ensured, and the normal operation of the service is ensured.
  • FIG. 14 is a schematic flowchart diagram of a content delivery method according to Embodiment 14 of the present invention.
  • This embodiment is another specific embodiment of Embodiment 10 of the present invention.
  • the content delivery method of this embodiment may include the following steps:
  • Step 1401 The TM sends a DNS request message to the DNS1.
  • the DNS1 server acts as the authorized DNS for the domain name specified by the CP/SP. Specifically, when the TM requests the service, the DNS resolution process is triggered. For the DNS resolution process, refer to related content in the prior art, and details are not described herein again.
  • the DNS server of CDN1 acts as the authorized DNS server for the domain name specified by the CP.
  • Step 1402 DNS1 returns a DNS response message to the TM, in the foregoing DNS response message. Contains identification information of CR1;
  • steps 1401 and 1402 are optional execution steps.
  • Step 1403 The TM sends a request content message to the CR1 according to the acquired identifier information of the CR1, where the request content message includes a content identifier.
  • the content identifier may include, but is not limited to, the following identifiers: a file name, a domain name.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • a URL such as a URL
  • XML element or an attribute such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • www.sina.com.cdnl .net represents CDN1 identification information and The identification information of the CP/SP, a.flv represents the content identifier, here the file name is an example, and video/a.flv indicates the content path.
  • HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1404 CR1 determines, according to the set delivery policy, that the request content message is processed by the CDN2, and sends a request content message to the CR2, where the request content message includes a content identifier.
  • the CR1 may be according to the set delivery policy. Determining that the request content message needs to be served by CDN2. For example: a policy based on factors such as location, time, cost, etc. of TM needs to be served by CDN2; or CR1 can determine that the content requested by the request content message is not provided by CDN1, and then forward the requested content message to CR2 of CDN2.
  • the request content message may further include at least one of identifier information of the CDN1 and identifier information of the CP/SP.
  • the information contained in the request content message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • the above-mentioned HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1405 CR2 determines, according to the set delivery policy, that the request content message is processed by the CDN3, and sends a request content message to the CR3, where the request content message includes a content identifier.
  • CR2 may determine that the request content message is processed by CDN3 according to at least one of the location of the TM, the identification information of the CP/SP, and the content identifier. Specifically, a user in a particular area is processed by a particular CDN; or a particular CP/SP and/or certain content is processed by a particular CDN.
  • Step 1406 CR3 selects CD3, and returns a request response message to CR2, where the request response message includes the selected CD3 identification information and the content identifier.
  • the identifier information of the CD3 may include but is not limited to the following information: an IP address and a domain name.
  • the request response message may further include at least one of identifier information of the CDN3 and identifier information of the CP/SP.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • the CR3 in this step may select an appropriate CD3 according to the load status of the CD and/or the set delivery policy (for example, a policy based on factors such as the location of the TM, the correspondence between the content of the CP/SP and the CD).
  • This step is optional, CR3 can directly return a message to CR1.
  • Step 1407 CR2 returns a request response message to CR1, where the request response message includes the selected CD3 identification information and the content identifier.
  • Step 1408 CR1 returns a request response message to the TM, where the request response message includes the identifier information of the CD3 and the content identifier.
  • the request response message may further include at least one of identifier information of CDN1, identifier information of CDN2, identifier information of CR1, and identifier information of the CP/SP.
  • the identifier information of the CR1 may include, but is not limited to, the following information: an IP address and a domain name, for requesting the identification information of the CSG1 to the CR1 when the cache does not hit.
  • the information contained in the request response message may be carried by a common field, such as a URL, or may be carried by a separate field, such as: a URL, an XML element or an attribute, or one or more of the HTTP header fields. item.
  • the above information is carried by a URL: http://192.168.1.3/CR1 identification information /www.sina.com.cdnl.net.cdn2.net /video/a.flv , where 192.168.1.3 represents CD3 Identification information, here IP as an example, the port defaults to 80; www.sina.com.cdn1. net.cdn2.net stands for CDN1, CDN2 identification information and CP/SP identification information, a.flv stands for content identification, here The file name is an example, and video/a.flv indicates the content path.
  • the above-mentioned HTTP is used as an example, and other protocols such as FTP can also be used. This embodiment does not limit this.
  • Step 1409 The TM sends a request content message to the CD3 according to the obtained identification information of the CD3, where the request content message includes the content identifier.
  • Step 1410 The CD3 returns the content corresponding to the content identifier to the TM according to the content identifier.
  • the CD3 in this step can obtain the content requested by the foregoing TM in the foregoing embodiment 2 of the present invention and the third embodiment of the present invention.
  • the content is not described here again; or the content requested by the foregoing TM may be obtained through the above-mentioned fourth embodiment of the present invention and the fifth embodiment of the present invention.
  • the related content in the fourth embodiment of the present invention and the fifth embodiment of the present invention and details are not described herein again.
  • CR1 after acquiring the content request from the TM, CR1 sends the identification information of the CD3 to the TM through CR2 and CR3 according to the set delivery policy, so that the TM can request the content corresponding to the content identifier from the CD3. It realizes that the TM can obtain the contents of the unsigned CP/SP delivered by the CD (CD3) in the other CDN (CDN3), and solves the unsigned contract that the CD selected by the CR in the CDN in the prior art cannot be delivered to the TM.
  • CD3 unsigned CP/SP delivered by the CD
  • CDN3 CDN
  • the CD in the CDN may further adopt hierarchical deployment, for example: generally deploying multiple CD domains in the metropolitan area network, where each CD domain may have multiple CD, one or more slave delivery control entities (ie, delivery control entities in the sub-CR), and also provides a primary CR delivery control entity (ie, the delivery control entity in the global CR) to uniformly manage multiple CD domains With control.
  • the CSG in the CDN can also be deployed in a layered manner, and will not be described here.
  • the CR (CR2 or CR3) in the second CDN according to the second embodiment of the present invention to the ninth embodiment of the present invention may include the primary CR and the primary CR in the second CDN.
  • the sub-CR in the selected second CDN may specifically be that the primary CR first receives the request or response, then selects the sub-CR and forwards it to the sub-CR for processing.
  • the CR (CR2) in the third CDN to which the above-described sixth embodiment of the present invention to the ninth embodiment of the present invention may include the primary CR in the third CDN and the third CDN selected by the primary CR.
  • CR specifically, the primary CR first receives the request or response, then selects the sub-CR and forwards it to the sub-CR for processing.
  • FIG. 15 is a schematic structural diagram of a content obtaining apparatus according to Embodiment 15 of the present invention.
  • the content obtaining apparatus of this embodiment may be configured in a second CDN, and may include an obtaining module 1501, configured to acquire the first The content sent by the CSG in the CDN, the first CDN is contracted with the CP/SP, so that the first CDN acquires the content from the CP/SP.
  • the CSG in the second CDN or the CD in the second CDN, the second and third embodiments of the CSG2/CD2, the fourth embodiment of the present invention, the CD2 in the fifth embodiment, and the sixth and seventh embodiments of the present invention The functions of the CSG3/CD3, the eighth embodiment of the present invention, and the CD3 can be implemented by the content obtaining apparatus provided by the embodiment of the present invention.
  • the acquiring module acquires the content corresponding to the content identifier sent by the CSG in the first CDN, so that the CD in the second CDN can obtain the second CDN unsigned CP/SP from the CSG in the other CDN.
  • the content so that the content can be delivered to the TM, solves the problem that the CD selected by the CR in the CDN in the prior art cannot deliver the requested content of the unsigned CP/SP to the TM, and the normal operation of the service is ensured.
  • the content delivery apparatus of this embodiment may be disposed in a first CDN, and the first CDN is contracted with a CP/SP.
  • the first CDN is obtained by acquiring the content from the CP/SP, and may include a receiving module 1601 and a sending module 1602.
  • the receiving module 1601 obtains the content request from the terminal, and requests the content corresponding to the content identifier, and the sending module 1602 sends the CR information in the second CDN or the CD in the second CDN to the terminal according to the delivery policy.
  • the terminal is caused to request content corresponding to the content identifier from the CD in the second CDN.
  • the functions of the CR in the first CDN and the CR1 in the eleventh, twelfth, thirteenth, and fourteenthth embodiments of the present invention can be implemented by the content delivery apparatus provided by the embodiment of the present invention.
  • the sending module sends the CR in the second CDN or the CD in the second CDN to the TM according to the set delivery policy.
  • the identification information enables the TM to request the content corresponding to the content identifier from the CD in the second CDN, so that the TM can acquire the content of the CP/SP delivered by the CD in the other CDN, thereby ensuring the normal operation of the service. .

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)

Description

内容获取、 交付方法及装置 技术领域
本发明实施例涉及通信技术, 尤其涉及一种内容获取、 交付方法及装 置。 背景技术
一个内容分发网络( Content Delivery Network, 简称 CDN )通常由内 容路由实体 ( Content Route, 简称 CR )、 内容存储实体 ( Content Storage, 简称 CSG )、 内容交付实体(Content Delivery, 简称 CD )等实体构成。 其中, CR可以包括存储控制实体和交付控制实体, 主要负责内容相关请求 的路由, 包括将终端(Terminal, 简称 TM )的内容请求调度到适当的 CD; CSG主要负责从内容提供商 (Content Provider, 简称 CP ) /业务提供商 ( Service Provider, 简称 SP )提供的内容源获取原始内容并存储, 以及 向 CD分发上述内容; CD是 CDN的业务提供点, 是面向 TM的内容提供 设备。 当一个 CDN中的 CR获取到来自 TM的内容请求时, 选择一个 CD, 由该 CD向上述 TM交付所请求的内容。
现有技术中, 如果 TM所请求的内容所属 CP/SP未与 CDN签约, 该 CDN中的 CD则无法获取上述内容。 当 CDN中的 CR获取到来自 TM的 内容请求时, 所选择的 CD则无法向该 TM交付所请求的未签约 CP/SP的 内容, 从而影响了业务的正常进行。 发明内容
本发明实施例提供一种内容获取、 交付方法及装置, 用以解决现有技 术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP 的内容的问题, 保证业务的正常进行。 本发明实施例提供了一种内容获取方法, 包括:
第二 CDN中的 CSG或第二 CDN中的 CD获取第一 CDN中的 CSG发送的 内容, 所述第一 CDN与 CP/SP签约, 以使所述第一 CDN从所述 CP/SP获取 所述内容。
本发明实施例提供了一种内容交付方法, 包括:
第一 CDN中的 CR获取来自终端的内容请求,用以请求与内容标识对 应的内容,所述第一 CDN与 CP/SP签约,以使所述第一 CDN从所述 CP/SP 获取所述内容;
所述第一 CDN中的 CR根据交付策略, 向所述终端发送第二 CDN中的 CR或第二 CDN中的 CD的标识信息,以使所述终端向第二 CDN中的 CD请求 与所述内容标识对应的内容。
本发明实施例还提供了一种内容获取装置, 设置于第二 CDN中, 包括 获取模块, 用于获取第一 CDN中的 CSG发送的内容, 所述第一 CDN与 CP/SP签约, 以使所述第一 CDN从所述 CP/SP获取所述内容。
本发明实施例还提供了一种内容交付装置, 设置于第一 CDN中, 所述 第一 CDN与 CP/SP签约, 以使所述第一 CDN从所述 CP/SP获取内容, 包括: 接收模块, 用于获取来自终端的内容请求, 用以请求与内容标识对应 的内容;
发送模块, 用于根据交付策略, 向所述终端发送第二 CDN中的 CR或第 二 CDN中的 CD的标识信息, 以使所述终端向第二 CDN中的 CD请求与所述 内容标识对应的内容。
由上述技术方案可知, 本发明实施例通过第二 CDN中的 CSG或第二 CDN中的 CD获取第一 CDN中的 CSG发送的内容, 实现了第二 CDN中 的 CD能够从其他 CDN中的 CSG获取该第二 CDN未签约 CP/SP的内容, 从而得以向 TM 交付该内容, 解决了现有技术中 CDN 中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的 正常进行。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一提供的内容获取方法的流程示意图;
图 2为本发明实施例二提供的内容获取方法的流程示意图;
图 3为本发明实施例三提供的内容获取方法的流程示意图;
图 4为本发明实施例四提供的内容获取方法的流程示意图;
图 5为本发明实施例五提供的内容获取方法的流程示意图;
图 6为本发明实施例六提供的内容获取方法的流程示意图;
图 7为本发明实施例七提供的内容获取方法的流程示意图;
图 8为本发明实施例八提供的内容获取方法的流程示意图;
图 9为本发明实施例九提供的内容获取方法的流程示意图;
图 10为本发明实施例十提供的内容交付方法的流程示意图;
图 11为本发明实施例十一提供的内容交付方法的流程示意图; 图 12为本发明实施例十二提供的内容交付方法的流程示意图; 图 13为本发明实施例十三提供的内容交付方法的流程示意图; 图 14为本发明实施例十四提供的内容交付方法的流程示意图; 图 15为本发明实施例十五提供的内容获取装置的结构示意图; 图 16为本发明实施例十六提供的内容交付装置的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1 为本发明实施例一提供的内容获取方法的流程示意图, 如图 1所 示, 本实施例的内容获取方法可以包括以下步骤:
步骤 101、 第二 CDN中的 CSG或第二 CDN中的 CD获取第一 CDN 中的 CSG发送的内容,上述第一 CDN与 CP/SP签约,以使上述第一 CDN 从上述 CP/SP获取所述内容。
其中, 第二 CDN可以与第一 CDN签约, 第一 CDN可以直接向第二 CDN提供 CP/SP的内容(详细描述可以参见下述本发明实施例二至本发 明实施例五) ; 或者, 第二 CDN还可以不与第一 CDN签约, 则第一 CDN 可以通过与第一 CDN签约的第三 CDN向第二 CDN提供 CP/SP的内容 (详 细描述可以参见下述本发明实施例六至本发明实施例九) 。
本实施例中, 通过第二 CDN中的 CSG或第二 CDN中的 CD获取第 一 CDN中的 CSG发送的与内容标识对应的内容, 实现了第二 CDN中的 CD能够从其他 CDN中的 CSG获取该第二 CDN未签约 CP/SP的内容, 从而得以向 TM 交付该内容, 解决了现有技术中 CDN 中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的 正常进行。
本发明实施例可以假设 CDN1覆盖区域 1 , CDN2覆盖区域 2, CP/SP 希望在区域 1和区域 2为 TM提供服务, 但 CP/SP只与 CDN1签约 (即 CSG1能够从 CP/SP的内容源获取内容), CDN1与 CDN2签约。 下面将 通过本发明实施例二至本发明实施例五进一步详细说明上述本发明实施例 一的技术方案。
图 2为本发明实施例二提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的一个具体实施例, 本实施例适用于 CDN1 中的 CSG1预先向 CDN2中的 CSG2/CD2注入内容的场景。如图 2所示, 本实 施例的内容获取方法可以包括以下步骤:
步骤 201、 CR1向 CR2发送内容分发请求消息, 上述内容分发请求消 息中包含内容标识和 CSG1的标识信息;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名; 上 述 CSG1的标识信息可以包括但不限于以下信息: IP地址、域名。 具体地, 上述内容分发请求消息中包含的信息可以通过一个共同的字段携带, 例如: 统一资源定位符 (Uniform Resource Locator, 简称 URL ) , 或者还可以 通过独立的字段携带, 例如: URL、 可扩展标记语言 ( extensible Markup Language, 简称 XML )元素或属性、 HTTP头域中的一项或几项。 例如: 通过一个 URL 携 带上述信 息 : HTTP://CR2 的 标识信 息 /192.168.1.1/video/a.flv, 其中 192.168.1.1代表 CSG1的标识信息, 此处 以 I P地址为例, 端口默认 80 , a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内容路径。
可选地, 上述内容分发请求消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 例如: 通过一个 URL携带上述信息: HTTP://CR2的标识信息 /192.168.1.1/www.sina.com.cdn1.net/video/a.flv, 其中 192.168.1.1代表 CSG1的标识信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv 代表内容标识,此处以文件名为例, video/a.flv表示了内容路径。如果 CDN1 不希望暴露 CP/SP 的标识信息, 则可以为 HTTP:〃 CR2 的标识信息 /192.168.l1/www.cdn1.net/vjdeo/ailV o上述以超文本传输协议( Hypertext Transfer Protocol , 简称 HTTP ) 为例, 还可以釆用文件传输协议 (File Transfer Protocol, 简称 FTP )等其他协议, 本实施例对此不进行限制。
需要说明的是: 本步骤中, CR1可以根据预先设置的策略和签约信息, 向 CR2发送上述内容分发请求消息,或者还可以接收其他实体的请求之后, 向 CR2发送上述内容分发请求消息, 本实施例对此不进行限制。
可选地, 本步骤不限于 CR1 向 CR2发送上述内容分发请求消息, 还 可以是一个新的网元实体向 CR2发送上述内容分发请求消息, 本实施例对 此不进行限制。
步骤 202、 CR2选择 CSG2/CD2, 向所选择的 CSG2/CD2发送内容 分发请求消息, 上述内容分发请求消息中包含上述内容标识和上述 CSG1 的标识信息;
具体地, CR2可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、 请求是否合法等, 验证通过之后, 选择适当的 CSG2/CD2, 向所选择的 CSG2/CD2转发上述内容分发请求消息。 其中, CR2在转发上述内容分发请求消息之前, CR2可以对接收到的内容分发请 求消息进行修改。
步骤 203、 CSG2/CD2向 CR2返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CSG2/CD2的标识信息, 上述 CSG2/CD2的标识信息可以包括但不限于以下信息: IP地址、 域名。
步骤 204、 CR2向 CR1返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CDN2的标识信息、 上述 内容标识中的至少一项。
步骤 205、 CSG2/CD2根据获取的 CSG1的标识信息, 向 CSG1发送 请求内容消息, 上述请求内容消息中包含上述内容标识;
步骤 206、 CSG1根据上述内容标识, 向 CSG2/CD2返回与上述内容 标识对应的内容。
本实施例中, CSG2/CD2通过 CR2获取内容分发请求消息,根据该内 容分发请求消息中所包含的 CSG1的标识信息, 向该 CSG1请求与该内容 分发请求消息中所包含的内容标识对应的内容, 从而使得 CSG2/CD2能够 获取 CSG1 发送的与内容标识对应的内容, 实现了 CD2 能够从其他签约 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN2未签约 CP/SP的内容, 从 而得以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所选择的 CD 无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的正常 进行。
图 3为本发明实施例三提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN1 中的 CSG1预先向 CDN2中的 CSG2/CD2注入内容的场景。如图 3所示, 本实 施例的内容获取方法可以包括以下步骤:
步骤 301、 CR1向 CR2发送内容分发请求消息, 上述内容分发请求消 息中包含内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述内容分发请求消息中还可以包含 CDN1 的标识信息、 CP/SP的标识信息、 CSG1 的标识信息中的至少一项。 其中, 上述 CSG1 的标识信息可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述内 容分发请求消息中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML 元素或属性、 HTTP 头域中的一项或几项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的 标识信息 /192.168.1.1/www.sina.com.cdn 1.net/video/a.flv , 其 中 192.168.1.1 代表 CSG1 的标识信息, 此处以 IP 为例, 端口默认 80, www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv 代表内容标识,此处以文件名为例, video/a.flv表示了内容路径。如果 CDN1 不希望暴露 CP/SP 的标识信息, 则可以为 HTTP://CR2 的标识信息 /192.168.1.1/www.cdn1. net/video/a.flv。如果上述内容分发请求消息中同时 不包含 CSG1 的标识信息, 则可以为 HTTP://www.cdn1.net/video/ailV o 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限 制。
需要说明的是: 本步骤中, CR1 可以根据预先设置的策略和签约信息 (例如: 其中的策略可以是一旦 CP/SP向 CDN1 注入了内容, 则 CDN1 向与其签约的 CDN2发送内容分发请求消息), 向 CR2发送上述内容分发 请求消息, 或者还可以接收其他实体(例如: 网络管理实体) 的请求之后, 向 CR2发送上述内容分发请求消息, 本实施例对此不进行限制。
可选地, 本步骤不限于 CR1 向 CR2发送上述内容分发请求消息, 还 可以是一个新的网元实体(例如: 网络管理实体)向 CR2发送上述内容分 发请求消息, 本实施例对此不进行限制。
步骤 302、 CR2选择 CSG2/CD2, 向所选择的 CSG2/CD2发送内容 分发请求消息, 上述内容分发请求消息中包含上述内容标识;
具体地, CR2可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、 请求是否合法等, 验证通过之后, 选择适当的 CSG2/CD2, 向所选择的 CSG2/CD2转发上述内容分发请求消息。 其中, CR2在转发上述内容分发请求消息之前, CR2可以对接收到的内容分发请 求消息进行修改。
步骤 303、 CSG2/CD2向 CR2返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CSG2/CD2的标识信息, 上述 CSG2/CD2的标识信息可以包括但不限于以下信息: IP地址、 域名。
需要说明的是: 上述步骤 302与步骤 303是可选执行步骤。
步骤 304、 CR2向 CR1返回内容分发响应消息, 上述内容分发响应消 息中包含 CSG2/CD2的标识信息;
具体地, 其中的 CSG2/CD2的标识信息可以是 CR2从上述步骤 303 中的内容分发响应消息中获取的, 或者还可以是 CR2根据本地的配置信息 获取的。
可选地, 上述内容分发响应消息中可以包含 CDN2的标识信息、 上述 内容标识中的至少一项。 例如: 通过一个 URL携带上述信息: HTTP://CR1 的标识信息 /192.168.1.2/www.cdn2.net/video/a.flv,其中 192.168.1.2代表 CSG2/CD2的标识信息, 此处以 IP为例, www.cdn2.net代表 CDN2的标 识信息, a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内容路 径。
步骤 305、 CR1向 CSG1发送内容分发通知消息, 上述内容分发通知 消息中包含上述 CSG2/CD2的标识信息和上述内容标识;
可选地, 上述内容分发通知消息中可以包含 CDN2的标识信息。
步骤 306、 CSG1根据上述 CSG2/CD2的标识信息和上述内容标识, 向 CSG2/CD2返回与上述内容标识对应的内容;
步骤 307、 CSG1向 CR1返回内容分发响应消息。
本实施例中, CR2或者 CSG2/CD2获取内容分发请求消息, 向 CR1 返回 CSG2/CD2的标识信息, 从而使得 CSG2/CD2能够获取 CSG1发送 的与内容标识对应的内容, 实现了 CD2能够从其他签约 CDN ( CDN1 ) 中 的 CSG ( CSG1 )获取 CDN2未签约 CP/SP的内容, 从而得以向 TM交付 该内容, 解决了现有技术中 CDN中的 CR所选择的 CD无法向 TM交付所 请求的未签约 CP/SP的内容的问题, 保证了业务的正常进行。
图 4为本发明实施例四提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN2中的 CD2获取来自 TM的请求内容消息之后的 CD2緩存没有命中( Cache miss ) 所触发的获取内容的场景。 如图 4所示, 本实施例的内容获取方法可以包 括以下步骤:
步骤 401、 CD2向 CR2发送请求内容消息, 上述请求内容消息中包含 内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。
可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息、 CD2的标识信息中的至少一项。 其中, 上述 CD2的标识信息 可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述请求内容消息 中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通 过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项 或几项。 例如: 通过一个 URL 携带上述信息: HTTP://CR2 的标识信息 /192.168.1.2/www.sina.com.cdn1.net/video/a.flv, 其中 192.168.1.2 代表 CD2的标识信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net 代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以 文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
步骤 402、 CR2向 CR1发送请求内容消息, 上述请求内容消息中包含 上述内容标识;
具体地, CR2可以根据预先设置的策略和签约信息 (例如: 其中的策 略可以是 CR2根据获取的内容标识, 向与 CDN2签约的 CDN1的 CR1发 送请求内容消息) , 向 CR1发送请求内容消息。
具体地, CR2在转发上述请求内容消息之前, CR2可以对接收到的请 求内容消息进行修改, 例如: 增加 CDN2的标识信息。
需要说明的是: 本步骤是通过 CR2代理 CD2向 CR1请求来实现请求 内容的, 可替换地, 本步骤还可以通过 CR2重定向 CD2的请求到 CR1来 实现请求内容, 此处不再贅述。
步骤 403、 CR1向 CR2返回请求响应消息, 上述请求响应消息中包含 所选择的 CSG1的标识信息和上述内容标识;
其中, 上述 CSG1的标识信息可以包括但不限于以下信息: IP地址、 域名。
步骤 404、 CR2向 CD2返回请求响应消息, 上述请求响应消息中包含 上述 CSG1的标识信息和上述内容标识; 步骤 405、 CD2根据获取的 CSG1的标识信息, 向 CSG1发送请求内 容消息, 上述请求内容消息中包含上述内容标识;
步骤 406、 CSG1根据上述内容标识, 向 CD2返回与上述内容标识对 应的内容。
本实施例中, CD2获取来自 TM的请求内容消息, 如果 CD2緩存没有 命中, 可以通过 CR2向 CR1请求与该请求内容消息中所包含的内容标识 对应的内容, 进一步根据获取的 CR1 所返回的 CSG1 的标识信息, 向该 CSG1 请求与该请求内容消息中所包含的内容标识对应的内容, 从而使得 CD2能够获取 CSG1发送的与内容标识对应的内容, 实现了 CD2能够从 其他 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN2未签约 CP/SP的内 容, 从而得以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所选择 的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务 的正常进行。
图 5为本发明实施例五提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN2中的 CD2获取来自 TM的请求内容消息之后的 CD2緩存没有命中( Cache miss ) 所触发的获取内容的场景。 如图 5所示, 本实施例的内容获取方法可以包 括以下步骤:
步骤 501、 CD2向 CR2发送请求内容消息, 上述请求内容消息中包含 内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。
可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息、 CD2的标识信息中的至少一项。 其中, 上述 CD2的标识信息 可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述请求内容消息 中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通 过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项 或几项。 例如: 通过一个 URL 携带上述信息: HTTP://CR2 的标识信息 /192.168.1.2/www.sina.com.cdn1.net/video/a.flv, 其中 192.168.1.2 代表 CD2的标识信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net 代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以 文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
步骤 502、 CR2向 CR1发送请求内容消息, 上述请求内容消息中包含 CD2的标识信息和上述内容标识;
具体地, 其中的 CD2的标识信息可以是 CR2从上述步骤 501 中的请 求内容消息中获取的, 或者还可以是 CR2根据本地的配置信息获取的。
具体地, CR2在转发上述请求内容消息之前, CR2可以对接收到的请 求内容消息进行修改, 例如: 增加 CDN2的标识信息。
需要说明的是: 本步骤为 CR2代理 CD2向 CR1请求来实现请求内容 的, 可替换地, 本步骤还可以通过 CR2重定向 CD2的请求到 CR1来实现 请求内容, 此处不再贅述。
步骤 503、 CR1向 CSG1发送内容分发通知消息, 上述内容分发通知 消息中包含上述 CD2的标识信息和上述内容标识;
可选地, 上述内容分发通知消息中可以包含 CDN2的标识信息。
步骤 504、 CSG1根据上述 CD2的标识信息和上述内容标识, 向 CD2 返回与上述内容标识对应的内容。
本实施例中, CD2获取来自 TM的请求内容消息, 如果 CD2緩存没有 命中, 可以通过 CR2向 CR1请求与该请求内容消息中所包含的内容标识 对应的内容, 同时向 CR1发送 CD2的标识信息, 从而使得 CD2能够获取 CSG1 发送的与内容标识对应的内容, 实现了 CD2 能够从其他 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN2未签约 CP/SP的内容, 从而得 以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所选择的 CD无法 向 TM交付所请求的未签约 CP/SP的内容的问题,保证了业务的正常进行。 可选地, 本发明实施例还可以假设 CDN1覆盖区域 1 , CDN2覆盖区 域 2, CDN3覆盖区域 3, CP/SP希望在区域 1、 区域 2和区域 3为 TM提 供服务, 但 CP/SP只与 CDN1签约 (即 CSG1能够从 CP/SP的内容源获 取内容), CDN1与 CDN2签约, CDN2与 CDN3签约。 下面将通过本发明 实施例六至本发明实施例九进一步详细说明上述本发明实施例一的技术方 案。
图 6为本发明实施例六提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN1 中的 CSG1预先向 CDN3中的 CSG3/CD3注入内容的场景。如图 6所示, 本实 施例的内容获取方法可以包括以下步骤:
步骤 601、 CR1向 CR2发送内容分发请求消息, 上述内容分发请求消 息中包含内容标识、 CSG1的标识信息和分发目的信息;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名; 上 述 CSG1的标识信息可以包括但不限于以下信息: IP地址、 域名; 上述分 发目的信息可以是 CDN3的标识信息, 还可以是区域 3的标识信息, 如区 域 3进一步划分为多个子域, 还可以携带区域 3的子域标识信息。 具体地, 上述内容分发请求消息中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP 头域中的一项或几项。 例如: 通过一个 URL 携带上述信息: HTTP:〃 CR2 的标识信息 /192.168.1.1/分发目的信息 /video/a.flv , 其中 192.168.1.1代表 CSG1的标识信息, 此处以 IP地址为例, 端口默认 80, a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内容路径。
可选地, 上述内容分发请求消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的 标 识 信 息 /192.168.1.1/ 分 发 目 的 信 息 /www.sina.com.cdnl .net/video/a.flv, 其中 192.168.1.1代表 CSG1的标识 信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net代表 CDN1 的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以文件名为例, video/a.flv表示了内容路径。 如果 CDN1不希望暴露 CP/SP的标识信息, 则可以为 HTTP://CR2 的标识信息 /192.168.1.1/分发 目 的信息 /www.cdn1.net/video/a.flv。上述以 HTTP为例,还可以釆用 FTP等其他协 议, 本实施例对此不进行限制。
需要说明的是: 本步骤中, CR1可以根据预先设置的策略和签约信息, 向 CR2发送上述内容分发请求消息,或者还可以接收其他实体的请求之后, 向 CR2发送上述内容分发请求消息, 本实施例对此不进行限制。
可选地, 本步骤不限于 CR1 向 CR2发送上述内容分发请求消息, 还 可以是一个新的网元实体向 CR2发送上述内容分发请求消息, 本实施例对 此不进行限制。
步骤 602、 CR2根据获取的上述分发目的信息, 选择 CR3, 向与所选 择的 CR3发送内容分发请求消息, 上述内容分发请求消息中包含上述内容 标识和上述 CSG1的标识信息;
可选地, 上述内容分发请求消息中可以包括分发目的信息, 上述分发 目的信息可以是 CDN3的标识信息, 还可以是区域 3的标识信息, 如区域 3进一步划分为多个子域, 还可以携带区域 3的子域标识信息。
具体地, CR2 可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、请求是否合法等,验证通过之后,根据分发目的信息, 选择适当的 CR3, 向所选择的 CR3转发上述内容分发请求消息。 其中, CR2在转发上述内容分发请求消息之前, CR2可以对接收到的内容分发请 求消息进行修改。
可选地, CR2 可以创建分发目的信息与 CP/SP的标识信息和 /或内容 标识的映射关系, 以供后续终端请求的路由。 步骤 603、 CR3选择 CSG3/CD3, 向所选择的 CSG3/CD3发送内容 分发请求消息, 上述内容分发请求消息中包含上述内容标识和上述 CSG1 的标识信息;
具体地, CR3可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、 请求是否合法等, 验证通过之后, 选择适当的 CSG3/CD3, 向所选择的 CSG3/CD3转发上述内容分发请求消息。 其中, CR3在转发上述内容分发请求消息之前, CR3可以对接收到的内容分发请 求消息进行修改。
步骤 604、 CSG3/CD3向 CR3返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CSG3/CD3的标识信息, 上述 CSG3/CD3的标识信息可以包括但不限于以下信息: IP地址、 域名。
步骤 605、 CR3向 CR2返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CDN3的标识信息、 上述 内容标识中的至少一项。
步骤 606、 CR2向 CR1返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CDN3的标识信息、 上述 内容标识中的至少一项。
步骤 607、 CSG3/CD3根据获取的 CSG1的标识信息, 向 CSG1发送 请求内容消息, 上述请求内容消息中包含上述内容标识;
步骤 608、 CSG1根据上述内容标识, 向 CSG3/CD3返回与上述内容 标识对应的内容。
本实施例中, CSG3/CD3通过 CR2和 CR3获取内容分发请求消息, 根据该内容分发请求消息中所包含的 CSG1的标识信息, 向该 CSG1请求 与该内容分发请求消息中所包含的内容标识对应的内容, 从而使得 CSG3/CD3能够获取 CSG1 发送的与内容标识对应的内容, 实现了 CD3 能够从其他未签约 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN3未签约 CP/SP的内容,从而得以向 TM交付该内容,解决了现有技术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的正常进行。
图 7为本发明实施例七提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN1 中的 CSG1预先向 CDN3中的 CSG3/CD3注入内容的场景。如图 7所示, 本实 施例的内容获取方法可以包括以下步骤:
步骤 701、 CR1向 CR2发送内容分发请求消息, 上述内容分发请求消 息中包含内容标识和分发目的信息;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名; 上 述分发目的信息可以是 CDN3的标识信息, 还可以是区域 3的标识信息, 如区域 3进一步划分为多个子域, 还可以携带区域 3的子域标识信息。
可选地, 上述内容分发请求消息中还可以包含 CDN1 的标识信息、 CP/SP的标识信息、 CSG1 的标识信息中的至少一项。 其中, 上述 CSG1 的标识信息可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述内 容分发请求消息中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML 元素或属性、 HTTP 头域中的一项或几项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的 标 识 信 息 /192.168.1.1/ 分 发 目 的 信 息 /www.sina.com.cdnl .net/video/a.flv, 其中 192.168.1.1代表 CSG1的标识 信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net代表 CDN1 的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以文件名为例, video/a.flv表示了内容路径。 如果 CDN1不希望暴露 CP/SP的标识信息, 则可以 为 HTTP://CR2 的标识信息 /192.168.1.1/分发 目 的信息 /www dnl .net/video/ailv。 如果上述内容分发请求消息中同时不包含 CSG1 的标识信息, 则可以为 HTTP://CR2 的标识信息 /分发目的信息 /www.cdnl .net/video/ailV o上述以 HTTP为例,还可以釆用 FTP等其他协 议, 本实施例对此不进行限制。
需要说明的是: 本步骤中, CR1可以根据预先设置的策略和签约信息, 向 CR2发送上述内容分发请求消息,或者还可以接收其他实体的请求之后, 向 CR2发送上述内容分发请求消息, 本实施例对此不进行限制。
可选地, 本步骤不限于 CR1 向 CR2发送上述内容分发请求消息, 还 可以是一个新的网元实体向 CR2发送上述内容分发请求消息, 本实施例对 此不进行限制。
步骤 702、 CR2根据获取的上述分发目的信息, 选择 CR3, 向与所选 择的 CR3发送内容分发请求消息, 上述内容分发请求消息中包含上述内容 标识;
可选地, 上述内容分发请求消息中还可以包含分发目的信息、 上述 CSG1 的标识信息中的至少一项, 上述分发目的信息可以是 CDN3的标识 信息, 还可以是区域 3的标识信息, 如区域 3进一步划分为多个子域, 还 可以携带区域 3的子域标识信息。
具体地, CR2可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、请求是否合法等,验证通过之后,根据分发目的信息, 选择适当的 CR3, 向所选择的 CR3转发上述内容分发请求消息。 其中, CR2在转发上述内容分发请求消息之前, CR2可以对接收到的内容分发请 求消息进行修改。
可选地, CR2可以创建分发目的信息与 CP/SP的标识信息和 /或内容 标识的映射关系, 以供后续终端请求的路由。
步骤 703、 CR3选择 CSG3/CD3, 向所选择的 CSG3/CD3发送内容 分发请求消息, 上述内容分发请求消息中包含上述内容标识;
具体地, CR3可以对接收到的内容分发请求消息进行验证, 例如: 是 否来自签约的 CDN、 请求是否合法等, 验证通过之后, 选择适当的 CSG3/CD3, 向所选择的 CSG3/CD3转发上述内容分发请求消息。 其中,
CR3在转发上述内容分发请求消息之前, CR3可以对接收到的内容分发请 求消息进行修改。
步骤 704、 CSG3/CD3向 CR3返回内容分发响应消息;
可选地, 上述内容分发响应消息中可以包含 CSG3/CD3的标识信息, 上述 CSG2/CD2的标识信息可以包括但不限于以下信息: IP地址、 域名。
需要说明的是: 上述步骤 703与步骤 704是可选执行步骤。
步骤 705、 CR3向 CR2返回内容分发响应消息, 上述内容分发响应消 息中包含 CSG3/CD3的标识信息;
具体地, 其中的 CSG3/CD3的标识信息可以是 CR3从上述步骤 704 中的内容分发响应消息中获取的, 或者还可以是 CR3根据本地的配置信息 获取的。
可选地, 上述内容分发响应消息中可以包含 CDN3的标识信息、 上述 内容标识中的至少一项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的标识信息 /192.168.1.3/www.cdn3.net/video/a.flv,其中 192.168.1.3代表 CSG3/CD3的标识信息, 此处以 IP为例, www.cdn3.net代表 CDN3的标 识信息, a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内容路 径。
步骤 706、 CR2向 CR1返回内容分发响应消息, 上述内容分发响应消 息中包含 CSG3/CD3的标识信息;
可选地, 上述内容分发响应消息中可以包含 CDN3的标识信息、 上述 内容标识中的至少一项。
步骤 707、 CR1向 CSG1发送内容分发通知消息, 上述内容分发通知 消息中包含上述 CSG3/CD3的标识信息和上述内容标识;
可选地, 上述内容分发通知消息中可以包含 CDN3的标识信息。
步骤 708、 CSG1根据上述 CSG3/CD3的标识信息和上述内容标识, 向 CSG3/CD3发送与上述内容标识对应的内容;
步骤 709、 CSG1向 CR1返回内容分发响应消息。
本实施例中, CSG3/CD3通过 CR2和 CR3获取内容分发请求消息, 向 CR1返回 CSG3/CD3的标识信息,从而使得 CSG3/CD3能够获取 CSG1 发送的与内容标识对应的内容, 实现了 CD3 能够从其他未签约 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN3未签约 CP/SP的内容, 从而得 以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所选择的 CD无法 向 TM交付所请求的未签约 CP/SP的内容的问题,保证了业务的正常进行。
图 8为本发明实施例八提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN3中的 CD3获取来自 TM的请求内容消息之后的 CD3緩存没有命中( Cache miss ) 所触发的获取内容的场景。 如图 8所示, 本实施例的内容获取方法可以包 括以下步骤:
步骤 801、 CD3向 CR3发送请求内容消息, 上述请求内容消息中包含 内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。
可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息、 CD3的标识信息中的至少一项。 其中, 上述 CD3的标识信息 可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述请求内容消息 中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通 过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项 或几项。 例如: 通过一个 URL 携带上述信息: HTTP://CR3 的标识信息 /192.168.1.3/www.sina.com.cdn1.net/video/a.flv, 其中 192.168.1.3代表 CD3的标识信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net 代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以 文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
步骤 802、 CR3向 CR2发送请求内容消息, 上述请求内容消息中包含 上述内容标识;
具体地, CR3在转发上述请求内容消息之前, CR3可以对接收到的请 求内容消息进行修改, 例如: 增加 CDN3的标识信息。
步骤 803、 CR2向 CR1发送上述请求内容消息;
具体地, CR2可以根据获取的上述内容标识、 CP/SP的标识信息中的 至少一项, 判断 CDN1 中存在所请求的内容, 向 CR1发送上述请求内容消 息。
可选地, CR2在转发上述请求内容消息之前, CR2可以对接收到的请 求内容消息进行修改, 例如: 增加 CDN2的标识信息。
需要说明的是: 本步骤是通过 CR3、 CR2代理 CD3向 CR1请求来实 现请求内容的, 可替换地, 本步骤还可以通过 CR3、 CR2重定向 CD3的 请求到 CR1来实现请求内容, 此处不再贅述。
步骤 804、 CR1向 CR2返回请求响应消息, 上述请求响应消息中包含 所选择的 CSG1的标识信息和上述内容标识;
其中, 上述 CSG1的标识信息可以包括但不限于以下信息: IP地址、 域名。
步骤 805、 CR2向 CR3返回上述请求响应消息;
步骤 806、 CR3向 CD3返回请求响应消息, 上述请求响应消息中包含 上述 CSG1的标识信息和上述内容标识;
步骤 807、 CD3根据获取的 CSG1的标识信息, 向 CSG1发送请求内 容消息, 上述请求内容消息中包含上述内容标识;
步骤 808、 CSG1根据上述内容标识, 向 CD3返回与上述内容标识对 应的内容。
本实施例中, CD3获取来自 TM的请求内容消息, 如果緩存没有命中, 可以通过 CR3、 CR2向 CR1请求与该请求内容消息中所包含的内容标识 对应的内容, 进一步根据获取的 CR1 所返回的 CSG1 的标识信息, 向该 CSG1 请求与该请求内容消息中所包含的内容标识对应的内容, 从而使得 CD3能够获取 CSG1发送的与内容标识对应的内容, 实现了 CD3能够从 其他未签约 CDN ( CDN1 )中的 CSG ( CSG1 )获取 CDN3未签约 CP/SP 的内容, 从而得以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所 选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了 业务的正常进行。
图 9为本发明实施例九提供的内容获取方法的流程示意图, 本实施例 为上述本发明实施例一的另一个具体实施例, 本实施例适用于 CDN3中的 CD3获取来自 TM的请求内容消息之后的緩存没有命中 (Cache miss )所 触发的获取内容的场景。 如图 9所示, 本实施例的内容获取方法可以包括 以下步骤:
步骤 901、 CD3向 CR3发送请求内容消息, 上述请求内容消息中包含 内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息、 CD3的标识信息中的至少一项。 其中, 上述 CD3的标识信息 可以包括但不限于以下信息: IP地址、 域名。 具体地, 上述请求内容消息 中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以通 过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项 或几项。 例如: 通过一个 URL 携带上述信息: HTTP://CR3 的标识信息 /192.168.1.3/www.sina.com.cdn1.net/video/a.flv, 其中 192.168.1.3代表 CD3的标识信息, 此处以 IP为例, 端口默认 80, www.sina.com.cdn1.net 代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以 文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
步骤 902、 CR3向 CR2发送请求内容消息, 上述请求内容消息中包含 CD3的标识信息和上述内容标识;
具体地, 其中的 CD3的标识信息可以是 CR3从上述步骤 901 中的请 求内容消息中获取的, 或者还可以是 CR3根据本地的配置信息获取的。
具体地, CR3在转发上述请求内容消息之前, CR3可以对接收到的请 求内容消息进行修改, 例如: 增加 CDN3的标识信息。
步骤 903、 CR2向 CR1发送上述请求内容消息;
具体地, CR2可以根据获取的上述内容标识、 CP/SP的标识信息中的 至少一项, 判断 CDN1 中存在所请求的内容, 向 CR1发送上述请求内容消 息。
需要说明的是: 本步骤为 CR3、 CR2代理 CD3向 CR1请求来实现请 求内容的, 可替换地, 本步骤还可以通过 CR3、 CR2重定向 CD3的请求 到 CR1来实现请求内容, 此处不再贅述。
步骤 904、 CR1向 CSG1发送内容分发通知消息, 上述内容分发通知 消息中包含上述 CD3的标识信息和上述内容标识;
可选地, 上述内容分发通知消息中可以包含 CDN3的标识信息。
步骤 905、 CSG1根据上述 CD3的标识信息和上述内容标识, 向 CD3 返回与上述内容标识对应的内容。
本实施例中, CD3获取来自 TM的请求内容消息, 如果緩存没有命中, 可以通过 CR3、 CR2向 CR1请求与该请求内容消息中所包含的内容标识 对应的内容, 同时向 CR1发送 CD3的标识信息, 从而使得 CD3能够获取 CSG1发送的与内容标识对应的内容,实现了 CD3能够从其他未签约 CDN ( CDN1 ) 中的 CSG ( CSG1 )获取 CDN3未签约 CP/SP的内容, 从而得 以向 TM交付该内容, 解决了现有技术中 CDN中的 CR所选择的 CD无法 向 TM交付所请求的未签约 CP/SP的内容的问题,保证了业务的正常进行。 进一步地, 在部署本发明实施例所涉及的网络架构时, CDN 中的 CD 可以进一步釆用分层部署, 例如: 一般在城域网部署多个 CD域, 其中每 个 CD域内可以有多个 CD, —个或者多个从交付控制实体(即子 CR中的 交付控制实体), 同时还提供一个主 CR交付控制实体 (即全局 CR中的交 付控制实体),对多个 CD域进行统一管理与控制。类似地, CDN中的 CSG 也可以釆用分层部署, 此处不再贅述。 釆用分层部署之后, 上述本发明实 施例二至本发明实施例九中所涉及的第二 CDN中的 CR ( CR2或 CR3 ) , 均可以包括第二 CDN中的主 CR和该主 CR所选择的第二 CDN中的子 CR, 具体可以是主 CR先接收请求或响应,然后选择子 CR并转发给子 CR进行 处理。类似地,上述本发明实施例六至本发明实施例九中所涉及的第三 CDN 中的 CR ( CR2 )可以包括第三 CDN中的主 CR和该主 CR所选择的第三 CDN 中的子 CR, 具体可以是主 CR先接收请求或响应, 然后选择子 CR 并转发给子 CR进行处理。
图 10为本发明实施例十提供的内容交付方法的流程示意图, 如图 10 步骤 1001、 第一 CDN中的 CR获取来自 TM的内容请求, 用以请求 与内容标识对应的内容,上述第一 CDN与 CP/SP签约 ,以使上述第一 CDN 从上述 CP/SP获取所述内容;
步骤 1002、 上述第一 CDN中的 CR根据交付策略, 向上述 TM发送 第二 CDN中的 CR或第二 CDN中的 CD的标识信息, 以使上述 TM向第 二 CDN中的 CD请求与上述内容标识对应的内容。
其中, 第二 CDN可以与第一 CDN签约, 第一 CDN中的 CR可以直 接向请求内容的 TM返回第二 CDN中的 CR或第二 CDN中的 CD的标识 信息 (详细描述可以参见下述本发明实施例十一、 本发明实施例十二) ; 或者,第一 CDN中的 CR还可以通过第三 CDN中的 CR向请求内容的 TM 返回第二 CDN中的 CR或第二 CDN中的 CD的标识信息 (详细描述可以 参见下述本发明实施例十三、 本发明实施例十四) 。
其中, 第一 CDN中的 CR可以根据设置的交付策略, 确定该请求内容 消息需要由第二 CDN提供服务。 例如: 基于 TM的位置、 时间、 成本等因 素的策略, 需要由第二 CDN提供服务。
本实施例中, 第一 CDN中的 CR获取到来自 TM的内容请求之后, 根 据设置的交付策略,向该 TM发送第二 CDN中的 CR或第二 CDN中的 CD 的标识信息, 从而使得该 TM能够向第二 CDN中的 CD请求与上述内容标 识对应的内容, 实现了 TM可以获取其他 CDN中的 CD所交付的 CP/SP 的内容, 保证了业务的正常进行。
本发明实施例可以假设 CDN1覆盖区域 1 , CDN2覆盖区域 2, CP/SP 希望在区域 1和区域 2为 TM提供服务, 但 CP/SP只与 CDN1签约 (即 CSG1能够从 CP/SP的内容源获取内容), CDN1与 CDN2签约。 下面将 通过本发明实施例十一和本发明实施例十二进一步详细说明上述本发明实 施例十的技术方案。
图 11为本发明实施例十一提供的内容交付方法的流程示意图, 本实施 例为上述本发明实施例十的一个具体实施例。 如图 11所示, 本实施例的内 容交付方法可以包括以下步骤:
步骤 1101、 TM向域名服务器(Domain Name Server, 简称 DNS ) 1 发送 DNS请求消息;
其中, DNS1服务器作为该 CP/SP指定域名的授权 DNS。具体地, TM 请求业务时触发 DNS解析过程, DNS解析过程可以参见现有技术中的相 关内容, 此处不再贅述。 这里 CDN1的 DNS服务器作为该 CP指定域名的 授权 DNS服务器。
步骤 1102、 DNS1向 TM返回 DNS响应消息, 上述 DNS响应消息中 包含 CR1的标识信息;
需要说明的是: 上述步骤 1 101与步骤 1 102是可选执行步骤。 步骤 1103、 TM根据获取的 CR1 的标识信息, 向 CR1发送请求内容 消息, 上述请求内容消息中包含内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP:〃 CR1 的 标 识 信 息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1104、 CR1根据设置的交付策略,确定上述请求内容消息由 CDN2 处理, 向 TM返回请求响应消息, 上述请求响应消息中包含 CR2的标识信 息和上述内容标识;
具体地, 本步骤中, CR1 可以根据设置的交付策略, 确定该请求内容 消息需要由 CDN2提供服务。 例如: 基于 TM的位置、 时间、 成本等因素 的策略, 需要由 CDN2提供服务。 可选地, 上述请求响应消息中还可以包含 CDN1的标识信息、 CR1的 标识信息、 CP/SP的标识信息中的至少一项。 其中, 上述 CR1的标识信息 可以包括但不限于以下信息: IP地址、 域名, 以供当緩存没有命中时, 向 CR1请求 CSG1的标识信息。 具体地, 上述请求内容消息中包含的信息可 以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携 带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的标识信息 /CR1 的标识信息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
需要说明的是: 本步骤为通过 CR1 重定向 TM的请求到 CR2来实现 请求内容。
步骤 1105、 TM根据获取的 CR2的标识信息, 向 CR2发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1 106、 CR2选择 CD2, 向 TM返回请求响应消息, 上述请求响 应消息中包含所选择的 CD2的标识信息和上述内容标识;
其中, 上述 CD2的标识信息可以包括但不限于以下信息: IP地址、 域 名。
可选地, 上述请求响应消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求响应消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP://192.168.1.2/www.sina.com.cdn1.net/video/a.flv,其中 192.168.1.2 代表 CD2 的标识信息, 此处以 IP 为例 , 端 口 默认 80 , www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv 代表内容标识, 此处以文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
具体地,本步骤中的 CR2可以根据 CD的负载状态和 /或设置的交付策 略(例如: 基于 TM的位置、 CP/SP的内容与 CD的对应关系等因素的策 略) , 选择合适的 CD2。
步骤 1107、 TM根据获取的 CD2的标识信息, 向 CD2发送请求内容 消息, 上述请求内容消息中包含上述内容标识; 步骤 1108、 CD2根据上述内容标识, 向 TM返回与上述内容标识对应 的内容。
具体地, 本步骤中的 CD2可以预先通过上述本发明实施例二和本发明 实施例三获取上述 TM 所请求的内容, 具体描述可以参见上述本发明实施 例二和本发明实施例三中的相关内容, 此处不再贅述; 或者还可以通过上 述本发明实施例四和本发明实施例五获取上述 TM 所请求的内容, 具体描 述可以参见上述本发明实施例四和本发明实施例五中的相关内容, 此处不 再赘述。
本实施例中, CR1获取到来自 TM的内容请求之后, 根据设置的交付 策略, 向该 TM发送 CR2的标识信息, 从而使得该 TM能够通过 CR2向 CD2 请求与上述内容标识对应的内容, 实现了 TM 可以获取其他 CDN ( CDN2 ) 中的 CD ( CD2 ) 所交付的未签约 CP/SP的内容, 解决了现有 技术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP 的内容的问题, 保证了业务的正常进行, 保证了业务的正常进行。
图 12为本发明实施例十二提供的内容交付方法的流程示意图,本实施 例为上述本发明实施例十的另一个具体实施例。 如图 12所示, 本实施例的 内容交付方法可以包括以下步骤:
步骤 1201、 TM向 DNS1发送 DNS请求消息;
其中, DNS1服务器作为该 CP/SP指定域名的授权 DNS。具体地, TM 请求业务时触发 DNS解析过程, DNS解析过程可以参见现有技术中的相 关内容, 此处不再贅述。 这里 CDN1的 DNS服务器作为该 CP指定域名的 授权 DNS服务器。
步骤 1202、 DNS1向 TM返回 DNS响应消息, 上述 DNS响应消息中 包含 CR1的标识信息;
需要说明的是: 上述步骤 1201与步骤 1202是可选执行步骤。
步骤 1203、 TM根据获取的 CR1 的标识信息, 向 CR1发送请求内容 消息, 上述请求内容消息中包含内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP:〃 CR1 的 标 识 信 息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1204、 CR1根据设置的交付策略,确定上述请求内容消息由 CDN2 处理, 向 CR2发送请求内容消息, 上述请求内容消息中包含内容标识; 具体地, 本步骤中, CR1 可以根据设置的交付策略, 确定该请求内容 消息需要由 CDN2提供服务。 例如: 基于 TM的位置、 时间、 成本等因素 的策略, 需要由 CDN2提供服务。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP:〃 CR2 的 标 识 信 息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1205、 CR2选择 CD2, 向 CR1返回请求响应消息, 上述请求响 应消息中包含所选择的 CD2的标识信息和上述内容标识;
其中, 上述 CD2的标识信息可以包括但不限于以下信息: IP地址、 域 名。
可选地, 上述请求响应消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求响应消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP://192.168.1.2/www.sina.com.cdn1.net/video/a.flv,其中 192.168.1.2 代表 CD2 的标识信息, 此处以 IP 为例 , 端 口 默认 80 , www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv 代表内容标识, 此处以文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
具体地,本步骤中的 CR2可以根据 CD的负载状态和 /或设置的交付策 略(例如: 基于 TM的位置、 CP/SP的内容与 CD的对应关系等因素的策 略) , 选择合适的 CD2。
步骤 1206、 CR1向 TM返回请求响应消息, 上述请求响应消息中包含 上述 CD2的标识信息和上述内容标识;
可选地, 上述请求响应消息中还可以包含 CDN1的标识信息、 CR1的 标识信息、 CP/SP的标识信息中的至少一项。 其中, 上述 CR1的标识信息 可以包括但不限于以下信息: IP地址、 域名, 以供当緩存没有命中时, 向 CR1请求 CSG1的标识信息。 具体地, 上述请求响应消息中包含的信息可 以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携 带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过一个 URL 携带上述信息: HTTP://192.168.1.2/CR1 的标识信息 /www.sina.com.cdnl .net/video/a.flv, 其中, 192.168.1.2代表 CD2的标识 信息, 此处以 IP为例, 端口默认 80; www.sina.com.cdn1.net代表 CDN1 的标识信息和 CP/SP的标识信息, a.flv代表内容标识,此处以文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他 协议, 本实施例对此不进行限制。
步骤 1207、 TM根据获取的 CD2的标识信息, 向 CD2发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1208、 CD2根据上述内容标识, 向 TM返回与上述内容标识对应 的内容。
具体地, 本步骤中的 CD2可以预先通过上述本发明实施例二和本发明 实施例三获取上述 TM 所请求的内容, 具体描述可以参见上述本发明实施 例二和本发明实施例三中的相关内容, 此处不再贅述; 或者还可以通过上 述本发明实施例四和本发明实施例五获取上述 TM 所请求的内容, 具体描 述可以参见上述本发明实施例四和本发明实施例五中的相关内容, 此处不 再赘述。
本实施例中, CR1获取到来自 TM的内容请求之后, 根据设置的交付 策略, 通过 CR2向该 TM发送 CD2的标识信息, 从而使得该 TM能够向 CD2 请求与上述内容标识对应的内容, 实现了 TM 可以获取其他 CDN ( CDN2 ) 中的 CD ( CD2 ) 所交付的未签约 CP/SP的内容, 解决了现有 技术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP 的内容的问题, 保证了业务的正常进行, 保证了业务的正常进行。
进一步地, 上述本发明实施例十一和本发明实施例十二还可以进一步 包括下述步骤:
CD2向 CR1和 /或 CR2上报内容分发的信息和 /或内容交付的信息,以 及 CR2向 CR1上报内容分发的信息和 /或内容交付的信息。 具体实现可以 是 CD2向 CDN1和 /或 CDN2的网络运营中心( Network Operation Center, 简称 NoC )上报, 以及 CR2向 CDN1的 NoC, 上报此处不再贅述 可选地, 本发明实施例还可以假设 CDN1覆盖区域 1 , CDN2覆盖区 域 2, CDN3覆盖区域 3, CP/SP希望在区域 1、 区域 2和区域 3为 TM提 供服务, 但 CP/SP只与 CDN1签约 (即 CSG1能够从 CP/SP的内容源获 取内容), CDN1与 CDN2签约, CDN2与 CDN3签约。 下面将通过本发明 实施例十三和本发明实施例十四进一步详细说明上述本发明实施例十的技 术方案。
图 13为本发明实施例十三提供的内容交付方法的流程示意图,本实施 例为上述本发明实施例十的另一个具体实施例。 如图 13所示, 本实施例的 内容交付方法可以包括以下步骤:
步骤 1301、 TM向 DNS1发送 DNS请求消息;
其中, DNS1服务器作为该 CP/SP指定域名的授权 DNS。具体地, TM 请求业务时触发 DNS解析过程, DNS解析过程可以参见现有技术中的相 关内容, 此处不再贅述。 这里 CDN1的 DNS服务器作为该 CP指定域名的 授权 DNS服务器。
步骤 1302、 DNS1向 TM返回 DNS响应消息, 上述 DNS响应消息中 包含 CR1的标识信息;
需要说明的是: 上述步骤 1301与步骤 1302是可选执行步骤。
步骤 1303、 TM根据获取的 CR1 的标识信息, 向 CR1发送请求内容 消息, 上述请求内容消息中包含内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP:〃 CR1 的 标 识 信 息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1304、 CR1根据预先设置的交付策略, 确定上述请求内容消息由 CDN2处理, 向 TM返回请求响应消息, 上述请求响应消息中包含 CR2的 标识信息和上述内容标识;
具体地, 本步骤中, CR1 可以根据设置的交付策略, 确定该请求内容 消息需要由 CDN2提供服务, 例如: 基于 TM的位置、 时间、 成本等因素 的策略, 需要由 CDN2提供服务; 或者 CR1可以确定该请求内容消息所请 求的内容不由 CDN1提供, 则向 CDN2的 CR2转发该请求内容消息。 可选地, 上述请求响应消息中还可以包含 CDN1的标识信息、 CR1的 标识信息、 CP/SP的标识信息中的至少一项。 其中, 上述 CR1的标识信息 可以包括但不限于以下信息: IP地址、 域名, 以供当緩存没有命中时, 向 CR1请求 CSG1的标识信息。 具体地, 上述请求内容消息中包含的信息可 以通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携 带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过一个 URL携带上述信息: HTTP://CR2 的标识信息 /CR1 的标识信息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdn1.net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
需要说明的是: 本步骤为通过 CR1 重定向 TM的请求到 CR2来实现 请求内容。
步骤 1305、 TM根据获取的 CR2的标识信息, 向 CR2发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1306、 CR2确定上述请求内容消息由 CDN3处理,向 TM返回请 求响应消息, 上述请求响应消息中包含 CR3的标识信息和上述内容标识; 具体地, CR2可以根据 TM的位置、 CP/SP的标识信息、 内容标识中 的至少一项, 确定上述请求内容消息由 CDN3处理。 具体如: 某特定区域 的用户由某个特定的 CDN处理; 或者某个特定 CP/SP和 /或某些特定内容 由某个特定的 CDN处理。
步骤 1307、 TM根据获取的 CR3的标识信息, 向 CR3发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1308、 CR3选择 CD3, 向 TM返回请求响应消息, 上述请求响 应消息中包含所选择的 CD3的标识信息和上述内容标识;
其中, 上述 CD3的标识信息可以包括但不限于以下信息: IP地址、 域 名。
可选地, 上述请求响应消息中还可以包含 CDN1 的标识信息、 CDN2 的标识信息、 CP/SP的标识信息中的至少一项。 具体地, 上述请求响应消 息中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可以 通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一 项 或 几 项 。 例 如 : 通 过 一 个 URL 携 带 上 述信 息 : HTTP://192.168.1.3/www.sina.com.cdn1.net.cdn2.net/video/a.flv , 其中 192.168.1.3 代表 CD3 的标识信息, 此处以 IP 为例, 端口默认 80 , www.sina.com.cdn1. net.cdn2.net代表 CDN1、CDN2的标识信息和 CP/SP 的标识信息, a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内 容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此 不进行限制。
具体地,本步骤中的 CR3可以根据 CD的负载状态和 /或设置的交付策 略(例如: 基于 TM的位置、 CP/SP的内容与 CD的对应关系等因素的策 略) , 选择合适的 CD3。
步骤 1309、 TM根据获取的 CD3的标识信息, 向 CD3发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1310、 CD3根据上述内容标识, 向 CD3返回与上述内容标识对 应的内容。
具体地, 本步骤中的 CD3可以预先通过上述本发明实施例二和本发明 实施例三获取上述 ΤΜ 所请求的内容, 具体描述可以参见上述本发明实施 例二和本发明实施例三中的相关内容, 此处不再贅述; 或者还可以通过上 述本发明实施例四和本发明实施例五获取上述 ΤΜ 所请求的内容, 具体描 述可以参见上述本发明实施例四和本发明实施例五中的相关内容, 此处不 再赘述。
本实施例中, CR1获取到来自 ΤΜ的内容请求之后, 根据设置的交付 策略, 向该 ΤΜ发送 CR2的标识信息, CR2获取到来自 ΤΜ的内容请求之 后,根据设置的交付策略,向该 ΤΜ发送 CR3的标识信息,从而使得该 ΤΜ 能够通过 CR3向 CD3请求与上述内容标识对应的内容, 实现了 ΤΜ可以 获取其他 CDN ( CDN3 )中的 CD ( CD3 )所交付的未签约 CP/SP的内容, 解决了现有技术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未 签约 CP/SP的内容的问题, 保证了业务的正常进行, 保证了业务的正常进 行。
图 14为本发明实施例十四提供的内容交付方法的流程示意图,本实施 例为上述本发明实施例十的另一个具体实施例。 如图 14所示, 本实施例的 内容交付方法可以包括以下步骤:
步骤 1401、 TM向 DNS1发送 DNS请求消息;
其中, DNS1服务器作为该 CP/SP指定域名的授权 DNS。具体地, TM 请求业务时触发 DNS解析过程, DNS解析过程可以参见现有技术中的相 关内容, 此处不再贅述。 这里 CDN1的 DNS服务器作为该 CP指定域名的 授权 DNS服务器。
步骤 1402、 DNS1向 TM返回 DNS响应消息, 上述 DNS响应消息中 包含 CR1的标识信息;
需要说明的是: 上述步骤 1401与步骤 1402是可选执行步骤。
步骤 1403、 TM根据获取的 CR1 的标识信息, 向 CR1发送请求内容 消息, 上述请求内容消息中包含内容标识;
其中, 上述内容标识可以包括但不限于以下标识: 文件名、 域名。 可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP:〃 CR1 的 标 识 信 息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1404、 CR1根据设置的交付策略,确定上述请求内容消息由 CDN2 处理, 向 CR2发送请求内容消息, 上述请求内容消息中包含内容标识; 具体地, 本步骤中, CR1 可以根据设置的交付策略, 确定该请求内容 消息需要由 CDN2提供服务。 例如: 基于 TM的位置、 时间、 成本等因素 的策略, 需要由 CDN2提供服务; 或者 CR1可以确定该请求内容消息所请 求的内容不由 CDN1提供, 则向 CDN2的 CR2转发该请求内容消息。
可选地, 上述请求内容消息中还可以包含 CDN1 的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求内容消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一个 URL 携带上述信息: HTTP://CR2 的标识信息 /CR1 的标识信息 /www.sina.com.cdnl .net/video/a. flv, 其中, www.sina.com.cdnl .net代表 CDN1的标识信息和 CP/SP的标识信息, a.flv代表内容标识, 此处以文件 名为例, video/a.flv表示了内容路径。上述以 HTTP为例,还可以釆用 FTP 等其他协议, 本实施例对此不进行限制。
步骤 1405、 CR2根据设置的交付策略,确定上述请求内容消息由 CDN3 处理, 向 CR3发送请求内容消息, 上述请求内容消息中包含内容标识;
CR2可以根据 TM的位置、 CP/SP的标识信息、 内容标识中的至少一 项, 确定上述请求内容消息由 CDN3处理。 具体如: 某特定区域的用户由 某个特定的 CDN处理; 或者某个特定 CP/SP和 /或某些特定内容由某个特 定的 CDN处理。
步骤 1406、 CR3选择 CD3, 向 CR2返回请求响应消息, 上述请求响 应消息中包含所选择的 CD3的标识信息和上述内容标识;
其中, 上述 CD3的标识信息可以包括但不限于以下信息: IP地址、 域 名。
可选地, 上述请求响应消息中还可以包含 CDN3的标识信息、 CP/SP 的标识信息中的至少一项。 具体地, 上述请求响应消息中包含的信息可以 通过一个共同的字段携带, 例如: URL, 或者还可以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的一项或几项。 例如: 通过 一 个 URL 携 带 上 述 信 息 : HTTP://192.168.1.3/www.sina.com.cdn3.net/video/a.flv,其中 192.168.1.3 代表 CD3 的标识信息, 此处以 IP 为例 , 端 口 默认 80 , www.sina.com.cdn3.net代表 CDN3的标识信息和 CP/SP的标识信息, a.flv 代表内容标识, 此处以文件名为例, video/a.flv表示了内容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此不进行限制。
具体地,本步骤中的 CR3可以根据 CD的负载状态和 /或设置的交付策 略(例如: 基于 TM的位置、 CP/SP的内容与 CD的对应关系等因素的策 略) , 选择合适的 CD3。 该步骤可选, CR3可以直接返回消息给 CR1。
步骤 1407、 CR2向 CR1返回请求响应消息, 上述请求响应消息中包 含所选择的 CD3的标识信息和上述内容标识;
步骤 1408、 CR1向 TM返回请求响应消息, 上述请求响应消息中包含 上述 CD3的标识信息和上述内容标识;
可选地, 上述请求响应消息中还可以包含 CDN1 的标识信息、 CDN2 的标识信息、 CR1的标识信息、 CP/SP的标识信息中的至少一项。 其中, 上述 CR1的标识信息可以包括但不限于以下信息: IP地址、 域名, 以供当 緩存没有命中时, 向 CR1请求 CSG1的标识信息。 具体地, 上述请求响应 消息中包含的信息可以通过一个共同的字段携带, 例如: URL, 或者还可 以通过独立的字段携带, 例如: URL、 XML元素或属性、 HTTP头域中的 一项或几项。例如:通过一个 URL携带上述信息: HTTP://192.168.1.3/CR1 的标识信息 /www.sina. com. cdnl .net.cdn2.net /video/a.flv , 其中 , 192.168.1.3 代表 CD3 的标识信息, 此处以 IP 为例, 端口默认 80; www.sina.com.cdn1. net.cdn2.net代表 CDN1 , CDN2的标识信息和 CP/SP 的标识信息, a.flv代表内容标识, 此处以文件名为例, video/a.flv表示了内 容路径。 上述以 HTTP为例, 还可以釆用 FTP等其他协议, 本实施例对此 不进行限制。
步骤 1409、 TM根据获取的 CD3的标识信息, 向 CD3发送请求内容 消息, 上述请求内容消息中包含上述内容标识;
步骤 1410、 CD3根据上述内容标识, 向 TM返回与上述内容标识对应 的内容。
具体地, 本步骤中的 CD3可以预先通过上述本发明实施例二和本发明 实施例三获取上述 TM 所请求的内容, 具体描述可以参见上述本发明实施 例二和本发明实施例三中的相关内容, 此处不再贅述; 或者还可以通过上 述本发明实施例四和本发明实施例五获取上述 TM 所请求的内容, 具体描 述可以参见上述本发明实施例四和本发明实施例五中的相关内容, 此处不 再赘述。
本实施例中, CR1获取到来自 TM的内容请求之后, 根据设置的交付 策略, 通过 CR2和 CR3向该 TM发送 CD3的标识信息, 从而使得该 TM 能够向 CD3请求与上述内容标识对应的内容, 实现了 TM 可以获取其他 CDN ( CDN3 ) 中的 CD ( CD3 ) 所交付的未签约 CP/SP的内容, 解决了 现有技术中 CDN 中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的正常进行, 保证了业务的正常进行。
进一步地, 在部署本发明实施例所涉及的网络架构时, CDN 中的 CD 可以进一步釆用分层部署, 例如: 一般在城域网部署多个 CD域, 其中每 个 CD域内可以有多个 CD, —个或者多个从交付控制实体(即子 CR中的 交付控制实体), 同时还提供一个主 CR交付控制实体 (即全局 CR中的交 付控制实体),对多个 CD域进行统一管理与控制。类似地, CDN中的 CSG 也可以釆用分层部署, 此处不再贅述。 釆用分层部署之后, 上述本发明实 施例二至本发明实施例九中所涉及的第二 CDN中的 CR ( CR2或 CR3 ) , 均可以包括第二 CDN中的主 CR和该主 CR所选择的第二 CDN中的子 CR, 具体可以是主 CR先接收请求或响应,然后选择子 CR并转发给子 CR进行 处理。类似地,上述本发明实施例六至本发明实施例九中所涉及的第三 CDN 中的 CR ( CR2 ) 可以包括第三 CDN中的主 CR和该主 CR所选择的第三 CDN 中的子 CR, 具体可以是主 CR先接收请求或响应, 然后选择子 CR 并转发给子 CR进行处理。
需要说明的是: 对于前述的各方法实施例, 为了简单描述, 故将其都 表述为一系列的动作组合, 但是本领域技术人员应该知悉, 本发明并不受 所描述的动作顺序的限制, 因为依据本发明, 某些步骤可以釆用其他顺序 或者同时进行。 其次, 本领域技术人员也应该知悉, 说明书中所描述的实 施例均属于优选实施例, 所涉及的动作和模块并不一定是本发明所必须的。 在上述实施例中, 对各个实施例的描述都各有侧重, 某个实施例中没 有详述的部分, 可以参见其他实施例的相关描述。
图 15 为本发明实施例十五提供的内容获取装置的结构示意图, 如图 15所示, 本实施例的内容获取装置可以设置于第二 CDN 中, 可以包括获 取模块 1501 , 用于获取第一 CDN中的 CSG发送的内容, 上述第一 CDN 与 CP/SP签约, 以使上述第一 CDN从上述 CP/SP获取所述内容。
上述本发明实施例一中第二 CDN中的 CSG或第二 CDN中的 CD、发 明实施例二、 三中 CSG2/CD2、 本发明实施例四、 五中 CD2、 本发明实施 例六、 七中 CSG3/CD3、 本发明实施例八、 九中 CD3的功能均可以由本发 明实施例提供的内容获取装置实现。
本实施例中, 通过获取模块获取第一 CDN中的 CSG发送的与内容标 识对应的内容, 实现了第二 CDN中的 CD能够从其他 CDN中的 CSG获 取该第二 CDN未签约 CP/SP的内容, 从而得以向 TM交付该内容, 解决 了现有技术中 CDN中的 CR所选择的 CD无法向 TM交付所请求的未签约 CP/SP的内容的问题, 保证了业务的正常进行。
图 16 为本发明实施例十六提供的内容交付装置的结构示意图, 如图 16所示, 本实施例的内容交付装置可以设置于第一 CDN中, 该第一 CDN 与 CP/SP签约, 以使上述第一 CDN从上述 CP/SP获取内容, 可以包括接 收模块 1601和发送模块 1602。 其中, 接收模块 1601 获取来自终端的内 容请求, 用以请求与内容标识对应的内容, 发送模块 1602根据交付策略, 向上述终端发送第二 CDN中的 CR或第二 CDN中的 CD的标识信息, 以 使上述终端向第二 CDN中的 CD请求与上述内容标识对应的内容。
上述本发明实施例十中第一 CDN中的 CR、 发明实施例十一、 十二、 十三、十四中 CR1的功能均可以由本发明实施例提供的内容交付装置实现。
本实施例中, 接收模块获取到来自 TM 的内容请求之后, 发送模块根 据设置的交付策略,向该 TM发送第二 CDN中的 CR或第二 CDN中的 CD 的标识信息, 从而使得该 TM能够向第二 CDN中的 CD请求与上述内容标 识对应的内容, 实现了 TM可以获取其他 CDN中的 CD所交付的 CP/SP 的内容, 保证了业务的正常进行。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步 骤可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机 可读取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储介质包括: ROM、 RAM , 磁碟或者光盘等各种可以存储程序 代码的介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的精神和范围。

Claims

权利要求
1、 一种内容获取方法, 其特征在于, 包括:
第二内容分发网络 CDN中的内容存储实体 CSG或第二 CDN中的内 容交付实体 CD获取第一 CDN中的 CSG发送的内容, 所述第一 CDN与 内容提供商 CP/业务提供商 SP签约, 以使所述第一 CDN从所述 CP/SP 获取所述内容。
2、 根据权利要求 1所述的方法, 其特征在于, 所述第二 CDN与所述 第一 CDN签约, 所述第二 CDN中的 CSG或第二 CDN中的 CD获取第一 CDN中的 CSG发送的内容包括:
第二 CDN中的 CSG或第二 CDN中的 CD通过第二 CDN中的内容路 由实体 CR获取内容分发请求消息, 所述内容分发请求消息中包含内容标 识和第一 CDN中的 CSG的标识信息;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD根据所述第一 CDN 中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识 对应的内容;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取所述第一 CDN 中的 CSG发送的与所述内容标识对应的内容。
3、 根据权利要求 1所述的方法, 其特征在于, 所述第二 CDN与所述 第一 CDN签约,
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CSG的标 识信息,向所述第二 CDN中的 CSG分发内容的,所述第二 CDN中的 CSG 的标识信息是所述第二 CDN中的 CSG通过第二 CDN中的 CR向所述第 一 CDN中的 CSG发送的,或者是第二 CDN中的 CR向所述第一 CDN中 的 CSG发送的; 或者
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息, 向所述第二 CDN中的 CD分发内容的, 所述第二 CDN中的 CD 的标识信息是所述第二 CDN中的 CD通过第二 CDN中的 CR向所述第一 CDN中的 CSG发送的, 或者是第二 CDN中的 CR向所述第一 CDN中的 CSG发送的。
4、 根据权利要求 1所述的方法, 其特征在于, 所述第二 CDN与所述 第一 CDN签约, 第二 CDN中的 CD获取第一 CDN中的 CSG发送的内容 包括:
第二 CDN中的 CD通过第二 CDN中的 CR向第一 CDN中的 CR请求 与内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CR返回的第一 CDN 中的 CSG的标识信息;
所述第二 CDN中的 CD根据所述第一 CDN中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CSG发送的与所述 内容标识对应的内容。
5、 根据权利要求 1所述的方法, 其特征在于, 所述第二 CDN与所述 第一 CDN签约, 第二 CDN中的 CD获取第一 CDN中的 CSG发送的内容 包括:
第二 CDN中的 CD通过第二 CDN中的 CR向第一 CDN中的 CR请求 与内容标识对应的内容, 所述请求对应的请求内容消息中包含所述第二 CDN中的 CD的标识信息;
所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容 标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息向所述第二 CDN中的 CD发送与所述内容标识对应的内容的。
6、根据权利要求 1所述的方法,其特征在于,所述第二 CDN中的 CSG 或第二 CDN中的 CD获取第一 CDN中的 CSG发送的内容包括: 第二 CDN中的 CSG或第二 CDN中的 CD通过第三 CDN中的 CR和 第二 CDN中的 CR获取内容分发请求消息,所述内容分发请求消息中包含 所述内容标识和第一 CDN中的 CSG的标识信息, 所述第三 CDN与所述 第一 CDN签约, 所述第二 CDN与所述第三 CDN签约;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD根据所述第一 CDN 中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识 对应的内容;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取所述第一 CDN 中的 CSG发送的与所述内容标识对应的内容。
7、 根据权利要求 1所述的方法, 其特征在于,
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CSG的标 识信息, 向所述第二 CDN中的 CSG分发与内容的, 所述第二 CDN中的 CSG的标识信息是所述第二 CDN中的 CSG通过第二 CDN中的 CR和第 三 CDN中的 CR向所述第一 CDN中的 CSG发送的,或者是第二 CDN中 的 CR通过第三 CDN中的 CR向所述第一 CDN中的 CSG发送的,所述第 三 CDN与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约; 或 者
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息, 向所述第二 CDN中的 CD分发内容的, 所述第二 CDN中的 CD 的标识信息是所述第二 CDN中的 CD通过第二 CDN中的 CR和第三 CDN 中的 CR向所述第一 CDN中的 CSG发送的, 或者是第二 CDN 中的 CR 通过第三 CDN中的 CR向所述第一 CDN中的 CSG发送的,所述第三 CDN 与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约。
8、 根据权利要求 1所述的方法, 其特征在于, 第二 CDN中的 CD获 取第一 CDN中的 CSG发送的内容包括: 第二 CDN中的 CD通过第二 CDN中的 CR和第三 CDN中的 CR向第 一 CDN中的 CR请求与内容标识对应的内容, 所述第三 CDN与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约;
所述第二 CDN中的 CD获取所述第一 CDN中的 CR返回的第一 CDN 中的 CSG的标识信息;
所述第二 CDN中的 CD根据所述第一 CDN中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CSG发送的与所述 内容标识对应的内容。
9、 根据权利要求 1所述的方法, 其特征在于, 第二 CDN中的 CD获 取第一 CDN中的 CSG发送的内容包括:
第二 CDN中的 CD通过第二 CDN中的 CR和第三 CDN中的 CR向第 一 CDN中的 CR请求与内容标识对应的内容, 所述请求对应的请求内容消 息中包含所述第二 CDN中的 CD的标识信息, 所述第三 CDN与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约;
所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容 标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息向所述第二 CDN中的 CD发送与所述内容标识对应的内容的。
10、 根据权利要求 2至 9任一权利要求所述的方法, 其特征在于, 所 述第二 CDN中的 CR包括第二 CDN中的主 CR和所述第二 CDN中的主 CR选择的第二 CDN中的子 CR。
1 1、 根据权利要求 6至 9任一权利要求所述的方法, 其特征在于, 所 述第三 CDN中的 CR包括第三 CDN中的主 CR和所述第三 CDN中的主 CR选择的第三 CDN中的子 CR。
12、 根据权利要求 1至 9任一权利要求所述的方法, 其特征在于, 所 述第二 CDN未与所述 CP/SP签约, 所述第二 CDN不能够从所述 CP/SP 获取所述内容。
13、 一种内容交付方法, 其特征在于, 包括:
第一内容分发网络 CDN中的内容路由实体 CR获取来自终端的内容请 求, 用以请求与内容标识对应的内容, 所述第一 CDN 与内容提供商 CP/ 业务提供商 SP签约, 以使所述第一 CDN从所述 CP/SP获取所述内容; 所述第一 CDN中的 CR根据交付策略, 向所述终端发送第二 CDN中 的 CR或第二 CDN中的内容交付实体 CD的标识信息, 以使所述终端向第 二 CDN中的 CD请求与所述内容标识对应的内容。
14、 根据权利要求 13所述的方法, 其特征在于, 所述方法还包括: 第 二 CDN中的 CSG或所述第二 CDN中的 CD获取与所述内容标识对应的 内容。
15、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN与所 述第一 CDN签约, 所述第二 CDN中的 CSG或所述第二 CDN中的 CD获 取与所述内容标识对应的内容包括:
第二 CDN中的 CSG或所述第二 CDN中的 CD通过第二 CDN中的 CR获取内容分发请求消息,所述内容分发请求消息中包含所述内容标识和 第一 CDN中的 CSG的标识信息;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD根据所述第一 CDN 中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识 对应的内容;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取所述第一 CDN 中的 CSG发送的与所述内容标识对应的内容。
16、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN与所 述第一 CDN签约, 所述第二 CDN中的 CSG或所述第二 CDN中的 CD获 取与所述内容标识对应的内容包括: 第二 CDN中的 CSG或所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CSG的标 识信息, 向所述第二 CDN中的 CSG分发与所述内容标识对应的内容的, 所述第二 CDN中的 CSG的标识信息是所述第二 CDN中的 CSG通过第二 CDN中的 CR向所述第一 CDN中的 CSG发送的, 或者是第二 CDN中的 CR向所述第一 CDN中的 CSG发送的; 或者
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息, 向所述第二 CDN中的 CD分发与所述内容标识对应的内容的, 所 述第二 CDN中的 CD的标识信息是所述第二 CDN中的 CD通过第二 CDN 中的 CR向所述第一 CDN中的 CSG发送的, 或者是第二 CDN 中的 CR 向所述第一 CDN中的 CSG发送的。
17、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN与所 述第一 CDN签约, 所述第二 CDN中的 CD获取与所述内容标识对应的内 容包括:
所述第二 CDN中的 CD通过第二 CDN中的 CR向第一 CDN中的 CR 请求与所述内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CR返回的第一 CDN 中的 CSG的标识信息;
所述第二 CDN中的 CD根据所述第一 CDN中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CSG发送的与所述 内容标识对应的内容。
18、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN与所 述第一 CDN签约, 所述第二 CDN中的 CD获取与所述内容标识对应的内 容包括: 所述第二 CDN中的 CD通过第二 CDN中的 CR向第一 CDN中的 CR 请求与所述内容标识对应的内容, 所述请求对应的请求内容消息中包含所 述第二 CDN中的 CD的标识信息;
所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容 标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息向所述第二 CDN中的 CD发送与所述内容标识对应的内容的。
19、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取与所述内容标识对应的内容包括: 第二 CDN中的 CSG或所述第二 CDN中的 CD通过第三 CDN中的 CR和第二 CDN中的 CR获取内容分发请求消息, 所述内容分发请求消息 中包含所述内容标识和第一 CDN 中的 CSG的标识信息, 所述第三 CDN 与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD根据所述第一 CDN 中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识 对应的内容;
所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取所述第一 CDN 中的 CSG发送的与所述内容标识对应的内容。
20、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN中的 CSG或所述第二 CDN中的 CD获取与所述内容标识对应的内容包括: 第二 CDN中的 CSG或所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CSG的标 识信息, 向所述第二 CDN中的 CSG分发与所述内容标识对应的内容的, 所述第二 CDN中的 CSG的标识信息是所述第二 CDN中的 CSG通过第二 CDN中的 CR和第三 CDN中的 CR向所述第一 CDN中的 CSG发送的, 或者是第二 CDN中的 CR通过第三 CDN中的 CR向所述第一 CDN中的 CSG发送的, 所述第三 CDN与所述第一 CDN签约, 所述第二 CDN与所 述第三 CDN签约; 或者;
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息, 向所述第二 CDN中的 CD分发与所述内容标识对应的内容的, 所 述第二 CDN中的 CD的标识信息是所述第二 CDN中的 CD通过第二 CDN 中的 CR和第三 CDN中的 CR向所述第一 CDN中的 CSG发送的,或者是 第二 CDN中的 CR通过第三 CDN中的 CR向所述第一 CDN中的 CSG发 送的, 所述第三 CDN与所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约。
21、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN中的 CD获取与所述内容标识对应的内容包括:
所述第二 CDN中的 CD通过第二 CDN中的 CR和第三 CDN中的 CR 向第一 CDN中的 CR请求与所述内容标识对应的内容, 所述第三 CDN与 所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约;
所述第二 CDN中的 CD获取所述第一 CDN中的 CR返回的第一 CDN 中的 CSG的标识信息;
所述第二 CDN中的 CD根据所述第一 CDN中的 CSG的标识信息, 向所述第一 CDN中的 CSG请求与所述内容标识对应的内容;
所述第二 CDN中的 CD获取所述第一 CDN中的 CSG发送的与所述 内容标识对应的内容。
22、 根据权利要求 14所述的方法, 其特征在于, 所述第二 CDN中的 CD获取与所述内容标识对应的内容包括:
所述第二 CDN中的 CD通过第二 CDN中的 CR和第三 CDN中的 CR 向第一 CDN中的 CR请求与所述内容标识对应的内容, 所述请求对应的请 求内容消息中包含所述第二 CDN中的 CD的标识信息, 所述第三 CDN与 所述第一 CDN签约, 所述第二 CDN与所述第三 CDN签约; 所述第二 CDN中的 CD获取第一 CDN中的 CSG发送的与所述内容 标识对应的内容, 其中:
所述第一 CDN中的 CSG是根据获取的所述第二 CDN中的 CD的标 识信息向所述第二 CDN中的 CD发送与所述内容标识对应的内容的。
23、 根据权利要求 15至 22任一权利要求所述的方法, 其特征在于, 所述第二 CDN中的 CR包括第二 CDN中的主 CR和所述第二 CDN中的主 CR选择的第二 CDN中的子 CR。
24、 根据权利要求 19至 22任一权利要求所述的方法, 其特征在于, 所述第三 CDN中的 CR包括第三 CDN中的主 CR和所述第三 CDN中的主 CR选择的第三 CDN中的子 CR。
25、 根据权利要求 13至 22任一权利要求所述的方法, 其特征在于, 所述第二 CDN未与所述 CP/SP签约,所述第二 CDN不能够从所述 CP/SP 获取所述内容。
26、 一种内容获取装置, 设置于第二内容分发网络 CDN中, 其特征在 于, 包括获取模块, 用于获取第一 CDN中的内容存储实体 CSG发送的内 容, 所述第一 CDN与内容提供商 CP/业务提供商 SP签约, 以使所述第一 CDN从所述 CP/SP获取所述内容。
27、 一种内容交付装置, 设置于第一内容分发网络 CDN中, 所述第一 CDN与内容提供商 CP/业务提供商 SP签约, 以使所述第一 CDN从所述 CP/SP获取内容, 其特征在于, 包括:
接收模块, 用于获取来自终端的内容请求, 用以请求与内容标识对应 的内容;
发送模块, 用于根据交付策略, 向所述终端发送第二 CDN中的 CR或 第二 CDN中的 CD的标识信息, 以使所述终端向第二 CDN中的 CD请求 与所述内容标识对应的内容。
PCT/CN2011/074960 2010-11-23 2011-05-31 内容获取、交付方法及装置 WO2011137850A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105602396A CN102148855A (zh) 2010-11-23 2010-11-23 内容的获取、交付方法及装置
CN201010560239.6 2010-11-23

Publications (1)

Publication Number Publication Date
WO2011137850A1 true WO2011137850A1 (zh) 2011-11-10

Family

ID=44422844

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074960 WO2011137850A1 (zh) 2010-11-23 2011-05-31 内容获取、交付方法及装置

Country Status (2)

Country Link
CN (1) CN102148855A (zh)
WO (1) WO2011137850A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973747A (zh) * 2013-02-04 2014-08-06 华为技术有限公司 一种获取内容的方法和装置

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104936092B (zh) * 2015-05-20 2018-09-04 广东欧珀移动通信有限公司 一种数据的处理方法、相关装置及***
CN107295003B (zh) * 2017-07-17 2020-01-07 联动优势科技有限公司 一种数据传输方法、装置及***

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257396A (zh) * 2007-03-02 2008-09-03 中国科学院声学研究所 一种基于p2p技术的多域内容分发***及相应的方法
WO2009123868A2 (en) * 2008-04-04 2009-10-08 Level 3 Communications, Llc Handling long-tail content in a content delivery network (cdn)
CN101557423A (zh) * 2009-05-07 2009-10-14 北京邮电大学 一种实现流媒体内容服务的***和方法
CN101729273A (zh) * 2008-10-27 2010-06-09 ***通信集团公司 一种流媒体分发***、方法及装置
CN101860720A (zh) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 内容定位方法及内容分发网络节点

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ITTO20020341A1 (it) * 2002-04-19 2003-10-20 Telecom Italia Lab Spa Procedimento per realizzare l'interlavoro fra reti del tipo content delivery network -cdn-,relativo insieme di reti e componente di interfac
CN100518105C (zh) * 2007-07-27 2009-07-22 华为技术有限公司 实现网络监控的方法、***及内容分发网络

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101257396A (zh) * 2007-03-02 2008-09-03 中国科学院声学研究所 一种基于p2p技术的多域内容分发***及相应的方法
WO2009123868A2 (en) * 2008-04-04 2009-10-08 Level 3 Communications, Llc Handling long-tail content in a content delivery network (cdn)
CN101729273A (zh) * 2008-10-27 2010-06-09 ***通信集团公司 一种流媒体分发***、方法及装置
CN101860720A (zh) * 2009-04-10 2010-10-13 中兴通讯股份有限公司 内容定位方法及内容分发网络节点
CN101557423A (zh) * 2009-05-07 2009-10-14 北京邮电大学 一种实现流媒体内容服务的***和方法

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103973747A (zh) * 2013-02-04 2014-08-06 华为技术有限公司 一种获取内容的方法和装置
CN103973747B (zh) * 2013-02-04 2017-11-17 华为技术有限公司 一种获取内容的方法和装置

Also Published As

Publication number Publication date
CN102148855A (zh) 2011-08-10

Similar Documents

Publication Publication Date Title
US10271253B2 (en) Mapping scheme employed in an information centric network to manage domain-based security and mobility
JP6189899B2 (ja) コンテンツ識別に基づいてコンテンツを自動的に発見して取り出すための方法および装置
US8332527B2 (en) Streaming media network system, streaming media service realization method and streaming media service enabler
KR101549803B1 (ko) 피어-투-피어 콘텐츠 배포 시스템에서 피어-수신된 콘텐츠의 완전성 검증
JP5847185B2 (ja) コンテンツ中心のネットワーク環境でグループ変更に関する情報を用いるコンテンツ共有方法及び装置
WO2007093124A1 (fr) Procédé et système d'ordonnancement de ressources multimédia
KR102132266B1 (ko) 데이터 스트리밍에 대한 보조의 노드 타입 기반 제어
CN102546820B (zh) 传输优化方法、映射信息的存储方法、装置及***
WO2011000289A1 (zh) 一种p2p流媒体数据分发的方法、***及proxy节点
WO2011017976A1 (zh) 媒体服务方法及***
WO2008022522A1 (en) Method and system for providing mobile service and management center server therefor
WO2012129934A1 (zh) 一种实现cdn互通的认证方法、装置与***
WO2009015587A1 (fr) Procédé, système et appareil de routage soap
WO2010022631A1 (zh) 实现融合地址簿业务信息通知的方法及装置
CN102148739A (zh) 一种ims会话路由控制方法及***
US20100195606A1 (en) Supplementary service provision method and system for ims-based network
US9118745B2 (en) Remote access to a device in an IMS system with a second media access channel
WO2011137850A1 (zh) 内容获取、交付方法及装置
WO2013075502A1 (zh) 一种元数据的处理方法、装置及cdn互通***
US20140025775A1 (en) Content delivery system and method based on information-centric networking
JP2010278867A (ja) 加入者情報アクセス方法、加入者情報アクセスシステムとそのサーバ装置
EP3190768B1 (en) Communication system and method for multi-line, multi-device service with user capability discovery
KR20130138670A (ko) 컨텐츠 중심 네트워크의 인트라 도메인(intra domain) 및 인터 도메인(inter domain)에서 노드가 컨텐츠를 검색하는 방법 및 그 노드
JP4944935B2 (ja) セッション制御システム及びセッション制御プログラム
WO2009015584A1 (fr) Procédé, système et dispositif servant à réaliser un enregistrement d'un équipement utilisateur dans un réseau personnel

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 11777269

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 11777269

Country of ref document: EP

Kind code of ref document: A1