WO2013123860A1 - Method and system for achieving content distribution network interconnection routing - Google Patents

Method and system for achieving content distribution network interconnection routing Download PDF

Info

Publication number
WO2013123860A1
WO2013123860A1 PCT/CN2013/071481 CN2013071481W WO2013123860A1 WO 2013123860 A1 WO2013123860 A1 WO 2013123860A1 CN 2013071481 W CN2013071481 W CN 2013071481W WO 2013123860 A1 WO2013123860 A1 WO 2013123860A1
Authority
WO
WIPO (PCT)
Prior art keywords
request message
content
cdn
forwarding
type
Prior art date
Application number
PCT/CN2013/071481
Other languages
French (fr)
Chinese (zh)
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 WO2013123860A1 publication Critical patent/WO2013123860A1/en

Links

Classifications

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

Definitions

  • the present invention relates to the field of network communication technologies, and in particular, to implementing a content distribution network
  • Content-based services have gradually become the mainstream of traffic in the Internet in recent years.
  • Content-based services include HTTP browsing, video and file downloads, P2P downloads, and more. These services have the characteristics of large download traffic and high content repeatability.
  • CDN Code Division Multiple Access
  • the CDN can distribute the content to the network edge node in advance, and redirect the user's request to the CDN node when the user requests the content. In this way, the download speed of the user can be greatly accelerated, and at the same time, the user request for the same area can also prevent the same content from being transmitted multiple times on the WAN.
  • CDNi Working Group has been established in the Internet Engineering Task Force (IETF) to focus on the interconnection between CDNs.
  • FIG. 1 shows the interworking architecture between current CDNs.
  • the CDN user 101 is an end user node that receives the content distribution service of the CDN.
  • CSP 102 is responsible for providing content
  • the upstream CDN 103 contracts with the content service provider to perform distribution of related content
  • the first content request of the user is also sent to the upstream CDN 103 through the user request interface.
  • the upstream CDN 103 considers that the content requested by the user is suitable for distribution by the downstream CDN 104
  • the upstream CDN 103 can forward the user's request to the downstream CDN 104 for processing.
  • the CDN user 101 can download the relevant content through the downstream CDN 104.
  • the upstream CDN 103 and the downstream CDN 104 are interconnected by a CDM interface, and the downstream CDN 104 can acquire content from the upstream CDN 103 through a content acquisition interface.
  • the first problem to be solved is the cyclic routing problem in the content request forwarding process.
  • the upstream CDN 103 forwards the request to the downstream CDN 104.
  • the downstream CDN needs to download the corresponding content through the upstream CDN 103 before the content can be sent to the CDN user 101.
  • the upstream CDN 103 mistakenly considers the content acquisition request of the downstream CDN 104 to be a request from the user, it forwards it to the downstream CDN 104. At this point, the request will continue to forward between the upstream CDN 103 and the downstream CDN 104, causing an infinite loop of routing.
  • the CDM working group adopts the following solution:
  • the upstream CDN 103 and the downstream CDN 104 sign a contract, and it is agreed that when the downstream CDN 104 requests content from the upstream CDN 103, it is necessary to adopt a special agreement.
  • a resource locator URL, Uniform/Universal Resource Locator
  • the specific process is shown in Figure 2:
  • the CDN user node requests the relevant content using the CSP's URL, and the user request will be sent to the upstream CDN contracted with the CSP.
  • the upstream CDN analyzes the user information and the requested content, and selects a suitable downstream CDN for the current business processing.
  • the upstream CDN redirects the CDN user node to the downstream CDN.
  • the upstream CDN can use HTTP redirects or DNS redirects to direct users to a new one.
  • the CDN user node resends the user request to the downstream CDN according to the new URL.
  • the downstream CDN finds that the content is currently not cached on the node of the CDN, and needs to obtain content from the content source to provide services for the user.
  • the downstream CDN sends a content acquisition request using a special address (upstream CDN URL) agreed with the upstream CDN.
  • upstream CDN URL a special address
  • the upstream CDN determines, by the URL of the content acquisition request, that it is a content acquisition request sent by the downstream CDN. At this point, the upstream CDN no longer forwards the request, but processes it by itself.
  • the upstream CDN sends the content to the downstream CDN.
  • the downstream CDN sends the content to the CDN user node.
  • the above process can solve the cyclic routing problem of forwarding between CDNs.
  • the solution is limited to situations where there is only one upstream CDN forwarding the request to a downstream CDN. If there are multiple levels of forwarding, or if a mesh structure is established between multiple CDNs, the solution does not solve the round-robin routing problem of forwarding. Summary of the invention
  • the main purpose of the embodiments of the present invention is to provide a method and system for implementing CDN interconnection routing, which can prevent the cyclic routing problem in the case of complex CDN interconnection.
  • a method for implementing a content distribution network (CDN) interconnection route comprising: determining, by a CDN server, a type of a received content request message;
  • the content request message is forwarded according to different types of the content request message.
  • the CDN server determines, according to the type of the received content request message, that the CDN server performs type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
  • the requesting message for the content according to different types of the content request message Forward to:
  • the type of the content request message is a user request message, determining a forwarding path according to the pre-stored user request forwarding routing table, and forwarding the content request message;
  • the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
  • the method further includes:
  • the user request forwarding routing table and the content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring the subscription information are stored in the CDN server; wherein the user request forwarding routing table uses the user address information as an index.
  • the content acquisition request forwarding routing table is indexed by the content identifier.
  • the content request message is forwarded according to different types of the content request message to:
  • the type of the content request message is a user request message, determining a forwarding path according to a pre-stored user request forwarding routing algorithm, and forwarding the user request message;
  • the content request message is a content acquisition request message
  • the content request message is forwarded according to different types of the content request message to:
  • the type of the content request message is a user request message or a content acquisition request message
  • determining a forwarding path by using a Border Gateway Protocol (BGP) message, an application layer traffic optimization (ALTO) server, or a CDNi interface, and performing the content request message Forward.
  • Border Gateway Protocol BGP
  • ALTO application layer traffic optimization
  • the content request message is forwarded to:
  • the CDN server keeps the type of the content request message unchanged, and forwards the message through the content type, source address, destination address, message header or message of the content request message.
  • a type of content that identifies the content request message.
  • a system for implementing a CDN interconnection route comprising: a CDN server, configured to determine a type of a received content request message; and forwarding the content request message according to different types of the content request message .
  • the CDN server is specifically configured to perform type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to the pre-stored user request forwarding routing table, and forward the content request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
  • the CDN server is further configured to store a user request forwarding routing table and a content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring subscription information; wherein, the user requests the forwarding routing table to The user address information is an index, and the content acquisition request forwarding routing table is indexed by the content identifier.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing algorithm, and forward the user request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing algorithm, and the content acquisition request message is forwarded.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message or a content acquisition request message, determine a forwarding path by using a BGP message, an ALTO server, or a CDM interface, before performing the content request message. turn.
  • the CDN server is specifically configured to keep forwarding the type of the content request message, where the protocol type, source address, and destination of the content request message are A type of address, header, or message content that identifies the type of content request message.
  • the embodiment of the present invention provides a forward routing method in the case of a new CDN interconnection.
  • the content request message is forwarded in different manners, which can support complex CDN interconnection.
  • the routing of the network can prevent the cyclic routing problem in the case of complex CDN interconnection, and even if the upstream CDN server and the downstream CDN server do not directly sign the contract, the content request message can be performed multiple times through the intermediate CDN network. To achieve routing, to achieve the purpose of optimizing the network.
  • FIG. 1 is a schematic structural diagram of interworking between existing CDNs
  • FIG. 3 is a schematic flowchart of an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention
  • FIG. 4 is a schematic flowchart of an implementation manner of a method for implementing a CDN interconnection route according to an embodiment of the present invention
  • FIG. 5 is a schematic structural diagram of a forward routing table of a user request message according to an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a forward routing table of a content obtaining request message according to an embodiment of the present invention.
  • the embodiments of the present invention propose to divide the CDN forwarding processing into two categories: user request forwarding and content acquisition request forwarding.
  • the user request forwarding and content acquisition request forwarding are forwarded in different ways, and the type of the content request message can also be retained when forwarding. This will prevent loop routing problems even in the case of complex CDN interconnections.
  • FIG. 3 is a flowchart showing an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
  • Step 301 The CDN server determines the type of the received content request message.
  • the type of the content request message specifically includes a user request message and a content acquisition request message.
  • the user request message refers to a content request initiated by the user, including an initial content request initiated by the CDN user node and a user request message forwarded by the CDN server; the purpose of the user request message is to download the content to the device of the end user.
  • the content acquisition request message refers to a content request initiated by another CDN server or a CDN storage node, including an initial content acquisition request initiated by another CDN and a content acquisition request message forwarded by the CDN server; the purpose of the content acquisition request message is
  • the content is distributed internally by the CDN, that is, the storage node of the downstream CDN obtains content for caching.
  • the CDN server determines the type of the received content request message as: analyzing the received content request message to determine the type of the content request message; specifically, the protocol that the CDN server can request the message according to the received content.
  • the type can be differentiated by the data plane bearer protocol and the control plane request message protocol.
  • the user request message can be implemented by using an HTTP request; the content acquisition request message can be implemented by using an FTP request; or
  • the CDN server can also distinguish by the source address of the received content request message; for example, the CDN server can pre-store the IP address or IP address segment of other CDN storage nodes, so that the request sent by the node in the address range can be considered Is a content acquisition request message; or,
  • the CDN server may also distinguish by the destination address of the received content request message; the destination address may include a destination IP address, a destination URL, or a destination port number of the content request message, etc.; for example, the CDN may request a message and content for the user. Get the request message to assign a different URL address, for different types of content request messages require different URLs to visit ask. For example, ask users to use cdna.com when they access, and other CDNs to use cdnget.cdna.com; or,
  • the CDN server can also distinguish the message header or the message content of the received content request message; for example, the content acquisition request message can be implemented by adding a special parameter or TAG to the message header or the message content.
  • Step 302 The CDN server forwards the content request message according to different types of the content request message.
  • the CDN server selects a different routing manner to perform forwarding according to the determined different types of the content request message.
  • the CDN server may specifically pre-store by querying. Routing table, performing local pre-stored routing algorithm or querying other CDN servers, etc. for routing mode selection; specific methods include but are not limited to:
  • the CDN server performs the routing mode selection by statically configuring the user request forwarding rule or the forwarding routing table.
  • the user request forwarding routing table uses the user address information as an index.
  • the CDN server obtains the service-scope hot-selling information of the other CDN server through the Border Gateway Protocol (BGP) message, and establishes a local routing table. After receiving the user request message, the CDN server corresponds to the local routing table according to the user IP address information.
  • BGP Border Gateway Protocol
  • the service scope or subscription information of other CDN servers select the appropriate CDN server for forwarding;
  • the CDN server queries the application layer traffic optimization (ALTO, Server-Layer Traffic Optimization) server, queries the network topology structure through the address information of the user request message, and selects a suitable CDN server to forward;
  • ALTO Application layer traffic optimization
  • the CDN server obtains information about the service capabilities, load status, and cost status of other CDN servers through the CDM interface or other interfaces, and selects a suitable CDN server to forward according to the information;
  • the CDN server obtains storage in other CDN servers through the CDM interface or other interfaces. In the case of content, select a suitable CDN server to forward according to the content of the cached content in the CDN server;
  • the CDN server queries other CDN servers through the CDM interface or other interfaces to obtain a suitable CDN for forwarding.
  • the above selection methods can be combined with each other to jointly weigh forward selection of the CDN server that implements the user request message.
  • the basic selection principle is to select a CDN server that is close to the user and is in good condition to provide services for users. That is, the main factor in selection is based on the user's address (geographic location) information. For the result of the selection, the user can be transferred to another CDN server through HTTP/DNS forwarding, or it can be selected for processing.
  • the CDN server may specifically perform a routing mode selection by querying a local pre-stored routing table, performing a local pre-stored routing algorithm, or querying other CDN servers, etc. But not limited to:
  • the CDN server determines the content acquisition request forwarding routing table by statically configuring the content subscription relationship and the upstream CDN server node information of the content, and determines how to forward the content acquisition request message; wherein the content acquisition request forwarding routing table is content Identifies as an index;
  • the CDN server obtains the contract relationship of other CDN servers through the CDNi interface or a routing protocol such as BGP, and determines the information of the upstream CDN server for different contents;
  • the CDN server obtains the content of the cached content in the other CDN server through the CDNi interface or other protocols, and determines the forwarding rule of the content acquisition request;
  • the above selection methods can be combined with each other to jointly weigh the CDN server selection in the content acquisition request message.
  • the basic selection principle is to select a CDN server that is close to the content acquisition request message and that is currently in good condition to provide services for the user. That is, the main factor in selection is based on the information of the content, and the CDN server that owns the content or is close to the final content owner (CSP).
  • the content acquisition request may be transferred to another CDN server through HTTP/DNS forwarding, or it may be selected for processing.
  • the CDN server may notify the CDN user node or the downstream CDN cache node to switch to the new CDN server.
  • the CDN server should keep the type of the content request message unchanged, that is, for the user request message, it should be ensured that the new CDN server can still recognize that the content request message is a user request message after forwarding; for the content acquisition request message, After the forwarding is guaranteed, the new CDN server can still recognize that the content request message is a content acquisition request message.
  • the CDN server may identify the type of the content request message by the protocol type of the content request message, the message source address, the message destination address, the message header or the message content, and the like.
  • maintaining the type of the content request message unchanged does not mean that the manner used to identify the content request message is unchanged.
  • the CDN B forwards the content request message of the CDN C to the CDN A
  • the CDN B can determine the identification manner of the content request message according to a specific subscription manner.
  • the CDN B can send the destination address of the content request message, such as cdnbget.csp.com, through the CDN C to determine that the content request message sent by the CDN C is a content acquisition request message.
  • CDN B can instruct CDN C to use a special port number when sending a content request message to the CDNA when forwarding the CDN C.
  • the CDNA can determine, according to the special port number, that the content request message sent by the CDN C is a content acquisition request message. As such, in the embodiment of the present invention, when the CDN server can make the CDN server of the next hop recognize the content request message type, and the identified type is consistent with the type recognized by the CDN server, it can be considered as the content request message type. a way of keeping.
  • FIG. 4 is a flowchart showing an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention. As shown in FIG. 4, the embodiment includes the following steps:
  • the CDN user node sends a content request message, and the content request message is processed by the upstream CDNA because the CSP is contracted with the upstream CDNA.
  • the upstream CDN A uses the foregoing method to distinguish that the content request message is of a type that is a user request message sent by the user.
  • the upstream CDNA performs a user request forwarding algorithm to determine This request should be executed by CDN B.
  • the upstream CDN A notifies the CDN user node to forward, and the specific forwarding method may be DNS or HTTP forwarding.
  • the upstream CDN A can identify that the forwarding is a user request forwarding by means of a specific address encoding or the like.
  • the CDN user node resends the content request message to CDN B as indicated by the upstream CDNA.
  • the CDN user node does not necessarily need to analyze the upstream CDN A in the address code to identify that this forwarding is the user request forwarding.
  • the CDN B analyzes the received content request message, and identifies that the type of the content request message is a user request message. CDN B performs a user request forwarding algorithm to determine that this request should be performed by the downstream CDN C. At this time, the CDN B notifies the CDN user node to forward, and maintains the identity of the current content request message.
  • the CDN user node resends the content request message to the downstream CDN C as instructed by CDN B.
  • the downstream CDN C analyzes the received content request message, determines that the type of the content request message is a user request message, and the CDN C performs a user request forwarding algorithm to determine that the request should be handled by itself. Since CDN C does not currently store this content, CDN C needs to obtain content from other CDN servers. The CDN C executes a content acquisition request forwarding algorithm, and determines that a content acquisition request should be sent to the CDN B. The CDN C sends a content acquisition request to the CDN B.
  • the CDN B receives the content request message of the CDN C, and determines that the type of the content request message is a content acquisition request message sent by the downstream CDN, for example, by the content request message being a special URL sent to the CDN for type determination.
  • CDN B itself does not have corresponding content, and CDN B executes a content acquisition forwarding algorithm, and judges that the content acquisition request message should be forwarded to CDN A.
  • the CDN B forwards the content acquisition request of the CDN C and maintains the identity of the content acquisition request message unchanged.
  • CDN C sends a content acquisition request message to the upstream CDN as directed by CDN B
  • the upstream CDNA receives the request of the CDN C, and first determines that the type of the content request message is a content acquisition request message. Since the upstream CDN A itself has this content, the upstream CDN A returns the content response directly to CDN C.
  • the CDN C After the CDN C obtains the content from the upstream CDN A, it returns the content response to the end user.
  • FIG. 5 is a schematic flowchart showing the configuration of a forwarding routing table of a user request message according to an embodiment of the present invention, and determining how to forward a route. As shown in FIG. 5, the construction process includes the following steps:
  • the downstream CDN reports the IP address/geographic range covered by the upstream CDN and its capability and load to the upstream CDN through the BGP protocol, the RRI interface or the Control interface of the CDNi.
  • the reporting may be sent periodically, or may be triggered by an upstream CDN request or other event (such as a downstream CDN overload).
  • the upstream CDN After receiving the information of the downstream CDN, the upstream CDN organizes the related information and constructs a user request forwarding routing table.
  • the forward destination address of the corresponding IP address entry is set to the address of the downstream CDN, and the like.
  • the upstream CDN may forward the user request message to the destination downstream CDN address of the corresponding entry in the forwarding request routing table according to the source IP address of the user request message.
  • FIG. 6 is a flowchart showing the construction flow of a forward routing table of a content acquisition request message according to an embodiment of the present invention, by using a table, or using other algorithms to determine how to forward a route.
  • the construction process includes the following steps:
  • the upstream CDN After the upstream CDN and the downstream CDN reach a contractual relationship, the upstream CDN sends the CSP information signed by itself to the downstream CDN.
  • the upstream CDN can also forward the CSP subscription information of other upstream CDNs that it can indirectly connect to the downstream CDN.
  • the upstream CDN can inform the downstream CDN that it has signed up directly with Sina, and can also inform that it can be forwarded twice to the CDN node contracted with Sohu.
  • the downstream CDN After receiving the CSP subscription information of the upstream CDN, the downstream CDN updates the content of the corresponding content to the forwarding routing table entry.
  • the method of updating may be based on whether the upstream CDN is close to the CSP. For example, for Sina, if the downstream CDN does not have a forward transfer to reach the CDN contracted with Sina, the downstream CDN can directly point the Sina related items to the upstream CDN (since the upstream CDN and Sina directly sign). When the content acquisition request message of the other CDN is subsequently received, the downstream CDN can determine how to forward the content acquisition request message by using the forward routing table information of the corresponding content.
  • the embodiment of the invention further discloses the system for implementing the CDN interconnection routing method, the system comprising: a CDN server, configured to determine a type of the received content request message; according to different types of the content request message, The content request message is forwarded.
  • a CDN server configured to determine a type of the received content request message; according to different types of the content request message, The content request message is forwarded.
  • the CDN server is specifically configured to perform type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to the pre-stored user request forwarding routing table, and forward the content request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
  • the CDN server is further configured to store a user request forwarding routing table and a content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring subscription information, where the user requests the forwarding routing table to The user address information is an index, and the content acquisition request forwarding routing table is indexed by the content identifier.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing algorithm, and forward the user request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing algorithm, and the content acquisition request message is forwarded.
  • the CDN server is specifically configured to: when the type of the content request message is a user request message or a content acquisition request message, determine a forwarding path by using a BGP message, an ALTO server, or a CDNi interface, before performing the content request message. turn.
  • the CDN server is specifically configured to maintain the type of the content request message and perform forwarding, where the content of the content request message is a protocol type, a source address, a destination address, a message header, or a message content. To identify the type of the content request message.
  • the content request message is forwarded in different manners, which can support the routing of the complex CDN internetwork, thereby preventing the problem of cyclic routing in the case of complex CDN interconnection. .

Abstract

Provided are a method and system for achieving CDN interconnection routing. The method comprises: a CDN server judging the types of received content request messages; and according to the different types of the content request messages, forwarding the content request messages. Proposed is a novel forwarding routing manner under the condition of CDN interconnection. By judging the types of received content request messages, the content request messages can be forwarded in different manners. The routing of a complex CDN interconnection network can be supported, the problem of routing loops under the condition of complex CDN interconnection can be prevented, and the content request messages can be forwarded many times through a middle CDN network to achieve routing even if a contract is not directly signed between an upstream CDN server and a downstream CDN server, so as to achieve the purpose of optimizing a network.

Description

一种实现内容分发网络互联路由的方法及系统 技术领域  Method and system for realizing content distribution network interconnection routing
本发明涉及网络通讯技术领域, 尤其涉及一种实现内容分发网络 The present invention relates to the field of network communication technologies, and in particular, to implementing a content distribution network
( CDN, Content Delivery Network )互联路由的方法及装置。 背景技术 (CDN, Content Delivery Network) Method and device for interconnecting routes. Background technique
内容类业务在近年来已逐渐成为互联网中的流量主流。 内容类业务包 括 HTTP浏览、 视频及文件下载、 P2P下载等。 这些业务具有下载流量大, 内容重复性高的特点。  Content-based services have gradually become the mainstream of traffic in the Internet in recent years. Content-based services include HTTP browsing, video and file downloads, P2P downloads, and more. These services have the characteristics of large download traffic and high content repeatability.
为了降低内容类业务对互联网的沖击, 同时也提高用户下载速度, 运 营商和第三方独立提供商开始广泛地应用 CDN 来实现内容的分发。 CDN 可以预先将内容分发到网络边缘节点, 在用户请求内容时, 将用户的请求 重新定向到 CDN节点。 这样, 可以大大加快用户的下载速度, 同时, 对同 一区域的用户请求也可以避免相同内容在广域网上多次传输。  In order to reduce the impact of content-based services on the Internet and to increase user download speeds, operators and third-party independent providers have begun to widely use CDNs to distribute content. The CDN can distribute the content to the network edge node in advance, and redirect the user's request to the CDN node when the user requests the content. In this way, the download speed of the user can be greatly accelerated, and at the same time, the user request for the same area can also prevent the same content from being transmitted multiple times on the WAN.
随着 CDN的广泛应用, 运营商与第三方提供商提供的孤岛式 CDN已 不能满足网络日渐增长的需求。孤岛式 CDN为只能提供某一区域性网络的 内容分发,或者只是和某些内容服务提供商( CSP, Content Service Provider ) 签约提供某些特定内容的分发加速功能。因此,目前迫切需要建立一套 CDN 之间的互联互通体系, 使 CDN之间能够共享分发和内容资源, 提供全 Internet及绝大多数内容的分发加速功能。 在互联网工程任务组(IETF, Internet Engineering Task Force )中目前已建立了 CDNi工作小组, 专注于研 究 CDN之间的互联互通。  With the widespread use of CDNs, the island-based CDNs provided by operators and third-party providers are no longer able to meet the growing demand of the network. An islanded CDN is a distribution that only provides content for a regional network, or simply contracts with certain content service providers (CSPs) to provide distribution acceleration for certain content. Therefore, there is an urgent need to establish a set of interconnection and interoperability systems between CDNs, so that CDNs can share distribution and content resources, and provide distribution acceleration for the entire Internet and most content. The CDNi Working Group has been established in the Internet Engineering Task Force (IETF) to focus on the interconnection between CDNs.
图 1示出了目前的 CDN之间的互通架构。 其中 CDN用户 101是最终 用户节点, 其接收 CDN的内容分发服务。 CDN网络中存在三个角色, CSP 102负责提供内容, 上游 CDN 103与内容服务提供商进行签约, 进行相关 内容的分发工作, 同时用户的第一个内容请求也是通过用户请求接口发送 到上游 CDN 103的。当上游 CDN 103认为用户请求的内容适合由下游 CDN 104来进行分发时, 上游 CDN103可以将用户的请求前转到下游 CDN 104 来进行处理。 最终, CDN用户 101可以通过下游 CDN 104来下载相关的内 容。 上游 CDN 103和下游 CDN 104之间通过 CDM接口进行互联互通 , 并 且下游 CDN 104可以通过内容获取接口从上游 CDN 103获取内容。 Figure 1 shows the interworking architecture between current CDNs. The CDN user 101 is an end user node that receives the content distribution service of the CDN. There are three roles in the CDN network, CSP 102 is responsible for providing content, and the upstream CDN 103 contracts with the content service provider to perform distribution of related content, and the first content request of the user is also sent to the upstream CDN 103 through the user request interface. When the upstream CDN 103 considers that the content requested by the user is suitable for distribution by the downstream CDN 104, the upstream CDN 103 can forward the user's request to the downstream CDN 104 for processing. Finally, the CDN user 101 can download the relevant content through the downstream CDN 104. The upstream CDN 103 and the downstream CDN 104 are interconnected by a CDM interface, and the downstream CDN 104 can acquire content from the upstream CDN 103 through a content acquisition interface.
在 CDN互联的场景中, 首先要解决的就是内容请求前转过程中的循环 路由问题。 例如, 当用户请求发送到上游 CDN 103处后, 上游 CDN 103将 请求前转到下游 CDN 104。 如果此时下游 CDN还没有获取相关内容, 下游 CDN需要通过上游 CDN 103来下载对应的内容,然后才能将内容发给 CDN 用户 101。 但是, 如果此时上游 CDN 103误将下游 CDN 104的内容获取请 求认为是用户发来的请求, 将其再前转到下游 CDN 104。 此时, 该请求将 不断在上游 CDN 103和下游 CDN 104之间进行前转,造成路由死循环现象。  In the scenario of CDN interconnection, the first problem to be solved is the cyclic routing problem in the content request forwarding process. For example, after the user requests to be sent to the upstream CDN 103, the upstream CDN 103 forwards the request to the downstream CDN 104. If the downstream CDN has not yet obtained the relevant content, the downstream CDN needs to download the corresponding content through the upstream CDN 103 before the content can be sent to the CDN user 101. However, if the upstream CDN 103 mistakenly considers the content acquisition request of the downstream CDN 104 to be a request from the user, it forwards it to the downstream CDN 104. At this point, the request will continue to forward between the upstream CDN 103 and the downstream CDN 104, causing an infinite loop of routing.
为解决这样的路由死循环现象, CDM工作组采用的解决方式如下: 上 游 CDN 103和下游 CDN 104之间进行签约, 并约定当下游 CDN 104向上 游 CDN 103 请求内容时, 需要通过特别约定的统一资源定位符 (URL, Uniform/Universal Resource Locator )来请求, 以与普通用户的请求进行区 别。 其具体流程如图 2所示:  In order to solve such an infinite loop of routing, the CDM working group adopts the following solution: The upstream CDN 103 and the downstream CDN 104 sign a contract, and it is agreed that when the downstream CDN 104 requests content from the upstream CDN 103, it is necessary to adopt a special agreement. A resource locator (URL, Uniform/Universal Resource Locator) is requested to distinguish it from a normal user's request. The specific process is shown in Figure 2:
201 ) CDN用户节点使用 CSP的 URL请求相关内容, 该用户请求将会 被发送到与 CSP签约的上游 CDN处。  201) The CDN user node requests the relevant content using the CSP's URL, and the user request will be sent to the upstream CDN contracted with the CSP.
202 )上游 CDN分析用户信息和请求内容, 选择一个合适的下游 CDN 进行本次业务处理。  202) The upstream CDN analyzes the user information and the requested content, and selects a suitable downstream CDN for the current business processing.
203 )上游 CDN将 CDN用户节点重新定向到下游 CDN上。 这时, 上 游 CDN可以采用 HTTP重定向或者 DNS 重定向将用户指引到一个新的 204 ) CDN用户节点按照新的 URL重新向下游 CDN发送用户请求。203) The upstream CDN redirects the CDN user node to the downstream CDN. At this point, the upstream CDN can use HTTP redirects or DNS redirects to direct users to a new one. 204) The CDN user node resends the user request to the downstream CDN according to the new URL.
205 )下游 CDN发现该内容目前本 CDN的节点上没有緩存, 需要从内 容源获取内容才能为用户提供服务。 205) The downstream CDN finds that the content is currently not cached on the node of the CDN, and needs to obtain content from the content source to provide services for the user.
206 ) 下游 CDN使用与上游 CDN约定的一个特殊的地址(上游 CDN URL ) 来发送内容获取请求。  206) The downstream CDN sends a content acquisition request using a special address (upstream CDN URL) agreed with the upstream CDN.
207 )上游 CDN通过内容获取请求的 URL来判断是下游 CDN发送的 内容获取请求。 此时, 上游 CDN不再前转该请求, 而是自身进行处理。  207) The upstream CDN determines, by the URL of the content acquisition request, that it is a content acquisition request sent by the downstream CDN. At this point, the upstream CDN no longer forwards the request, but processes it by itself.
208 )上游 CDN将内容发送给下游 CDN。  208) The upstream CDN sends the content to the downstream CDN.
209 ) 下游 CDN将内容发送给 CDN用户节点。  209) The downstream CDN sends the content to the CDN user node.
上述流程可以解决 CDN之间前转的循环路由问题。 但是, 该解决方案 仅限于只存在一个上游 CDN将请求转发到一个下游 CDN的情形。 如果存 在多级前转的情况, 或者多个 CDN之间建立了网状结构时, 该解决方案无 法很好地解决前转的循环路由问题。 发明内容  The above process can solve the cyclic routing problem of forwarding between CDNs. However, the solution is limited to situations where there is only one upstream CDN forwarding the request to a downstream CDN. If there are multiple levels of forwarding, or if a mesh structure is established between multiple CDNs, the solution does not solve the round-robin routing problem of forwarding. Summary of the invention
有鉴于此,本发明实施例的主要目的在于提供一种实现 CDN互联路由 的方法及系统, 能够在复杂的 CDN互联情况下防止循环路由问题。  In view of this, the main purpose of the embodiments of the present invention is to provide a method and system for implementing CDN interconnection routing, which can prevent the cyclic routing problem in the case of complex CDN interconnection.
为达到上述目的, 本发明实施例的技术方案是这样实现的:  To achieve the above objective, the technical solution of the embodiment of the present invention is implemented as follows:
一种实现内容分发网络(CDN )互联路由的方法, 所述方法包括: CDN服务器对接收到的内容请求消息的类型进行判断;  A method for implementing a content distribution network (CDN) interconnection route, the method comprising: determining, by a CDN server, a type of a received content request message;
根据所述内容请求消息的不同类型, 对所述内容请求消息进行前转。 其中, 所述 CDN服务器对接收到的内容请求消息的类型进行判断为: CDN服务器根据所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内容的一种进行类型判断。  The content request message is forwarded according to different types of the content request message. The CDN server determines, according to the type of the received content request message, that the CDN server performs type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
其中, 所述根据所述内容请求消息的不同类型, 对所述内容请求消息 进行前转为: The requesting message for the content according to different types of the content request message Forward to:
当所述内容请求消息的类型为用户请求消息时, 根据预先存储的用户 请求前转路由表确定转发路径, 对所述内容请求消息进行前转;  When the type of the content request message is a user request message, determining a forwarding path according to the pre-stored user request forwarding routing table, and forwarding the content request message;
当所述内容请求消息的类型为内容获取请求消息时, 根据预先存储的 内容获取请求前转路由表确定转发路径, 对所述内容请求消息进行前转。  When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
进一步地, 所述方法还包括:  Further, the method further includes:
将通过静态配置或动态获取签约信息的方式确定的用户请求前转路由 表和内容获取请求前转路由表存储于 CDN服务器中; 其中, 所述用户请求 前转路由表以用户地址信息为索引, 内容获取请求前转路由表以内容标识 为索引。  The user request forwarding routing table and the content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring the subscription information are stored in the CDN server; wherein the user request forwarding routing table uses the user address information as an index. The content acquisition request forwarding routing table is indexed by the content identifier.
其中, 所述根据所述内容请求消息的不同类型, 对所述内容请求消息 进行前转为:  The content request message is forwarded according to different types of the content request message to:
当所述内容请求消息的类型为用户请求消息时, 根据预先存储的用户 请求前转路由算法确定转发路径, 对所述用户请求消息进行前转;  When the type of the content request message is a user request message, determining a forwarding path according to a pre-stored user request forwarding routing algorithm, and forwarding the user request message;
当所述内容请求消息的类型为内容获取请求消息时, 根据预先存储的 内容获取请求前转路由算法确定转发路径, 对所述内容获取请求消息进行 前转。  And when the content request message is a content acquisition request message, determining a forwarding path according to the pre-stored content acquisition request forwarding routing algorithm, and forwarding the content acquisition request message.
其中, 所述根据所述内容请求消息的不同类型, 对所述内容请求消息 进行前转为:  The content request message is forwarded according to different types of the content request message to:
当所述内容请求消息的类型为用户请求消息或内容获取请求消息时, 通过边界网关协议(BGP )消息、应用层流量优化(ALTO )服务器或 CDNi 接口确定转发路径, 对所述内容请求消息进行前转。  When the type of the content request message is a user request message or a content acquisition request message, determining a forwarding path by using a Border Gateway Protocol (BGP) message, an application layer traffic optimization (ALTO) server, or a CDNi interface, and performing the content request message Forward.
其中, 对所述内容请求消息进行前转为:  The content request message is forwarded to:
所述 CDN服务器保持所述内容请求消息的类型不变进行前转, 其中, 通过所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内 容的一种标识所述内容请求消息的类型。 The CDN server keeps the type of the content request message unchanged, and forwards the message through the content type, source address, destination address, message header or message of the content request message. A type of content that identifies the content request message.
一种实现 CDN互联路由的系统, 所述系统包括: CDN服务器, 设置 为对接收到的内容请求消息的类型进行判断; 根据所述内容请求消息的不 同类型, 对所述内容请求消息进行前转。  A system for implementing a CDN interconnection route, the system comprising: a CDN server, configured to determine a type of a received content request message; and forwarding the content request message according to different types of the content request message .
其中, 所述 CDN服务器, 具体设置为根据所述内容请求消息的协议类 型、 源地址、 目的地址、 消息头或消息内容的一种进行类型判断。  The CDN server is specifically configured to perform type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
其中, 所述 CDN服务器, 具体设置为当所述内容请求消息的类型为用 户请求消息时, 根据预先存储的用户请求前转路由表确定转发路径, 对所 述内容请求消息进行前转; 当所述内容请求消息的类型为内容获取请求消 息时, 根据预先存储的内容获取请求前转路由表确定转发路径, 对所述内 容请求消息进行前转。  The CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to the pre-stored user request forwarding routing table, and forward the content request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
进一步地, 所述 CDN服务器, 还设置为存储通过静态配置或动态获取 签约信息的方式确定的用户请求前转路由表和内容获取请求前转路由表; 其中, 所述用户请求前转路由表以用户地址信息为索引, 内容获取请求前 转路由表以内容标识为索引。  Further, the CDN server is further configured to store a user request forwarding routing table and a content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring subscription information; wherein, the user requests the forwarding routing table to The user address information is an index, and the content acquisition request forwarding routing table is indexed by the content identifier.
其中, 所述 CDN服务器, 具体设置为当所述内容请求消息的类型为用 户请求消息时, 根据预先存储的用户请求前转路由算法确定转发路径, 对 所述用户请求消息进行前转; 当所述内容请求消息的类型为内容获取请求 消息时, 根据预先存储的内容获取请求前转路由算法确定转发路径, 对所 述内容获取请求消息进行前转。  The CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing algorithm, and forward the user request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing algorithm, and the content acquisition request message is forwarded.
其中, 所述 CDN服务器, 具体设置为当所述内容请求消息的类型为用 户请求消息或内容获取请求消息时,通过 BGP消息、 ALTO服务器或 CDM 接口确定转发路径, 对所述内容请求消息进行前转。  The CDN server is specifically configured to: when the type of the content request message is a user request message or a content acquisition request message, determine a forwarding path by using a BGP message, an ALTO server, or a CDM interface, before performing the content request message. turn.
其中, 所述 CDN服务器, 具体设置为保持所述内容请求消息的类型不 变进行前转, 其中, 通过所述内容请求消息的协议类型、 源地址、 目的地 址、 消息头或消息内容的一种标识所述内容请求消息的类型。 The CDN server is specifically configured to keep forwarding the type of the content request message, where the protocol type, source address, and destination of the content request message are A type of address, header, or message content that identifies the type of content request message.
本发明实施例提出了一种新的 CDN互联情况下的前转路由方式,通过 判断接收到的内容请求消息的类型, 对所述内容请求消息进行不同方式的 前转, 可以支持复杂的 CDN互联网络的路由, 能够防止在复杂的 CDN互 联情况下循环路由问题, 而且即使在上游 CDN服务器和下游 CDN服务器 没有直接签约情况下,也可以通过中间的 CDN网络对所述内容请求消息进 行多次前转实现路由, 达到优化网络的目的。 附图说明  The embodiment of the present invention provides a forward routing method in the case of a new CDN interconnection. By determining the type of the received content request message, the content request message is forwarded in different manners, which can support complex CDN interconnection. The routing of the network can prevent the cyclic routing problem in the case of complex CDN interconnection, and even if the upstream CDN server and the downstream CDN server do not directly sign the contract, the content request message can be performed multiple times through the intermediate CDN network. To achieve routing, to achieve the purpose of optimizing the network. DRAWINGS
图 1为现有 CDN之间的互通的架构示意图;  FIG. 1 is a schematic structural diagram of interworking between existing CDNs;
图 2为现有 CDNi重定向的流程示意图;  2 is a schematic flow chart of existing CDNi redirection;
图 3为本发明实施例实现 CDN互联路由的方法的实现流程示意图; 图 4为本发明实施例实现 CDN互联路由的方法实施例的实现流程示意 图;  3 is a schematic flowchart of an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention; FIG. 4 is a schematic flowchart of an implementation manner of a method for implementing a CDN interconnection route according to an embodiment of the present invention;
图 5为本发明实施例用户请求消息的前转路由表的构造流程示意图; 图 6为本发明实施例内容获取请求消息的前转路由表的构造流程示意 图。 具体实施方式  5 is a schematic structural diagram of a forward routing table of a user request message according to an embodiment of the present invention; and FIG. 6 is a schematic flowchart of a forward routing table of a content obtaining request message according to an embodiment of the present invention. detailed description
针对以上问题, 本发明实施例提出将 CDN前转处理分为两类: 用户请 求前转和内容获取请求前转。 对于用户请求前转和内容获取请求前转采用 不同的方式进行前转, 而且前转时还可以保留内容请求消息的类型。 这样 可以做到在复杂的 CDN互联情况下仍然能够防止循环路由问题。  In view of the above problems, the embodiments of the present invention propose to divide the CDN forwarding processing into two categories: user request forwarding and content acquisition request forwarding. The user request forwarding and content acquisition request forwarding are forwarded in different ways, and the type of the content request message can also be retained when forwarding. This will prevent loop routing problems even in the case of complex CDN interconnections.
本发明实施例的基本思想为: CDN服务器对接收到的内容请求消息的 类型进行判断; 根据所述内容请求消息的不同类型, 对所述内容请求消息 进行前转。 图 3示出了本发明实施例实现 CDN互联路由的方法的实现流程,如图 3所示, 所述方法包括下述步驟: The basic idea of the embodiment of the present invention is: The CDN server determines the type of the received content request message; and forwards the content request message according to different types of the content request message. FIG. 3 is a flowchart showing an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention. As shown in FIG. 3, the method includes the following steps:
步驟 301, CDN服务器对接收到的内容请求消息的类型进行判断; 本发明实施例中, 内容请求消息的类型具体包括用户请求消息和内容 获取请求消息。 其中, 用户请求消息是指用户发起的内容请求, 包括 CDN 用户节点发起的初始内容请求以及经过 CDN服务器前转的用户请求消息; 该用户请求消息的目的是将内容下载到最终用户的设备上。 内容获取请求 消息是指由其他 CDN服务器或 CDN存储节点发起的内容请求, 包括由其 他 CDN发起的初始内容获取请求以及经过 CDN服务器前转的内容获取请 求消息;该内容获取请求消息的目的是在 CDN内部分发内容,即下游 CDN 的存储节点获取内容进行緩存。  Step 301: The CDN server determines the type of the received content request message. In the embodiment of the present invention, the type of the content request message specifically includes a user request message and a content acquisition request message. The user request message refers to a content request initiated by the user, including an initial content request initiated by the CDN user node and a user request message forwarded by the CDN server; the purpose of the user request message is to download the content to the device of the end user. The content acquisition request message refers to a content request initiated by another CDN server or a CDN storage node, including an initial content acquisition request initiated by another CDN and a content acquisition request message forwarded by the CDN server; the purpose of the content acquisition request message is The content is distributed internally by the CDN, that is, the storage node of the downstream CDN obtains content for caching.
其中, CDN服务器对接收到的内容请求消息的类型进行判断为: 对接 收到的内容请求消息进行分析,确定所述内容请求消息的类型;具体为 CDN 服务器可以根据接收到的内容请求消息的协议类型进行区分, 具体可以通 过数据面承载协议、 控制面请求消息的协议进行区分, 如用户请求消息可 以通过 HTTP请求进行实现; 内容获取请求消息可以通过 FTP请求进行实 现; 或者,  The CDN server determines the type of the received content request message as: analyzing the received content request message to determine the type of the content request message; specifically, the protocol that the CDN server can request the message according to the received content. The type can be differentiated by the data plane bearer protocol and the control plane request message protocol. For example, the user request message can be implemented by using an HTTP request; the content acquisition request message can be implemented by using an FTP request; or
CDN服务器还可以通过接收到的内容请求消息的源地址进行区分; 例 如, CDN服务器可以预先存储其他 CDN存储节点的 IP地址或者 IP地址段, 这样在该地址范围内的节点发送的请求即可认为是内容获取请求消息; 或 者,  The CDN server can also distinguish by the source address of the received content request message; for example, the CDN server can pre-store the IP address or IP address segment of other CDN storage nodes, so that the request sent by the node in the address range can be considered Is a content acquisition request message; or,
CDN服务器还可以通过接收到的内容请求消息的目的地址进行区分; 目的地址可以包括所述内容请求消息的目的 IP地址、目的 URL或者目的端 口号等等; 例如, CDN可以为用户请求消息及内容获取请求消息分配不同 的 URL地址, 对于不同类型的内容请求消息要求使用不同的 URL进行访 问。 例如, 要求用户访问时使用 cdna.com, 而其他 CDN获取内容时, 使用 cdnget.cdna.com; 或者, The CDN server may also distinguish by the destination address of the received content request message; the destination address may include a destination IP address, a destination URL, or a destination port number of the content request message, etc.; for example, the CDN may request a message and content for the user. Get the request message to assign a different URL address, for different types of content request messages require different URLs to visit ask. For example, ask users to use cdna.com when they access, and other CDNs to use cdnget.cdna.com; or,
CDN服务器还可以通过对接收到的内容请求消息的消息头或者消息内 容进行区分; 例如, 对于内容获取请求消息, 可以在消息头或者消息内容 中增加特殊的参数或者 tag来实现。 The CDN server can also distinguish the message header or the message content of the received content request message; for example, the content acquisition request message can be implemented by adding a special parameter or TAG to the message header or the message content.
步驟 302, CDN服务器根据所述内容请求消息的不同类型, 对所述内 容请求消息进行前转;  Step 302: The CDN server forwards the content request message according to different types of the content request message.
这里, CDN服务器根据确定的所述内容请求消息的不同类型, 选择不 同的路由方式进行前转具体为: 当所述内容请求消息的类型为用户请求消 息时, CDN服务器具体可以通过查询本地预先存储的路由表、 执行本地预 先存储的路由算法或查询其他 CDN服务器等等进行路由方式选择; 具体方 式包括但不限于:  Here, the CDN server selects a different routing manner to perform forwarding according to the determined different types of the content request message. Specifically, when the type of the content request message is a user request message, the CDN server may specifically pre-store by querying. Routing table, performing local pre-stored routing algorithm or querying other CDN servers, etc. for routing mode selection; specific methods include but are not limited to:
CDN服务器通过静态配置用户请求前转规则或前转路由表进行路由方 式选择; 其中, 所述用户请求前转路由表以用户地址信息为索引;  The CDN server performs the routing mode selection by statically configuring the user request forwarding rule or the forwarding routing table. The user request forwarding routing table uses the user address information as an index.
CDN服务器通过边界网关协议 ( BGP, Border Gateway Protocol )消息 获取其他 CDN服务器的服务范围火签约信息, 建立本地路由表; 在收到所 述用户请求消息后根据用户 IP地址信息, 对应本地路由表中其他 CDN服 务器的服务范围或签约信息, 选择合适的 CDN服务器进行前转;  The CDN server obtains the service-scope hot-selling information of the other CDN server through the Border Gateway Protocol (BGP) message, and establishes a local routing table. After receiving the user request message, the CDN server corresponds to the local routing table according to the user IP address information. The service scope or subscription information of other CDN servers, select the appropriate CDN server for forwarding;
CDN服务器通过查询应用层流量优化( ALTO, Application-Layer Traffic Optimization )服务器, 通过用户请求消息的地址信息, 查询网络拓朴结构, 选择合适的 CDN服务器进行前转;  The CDN server queries the application layer traffic optimization (ALTO, Server-Layer Traffic Optimization) server, queries the network topology structure through the address information of the user request message, and selects a suitable CDN server to forward;
CDN服务器通过 CDM接口或者其他接口,获取其他 CDN服务器的服 务能力、 负载情况、 费用情况等信息, 根据这些信息选择合适的 CDN服务 器进行前转;  The CDN server obtains information about the service capabilities, load status, and cost status of other CDN servers through the CDM interface or other interfaces, and selects a suitable CDN server to forward according to the information;
CDN服务器通过 CDM接口或其他接口,获取其他 CDN服务器中存储 内容的情况, 根据 CDN服务器中已緩存的内容情况选择合适的 CDN服务 器进行前转; The CDN server obtains storage in other CDN servers through the CDM interface or other interfaces. In the case of content, select a suitable CDN server to forward according to the content of the cached content in the CDN server;
CDN服务器通过 CDM接口或其他接口,查询其他 CDN服务器,获取 合适的 CDN进行前转。  The CDN server queries other CDN servers through the CDM interface or other interfaces to obtain a suitable CDN for forwarding.
上述选择方式可以相互结合,共同权衡实现用户请求消息的 CDN服务 器的前转选择。 其中, 基本选择原则是挑选离用户近, 且目前状况良好的 CDN服务器为用户提供服务。 即, 选择时主要因素是依据用户的地址(地 理位置)信息。 对于选择结果, 可以是通过 HTTP/DNS前转方式将用户转 到其他 CDN服务器, 也可以是选择自身进行处理。  The above selection methods can be combined with each other to jointly weigh forward selection of the CDN server that implements the user request message. Among them, the basic selection principle is to select a CDN server that is close to the user and is in good condition to provide services for users. That is, the main factor in selection is based on the user's address (geographic location) information. For the result of the selection, the user can be transferred to another CDN server through HTTP/DNS forwarding, or it can be selected for processing.
当所述内容请求消息的类型为内容获取请求消息时, CDN服务器具体 可以通过查询本地预先存储的路由表、 执行本地预先存储的路由算法或查 询其他 CDN服务器等等进行路由方式选择; 具体方式包括但不限于: When the type of the content request message is a content acquisition request message, the CDN server may specifically perform a routing mode selection by querying a local pre-stored routing table, performing a local pre-stored routing algorithm, or querying other CDN servers, etc. But not limited to:
CDN服务器通过静态配置内容签约关系以及内容的上游 CDN服务器 节点信息来确定内容获取请求前转路由表, 确定如何前转所述内容获取请 求消息; 其中, 所述内容获取请求前转路由表以内容标识为索引; The CDN server determines the content acquisition request forwarding routing table by statically configuring the content subscription relationship and the upstream CDN server node information of the content, and determines how to forward the content acquisition request message; wherein the content acquisition request forwarding routing table is content Identifies as an index;
CDN服务器通过 CDNi接口或 BGP等路由协议, 获取其他 CDN服务 器的签约关系, 确定针对不同内容的上游 CDN服务器的信息;  The CDN server obtains the contract relationship of other CDN servers through the CDNi interface or a routing protocol such as BGP, and determines the information of the upstream CDN server for different contents;
CDN服务器通过 CDNi接口或其他协议,获取其他 CDN服务器中已经 緩存的内容情况, 确定内容获取请求的前转规则;  The CDN server obtains the content of the cached content in the other CDN server through the CDNi interface or other protocols, and determines the forwarding rule of the content acquisition request;
上述选择方式可以相互结合, 共同权衡实现内容获取请求消息中的 CDN服务器选择。 其中, 基本选择原则是挑选离内容获取请求消息中的内 容近, 且目前状况良好的 CDN服务器为用户提供服务。 即, 选择时主要因 素是依据内容的信息, 选择拥有内容, 或者离内容最终拥有者(CSP )接近 的 CDN服务器。对于选择结果,可以是通过 HTTP/DNS前转方式将内容获 取请求转到其他 CDN服务器, 也可以是选择自身进行处理。 具体地, 在确定所述内容请求消息的路由前转方式后, CDN服务器可 以通知 CDN用户节点或者下游 CDN緩存节点转向新 CDN服务器。 此时, CDN服务器应当保持所述内容请求消息的类型不变,即对于用户请求消息 , 应保证前转后新 CDN服务器仍然能够识别该内容请求消息是用户请求消 息; 对于内容获取请求消息, 应保证前转后新 CDN服务器仍然能够识别该 内容请求消息是内容获取请求消息。 这里, CDN服务器可以通过所述内容 请求消息的协议类型、 消息源地址、 消息目的地址、 消息头或消息内容等 等来标识所述内容请求消息的类型。 The above selection methods can be combined with each other to jointly weigh the CDN server selection in the content acquisition request message. The basic selection principle is to select a CDN server that is close to the content acquisition request message and that is currently in good condition to provide services for the user. That is, the main factor in selection is based on the information of the content, and the CDN server that owns the content or is close to the final content owner (CSP). For the result of the selection, the content acquisition request may be transferred to another CDN server through HTTP/DNS forwarding, or it may be selected for processing. Specifically, after determining the route forwarding manner of the content request message, the CDN server may notify the CDN user node or the downstream CDN cache node to switch to the new CDN server. At this time, the CDN server should keep the type of the content request message unchanged, that is, for the user request message, it should be ensured that the new CDN server can still recognize that the content request message is a user request message after forwarding; for the content acquisition request message, After the forwarding is guaranteed, the new CDN server can still recognize that the content request message is a content acquisition request message. Here, the CDN server may identify the type of the content request message by the protocol type of the content request message, the message source address, the message destination address, the message header or the message content, and the like.
应当理解, 保持对内容请求消息的类型不变并不代表用于标识所述内 容请求消息中的方式不变。例如, CDN B在将 CDN C的内容请求消息转发 给 CDN A时,可以根据具体的签约方式确定所述内容请求消息的标识方式。 CDN B可以通过 CDN C发送内容请求消息的目的地址,如 cdnbget.csp.com, 来确定 CDN C的发送的内容请求消息是内容获取请求消息。 但是, CDN B 可以在对 CDN C进行前转指示的时候,指示 CDN C在向 CDNA发送内容 请求消息时使用特殊的端口号。 而 CDNA可以根据该特殊的端口号来确定 CDN C发送的内容请求消息是内容获取请求消息。 如此, 在本发明实施例 中, 当 CDN服务器能够使下一跳的 CDN服务器识别出内容请求消息类型, 且识别出的类型与本 CDN服务器识别的类型一致, 均可以认为是对内容请 求消息类型的一种保持方式。  It should be understood that maintaining the type of the content request message unchanged does not mean that the manner used to identify the content request message is unchanged. For example, when the CDN B forwards the content request message of the CDN C to the CDN A, the CDN B can determine the identification manner of the content request message according to a specific subscription manner. The CDN B can send the destination address of the content request message, such as cdnbget.csp.com, through the CDN C to determine that the content request message sent by the CDN C is a content acquisition request message. However, CDN B can instruct CDN C to use a special port number when sending a content request message to the CDNA when forwarding the CDN C. The CDNA can determine, according to the special port number, that the content request message sent by the CDN C is a content acquisition request message. As such, in the embodiment of the present invention, when the CDN server can make the CDN server of the next hop recognize the content request message type, and the identified type is consistent with the type recognized by the CDN server, it can be considered as the content request message type. a way of keeping.
图 4示出了本发明实施例实现 CDN互联路由的方法实施例的实现流 程, 如图 4所示, 所述实施例包括下述步驟:  FIG. 4 is a flowchart showing an implementation of a method for implementing a CDN interconnection route according to an embodiment of the present invention. As shown in FIG. 4, the embodiment includes the following steps:
401 ) CDN用户节点发送内容请求消息, 由于 CSP同上游 CDNA进行 了签约, 所述内容请求消息由上游 CDNA进行处理。  401) The CDN user node sends a content request message, and the content request message is processed by the upstream CDNA because the CSP is contracted with the upstream CDNA.
402 )上游 CDN A使用前述的方法, 区分出所述内容请求消息的类型 为是用户发送的用户请求消息。 上游 CDNA执行用户请求前转算法, 判断 出本次请求应该由 CDN B来执行。 此时, 上游 CDN A通知 CDN用户节点 进行前转, 具体的前转方式可以是 DNS 或者 HTTP前转。 在前转中上游 CDN A可以通过特定的地址编码等方式标识本次前转是用户请求前转。 402) The upstream CDN A uses the foregoing method to distinguish that the content request message is of a type that is a user request message sent by the user. The upstream CDNA performs a user request forwarding algorithm to determine This request should be executed by CDN B. At this time, the upstream CDN A notifies the CDN user node to forward, and the specific forwarding method may be DNS or HTTP forwarding. In the forward forwarding, the upstream CDN A can identify that the forwarding is a user request forwarding by means of a specific address encoding or the like.
403 ) CDN用户节点按照上游 CDNA的指示, 重新发送内容请求消息 到 CDN B。 CDN用户节点并不一定需要分析出上游 CDN A在地址编码中 标识了本次前转是用户请求前转。  403) The CDN user node resends the content request message to CDN B as indicated by the upstream CDNA. The CDN user node does not necessarily need to analyze the upstream CDN A in the address code to identify that this forwarding is the user request forwarding.
404 ) CDN B对接收到的内容请求消息进行分析, 识别出该内容请求消 息的类型为用户请求消息。 CDN B执行用户请求前转算法, 判断出本次请 求应该由下游 CDN C来执行。此时, CDN B通知 CDN用户节点进行前转 , 并维持本次内容请求消息的标识。  404) The CDN B analyzes the received content request message, and identifies that the type of the content request message is a user request message. CDN B performs a user request forwarding algorithm to determine that this request should be performed by the downstream CDN C. At this time, the CDN B notifies the CDN user node to forward, and maintains the identity of the current content request message.
405 ) CDN用户节点按照 CDN B的指示, 重新发送内容请求消息到下 游 CDN C。  405) The CDN user node resends the content request message to the downstream CDN C as instructed by CDN B.
406) 下游 CDN C对接收到的内容请求消息进行分析,确定该内容请求 消息的类型是用户请求消息, CDN C执行用户请求前转算法, 确定本次请 求应该由自身负责。 由于 CDN C目前没有存储该内容, CDN C需要向其他 CDN服务器获取内容。 CDN C执行内容获取请求前转算法, 判断应该向 CDN B发送内容获取请求。 CDN C向 CDN B发送内容获取请求。  406) The downstream CDN C analyzes the received content request message, determines that the type of the content request message is a user request message, and the CDN C performs a user request forwarding algorithm to determine that the request should be handled by itself. Since CDN C does not currently store this content, CDN C needs to obtain content from other CDN servers. The CDN C executes a content acquisition request forwarding algorithm, and determines that a content acquisition request should be sent to the CDN B. The CDN C sends a content acquisition request to the CDN B.
407 ) CDN B收到 CDN C的内容请求消息,判断该内容请求消息的类 型是由下游 CDN发送的内容获取请求消息, 例如, 通过内容请求消息是发 往本 CDN的一个特殊 URL进行类型判断。 CDN B自身也没有对应的内容, CDN B执行内容获取前转算法, 判断应该将所述内容获取请求消息前转到 CDN A。 CDN B对 CDN C的内容获取请求进行前转,并维持所述内容获取 请求消息的标识不变。  407) The CDN B receives the content request message of the CDN C, and determines that the type of the content request message is a content acquisition request message sent by the downstream CDN, for example, by the content request message being a special URL sent to the CDN for type determination. CDN B itself does not have corresponding content, and CDN B executes a content acquisition forwarding algorithm, and judges that the content acquisition request message should be forwarded to CDN A. The CDN B forwards the content acquisition request of the CDN C and maintains the identity of the content acquisition request message unchanged.
408 ) CDN C按 CDN B的指示, 将内容获取请求消息发送到上游 CDN 408) CDN C sends a content acquisition request message to the upstream CDN as directed by CDN B
A。 409 )上游 CDNA收到 CDN C的请求, 首先判断该内容请求消息的类 型是内容获取请求消息。 由于上游 CDN A本身有该内容, 上游 CDN A直 接将内容响应返回给 CDN C。 A. 409) The upstream CDNA receives the request of the CDN C, and first determines that the type of the content request message is a content acquisition request message. Since the upstream CDN A itself has this content, the upstream CDN A returns the content response directly to CDN C.
410 ) CDN C从上游 CDN A获取了内容后,将内容响应返回给最终用 户。  410) After the CDN C obtains the content from the upstream CDN A, it returns the content response to the end user.
图 5示出了本发明实施例用户请求消息的前转路由表的构造流程示意, 判断如何前转路由。 如图 5所示, 所述构造流程包括下述步驟:  FIG. 5 is a schematic flowchart showing the configuration of a forwarding routing table of a user request message according to an embodiment of the present invention, and determining how to forward a route. As shown in FIG. 5, the construction process includes the following steps:
501 )上游 CDN和下游 CDN达成签约关系后, 下游 CDN通过 BGP 协议、 CDNi的 RRI接口或 Control接口向上游 CDN上报自身覆盖的 IP地 址 /地理范围以及其能力、 负荷等信息。  501) After the upstream CDN and the downstream CDN reach a contractual relationship, the downstream CDN reports the IP address/geographic range covered by the upstream CDN and its capability and load to the upstream CDN through the BGP protocol, the RRI interface or the Control interface of the CDNi.
这里, 所述上报可以是定时发送, 也可以是在上游 CDN请求或其他事 件(如下游 CDN过负荷)触发发送。  Here, the reporting may be sent periodically, or may be triggered by an upstream CDN request or other event (such as a downstream CDN overload).
502) 上游 CDN接收到下游 CDN的信息后, 整理相关信息, 构建用户 请求前转路由表。  502) After receiving the information of the downstream CDN, the upstream CDN organizes the related information and constructs a user request forwarding routing table.
例如, 按照下游 CDN覆盖的范围, 将对应的 IP地址条目的前转目的 地址设为下游 CDN的地址等。 在后续收到用户请求消息时, 上游 CDN可 以根据用户请求消息的源 IP地址, 将所述用户请求消息前转到用户请求前 转路由表中对应条目的目的下游 CDN地址。  For example, according to the range covered by the downstream CDN, the forward destination address of the corresponding IP address entry is set to the address of the downstream CDN, and the like. Upon receiving the user request message, the upstream CDN may forward the user request message to the destination downstream CDN address of the corresponding entry in the forwarding request routing table according to the source IP address of the user request message.
图 6示出了本发明实施例内容获取请求消息的前转路由表的构造流程, 由表, 或使用其他算法来判断如何前转路由。 如图 6所示, 所述构造流程 包括下述步驟:  FIG. 6 is a flowchart showing the construction flow of a forward routing table of a content acquisition request message according to an embodiment of the present invention, by using a table, or using other algorithms to determine how to forward a route. As shown in FIG. 6, the construction process includes the following steps:
601 )上游 CDN和下游 CDN达成签约关系后,上游 CDN将与自身签 约的 CSP信息发送给下游 CDN。 这里, 上游 CDN也可以将自己可以间接连接的其他上游 CDN的 CSP 签约信息也转发给下游 CDN。 例如, 上游 CDN可以告知下游 CDN, 其直 接和新浪进行了签约, 同时也可以告知, 其可以经过 2次转发到达同搜狐 签约的 CDN节点。 601) After the upstream CDN and the downstream CDN reach a contractual relationship, the upstream CDN sends the CSP information signed by itself to the downstream CDN. Here, the upstream CDN can also forward the CSP subscription information of other upstream CDNs that it can indirectly connect to the downstream CDN. For example, the upstream CDN can inform the downstream CDN that it has signed up directly with Sina, and can also inform that it can be forwarded twice to the CDN node contracted with Sohu.
602 ) 下游 CDN收到上游 CDN的 CSP签约信息后, 将对应内容的内 容获取前转路由表条目进行更新。  602) After receiving the CSP subscription information of the upstream CDN, the downstream CDN updates the content of the corresponding content to the forwarding routing table entry.
更新的方法可以是根据上游 CDN是否接近 CSP为准。例如,对于新浪, 如下游 CDN没有一次前转即可到达与新浪签约的 CDN, 下游 CDN可以将 新浪相关的条目直接指向上游 CDN (由于上游 CDN与新浪直接签约)。 在 后续收到其他 CDN的内容获取请求消息时, 下游 CDN可以通过对应内容 的前转路由表信息, 确定应该如何前转所述内容获取请求消息。  The method of updating may be based on whether the upstream CDN is close to the CSP. For example, for Sina, if the downstream CDN does not have a forward transfer to reach the CDN contracted with Sina, the downstream CDN can directly point the Sina related items to the upstream CDN (since the upstream CDN and Sina directly sign). When the content acquisition request message of the other CDN is subsequently received, the downstream CDN can determine how to forward the content acquisition request message by using the forward routing table information of the corresponding content.
本发明实施例还公开了上述实现 CDN互联路由方法的系统,所述系统 包括: CDN服务器, 用于对接收到的内容请求消息的类型进行判断; 根据 所述内容请求消息的不同类型, 对所述内容请求消息进行前转。  The embodiment of the invention further discloses the system for implementing the CDN interconnection routing method, the system comprising: a CDN server, configured to determine a type of the received content request message; according to different types of the content request message, The content request message is forwarded.
其中,所述 CDN服务器,具体用于根据所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内容的一种进行类型判断。  The CDN server is specifically configured to perform type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
其中, 所述 CDN服务器, 具体用于当所述内容请求消息的类型为用户 请求消息时, 根据预先存储的用户请求前转路由表确定转发路径, 对所述 内容请求消息进行前转; 当所述内容请求消息的类型为内容获取请求消息 时, 根据预先存储的内容获取请求前转路由表确定转发路径, 对所述内容 请求消息进行前转。  The CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to the pre-stored user request forwarding routing table, and forward the content request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
进一步地, 所述 CDN服务器, 还用于存储通过静态配置或动态获取签 约信息的方式确定的用户请求前转路由表和内容获取请求前转路由表; 其 中, 所述用户请求前转路由表以用户地址信息为索引, 内容获取请求前转 路由表以内容标识为索引。 其中, 所述 CDN服务器, 具体用于当所述内容请求消息的类型为用户 请求消息时, 根据预先存储的用户请求前转路由算法确定转发路径, 对所 述用户请求消息进行前转; 当所述内容请求消息的类型为内容获取请求消 息时, 根据预先存储的内容获取请求前转路由算法确定转发路径, 对所述 内容获取请求消息进行前转。 Further, the CDN server is further configured to store a user request forwarding routing table and a content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring subscription information, where the user requests the forwarding routing table to The user address information is an index, and the content acquisition request forwarding routing table is indexed by the content identifier. The CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing algorithm, and forward the user request message; When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing algorithm, and the content acquisition request message is forwarded.
其中, 所述 CDN服务器, 具体用于当所述内容请求消息的类型为用户 请求消息或内容获取请求消息时, 通过 BGP消息、 ALTO服务器或 CDNi 接口确定转发路径, 对所述内容请求消息进行前转。  The CDN server is specifically configured to: when the type of the content request message is a user request message or a content acquisition request message, determine a forwarding path by using a BGP message, an ALTO server, or a CDNi interface, before performing the content request message. turn.
其中, 所述 CDN服务器, 具体用于保持所述内容请求消息的类型不变 进行前转, 其中, 通过所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内容的一种来标识所述内容请求消息的类型。  The CDN server is specifically configured to maintain the type of the content request message and perform forwarding, where the content of the content request message is a protocol type, a source address, a destination address, a message header, or a message content. To identify the type of the content request message.
以上所述, 仅为本发明的较佳实施例而已, 并非用于限定本发明的保 护范围。 工业实用性  The above is only the preferred embodiment of the present invention and is not intended to limit the scope of the present invention. Industrial applicability
本发明实施例通过判断接收到的内容请求消息的类型, 对内容请求消 息进行不同方式的前转, 可以支持复杂的 CDN互联网络的路由, 从而在复 杂的 CDN互联情况下防止出现循环路由的问题。  In the embodiment of the present invention, by referring to the type of the received content request message, the content request message is forwarded in different manners, which can support the routing of the complex CDN internetwork, thereby preventing the problem of cyclic routing in the case of complex CDN interconnection. .

Claims

权利要求书 Claim
1、 一种实现内容分发网络 CDN互联路由的方法, 所述方法包括: A method for implementing a CDN interconnection route in a content distribution network, the method comprising:
CDN服务器对接收到的内容请求消息的类型进行判断; The CDN server determines the type of the received content request message;
根据所述内容请求消息的不同类型, 对所述内容请求消息进行前转。  The content request message is forwarded according to different types of the content request message.
2、 根据权利要求 1所述的方法, 其中, 所述 CDN服务器对接收到的 内容请求消息的类型进行判断为: 2. The method according to claim 1, wherein the CDN server determines the type of the received content request message as:
CDN服务器根据所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内容的一种进行类型判断。  The CDN server performs type determination according to one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message.
3、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述内容请求 消息的不同类型, 对所述内容请求消息进行前转为:  The method according to claim 1, wherein the content request message is forwarded according to different types of the content request message:
当所述内容请求消息的类型为用户请求消息时, 根据预先存储的用户 请求前转路由表确定转发路径, 对所述内容请求消息进行前转;  When the type of the content request message is a user request message, determining a forwarding path according to the pre-stored user request forwarding routing table, and forwarding the content request message;
当所述内容请求消息的类型为内容获取请求消息时, 根据预先存储的 内容获取请求前转路由表确定转发路径, 对所述内容请求消息进行前转。  When the type of the content request message is a content acquisition request message, the forwarding path is determined according to the pre-stored content acquisition request forwarding routing table, and the content request message is forwarded.
4、 根据权利要求 3所述的方法, 其特征在于, 所述方法还包括: 将通过静态配置或动态获取签约信息的方式确定的用户请求前转路由 表和内容获取请求前转路由表存储于 CDN服务器中; 其中, 所述用户请求 前转路由表以用户地址信息为索引, 内容获取请求前转路由表以内容标识 为索引。  The method according to claim 3, wherein the method further comprises: storing the user request forwarding routing table and the content obtaining request forwarding routing table determined by statically configuring or dynamically acquiring the subscription information. In the CDN server, the user request forwarding routing table takes the user address information as an index, and the content obtaining request forwarding routing table uses the content identifier as an index.
5、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述内容请求 消息的不同类型, 对所述内容请求消息进行前转为:  The method according to claim 1, wherein the content request message is forwarded according to different types of the content request message:
当所述内容请求消息的类型为用户请求消息时, 根据预先存储的用户 请求前转路由算法确定转发路径, 对所述用户请求消息进行前转;  When the type of the content request message is a user request message, determining a forwarding path according to a pre-stored user request forwarding routing algorithm, and forwarding the user request message;
当所述内容请求消息的类型为内容获取请求消息时, 根据预先存储的 内容获取请求前转路由算法确定转发路径, 对所述内容获取请求消息进行 前转。 When the type of the content request message is a content acquisition request message, determining a forwarding path according to the pre-stored content acquisition request forwarding routing algorithm, and performing the content acquisition request message Forward.
6、 根据权利要求 1所述的方法, 其特征在于, 所述根据所述内容请求 消息的不同类型, 对所述内容请求消息进行前转为:  The method according to claim 1, wherein the content request message is forwarded according to different types of the content request message:
当所述内容请求消息的类型为用户请求消息或内容获取请求消息时, 通过边界网关协议 BGP消息、 应用层流量优化 ALTO服务器或 CDM接口 确定转发路径, 对所述内容请求消息进行前转。  When the type of the content request message is a user request message or a content acquisition request message, the forwarding path is determined by using a border gateway protocol BGP message, an application layer traffic optimization ALTO server or a CDM interface, and the content request message is forwarded.
7、 根据权利要求 1至 6任一项所述的方法, 其特征在于, 对所述内容 请求消息进行前转为:  The method according to any one of claims 1 to 6, wherein the content request message is forwarded to:
所述 CDN服务器保持所述内容请求消息的类型不变进行前转, 其中, 通过所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内 容的一种标识所述内容请求消息的类型。  The CDN server keeps the type of the content request message unchanged, and forwards the content request message by using one of a protocol type, a source address, a destination address, a message header, or a message content of the content request message. type.
8、一种实现 CDN互联路由的系统,其特征在于, 所述系统包括: CDN 服务器, 设置为对接收到的内容请求消息的类型进行判断; 根据所述内容 请求消息的不同类型, 对所述内容请求消息进行前转。  A system for implementing CDN interconnection routing, the system comprising: a CDN server, configured to determine a type of a received content request message; according to different types of the content request message, The content request message is forwarded.
9、 根据权利要求 8所述的系统, 其特征在于, 所述 CDN服务器, 具 体设置为根据所述内容请求消息的协议类型、 源地址、 目的地址、 消息头 或消息内容的一种进行类型判断。  The system according to claim 8, wherein the CDN server is specifically configured to perform type determination according to a protocol type, a source address, a destination address, a message header, or a message content of the content request message. .
10、 根据权利要求 8所述的系统, 其特征在于, 所述 CDN服务器, 具 体设置为当所述内容请求消息的类型为用户请求消息时, 根据预先存储的 用户请求前转路由表确定转发路径, 对所述内容请求消息进行前转; 当所 述内容请求消息的类型为内容获取请求消息时, 根据预先存储的内容获取 请求前转路由表确定转发路径, 对所述内容请求消息进行前转。  The system according to claim 8, wherein the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing table. And forwarding the content request message; when the type of the content request message is a content acquisition request message, determining a forwarding path according to the pre-stored content acquisition request forwarding routing table, and forwarding the content request message .
11、 根据权利要求 10所述的系统, 其特征在于, 所述 CDN服务器, 还设置为存储通过静态配置或动态获取签约信息的方式确定的用户请求前 转路由表和内容获取请求前转路由表; 其中, 所述用户请求前转路由表以 用户地址信息为索引, 内容获取请求前转路由表以内容标识为索引。 The system according to claim 10, wherein the CDN server is further configured to store a user request forwarding routing table and a content acquisition request forwarding routing table determined by static configuration or dynamic acquisition of subscription information. Wherein the user requests a forwarding routing table to The user address information is an index, and the content acquisition request forwarding routing table is indexed by the content identifier.
12、 根据权利要求 8所述的系统, 其特征在于, 所述 CDN服务器, 具 体设置为当所述内容请求消息的类型为用户请求消息时, 根据预先存储的 用户请求前转路由算法确定转发路径, 对所述用户请求消息进行前转; 当 所述内容请求消息的类型为内容获取请求消息时, 根据预先存储的内容获 取请求前转路由算法确定转发路径, 对所述内容获取请求消息进行前转。  The system according to claim 8, wherein the CDN server is specifically configured to: when the type of the content request message is a user request message, determine a forwarding path according to a pre-stored user request forwarding routing algorithm. And forwarding the user request message; when the type of the content request message is a content acquisition request message, determining a forwarding path according to the pre-stored content acquisition request forwarding routing algorithm, before performing the content acquisition request message turn.
13、 根据权利要求 8所述的系统, 其特征在于, 所述 CDN服务器, 具 体设置为当所述内容请求消息的类型为用户请求消息或内容获取请求消息 时, 通过 BGP消息、 ALTO服务器或 CDM接口确定转发路径, 对所述内 容请求消息进行前转。  The system according to claim 8, wherein the CDN server is specifically configured to pass the BGP message, the ALTO server or the CDM when the type of the content request message is a user request message or a content acquisition request message. The interface determines a forwarding path, and forwards the content request message.
14、根据权利要求 8至 13任一项所述的系统, 其特征在于, 所述 CDN 服务器, 具体设置为保持所述内容请求消息的类型不变进行前转, 其中, 通过所述内容请求消息的协议类型、 源地址、 目的地址、 消息头或消息内 容的一种标识所述内容请求消息的类型。  The system according to any one of claims 8 to 13, wherein the CDN server is specifically configured to keep the type of the content request message unchanged, and forward the content through the content request message. A type of protocol type, source address, destination address, header, or message content that identifies the type of content request message.
PCT/CN2013/071481 2012-02-23 2013-02-06 Method and system for achieving content distribution network interconnection routing WO2013123860A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210042430.0 2012-02-23
CN2012100424300A CN103297337A (en) 2012-02-23 2012-02-23 Method and system for achieving content distribution network interconnection routing

Publications (1)

Publication Number Publication Date
WO2013123860A1 true WO2013123860A1 (en) 2013-08-29

Family

ID=49005001

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/071481 WO2013123860A1 (en) 2012-02-23 2013-02-06 Method and system for achieving content distribution network interconnection routing

Country Status (2)

Country Link
CN (1) CN103297337A (en)
WO (1) WO2013123860A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105933400A (en) * 2016-04-18 2016-09-07 乐视控股(北京)有限公司 TCP acceleration method and system in content distribution network, and server

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540775A (en) * 2009-04-30 2009-09-23 华为技术有限公司 Method and device for distributing contents and network system for distributing contents
CN102143380A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Content provision control method, content provision control device and content provision control system for content transmission network

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102143184B (en) * 2011-03-31 2013-08-28 华为技术有限公司 Authentication method, authentication device and authentication system for realizing CND (content delivery network) intercommunication
WO2011157173A2 (en) * 2011-06-03 2011-12-22 华为技术有限公司 Route decision method, content delivery apparatus and content delivery network interconnection system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101540775A (en) * 2009-04-30 2009-09-23 华为技术有限公司 Method and device for distributing contents and network system for distributing contents
CN102143380A (en) * 2010-12-31 2011-08-03 华为技术有限公司 Content provision control method, content provision control device and content provision control system for content transmission network

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
HE, XIAOYAN ET AL.: "Request Routing for CDN Interconnection", INTERNET DRAFT, 15 June 2011 (2011-06-15) *

Also Published As

Publication number Publication date
CN103297337A (en) 2013-09-11

Similar Documents

Publication Publication Date Title
US11863417B2 (en) Routing mode and point-of-presence selection service
EP2420035B1 (en) Method and apparatus for reducing traffic in a communications network
KR101605175B1 (en) Name-based neighbor discovery and multi-hop service discovery in information-centric networks
JP5745169B2 (en) Content processing method, content processing device, and content processing system
CN105340244B (en) The method and apparatus of dynamic content dispensing network selection based on the context from transient state criterion
EP2719133B1 (en) A generalized dual-mode data forwarding plane for information-centric network
US8751613B1 (en) Application layer traffic optimization enhancements for mobile devices
US8775661B2 (en) Origin request with peer fulfillment
US7747720B2 (en) Arrangement for selecting a server to provide distributed services from among multiple servers based on a location of a client device
US7920572B2 (en) Modifying operation of peer-to-peer networks based on integrating network routing information
Majeed et al. Multimedia streaming in information-centric networking: A survey and future perspectives
US20020184368A1 (en) Network system, method and protocols for hierarchical service and content distribution via directory enabled network
KR20160076445A (en) System and method for efficient name-based content routing using link-state information in information-centric networks
KR20170038148A (en) System and method for stateless information-centric networking
KR101215993B1 (en) P2P Content Distribution Network for Peer-to-Peer Live Streaming
JP2008544690A (en) Multicast download using route information
JP2011180820A (en) Data transfer management apparatus, data transfer management method and data transfer management program
JP2005229583A (en) Network controller, communication terminal, and network selecting method
KR100804348B1 (en) Communication system, computer comprising a peer-to-peer message filter and method for processing a peer-to-peer message
WO2015103738A1 (en) Content distribution method, apparatus and system
Mahmood et al. Autonomous pull-push community construction technology for high-assurance
KR100748259B1 (en) Adaptive discovery system based priority on ad-hoc and method thereof
WO2013123860A1 (en) Method and system for achieving content distribution network interconnection routing
KR101445047B1 (en) Confidential or protected access to a network of nodes distributed over a communication architecture with the aid of a topology server
JP5894981B2 (en) Accessing a network of nodes distributed across a communication architecture using a topology server with multiple criteria selection

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

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

Country of ref document: EP

Kind code of ref document: A1