WO2011137809A1 - Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network - Google Patents

Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network Download PDF

Info

Publication number
WO2011137809A1
WO2011137809A1 PCT/CN2011/074490 CN2011074490W WO2011137809A1 WO 2011137809 A1 WO2011137809 A1 WO 2011137809A1 CN 2011074490 W CN2011074490 W CN 2011074490W WO 2011137809 A1 WO2011137809 A1 WO 2011137809A1
Authority
WO
WIPO (PCT)
Prior art keywords
request
terminal device
response
http
server
Prior art date
Application number
PCT/CN2011/074490
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 WO2011137809A1 publication Critical patent/WO2011137809A1/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/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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 communications technologies, and more particularly to a method, apparatus, and system for implementing hypertext transfer protocol redirection in a content distribution network. Background technique
  • HTTP HyperText Transfer Protoco, Hypertext Transfer Protocol
  • the client establishes a TCP (Transmission Control Protocol) link with the server and sends a request to the server.
  • TCP Transmission Control Protocol
  • the server responds to the request with a status line containing the protocol version of the message, a success and failure code, and related Contains server information, resource entity information, and possibly MIME (Multipurpose Internet Mail Extensions) style messages.
  • MIME Multipurpose Internet Mail Extensions
  • HTTP/1.0[3] creates a new TCP link for each HTTP request/response, so a page containing HTML content and images will need to be established for multiple short-term TCP links before being provided to the user, and a TCP link
  • the establishment will require three handshakes.
  • the link reliability HTTP/1.1 [4] proposes a sustainable link implementation method, which will only establish a TCP link and repeatedly use it to transmit a series of request/response messages, which can reduce the link. The number of establishments and the cost of frequent links.
  • the CDN Content Delivery Network
  • IP networks are a new type of network construction that is specially optimized for the release of broadband rich media over traditional IP networks.
  • the current CDN system located in the next-generation content management and distribution network, is a content distribution network superimposed on the existing Internet, Cable, and Moblie networks.
  • Redirect routing in a CDN network It is implemented by a routing server (hereinafter referred to as MC) in the CDN network.
  • MC routing server
  • Its functions include two parts. One is to process the request sent by the UE, such as an HTTP request, and the routing server selects an appropriate edge server (hereinafter referred to as MX) to provide the user.
  • MX edge server
  • the UE After the UE clicks the HTTP link of a content on the website, it sends a DNS (Domain Name System) request message to the LocalDNS to obtain the address of the link; LocalDNS obtains the address of the content link to the upper DNS; the DNS server points the address of the content CDN routing server in the CDN network; LocalDNS sends the content link address to the UE; the UE sends an HTTP GET request to the CDN routing server; the CDN routing server selects an optimal edge server according to the predetermined policy.
  • the UE provides the content; and carries the URL (Uniform I Universal Resource Locator) address of the edge server to the UE in the HTTP 302 message; the UE obtains the URL address of the edge server and initiates an HTTP request to the edge server through DNS resolution.
  • URL Uniform I Universal Resource Locator
  • the client obtains the final content from the CDN network generally through two HTTP interaction processes: (1) The client sends the HTTP request to the routing server in the CDN network, and the routing server returns the final media server address through the redirect message. (2) The client initiates an HTTP request to the final media server to download the content or watch the video according to the redirected URL address.
  • the second function of the routing server in the CDN network handles HTTP interactions (edge servers, service management/device management, central storage servers) within the CDN network to obtain information about other devices. For example: When the edge server Cache miss, it will request the address of the central storage server from the CDN routing server to download the content, and then send the content to the client. This interaction is also based on the above HTTP redirect route. . Therefore, the current edge server downloads content from the central storage server through two HTTP interaction processes: (1) The edge server sends an HTTP request to the routing server to request the address of the specific central storage server, and the routing server returns the specified central storage through the HTTP response.
  • HTTP interactions edge servers, service management/device management, central storage servers
  • the two processes of redirect routing in the CDN network are based on the HTTP protocol, and the HTTP is implemented based on the TCP technology. Therefore, the slow start and request confirmation mechanism of the TCP itself causes the interactive message packet. More and longer, it is difficult for the client to get content.
  • Embodiments of the present invention provide a method, apparatus, and system for requesting hypertext transfer protocol redirection in a content distribution network, which can improve the speed of redirection in a CDN network.
  • An embodiment of the present invention provides a method for requesting a hypertext transfer protocol redirection in a content distribution network, including:
  • An HTTP request is initiated to the destination server in accordance with the manner indicated in the response.
  • An embodiment of the present invention provides a terminal device in a content distribution network, including:
  • a first sending module configured to send an HTTP redirection request to a routing server in the content distribution network CDN; the request is sent according to a UDP manner;
  • the response receiving module is configured to receive a response returned by the routing server, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server; and a second sending module, configured to respond according to the response In the manner indicated, an HTTP request is initiated to the destination server.
  • An embodiment of the present invention provides a routing server in a content distribution network, including: a request receiving module, configured to receive an HTTP redirect request sent by a terminal device; the request is sent by the terminal device according to a UDP manner;
  • a response sending module configured to return a response to the terminal device for the redirect request, the ringing
  • the destination server address of the redirect and the manner indication used to initiate the HTTP request to the destination server should be included.
  • An embodiment of the present invention provides a system for implementing hypertext transfer protocol redirection in a content distribution network, including:
  • a terminal device configured to send an HTTP redirect request to the routing server; the request is sent according to a UDP manner; receiving a response returned by the routing server, where the response includes a redirected destination server address and initiating HTTP to the destination server Instructing the manner used by the request; initiating an HTTP request to the destination server according to the manner indicated in the response;
  • a routing server configured to receive the redirection request sent by the terminal device, and return a response to the terminal device, where the response includes an address of the terminal device to the redirected destination server, and the The mode indication used by the destination server to initiate an HTTP request.
  • the terminal device sends the HTTP redirect request to the routing server in a UDP manner, which not only improves the speed of redirection in the CDN network, but also improves the user's speed.
  • the time the CDN responds to the user's request shortens the delay of the user's content from the click request to the acquisition.
  • FIG. 1 is a flowchart of a method for requesting HTTP redirection in a CDN network according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a terminal device in a CDN network according to an embodiment of the present invention
  • FIG. 3 is a flowchart of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention
  • FIG. 4 is a schematic structural diagram of a routing server in a CDN network according to an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention.
  • An embodiment of the present invention provides a method, an apparatus, and a system for requesting a hypertext transfer protocol redirection in a content distribution network.
  • the terminal device sends an HTTP redirect request to a routing server in a CDN network according to a UDP manner, and returns according to the routing server.
  • the indication in the response message selects whether to initiate a request to the destination server to be redirected by TCP or UDP.
  • the implementation of the invention solves the problem that the existing redirection request process is initiated based on the TCP protocol, and the number of message interactions is long and time-consuming, which can improve the redirection speed of the CDN network, improve the time for the CDN to respond to user requests, and shorten the user's request for clicks. To delay in getting content.
  • the terminal device in the embodiment of the present invention refers to all the clients that use the HTTP to initiate the request, and are the UEs that interact with the CDN or the devices in the CDN network, including but not limited to the PC and the server. , CDN network equipment, etc.
  • the routing server in the CDN network involved in the embodiment of the present invention refers to a routing server device in the CDN network.
  • the redirected destination server refers to the device that ultimately provides content in the CDN network, which can be MX/MS.
  • the embodiment of the present invention provides a method for requesting a hypertext transfer protocol redirection in a content distribution network from the perspective of a terminal device, and the technical solution includes: Step 101: The terminal device sends a hypertext transfer protocol HTTP redirect request to a routing server in the content distribution network CDN; the request is sent according to a user data packet protocol UDP mode;
  • Step 102 The terminal device receives a response returned by the routing server, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server.
  • Step 103 The terminal device according to the indication in the response In the manner, an HTTP request is initiated to the destination server.
  • the destination server address in step 302 may be in the form of a URL, or may be another form of server address.
  • the terminal device is capable of supporting the HTTP redirection request sent by the HTTP mode (HTTP over TCP) and the UDP mode (HTTP over UDP), and the following method is specifically provided by the terminal device according to the embodiment of the present invention.
  • the terminal device can set the UDP mode to initiate the HTTP redirection request to the routing server in the default sending mode. Alternatively, the terminal device sets the priority to initiate the redirection request based on the UDP mode for the configured domain name with a specific suffix.
  • the method of the embodiment of the present invention may further include:
  • the terminal device When the terminal device determines that the redirection request is timed out or the routing server does not support the UDP mode, the terminal device initiates the redirection request according to the transmission control protocol TCP mode.
  • suffix domain name for a specific suffix domain name, for example, huawei.cdn.net.
  • a suffix domain name for example, huawei.cdn.net.
  • HTTP HyperText Transfer Protocol
  • the terminal device is a UE that interacts with the CDN
  • the routing server does not support the UDP mode, because in the standard, the HTTP protocol is based on the TCP protocol, and the UDP is based on the UDP.
  • the HTTP protocol is not supported by many vendors, so CDN devices in some scenarios may not support HTTP over UDP.
  • the terminal device When the terminal device is a device in the CDN network, when interacting with the routing server, since the CDN internal device and the routing server are both manufacturers' devices, they are either supported or not supported, so there is no self-incompatibility. Specifically, when the terminal device initiates an HTTP redirect request to the routing server based on the HTTP mode, the reliability of the HTTP message needs to be guaranteed by the terminal device itself, for example: when the terminal device waits for the HTTP request to time out, or finds that the request message is unreachable. When the terminal device re-enables HTTP over TCP, it initiates a redirect request.
  • the receiving, by the terminal device, the response returned by the routing server includes: identifying a response returned by the routing server, where the response includes an extension field, where the extension field is used to indicate initiation
  • the method used by the HTTP request including TCP or UDP;
  • the HTTP request is initiated to the destination server in a manner indicated by the extension field.
  • Connection-Type "TCPTUDP" is implemented in the form.
  • the embodiment of the present invention provides a terminal device in a content distribution network from the perspective of a terminal device, and includes the following functional modules:
  • the first sending module 21 is configured to send an HTTP redirect request to a routing server in the content distribution network; the request is sent according to a UDP manner;
  • the response receiving module 22 is configured to receive a response returned by the routing server, where the response includes a redirected destination server address and a manner indication used to initiate an HTTP request to the destination server;
  • the second sending module 23 is configured to send an HTTP request to the destination server according to the manner indicated in the response.
  • the terminal device further includes:
  • the configuration unit 24 is configured to initiate the redirection request by using the UDP mode as the default sending mode, or set the priority to the domain name with a specific suffix to initiate the redirection request based on the UDP mode;
  • the first sending module 21 is further configured to: after the redirection request is initiated in a sending manner configured by the configuration unit, determine the weight If the directed request times out or the routing server does not support the UDP mode, the redirect request is initiated based on the TCP method.
  • the second sending module 23 may include: an identifying unit 231, configured to identify a response returned by the routing server, where the response includes an extended field, where The extension field is used to indicate the manner in which the HTTP request is initiated, and the manner includes TCP or UDP;
  • the sending unit 232 is configured to initiate the HTTP request to the destination server according to the manner indicated by the extended field.
  • the terminal device in the embodiment includes a user end interacting with a CDN network or an internal device of a CDN network; the routing server includes a routing server device in a CDN network; and the destination server includes A device in the CDN network that is ultimately capable of providing content.
  • the embodiment of the present invention provides a method for implementing hypertext transfer protocol redirection in a content distribution network from the perspective of a routing server in a CDN network.
  • the technical solution includes:
  • Step 301 The routing server receives an HTTP redirect request sent by the terminal device, where the request is sent by the terminal device according to a UDP user data packet protocol.
  • Step 302 The routing server returns a response to the terminal device for the redirect request, where the response includes an address of the redirected destination server and a mode indication used to initiate an HTTP request to the destination server.
  • step 301 further includes:
  • the default mode set by the terminal device is the UDP mode initiated redirection request, or the terminal device receives the domain name configured with a specific suffix, and sets the priority to the UDP mode-based redirection request;
  • the terminal device Determining the redirect request initiated by the UDP mode, and the routing server determines that it is not When the request initiated by the UDP mode is supported, the terminal device sends a response or does not respond; when the terminal device determines that the redirection request times out or the routing server does not support the UDP mode, the terminal device is received.
  • the redirection request is initiated in TCP mode.
  • the terminal device sets a process of preferentially initiating a redirection request in the manner of UDP.
  • the related description has been made in the method embodiment of FIG. 1 and will not be described in detail herein.
  • returning the response to the terminal device in step 302 specifically includes:
  • the indication is carried by adding an extension field to the response returned by the terminal device, where the extension field is used to indicate a manner in which the terminal device initiates an HTTP request to the destination server, where the manner includes TCP or UDP;
  • the link is carried by TCP or by UDP.
  • the message style after adding an extension field to the response message is as follows:
  • the bearer manner of the HTTP link that the terminal device subsequently redirects can be notified. Terminal Equipment.
  • the embodiment of the present invention provides a routing server in a content distribution network from the perspective of a routing server in a CDN network, which can be used in conjunction with the terminal device shown in FIG. 2, and includes the following functional modules:
  • the request receiving module 41 is configured to receive an HTTP redirect request sent by the terminal device, where the request is sent by the terminal device according to the UDP method;
  • the response sending module 42 is configured to return a response to the terminal device for the redirect request, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server.
  • the request receiving module 41 further includes:
  • the receiving unit 411 is configured to receive the redirection request by using the UDP mode in the default mode set by the terminal device, or receive the domain name with a specific suffix for the configured terminal device, and set the priority to be initiated based on the UDP mode.
  • Redirecting request requesting, when determining that the UDP mode is supported, instructing the response sending module to return the response to the terminal device; when determining that the UDP mode is not supported, sending a response or not to the terminal device Responding to the sending of the redirect request, receiving the terminal device to initiate an HTTP redirect request based on the TCP mode.
  • the response sending module 42 further includes:
  • the setting unit 421 is configured to add an extension field to the response returned by the terminal device, where the extension field is used to indicate a manner in which the terminal device initiates an HTTP request to the destination server, where the manner includes TCP or UDP. ;
  • the response unit 422 is configured to feed back, to the terminal device, a response that includes the extended field.
  • the terminal device involved in the present invention includes a user terminal interacting with a CDN network or an internal device of a CDN network; the routing server includes a routing server device in a CDN network; and the destination server includes A device in the CDN network that is ultimately capable of providing content.
  • each functional module in the device embodiment shown in FIG. 4 corresponds to the technical solution involved in each step in the embodiment of FIG. 3, and includes the same or corresponding technical features, which are not described herein - see FIG. 3 A related description in the method embodiment.
  • an embodiment of the present invention further provides a system for implementing hypertext transfer protocol redirection in a content distribution network, where the technical solution includes
  • the terminal device 51 shown in the embodiment of FIG. 2 is configured to send an HTTP redirect request to the routing server; the request is sent according to the UDP method; and receive a response returned by the routing server, where the response includes the redirected destination server.
  • Mode indication is configured to send an HTTP redirect request to the routing server; the request is sent according to the UDP method; and receive a response returned by the routing server, where the response includes the redirected destination server.
  • the terminal device is a UE that interacts with the CDN network
  • the routing server is a routing server device in the CDN network, and needs to be redirected.
  • the destination server is an edge server that can finally provide content services for users.
  • the specific process includes:
  • Step 601 The UE clicks on a certain website link, and the link finally points to the routing server in the CDN network through the DNS server, and the UE preferentially initiates the HTTP to UDP mode to the routing server.
  • HTTP GET redirect request
  • Step 602 After receiving the HTTP GET request, the routing server selects an edge server according to its own routing policy, and feeds back a 302 message to the UE.
  • the 302 message specifies the URL address of the redirected edge server, and is used to indicate the subsequent weight. Whether the directed HTTP link is carried by TCP or an extended field header field carried by UDP;
  • the 302 message style after adding the extension field is:
  • the routing server selects an edge server according to its own routing policy after receiving the HTTP GET request.
  • the routing policy includes:
  • the routing server selects an optimal edge server to provide content to the UE according to the location of the UE, the content of the request, the load status of each edge server in the CDN network, and the like.
  • Step 603 The UE receives the 302 message returned by the routing server, initiates an HTTP request to the address specified by the Location in the message, and selects a TCP connection initiation request according to the indication in the X-Connection-Type. It should be noted that, when the UE initiates an HTTP redirect request in the UDP protocol-based manner, if the UE waits for the HTTP request to time out or the discovery message is unreachable, the UE may re-enable HTTP over TCP to send the request.
  • the specific timeout mechanism may be determined according to the configuration, and the method may be determined in the embodiment of the present invention.
  • the terminal device is another network element in the CDN network (including edge server, central storage, network/service management).
  • the server is a routing server device in the CDN network, and the destination server that needs to be redirected is an edge server that can finally provide content.
  • the specific process includes:
  • Step 701 The CDN network element preferentially initiates an HTTP redirect request by using an HTTP over UDP manner to the routing server.
  • the method for setting the priority of the CDN network element to send the HTTP redirect request in the UDP mode is the same as the process of the UE in the embodiment of the present invention.
  • Step 702 The routing server receives the HTTP over UDP request, and selects an optimal edge server to provide content to the CDN network element according to the content of the request, the load status of each edge server in the CDN network, and the like, and returns the content to the CDN network element.
  • the response message carries the address of the edge server, and an HTTP field for indicating whether the subsequent redirect is carried by TCP or an extended field header field carried by UDP;
  • Step 703 The CDN network element initiates an HTTP request according to the redirected address in the 302 message.
  • the interaction process between the other network elements including the edge server, the central storage, the network/service management server) and the routing server in the CDN network in the technical solution shown in FIG. 7 is often involved in the actual application scenario.
  • the edge server finds that the content of the UE is not cached.
  • the edge server sends an HTTP request to the routing server to obtain the address of the best central storage server, and provides content services for the user.
  • the method, device, and system for implementing hypertext transfer protocol redirection in a content distribution network according to an embodiment of the present invention, from a technical point of view, a requesting party that initiates redirection passes
  • the UDP mode initiates a redirection request, and replaces the existing interaction process based on the TCP-initiated redirection with 10 messages, which improves the speed of the redirection process in the CDN network.
  • the time for the CDN to respond to the user request is increased, and the delay of the user from the click request to the start of the content is shortened.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Transfer Between Computers (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiments of the invention provide a method, an apparatus and a system for requesting HyperText Transfer Protocol (HTTP) redirection in a Content Delivery Network (CDN). The method includes: a terminal device transmits an HTTP redirection request to a routing server, wherein the request is transmitted in the manner of User Datagram Protocol (UDP) (101); the terminal device receives a response returned from the routing server, wherein the response includes an address of a redirection destination server and an indication of the manner for initiating an HTTP request to the destination server (102); the terminal device initiates the HTTP request to the destination server according to the manner indicated in the response (103). The realization of the technical solutions of the invention improves the speed of redirection from a technological perspective, and from a perspective of a user, reduces the time that the CDN responds to a user request, and shortens the delay from clicking the request to obtaining the beginning content by the user.

Description

一种内容分发网络中实现超文本传输协议重定向的方法、 装置及系统 本申请要求了 2010年 11月 26日提交的、 申请号为 201010569776.7、 发明 名称为 "一种内容分发网络中实现超文本传输协议重定向的方法、 装置及系 统" 的中国申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  Method, device and system for realizing hypertext transfer protocol redirection in a content distribution network. The application claims the application number of 201010569776.7, which is filed on November 26, 2010, and the invention name is "a hypertext in a content distribution network". The priority of the Chinese application for the method, the device and the system of the transmission protocol redirection is incorporated herein by reference. Technical field
本发明涉及通信技术领域, 更具体的说, 涉及一种内容分发网络中实现超 文本传输协议重定向的方法、 装置及系统。 背景技术  The present invention relates to the field of communications technologies, and more particularly to a method, apparatus, and system for implementing hypertext transfer protocol redirection in a content distribution network. Background technique
HTTP ( HyperText Transfer Protoco , 超文本传输协议) 是目前通过 Internet进行信息交换最主要的方式, 建立在请求 /响应(request/response)模型 上的。 由客户建立一条与服务器的 TCP ( Transmission Control Protocol , 传 输控制协议)链接, 并发送一个请求到服务器, 服务器会针对该请求响应一个 状态行, 包含消息的协议版本、 一个成功和失败码以及相关的包含服务器信 息、 资源实体信息和可能的资源内容 MIME ( Multipurpose Internet Mail Extensions , 多用途网际邮件扩充协议)样式的消息。 HTTP/1.0[3]为每一次 HTTP的请求 /响应建立一条新的 TCP链接, 因此一个包含 HTML内容和图片的 页面将需要建立多次短期的 TCP链接后才能提供给用户, 而一次 TCP链接的建 立将需要三次握手。 为了获得适当的传输速度, 保证链接可靠性 HTTP/1.1 [4] 提出了可持续链接的实现方法, 将只建立一次 TCP的链接而重复地使用它传输 一系列的请求 /响应消息, 能够减少链接建立的次数和经常性的链接开销。  HTTP (HyperText Transfer Protoco, Hypertext Transfer Protocol) is the most important way to exchange information over the Internet, based on the request/response model. The client establishes a TCP (Transmission Control Protocol) link with the server and sends a request to the server. The server responds to the request with a status line containing the protocol version of the message, a success and failure code, and related Contains server information, resource entity information, and possibly MIME (Multipurpose Internet Mail Extensions) style messages. HTTP/1.0[3] creates a new TCP link for each HTTP request/response, so a page containing HTML content and images will need to be established for multiple short-term TCP links before being provided to the user, and a TCP link The establishment will require three handshakes. In order to obtain the appropriate transmission speed, the link reliability HTTP/1.1 [4] proposes a sustainable link implementation method, which will only establish a TCP link and repeatedly use it to transmit a series of request/response messages, which can reduce the link. The number of establishments and the cost of frequent links.
CDN ( Content Delivery Network, 内容分发网络)是一种新型的网络构 建方式, 是为能在传统的 IP网发布宽带丰富媒体而特别优化的网络覆盖层。  The CDN (Content Delivery Network) is a new type of network construction that is specially optimized for the release of broadband rich media over traditional IP networks.
目前现有 CDN系统, 定位于下一代内容管理和分发网络, 是叠加在现有 Internet, Cable, Moblie网络之上的内容分发网络。 CDN网络中的重定向路由 是由 CDN网络中的路由服务器 (下面简称 MC ) 完成的, 其功能包括两部分, 一是处理 UE发来的请求, 如 HTTP请求, 路由服务器选择合适的边缘服务器 (下面简称 MX )提供给用户提供服务。 当 UE点击网站上某个内容的 HTTP链 接后, 向 LocalDNS发送 DNS ( Domain Name System, 域名系统)请求消息 获取链接的地址; LocalDNS向上级 DNS获取内容链接的地址; DNS服务器将 此内容的地址指向 CDN网络中的 CDN路由服务器; LocalDNS将内容链接的地 址给 UE; UE向 CDN路由月良务器发送 HTTP GET青求; CDN路由月良务器才艮据预 定策略选择一个最佳的边缘服务器向 UE提供内容; 并在 HTTP 302消息中携带 边缘服务器的 URL ( Uniform I Universal Resource Locator, 统一资源定位 符)地址给 UE; UE获得边缘服务器的 URL地址并通过 DNS解析后向边缘服务 器发起 HTTP请求。 可见, 客户端从 CDN网络获取最终的内容一般要经过两次 HTTP交互过程: ( 1 )客户端将 HTTP请求发送到 CDN网络中的路由服务器 上, 路由服务器通过重定向消息返回最终的媒体服务器地址; (2 )客户端根 据重定向的 URL地址向最终的媒体服务器发起 HTTP请求下载内容或者观看视 频。 The current CDN system, located in the next-generation content management and distribution network, is a content distribution network superimposed on the existing Internet, Cable, and Moblie networks. Redirect routing in a CDN network It is implemented by a routing server (hereinafter referred to as MC) in the CDN network. Its functions include two parts. One is to process the request sent by the UE, such as an HTTP request, and the routing server selects an appropriate edge server (hereinafter referred to as MX) to provide the user. Provide services. After the UE clicks the HTTP link of a content on the website, it sends a DNS (Domain Name System) request message to the LocalDNS to obtain the address of the link; LocalDNS obtains the address of the content link to the upper DNS; the DNS server points the address of the content CDN routing server in the CDN network; LocalDNS sends the content link address to the UE; the UE sends an HTTP GET request to the CDN routing server; the CDN routing server selects an optimal edge server according to the predetermined policy. The UE provides the content; and carries the URL (Uniform I Universal Resource Locator) address of the edge server to the UE in the HTTP 302 message; the UE obtains the URL address of the edge server and initiates an HTTP request to the edge server through DNS resolution. It can be seen that the client obtains the final content from the CDN network generally through two HTTP interaction processes: (1) The client sends the HTTP request to the routing server in the CDN network, and the routing server returns the final media server address through the redirect message. (2) The client initiates an HTTP request to the final media server to download the content or watch the video according to the redirected URL address.
CDN网络中的路由服务器的第二个功能处理 CDN网络内部的网元(边缘 服务器、 业务管理 /设备管理、 中心存储服务器) HTTP交互, 来获取其它设备 的信息。 比如: 当边缘服务器在 Cache miss的情况下会向 CDN路由服务器请 求中心存储服务器的地址来下载内容, 然后再将此内容发送给客户端, 这种交 互也是基于上述 HTTP 的重定向路由来完成的。 因此当前边缘服务器从中心存 储服务器下载内容也要经过两次 HTTP的交互过程: ( 1 ) 边缘服务器发送 HTTP请求给路由服务器请求具体的中心存储服务器的地址, 路由服务器通过 HTTP响应返回指定的中心存储服务器地址; ( 2 )边缘服务器通过 HTTP请求 向中心存储服务器下载内容, 中心存储服务器通过响应消息提供内容给边缘服 务器。 现有的方案中, CDN网络中的重定向路由的两个过程均是基于 HTTP协议 的, 而 HTTP又是基于 TCP技术实现的, 因此, TCP本身的緩启动和请求确认 机制导致交互的消息包多、 时间长, 导致客户端获取内容的速度难以提高。 发明内容 本发明的实施例提供了一种内容分发网络中请求超文本传输协议重定向的 方法、 装置及系统, 能够提高 CDN网络中重定向的速度。 The second function of the routing server in the CDN network handles HTTP interactions (edge servers, service management/device management, central storage servers) within the CDN network to obtain information about other devices. For example: When the edge server Cache miss, it will request the address of the central storage server from the CDN routing server to download the content, and then send the content to the client. This interaction is also based on the above HTTP redirect route. . Therefore, the current edge server downloads content from the central storage server through two HTTP interaction processes: (1) The edge server sends an HTTP request to the routing server to request the address of the specific central storage server, and the routing server returns the specified central storage through the HTTP response. The server address; (2) The edge server downloads the content to the central storage server through the HTTP request, and the central storage server provides the content to the edge server through the response message. In the existing solution, the two processes of redirect routing in the CDN network are based on the HTTP protocol, and the HTTP is implemented based on the TCP technology. Therefore, the slow start and request confirmation mechanism of the TCP itself causes the interactive message packet. More and longer, it is difficult for the client to get content. SUMMARY OF THE INVENTION Embodiments of the present invention provide a method, apparatus, and system for requesting hypertext transfer protocol redirection in a content distribution network, which can improve the speed of redirection in a CDN network.
本发明实施例的技术方案如下:  The technical solution of the embodiment of the present invention is as follows:
本发明实施例提供了一种内容分发网络中请求超文本传输协议重定向的方 法, 包括:  An embodiment of the present invention provides a method for requesting a hypertext transfer protocol redirection in a content distribution network, including:
向内容分发网络 CDN中的路由服务器发送超文本传输协议 HTTP重定向请 求; 该请求是基于用户数据包协议 UDP方式发送的;  Sending a hypertext transfer protocol HTTP redirect request to a routing server in the content distribution network CDN; the request is sent based on the User Datagram Protocol UDP method;
接收所述路由服务器返回的响应, 该响应中包括重定向的目的服务器地址 以及向所述目的服务器发起 HTTP请求所用的方式指示;  Receiving a response returned by the routing server, where the response includes a redirected destination server address and a manner indication used to initiate an HTTP request to the destination server;
根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。  An HTTP request is initiated to the destination server in accordance with the manner indicated in the response.
本发明实施例提供了一种内容分发网络中的终端设备, 包括:  An embodiment of the present invention provides a terminal device in a content distribution network, including:
第一发送模块, 用于向内容分发网络 CDN中的路由服务器发送 HTTP重定 向请求; 该请求是基于 UDP方式发送的;  a first sending module, configured to send an HTTP redirection request to a routing server in the content distribution network CDN; the request is sent according to a UDP manner;
响应接收模块, 用于接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 第二发送模块, 用于根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。  The response receiving module is configured to receive a response returned by the routing server, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server; and a second sending module, configured to respond according to the response In the manner indicated, an HTTP request is initiated to the destination server.
本发明实施例提供了一种内容分发网络中的路由服务器, 包括: 请求接收模块, 用于接收终端设备发送的 HTTP重定向请求; 该请求是终 端设备基于 UDP方式发送的;  An embodiment of the present invention provides a routing server in a content distribution network, including: a request receiving module, configured to receive an HTTP redirect request sent by a terminal device; the request is sent by the terminal device according to a UDP manner;
响应发送模块, 用于针对所述重定向请求向所述终端设备返回响应, 该响 应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用 的方式指示。 a response sending module, configured to return a response to the terminal device for the redirect request, the ringing The destination server address of the redirect and the manner indication used to initiate the HTTP request to the destination server should be included.
本发明实施例提供了一种内容分发网络中实现超文本传输协议重定向的系 统, 包括:  An embodiment of the present invention provides a system for implementing hypertext transfer protocol redirection in a content distribution network, including:
终端设备, 用于向路由服务器发送 HTTP重定向请求; 该请求是基于 UDP 方式发送的; 接收所述路由服务器返回的响应, 该响应中包括重定向的目的服 务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 根据所述响 应中指示的方式, 向所述目的服务器发起 HTTP请求;  a terminal device, configured to send an HTTP redirect request to the routing server; the request is sent according to a UDP manner; receiving a response returned by the routing server, where the response includes a redirected destination server address and initiating HTTP to the destination server Instructing the manner used by the request; initiating an HTTP request to the destination server according to the manner indicated in the response;
路由服务器, 用于接收所述终端设备发送的所述重定向请求; 针对所述重 定向请求向所述终端设备返回响应, 该响应中包括终端设备向重定向的目的服 务器的地址以及向所述目的服务器发起 HTTP请求所用的方式指示。  a routing server, configured to receive the redirection request sent by the terminal device, and return a response to the terminal device, where the response includes an address of the terminal device to the redirected destination server, and the The mode indication used by the destination server to initiate an HTTP request.
由上述本发明的实施例提供的技术方案可以看出, 终端设备通过以 UDP 的方式向路由服务器发送 HTTP重定向请求, 不仅提高了 CDN网络中重定向的 速度, 而且对于用户来说, 提高了 CDN响应用户请求的时间, 缩短了用户从 点击请求到获取到开始的内容的延迟。 附图说明  It can be seen from the technical solution provided by the foregoing embodiment of the present invention that the terminal device sends the HTTP redirect request to the routing server in a UDP manner, which not only improves the speed of redirection in the CDN network, but also improves the user's speed. The time the CDN responds to the user's request shortens the delay of the user's content from the click request to the acquisition. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需 要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the description of the embodiments will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, Those skilled in the art can also obtain other drawings based on these drawings without paying creative labor.
图 1为本发明实施例一种 CDN网络中请求 HTTP重定向的方法流程图; 图 2为本发明实施例一种 CDN网络中的终端设备的结构示意图;  1 is a flowchart of a method for requesting HTTP redirection in a CDN network according to an embodiment of the present invention; FIG. 2 is a schematic structural diagram of a terminal device in a CDN network according to an embodiment of the present invention;
图 3为本发明实施例一种 CDN网络中实现 HTTP重定向的方法流程图; 图 4为本发明实施例一种 CDN网络中的路由服务器的结构示意图; 图 5为本发明实施例一种 CDN网络中的 HTTP重定向系统结构示意图; 图 6为本发明实施例一种 CDN网络中实现 HTTP重定向的方法应用场景图 图 7为本发明实施例一种 CDN网络中实现 HTTP重定向的方法应用场景图 3 is a flowchart of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention; FIG. 4 is a schematic structural diagram of a routing server in a CDN network according to an embodiment of the present invention; FIG. Schematic diagram of the HTTP redirection system in the network; FIG. 6 is a schematic diagram of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention. FIG. 7 is a schematic diagram of a method for implementing HTTP redirection in a CDN network according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without creative work are within the scope of the present invention.
本发明实施例提供了一种内容分发网络中请求超文本传输协议重定向的方 法、 装置及系统, 终端设备基于 UDP的方式向 CDN网络中的路由服务器发送 HTTP重定向请求, 并根据路由服务器返回的响应消息中的指示选择用 TCP方 式还是 UDP方式向要重定向的目的服务器发起请求。 本发明的实现解决了现有 基于 TCP协议发起重定向请求过程, 消息交互数量多, 耗时长的问题, 能够提 高 CDN网络的重定向速度, 提高 CDN响应用户请求的时间, 缩短了用户从点 击请求到获取内容的延迟。  An embodiment of the present invention provides a method, an apparatus, and a system for requesting a hypertext transfer protocol redirection in a content distribution network. The terminal device sends an HTTP redirect request to a routing server in a CDN network according to a UDP manner, and returns according to the routing server. The indication in the response message selects whether to initiate a request to the destination server to be redirected by TCP or UDP. The implementation of the invention solves the problem that the existing redirection request process is initiated based on the TCP protocol, and the number of message interactions is long and time-consuming, which can improve the redirection speed of the CDN network, improve the time for the CDN to respond to user requests, and shorten the user's request for clicks. To delay in getting content.
需要说明的是, 本发明实施例涉及的终端设备指的是所有使用 HTTP发起 请求的客户端, 是同 CDN交互的 UE或者是 CDN网络内的设备, 包括但不限定 于 PC、 月良务器、 CDN网洛设备等。  It should be noted that the terminal device in the embodiment of the present invention refers to all the clients that use the HTTP to initiate the request, and are the UEs that interact with the CDN or the devices in the CDN network, including but not limited to the PC and the server. , CDN network equipment, etc.
本发明实施例中涉及的 CDN网络中的路由服务器指的是 CDN网络中的路 由服务器设备。 重定向的目的服务器是指 CDN网络中的最终提供内容的设 备, 可以是 MX/MS。  The routing server in the CDN network involved in the embodiment of the present invention refers to a routing server device in the CDN network. The redirected destination server refers to the device that ultimately provides content in the CDN network, which can be MX/MS.
下面结合具体实施例进一步说明本发明的技术方案。  The technical solution of the present invention will be further described below in conjunction with specific embodiments.
如图 1所示, 本发明实施例以终端设备的角度提出一种内容分发网络中请 求超文本传输协议重定向的方法, 技术方案包括: 步骤 101: 终端设备向内容分发网络 CDN中的路由服务器发送超文本传输 协议 HTTP重定向请求; 该请求是基于用户数据包协议 UDP方式发送的; As shown in FIG. 1, the embodiment of the present invention provides a method for requesting a hypertext transfer protocol redirection in a content distribution network from the perspective of a terminal device, and the technical solution includes: Step 101: The terminal device sends a hypertext transfer protocol HTTP redirect request to a routing server in the content distribution network CDN; the request is sent according to a user data packet protocol UDP mode;
步骤 102: 终端设备接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 步骤 103: 终端设备根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。  Step 102: The terminal device receives a response returned by the routing server, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server. Step 103: The terminal device according to the indication in the response In the manner, an HTTP request is initiated to the destination server.
在本发明的一个实施例中, 步骤 302中所述的目的服务器地址可以是 URL 形式的, 也可以是其他形式的服务器地址。  In an embodiment of the present invention, the destination server address in step 302 may be in the form of a URL, or may be another form of server address.
终端设备要能够支持 TCP方式 (HTTP over TCP ) 和 UDP方式 (HTTP over UDP )发送的 HTTP重定向请求, 终端设备具体以哪种方式发送 HTTP重 定向请求, 可以根据本发明实施例提供的如下技术方案来实现:  The terminal device is capable of supporting the HTTP redirection request sent by the HTTP mode (HTTP over TCP) and the UDP mode (HTTP over UDP), and the following method is specifically provided by the terminal device according to the embodiment of the present invention. The program to achieve:
终端设备可以设置 UDP方式为默认发送方式向路由服务器发起 HTTP重定 向请求, 或者, 终端设备对于配置的有特定后缀的域名, 设置优先基于 UDP方 式发起所述重定向请求。  The terminal device can set the UDP mode to initiate the HTTP redirection request to the routing server in the default sending mode. Alternatively, the terminal device sets the priority to initiate the redirection request based on the UDP mode for the configured domain name with a specific suffix.
在本发明的一个实施例中, 本发明实施例所述方法还可以包括:  In an embodiment of the present invention, the method of the embodiment of the present invention may further include:
终端设备在确定发出的所述重定向请求超时或路由服务器不支持 UDP方 式的情况下, 改用基于传输控制协议 TCP方式发起所述重定向请求。  When the terminal device determines that the redirection request is timed out or the routing server does not support the UDP mode, the terminal device initiates the redirection request according to the transmission control protocol TCP mode.
具体的, 针对配置特定后缀域名, 可以配置某一类后缀域名, 如: huawei.cdn.net, 总是默认先以 HTTP over UDP发起请求。  Specifically, you can configure a suffix domain name for a specific suffix domain name, for example, huawei.cdn.net. Always initiate a request with HTTP over UDP by default.
需要说明的是, 当终端设备为同 CDN交互的 UE时, UE与路由服务器交互 时, 会出现路由服务器不支持 UDP方式的情况, 因为在标准中, HTTP协议是 基于 TCP协议的, 基于 UDP的 HTTP协议许多厂商都不支持, 因此某些场景中 的 CDN设备可能会有不支持 HTTP over UDP的情况。  It should be noted that when the terminal device is a UE that interacts with the CDN, when the UE interacts with the routing server, the routing server does not support the UDP mode, because in the standard, the HTTP protocol is based on the TCP protocol, and the UDP is based on the UDP. The HTTP protocol is not supported by many vendors, so CDN devices in some scenarios may not support HTTP over UDP.
当终端设备为 CDN网络中的设备时, 与路由服务器交互时, 因为 CDN内 部设备和路由服务器都是一个厂家的设备, 要么都支持, 要么不支持, 因此不 会出现自我不兼容的情况。 具体的说, 当终端设备基于 HTTP方式向路由服务器发起 HTTP重定向请 求时, HTTP消息的可靠性需要终端设备自身来保证, 例如: 终端设备在等待 HTTP请求超时时, 或者发现该请求消息不可达时, 终端设备要重新启用 HTTP over TCP的方式发起重定向请求。 When the terminal device is a device in the CDN network, when interacting with the routing server, since the CDN internal device and the routing server are both manufacturers' devices, they are either supported or not supported, so there is no self-incompatibility. Specifically, when the terminal device initiates an HTTP redirect request to the routing server based on the HTTP mode, the reliability of the HTTP message needs to be guaranteed by the terminal device itself, for example: when the terminal device waits for the HTTP request to time out, or finds that the request message is unreachable. When the terminal device re-enables HTTP over TCP, it initiates a redirect request.
在本发明的一个实施例中, 终端设备接收所述路由服务器返回的响应, 包 括: 对所述路由服务器返回的响应进行识别, 所述响应中包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;  In an embodiment of the present invention, the receiving, by the terminal device, the response returned by the routing server includes: identifying a response returned by the routing server, where the response includes an extension field, where the extension field is used to indicate initiation The method used by the HTTP request, including TCP or UDP;
根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。  The HTTP request is initiated to the destination server in a manner indicated by the extension field.
Connection-Type = "TCPTUDP"的形式来实现。 Connection-Type = "TCPTUDP" is implemented in the form.
如图 2所示, 本发明实施例以终端设备设备的角度提出一种内容分发网络 中的终端设备, 包括如下功能模块:  As shown in FIG. 2, the embodiment of the present invention provides a terminal device in a content distribution network from the perspective of a terminal device, and includes the following functional modules:
第一发送模块 21, 用于向内容分发网络中的路由服务器发送 HTTP重定向 请求; 该请求是基于 UDP方式发送的;  The first sending module 21 is configured to send an HTTP redirect request to a routing server in the content distribution network; the request is sent according to a UDP manner;
响应接收模块 22, 用于接收所述路由服务器返回的响应, 该响应中包括重 定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指 示;  The response receiving module 22 is configured to receive a response returned by the routing server, where the response includes a redirected destination server address and a manner indication used to initiate an HTTP request to the destination server;
第二发送模块 23, 用于根据所述响应中指示的方式, 向所述目的服务器发 起 HTTP请求。  The second sending module 23 is configured to send an HTTP request to the destination server according to the manner indicated in the response.
可选的, 在本发明的一个实施例中, 所述终端设备还包括:  Optionally, in an embodiment of the present invention, the terminal device further includes:
配置单元 24, 用于设置 UDP方式为默认发送方式发起所述重定向请求, 或者, 对于配置的有特定后缀的域名, 设置优先以基于 UDP方式发起所述重定 向清求;  The configuration unit 24 is configured to initiate the redirection request by using the UDP mode as the default sending mode, or set the priority to the domain name with a specific suffix to initiate the redirection request based on the UDP mode;
可选的, 在本发明的一个实施例中, 所述第一发送模块 21还用于: 在以所述配置单元配置的发送方式发起所述重定向请求后, 在确定所述重 定向请求超时或者路由服务器不支持 UDP方式的情况下, 改用基于 TCP方式 发起所述重定向请求。 Optionally, in an embodiment of the present invention, the first sending module 21 is further configured to: after the redirection request is initiated in a sending manner configured by the configuration unit, determine the weight If the directed request times out or the routing server does not support the UDP mode, the redirect request is initiated based on the TCP method.
可选的, 在本发明的一个实施例中, 所述第二发送模块 23可以包括: 识别单元 231, 用于对所述路由服务器返回的响应进行识别, 所述响应中 包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述 方式包括 TCP或者 UDP;  Optionally, in an embodiment of the present invention, the second sending module 23 may include: an identifying unit 231, configured to identify a response returned by the routing server, where the response includes an extended field, where The extension field is used to indicate the manner in which the HTTP request is initiated, and the manner includes TCP or UDP;
发送单元 232, 用于根据所述扩展字段指示的方式向所述目的服务器发起 所述 HTTP请求。  The sending unit 232 is configured to initiate the HTTP request to the destination server according to the manner indicated by the extended field.
在本发明的一个实施例中, 本实施例中所述终端设备包括同 CDN网络交 互的用户端或 CDN网络的内部设备; 所述路由服务器包括 CDN网络中的路由 服务器设备; 所述目的服务器包括 CDN网络中最终能够提供内容的设备。  In an embodiment of the present invention, the terminal device in the embodiment includes a user end interacting with a CDN network or an internal device of a CDN network; the routing server includes a routing server device in a CDN network; and the destination server includes A device in the CDN network that is ultimately capable of providing content.
需要说明的是, 图 2所示的装置实施例中各功能模块实现的功能与图 1实施 例中各步骤涉及的技术方案对应, 其中, 包含了相同或相应的技术特征, 在此 不作——赘述, 请参见图 1的方法实施例中的相关描述。  It should be noted that the functions implemented by the functional modules in the device embodiment shown in FIG. 2 correspond to the technical solutions involved in the steps in the embodiment of FIG. 1 , wherein the same or corresponding technical features are included, and no For details, please refer to the related description in the method embodiment of FIG. 1.
如图 3所示, 本发明实施例以 CDN网络中路由服务器的角度提出一种内容 分发网络中实现超文本传输协议重定向的方法, 技术方案包括:  As shown in FIG. 3, the embodiment of the present invention provides a method for implementing hypertext transfer protocol redirection in a content distribution network from the perspective of a routing server in a CDN network. The technical solution includes:
步骤 301 : 路由服务器接收终端设备发送的 HTTP重定向请求; 该请求是 终端设备基于 U DP用户数据包协议方式发送的;  Step 301: The routing server receives an HTTP redirect request sent by the terminal device, where the request is sent by the terminal device according to a UDP user data packet protocol.
步骤 302: 路由服务器针对所述重定向请求向所述终端设备返回响应, 该 响应中包括重定向的目的服务器的地址以及向所述目的服务器发起 HTTP请求 所用的方式指示。  Step 302: The routing server returns a response to the terminal device for the redirect request, where the response includes an address of the redirected destination server and a mode indication used to initiate an HTTP request to the destination server.
可选的, 在本发明的一个实施例中, 步骤 301进一步包括:  Optionally, in an embodiment of the present invention, step 301 further includes:
接收所述终端设备设置的默认方式为 UDP方式发起的所述重定向请求, 或者, 接收所述终端设备对于配置有特定后缀的域名, 设置的优先以基于 UDP 方式发起的所述重定向请求;  The default mode set by the terminal device is the UDP mode initiated redirection request, or the terminal device receives the domain name configured with a specific suffix, and sets the priority to the UDP mode-based redirection request;
对所述 UDP方式发起的重定向请求进行判断, 路由服务器在确定自身不 支持所述 UDP方式发起的请求时, 向所述终端设备发送回应或者不做回应; 在所述终端设备确定所述重定向请求超时或者路由服务器不支持 UDP方 式的情况下, 接收所述终端设备以 TCP方式发起所述重定向请求。 Determining the redirect request initiated by the UDP mode, and the routing server determines that it is not When the request initiated by the UDP mode is supported, the terminal device sends a response or does not respond; when the terminal device determines that the redirection request times out or the routing server does not support the UDP mode, the terminal device is received. The redirection request is initiated in TCP mode.
需要说明的是, 在本发明实施例中终端设备如何设定优先以 UDP的方式 发起重定向请求的过程, 在图 1的方法实施例中已经做出相关描述, 在此不作 详述。  It should be noted that, in the embodiment of the present invention, the terminal device sets a process of preferentially initiating a redirection request in the manner of UDP. The related description has been made in the method embodiment of FIG. 1 and will not be described in detail herein.
在本发明的一个实施例中, 步骤 302中向终端设备返回所述响应具体包 括:  In an embodiment of the present invention, returning the response to the terminal device in step 302 specifically includes:
通过在向所述终端设备返回的响应中增加一个扩展字段来携带所述指示, 所述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方 式, 所述方式包括 TCP或者 UDP;  The indication is carried by adding an extension field to the response returned by the terminal device, where the extension field is used to indicate a manner in which the terminal device initiates an HTTP request to the destination server, where the manner includes TCP or UDP;
具体的说, 在本发明实施例的实现过程中, 可以将扩展字段设置成: X- Connection-Type = "TCPTUDP"的方式, 来指示后续所述终端设备向要重定 向的目的服务器发起的 HTTP链接是用 TCP方式来承载或用 UDP方式来承载。  Specifically, in the implementation process of the embodiment of the present invention, the extension field may be set to: X-Connection-Type = "TCPTUDP", to indicate that the subsequent terminal device initiates HTTP to the destination server to be redirected. The link is carried by TCP or by UDP.
具体的说, 在响应消息中增加一个扩展字段后的消息样式如下:  Specifically, the message style after adding an extension field to the response message is as follows:
HTTP/1.1 302 Found  HTTP/1.1 302 Found
Content-Length: 153  Content-Length: 153
Expires: Wed, 30 Jun 2010 09:16:41 GMT  Expires: Wed, 30 Jun 2010 09:16:41 GMT
Date: Wed, 30 Jun 2010 09:17:41 GMT  Date: Wed, 30 Jun 2010 09:17:41 GMT
Location: http:〃 mxserver-1.cdn.net/runonce3.aspx  Location: http:〃 mxserver-1.cdn.net/runonce3.aspx
Content-Type: text/html; charset=utf-8  Content-Type: text/html; charset=utf-8
Server: Microsoft-I IS/6.0  Server: Microsoft-I IS/6.0
X-Powered-By: ASP.NET  X-Powered-By: ASP.NET
X-Connection-Type: TCP  X-Connection-Type: TCP
X-AspNet-Version: 2.0.50727  X-AspNet-Version: 2.0.50727
Cache-Control: private  Cache-Control: private
通过上述方式, 可以将终端设备后续重定向的 HTTP链接的承载方式通知 终端设备。 In the above manner, the bearer manner of the HTTP link that the terminal device subsequently redirects can be notified. Terminal Equipment.
如图 4所示, 本发明实施例以 CDN网络中路由服务器的角度, 提出一种内 容分发网络中的路由服务器, 可以与图 2所示的终端设备配合使用, 包括如下 功能模块:  As shown in FIG. 4, the embodiment of the present invention provides a routing server in a content distribution network from the perspective of a routing server in a CDN network, which can be used in conjunction with the terminal device shown in FIG. 2, and includes the following functional modules:
请求接收模块 41, 用于接收终端设备发送的 HTTP重定向请求; 该请求是 终端设备基于 UDP方式发送的;  The request receiving module 41 is configured to receive an HTTP redirect request sent by the terminal device, where the request is sent by the terminal device according to the UDP method;
响应发送模块 42, 用于针对所述重定向请求向所述终端设备返回响应, 该 响应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所 用的方式指示。  The response sending module 42 is configured to return a response to the terminal device for the redirect request, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server.
在本发明的一个实施例中, 请求接收模块 41进一步包括:  In an embodiment of the present invention, the request receiving module 41 further includes:
接收单元 411, 用于接收所述终端设备设置的默认方式为 UDP方式发起所 述重定向请求, 或者, 接收所述终端设备对于配置的有特定后缀的域名, 设置 的优先以基于 UDP方式发起所述重定向请求; 请求, 在确定支持所述 UDP方式时, 指示所述响应发送模块向终端设备返回所 述响应; 在确定不支持所述 UDP方式时, 向所述终端设备发送回应或不做回 应; 发送的所述重定向请求时, 接收所述终端设备基于 TCP方式发起 HTTP重定向 请求。  The receiving unit 411 is configured to receive the redirection request by using the UDP mode in the default mode set by the terminal device, or receive the domain name with a specific suffix for the configured terminal device, and set the priority to be initiated based on the UDP mode. Redirecting request; requesting, when determining that the UDP mode is supported, instructing the response sending module to return the response to the terminal device; when determining that the UDP mode is not supported, sending a response or not to the terminal device Responding to the sending of the redirect request, receiving the terminal device to initiate an HTTP redirect request based on the TCP mode.
在本发明的一个实施例中, 响应发送模块 42进一步包括:  In an embodiment of the present invention, the response sending module 42 further includes:
设定单元 421, 用于在向所述终端设备返回的响应中增加一个扩展字段, 所述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方 式, 所述方式包括 TCP或者 UDP;  The setting unit 421 is configured to add an extension field to the response returned by the terminal device, where the extension field is used to indicate a manner in which the terminal device initiates an HTTP request to the destination server, where the manner includes TCP or UDP. ;
响应单元 422, 用于向所述终端设备反馈包含所述扩展字段的响应。  The response unit 422 is configured to feed back, to the terminal device, a response that includes the extended field.
具体的说, 在本发明实施例的实现过程中, 可以将所述扩展字段设置为 X- Connection-Type = "TCPTUDP"的方式, 来指示后续所述终端设备向要重定 向的目的服务器发起的 HTTP链接是用 TCP方式来承载或用 UDP方式来承载。 Specifically, in the implementation process of the embodiment of the present invention, the extension field may be set to X- Connection-Type = "TCPTUDP", to indicate that the HTTP link initiated by the subsequent terminal device to the destination server to be redirected is carried by TCP or by UDP.
在本发明的一个实施例中, 本发明涉及的所述终端设备包括同 CDN网络 交互的用户端或 CDN网络的内部设备; 所述路由服务器包括 CDN网络中的路 由服务器设备; 所述目的服务器包括 CDN网络中最终能够提供内容的设备。  In an embodiment of the present invention, the terminal device involved in the present invention includes a user terminal interacting with a CDN network or an internal device of a CDN network; the routing server includes a routing server device in a CDN network; and the destination server includes A device in the CDN network that is ultimately capable of providing content.
图 4所示的装置实施例中各功能模块实现的功能与图 3实施例中各步骤涉及 的技术方案对应, 包含了相同或相应的技术特征, 在此不作——赘述, 请参见 图 3的方法实施例中的相关描述。  The function implemented by each functional module in the device embodiment shown in FIG. 4 corresponds to the technical solution involved in each step in the embodiment of FIG. 3, and includes the same or corresponding technical features, which are not described herein - see FIG. 3 A related description in the method embodiment.
如图 5所示, 本发明实施例还提供了一种内容分发网络中实现超文本传输 协议重定向的系统, 技术方案包括  As shown in FIG. 5, an embodiment of the present invention further provides a system for implementing hypertext transfer protocol redirection in a content distribution network, where the technical solution includes
如图 2实施例所示的终端设备 51, 用于向路由服务器发送 HTTP重定向请 求; 该请求是基于 UDP方式发送的; 接收所述路由服务器返回的响应, 该响应 中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的 方式指示; 根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求; 如图 4实施例所示的 CDN路由服务器 52, 用于接收所述终端设备发送的所 述重定向请求; 针对所述重定向请求向所述终端设备返回响应, 该响应中包括 终端设备向重定向的目的服务器的地址以及向所述目的服务器发起 HTTP请求 所用的方式指示。  The terminal device 51 shown in the embodiment of FIG. 2 is configured to send an HTTP redirect request to the routing server; the request is sent according to the UDP method; and receive a response returned by the routing server, where the response includes the redirected destination server. An address and an indication of a mode for initiating an HTTP request to the destination server; initiating an HTTP request to the destination server according to the manner indicated in the response; the CDN routing server 52 shown in the embodiment of FIG. Determining, by the terminal device, the redirect request, and returning, to the terminal device, a response, where the response includes an address of the target device to the redirected destination server and an HTTP request to the destination server. Mode indication.
为了更好的理解本发明的技术方案, 下面结合 CDN网络中的两类 HTTP重 定向过程的应用场景进行详细说明。  In order to better understand the technical solution of the present invention, the following describes in detail the application scenarios of the two types of HTTP redirection processes in the CDN network.
当本发明实施例的技术方案应用在 UE与路由服务器之间的重定向过程的 应用场景时, 终端设备为与 CDN网络交互的 UE, 路由服务器为 CDN网络中的 路由服务器设备, 需要重定向的目的服务器为最终能够为用户提供内容服务的 边缘服务器, 如图 6所示, 具体流程包括:  When the technical solution of the embodiment of the present invention is applied to the application scenario of the redirection process between the UE and the routing server, the terminal device is a UE that interacts with the CDN network, and the routing server is a routing server device in the CDN network, and needs to be redirected. The destination server is an edge server that can finally provide content services for users. As shown in FIG. 6, the specific process includes:
步骤 601 : UE点击某网址链接, 该链接最终通过 DNS服务器将其指向了 CDN网络中的路由服务器, UE向路由服务器优先以 HTTP over UDP方式发起 HTTP GET重定向请求; Step 601: The UE clicks on a certain website link, and the link finally points to the routing server in the CDN network through the DNS server, and the UE preferentially initiates the HTTP to UDP mode to the routing server. HTTP GET redirect request;
步骤 602: 路由服务器收到 HTTP GET请求后, 根据自身的路由策略选择 一个边缘服务器, 并反馈 302消息给 UE, 该 302消息中指定了重定向的边缘服 务器的 URL地址, 以及用于指示后续重定向的 HTTP链接是用 TCP来承载还是 用 UDP来承载的一个扩展字段 header field;  Step 602: After receiving the HTTP GET request, the routing server selects an edge server according to its own routing policy, and feeds back a 302 message to the UE. The 302 message specifies the URL address of the redirected edge server, and is used to indicate the subsequent weight. Whether the directed HTTP link is carried by TCP or an extended field header field carried by UDP;
该字段的具体形式为: X-Connection-Type = "TCPTUDP";  The specific form of this field is: X-Connection-Type = "TCPTUDP";
增加扩展字段后的 302消息样式为:  The 302 message style after adding the extension field is:
HTTP/1.1 302 Found  HTTP/1.1 302 Found
Content-Length: 153  Content-Length: 153
Expires: Wed, 30 Jun 2010 09:16:41 GMT  Expires: Wed, 30 Jun 2010 09:16:41 GMT
Date: Wed, 30 Jun 2010 09:17:41 GMT  Date: Wed, 30 Jun 2010 09:17:41 GMT
Location: http:〃 mxserver-1.cdn.net/runonce3.aspx  Location: http:〃 mxserver-1.cdn.net/runonce3.aspx
Content-Type: text/html; charset=utf-8  Content-Type: text/html; charset=utf-8
Server: Microsoft-I IS/6.0  Server: Microsoft-I IS/6.0
X-Powered-By: ASP.NET  X-Powered-By: ASP.NET
X-Connection-Type: TCP  X-Connection-Type: TCP
X-AspNet-Version: 2.0.50727  X-AspNet-Version: 2.0.50727
Cache-Control: private 具体的说, 路由服务器收到 HTTP GET请求后根据自身的路由策略选择一 个边缘服务器的过程, 路由策略包括:  Cache-Control: private Specifically, the routing server selects an edge server according to its own routing policy after receiving the HTTP GET request. The routing policy includes:
路由服务器根据 UE的位置、 请求的内容、 CDN网络中各边缘服务器的负 载状态等情况选择一个最佳的边缘服务器向 UE提供内容。  The routing server selects an optimal edge server to provide content to the UE according to the location of the UE, the content of the request, the load status of each edge server in the CDN network, and the like.
步骤 603: UE收到路由服务器返回的 302消息, 向消息中的 Location指定 的地址发起 HTTP请求, 并根据 X-Connection-Type中的指示来选择 TCP连接 发起请求。 需要说明的是, UE在基于 UDP协议的方式发起 HTTP重定向请求时, UE 如果等待 HTTP请求超时或者发现消息不可达, 则 UE可重新启用 HTTP over TCP来发送请求。 具体的超时机制可根据配置来制定, 只要能及时判断出 HTTP请求是否异常即可, 制定方式本发明实施例不作具体限定。 Step 603: The UE receives the 302 message returned by the routing server, initiates an HTTP request to the address specified by the Location in the message, and selects a TCP connection initiation request according to the indication in the X-Connection-Type. It should be noted that, when the UE initiates an HTTP redirect request in the UDP protocol-based manner, if the UE waits for the HTTP request to time out or the discovery message is unreachable, the UE may re-enable HTTP over TCP to send the request. The specific timeout mechanism may be determined according to the configuration, and the method may be determined in the embodiment of the present invention.
当本发明实施例的技术方案应用在 CDN内部设备与路由服务器之间的 HTTP重定向过程的应用场景时, 终端设备为 CDN网络中的其它网元(包括边 缘服务器、 中心存储、 网络 /业务管理服务器) , 路由服务器为 CDN网络中的 路由服务器设备, 需要重定向的目的服务器为最终能够提供内容的边缘服务 器, 如图 7所示, 具体流程包括:  When the technical solution of the embodiment of the present invention is applied to an application scenario of an HTTP redirection process between a CDN internal device and a routing server, the terminal device is another network element in the CDN network (including edge server, central storage, network/service management). The server is a routing server device in the CDN network, and the destination server that needs to be redirected is an edge server that can finally provide content. As shown in FIG. 7, the specific process includes:
步骤 701 : CDN网元向路由服务器优先以 HTTP over UDP方式发起 HTTP 重定向请求;  Step 701: The CDN network element preferentially initiates an HTTP redirect request by using an HTTP over UDP manner to the routing server.
CDN网元如何设置优先以 UDP的方式发送 HTTP重定向请求的方法与图 7 实施例中 UE怎样优先设定 UDP方式发送 HTTP重定向请求的过程相同;  The method for setting the priority of the CDN network element to send the HTTP redirect request in the UDP mode is the same as the process of the UE in the embodiment of the present invention.
步骤 702: 路由服务器收到 HTTP over UDP的请求, 根据请求的内容、 CDN网络中各边缘服务器的负载状态等情况选择一个最佳的边缘服务器向 CDN网元提供内容, 并在向 CDN网元返回的响应消息中携带该边缘服务器的 地址, 以及一个用于指示后续重定向的 HTTP链接是用 TCP来承载还是用 UDP 来承载的一个扩展字段 header field;  Step 702: The routing server receives the HTTP over UDP request, and selects an optimal edge server to provide content to the CDN network element according to the content of the request, the load status of each edge server in the CDN network, and the like, and returns the content to the CDN network element. The response message carries the address of the edge server, and an HTTP field for indicating whether the subsequent redirect is carried by TCP or an extended field header field carried by UDP;
步骤 703: CDN网元根据 302消息中的重定向地址发起 HTTP请求。  Step 703: The CDN network element initiates an HTTP request according to the redirected address in the 302 message.
需要说明的是, 当 CDN网元等待路由服务器的 HTTP响应超时, 则重新以 HTTP over TCP方式发起请求。  It should be noted that when the CDN network element waits for the HTTP response of the routing server to time out, the request is initiated again by HTTP over TCP.
需要说明的是, 图 7所示技术方案中 CDN网络中的其它网元(包括边缘服 务器、 中心存储、 网络 /业务管理服务器) 与路由服务器重定向交互过程, 在 实际应用场景中经常涉及到, 比如边缘服务器收到 UE的请求后, 发现没有緩 存此 UE的内容, 此时边缘服务器会向路由服务器发送 HTTP请求用户获得最佳 的中心存储服务器的地址, 为用户提供内容服务。 综上所述, 本发明实施例提供的一种内容分发网络中实现超文本传输协议 重定向的方法、 装置及系统, 从技术角度来说, 发起重定向的请求方通过以It should be noted that the interaction process between the other network elements (including the edge server, the central storage, the network/service management server) and the routing server in the CDN network in the technical solution shown in FIG. 7 is often involved in the actual application scenario. For example, after receiving the request from the UE, the edge server finds that the content of the UE is not cached. At this time, the edge server sends an HTTP request to the routing server to obtain the address of the best central storage server, and provides content services for the user. In summary, the method, device, and system for implementing hypertext transfer protocol redirection in a content distribution network according to an embodiment of the present invention, from a technical point of view, a requesting party that initiates redirection passes
UDP的方式发起重定向请求, 以两条消息的交互过程替代了现有基于 TCP发 起重定向需要有 10条消息的交互过程, 提高了 CDN网络中重定向过程的速 度; 此外, 从用户角度来说, 提高了 CDN响应用户请求的时间, 缩短了用户 从点击请求到获取到开始的内容的延迟。 The UDP mode initiates a redirection request, and replaces the existing interaction process based on the TCP-initiated redirection with 10 messages, which improves the speed of the redirection process in the CDN network. In addition, from the perspective of the user It is said that the time for the CDN to respond to the user request is increased, and the delay of the user from the click request to the start of the content is shortened.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流 程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 ( Read-〇nly Memory, ROM ) 或随机存者 i己忆体 ( Random Access Memory, RAM ) 等。  A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium. In execution, the flow of an embodiment of the methods as described above may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应该以权利要求的保护范围为准。  The above is only a preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or within the technical scope disclosed by the present invention. Alternatives are intended to be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利 要求 书 Claim
1、 一种内容分发网络中请求超文本传输协议重定向的方法, 其特征在 于, 包括:  A method for requesting a hypertext transfer protocol redirection in a content distribution network, the method comprising:
向内容分发网络 CDN中的路由服务器发送超文本传输协议 HTTP重定向请 求; 该请求是基于用户数据包协议 UDP方式发送的;  Sending a hypertext transfer protocol HTTP redirect request to a routing server in the content distribution network CDN; the request is sent based on the User Datagram Protocol UDP method;
接收所述路由服务器返回的响应, 该响应中包括重定向的目的服务器地址 以及向所述目的服务器发起 HTTP请求所用的方式指示;  Receiving a response returned by the routing server, where the response includes a redirected destination server address and a manner indication used to initiate an HTTP request to the destination server;
根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。  An HTTP request is initiated to the destination server in accordance with the manner indicated in the response.
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 设置 UDP方式为默认发送方式发起所述重定向请求, 或者, 对于配置的 有特定后缀的域名, 设置优先基于 UDP方式发起所述重定向请求。 The method according to claim 1, wherein the method further comprises: setting a UDP mode to initiate the redirect request by using a default sending mode, or setting a priority based on UDP for a configured domain name with a specific suffix The method initiates the redirect request.
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: 在确定所述重定向请求超时或路由服务器不支持 UDP方式的情况下, 改 用基于传输控制协议 TCP方式发起所述重定向请求。 The method according to claim 2, wherein the method further comprises: in the case of determining that the redirection request times out or the routing server does not support the UDP mode, using the TCP control mode based on the transmission control protocol Redirect request.
4、 根据权利要求 1或 3所述的方法, 其特征在于, 进一步包括: The method according to claim 1 or 3, further comprising:
对所述路由服务器返回的响应进行识别, 所述响应中包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;  Responding to the response returned by the routing server, where the response includes an extension field, where the extension field is used to indicate a manner for initiating an HTTP request, where the manner includes TCP or UDP;
根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。  The HTTP request is initiated to the destination server in a manner indicated by the extension field.
5、 一种内容分发网络中的终端设备, 其特征在于, 包括: 5. A terminal device in a content distribution network, comprising:
第一发送模块, 用于向内容分发网络 CDN中的路由服务器发送 HTTP重定 向请求; 该请求是基于 UDP方式发送的;  a first sending module, configured to send an HTTP redirection request to a routing server in the content distribution network CDN; the request is sent according to a UDP manner;
响应接收模块, 用于接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 第二发送模块, 用于根据所述响应中指示的方式, 向所述目的服务器发起The response receiving module is configured to receive a response returned by the routing server, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server; a second sending module, configured to initiate to the destination server according to the manner indicated in the response
HTTP请求。 HTTP request.
6、 根据权利要求 5所述的终端设备, 其特征在于, 所述终端设备还包括: 配置模块, 用于设置 UDP方式为默认发送方式发起所述重定向请求, 或 者, 对于配置的有特定后缀的域名, 设置优先以基于 UDP方式发起所述重定向 请求。 The terminal device according to claim 5, wherein the terminal device further includes: a configuration module, configured to set a UDP mode to initiate the redirection request by using a default sending mode, or a specific suffix for the configuration The domain name is set to preferentially initiate the redirect request based on the UDP method.
7、 根据权利要求 6所述的终端设备, 其特征在于, 所述第一发送模块还用 于: The terminal device according to claim 6, wherein the first sending module is further configured to:
在以所述配置单元配置的发送方式发起所述重定向请求后, 在确定所述重 定向请求超时或者路由服务器不支持 UDP方式的情况下, 改用基于 TCP方式 发起所述重定向请求。  After the redirection request is initiated in the sending manner configured by the configuration unit, if it is determined that the redirection request times out or the routing server does not support the UDP mode, the redirection request is initiated by using the TCP-based method instead.
8、 根据权利要求 5或 7所述的终端设备, 其特征在于, 所述第二发送模块 包括: The terminal device according to claim 5 or 7, wherein the second sending module comprises:
识别单元, 用于对所述路由服务器返回的响应进行识别, 所述响应中包括 一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式 包括 TCP或者 UDP;  An identification unit, configured to identify a response returned by the routing server, where the response includes an extension field, where the extension field is used to indicate a manner for initiating an HTTP request, where the manner includes TCP or UDP;
发送单元, 用于根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。  And a sending unit, configured to initiate the HTTP request to the destination server according to the manner indicated by the extended field.
9、 根据权利要求 5至 7中任一所述的终端设备, 其特征在于, 所述终端设 备包括同 CDN网络交互的用户端或 CDN网络的内部设备; 所述路由服务器包 括 CDN网络中的路由服务器设备; 所述目的服务器包括 CDN网络中最终能够 提供内容的设备。 The terminal device according to any one of claims 5 to 7, wherein the terminal device comprises a user terminal interacting with a CDN network or an internal device of a CDN network; the routing server comprises a route in a CDN network Server device; the destination server includes a device in the CDN network that is ultimately capable of providing content.
10、 一种内容分发网络中的 CDN路由服务器, 其特征在于, 包括: 请求接收模块, 用于接收终端设备发送的 HTTP重定向请求; 该请求是终 端设备基于 UDP方式发送的; A CDN routing server in a content distribution network, comprising: a request receiving module, configured to receive an HTTP redirect request sent by the terminal device; the request is sent by the terminal device according to a UDP manner;
响应发送模块, 用于针对所述重定向请求向所述终端设备返回响应, 该响 应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用 的方式指示。  The response sending module is configured to return a response to the terminal device for the redirect request, where the response includes a redirected destination server address and a mode indication used to initiate an HTTP request to the destination server.
11、 根据权利要求 10所述的 CDN路由服务器, 其特征在于, 请求接收模 块包括: 11. The CDN routing server according to claim 10, wherein the request receiving module comprises:
接收单元, 用于接收所述终端设备设置的默认方式为 UDP方式发起所述 重定向请求, 或者, 接收所述终端设备对于配置的有特定后缀的域名, 设置的 优先以基于 UDP方式发起所述重定向请求; 求, 在确定支持所述 UDP方式时, 指示所述响应发送模块向终端设备返回所述 响应; 在确定不支持所述 UDP方式时, 向所述终端设备发送回应或不做回应; 送的所述重定向请求时, 接收所述终端设备基于 TCP方式发起 HTTP重定向请 求。  a receiving unit, configured to receive the redirection request by using a default mode set by the terminal device, or receiving a domain name with a specific suffix for the configured terminal device, and setting the priority to initiate the UDP-based manner. Redirecting a request, requesting, when determining that the UDP mode is supported, instructing the response sending module to return the response to the terminal device; sending a response or not responding to the terminal device when determining that the UDP mode is not supported When the redirect request is sent, the receiving terminal device initiates an HTTP redirect request based on the TCP mode.
12、 根据权利要求 10或 11所述的 CDN路由服务器, 其特征在于, 响应发 送模块, 包括: The CDN routing server according to claim 10 or 11, wherein the response sending module comprises:
设定单元, 用于在向所述终端设备返回的响应中增加一个扩展字段, , 所 述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;  a setting unit, configured to add an extension field to the response returned to the terminal device, where the extension field is used to indicate a manner in which the terminal device initiates an HTTP request to the destination server, where the manner includes TCP or UDP ;
响应单元, 用于向所述终端设备反馈包含所述扩展字段的响应。  And a response unit, configured to feed back, to the terminal device, a response that includes the extended field.
13、 根据权利要求 10或 11所述的路由服务器, 其特征在于, 所述终端设 备包括同 CDN网络交互的用户端或 CDN网络的内部设备; 所述路由服务器包 括 CDN网络中的路由服务器设备; 所述目的服务器包括 CDN网络中最终能够 提供内容的设备。 The routing server according to claim 10 or 11, wherein the terminal device comprises a user terminal interacting with a CDN network or an internal device of a CDN network; A routing server device in a CDN network; the destination server includes a device in the CDN network that is ultimately capable of providing content.
14、 一种内容分发网络中实现超文本传输协议重定向的系统, 其特征在 于, 包括 14. A system for implementing hypertext transfer protocol redirection in a content distribution network, characterized by, including
终端设备, 用于向路由服务器发送 HTTP重定向请求; 该请求是基于 UDP 方式发送的; 接收所述路由服务器返回的响应, 该响应中包括重定向的目的服 务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 根据所述响 应中指示的方式, 向所述目的服务器发起 HTTP请求;  a terminal device, configured to send an HTTP redirect request to the routing server; the request is sent according to a UDP manner; receiving a response returned by the routing server, where the response includes a redirected destination server address and initiating HTTP to the destination server Instructing the manner used by the request; initiating an HTTP request to the destination server according to the manner indicated in the response;
路由服务器, 用于接收所述终端设备发送的所述重定向请求; 针对所述重 定向请求向所述终端设备返回响应, 该响应中包括终端设备向重定向的目的服 务器的地址以及向所述目的服务器发起 HTTP请求所用的方式指示。  a routing server, configured to receive the redirection request sent by the terminal device, and return a response to the terminal device, where the response includes an address of the terminal device to the redirected destination server, and the The mode indication used by the destination server to initiate an HTTP request.
PCT/CN2011/074490 2010-11-26 2011-05-23 Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network WO2011137809A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2010105697767A CN102143204A (en) 2010-11-26 2010-11-26 Method, device and system for realizing reorientation of hypertext transfer protocol in content delivery network
CN201010569776.7 2010-11-26

Publications (1)

Publication Number Publication Date
WO2011137809A1 true WO2011137809A1 (en) 2011-11-10

Family

ID=44410424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074490 WO2011137809A1 (en) 2010-11-26 2011-05-23 Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network

Country Status (2)

Country Link
CN (1) CN102143204A (en)
WO (1) WO2011137809A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018098820A1 (en) * 2016-12-02 2018-06-07 深圳前海达闼云端智能科技有限公司 Method and device for sending and receiving data, server, and computer program product

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102668518B (en) 2011-12-02 2013-10-02 华为技术有限公司 Content distribution network routing method, system, and user terminal
CN102917076B (en) * 2012-11-16 2016-04-13 网宿科技股份有限公司 Based on the HTTP message transmission method of redundancy encoding
CN103051976B (en) * 2013-01-22 2016-02-10 中兴通讯股份有限公司 A kind of CDN distributes HLS content and method, system and equipment
WO2015061938A1 (en) * 2013-10-28 2015-05-07 华为技术有限公司 Method, device and system for redirecting data service proxy
CN111163133B (en) * 2015-08-28 2022-03-11 华为技术有限公司 Network system and network communication method
US10362069B2 (en) * 2015-12-03 2019-07-23 Microsoft Technology Licensing, Llc Protocol fallback
CN105872028B (en) * 2016-03-25 2019-04-26 努比亚技术有限公司 Server-side, client and access strategy management method
CN105897767A (en) * 2016-06-16 2016-08-24 乐视控股(北京)有限公司 Scheduling method, equipment and system and scheduling response method and equipment
CN106453123A (en) * 2016-09-30 2017-02-22 广州视睿电子科技有限公司 Cross-region service processing method and device
CN108270829B (en) * 2016-12-30 2021-08-03 阿里巴巴集团控股有限公司 Resource distribution processing method and device
CN108600281B (en) * 2017-03-16 2021-12-31 杭州海康威视数字技术股份有限公司 Cloud storage system, media data storage method and system
FR3064437A1 (en) * 2017-03-24 2018-09-28 Orange METHOD FOR RECOMMENDING A COMMUNICATION STACK
CN107426228A (en) * 2017-08-02 2017-12-01 上海斐讯数据通信技术有限公司 A kind of application authentication method and system based on UDP transmission
CN109561058A (en) * 2017-09-27 2019-04-02 中兴通讯股份有限公司 A kind of media server reorientation method, apparatus and system based on udp protocol
CN109818905B (en) * 2017-11-21 2022-06-03 中国移动通信有限公司研究院 Method, network element equipment and system for adapting transport layer protocol
CN114785778B (en) * 2022-03-10 2023-09-01 聚好看科技股份有限公司 Gateway device and content distribution method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551569A (en) * 2003-04-08 2004-12-01 Adv通讯公司 Transmission method of multimedia data over a network
US20060095573A1 (en) * 2004-11-01 2006-05-04 Microsoft Corporation Delayed HTTP response
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808118A (en) * 2010-03-02 2010-08-18 浪潮(北京)电子信息产业有限公司 Access method, device and system of server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551569A (en) * 2003-04-08 2004-12-01 Adv通讯公司 Transmission method of multimedia data over a network
US20060095573A1 (en) * 2004-11-01 2006-05-04 Microsoft Corporation Delayed HTTP response
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
WANG, CHAO: "Method for realizing HTTP protocol based on hybird TCP-UDP", MICROCONTROLLERS & EMBEDDED SYSTEMS, vol. 2003, no. 1, February 2003 (2003-02-01), pages 26 - 28 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018098820A1 (en) * 2016-12-02 2018-06-07 深圳前海达闼云端智能科技有限公司 Method and device for sending and receiving data, server, and computer program product

Also Published As

Publication number Publication date
CN102143204A (en) 2011-08-03

Similar Documents

Publication Publication Date Title
WO2011137809A1 (en) Method, apparatus and system for realizing hypertext transfer protocol redirection in content delivery network
CN104429037B8 (en) Method, equipment and system for being connected to communication equipment
EP2843908B1 (en) Full-duplex bi-directional communication over a remote procedure call based communications protocol, and applications thereof
US20070233844A1 (en) Relay device and communication system
WO2006034635A1 (en) A method for establishing the p2p connection
KR102132266B1 (en) Secondary node type based control for data streaming
WO2013044671A1 (en) Internet access method, terminal and storage medium
WO2011017939A1 (en) Service realizing method and service system
JP5135421B2 (en) Page mode messaging
WO2007068209A1 (en) A method, system and device for transmitting ims instant messages
CN107835257B (en) Session management method and device
US9210142B2 (en) Method for providing internet services to a telephone user
WO2011160587A1 (en) Method and system for connecting a dual-stack terminal to networks
JP2019525578A (en) Efficient forwarding of encapsulated media traffic through a datagram-based transport layer
JP2008078878A (en) Session control system, session proxy device, communication method, and program
WO2012072045A1 (en) Method, network node and system for data transmission in cdn network
US7564848B2 (en) Method for the establishing of connections in a communication system
EP2837148A1 (en) Method for optimising downloading of data
JP5797591B2 (en) Relay device
TW201141163A (en) Quality parameters negotiation by specific URI
WO2013182030A1 (en) A method, device and system for requesting resource
JP2008219723A (en) Sip service system, apparatus, method and program used therefor
JP4245986B2 (en) NETWORK SYSTEM, DATA DOWNLOAD CONTINUING METHOD AT TERMINAL SWITCHING IN THE NETWORK SYSTEM, AND PROGRAM THEREOF
US8219622B2 (en) Systems and methods for providing extended peering
WO2004075476A1 (en) Terminating a session in a network

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

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

Country of ref document: EP

Kind code of ref document: A1