WO2013075502A1 - 一种元数据的处理方法、装置及cdn互通*** - Google Patents

一种元数据的处理方法、装置及cdn互通*** Download PDF

Info

Publication number
WO2013075502A1
WO2013075502A1 PCT/CN2012/078143 CN2012078143W WO2013075502A1 WO 2013075502 A1 WO2013075502 A1 WO 2013075502A1 CN 2012078143 W CN2012078143 W CN 2012078143W WO 2013075502 A1 WO2013075502 A1 WO 2013075502A1
Authority
WO
WIPO (PCT)
Prior art keywords
metadata
distribution network
content distribution
content
parameter
Prior art date
Application number
PCT/CN2012/078143
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 WO2013075502A1 publication Critical patent/WO2013075502A1/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/2866Architectures; Arrangements
    • H04L67/289Intermediate processing functionally located close to the data consumer application, e.g. in same machine, in same home or in same sub-network
    • 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/564Enhancement of application control based on intercepted application data

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a metadata processing method and apparatus, and a CDN interworking system.
  • the Content Delivery Network distributes the content of the website to the network closest to the user by superimposing a new network architecture on the existing network (IP, Internet Protocol) transmission network.
  • IP Internet Protocol
  • "Edge” allows users to get the content they need to solve the current network congestion and improve the response speed of users accessing the network.
  • the problem of slow response of users accessing the network due to small network bandwidth, large user access, and uneven distribution of network points is solved.
  • the Content Provider uses the services provided by the CDN to speed up the distribution of content, enabling users of CP to enjoy high quality of service.
  • the content provider uses CDN to complete content acceleration, it can decide to completely place the content on the CDN's central storage server according to the needs of its own business or to still reside on its own content source server.
  • the CDN is used.
  • the content storage and cache acceleration capabilities provided, and the latter uses the content cache acceleration capability provided by the CDN.
  • the content provider defines the corresponding metadata in order to explain the content that needs the CDN cache acceleration and control the final delivery of the content, for example, the CP restricted content is only allowed to be viewed in certain specific areas, or the CP is restricted. The content is only allowed to be viewed in a certain period of time.
  • the CP needs to deliver the part of the metadata defined by the CP to the CDN, so that the CDN can deliver the content according to the metadata in the subsequent business process. Control, etc.
  • This technology only considers the scene of a CDN directly contracted with the CP, but the coverage area of any single CDN is limited, and the users are scattered in different areas, so the separate CDNs need to communicate with each other to each other.
  • the CDN that ultimately delivers the delivery content to the user may not be the CDN directly contracted with the CP, whereas the prior art for the CDN mutual
  • the scenario is not covered, and it is not involved in which metadata needs to be transmitted and how metadata is used in this scenario.
  • the embodiment of the present invention provides a method and a device for processing metadata, and a CDN interworking system, which is used to implement processing of metadata in a scenario of interworking of CDNs.
  • a method for processing metadata according to an embodiment of the present invention includes:
  • the first content distribution network CDN obtains first metadata transmitted by the content provider CP; the first content distribution network generates second metadata based on the first metadata and a policy of the first content distribution network,
  • the second metadata includes a distribution parameter of the first metadata and the second metadata, the distribution parameter of the second metadata includes a distribution mode parameter, and the distribution mode parameter is used to indicate the distribution of the second metadata the way;
  • the first content distribution network distributes the second metadata to a second content distribution network according to a distribution manner indicated by the distribution mode parameter.
  • another method for processing metadata includes: receiving, by the second content distribution network, a second element sent by the first content distribution network according to a distribution manner indicated by a distribution mode parameter of the second metadata Data, the second metadata includes a first metadata and a distribution parameter of the second metadata, the distribution parameter of the second metadata includes a distribution mode parameter, and the distribution mode parameter is used to indicate the second a method of distributing metadata, the first metadata being sent by the content provider CP to the first content distribution network;
  • the second content distribution network controls content sent to the user device based on the second metadata.
  • a content distribution network CDN is provided in the embodiment of the present invention, where the CDN is a content distribution network that is contracted with a content provider CP, and the CDN includes:
  • An obtaining unit configured to obtain first metadata sent by the CP
  • a generating unit configured to generate second metadata based on the first metadata and a policy of the first content distribution network, where the second metadata includes distribution parameters of the first metadata and the second metadata,
  • the distribution parameter of the second metadata includes a distribution mode parameter, where the distribution mode parameter is used to indicate a distribution manner of the second metadata;
  • a distribution unit configured to distribute the second metadata to the second content distribution network according to a distribution manner indicated by the distribution mode parameter.
  • another content distribution network CDN provided by the embodiment of the present invention includes:
  • An acquiring unit configured to receive second metadata sent by the first content distribution network according to a distribution manner indicated by a distribution mode parameter of the second metadata, where the second metadata includes the first metadata and the second metadata a distribution parameter, the distribution parameter of the second metadata includes a distribution mode parameter, the distribution mode parameter is used to indicate a distribution manner of the second metadata, and the first metadata is sent by the content provider CP to the First content distribution network;
  • a content control unit configured to control content sent to the user equipment according to the second metadata.
  • a CDN interworking system includes: a content provider CP, a content distribution network that is contracted with the CP, a content distribution network that is not contracted with the CP, and a user equipment, where The user equipment is configured to send service request information to a content distribution network that is contracted with the CP.
  • the embodiments of the present invention have the following advantages:
  • the first content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network, where the second metadata includes the first metadata and the distribution parameters of the second metadata.
  • the distribution parameter of the second metadata includes a distribution mode parameter, and the first content distribution network distributes the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, so that the second content distribution network according to the received
  • the second metadata controls the content sent to the user device.
  • FIG. 1 is a schematic diagram of another embodiment of a method for processing metadata according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of another embodiment of a method for processing metadata according to an embodiment of the present invention
  • Figure 4 is a schematic diagram of another embodiment of a content distribution network according to an embodiment of the present invention
  • Figure 5 is a schematic diagram of an embodiment of a CDN interworking system according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of another embodiment of a CDN interworking system according to an embodiment of the present invention.
  • the embodiment of the present invention provides a method and a device for processing metadata, and a CDN interworking system, which is used to implement processing of metadata in a scenario of interworking of CDNs.
  • the embodiment of the present invention provides a method for processing metadata, as shown in FIG. 1 , which may include:
  • the first content distribution network obtains first metadata sent by the content provider CP.
  • the CDN that is directly contracted with the CP is referred to as an Up Content Delivery Network (UpCD), which is the first content distribution network described in the embodiment of the present invention, and the first content distribution.
  • the network interworking CDN is called the Down Content Delivery Network (Down Content Delivery Network), which is the second content distribution network described in the embodiment of the present invention.
  • the second content distribution network and the first content distribution network can sign each other.
  • the second content distribution network Using the network resources of the other party, in the CDN interworking system, the second content distribution network finally processes the user request and delivers the content for the user.
  • the second level content distribution network of the first level is contracted with the first content distribution network, and the subsequent second content distribution network is respectively contracted with the second content distribution network of the previous level, and directly by the second content distribution network of the last level. User delivers content.
  • the CP signs the contract with the first content distribution network, and the CP can use the first content.
  • the central storage capacity and the cache acceleration capability of the distribution network help to implement the content delivery service for the user equipment.
  • the CP defines the content or controls the content delivery of the subsequent CDN, and the CP defines the corresponding metadata, in the embodiment of the present invention.
  • the metadata defined by the CP is referred to as the first metadata, and the CP uploads the first metadata to the directory negotiated in advance with the first content distribution network, and the first content distribution network can receive the first metadata sent by the CP. And feedback to the CP is successful.
  • the first metadata may specifically include: data that the CP describes the content or data that controls the delivery of the content.
  • the data that controls the delivery of content is used within a certain time; for example, the CP does not allow users other than the Beijing area to use the content, and the CP does not allow the user to use the content after 22:00 every day.
  • the first content distribution network generates second metadata based on the first metadata and a policy of the first content distribution network, where the second metadata includes first metadata and distribution parameters of the second metadata, where the distribution parameters include distribution Mode parameter.
  • the first content distribution network may generate second metadata based on the first metadata and the policy of the first content distribution network, where the generated
  • the binary data includes first metadata and distribution parameters of the second metadata
  • the distribution parameter refers to parameters of how the second metadata is distributed to the second content distribution network
  • the distribution parameters include distribution mode parameters
  • the distribution mode parameters are used for Indicates how the second metadata is distributed.
  • the first content distribution network may determine the distribution mode parameter according to a pre-defined policy of the CDN service provider or the administrator.
  • the distribution mode parameter may specifically include three types: a static pre-distribution method, a dynamic acquisition mode, and a hybrid distribution mode, where
  • the pre-distribution mode refers to that the second content distribution network distributes the metadata to the second content distribution network by the first content distribution network before receiving the user equipment to initiate the service request information, and the second content distribution network is configured according to the second metadata pair.
  • the content sent to the user equipment is controlled;
  • the dynamic acquisition mode refers to that after the second content distribution network receives the user equipment initiation service request information, the second content distribution network requests the metadata from the first content distribution network, and then a content distribution network transmits metadata to the second content distribution network, and the second content distribution network controls content sent to the user equipment according to the second metadata;
  • the hybrid distribution method refers to the second metadata Part of the metadata is sent to the second content by static pre-distribution Network, the remaining part of the metadata for the second metadata transmitted to the second embodiment acquires dynamic content delivery network, i.e., a mixed mode distribution
  • the second metadata is divided into two parts, and a part of the metadata is sent to the second content distribution network in a static pre-distribution manner, and the remaining part of the metadata is sent to the second content distribution network in a dynamic acquisition manner.
  • a specific scenario determines which parts of the second metadata are sent by the static pre-distribution method, and which parts are sent by the dynamic acquisition mode, which is not limited herein, wherein the static pre-distribution mode is used.
  • the part of the sent metadata includes at least the storage address of the second metadata in the first content distribution network, and the last level second content distribution network may directly request the first content distribution network to obtain the remaining part of the metadata according to the storage address. .
  • the policy of the first content distribution network may be pre-defined by the CDN service provider or the administrator. In actual applications, there may be multiple policies, which are exemplified and not limited.
  • the cache acceleration capability of the content distribution network, the content injection method is static pre-injection, the content injection method is dynamic acquisition mode, or the first content distribution network and the second content distribution network communicate, the first content distribution network and the second
  • the reason for the content distribution network intercommunication may specifically include traffic offloading, extended coverage area, and the like.
  • the second content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network in the step 102.
  • the achievable manner may include:
  • the first content distribution network determines the distribution mode as a static pre-distribution mode according to the policy; A2.
  • the first content distribution network generates the second metadata according to the first metadata and the static pre-distribution mode.
  • the distribution mode parameter is indicated as a static pre-distribution mode, and the distribution parameter in the second metadata further includes a distribution depth parameter, where the distribution depth parameter is a depth at which the second metadata is allowed to be distributed in the CDN interworking system.
  • the distribution parameter may further include multiple parameters, such as: timeout time parameter, timing verification validity time interval parameter, user authentication parameter, etc., which will be respectively described in subsequent embodiments. .
  • the first content distribution network may determine different distribution methods according to different policies, and then detailed description will be made:
  • the first content distribution network may determine the distribution mode parameter as a static pre-distribution mode according to the policy;
  • the first content distribution network may determine the distribution mode parameter as a static pre-distribution mode according to the policy; when the first content distribution network and the second content The reason for the distribution network intercommunication is that when the traffic is uninstalled, the first content distribution network can determine the distribution mode parameter as a static pre-distribution mode according to the policy, and of course, the first content distribution may be according to a combination of one or more of the foregoing conditions. According to the policy, the network can determine the distribution mode parameter as a static pre-distribution mode.
  • the distribution parameter of the second metadata may further include a distribution depth parameter, and the distribution depth parameter is the second metadata in the CDN interworking system.
  • the first content distribution network may set the distribution depth parameter to be 4, indicating that the second metadata may be sent in series to the third-level CDN in addition to the first content distribution network.
  • the third-level CDN is specifically a second content distribution network, a second content distribution network 1, and a second content distribution network 2.
  • the distribution path of the second metadata may be: a first content distribution network -> a second content distribution network -> The second content distribution network 1 -> the second content distribution network 2. At this time, even if the second content distribution network 2 and the second content distribution network 3 are intercommunicated, since the distribution depth parameter takes a value of 4, the second metadata cannot be distributed to the second content distribution network 3 according to the distribution depth parameter being zero. .
  • the second content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network in the step 102.
  • the first content distribution network determines the distribution mode as a dynamic acquisition mode according to the policy.
  • the first content distribution network generates the second metadata according to the first metadata and the dynamic acquisition manner, and the distribution manner indicated by the distribution mode parameter in the distribution parameter of the second metadata is a dynamic acquisition manner.
  • the first content distribution network can determine different distribution methods according to different policies, and then detailed description is made as follows:
  • the first content distribution network may determine the distribution mode as the dynamic acquisition mode according to the policy; and the method for injecting the content in the first metadata delivered by the CP is In the dynamic acquisition mode, the first content distribution network can be based on the policy. Determining the distribution mode as the dynamic acquisition mode; when the reason for the first content distribution network and the second content distribution network to communicate is the extended coverage area, the first content distribution network may determine the distribution mode as the dynamic acquisition mode according to the policy, and of course According to the combination of one or more of the foregoing conditions, it should be noted that, in an actual application, for the step 102, the first content distribution network generates the first based on the first metadata and the policy of the first content distribution network. Binary data, another way to achieve this is, specifically:
  • the first content distribution network determines the distribution manner as a hybrid distribution manner according to the policy.
  • A6. The first content distribution network generates the second metadata according to the first metadata and the hybrid distribution manner.
  • the distribution mode indicated by the distribution mode parameter in the distribution parameter of the second metadata is a hybrid distribution mode.
  • the first content distribution network may determine different distribution methods according to different policies, and then detailed description will be made:
  • the second content distribution network When the policy of the first content distribution network is to cause the second content distribution network to request the second metadata directly from the first content distribution network, the second content distribution network directly delivers the content to the user equipment, and the first content distribution network is
  • This policy can determine the distribution method as a hybrid distribution method.
  • the first content distribution network is contracted with the CP, and the second content distribution network is provided in the system, and the second content distribution network that delivers the content directly to the user equipment directly from the first A content distribution network requests acquisition of the second metadata, and the first content distribution network may determine the distribution manner as a hybrid distribution manner according to the policy.
  • the first metadata received by the first content distribution network from the CP in step 101 and the second metadata generated by the first content distribution network in step 102 are respectively two.
  • Different metadata which is named as the first metadata in step 101 is only to be distinguished from the second metadata appearing in the subsequent step 102, and the "first" and “second” do not have timing or Any relationship in logic, when the first metadata appears, the second metadata does not necessarily appear.
  • the first metadata does not necessarily appear when the second metadata appears, only to indicate that they are two different elements. Data only.
  • the first content distribution network distributes the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter.
  • the second metadata is distributed to the second content distribution network according to the distribution manner indicated by the distribution mode parameter.
  • the distributing, by the first content distribution network, the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter may include: the first content distribution network adopts a static pre-distribution distribution manner to the second content.
  • the distribution network distributes the second metadata. If the distribution mode is the static pre-distribution mode, the first content distribution network may distribute the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter.
  • the first content distribution network sends a notification message to the second content distribution network, where the notification message includes a storage address of the second metadata, so that the second content distribution network sends a metadata request message to the storage address of the second metadata;
  • the first content distribution network receives a metadata request message sent by the second content distribution network.
  • the first content distribution network transmits the second metadata to the second content distribution network according to the metadata request message.
  • the first content distribution network actively sends a notification message to the second content distribution network to enable the second content distribution network to acquire the second metadata before the request of the user equipment comes.
  • the notification message includes a storage address of the second metadata, and the notification message may further include an acquisition manner. It should be noted that, in the embodiment of the present invention, if the first content distribution network and the second content distribution network have been pre-agreed What kind of acquisition method is used to implement the transmission of the second metadata, and the notification message does not need to include the acquisition method, and if the first content distribution network language second content distribution network does not pre-agreed between what acquisition methods are used , the notification message needs to include the acquisition method.
  • the storage address is a Uniform Resource Locator of the second metadata in the first content distribution network, and the example is http: ⁇ sina.www.cdn.com/metadata/sina .xml
  • the acquisition method is obtained by Hypertext Transfer Protocol (HTTP).
  • HTTP Hypertext Transfer Protocol
  • FTP File Transfer Protocol
  • the acquisition method is the FTP file download method.
  • step B2 after the second content distribution network receives the notification message, the second content is divided into The sending network receives the notification message from the first content distribution network to receive the response, and then the second content distribution network sends a metadata request message to the storage address to obtain the second metadata, that is, request the second metadata to the first content distribution network.
  • the first content distribution network transmits the second metadata to the second content distribution network according to the metadata request message, for example, the first content distribution network transmits the second metadata to the second content distribution network according to the HTTP method, or The first content distribution network transmits the second metadata to the second content distribution network according to the FTP file download mode.
  • the method may further include the following steps:
  • the first content distribution network receives the service request message sent by the user equipment, and the first content distribution network forwards the service request message to the second content distribution network, so that the second content distribution network performs content delivery control on the user equipment according to the second metadata.
  • the first content distribution network is a CDN directly contracted with the CP, and after the user equipment clicks on the connection of a certain content on the website, the corresponding service request message is first routed to the first content distribution network directly contracted with the CP,
  • a content distribution network checks, according to information in the service request message, such as an Internet Protocol (IP) address, that the user equipment is currently located in an area not covered by the first content distribution network, and the first content distribution The network further checks the area covered by the interworking CDN, and checks that the network of the second content distribution network covers the area, and the user equipment can be served through the second content distribution network, so that the service request message of the user is finally routed to the second content. Distribution network.
  • IP Internet Protocol
  • the distributing, by the first content distribution network, the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter may include: distributing the first content distribution network to the second content by using a dynamic acquisition manner The network distributes the second metadata. If the distribution mode is the dynamic acquisition mode, the first content distribution network may distribute the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, which may include the following steps:
  • the first content distribution network receives a service request message sent by the user equipment.
  • the first content distribution network sends a service request message to the second content distribution network, where the service request message carries the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the first content distribution network receives a metadata request message sent by the second content distribution network, where the metadata request message is an identifier of the content requested by the second content distribution network according to the user equipment or the user equipment request The content of the CP to which the content belongs is generated;
  • the first content distribution network transmits the second binary data to the second content distribution network according to the metadata request message.
  • step B4 since the first content distribution network is a CDN directly contracted with the CP, after the user equipment clicks on the connection of a certain content on the website, the corresponding service request message is first routed to the first content distribution network directly contracted with the CP. .
  • the first content distribution network checks, according to the information in the service request message, such as an IP (Internet Protocol) address interconnected between the networks, that the user equipment is currently located in an area not covered by the first content distribution network network.
  • the first content distribution network further checks the area covered by the intercommunicated CDN, and checks that the network of the second content distribution network covers the area, and the user equipment can be served through the second content distribution network, so the user's service request message is finally Route to the second content distribution network.
  • IP Internet Protocol
  • the service request message carries the identifier of the content requested by the UE or the identifier of the CP to which the content requested by the UE belongs, and the second content distribution network sends a metadata request message to the first content distribution network, where the metadata request message carries the requirement.
  • the identifier of the requested metadata may be a specific metadata file label, the port sina.www.cdn.com/metadata/sina.xml, or the content label, indicating that the metadata associated with the content is requested.
  • mouth www.cpl.com/video/avantar.rm
  • the first content distribution network verifies the identity of the second content distribution network and returns the requested metadata. For example, the first content distribution network transmits the second metadata to the second content distribution network according to the HTTP method, or the first content distribution network transmits the second metadata to the second content distribution network according to the FTP file download mode.
  • the first content distribution network may distribute the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, which may include the following steps:
  • the method for sending the storage address of the second metadata to the second content distribution network by using the static pre-distribution method may include the following steps: B8.
  • the first content distribution network sends a notification message to the second content distribution network, where the notification message includes a storage address of the partial metadata, so that the second content distribution network sends a metadata request message to the storage address of the partial metadata.
  • the first content distribution network receives the metadata request message sent by the second content distribution network. B10. The first content distribution network transmits the storage address to the second content distribution network according to the metadata request message.
  • the first content distribution network receives a service request message sent by the user equipment.
  • the first content distribution network sends a service request message to the second content distribution network, where the service request message carries the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the first content distribution network receives a metadata request message sent by the second content distribution network, where the metadata request message is an identifier of the content requested by the second content distribution network according to the user equipment or the user equipment.
  • the identifier of the CP to which the requested content belongs is generated;
  • the first content distribution network transmits the remaining metadata to the second content distribution network according to the metadata request message.
  • the method may further include the following steps:
  • the first content distribution network receives the metadata request message sent by the second content distribution network, and the first content distribution network sends the second content to the second content.
  • the distribution network sends the updated second metadata.
  • the timeout time parameter refers to setting a specific timeout point for the second metadata, for example, setting the timeout point to 02:00:00 on November 04, 2011, if the second content distribution network receives the second element. After the data, the time attribute of the second metadata is viewed. If the timeout point is exceeded, indicating that all the contents of the second metadata are invalid, the second content distribution network sends the element to the first content distribution network because the second metadata has expired. A data request message to obtain updated second metadata.
  • the method may further include the following steps: When the distribution parameter further includes a timing verification validity time interval parameter, the first content distribution network receives the verification request message periodically sent by the second content distribution network according to the timing verification validity time interval parameter, and if the second metadata is valid, The second content distribution network sends a verification success message, and if the second metadata has expired, sends the updated second metadata to the second content distribution network.
  • the distribution parameter further includes a timing verification validity time interval parameter
  • the first content distribution network receives the verification request message periodically sent by the second content distribution network according to the timing verification validity time interval parameter, and if the second metadata is valid, The second content distribution network sends a verification success message, and if the second metadata has expired, sends the updated second metadata to the second content distribution network.
  • the timing verification validity interval parameter refers to setting a time interval indicating that the second content distribution network timing is required to verify the validity of the second metadata to the first content distribution network, for example, the time interval may be set. For 24 hours, the second content distribution network will verify the validity of the second metadata to the first content distribution network every 24 hours to ensure that the second content distribution network can obtain the updated second metadata.
  • the first content distribution network may distribute the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, where the first content distribution network may be the second metadata. Storing in a file, the first content distribution network distributes the second metadata to the second content distribution network in a file transfer manner; or, the first content distribution network carries the second metadata in the message body, the first content distribution network The second metadata is distributed to the second content distribution network in a manner of message signaling transmission.
  • the first content distribution network may store the second metadata in a file and transmit the file to the second content distribution network, and the first content distribution network may also carry the second metadata in a message body such as an extensible markup language. (XML, Extensible Markup Language), transmitted to the second content distribution network by message signaling.
  • XML Extensible Markup Language
  • the first content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network, where the second metadata includes the distribution parameters of the first metadata and the second metadata. And transmitting, by the first content distribution network, the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, so that the second content distribution network controls the content sent to the user equipment according to the second metadata.
  • the above embodiment describes a method for processing metadata implemented by the first content distribution network in the embodiment of the present invention.
  • a method for processing metadata implemented by the second content distribution network in the embodiment of the present invention is described. As shown, including the steps:
  • the second content distribution network receives the second metadata sent by the first content distribution network according to the distribution manner indicated by the distribution mode parameter of the second metadata.
  • the second metadata includes a first metadata and a distribution parameter of the second metadata
  • the distribution parameter of the second metadata includes a distribution mode parameter
  • the distribution mode parameter is used to indicate a distribution manner of the second metadata
  • the first The metadata is sent by the content provider CP to the first content distribution network.
  • the CDN that communicates with the first content distribution network is referred to as a downstream content distribution network, that is, the second content distribution network in the embodiment of the present invention, the second content distribution network, and the first content distribution.
  • the distribution network processes the user request and delivers the content for the user.
  • the second content distribution network is in turn contracted with the second content distribution network of the previous level, and the content is directly delivered to the user by the second content distribution network of the last level.
  • the first content distribution network may generate the second metadata based on the first metadata and the policy of the first content distribution network, where the generated second metadata includes the first metadata and the distribution mode parameter,
  • the second content distribution network acquires the second metadata from the first content distribution network.
  • the distribution mode refers to how to distribute the metadata in the CDN interworking system.
  • the first content distribution network may determine the distribution mode according to a predefined policy of the CDN service provider or the administrator.
  • the distribution manner may specifically include three types. The static pre-distribution mode, the dynamic acquisition mode, and the hybrid distribution mode. For details of the three distribution modes, refer to the related description in the first embodiment, and details are not described herein again.
  • the second content distribution network receives the second metadata sent by the first content distribution network according to the distribution manner indicated by the distribution mode parameter of the second metadata, and an achievable manner is, including :
  • the distribution parameter of the second metadata further includes a distribution depth parameter
  • the second content distribution network receives the notification message sent by the first content distribution network, and the notification message includes the storage of the second metadata. address.
  • the second content distribution network sends a metadata request message to the first content distribution network according to the storage address.
  • the second content distribution network receives the second metadata transmitted by the first content distribution network.
  • the first content distribution network actively sends a notification message to the second content distribution network to make the second content before the request of the user equipment comes.
  • the distribution network is configured to obtain the second metadata, where the notification message includes the storage address of the second metadata, and the notification message may further include an acquisition manner.
  • the notification message does not need to include the acquisition mode, if the first content distribution network language is between the second content distribution network If the acquisition method is not pre-agreed, the notification message needs to include the acquisition method.
  • the second content distribution network receives the notification message sent by the first content distribution network, and the storage address is a URL of the second metadata in the first content distribution network, for example, http://sina.www.cdn.com/metadata/sina.
  • the xml is obtained by using the HTTP method.
  • the storage address is the FTP address of the first content distribution network.
  • the acquisition method is the FTP file download mode, and the second content distribution network receives the ftp file. After the notification message, it can be known which storage address to which the second metadata is obtained.
  • the distribution depth parameter is a depth at which the second metadata is allowed to be distributed in the CDN interworking system.
  • the first content distribution network may set the distribution depth parameter to be 4, indicating the second metadata.
  • the third-level CDN may be delivered in series, and the third-level CDN is specifically the second content distribution network, the second content distribution network 1, the second content distribution network 2, and the second metadata distribution.
  • the path may be: a first content distribution network -> a second content distribution network -> a second content distribution network 1 -> a second content distribution network 2. At this time, even if the second content distribution network 2 and the second content distribution network 3 are intercommunicated, since the distribution depth parameter takes a value of 4, the second metadata cannot be further distributed to the second content distribution network 3 according to the distribution depth parameter element.
  • step C2 after the second content distribution network receives the notification message, the second content distribution network returns a notification message to the first content distribution network to receive the response, and then the second content distribution network sends the notification message to the storage address according to the acquisition mode and the storage address.
  • the metadata request message acquires the second metadata, that is, requests the metadata to the first content distribution network.
  • the first content distribution network transmits the second metadata to the second content distribution network according to the obtaining manner, for example, the first content distribution network transmits the second metadata to the second content distribution network according to the HTTP method, or The content distribution network transmits the second metadata to the second content distribution network according to the FTP file downloading manner, and the second content distribution network receives the second metadata transmitted by the first content distribution network.
  • the second content distribution network receives the transmission of the first content distribution network.
  • the second metadata may further include the following steps: the second content distribution network decrements the distribution depth parameter by 1, and the second content distribution network determines whether the distribution depth parameter is zero, and if the distribution depth parameter is not zero, then the second element is The data distributes the second metadata to the second content distribution network of the next level, so that the second content distribution network of the next level controls the content transmitted to the user equipment according to the second metadata.
  • the first content distribution network may set the value of the distribution depth parameter.
  • the second metadata may be sent to the third-level CDN in series in addition to the first content distribution network, and the third-level CDN is specifically the second content distribution network, the second content distribution network, and the second content distribution.
  • Network 2 the distribution path of the second metadata may be: a first content distribution network -> a second content distribution network -> a second content distribution network 1 -> a second content distribution network 2, the first content distribution network receives the first The binary data is then decremented by one, and then the second metadata is sent to the second content distribution network. After receiving the second metadata, the second content distribution network determines that the distribution depth parameter is 3, and reduces the distribution depth parameter.
  • the second content distribution network 1 After being sent to the second content distribution network 1, the second content distribution network 1 decrements the distribution depth parameter by 1 after receiving the second metadata, determines that the distribution depth parameter is 2, and sends the distribution depth parameter to the second content distribution network. 2, after receiving the second metadata, the second content distribution network 2 decrements the distribution depth parameter by 1 and finds that the distribution depth parameter is 0 at this time, even if the second content is divided.
  • the transmission network 2 and the second content distribution network 3 are interworking, but since the distribution depth parameter takes a value of 4, the second metadata cannot be distributed to the second content distribution network 3 according to the distribution depth parameter being zero.
  • the second content distribution network receives the second metadata sent by the first content distribution network according to the distribution manner indicated by the distribution mode parameter of the second metadata, and another achievable manner is: Includes:
  • the second content distribution network receives the service request message forwarded by the first content distribution network, and the second content distribution network locally stores the first content distribution network that needs to be contacted for the service request message.
  • the address, the service request message carries the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the second content distribution network sends a metadata request message to the first content distribution network according to the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the second content distribution network receives the second metadata transmitted by the first content distribution network.
  • the first content distribution network is a CDN directly contracted with the CP
  • the first content distribution network checks, according to the information in the service request message, such as the IP address, that the user equipment is currently located in an area that is not covered by the first content distribution network, and the first content distribution network further checks.
  • the area covered by the interworking CDN checks that the network of the second content distribution network covers the area, and the user equipment can be served through the second content distribution network, so that the service request message of the user is finally routed to the second content distribution network.
  • the service request message carries the identifier of the content requested by the UE or the identifier of the CP to which the content requested by the UE belongs.
  • the second content distribution network sends a metadata request message to the first content distribution network according to the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs, and the metadata request message carries the metadata that needs to be requested.
  • the logo can be a specific metadata file only, ⁇ port sina.www.cdn.com/metadata/sina.xml, or it can be a content tag, indicating that the requested metadata is associated with the content, port www. Cpl.com/video/avantar.rm, which can also be CP i or a name, indicating that all metadata of the CP is requested, such as www.cpl.com; the first content distribution network.
  • the first content distribution network verifies the identity of the second content distribution network and returns the requested metadata. For example, the first content distribution network transmits the second metadata to the second content distribution network according to the HTTP method, or the first content distribution network transmits the second metadata to the second content distribution network according to the FTP file download mode.
  • the second content distribution network receives the second metadata sent by the first content distribution network according to the distribution manner indicated by the distribution mode parameter of the second metadata, and another achievable manner is: Includes:
  • the distribution mode is the hybrid distribution mode
  • the second content distribution network is acquired from the first content distribution network according to the static pre-distribution mode.
  • the second content distribution network is acquired from the first content distribution network according to the dynamic acquisition manner.
  • step C7 the following steps may be specifically included:
  • the distribution parameter of the second metadata further includes a distribution depth parameter
  • the second content distribution network receives the notification message sent by the first content distribution network, and the notification message includes the storage of the second metadata. address.
  • the second content distribution network sends a metadata request message to the first content distribution network according to the storage address.
  • the second content distribution network receives the storage address transmitted by the first content distribution network.
  • step C8 the following steps may be specifically included:
  • the second content distribution network receives the service request message forwarded by the first content distribution network, where the service request message carries the identifier of the content requested by the user equipment or the content of the CP requested by the user equipment. logo.
  • the second content distribution network sends a metadata request message to the first content distribution network according to the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the second content distribution network receives the remaining metadata transmitted by the first content distribution network.
  • the method may further include the following steps:
  • the distribution parameter further includes a timeout time parameter
  • the second content distribution network sends a metadata request message to the first content distribution network, and the second content distribution network receives the first content distribution.
  • the updated second metadata sent by the network is not limited to a timeout time parameter
  • the timeout time parameter refers to setting a specific timeout point for the second metadata, for example, setting the timeout point to 02:00:00 on November 04, 2011, if the second content distribution network receives the second element. After the data, the time attribute of the second metadata is viewed. If the timeout point is exceeded, indicating that all the contents of the second metadata are invalid, the second content distribution network sends the element to the first content distribution network because the second metadata has expired. The data request message is to obtain the updated second metadata.
  • the method may further include the following steps:
  • the second content distribution network sends an authentication request message to the first content distribution network according to the timing verification validity time interval parameter timing, and if the second metadata has expired, the second content The distribution network receives the updated second metadata transmitted by the first content distribution network.
  • the timing verification validity interval parameter refers to setting a time interval to require the second content distribution network timing to verify the validity of the second metadata to the first content distribution network. For example, the time interval may be set to 24 hours. Then, the second content distribution network verifies the validity of the second metadata to the first content distribution network every 24 hours to ensure that the second content distribution network can obtain the updated second metadata. It should be noted that, in the embodiment of the present invention, the second content distribution network may receive the second content distribution that is sent by the first content distribution network according to the distribution mode indicated by the distribution mode parameter of the second metadata.
  • the network acquires the second metadata from the first content distribution network in a file transmission manner, where the second metadata is saved in the file; or the second content distribution network acquires the second content from the first content distribution network by way of signaling transmission Metadata, where the second metadata is stored in the message body.
  • the first content distribution network may store the second metadata in a file and transmit the file to the second content distribution network, and the first content distribution network may also save the second metadata in a message body such as XML.
  • the message signaling is transmitted to the second content distribution network.
  • the second content distribution network controls content sent to the user equipment according to the second metadata.
  • the second content distribution network controls the content sent to the user equipment according to the second metadata.
  • the first metadata may specifically include: data that the CP describes the content or data that controls the delivery of the content.
  • the data for controlling the delivery of the content may specifically include: restricting the content to be used only in the preset area and/or restricting the content to be used only within the preset time; for example, the CP does not allow the user other than the Beijing area to use the Content, CP does not allow the content to be used after 22:00 every day.
  • the controlling, by the second content distribution network, the content that is sent to the user equipment according to the second metadata may include:
  • the second content distribution network checks whether the location of the user equipment is in an area designated by the CP that is not allowed to be distributed, and if so, rejects the service request of the user equipment. And/or, the second content distribution network checks whether the time attribute of the content in the binary data is within the time specified by the CP, and if not, rejects the service request of the user equipment.
  • the second content distribution network controls the content sent to the user equipment according to the second metadata, and further includes the following steps:
  • the second content distribution network sends the user identity information to the CP, and the second content distribution network receives the identity verification result fed back by the CP, and only after the identity verification result is passed, can the user device be Deliver content.
  • the user authentication parameter refers to the user that needs to verify the user equipment that initiates the service request. If the second metadata distribution network includes the user authentication parameter, the second content distribution network sends the user identity information to the CP after receiving the metadata, and after the CP receives the user identity information, the CP verifies the user identity of the user device. Information, the CP feeds back the authentication result to the second content distribution network.
  • the second content distribution network controls the content sent to the user equipment according to the second metadata, and may further include the following steps:
  • the second content distribution network determines whether the second metadata expires according to the timeout parameter in the second metadata, and if so, rejects the service request of the user equipment.
  • the second content distribution network acquires the second metadata from the first content distribution network, where the second metadata includes the first metadata and the distribution parameters of the second metadata, and the second content distribution network is configured according to the second content distribution network.
  • the second metadata controls the content sent to the user equipment, and implements processing of the metadata in the CDN interworking scenario.
  • a CDN 300 is a first content distribution network.
  • the first content distribution network is a content distribution network contracted with a CP, and is respectively connected to a CP and a second content distribution network, and the first content distribution is performed.
  • Network 300 includes:
  • the obtaining unit 301 is configured to acquire first metadata sent by the CP.
  • the generating unit 302 is configured to generate second metadata based on the first metadata and the policy of the first content distribution network 300, where the second metadata includes the first metadata and the distribution parameter of the second metadata, where The distribution parameter of the second metadata includes a distribution mode parameter, and the distribution mode parameter is used to indicate a distribution manner of the second metadata.
  • the distribution unit 303 is configured to distribute the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter.
  • the policy includes: central storage capability and cache acceleration capability of the second content distribution network, and content injection.
  • the reason that the static pre-injection, the first content distribution network, and the second content distribution network communicate with each other is the traffic offloading, and the generating unit 302 includes:
  • the first determining module is configured to determine, according to the policy, a distribution manner as a static pre-distribution mode.
  • a first generating module configured to generate second metadata according to the first metadata and the static pre-distribution mode, where the distribution mode indication is distributed in a static pre-distribution mode, and the distribution in the second metadata distribution parameter
  • the parameters also include a distribution depth parameter, which is the depth at which the second metadata is allowed to be distributed in the CDN interworking system.
  • the distribution unit 303 includes:
  • a first sending module configured to send a notification message to the second content distribution network, where the notification message includes a storage address of the second metadata, so that the second content distribution network sends the metadata to the storage address of the second metadata Request message.
  • the first receiving module is configured to receive a metadata request message sent by the second content distribution network.
  • the first sending module is further configured to transmit the second metadata to the second content distribution network according to the metadata request message.
  • the obtaining unit 301 is further configured to receive a service request message sent by the UE through the CP.
  • the content distribution network 300 further includes: a sending unit, configured to forward the service request message to the second content distribution network, so that the second content distribution network performs content delivery control on the user equipment according to the second metadata.
  • the policy needs to use the cache acceleration capability of the second content distribution network, and the content injection method is dynamic.
  • the reason for the acquisition mode, the first content distribution network, and the second content distribution network to communicate is to expand the coverage area.
  • the generating unit 302 includes:
  • the second determining module is configured to determine, according to the policy, a distribution manner as a dynamic acquisition manner.
  • the second generation module is configured to generate the second metadata according to the first metadata and the dynamic acquisition manner, where the second distribution mode parameter is a dynamic acquisition mode.
  • the distribution unit 303 includes:
  • the second receiving module is configured to receive a service request message sent by the user equipment by using the CP.
  • the second sending module is configured to send the service request message to the second content distribution network, where the service request message carries the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs.
  • the second receiving module is further configured to receive, according to the content requested by the user equipment, the second content distribution network A metadata request message sent by the identifier of the CP to which the content requested by the user equipment belongs.
  • the second sending module is further configured to transmit the second metadata to the second content distribution network according to the metadata request message.
  • the policy includes requesting to acquire the second metadata directly from the first content distribution network in order to enable the second content distribution network that directly delivers the content to the user equipment.
  • the generating unit 302 includes:
  • a third determining module configured to determine, according to the policy, a distribution manner as a hybrid distribution manner.
  • a third generation module configured to generate second metadata according to the first metadata and the hybrid distribution manner, where the distribution mode indicates that the distribution mode is a hybrid distribution mode, and the hybrid distribution mode is a static pre-distribution for the storage address of the second metadata
  • the distribution mode of the mode is sent to the second content distribution network, and the remaining metadata other than the storage address of the second metadata is sent to the second content distribution network through the dynamic acquisition mode.
  • the distribution unit 303 includes:
  • a third sending module configured to send, by using a static pre-distribution manner, a storage address of the second metadata to the second content distribution network, and send the second element to the second content distribution network by using a dynamic acquisition manner The remaining metadata outside the storage address of the data.
  • the obtaining unit 301 and the distributing unit 303 another implementation manner is that when the distribution parameter further includes a timeout time parameter, the obtaining unit 301 is further configured to receive the second content distribution network.
  • the binary data determines, according to the timeout time parameter, a metadata request message that has been timed out and sent; the distribution unit 303 is further configured to send the updated second metadata to the second content distribution network.
  • the distribution unit 303 is further configured to use the second metadata. Effectively, the verification success message is sent to the second content distribution network, and if the second metadata has expired, the updated second metadata is sent to the second content distribution network.
  • the distribution unit 303 is specifically configured to save the second metadata in the file, and divide the second content into a file by way of file transmission.
  • the sending network sends a file; or, the distributing unit 303 is specifically configured to save the second metadata in the message body, and send the message to the second content distribution network in a manner of message signaling transmission.
  • the first content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network, where the second metadata includes the first metadata and the distribution parameters of the second metadata. And transmitting, by the first content distribution network, the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter, so that the second content distribution network controls the content sent to the user equipment according to the received second metadata. .
  • the second content distribution network 400 includes:
  • the obtaining unit 401 is configured to receive second metadata that is sent by the first content distribution network according to the distribution manner indicated by the distribution mode parameter of the second metadata, where the second metadata includes the first metadata and the second metadata.
  • a distribution parameter the distribution parameter of the second metadata includes a distribution mode parameter, the distribution mode parameter is used to indicate a distribution manner of the second metadata, and the first metadata is sent by the content provider CP to the The first content distribution network.
  • the content control unit 402 is configured to control content sent to the user equipment according to the second metadata.
  • the distribution parameter of the second metadata further includes a distribution depth parameter.
  • the distribution depth parameter is a depth at which the second metadata is allowed to be distributed in the CDN interworking system, and the obtaining unit 401 includes:
  • the first receiving module is configured to receive a notification message sent by the first content distribution network, where the notification message includes a storage address of the second metadata.
  • a first sending module configured to send a metadata request to the first content distribution network according to the storage address
  • the first receiving module is further configured to receive second metadata transmitted by the first content distribution network.
  • the second content distribution network 400 also includes (not shown in Figure 4):
  • a distribution unit configured to decrement the distribution depth parameter by 1 to determine whether the distribution depth parameter is zero; when the distribution depth parameter is not zero, distribute the second element to the second content distribution network of the next level to the second level
  • the data is such that the second content distribution network of the next level controls the content transmitted to the user equipment according to the second metadata.
  • the obtaining unit 401 includes:
  • a second receiving module configured to receive a service request message that is forwarded by the first content distribution network, where the service request message is sent by the user equipment to the first content distribution network, where the service request message carries the user equipment request The identifier of the content or the identifier of the CP to which the content requested by the user equipment belongs.
  • a second sending module configured to send a metadata request message to the first content distribution network according to the identifier of the content requested by the user equipment or the identifier of the CP to which the content requested by the user equipment belongs;
  • the second receiving module is further configured to receive second metadata transmitted by the first content distribution network.
  • the obtaining unit 401 includes:
  • the first obtaining module is configured to obtain, from the first content distribution network, a static pre-distribution manner for the storage address of the second metadata.
  • a second obtaining module configured to acquire, from the first content distribution network, the remaining metadata other than the storage address of the second metadata according to the dynamic acquisition manner.
  • the second content distribution network 400 further includes: when the second metadata further includes a timeout parameter, the second content distribution network 400 further includes:
  • the first sending unit is configured to send a metadata request message to the first content distribution network according to the timeout time parameter, if the second metadata has expired.
  • the first receiving unit is configured to receive the updated second metadata sent by the first content distribution network. It should be noted that, for the second content distribution network 400, another achievable manner is that when the second metadata further includes a timing verification validity time interval parameter, the second content distribution network 400 further includes: And a second sending unit, configured to send an authentication request message to the first content distribution network according to the timing verification validity time interval parameter timing.
  • a second receiving unit configured to receive the updated second metadata sent by the first content distribution network when the second metadata has expired.
  • the content control unit 402 further includes:
  • a third sending module configured to send user identity information to a source server of the CP
  • the third receiving module is configured to receive an authentication result fed back by the source server of the CP.
  • the first metadata includes: data that the CP describes the content or data that controls the delivery of the content, and controls the delivery of the content.
  • the data includes: Restricted content is only allowed to be used within the preset area and/or the restricted content is only allowed to be used within the preset time.
  • the content control unit 402 is specifically configured to check whether the location where the user equipment is located is in an area designated by the CP that is not allowed to be distributed, and if yes, reject the service request of the user equipment. And/or, the content control unit 402 is specifically configured to check whether the time attribute of the content in the second metadata is within a time specified by the CP, and if not, reject the service request of the user equipment.
  • the content control unit 402 is specifically configured to use the timeout period in the second metadata.
  • the parameter determines whether the time attribute of the content of the second metadata expires, and if so, rejects the service request of the user equipment.
  • the second content distribution network acquires the second metadata from the first content distribution network, where the second metadata includes the first metadata and the distribution parameters of the second metadata, and the second content distribution network is configured according to The second metadata controls the content sent to the user equipment, and implements processing of the metadata in the CDN interworking scenario.
  • a CDN interworking system 500 includes: a CP 501, a first content distribution network 502, a second content distribution network 503, and a UE 504, where
  • the CP 501 is configured to provide the first content distribution network 502 with the first content distribution network to provide the first metadata.
  • the first content distribution network 502 can be a first content distribution network as shown in FIG. 3, and details are not described herein again.
  • the second content distribution network 503 may be a second content distribution network as shown in FIG. 4, and details are not described herein again.
  • the UE 504 is configured to send service request information to the first content distribution network.
  • the second content distribution network 503 in FIG. 5 may be used, if there are multiple seconds in the CDN interworking system 500.
  • the content distribution network in this case, the second content distribution network 503 in FIG. 5 may specifically include: a first level second content distribution network 5031 in FIG. 6, an intermediate level second content distribution network 5032, and a second level. Content distribution network 5033. It should be noted that if there are two second content distribution networks in the CDN interworking system 500, there is no intermediate level second content distribution network 5032 at this time, and the second content distribution network 503 includes only the first level second content distribution network. 5031. The last level second content distribution network 5033.
  • the second content distribution network 503 includes a first level second content distribution network 5031, an intermediate level second content distribution network 5032, and a last level second content distribution network 5033. . If there are more than three second content distribution networks in the CDN interworking system 500, the second content distribution network 503 includes only the first level second content distribution network 5031, the intermediate level second content distribution network 5032, and the last level second. Content distribution network 5033, but the intermediate level second content distribution network 5032 refers to all second content in the second content distribution network 503 except the first level second content distribution network 5031 and the last level second content distribution network 5033 Distribution network.
  • first-level second content distribution network 5031 the intermediate-level second content distribution network 5032, and the last-level second content distribution network 5033 included in the second content distribution network 503 will be described in detail.
  • a first level second content distribution network 5031 configured to obtain a second element from the first content distribution network According to, and sent to the intermediate level second content distribution network.
  • the intermediate level second content distribution network 5032 is configured to receive the second binary data from the first level second content distribution network and forward the data to the last level second content distribution network.
  • the last level second content distribution network 5033 is configured to receive the second metadata; and control the content sent to the user equipment according to the second metadata.
  • Another implementation is when the distribution method is dynamic acquisition mode.
  • the last level second content distribution network 5033 is configured to request the second metadata from the intermediate level second content distribution network 5032.
  • the intermediate level second content distribution network 5032 is configured to request second metadata from the first level second content distribution network 5031.
  • the first level second content distribution network 5031 is configured to obtain the second metadata from the first content distribution network and send the second metadata to the last level second content distribution network 5033.
  • the last level second content distribution network 5033 is configured to receive the second metadata from the first level second content distribution network 5031; and control the content sent to the user equipment according to the second metadata.
  • the first level second content distribution network 5031 is configured to obtain a storage address of the second metadata from the first content distribution network, and send the same to the intermediate level second content distribution network 5032.
  • the intermediate level second content distribution network 5032 is configured to receive the storage address of the second binary data from the first level second content distribution network, and forward 5033 to the last level second content distribution network.
  • the last level second content distribution network 5033 is configured to receive a storage address of the second metadata.
  • the last level second content distribution network 5033 is configured to request, directly from the first level second content distribution network 5031, the remaining metadata other than the storage address of the second metadata according to the storage address.
  • the last level second content distribution network 5033 is configured to acquire, from the first content distribution network, remaining metadata other than the storage address of the second binary data; and control the content sent to the user equipment according to the second metadata.
  • part of the metadata delivered by the static pre-distribution method includes at least the storage address of the remaining metadata in the first content distribution network, and the last-level second content distribution network may be based on the remaining The storage address of the residual metadata in the first content distribution network directly requests the first content distribution network to acquire the remaining metadata.
  • the first content distribution network generates the second metadata based on the first metadata and the policy of the first content distribution network, and the second content distribution network obtains the second metadata from the first content distribution network, where
  • the second metadata includes a first metadata and a distribution parameter of the second metadata, the distribution parameter includes a distribution mode parameter, and the first content distribution network distributes the second metadata to the second content distribution network according to the distribution manner indicated by the distribution mode parameter,
  • the second content distribution network controls the content sent to the user equipment according to the received second metadata, and implements processing of the metadata in the CDN interworking scenario.
  • the medium can be a read only memory, a magnetic disk or a compact disk or the like.

Landscapes

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

Abstract

本发明实施例公开了一种元数据的处理方法、装置及CDN互通***,用于在CDN互通的场景下实现对元数据的处理。本发明实施例方法包括:第一内容分发网络CDN获得内容提供商CP发送的第一元数据;所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络的策略生成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据的分发参数,所述第二元数据的分发参数包括分发方式参数,所述分发方式参数用于指示所述第二元数据的分发方式;所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内容分发网络分发所述第二元数据。

Description

一种元数据的处理方法、 装置及 CDN互通***
技术领域
本发明涉及通信技术领域,尤其涉及一种元数据的处理方法、装置及 CDN 互通***。
背景技术
内容分发网络( CDN , Content Delivery Network )通过在现有的网络之间 互通的协议(IP, Internet Protocol )传输网络中叠加一层新的网络架构, 将网 站的内容发布到最接近用户的网络 "边缘",使用户可以就近取得所需的内容, 以解决目前网络拥挤的状况,提高用户访问网络的响应速度。从技术上全面解 决由于网络带宽小、用户访问量大、 网点分布不均等原因所造成的用户访问网 络响应速度慢的问题。
内容提供商(CP, Content Provider )利用 CDN提供的业务来加快内容的 发布,使得 CP的用户可以享受到高服务质量的服务。 内容提供商在使用 CDN 完成内容加速时, 可以根据自己业务的需要来决定将内容完全放置到 CDN的 中心存储服务器上或者将内容仍旧驻留在自己的内容源服务器上,对于前者使 用的是 CDN提供的内容存储和緩存加速能力, 对于后者使用的是 CDN提供 的内容緩存加速能力。
现有技术中, 内容提供商为了对需要 CDN緩存加速的内容进行说明和控 制内容的最终交付, 会定义相应的元数据, 例如 CP限制内容仅允许在某些特 定区域内被观看, 或者 CP限制内容仅允许在某特定时间内被观看, 在 CDN 真正为用户提供服务前, CP需要将 CP定义的这部分元数据下发到 CDN, 供 CDN在后续业务过程中根据该元数据对内容交付进行控制等。 该技术仅考虑 了直接和 CP签约的 CDN的场景,但是任何一个单独 CDN的覆盖区域都是有 限的, 而用户却分散在各个不同的区域, 因此这些单独的 CDN之间必然需要 互通, 以相互使用对方的网络才能达到更广的覆盖区域, 最终给用户发送交付 内容的 CDN可能并不是直接和 CP签约的 CDN, 而现有技术中对于 CDN互 通的场景却未涉及,在该场景下哪些元数据需要传输及元数据怎样使用都没有 涉及。
发明内容
本发明实施例提供了一种元数据的处理方法、 装置及 CDN互通***, 用 于在 CDN互通的场景下实现对元数据的处理。
一方面, 本发明实施例提供的一种元数据的处理方法, 包括:
第一内容分发网络 CDN获得内容提供商 CP发送的第一元数据; 所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络 的策略生成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据 的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所述分发方式参 数用于指示所述第二元数据的分发方式;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据。
另一方面, 本发明实施例提供的另一种元数据的处理方法, 包括: 第二内容分发网络接收第一内容分发网络根据第二元数据的分发方式参 数指示的分发方式发送的第二元数据,所述第二元数据包括第一元数据以及所 述第二元数据的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所 述分发方式参数用于指示所述第二元数据的分发方式,所述第一元数据由内容 提供商 CP发送给所述第一内容分发网络;
所述第二内容分发网络根据所述第二元数据对发送给用户设备的内容进 行控制。
一方面, 本发明实施例提供的一种内容分发网络 CDN, 所述 CDN为与内 容提供商 CP签约的内容分发网络, 所述 CDN包括:
获取单元, 用于获得所述 CP发送的第一元数据;
生成单元,用于基于所述第一元数据以及所述第一内容分发网络的策略生 成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据的分发参 数, 所述第二元数据的分发参数包括分发方式参数, 所述分发方式参数用于指 示所述第二元数据的分发方式; 分发单元,用于根据所述分发方式参数指示的分发方式向所述第二内容分 发网络分发所述第二元数据。
另一方面, 本发明实施例提供的另一种内容分发网络 CDN, 所述 CDN包 括:
获取单元,用于接收第一内容分发网络根据第二元数据的分发方式参数指 示的分发方式发送的第二元数据,所述第二元数据包括第一元数据以及所述第 二元数据的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所述分 发方式参数用于指示所述第二元数据的分发方式,所述第一元数据由内容提供 商 CP发送给所述第一内容分发网络;
内容控制单元,用于根据所述第二元数据对发送给用户设备的内容进行控 制。
一方面,本发明实施例提供的一种 CDN互通***,包括: 内容提供商 CP、 如前述的与 CP签约的内容分发网络、 前述没有与 CP签约的内容分发网络、 用户设备, 其中, 所述用户设备用于向与 CP签约的内容分发网络发送业务请求信息。
从以上技术方案可以看出, 本发明实施例具有以下优点:
在本发明实施例中,第一内容分发网络基于第一元数据以及第一内容分发 网络的策略生成第二元数据, 其中, 第二元数据包括第一元数据以及第二元数 据的分发参数, 第二元数据的分发参数包括分发方式参数, 第一内容分发网络 根据该分发方式参数指示的分发方式向第二内容分发网络分发第二元数据,以 使第二内容分发网络根据接收到的第二元数据对发送给用户设备的内容进行 控制。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所 需要使用的附图作筒单地介绍,显而易见地, 下面描述中的附图仅仅是本发明 的一些实施例,对于本领域的技术人员来讲,还可以根据这些附图获得其他的 附图。 图 1为本发明实施例提供的元数据的处理方法的一个实施例的示意图; 图 为本发明实施例提供的元数据的处理方法的另一个实施例的示意图; 图 3为本发明实施例提供的内容分发网络的一个实施例的示意图; 图 4为本发明实施例提供的内容分发网络的另一个实施例的示意图; 图 5为本发明实施例提供的 CDN互通***的一个实施例的示意图; 图 6为本发明实施例提供的 CDN互通***的另一个实施例的示意图。
具体实施方式
本发明实施例提供了一种元数据的处理方法、 装置及 CDN互通***, 用 于在 CDN互通的场景下实现对元数据的处理。
为使得本发明的发明目的、 特征、优点能够更加的明显和易懂, 下面将结 合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、 完整地描 述,显然,下面所描述的实施例仅仅是本发明一部分实施例,而非全部实施例。 基于本发明中的实施例, 本领域的技术人员所获得的所有其他实施例,都属于 本发明保护的范围。
本发明实施例提供了一种元数据的处理方法,如图 1所示, 具体包括可以 包括:
101、 第一内容分发网络获得内容提供商 CP发送的第一元数据。
在本发明实施例中, 直接和 CP签约的 CDN被称之为上游内容分发网络 ( UpCDN, Up Content Delivery Network ), 即为本发明实施例中描述的第一内 容分发网络, 和第一内容分发网络互通的 CDN被称之为下游内容分发网络 ( DownCDN , Down Content Delivery Network ), 即为本发明实施例中描述的 第二内容分发网络,第二内容分发网络和第一内容分发网络签约可以相互使用 对方的网络资源, 在 CDN互通***中, 最终由第二内容分发网络处理用户请 求并为用户交付内容, 在实际应用中, 对于一个 CDN互通***而言可能存在 多个第二内容分发网络, 第一级第二内容分发网络和第一内容分发网络签约, 后续的第二内容分发网络又分别与前一级的第二内容分发网络签约,并由最后 一级的第二内容分发网络直接为用户交付内容。
在本发明实施例中, CP和第一内容分发网络签约, CP可以使用第一内容 分发网络的中心存储能力和緩存加速能力帮助为用户设备实现内容交付业务, 签约后 CP为了对内容进行说明或者对后续 CDN的内容交付进行控制, CP定 义了相应的元数据, 本发明实施例中将 CP定义的这些元数据称之为第一元数 据, CP向事先和第一内容分发网络协商好的目录上传第一元数据, 则第一内 容分发网络能够接收到 CP发送的第一元数据, 并向 CP反馈接收成功。
需要说明的是, 在本发明实施例中, 第一元数据具体可以包括: CP对内 容进行说明的数据或对内容交付进行控制的数据。对内容交付进行控制的数据 在特定时间内被使用; 例如, CP不允许除了北京区域以外的用户使用该内容, CP不允许用户在每天 22:00点之后使用该内容等。
102、 第一内容分发网络基于第一元数据以及第一内容分发网络的策略生 成第二元数据,第二元数据包括第一元数据以及第二元数据的分发参数,其中, 分发参数包括分发方式参数。
在本发明实施例中, 第一内容分发网络接收到第一元数据之后, 第一内容 分发网络可以基于该第一元数据以及第一内容分发网络的策略生成第二元数 据, 其中生成的第二元数据包括第一元数据以及第二元数据的分发参数,分发 参数指的是第二元数据怎样被分发到第二内容分发网络的参数,分发参数包括 分发方式参数, 分发方式参数用于指示第二元数据的分发方式。 第一内容分发 网络可以根据 CDN服务运营商或管理员预先定义好的的策略确定分发方式参 数, 分发方式参数具体可以包括三种: 静态预分发方式、 动态获取方式和混合 分发方式, 其中,静态预分发方式指的是第二内容分发网络收到用户设备发起 业务请求信息之前由第一内容分发网络将元数据分发到第二内容分发网络中, 由第二内容分发网络根据第二元数据对发送给用户设备的内容进行控制;动态 获取方式指的是在第二内容分发网络收到用户设备发起业务请求信息之后,由 第二内容分发网络向第一内容分发网络请求元数据,然后由第一内容分发网络 将元数据发送到第二内容分发网络中,由第二内容分发网络根据第二元数据对 发送给用户设备的内容进行控制;混合分发方式指的是为对于第二元数据的部 分元数据通过静态预分发方式发送给第二内容分发网络,对于第二元数据的剩 余部分元数据通过动态获取方式发送给第二内容分发网络,即混合分发方式中 将第二元数据分成两部分,其中一部分元数据采用静态预分发方式的分发方式 发送给第二内容分发网络,将剩余部分元数据采用动态获取方式的分发方式发 送给第二内容分发网络, 需要说明的是,在实际应用中由具体的场景来决定第 二元数据中的哪些部分通过静态预分发方式发送,哪些部分通过动态获取方式 发送, 此处不作限定, 其中, 通过静态预分发方式下发的部分元数据中至少包 含第二元数据在第一内容分发网络中的存储地址,最后一级第二内容分发网络 可以根据所述存储地址直接向第一内容分发网络请求获取剩余部分元数据。
在本发明实施例中, 第一内容分发网络的策略可以由 CDN服务运营商或 管理员预先定义好, 在实际应用中, 可以有多种策略, 接下来进行举例说明, 并不做限定。例如: 第一内容分发网络和第二内容分发网络互通需要使用的所 述第二内容分发网络的中心存储能力和緩存加速能力、第一内容分发网络和第 二内容分发网络互通需要使用的第二内容分发网络的緩存加速能力、内容的注 入方式为静态预注入、 内容的注入方式为动态获取方式、或者第一内容分发网 络和第二内容分发网络互通的原因,第一内容分发网络和第二内容分发网络互 通的原因具体可以包括流量卸载、 扩展覆盖区域等。
需要说明的是,在实际应用中,对于步骤 102第一内容分发网络基于第一 元数据以及第一内容分发网络的策略生成第二元数据, 一种可实现的方式是, 具体可以包括:
Al、 第一内容分发网络根据策略, 将分发方式确定为静态预分发方式; A2、 第一内容分发网络根据第一元数据和静态预分发方式生成第二元数 据。
其中, 分发方式参数指示为静态预分发方式, 第二元数据中的分发参数还 包括分发深度参数, 其中, 分发深度参数为第二元数据在 CDN互通***中允 许分发的深度。
需要说明的是, 在实际应用中, 分发参数还可以包括多种参数, 例如: 超 时时间参数、 定时验证有效性时间间隔参数、 用户鉴权参数等, 将在后续实施 例中分别给出详细说明。
对于步骤 A1 , 第一内容分发网络可以根据策略的不同确定不同的分发方 式, 接下来进行详细的说明: 当 CP需要使用第二内容分发网络的中心存储能力和緩存加速能力时, 第 一内容分发网络根据该策略可以将分发方式参数确定为静态预分发方式; 当
CP下发的第一元数据中指明内容的注入方式为静态预注入时, 第一内容分发 网络根据该策略可以将分发方式参数确定为静态预分发方式;当第一内容分发 网络和第二内容分发网络互通的原因为流量卸载时,第一内容分发网络根据该 策略可以将分发方式参数确定为静态预分发方式,当然也可以根据前述条件中 的一种或多种的组合,第一内容分发网络根据该策略可以将分发方式参数确定 为静态预分发方式。
对于步骤 A2, 当生成的第二元数据中包括的分发方式为静态预分发方式 时, 第二元数据的分发参数还可以包括分发深度参数,分发深度参数为第二元 数据在 CDN互通***中允许分发的深度。 例如, 本发明实施例中第一内容分 发网络可以设定分发深度参数取值为 4, 则表示此第二元数据除了第一内容分 发网络以外还可以串联下发给三级 CDN, 4叚设这三级 CDN具体为第二内容分 发网络、 第二内容分发网络 1、 第二内容分发网络 2, 第二元数据的分发路径 可以为: 第一内容分发网络- >第二内容分发网络- >第二内容分发网络 1->第二 内容分发网络 2。 此时即使第二内容分发网络 2和第二内容分发网络 3互通, 但因为分发深度参数取值为 4, 根据该分发深度参数为零, 第二元数据不能继 续分发到第二内容分发网络 3。
需要说明的是,在实际应用中,对于步骤 102第一内容分发网络基于第一 元数据以及第一内容分发网络的策略生成第二元数据, 另一种可实现的方式 是, 具体可以包括:
A3、 第一内容分发网络根据策略, 将分发方式确定为动态获取方式;
A4、 第一内容分发网络根据第一元数据和动态获取方式生成第二元数据, 第二元数据的分发参数中的分发方式参数指示的分发方式为动态获取方式。
对于步骤 A3, 第一内容分发网络可以根据策略的不同确定不同的分发方 式, 接下来进行详细的说明:
当 CP仅需要使用第二内容分发网络的緩存加速能力时, 第一内容分发网 络根据该策略可以将分发方式确定为动态获取方式; 当 CP下发的第一元数据 中指明内容的注入方式为动态获取方式时,第一内容分发网络根据该策略可以 将分发方式确定为动态获取方式;当第一内容分发网络和第二内容分发网络互 通的原因为扩展覆盖区域时,第一内容分发网络根据该策略可以将分发方式确 定为动态获取方式, 当然也可以根据前述条件中的一种或多种的组合, 第一内 需要说明的是,在实际应用中,对于步骤 102第一内容分发网络基于第一 元数据以及第一内容分发网络的策略生成第二元数据, 另一种可实现的方式 是, 具体可以包括:
A5、 第一内容分发网络根据策略, 将分发方式确定为混合分发方式; A6、 第一内容分发网络根据第一元数据和混合分发方式生成第二元数据。 其中,第二元数据的分发参数中的分发方式参数指示的分发方式为混合分 发方式。
对于步骤 A5, 第一内容分发网络可以根据策略的不同确定不同的分发方 式, 接下来进行详细的说明:
当第一内容分发网络的策略是为了使第二内容分发网络直接从第一内容 分发网络请求获取第二元数据时,该第二内容分发网络直接向用户设备交付内 容,第一内容分发网络根据该策略可以将分发方式确定为混合分发方式。例如, 在一个 CDN互通***中, 与 CP签约的是第一内容分发网络, 在该***中具 有多个第二内容分发网络,为了使直接向用户设备交付内容的第二内容分发网 络直接从第一内容分发网络请求获取第二元数据,第一内容分发网络可以根据 策略将分发方式确定为混合分发方式。
需要说明的是, 在本发明实施例中, 在步骤 101 中第一内容分发网络从 CP接收到的第一元数据和另外在步骤 102中第一内容分发网络生成的第二元 数据分别是两种不同的元数据,在步骤 101中之所以命名为第一元数据只是为 了和后续步骤 102中出现的第二元数据相区别, 其 "第一" 和 "第二" 并不具 有时序上或者逻辑上的任何关系,当出现第一元数据时不是一定要出现第二元 数据, 当然在出现第二元数据时也不是一定要出现第一元数据, 只为了表示分 别是两个不同的元数据而已。当然为了区别步骤 101和步骤 102中分别出现的 元数据还可以采用其它的命名方式,只要能够表示这个元数据是不同的两个元 数据即可, 例如, 可以分别命名为元数据 a和元数据 b等。 103、 第一内容分发网络根据分发方式参数指示的分发方式向第二内容分 发网络分发第二元数据。
在本发明实施例中, 第一内容分发网络生成第二元数据之后,根据分发方 式参数指示的分发方式向第二内容分发网络分发第二元数据。
在实际应用中,第一内容分发网络根据分发方式参数指示的分发方式向第 二内容分发网络分发第二元数据具体可以包括:第一内容分发网络采用静态预 分发方式的分发方式向第二内容分发网络分发第二元数据。若分发方式为静态 预分发方式,则第一内容分发网络根据分发方式参数指示的分发方式向第二内 容分发网络分发第二元数据具体可以包括如下步骤:
Bl、 第一内容分发网络向第二内容分发网络发送通知消息, 通知消息包 括第二元数据的存储地址,以使第二内容分发网络向第二元数据的存储地址发 送元数据请求消息;
B2、 第一内容分发网络接收第二内容分发网络发送的元数据请求消息;
B3、 第一内容分发网络根据该元数据请求消息向第二内容分发网络传输 第二元数据。
对于步骤 B1 , 当分发方式为静态预分发方式时, 第一内容分发网络在用 户设备的请求来临之前主动向第二内容分发网络发送通知消息以使第二内容 分发网络来获取第二元数据, 其中通知消息中包含第二元数据的存储地址, 另 外通知消息中还可以包括获取方式, 需要说明的是, 本发明实施例中若第一内 容分发网络与第二内容分发网络之间已经预先约定好采用什么样的获取方式 来实现第二元数据的传输, 则通知消息中不需要包含获取方式, 若第一内容分 发网络语第二内容分发网络之间没有预先约定好采用什么样的获取方式,则通 知消息中需要包含获取方式。例如本发明实施例中存储地址为第二元数据在第 一内容分发网络中的统一资源定位符( URL , Uniform Resource Locator ) , 例 ^口 http:〃 sina.www.cdn.com/metadata/sina.xml,获取方式为通过超文本传输十办议 ( HTTP, Hyper Text Transfer Protocol )方式来获取, 当然仍然存在其他的存 储地址和获取方式,例如存储地址为第一内容分发网络的文件传输协议( FTP, File Transfer Protocol )地址, 获取方式是 FTP文件下载方式。
对于步骤 B2, 当第二内容分发网络接收到该通知消息之后, 第二内容分 发网络向第一内容分发网络反馈通知消息接收响应,然后第二内容分发网络向 存储地址发送元数据请求消息, 以获取第二元数据, 即向第一内容分发网络请 求第二元数据。
对于步骤 B3, 第一内容分发网络根据元数据请求消息向第二内容分发网 络传输第二元数据, 例如, 第一内容分发网络按照 HTTP方式向第二内容分发 网络传输第二元数据, 或, 第一内容分发网络按照 FTP文件下载方式向第二 内容分发网络传输第二元数据。
需要说明的是,在本发明实施例中, 第一内容分发网络根据元数据请求消 息向第二内容分发网络传输第二元数据之后, 还可以包括如下步骤:
第一内容分发网络接收用户设备发送的业务请求消息,第一内容分发网络 向第二内容分发网络转发业务请求消息,以使第二内容分发网络根据第二元数 据对用户设备进行内容交付控制。
其中, 由于第一内容分发网络是直接与 CP签约的 CDN,用户设备点击网 站上某个内容的连接后, 对应的业务请求消息首先被路由到和 CP直接签约的 第一内容分发网络中, 第一内容分发网络根据业务请求消息中的信息,如网络 之间互连的协议 ( IP, Internet Protocol )地址, 检查发现用户设备当前位于第 一内容分发网络网络未覆盖到的区域, 第一内容分发网络进一步检查互通的 CDN所覆盖的区域, 检查发现第二内容分发网络的网络覆盖该区域, 可以通 过第二内容分发网络为用户设备提供服务,因此用户的业务请求消息最终被路 由到第二内容分发网络。
在实际应用中,第一内容分发网络根据分发方式参数指示的分发方式向第 二内容分发网络分发第二元数据具体可以包括:第一内容分发网络采用动态获 取方式的分发方式向第二内容分发网络分发第二元数据。若分发方式为动态获 取方式,则第一内容分发网络根据分发方式参数指示的分发方式向第二内容分 发网络分发第二元数据具体可以包括如下步骤:
B4、 第一内容分发网络接收用户设备发送的业务请求消息;
B5、 第一内容分发网络将业务请求消息发送给第二内容分发网络, 业务 请求消息中携带有用户设备请求的内容的标识或用户设备请求的内容所属 CP 的标识; B6、 第一内容分发网络接收第二内容分发网络发送的元数据请求消息 , 所述元数据请求消息为所述第二内容分发网络根据所述用户设备请求的内容 的标识或所述用户设备请求的内容所属 CP的标识生成;
B7、 第一内容分发网络根据元数据请求消息向第二内容分发网络传输第 二元数据。
对于步骤 B4, 由于第一内容分发网络是直接与 CP签约的 CDN, 用户设 备点击网站上某个内容的连接后, 对应的业务请求消息首先被路由到和 CP直 接签约的第一内容分发网络中。
对于步骤 B5 , 第一内容分发网络根据业务请求消息中的信息, 如网络之 间互连的协议( IP , Internet Protocol )地址, 检查发现用户设备当前位于第一 内容分发网络网络未覆盖到的区域, 第一内容分发网络进一步检查互通的 CDN所覆盖的区域, 检查发现第二内容分发网络的网络覆盖该区域, 可以通 过第二内容分发网络为用户设备提供服务,因此用户的业务请求消息最终被路 由到第二内容分发网络。
对于步骤 B6,业务请求消息中携带有 UE请求的内容的标识或 UE请求的 内容所属 CP的标识, 第二内容分发网络向第一内容分发网络发送元数据请求 消息,元数据请求消息中携带需要请求的元数据的标识, 可以是具体的元数据 文件标只, 口 sina.www.cdn.com/metadata/sina.xml, 也可以是内容标只, 表示 请求的是该内容关联的元数据, ^;口 www.cpl.com/video/avantar.rm, 还可以是 CP域名, 表示请求的是该 CP的所有元数据, 如 www.cpl.com;UpCDN。
对于步骤 B7, 第一内容分发网络接收到元数据请求消息之后, 经过对第 二内容分发网络的身份进行验证, 返回请求的元数据。 例如, 第一内容分发网 络按照 HTTP方式向第二内容分发网络传输第二元数据, 或, 第一内容分发网 络按照 FTP文件下载方式向第二内容分发网络传输第二元数据。
在实际应用中, 若分发方式为混合分发方式, 则第一内容分发网络根据分 发方式参数指示的分发方式向第二内容分发网络分发第二元数据具体可以包 括如下步骤:
对于第二元数据的存储地址通过静态预分发方式的分发方式发送给第二 内容分发网络, 具体可以包括如下步骤: B8、 第一内容分发网络向第二内容分发网络发送通知消息, 通知消息包 括部分元数据的存储地址,以使第二内容分发网络向部分元数据的存储地址发 送元数据请求消息;
B9、 第一内容分发网络接收第二内容分发网络发送的元数据请求消息; B 10、 第一内容分发网络根据该元数据请求消息向第二内容分发网络传输 存储地址。
对于所述第二元数据的存储地址以外的剩余元数据通过动态获取方式的 分发方式发送给第二内容分发网络, 具体可以包括如下步骤:
B 11、 第一内容分发网络接收用户设备发送的业务请求消息;
B12、 第一内容分发网络将业务请求消息发送给第二内容分发网络, 业务 请求消息中携带有用户设备请求的内容的标识或用户设备请求的内容所属 CP 的标识;
B 13、 第一内容分发网络接收第二内容分发网络发送的元数据请求消息, 所述元数据请求消息为所述第二内容分发网络根据所述用户设备请求的内容 的标识或所述用户设备请求的内容所属 CP的标识生成;
B 14、 第一内容分发网络根据元数据请求消息向第二内容分发网络传输剩 余元数据。
在步骤 103 第一内容分发网络根据分发方式参数指示的分发方式向第二 内容分发网络分发第二元数据之后, 还可以包括如下步骤:
当第二元数据还包括超时时间参数时, 则在第二元数据已经超时失效时, 第一内容分发网络接收第二内容分发网络发送的元数据请求消息,第一内容分 发网络向第二内容分发网络发送更新的第二元数据。
其中,超时时间参数指的是为第二元数据设置一个具体超时时间点, 例如 将超时时间点设置为 2011年 11月 04日 02:00:00, 若第二内容分发网络接收 到第二元数据之后, 查看第二元数据的时间属性, 若超过该超时时间点, 表明 该第二元数据所有内容失效,第二内容分发网络由于第二元数据已经超时失效 向第一内容分发网络发送元数据请求消息, 以获取更新的第二元数据。
在步骤 103 第一内容分发网络根据分发方式参数指示的分发方式向第二 内容分发网络分发第二元数据之后, 还可以包括如下步骤: 当分发参数还包括定时验证有效性时间间隔参数时,第一内容分发网络接 收第二内容分发网络根据定时验证有效性时间间隔参数定时发送的验证请求 消息, 若该第二元数据有效, 向第二内容分发网络发送验证成功消息, 若第二 元数据已经失效, 向第二内容分发网络发送更新的第二元数据。
其中, 定时验证有效性时间间隔参数指的是设定一个时间间隔, 该间隔表 示需要第二内容分发网络定时的向第一内容分发网络来验证第二元数据的有 效性, 例如可以设置时间间隔为 24小时, 则每隔 24小时第二内容分发网络会 向第一内容分发网络来验证第二元数据的有效性,以保证第二内容分发网络能 够获取到更新的第二元数据。
需要说明的是,在本发明实施例中, 第一内容分发网络根据分发方式参数 指示的分发方式向第二内容分发网络分发第二元数据具体可以为:第一内容分 发网络将第二元数据保存在文件中,第一内容分发网络以文件传输的方式向第 二内容分发网络分发第二元数据; 或, 第一内容分发网络将第二元数据携带在 消息体中,第一内容分发网络以消息信令传输的方式向第二内容分发网络分发 第二元数据。
例如, 第一内容分发网络可以将第二元数据存储在文件中,通过该文件传 输给第二内容分发网络,第一内容分发网络也可以将第二元数据携带在消息体 如可扩展标记语言 ( XML, Extensible Markup Language ) 中, 通过消息信令 向第二内容分发网络传输。
在本发明实施例中,第一内容分发网络基于第一元数据以及第一内容分发 网络的策略生成第二元数据, 其中, 第二元数据包括第一元数据、 第二元数据 的分发参数,第一内容分发网络根据分发方式参数指示的分发方式向第二内容 分发网络分发第二元数据,以使第二内容分发网络根据第二元数据对发送给用 户设备的内容进行控制。
以上实施例介绍了本发明实施例由第一内容分发网络实现的对元数据的 处理方法,接下来介绍本发明实施例由第二内容分发网络实现的对元数据的处 理方法, 请参阅图 2所示, 包括步骤:
201、 第二内容分发网络接收第一内容分发网络根据第二元数据的分发方 式参数指示的分发方式发送的第二元数据。 其中, 第二元数据包括第一元数据以及第二元数据的分发参数, 第二元数 据的分发参数包括分发方式参数,分发方式参数用于指示所述第二元数据的分 发方式, 第一元数据由内容提供商 CP发送给第一内容分发网络。
在本发明实施例中, 和第一内容分发网络互通的 CDN被称之为下游内容 分发网络, 即本发明实施例中的第二内容分发网络, 第二内容分发网络和第一 由第二内容分发网络处理用户请求并为用户交付内容,在实际应用中,对于一 个 CDN互通***而言可能存在多个第二内容分发网络, 第一级第二内容分发 网络和第一内容分发网络签约,后续的第二内容分发网络又分别与前一级的第 二内容分发网络签约, 由最后一级的第二内容分发网络直接为用户交付内容。
在本发明实施例中, 第一内容分发网络可以基于该第一元数据以及第一 内容分发网络的策略生成第二元数据,其中生成的第二元数据包括第一元数据 和分发方式参数, 第二内容分发网络从第一内容分发网络获取第二元数据。其 中, 分发方式指的是在 CDN互通***中如何进行元数据的分发, 第一内容分 发网络可以根据 CDN服务运营商或管理员预先定义好的的策略确定分发方 式, 分发方式具体可以包括三种: 静态预分发方式、 动态获取方式和混合分发 方式, 这三种分发方式的具体说明请参阅上述实施例一中的相关描述, 此处不 再赘述。
需要说明的是,在实际应用中, 第二内容分发网络接收第一内容分发网络 根据第二元数据的分发方式参数指示的分发方式发送的第二元数据,一种可实 现的方式是, 包括:
Cl、 当分发方式为静态预分发方式时, 第二元数据的分发参数还包括分 发深度参数, 第二内容分发网络接收第一内容分发网络发送的通知消息, 通 知消息包括第二元数据的存储地址。
C2、 第二内容分发网络根据存储地址向第一内容分发网络发送元数据请 求消息。
C3、 第二内容分发网络接收第一内容分发网络传输的第二元数据。
对于步骤 C1 , 当分发方式为静态预分发方式时, 第一内容分发网络在用 户设备的请求来临之前主动向第二内容分发网络发送通知消息,以使第二内容 分发网络来获取第二元数据, 其中, 通知消息中包含第二元数据的存储地址, 另外通知消息中还可以包括获取方式, 需要说明的是, 本发明实施例中若第一 内容分发网络与第二内容分发网络之间已经预先约定好采用什么样的获取方 式来实现第二元数据的传输, 则通知消息中不需要包含获取方式, 若第一内容 分发网络语第二内容分发网络之间没有预先约定好采用什么样的获取方式,则 通知消息中需要包含获取方式。第二内容分发网络接收第一内容分发网络发送 的通知消息, 存储地址为第二元数据在第一内容分发网络中的 URL, 例如 http://sina.www.cdn.com/metadata/sina.xml,获取方式为通过 HTTP方式来获取, 当然也可以有其他的存储地址和获取方式,例如存储地址为第一内容分发网络 的 FTP地址, 获取方式是 FTP文件下载方式, 第二内容分发网络接收到该通 知消息之后, 就可以获知向哪个存储地址, 以哪种获取方式获取第二元数据。
另外, 分发深度参数为第二元数据在 CDN互通***中允许分发的深度, 例如, 本发明实施例中第一内容分发网络可以设定分发深度参数取值为 4, 则 表示此第二元数据除了第一内容分发网络以外还可以串联下发给三级 CDN, 假设这三级 CDN具体为第二内容分发网络、 第二内容分发网络 1、 第二内容 分发网络 2, 第二元数据的分发路径可以为: 第一内容分发网络- >第二内容分 发网络 ->第二内容分发网络 1->第二内容分发网络 2。 此时即使第二内容分发 网络 2和第二内容分发网络 3互通, 但因为分发深度参数取值为 4, 根据该分 发深度参数元, 第二元数据不能继续分发到第二内容分发网络 3。
对于步骤 C2, 当第二内容分发网络接收到该通知消息之后, 第二内容分 发网络向第一内容分发网络反馈通知消息接收响应,然后第二内容分发网络按 照获取方式和存储地址向存储地址发送元数据请求消息, 以获取第二元数据, 即向第一内容分发网络请求元数据。
对于步骤 C3, 第一内容分发网络根据获取方式向第二内容分发网络传输 第二元数据, 例如, 第一内容分发网络按照 HTTP方式向第二内容分发网络传 输第二元数据, 或, 第一内容分发网络按照 FTP文件下载方式向第二内容分 发网络传输第二元数据,则第二内容分发网络接收第一内容分发网络传输的第 二元数据。
需要说明的是, 步骤 C3第二内容分发网络接收第一内容分发网络传输的 第二元数据之后还具体可以包括如下步骤:第二内容分发网络将分发深度参数 减 1 ,第二内容分发网络判断分发深度参数是否为零,若分发深度参数不为零, 然后将第二元数据向下一级的第二内容分发网络分发第二元数据,以使下一级 的第二内容分发网络根据第二元数据对发送给用户设备的内容进行控制。
例如: 本发明实施例中第一内容分发网络可以设定分发深度参数取值为
4 , 则表示此第二元数据除了第一内容分发网络以外还可以串联下发给三级 CDN, 假设这三级 CDN具体为第二内容分发网络、 第二内容分发网络 1、 第 二内容分发网络 2, 第二元数据的分发路径可以为: 第一内容分发网络- >第二 内容分发网络 ->第二内容分发网络 1->第二内容分发网络 2, 第一内容分发网 络接收到第二元数据之后将分发深度参数减 1 , 然后将第二元数据发送给第二 内容分发网络,第二内容分发网络接收到第二元数据之后判断分发深度参数为 3, 将该分发深度参数减 1后, 发送给第二内容分发网络 1 , 第二内容分发网 络 1接收到第二元数据之后将该分发深度参数减 1 , 判断分发深度参数为 2, 分发深度参数发送给第二内容分发网络 2 , 第二内容分发网络 2接收到第二元 数据之后将分发深度参数减 1发现此时分发深度参数为 0, 此时即使第二内容 分发网络 2和第二内容分发网络 3互通, 但因为分发深度参数取值为 4, 根据 该分发深度参数为零, 第二元数据不能继续分发到第二内容分发网络 3。
需要说明的是,在实际应用中, 第二内容分发网络接收第一内容分发网络 根据第二元数据的分发方式参数指示的分发方式发送的第二元数据,另一种可 实现的方式是, 包括:
C4、 当分发方式为动态获取方式时, 第二内容分发网络接收第一内容分 发网络转发的业务请求消息,第二内容分发网络的本地保存有针对业务请求消 息需要联系的第一内容分发网络的地址,业务请求消息中携带有用户设备请求 的内容的标识或用户设备请求的内容所属 CP的标识。
C5、 第二内容分发网络根据用户设备请求的内容的标识或用户设备请求 的内容所属 CP的标识向第一内容分发网络发送元数据请求消息。
C6、 第二内容分发网络接收第一内容分发网络传输的第二元数据。
对于步骤 C4, 由于第一内容分发网络是直接与 CP签约的 CDN, 用户设 备点击网站上某个内容的连接后, 对应的业务请求消息首先被路由到和 CP直 接签约的第一内容分发网络中,第一内容分发网络根据业务请求消息中的信息 如 IP地址检查发现用户设备当前位于第一内容分发网络网络未覆盖到的区 域, 第一内容分发网络进一步检查互通的 CDN所覆盖的区域, 检查发现第二 内容分发网络的网络覆盖该区域,可以通过第二内容分发网络为用户设备提供 服务, 因此用户的业务请求消息最终被路由到第二内容分发网络。 业务请求消 息中携带有 UE请求的内容的标识或 UE请求的内容所属 CP的标识。
对于步骤 C5 , 第二内容分发网络根据用户设备请求的内容的标识或用户 设备请求的内容所属 CP的标识向第一内容分发网络发送元数据请求消息, 元 数据请求消息中携带需要请求的元数据的标识, 可以是具体的元数据文件标 只, ^口 sina.www.cdn.com/metadata/sina.xml, 也可以是内容标只, 表示请求的 是该内容关联的元数据, 口 www.cpl.com/video/avantar.rm,还可以是 CP i或名 , 表示请求的是该 CP的所有元数据, 如 www.cpl.com;第一内容分发网络。
对于步骤 C6, 第一内容分发网络接收到元数据请求消息之后, 经过对第 二内容分发网络的身份进行验证, 返回请求的元数据。 例如, 第一内容分发网 络按照 HTTP方式向第二内容分发网络传输第二元数据, 或, 第一内容分发网 络按照 FTP文件下载方式向第二内容分发网络传输第二元数据。
需要说明的是,在实际应用中, 第二内容分发网络接收第一内容分发网络 根据第二元数据的分发方式参数指示的分发方式发送的第二元数据,另一种可 实现的方式是, 包括:
C7、 当分发方式为混合分发方式时, 对于第二元数据的存储地址, 第二 内容分发网络按照静态预分发方式从第一内容分发网络获取。
C8、 对于第二元数据的存储地址以外的剩余元数据, 第二内容分发网络 按照动态获取方式从第一内容分发网络获取。
对于步骤 C7, 具体可以包括如下步骤:
C9、 当分发方式为静态预分发方式时, 第二元数据的分发参数还包括分 发深度参数, 第二内容分发网络接收第一内容分发网络发送的通知消息, 通 知消息包括第二元数据的存储地址。
C10、 第二内容分发网络按照存储地址向第一内容分发网络发送元数据请 求消息。 CI 1、 第二内容分发网络接收第一内容分发网络传输的存储地址。
对于步骤 C8, 具体可以包括如下步骤:
C12、 当分发方式为动态获取方式时, 第二内容分发网络接收第一内容分 发网络转发的业务请求消息,业务请求消息中携带有用户设备请求的内容的标 识或用户设备请求的内容所属 CP的标识。
C13、 第二内容分发网络根据用户设备请求的内容的标识或用户设备请求 的内容所属 CP的标识向第一内容分发网络发送元数据请求消息。
C 14、 第二内容分发网络接收第一内容分发网络传输的剩余元数据。
在步骤 201第二内容分发网络从第一内容分发网络获取第二元数据之后, 还可以包括如下步骤:
当分发参数还包括超时时间参数时,根据超时时间参数若第二元数据已经 超时失效, 第二内容分发网络向第一内容分发网络发送元数据请求消息, 第 二内容分发网络接收第一内容分发网络发送的更新的第二元数据。
其中,超时时间参数指的是为第二元数据设置一个具体超时时间点, 例如 将超时时间点设置为 2011年 11月 04日 02:00:00, 若第二内容分发网络接收 到第二元数据之后, 查看第二元数据的时间属性, 若超过该超时时间点, 表明 该第二元数据所有内容失效,第二内容分发网络由于第二元数据已经超时失效 向第一内容分发网络发送元数据请求消息以获取更新的第二元数据。
在步骤 201第二内容分发网络从第一内容分发网络获取第二元数据之后, 还可以包括如下步骤:
当分发参数还包括定时验证有效性时间间隔参数时,第二内容分发网络根 据定时验证有效性时间间隔参数定时向第一内容分发网络发送验证请求消息, 若第二元数据已经失效,第二内容分发网络接收第一内容分发网络发送的更新 的第二元数据。
其中,定时验证有效性时间间隔参数指的是设定一个时间间隔需要第二内 容分发网络定时的向第一内容分发网络来验证第二元数据的有效性,例如可以 设置时间间隔为 24小时,则每隔 24小时第二内容分发网络会向第一内容分发 网络来验证第二元数据的有效性,以保证第二内容分发网络能够获取到更新的 第二元数据。 需要说明的是,在本发明实施例中, 第二内容分发网络接收第一内容分发 网络根据第二元数据的分发方式参数指示的分发方式发送的第二元数据具体 可以为:第二内容分发网络以文件传输的方式从第一内容分发网络获取第二元 数据, 其中第二元数据保存在文件中; 或, 第二内容分发网络以信令传输的方 式从第一内容分发网络获取第二元数据, 其中第二元数据保存在消息体中。
例如, 第一内容分发网络可以将第二元数据存储在文件中,通过该文件传 输给第二内容分发网络,第一内容分发网络也可以将第二元数据保存在消息体 如 XML中, 通过消息信令向第二内容分发网络传输。
202、 第二内容分发网络根据第二元数据对发送给用户设备的内容进行控 制。
在本发明实施例中,第二内容分发网络从第一内容分发网络获取第二元数 据之后,第二内容分发网络根据该第二元数据对发送给用户设备的内容进行控 制。
在实际应用中, 需要说明的是, 第一元数据具体可以包括: CP对内容进 行说明的数据或对内容交付进行控制的数据。对内容交付进行控制的数据具体 可以包括: 限制内容仅允许在预置区域内被使用和 /或者限制内容仅允许在预 置时间内被使用; 例如, CP不允许除了北京区域以外的用户使用该内容, CP 不允许在每天 22:00点之后使用该内容等。 第二内容分发网络根据第二元数据 对发送给用户设备的内容进行控制具体可以包括:
第二内容分发网络检查用户设备所处位置是否处于 CP指定的不允许分发 的区域, 若是, 拒绝用户设备的业务请求。 和 /或, 第二内容分发网络检查第 二元数据中的内容的时间属性是否处于 CP指定的时间内, 若不是, 拒绝用户 设备的业务请求。
需要说明的是,第二内容分发网络根据第二元数据对发送给用户设备的内 容进行控制, 还包括如下步骤:
当第二元数据还包括用户鉴权参数时, 第二内容分发网络向 CP发送用户 身份信息, 第二内容分发网络接收 CP反馈的身份验证结果, 只有当身份验证 结果通过之后, 才能向用户设备交付内容。
其中, 用户鉴权参数指的是需要验证发起业务请求的用户设备的用户身 份, 若第二元数据中包括有该用户鉴权参数, 则第二内容分发网络接收到元数 据之后会向 CP发送用户身份信息, CP接收带用户身份信息之后, CP验证用 户设备的用户身份信息, CP向第二内容分发网络反馈身份验证结果。
需要说明的是,第二内容分发网络根据第二元数据对发送给用户设备的内 容进行控制, 还可以包括如下步骤:
当分发参数还包括超时时间参数时,第二内容分发网络根据第二元数据中 的超时时间参数判断第二元数据是否超时失效, 若是,拒绝用户设备的业务请 求。
在本发明实施例中,第二内容分发网络从第一内容分发网络获取第二元数 据, 其中, 第二元数据包括第一元数据、 第二元数据的分发参数, 第二内容分 发网络根据第二元数据对发送给用户设备的内容进行控制, 实现了在 CDN互 通场景下的对元数据的处理。
以上实施例介绍了本发明实施例分别由第一内容分发网络和第二内容分 发网络实现的对元数据的处理方法,接下来介绍本发明实施例提供的第一内容 分发网络。请参阅图 3所示,一种 CDN300,该 CDN300为第一内容分发网络, 该第一内容分发网络为与 CP签约的内容分发网络, 分别与 CP、 第二内容分 发网络相连, 第一内容分发网络 300包括:
获取单元 301 , 用于获取 CP发送的第一元数据。
生成单元 302, 用于基于第一元数据以及第一内容分发网络 300的策略生 成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据的分发参 数, 所述第二元数据的分发参数包括分发方式参数, 所述分发方式参数用于指 示所述第二元数据的分发方式。
分发单元 303 , 用于根据分发方式参数指示的分发方式向第二内容分发网 络分发第二元数据。
需要说明的是, 对于获取单元 301、 生成单元 302和分发单元 303而言, 一种可实现的方式是, 策略包括: 需要使用第二内容分发网络的中心存储能力 和緩存加速能力、 内容的注入方式为静态预注入、第一内容分发网络和第二内 容分发网络互通的原因为流量卸载, 生成单元 302包括:
第一确定模块, 用于根据策略, 将分发方式确定为静态预分发方式。 第一生成模块, 用于根据第一元数据和静态预分发方式生成第二元数据, 所述分发方式参数指示的分发方式为静态预分发方式,所述第二元数据的分发 参数中的分发参数还包括分发深度参数, 分发深度参数为第二元数据在 CDN 互通***中允许分发的深度。
分发单元 303包括:
第一发送模块, 用于向第二内容分发网络发送通知消息,通知消息包括第 二元数据的存储地址,以使所述第二内容分发网络向所述第二元数据的存储地 址发送元数据请求消息。
第一接收模块, 用于接收第二内容分发网络发送的元数据请求消息。 第一发送模块,还用于根据所述元数据请求消息向第二内容分发网络传输 第二元数据。
另外, 获取单元 301还用于接收 UE通过 CP发送的业务请求消息。
内容分发网络 300还包括: 发送单元, 用于向第二内容分发网络转发业务 请求消息,以使第二内容分发网络根据第二元数据对用户设备进行内容交付控 制。
需要说明的是, 对于获取单元 301、 生成单元 302和分发单元 303而言, 另一种可实现的方式是, 策略包括: 需要使用第二内容分发网络的緩存加速能 力、 内容的注入方式为动态获取方式、第一内容分发网络和第二内容分发网络 互通的原因为扩展覆盖区域。
生成单元 302包括:
第二确定模块, 用于根据策略, 将分发方式确定为动态获取方式。
第二生成模块, 用于根据第一元数据和动态获取方式生成第二元数据, 第 二分发方式参数指示为动态获取方式。
分发单元 303包括:
第二接收模块, 用于接收用户设备通过 CP发送的业务请求消息。
第二发送模块, 用于将业务请求消息发送给第二内容分发网络, 业务请求 消息中携带有用户设备请求的内容的标识或用户设备请求的内容所属 CP的标 识。
第二接收模块,还用于接收第二内容分发网络根据用户设备请求的内容的 标识或用户设备请求的内容所属 CP的标识发送的元数据请求消息。 第二发送模块,还用于根据元数据请求消息向第二内容分发网络传输第二 元数据。
需要说明的是, 对于生成单元 302而言, 另一种可实现的方式是, 策略包 括为了使直接向用户设备交付内容的第二内容分发网络直接从第一内容分发 网络请求获取第二元数据。
生成单元 302包括:
第三确定模块, 用于根据策略, 将分发方式确定为混合分发方式。
第三生成模块, 用于根据第一元数据和混合分发方式生成第二元数据, 分 发方式参数指示的分发方式为混合分发方式,混合分发方式为对于第二元数据 的存储地址通过静态预分发方式的分发方式发送给第二内容分发网络、对于第 二元数据的存储地址以外的剩余元数据通过动态获取方式发送给第二内容分 发网络。
分发单元 303包括:
第三发送模块,用于采用静态预分发方式向所述第二内容分发网络发送所 述第二元数据的存储地址,以及采用动态获取方式向所述第二内容分发网络发 送所述第二元数据的存储地址之外的剩余元数据。
需要说明的是,对于获取单元 301和分发单元 303而言, 另一种可实现的 方式是, 当分发参数还包括超时时间参数时, 获取单元 301 , 还用于接收第二 内容分发网络由于第二元数据根据超时时间参数判断已经超时失效发送的元 数据请求消息; 分发单元 303 , 还用于向第二内容分发网络发送更新的第二元 数据。
需要说明的是,对于获取单元 301和分发单元 303而言, 另一种可实现的 还用于接收第二内容分发网络定时发送的验证请求消息; 分发单元 303 , 还用 于若第二元数据有效, 向第二内容分发网络发送验证成功消息, 若第二元数据 已经失效, 向第二内容分发网络发送更新的第二元数据。
需要说明的是, 对于分发单元 303而言, 另一种可实现的方式是, 分发单 元 303具体用于将第二元数据保存在文件中,以文件传输的方式向第二内容分 发网络发送文件; 或, 分发单元 303具体用于将第二元数据保存在消息体中 , 以消息信令传输的方式向第二内容分发网络发送消息。
需要说明的是, 上述装置各模块 /单元之间的信息交互、 执行过程等内容, 由于与本发明方法实施例基于同一构思,其带来的技术效果与本发明方法实施 例相同, 具体内容可参见本发明如图 1所示的方法实施例中的叙述, 此处不再 赘述。
在本发明实施例中,第一内容分发网络基于第一元数据以及第一内容分发 网络的策略生成第二元数据, 其中, 第二元数据包括第一元数据以及第二元数 据的分发参数,第一内容分发网络根据分发方式参数指示的分发方式向第二内 容分发网络分发第二元数据,以使第二内容分发网络根据接收到的第二元数据 对发送给用户设备的内容进行控制。
以上实施例介绍了本发明实施例提供的第一内容分发网络,接下来介绍本 发明实施例提供的第二内容分发网络, 请参阅图 4 所示, 第二内容分发网络 400, 包括:
获取单元 401 , 用于接收第一内容分发网络根据第二元数据的分发方式参 数指示的分发方式发送的第二元数据,所述第二元数据包括第一元数据以及所 述第二元数据的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所 述分发方式参数用于指示所述第二元数据的分发方式,所述第一元数据由内容 提供商 CP发送给所述第一内容分发网络。
内容控制单元 402, 用于根据第二元数据对发送给用户设备的内容进行控 制。
需要说明的是,对于第二内容分发网络 400和获取单元 401而言, 一种可 实现的方式是, 当分发方式为静态预分发方式时, 第二元数据的分发参数还包 括分发深度参数, 分发深度参数为第二元数据在 CDN互通***中允许分发的 深度, 获取单元 401包括:
第一接收模块, 用于接收第一内容分发网络发送的通知消息,通知消息包 括第二元数据的存储地址。
第一发送模块,用于根据存储地址向第一内容分发网络发送元数据请求消 第一接收模块 , 还用于接收第一内容分发网络传输的第二元数据。
第二内容分发网络 400还包括(未在图 4中示出):
分发单元, 用于将所述分发深度参数减 1 , 判断分发深度参数是否为零; 当分发深度参数不为零时,将第二元数据向下一级的第二内容分发网络分发第 二元数据,使得下一级的第二内容分发网络根据第二元数据对发送给用户设备 的内容进行控制。
需要说明的是, 对于获取单元 401而言, 另一种可实现的方式是, 当分发 方式为动态获取方式时, 获取单元 401包括:
第二接收模块, 用于接收第一内容分发网络转发的业务请求消息, 所述业 务请求消息由用户设备向所述第一内容分发网络发送,所述业务请求消息中携 带有所述用户设备请求的内容的标识或所述用户设备请求的内容所属 CP的标 识。
第二发送模块,用于根据用户设备请求的内容的标识或用户设备请求的内 容所属 CP的标识向第一内容分发网络发送元数据请求消息;
第二接收模块, 还用于接收第一内容分发网络传输的第二元数据。
需要说明的是, 对于获取单元 401而言, 另一种可实现的方式是, 当分发 方式为混合分发方式时, 获取单元 401包括:
第一获取模块, 用于对于第二元数据的存储地址,按照静态预分发方式从 第一内容分发网络获取。
第二获取模块, 用于对于第二元数据的除存储地址之外的剩余元数据,按 照动态获取方式从第一内容分发网络获取。
需要说明的是,对于第二内容分发网络 400而言,另一种可实现的方式是, 当第二元数据还包括超时时间参数时, 第二内容分发网络 400还包括:
第一发送单元, 用于根据所述超时时间参数若第二元数据已经超时失效, 向第一内容分发网络发送元数据请求消息。
第一接收单元, 用于接收第一内容分发网络发送的更新的第二元数据。 需要说明的是,对于第二内容分发网络 400而言,另一种可实现的方式是, 当第二元数据还包括定时验证有效性时间间隔参数时, 第二内容分发网络 400 还包括: 第二发送单元,用于根据定时验证有效性时间间隔参数定时向第一内容分 发网络发送验证请求消息。
第二接收单元, 用于当第二元数据已经失效时,接收第一内容分发网络发 送的更新的第二元数据。
需要说明的是, 对于内容控制单元 402而言, 另一种可实现的方式是, 当 第二元数据还包括用户鉴权参数时, 内容控制单元 402还包括:
第三发送模块, 用于向 CP的源服务器发送用户身份信息;
第三接收模块, 用于接收 CP的源服务器反馈的身份验证结果。
需要说明的是, 对于内容控制单元 402而言, 另一种可实现的方式是, 第 一元数据包括: CP对内容进行说明的数据或对内容交付进行控制的数据, 对 内容交付进行控制的数据包括: 限制内容仅允许在预置区域内被使用和 /或者 限制内容仅允许在预置时间内被使用。
内容控制单元 402具体用于检查用户设备所处位置是否处于 CP指定的不 允许分发的区域, 若是, 拒绝用户设备的业务请求。 和 /或, 内容控制单元 402 具体用于检查第二元数据中的内容的时间属性是否处于 CP指定的时间内, 若 不是, 拒绝用户设备的业务请求。
需要说明的是, 对于内容控制单元 402而言, 另一种可实现的方式是, 当 分发参数还包括超时时间参数时,内容控制单元 402具体用于根据所述第二元 数据中的超时时间参数判断第二元数据的内容的时间属性是否超时失效, 若 是, 拒绝用户设备的业务请求。
需要说明的是, 上述装置各模块 /单元之间的信息交互、 执行过程等内容, 由于与本发明方法实施例基于同一构思,其带来的技术效果与本发明方法实施 例相同, 具体内容可参见本发明如图 2所示的方法实施例中的叙述, 此处不再 赘述。
在本发明实施例中,第二内容分发网络从第一内容分发网络获取第二元数 据, 其中, 第二元数据包括第一元数据以及第二元数据的分发参数, 第二内容 分发网络根据第二元数据对发送给用户设备的内容进行控制, 实现了在 CDN 互通场景下的对元数据的处理。
以上实施例介绍了本发明实施例分别第一内容分发网络和第二内容分发 网络, 接下来介绍本发明实施例提供的 CDN互通***。 请参阅图 5所示, 一 种 CDN互通*** 500包括: CP501、 第一内容分发网络 502, 第二内容分发网 络 503、 UE504, 其中,
CP501用于向第一内容分发网络 502第一内容分发网络提供第一元数据。 第一内容分发网络 502可以为如图 3所示的第一内容分发网络,此处不再 赘述。
第二内容分发网络 503可以为如图 4所示的第二内容分发网络,此处不再 赘述。
UE504用于向第一内容分发网络发送业务请求信息。
需要说明的是, 在实际应用中, 若 CDN互通*** 500中只存在一个第二 内容分发网络, 则可以如图 5中的第二内容分发网络 503 , 若 CDN互通*** 500中存在多个第二内容分发网络, 则此时图 5中的第二内容分发网络 503具 体可以包括, 如图 6中的第一级第二内容分发网络 5031、 中间级第二内容分 发网络 5032、 最后一级第二内容分发网络 5033。 需要说明的是, 若 CDN互通 *** 500中存在两个第二内容分发网络,则此时不存在中间级第二内容分发网 络 5032, 第二内容分发网络 503只包括第一级第二内容分发网络 5031、 最后 一级第二内容分发网络 5033。若 CDN互通*** 500中存在三个第二内容分发 网络, 第二内容分发网络 503包括第一级第二内容分发网络 5031、 中间级第 二内容分发网络 5032、 最后一级第二内容分发网络 5033。 若 CDN互通*** 500中存在三个以上的第二内容分发网络, 则第二内容分发网络 503只包括第 一级第二内容分发网络 5031、 中间级第二内容分发网络 5032、 最后一级第二 内容分发网络 5033 , 但是中间级第二内容分发网络 5032指的是第二内容分发 网络 503中除了第一级第二内容分发网络 5031和最后一级第二内容分发网络 5033以外的所有第二内容分发网络。
接下来对第二内容分发网络 503 包括的第一级第二内容分发网络 5031、 中间级第二内容分发网络 5032、 最后一级第二内容分发网络 5033进行详细说 明。
一种实现方式是, 当分发方式为静态预分发方式时,
第一级第二内容分发网络 5031 , 用于从第一内容分发网络获取第二元数 据, 并发送给中间级第二内容分发网络。
中间级第二内容分发网络 5032, 用于从第一级第二内容分发网络接收第 二元数据, 并向最后一级第二内容分发网络转发。
最后一级第二内容分发网络 5033 , 用于接收第二元数据; 根据第二元数 据对发送给用户设备的内容进行控制。
另一种实现方式是, 当分发方式为动态获取方式时,
最后一级第二内容分发网络 5033 , 用于向中间级第二内容分发网络 5032 请求第二元数据。
中间级第二内容分发网络 5032 , 用于向第一级第二内容分发网络 5031请 求第二元数据。
第一级第二内容分发网络 5031 , 用于从第一内容分发网络获取第二元数 据, 并发送给最后一级第二内容分发网络 5033。
最后一级第二内容分发网络 5033 , 用于从第一级第二内容分发网络 5031 接收第二元数据; 根据第二元数据对发送给用户设备的内容进行控制。
另一种实现方式是, 当分发方式为混合分发方式时,
第一级第二内容分发网络 5031 , 用于从第一内容分发网络获取第二元数 据的存储地址, 并发送给中间级第二内容分发网络 5032。
中间级第二内容分发网络 5032, 用于从第一级第二内容分发网络接收第 二元数据的存储地址, 并向最后一级第二内容分发网络转发 5033。
最后一级第二内容分发网络 5033 , 用于接收第二元数据的存储地址。 最后一级第二内容分发网络 5033 , 用于根据所述存储地址直接向第一级 第二内容分发网络 5031请求第二元数据的除存储地址以外的剩余元数据。
最后一级第二内容分发网络 5033 , 用于从所述第一内容分发网络获取第 二元数据的除存储地址以外的剩余元数据;根据第二元数据对发送给用户设备 的内容进行控制。
需要说明的是,在实际应用中由具体的场景来决定第二元数据中的哪些部 分通过静态预分发方式发送,哪些部分部分通过动态获取方式发送, 此处不作 限定。但是,通过静态预分发方式下发的部分元数据中至少包含剩余元数据在 第一内容分发网络中的存储地址,最后一级第二内容分发网络可以根据所述剩 余元数据在第一内容分发网络中的存储地址直接向第一内容分发网络请求获 取剩余元数据。
在本发明实施例中,第一内容分发网络基于第一元数据以及第一内容分发 网络的策略生成第二元数据,第二内容分发网络从第一内容分发网络获取第二 元数据, 其中, 第二元数据包括第一元数据以及第二元数据的分发参数, 分发 参数包括分发方式参数,第一内容分发网络根据分发方式参数指示的分发方式 向第二内容分发网络分发第二元数据,第二内容分发网络根据接收到的第二元 数据对发送给用户设备的内容进行控制, 实现了在 CDN互通场景下的对元数 据的处理。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分步骤 是可以通过程序来指令相关的硬件完成,所述的程序可以存储于一种计算机可 读存储介质中, 上述提到的存储介质可以是只读存储器, 磁盘或光盘等。
以上对本发明所提供的一种元数据的处理方法和装置及 CDN互通***进 行了详细介绍, 对于本领域的一般技术人员, 依据本发明实施例的思想, 在具 体实施方式及应用范围上均会有改变之处, 综上所述, 本说明书内容不应理解 为对本发明的限制。

Claims

权利要求书
1、 一种元数据的处理方法, 其特征在于, 包括:
第一内容分发网络 CDN获得内容提供商 CP发送的第一元数据; 所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络 的策略生成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据 的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所述分发方式参 数用于指示所述第二元数据的分发方式;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据。
2、 根据权利要求 1所述的元数据的处理方法, 其特征在于,
所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络 的策略生成第二元数据包括:
所述第一内容分发网络根据所述策略, 将分发方式确定为静态预分发方 式;
所述第一内容分发网络根据所述第一元数据和所述静态预分发方式生成 第二元数据, 其中,所述第二元数据的分发参数中的分发方式参数指示为静态 预分发方式, 所述第二元数据的分发参数还包括分发深度参数, 所述分发深度 参数为所述第二元数据在内容分发网络互通***中允许分发的深度;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据包括:
所述第一内容分发网络采用静态预分发方式向所述第二内容分发网络分 发所述第二元数据。
3、 根据权利要求 2所述的元数据的处理方法, 其特征在于, 所述第一内 容分发网络采用静态预分发方式向所述第二内容分发网络分发所述第二元数 据包括:
所述第一内容分发网络向所述第二内容分发网络发送通知消息,所述通知 消息包括所述第二元数据的存储地址,以使所述第二内容分发网络向所述第二 元数据的存储地址发送元数据请求消息;
所述第一内容分发网络接收所述第二内容分发网络发送的元数据请求消 所述第一内容分发网络根据所述元数据请求消息向所述第二内容分发网 络传输所述第二元数据。
4、 根据权利要求 3所述的元数据的处理方法, 其特征在于, 所述第一内 容分发网络根据所述元数据请求消息向所述第二内容分发网络传输所述第二 元数据之后, 还包括:
所述第一内容分发网络接收用户设备发送的业务请求消息;
所述第一内容分发网络向所述第二内容分发网络转发所述业务请求消息, 以使所述第二内容分发网络根据所述第二元数据对所述用户设备进行内容交 付控制。
5、 根据权利要求 1所述的元数据的处理方法, 其特征在于,
所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络 的策略生成第二元数据包括:
所述第一内容分发网络根据所述策略, 将分发方式确定为动态获取方式; 所述第一内容分发网络根据所述第一元数据和所述动态获取方式生成第 二元数据, 其中, 所述第二元数据的分发参数中的分发方式参数指示为动态获 取方式;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据包括:
所述第一内容分发网络采用动态获取方式向所述第二内容分发网络分发 所述第二元数据。
6、 根据权利要求 5所述的元数据的处理方法, 其特征在于, 所述第一内 容分发网络采用动态获取方式向所述第二内容分发网络分发所述第二元数据 包括:
所述第一内容分发网络接收用户设备发送的业务请求消息;
所述第一内容分发网络将所述业务请求消息发送给所述第二内容分发网 络,所述业务请求消息中携带有所述用户设备请求的内容的标识或所述用户设 备请求的内容所属 CP的标识;
所述第一内容分发网络接收所述第二内容分发网络发送的元数据请求消 息 ,所述元数据请求消息为所述第二内容分发网络根据所述用户设备请求的内 容的标识或所述用户设备请求的内容所属 CP的标识生成;
所述第一内容分发网络根据所述元数据请求消息向所述第二内容分发网 络传输所述第二元数据。
7、 根据权利要求 1所述的元数据的处理方法, 其特征在于,
所述第一内容分发网络基于所述第一元数据以及所述第一内容分发网络 的策略生成第二元数据包括:
所述第一内容分发网络根据所述策略, 将分发方式确定为混合分发方式; 所述第一内容分发网络根据所述第一元数据和所述混合分发方式生成第 二元数据, 其中, 所述第二元数据的分发参数中的分发方式参数指示为混合分 发方式;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据包括:
所述第一内容分发网络采用静态预分发方式向所述第二内容分发网络发 送所述第二元数据的存储地址,采用动态获取方式向所述第二内容分发网络发 送所述第二元数据的存储地址之外的剩余元数据。
8、根据权利要求 1至 7中任一项所述的元数据的处理方法,其特征在于, 所述第一元数据包括: 所述 CP对内容进行说明的数据或对内容交付进行控制 的数据。
9、 根据权利要求 8所述的元数据的处理方法, 其特征在于, 所述第二元 数据的分发参数还包括: 超时时间参数;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据之后, 还包括:
所述第一内容分发网络接收所述第二内容分发网络根据所述超时时间参 数判断所述第二元数据已经超时失效发送的元数据请求消息;
所述第一内容分发网络向所述第二内容分发网络发送更新的第二元数据。
10、 根据权利要求 8所述的元数据的处理方法, 其特征在于, 所述第二元 数据的分发参数还包括: 定时验证有效性时间间隔参数;
所述第一内容分发网络根据所述分发方式参数指示的分发方式向第二内 容分发网络分发所述第二元数据之后, 还包括:
所述第一内容分发网络接收所述第二内容分发网络根据所述定时验证有 效性时间间隔参数定时发送的验证请求消息;
若所述第二元数据有效,所述第一内容分发网络向所述第二内容分发网络 发送验证成功消息, 若所述第二元数据已经失效, 所述第一内容分发网络向所 述第二内容分发网络发送更新的第二元数据。
11、 根据权利要求 1所述的元数据的处理方法, 其特征在于, 所述第一内 容分发网络根据所述分发方式参数指示的分发方式向第二内容分发网络分发 所述第二元数据包括:
所述第一内容分发网络将所述第二元数据保存在文件中,所述第一内容分 发网络以文件传输的方式向所述第二内容分发网络分发所述第二元数据; 或,
所述第一内容分发网络将所述第二元数据携带在消息体中,所述第一内容 分发网络以消息信令传输的方式向所述第二内容分发网络分发所述第二元数 据。
12、 一种元数据的处理方法, 其特征在于, 包括:
第二内容分发网络接收第一内容分发网络根据第二元数据的分发方式参 数指示的分发方式发送的第二元数据,所述第二元数据包括第一元数据以及所 述第二元数据的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所 述分发方式参数用于指示所述第二元数据的分发方式,所述第一元数据由内容 提供商 CP发送给所述第一内容分发网络;
所述第二内容分发网络根据所述第二元数据对发送给用户设备的内容进 行控制。
13、 根据权利要求 12所述的元数据的处理方法, 其特征在于, 所述分发 方式为静态预分发方式, 所述第二元数据的分发参数还包括分发深度参数; 所述第二内容分发网络接收第一内容分发网络根据第二元数据的分发方 式参数指示的分发方式发送的第二元数据包括:
所述第二内容分发网络接收所述第一内容分发网络发送的通知消息,所述 通知消息包括所述第二元数据的存储地址; 所述第二内容分发网络根据所述存储地址向所述第一内容分发网络发送 元数据请求消息;
所述第二内容分发网络接收所述第一内容分发网络传输的第二元数据。
14、 根据权利要求 13所述的元数据的处理方法, 其特征在于, 所述第二 内容分发网络接收所述第一内容分发网络传输的第二元数据之后, 还包括: 所述第二内容分发网络将所述分发深度参数减 1 , 所述第二内容分发网络 判断所述分发深度参数是否为零, 若所述分发深度参数不为零, 然后向下一级 的第二内容分发网络分发所述第二元数据,使得下一级的第二内容分发网络根 据所述第二元数据对发送给用户设备的内容进行控制。
15、 根据权利要求 12所述的元数据的处理方法, 其特征在于, 所述分发 方式为动态获取方式;
所述第二内容分发网络接收第一内容分发网络根据第二元数据的分发方 式参数指示的分发方式发送的第二元数据包括:
所述第二内容分发网络接收所述第一内容分发网络转发的业务请求消息, 所述业务请求消息由用户设备向所述第一内容分发网络发送,所述业务请求消 息中携带有所述用户设备请求的内容的标识或所述用户设备请求的内容所属 CP的标识;
所述第二内容分发网络根据所述用户设备请求的内容的标识或所述用户 设备请求的内容所属 CP 的标识向所述第一内容分发网络发送元数据请求消 所述第二内容分发网络接收所述第一内容分发网络传输的第二元数据。
16、 根据权利要求 12所述的元数据的处理方法, 其特征在于, 所述分发 方式为混合分发方式;
所述第二内容分发网络接收第一内容分发网络根据第二元数据的分发方 式参数指示的分发方式发送的第二元数据包括:
所述第二内容分发网络接收所述第一内容分发网络采用静态预分发方式 发送的所述第二元数据的存储地址,以及接收所述第一内容分发网络采用动态 获取方式发送的所述第二元数据的存储地址之外的剩余元数据。
17、根据权利要求 12至 16中任一项所述的元数据的处理方法, 其特征在 于, 所述第二元数据的分发参数还包括: 超时时间参数;
所述第二内容分发网络从第一内容分发网络获取第二元数据之后还包括: 若根据所述超时时间参数确定所述第二元数据已经超时失效,所述第二内 容分发网络向所述第一内容分发网络发送元数据请求消息,所述第二内容分发 网络接收所述第一内容分发网络发送的更新的第二元数据; 或者,
所述第二内容分发网络根据所述超时时间参数判断所述第二元数据是否 超时失效, 若是, 拒绝所述用户设备的业务请求。
18、根据权利要求 12至 16中任一项所述的元数据的处理方法, 其特征在 于, 所述第二元数据的分发参数还包括: 定时验证有效性时间间隔参数; 所述第二内容分发网络接收第一内容分发网络根据第二元数据的分发方 式参数指示的分发方式发送的第二元数据之后, 还包括:
所述第二内容分发网络根据所述定时验证有效性时间间隔参数定时向所 述第一内容分发网络发送验证请求消息;
当所述第二元数据已经失效时 ,所述第二内容分发网络接收所述第一内容 分发网络发送的更新的第二元数据。
19、根据权利要求 12至 16中任一项所述的元数据的处理方法, 其特征在 于, 所述第二元数据的分发参数还包括: 用户鉴权参数;
所述第二内容分发网络根据所述第二元数据对发送给用户设备的内容进 行控制还包括:
所述第二内容分发网络向所述 CP发送用户身份信息;
所述第二内容分发网络接收所述 CP反馈的身份验证结果。
20、根据权利要求 12至 16中任一项所述的元数据的处理方法, 其特征在 于, 所述第一元数据包括: 所述 CP对内容进行说明的数据或对内容交付进行 控制的数据, 所述对内容交付进行控制的数据包括: 限制内容仅允许在预置区 域内被使用和 /或者限制内容仅允许在预置时间内被使用;
所述第二内容分发网络根据所述第二元数据对发送给用户设备的内容进 行控制包括:
所述第二内容分发网络检查用户设备所处位置是否处于所述 CP指定的不 允许分发的区域, 若是, 拒绝所述用户设备的业务请求; 和 /或, 所述第二内容分发网络检查所述第二元数据中的内容的时间属性是否处 于所述 CP指定的时间内, 若不是, 拒绝所述用户设备的业务请求。
21、 一种内容分发网络 CDN, 其特征在于, 所述 CDN为与内容提供商 CP签约的内容分发网络, 所述 CDN包括:
获取单元, 用于获得所述 CP发送的第一元数据;
生成单元,用于基于所述第一元数据以及所述第一内容分发网络的策略生 成第二元数据,所述第二元数据包括所述第一元数据以及第二元数据的分发参 数, 所述第二元数据的分发参数包括分发方式参数, 所述分发方式参数用于指 示所述第二元数据的分发方式;
分发单元,用于根据所述分发方式参数指示的分发方式向所述第二内容分 发网络分发所述第二元数据。
22、 根据权利要求 21所述的内容分发网络, 其特征在于, 所述生成单元 包括:
第一确定模块, 用于根据所述策略, 将分发方式确定为静态预分发方式; 第一生成模块,用于根据所述第一元数据和所述静态预分方式发生成第二 元数据, 所述第二元数据的分发参数中的分发方式参数指示为静态预分发方 式, 所述第二元数据的分发参数还包括分发深度参数,所述分发深度参数为所 述第二元数据在内容分发网络互通***中允许分发的深度。
23、 根据权利要求 22所述的内容分发网络, 其特征在于, 所述分发元包 括:
第一发送模块, 用于向所述第二内容分发网络发送通知消息, 所述通知消 息包括所述第二元数据的存储地址,以使所述第二内容分发网络向所述第二元 数据的存储地址发送元数据请求消息;
第一接收模块, 用于接收所述第二内容分发网络发送的元数据请求消息; 所述第一发送模块,还用于根据所述元数据请求消息向所述第二内容分发 网络传输所述第二元数据。
24、 根据权利要求 23所述的内容分发网络, 其特征在于,
所述获取单元还用于接收用户设备发送的业务请求消息;
所述内容分发网络还包括: 发送单元,用于向所述第二内容分发网络转发 所述业务请求消息 ,以使所述第二内容分发网络根据所述第二元数据对所述用 户设备进行内容交付控制。
25、 根据权利要求 21所述的内容分发网络, 其特征在于, 所述生成单元 包括:
第二确定模块, 用于根据所述策略, 将分发方式确定为动态获取方式; 第二生成模块,用于根据所述第一元数据和所述动态获取方式生成第二元 数据, 所述第二元数据的分发方式参数指示为动态获取方式。
26、 根据权利要求 25所述的内容分发网络, 其特征在于, 所述分发单元 包括:
第二接收模块, 用于接收用户设备发送的业务请求消息;
第二发送模块, 用于将所述业务请求消息发送给所述第二内容分发网络, 所述业务请求消息中携带有所述用户设备请求的内容的标识或所述用户设备 请求的内容所属 CP的标识;
所述第二接收模块,还用于接收所述第二内容分发网络发送的元数据请求 消息,所述元数据请求消息为所述第二内容分发网络根据所述用户设备请求的 内容的标识或所述用户设备请求的内容所属 CP的标识生成;
所述第二发送模块,还用于根据所述元数据请求消息向所述第二内容分发 网络传输所述第二元数据。
27、 根据权利要求 21所述的内容分发网络, 其特征在于,
所述生成单元包括:
第三确定模块, 用于根据所述策略, 将分发方式确定为混合分发方式; 第三生成模块,用于根据所述第一元数据和所述混合分发方式生成第二元 数据, 其中, 所述第二元数据的分发参数中的分发方式参数指示为混合分发方 式。
28、 根据权利要求 27所述的内容分发网络, 其特征在于, 所述分发单元 包括:
第三发送模块,用于采用静态预分发方式向所述第二内容分发网络发送所 述第二元数据的存储地址,以及采用动态获取方式向所述第二内容分发网络发 送所述第二元数据的存储地址之外的剩余元数据。
29、 一种内容分发网络 CDN, 其特征在于, 所述 CDN包括: 获取单元,用于接收第一内容分发网络根据第二元数据的分发方式参数指 示的分发方式发送的第二元数据,所述第二元数据包括第一元数据以及所述第 二元数据的分发参数, 所述第二元数据的分发参数包括分发方式参数, 所述分 发方式参数用于指示所述第二元数据的分发方式,所述第一元数据由内容提供 商 CP发送给所述第一内容分发网络;
内容控制单元,用于根据所述第二元数据对发送给用户设备的内容进行控 制。
30、 根据权利要求 29所述的内容分发网络, 其特征在于, 所述分发方式 为静态预分发方式, 所述第二元数据的分发参数还包括分发深度参数;
所述获取单元包括:
第一接收模块, 用于接收所述第一内容分发网络发送的通知消息, 所述通 知消息包括所述第二元数据的存储地址;
第一发送模块,用于根据所述存储地址向所述第一内容分发网络发送元数 据请求消息;
所述第一接收模块, 还用于接收所述第一内容分发网络传输的第二元数 据。
31、 根据权利要求 30所述的内容分发网络, 其特征在于, 所述内容分发 网络还包括:
分发单元, 用于将所述分发深度参数减 1 , 判断所述分发深度参数是否为 零; 当所述分发深度参数不为零时,将所述第二元数据向下一级的第二内容分 发网络分发所述第二元数据,使得下一级的第二内容分发网络根据所述第二元 数据对发送给用户设备的内容进行控制。
32、 根据权利要求 29所述的内容分发网络, 其特征在于, 所述分发方式 为动态获取方式;
所述获取单元包括:
第二接收模块, 用于接收所述第一内容分发网络转发的业务请求消息, 所 述业务请求消息由用户设备向所述第一内容分发网络发送,所述业务请求消息 中携带有所述用户设备请求的内容的标识或所述用户设备请求的内容所属 CP 的标识;
第二发送模块,用于根据所述用户设备请求的内容的标识或所述用户设备 请求的内容所属 CP的标识向所述第一内容分发网络发送元数据请求消息; 所述第二接收模块, 还用于接收所述第一内容分发网络传输的第二元数 据。
33、 根据权利要求 29所述的内容分发网络, 其特征在于, 所述分发方式 为混合分发方式;
所述获取单元包括:
第一获取模块, 用于对于所述第二元数据的存储地址,按照静态预分发方 式从所述第一内容分发网络获取;
第二获取模块,用于对于所述第二元数据的除存储地址之外的剩余部分元 数据, 按照动态获取方式从所述第一内容分发网络获取。
34、 根据权利要求 29至 33中任一项所述的内容分发网络, 其特征在于, 所述第一元数据包括: 所述 CP对内容进行说明的数据或对内容交付进行控制 的数据, 所述对内容交付进行控制的数据包括: 限制内容仅允许在预置区域内 被使用和 /或者限制内容仅允许在预置时间内被使用;
所述内容控制单元具体用于检查用户设备所处位置是否处于所述 CP指定 的不允许分发的区域, 若是, 拒绝所述用户设备的业务请求;
和 /或,
所述内容控制单元具体用于检查所述第二元数据中的内容的时间属性是 否处于所述 CP指定的时间内, 若不是, 拒绝所述用户设备的业务请求。
35、 一种内容分发网络 CDN互通***, 其特征在于, 包括: 内容提供商 CP、如权利要求 21至 28中任一项所述的内容分发网络、如权利要求 29至 34 中任一项所述的内容分发网络、 用户设备, 其中,
所述 CP用于向如权利要求 21至 28中任一项所述的内容分发网络提供第 一元数据;
所述用户设备用于向如权利要求 29至 34中任一项所述的内容分发网络发 送业务请求信息。
PCT/CN2012/078143 2011-11-23 2012-07-04 一种元数据的处理方法、装置及cdn互通*** WO2013075502A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110376492.0A CN103139236A (zh) 2011-11-23 2011-11-23 一种元数据的处理方法、装置及cdn互通***
CN201110376492.0 2011-11-23

Publications (1)

Publication Number Publication Date
WO2013075502A1 true WO2013075502A1 (zh) 2013-05-30

Family

ID=48469075

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078143 WO2013075502A1 (zh) 2011-11-23 2012-07-04 一种元数据的处理方法、装置及cdn互通***

Country Status (2)

Country Link
CN (1) CN103139236A (zh)
WO (1) WO2013075502A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103401892B (zh) * 2013-06-26 2017-09-19 中国科学院声学研究所 一种基于http post的数据上传加速方法及服务器
CN103401946B (zh) * 2013-08-19 2016-07-13 网宿科技股份有限公司 Http上传加速方法和***
CN107438996A (zh) * 2015-03-31 2017-12-05 日本电气株式会社 用于接收通信参数集的通信***
CN110431804B (zh) * 2017-04-14 2021-07-09 华为技术有限公司 内容部署方法及分发控制器
CN113630469A (zh) * 2021-08-17 2021-11-09 苏州市广播电视总台 外拍素材实时回传***及方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2094009A1 (en) * 2008-02-22 2009-08-26 TV Works LLC Method and system for customizing metadata in TV network
CN101557331A (zh) * 2008-04-07 2009-10-14 华为技术有限公司 内容索引处理方法及***、内容路由功能及内容分发控制实体
CN101741731A (zh) * 2009-12-03 2010-06-16 中兴通讯股份有限公司 内容分发网络中内容元数据的存储、查询方法及管理***
CN101998167A (zh) * 2010-08-16 2011-03-30 中兴通讯股份有限公司 电子节目菜单展示管理方法及***

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2094009A1 (en) * 2008-02-22 2009-08-26 TV Works LLC Method and system for customizing metadata in TV network
CN101557331A (zh) * 2008-04-07 2009-10-14 华为技术有限公司 内容索引处理方法及***、内容路由功能及内容分发控制实体
CN101741731A (zh) * 2009-12-03 2010-06-16 中兴通讯股份有限公司 内容分发网络中内容元数据的存储、查询方法及管理***
CN101998167A (zh) * 2010-08-16 2011-03-30 中兴通讯股份有限公司 电子节目菜单展示管理方法及***

Also Published As

Publication number Publication date
CN103139236A (zh) 2013-06-05

Similar Documents

Publication Publication Date Title
US10785037B2 (en) Managing secure content in a content delivery network
EP2892209A1 (en) Method, apparatus, and system for transmitting media data based on OTT
US8099764B2 (en) Secure push and status communication between client and server
Leung et al. Content Distribution Network Interconnection (CDNI) Requirements
KR102132266B1 (ko) 데이터 스트리밍에 대한 보조의 노드 타입 기반 제어
WO2008119273A1 (fr) Procédé pour libérer et télécharger un fichier, serveur de gestion, terminal et système
WO2016150169A1 (zh) 一种安全通信方法、网关、网络侧服务器及***
WO2013075502A1 (zh) 一种元数据的处理方法、装置及cdn互通***
WO2011137809A1 (zh) 一种内容分发网络中实现超文本传输协议重定向的方法、装置及***
WO2012083620A1 (zh) 一种流媒体文件的下载方法、装置及***
WO2012129934A1 (zh) 一种实现cdn互通的认证方法、装置与***
WO2010022631A1 (zh) 实现融合地址簿业务信息通知的方法及装置
CN112367666B (zh) 一种5G核心网中pNF通过NRF认证cNF的方法、装置及***
EP3366019B1 (en) Method and apparatus for secure content caching and delivery
WO2011144173A1 (zh) 媒体内容的处理方法、设备和***
EP1978707B1 (en) A method and system for generating and acquiring the rights object and the rights issuing center
WO2010121525A1 (zh) 一种rtsp终端获取媒体资源的方法、装置及***
US10129320B2 (en) QoS improvement method, apparatus, and system
US9071569B1 (en) System, method, and computer program for content metadata and authorization exchange between content providers and service providers
US20220201090A1 (en) Over-the-top management in a communication network
WO2011137850A1 (zh) 内容获取、交付方法及装置
US20220201040A1 (en) Over-the-top management in a communication network
WO2015135124A1 (zh) 一种信息传送方法及装置
JP6121964B2 (ja) アクセス制限方法、配信システム、及びリバースプロキシサーバ
WO2017024588A1 (zh) 业务处理方法及装置

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: 12851274

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: 12851274

Country of ref document: EP

Kind code of ref document: A1