WO2011137809A1 - 一种内容分发网络中实现超文本传输协议重定向的方法、装置及*** - Google Patents

一种内容分发网络中实现超文本传输协议重定向的方法、装置及*** 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
English (en)
French (fr)
Inventor
王敬
陈寒冰
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2011137809A1 publication Critical patent/WO2011137809A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/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)

Description

一种内容分发网络中实现超文本传输协议重定向的方法、 装置及*** 本申请要求了 2010年 11月 26日提交的、 申请号为 201010569776.7、 发明 名称为 "一种内容分发网络中实现超文本传输协议重定向的方法、 装置及系 统" 的中国申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域
本发明涉及通信技术领域, 更具体的说, 涉及一种内容分发网络中实现超 文本传输协议重定向的方法、 装置及***。 背景技术
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的链接而重复地使用它传输 一系列的请求 /响应消息, 能够减少链接建立的次数和经常性的链接开销。
CDN ( Content Delivery Network, 内容分发网络)是一种新型的网络构 建方式, 是为能在传统的 IP网发布宽带丰富媒体而特别优化的网络覆盖层。
目前现有 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请求下载内容或者观看视 频。
CDN网络中的路由服务器的第二个功能处理 CDN网络内部的网元(边缘 服务器、 业务管理 /设备管理、 中心存储服务器) HTTP交互, 来获取其它设备 的信息。 比如: 当边缘服务器在 Cache miss的情况下会向 CDN路由服务器请 求中心存储服务器的地址来下载内容, 然后再将此内容发送给客户端, 这种交 互也是基于上述 HTTP 的重定向路由来完成的。 因此当前边缘服务器从中心存 储服务器下载内容也要经过两次 HTTP的交互过程: ( 1 ) 边缘服务器发送 HTTP请求给路由服务器请求具体的中心存储服务器的地址, 路由服务器通过 HTTP响应返回指定的中心存储服务器地址; ( 2 )边缘服务器通过 HTTP请求 向中心存储服务器下载内容, 中心存储服务器通过响应消息提供内容给边缘服 务器。 现有的方案中, CDN网络中的重定向路由的两个过程均是基于 HTTP协议 的, 而 HTTP又是基于 TCP技术实现的, 因此, TCP本身的緩启动和请求确认 机制导致交互的消息包多、 时间长, 导致客户端获取内容的速度难以提高。 发明内容 本发明的实施例提供了一种内容分发网络中请求超文本传输协议重定向的 方法、 装置及***, 能够提高 CDN网络中重定向的速度。
本发明实施例的技术方案如下:
本发明实施例提供了一种内容分发网络中请求超文本传输协议重定向的方 法, 包括:
向内容分发网络 CDN中的路由服务器发送超文本传输协议 HTTP重定向请 求; 该请求是基于用户数据包协议 UDP方式发送的;
接收所述路由服务器返回的响应, 该响应中包括重定向的目的服务器地址 以及向所述目的服务器发起 HTTP请求所用的方式指示;
根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。
本发明实施例提供了一种内容分发网络中的终端设备, 包括:
第一发送模块, 用于向内容分发网络 CDN中的路由服务器发送 HTTP重定 向请求; 该请求是基于 UDP方式发送的;
响应接收模块, 用于接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 第二发送模块, 用于根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。
本发明实施例提供了一种内容分发网络中的路由服务器, 包括: 请求接收模块, 用于接收终端设备发送的 HTTP重定向请求; 该请求是终 端设备基于 UDP方式发送的;
响应发送模块, 用于针对所述重定向请求向所述终端设备返回响应, 该响 应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用 的方式指示。
本发明实施例提供了一种内容分发网络中实现超文本传输协议重定向的系 统, 包括:
终端设备, 用于向路由服务器发送 HTTP重定向请求; 该请求是基于 UDP 方式发送的; 接收所述路由服务器返回的响应, 该响应中包括重定向的目的服 务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 根据所述响 应中指示的方式, 向所述目的服务器发起 HTTP请求;
路由服务器, 用于接收所述终端设备发送的所述重定向请求; 针对所述重 定向请求向所述终端设备返回响应, 该响应中包括终端设备向重定向的目的服 务器的地址以及向所述目的服务器发起 HTTP请求所用的方式指示。
由上述本发明的实施例提供的技术方案可以看出, 终端设备通过以 UDP 的方式向路由服务器发送 HTTP重定向请求, 不仅提高了 CDN网络中重定向的 速度, 而且对于用户来说, 提高了 CDN响应用户请求的时间, 缩短了用户从 点击请求到获取到开始的内容的延迟。 附图说明
为了更清楚地说明本发明实施例的技术方案, 下面将对实施例描述中所需 要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是本发明的 一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提 下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例一种 CDN网络中请求 HTTP重定向的方法流程图; 图 2为本发明实施例一种 CDN网络中的终端设备的结构示意图;
图 3为本发明实施例一种 CDN网络中实现 HTTP重定向的方法流程图; 图 4为本发明实施例一种 CDN网络中的路由服务器的结构示意图; 图 5为本发明实施例一种 CDN网络中的 HTTP重定向***结构示意图; 图 6为本发明实施例一种 CDN网络中实现 HTTP重定向的方法应用场景图 图 7为本发明实施例一种 CDN网络中实现 HTTP重定向的方法应用场景图
具体实施方式
下面将结合本发明实施例中的附图, 对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明实施例提供了一种内容分发网络中请求超文本传输协议重定向的方 法、 装置及***, 终端设备基于 UDP的方式向 CDN网络中的路由服务器发送 HTTP重定向请求, 并根据路由服务器返回的响应消息中的指示选择用 TCP方 式还是 UDP方式向要重定向的目的服务器发起请求。 本发明的实现解决了现有 基于 TCP协议发起重定向请求过程, 消息交互数量多, 耗时长的问题, 能够提 高 CDN网络的重定向速度, 提高 CDN响应用户请求的时间, 缩短了用户从点 击请求到获取内容的延迟。
需要说明的是, 本发明实施例涉及的终端设备指的是所有使用 HTTP发起 请求的客户端, 是同 CDN交互的 UE或者是 CDN网络内的设备, 包括但不限定 于 PC、 月良务器、 CDN网洛设备等。
本发明实施例中涉及的 CDN网络中的路由服务器指的是 CDN网络中的路 由服务器设备。 重定向的目的服务器是指 CDN网络中的最终提供内容的设 备, 可以是 MX/MS。
下面结合具体实施例进一步说明本发明的技术方案。
如图 1所示, 本发明实施例以终端设备的角度提出一种内容分发网络中请 求超文本传输协议重定向的方法, 技术方案包括: 步骤 101: 终端设备向内容分发网络 CDN中的路由服务器发送超文本传输 协议 HTTP重定向请求; 该请求是基于用户数据包协议 UDP方式发送的;
步骤 102: 终端设备接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 步骤 103: 终端设备根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。
在本发明的一个实施例中, 步骤 302中所述的目的服务器地址可以是 URL 形式的, 也可以是其他形式的服务器地址。
终端设备要能够支持 TCP方式 (HTTP over TCP ) 和 UDP方式 (HTTP over UDP )发送的 HTTP重定向请求, 终端设备具体以哪种方式发送 HTTP重 定向请求, 可以根据本发明实施例提供的如下技术方案来实现:
终端设备可以设置 UDP方式为默认发送方式向路由服务器发起 HTTP重定 向请求, 或者, 终端设备对于配置的有特定后缀的域名, 设置优先基于 UDP方 式发起所述重定向请求。
在本发明的一个实施例中, 本发明实施例所述方法还可以包括:
终端设备在确定发出的所述重定向请求超时或路由服务器不支持 UDP方 式的情况下, 改用基于传输控制协议 TCP方式发起所述重定向请求。
具体的, 针对配置特定后缀域名, 可以配置某一类后缀域名, 如: huawei.cdn.net, 总是默认先以 HTTP over UDP发起请求。
需要说明的是, 当终端设备为同 CDN交互的 UE时, UE与路由服务器交互 时, 会出现路由服务器不支持 UDP方式的情况, 因为在标准中, HTTP协议是 基于 TCP协议的, 基于 UDP的 HTTP协议许多厂商都不支持, 因此某些场景中 的 CDN设备可能会有不支持 HTTP over UDP的情况。
当终端设备为 CDN网络中的设备时, 与路由服务器交互时, 因为 CDN内 部设备和路由服务器都是一个厂家的设备, 要么都支持, 要么不支持, 因此不 会出现自我不兼容的情况。 具体的说, 当终端设备基于 HTTP方式向路由服务器发起 HTTP重定向请 求时, HTTP消息的可靠性需要终端设备自身来保证, 例如: 终端设备在等待 HTTP请求超时时, 或者发现该请求消息不可达时, 终端设备要重新启用 HTTP over TCP的方式发起重定向请求。
在本发明的一个实施例中, 终端设备接收所述路由服务器返回的响应, 包 括: 对所述路由服务器返回的响应进行识别, 所述响应中包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;
根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。
Connection-Type = "TCPTUDP"的形式来实现。
如图 2所示, 本发明实施例以终端设备设备的角度提出一种内容分发网络 中的终端设备, 包括如下功能模块:
第一发送模块 21, 用于向内容分发网络中的路由服务器发送 HTTP重定向 请求; 该请求是基于 UDP方式发送的;
响应接收模块 22, 用于接收所述路由服务器返回的响应, 该响应中包括重 定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指 示;
第二发送模块 23, 用于根据所述响应中指示的方式, 向所述目的服务器发 起 HTTP请求。
可选的, 在本发明的一个实施例中, 所述终端设备还包括:
配置单元 24, 用于设置 UDP方式为默认发送方式发起所述重定向请求, 或者, 对于配置的有特定后缀的域名, 设置优先以基于 UDP方式发起所述重定 向清求;
可选的, 在本发明的一个实施例中, 所述第一发送模块 21还用于: 在以所述配置单元配置的发送方式发起所述重定向请求后, 在确定所述重 定向请求超时或者路由服务器不支持 UDP方式的情况下, 改用基于 TCP方式 发起所述重定向请求。
可选的, 在本发明的一个实施例中, 所述第二发送模块 23可以包括: 识别单元 231, 用于对所述路由服务器返回的响应进行识别, 所述响应中 包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述 方式包括 TCP或者 UDP;
发送单元 232, 用于根据所述扩展字段指示的方式向所述目的服务器发起 所述 HTTP请求。
在本发明的一个实施例中, 本实施例中所述终端设备包括同 CDN网络交 互的用户端或 CDN网络的内部设备; 所述路由服务器包括 CDN网络中的路由 服务器设备; 所述目的服务器包括 CDN网络中最终能够提供内容的设备。
需要说明的是, 图 2所示的装置实施例中各功能模块实现的功能与图 1实施 例中各步骤涉及的技术方案对应, 其中, 包含了相同或相应的技术特征, 在此 不作——赘述, 请参见图 1的方法实施例中的相关描述。
如图 3所示, 本发明实施例以 CDN网络中路由服务器的角度提出一种内容 分发网络中实现超文本传输协议重定向的方法, 技术方案包括:
步骤 301 : 路由服务器接收终端设备发送的 HTTP重定向请求; 该请求是 终端设备基于 U DP用户数据包协议方式发送的;
步骤 302: 路由服务器针对所述重定向请求向所述终端设备返回响应, 该 响应中包括重定向的目的服务器的地址以及向所述目的服务器发起 HTTP请求 所用的方式指示。
可选的, 在本发明的一个实施例中, 步骤 301进一步包括:
接收所述终端设备设置的默认方式为 UDP方式发起的所述重定向请求, 或者, 接收所述终端设备对于配置有特定后缀的域名, 设置的优先以基于 UDP 方式发起的所述重定向请求;
对所述 UDP方式发起的重定向请求进行判断, 路由服务器在确定自身不 支持所述 UDP方式发起的请求时, 向所述终端设备发送回应或者不做回应; 在所述终端设备确定所述重定向请求超时或者路由服务器不支持 UDP方 式的情况下, 接收所述终端设备以 TCP方式发起所述重定向请求。
需要说明的是, 在本发明实施例中终端设备如何设定优先以 UDP的方式 发起重定向请求的过程, 在图 1的方法实施例中已经做出相关描述, 在此不作 详述。
在本发明的一个实施例中, 步骤 302中向终端设备返回所述响应具体包 括:
通过在向所述终端设备返回的响应中增加一个扩展字段来携带所述指示, 所述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方 式, 所述方式包括 TCP或者 UDP;
具体的说, 在本发明实施例的实现过程中, 可以将扩展字段设置成: X- Connection-Type = "TCPTUDP"的方式, 来指示后续所述终端设备向要重定 向的目的服务器发起的 HTTP链接是用 TCP方式来承载或用 UDP方式来承载。
具体的说, 在响应消息中增加一个扩展字段后的消息样式如下:
HTTP/1.1 302 Found
Content-Length: 153
Expires: Wed, 30 Jun 2010 09:16:41 GMT
Date: Wed, 30 Jun 2010 09:17:41 GMT
Location: http:〃 mxserver-1.cdn.net/runonce3.aspx
Content-Type: text/html; charset=utf-8
Server: Microsoft-I IS/6.0
X-Powered-By: ASP.NET
X-Connection-Type: TCP
X-AspNet-Version: 2.0.50727
Cache-Control: private
通过上述方式, 可以将终端设备后续重定向的 HTTP链接的承载方式通知 终端设备。
如图 4所示, 本发明实施例以 CDN网络中路由服务器的角度, 提出一种内 容分发网络中的路由服务器, 可以与图 2所示的终端设备配合使用, 包括如下 功能模块:
请求接收模块 41, 用于接收终端设备发送的 HTTP重定向请求; 该请求是 终端设备基于 UDP方式发送的;
响应发送模块 42, 用于针对所述重定向请求向所述终端设备返回响应, 该 响应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所 用的方式指示。
在本发明的一个实施例中, 请求接收模块 41进一步包括:
接收单元 411, 用于接收所述终端设备设置的默认方式为 UDP方式发起所 述重定向请求, 或者, 接收所述终端设备对于配置的有特定后缀的域名, 设置 的优先以基于 UDP方式发起所述重定向请求; 请求, 在确定支持所述 UDP方式时, 指示所述响应发送模块向终端设备返回所 述响应; 在确定不支持所述 UDP方式时, 向所述终端设备发送回应或不做回 应; 发送的所述重定向请求时, 接收所述终端设备基于 TCP方式发起 HTTP重定向 请求。
在本发明的一个实施例中, 响应发送模块 42进一步包括:
设定单元 421, 用于在向所述终端设备返回的响应中增加一个扩展字段, 所述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方 式, 所述方式包括 TCP或者 UDP;
响应单元 422, 用于向所述终端设备反馈包含所述扩展字段的响应。
具体的说, 在本发明实施例的实现过程中, 可以将所述扩展字段设置为 X- Connection-Type = "TCPTUDP"的方式, 来指示后续所述终端设备向要重定 向的目的服务器发起的 HTTP链接是用 TCP方式来承载或用 UDP方式来承载。
在本发明的一个实施例中, 本发明涉及的所述终端设备包括同 CDN网络 交互的用户端或 CDN网络的内部设备; 所述路由服务器包括 CDN网络中的路 由服务器设备; 所述目的服务器包括 CDN网络中最终能够提供内容的设备。
图 4所示的装置实施例中各功能模块实现的功能与图 3实施例中各步骤涉及 的技术方案对应, 包含了相同或相应的技术特征, 在此不作——赘述, 请参见 图 3的方法实施例中的相关描述。
如图 5所示, 本发明实施例还提供了一种内容分发网络中实现超文本传输 协议重定向的***, 技术方案包括
如图 2实施例所示的终端设备 51, 用于向路由服务器发送 HTTP重定向请 求; 该请求是基于 UDP方式发送的; 接收所述路由服务器返回的响应, 该响应 中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的 方式指示; 根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求; 如图 4实施例所示的 CDN路由服务器 52, 用于接收所述终端设备发送的所 述重定向请求; 针对所述重定向请求向所述终端设备返回响应, 该响应中包括 终端设备向重定向的目的服务器的地址以及向所述目的服务器发起 HTTP请求 所用的方式指示。
为了更好的理解本发明的技术方案, 下面结合 CDN网络中的两类 HTTP重 定向过程的应用场景进行详细说明。
当本发明实施例的技术方案应用在 UE与路由服务器之间的重定向过程的 应用场景时, 终端设备为与 CDN网络交互的 UE, 路由服务器为 CDN网络中的 路由服务器设备, 需要重定向的目的服务器为最终能够为用户提供内容服务的 边缘服务器, 如图 6所示, 具体流程包括:
步骤 601 : UE点击某网址链接, 该链接最终通过 DNS服务器将其指向了 CDN网络中的路由服务器, UE向路由服务器优先以 HTTP over UDP方式发起 HTTP GET重定向请求;
步骤 602: 路由服务器收到 HTTP GET请求后, 根据自身的路由策略选择 一个边缘服务器, 并反馈 302消息给 UE, 该 302消息中指定了重定向的边缘服 务器的 URL地址, 以及用于指示后续重定向的 HTTP链接是用 TCP来承载还是 用 UDP来承载的一个扩展字段 header field;
该字段的具体形式为: X-Connection-Type = "TCPTUDP";
增加扩展字段后的 302消息样式为:
HTTP/1.1 302 Found
Content-Length: 153
Expires: Wed, 30 Jun 2010 09:16:41 GMT
Date: Wed, 30 Jun 2010 09:17:41 GMT
Location: http:〃 mxserver-1.cdn.net/runonce3.aspx
Content-Type: text/html; charset=utf-8
Server: Microsoft-I IS/6.0
X-Powered-By: ASP.NET
X-Connection-Type: TCP
X-AspNet-Version: 2.0.50727
Cache-Control: private 具体的说, 路由服务器收到 HTTP GET请求后根据自身的路由策略选择一 个边缘服务器的过程, 路由策略包括:
路由服务器根据 UE的位置、 请求的内容、 CDN网络中各边缘服务器的负 载状态等情况选择一个最佳的边缘服务器向 UE提供内容。
步骤 603: UE收到路由服务器返回的 302消息, 向消息中的 Location指定 的地址发起 HTTP请求, 并根据 X-Connection-Type中的指示来选择 TCP连接 发起请求。 需要说明的是, UE在基于 UDP协议的方式发起 HTTP重定向请求时, UE 如果等待 HTTP请求超时或者发现消息不可达, 则 UE可重新启用 HTTP over TCP来发送请求。 具体的超时机制可根据配置来制定, 只要能及时判断出 HTTP请求是否异常即可, 制定方式本发明实施例不作具体限定。
当本发明实施例的技术方案应用在 CDN内部设备与路由服务器之间的 HTTP重定向过程的应用场景时, 终端设备为 CDN网络中的其它网元(包括边 缘服务器、 中心存储、 网络 /业务管理服务器) , 路由服务器为 CDN网络中的 路由服务器设备, 需要重定向的目的服务器为最终能够提供内容的边缘服务 器, 如图 7所示, 具体流程包括:
步骤 701 : CDN网元向路由服务器优先以 HTTP over UDP方式发起 HTTP 重定向请求;
CDN网元如何设置优先以 UDP的方式发送 HTTP重定向请求的方法与图 7 实施例中 UE怎样优先设定 UDP方式发送 HTTP重定向请求的过程相同;
步骤 702: 路由服务器收到 HTTP over UDP的请求, 根据请求的内容、 CDN网络中各边缘服务器的负载状态等情况选择一个最佳的边缘服务器向 CDN网元提供内容, 并在向 CDN网元返回的响应消息中携带该边缘服务器的 地址, 以及一个用于指示后续重定向的 HTTP链接是用 TCP来承载还是用 UDP 来承载的一个扩展字段 header field;
步骤 703: CDN网元根据 302消息中的重定向地址发起 HTTP请求。
需要说明的是, 当 CDN网元等待路由服务器的 HTTP响应超时, 则重新以 HTTP over TCP方式发起请求。
需要说明的是, 图 7所示技术方案中 CDN网络中的其它网元(包括边缘服 务器、 中心存储、 网络 /业务管理服务器) 与路由服务器重定向交互过程, 在 实际应用场景中经常涉及到, 比如边缘服务器收到 UE的请求后, 发现没有緩 存此 UE的内容, 此时边缘服务器会向路由服务器发送 HTTP请求用户获得最佳 的中心存储服务器的地址, 为用户提供内容服务。 综上所述, 本发明实施例提供的一种内容分发网络中实现超文本传输协议 重定向的方法、 装置及***, 从技术角度来说, 发起重定向的请求方通过以
UDP的方式发起重定向请求, 以两条消息的交互过程替代了现有基于 TCP发 起重定向需要有 10条消息的交互过程, 提高了 CDN网络中重定向过程的速 度; 此外, 从用户角度来说, 提高了 CDN响应用户请求的时间, 缩短了用户 从点击请求到获取到开始的内容的延迟。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成, 所述的程序可存储于一计算 机可读取存储介质中, 该程序在执行时, 可包括如上述各方法的实施例的流 程。 其中, 所述的存储介质可为磁碟、 光盘、 只读存储记忆体 ( Read-〇nly Memory, ROM ) 或随机存者 i己忆体 ( Random Access Memory, RAM ) 等。
以上所述, 仅为本发明较佳的具体实施方式, 但本发明的保护范围并不局 限于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到的变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应该以权利要求的保护范围为准。

Claims

权利 要求 书
1、 一种内容分发网络中请求超文本传输协议重定向的方法, 其特征在 于, 包括:
向内容分发网络 CDN中的路由服务器发送超文本传输协议 HTTP重定向请 求; 该请求是基于用户数据包协议 UDP方式发送的;
接收所述路由服务器返回的响应, 该响应中包括重定向的目的服务器地址 以及向所述目的服务器发起 HTTP请求所用的方式指示;
根据所述响应中指示的方式, 向所述目的服务器发起 HTTP请求。
2、 根据权利要求 1所述的方法, 其特征在于, 所述方法还包括: 设置 UDP方式为默认发送方式发起所述重定向请求, 或者, 对于配置的 有特定后缀的域名, 设置优先基于 UDP方式发起所述重定向请求。
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: 在确定所述重定向请求超时或路由服务器不支持 UDP方式的情况下, 改 用基于传输控制协议 TCP方式发起所述重定向请求。
4、 根据权利要求 1或 3所述的方法, 其特征在于, 进一步包括:
对所述路由服务器返回的响应进行识别, 所述响应中包括一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;
根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。
5、 一种内容分发网络中的终端设备, 其特征在于, 包括:
第一发送模块, 用于向内容分发网络 CDN中的路由服务器发送 HTTP重定 向请求; 该请求是基于 UDP方式发送的;
响应接收模块, 用于接收所述路由服务器返回的响应, 该响应中包括重定 向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 第二发送模块, 用于根据所述响应中指示的方式, 向所述目的服务器发起
HTTP请求。
6、 根据权利要求 5所述的终端设备, 其特征在于, 所述终端设备还包括: 配置模块, 用于设置 UDP方式为默认发送方式发起所述重定向请求, 或 者, 对于配置的有特定后缀的域名, 设置优先以基于 UDP方式发起所述重定向 请求。
7、 根据权利要求 6所述的终端设备, 其特征在于, 所述第一发送模块还用 于:
在以所述配置单元配置的发送方式发起所述重定向请求后, 在确定所述重 定向请求超时或者路由服务器不支持 UDP方式的情况下, 改用基于 TCP方式 发起所述重定向请求。
8、 根据权利要求 5或 7所述的终端设备, 其特征在于, 所述第二发送模块 包括:
识别单元, 用于对所述路由服务器返回的响应进行识别, 所述响应中包括 一个扩展字段, 所述扩展字段用于指示发起 HTTP请求所用的方式, 所述方式 包括 TCP或者 UDP;
发送单元, 用于根据所述扩展字段指示的方式向所述目的服务器发起所述 HTTP请求。
9、 根据权利要求 5至 7中任一所述的终端设备, 其特征在于, 所述终端设 备包括同 CDN网络交互的用户端或 CDN网络的内部设备; 所述路由服务器包 括 CDN网络中的路由服务器设备; 所述目的服务器包括 CDN网络中最终能够 提供内容的设备。
10、 一种内容分发网络中的 CDN路由服务器, 其特征在于, 包括: 请求接收模块, 用于接收终端设备发送的 HTTP重定向请求; 该请求是终 端设备基于 UDP方式发送的;
响应发送模块, 用于针对所述重定向请求向所述终端设备返回响应, 该响 应中包括重定向的目的服务器地址以及向所述目的服务器发起 HTTP请求所用 的方式指示。
11、 根据权利要求 10所述的 CDN路由服务器, 其特征在于, 请求接收模 块包括:
接收单元, 用于接收所述终端设备设置的默认方式为 UDP方式发起所述 重定向请求, 或者, 接收所述终端设备对于配置的有特定后缀的域名, 设置的 优先以基于 UDP方式发起所述重定向请求; 求, 在确定支持所述 UDP方式时, 指示所述响应发送模块向终端设备返回所述 响应; 在确定不支持所述 UDP方式时, 向所述终端设备发送回应或不做回应; 送的所述重定向请求时, 接收所述终端设备基于 TCP方式发起 HTTP重定向请 求。
12、 根据权利要求 10或 11所述的 CDN路由服务器, 其特征在于, 响应发 送模块, 包括:
设定单元, 用于在向所述终端设备返回的响应中增加一个扩展字段, , 所 述扩展字段用于指示所述终端设备向目的服务器发起 HTTP请求所用的方式, 所述方式包括 TCP或者 UDP;
响应单元, 用于向所述终端设备反馈包含所述扩展字段的响应。
13、 根据权利要求 10或 11所述的路由服务器, 其特征在于, 所述终端设 备包括同 CDN网络交互的用户端或 CDN网络的内部设备; 所述路由服务器包 括 CDN网络中的路由服务器设备; 所述目的服务器包括 CDN网络中最终能够 提供内容的设备。
14、 一种内容分发网络中实现超文本传输协议重定向的***, 其特征在 于, 包括
终端设备, 用于向路由服务器发送 HTTP重定向请求; 该请求是基于 UDP 方式发送的; 接收所述路由服务器返回的响应, 该响应中包括重定向的目的服 务器地址以及向所述目的服务器发起 HTTP请求所用的方式指示; 根据所述响 应中指示的方式, 向所述目的服务器发起 HTTP请求;
路由服务器, 用于接收所述终端设备发送的所述重定向请求; 针对所述重 定向请求向所述终端设备返回响应, 该响应中包括终端设备向重定向的目的服 务器的地址以及向所述目的服务器发起 HTTP请求所用的方式指示。
PCT/CN2011/074490 2010-11-26 2011-05-23 一种内容分发网络中实现超文本传输协议重定向的方法、装置及*** WO2011137809A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201010569776.7 2010-11-26
CN2010105697767A CN102143204A (zh) 2010-11-26 2010-11-26 一种内容分发网络中实现超文本传输协议重定向的方法、装置及***

Publications (1)

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

Family

ID=44410424

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/074490 WO2011137809A1 (zh) 2010-11-26 2011-05-23 一种内容分发网络中实现超文本传输协议重定向的方法、装置及***

Country Status (2)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018098820A1 (zh) * 2016-12-02 2018-06-07 深圳前海达闼云端智能科技有限公司 数据发送、接收的方法、装置、服务器及计算机程序产品

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013078687A1 (zh) 2011-12-02 2013-06-06 华为技术有限公司 一种内容分发网络路由方法、***和用户终端
CN102917076B (zh) * 2012-11-16 2016-04-13 网宿科技股份有限公司 基于冗余编码的http报文传输方法
CN103051976B (zh) * 2013-01-22 2016-02-10 中兴通讯股份有限公司 一种cdn分发hls内容方法、***及设备
EP3054650A4 (en) * 2013-10-28 2016-10-12 Huawei Tech Co Ltd METHOD, DEVICE AND SYSTEM FOR RETRIEVING A DATA SERVICE PROXY
CN111163133B (zh) * 2015-08-28 2022-03-11 华为技术有限公司 网络***和网络通信的方法
US10362069B2 (en) * 2015-12-03 2019-07-23 Microsoft Technology Licensing, Llc Protocol fallback
CN105872028B (zh) * 2016-03-25 2019-04-26 努比亚技术有限公司 服务端、客户端及访问策略管理方法
CN105897767A (zh) * 2016-06-16 2016-08-24 乐视控股(北京)有限公司 调度方法、调度响应方法及设备和***
CN106453123A (zh) * 2016-09-30 2017-02-22 广州视睿电子科技有限公司 一种跨地区业务处理的方法和装置
CN108270829B (zh) * 2016-12-30 2021-08-03 阿里巴巴集团控股有限公司 资源分发处理方法及装置
CN108600281B (zh) * 2017-03-16 2021-12-31 杭州海康威视数字技术股份有限公司 一种云存储***、媒体数据存储方法及***
FR3064437A1 (fr) * 2017-03-24 2018-09-28 Orange Procede de recommandation d'une pile de communication
CN107426228A (zh) * 2017-08-02 2017-12-01 上海斐讯数据通信技术有限公司 一种基于udp传输的应用程序认证方法及***
CN109561058A (zh) * 2017-09-27 2019-04-02 中兴通讯股份有限公司 一种基于udp协议的媒体服务器重定向方法、装置及***
CN109818905B (zh) * 2017-11-21 2022-06-03 ***通信有限公司研究院 一种传输层协议适配的方法、网元设备及***
CN114785778B (zh) * 2022-03-10 2023-09-01 聚好看科技股份有限公司 网关设备和内容分发方法

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551569A (zh) * 2003-04-08 2004-12-01 Adv通讯公司 网络传输多媒体数据的方法
US20060095573A1 (en) * 2004-11-01 2006-05-04 Microsoft Corporation Delayed HTTP response
CN101640684A (zh) * 2009-08-21 2010-02-03 中国电信股份有限公司 内容分发方法、网络***、gslb设备和域名服务器

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101808118A (zh) * 2010-03-02 2010-08-18 浪潮(北京)电子信息产业有限公司 服务器访问方法、装置和***

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1551569A (zh) * 2003-04-08 2004-12-01 Adv通讯公司 网络传输多媒体数据的方法
US20060095573A1 (en) * 2004-11-01 2006-05-04 Microsoft Corporation Delayed HTTP response
CN101640684A (zh) * 2009-08-21 2010-02-03 中国电信股份有限公司 内容分发方法、网络***、gslb设备和域名服务器

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 (zh) * 2016-12-02 2018-06-07 深圳前海达闼云端智能科技有限公司 数据发送、接收的方法、装置、服务器及计算机程序产品

Also Published As

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

Similar Documents

Publication Publication Date Title
WO2011137809A1 (zh) 一种内容分发网络中实现超文本传输协议重定向的方法、装置及***
CN104429037B8 (zh) 用于连接到通信设备的方法、设备及***
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 (fr) Procede permettant d'etablir une connexion p2p
KR102132266B1 (ko) 데이터 스트리밍에 대한 보조의 노드 타입 기반 제어
WO2013044671A1 (zh) 访问互联网的方法、终端以及存储介质
WO2011017939A1 (zh) 一种业务实现方法及业务***
JP5135421B2 (ja) ページモードメッセージング
WO2007068209A1 (fr) Procede, systeme et dispositif d'envoi de messages instantanes ims
CN107835257B (zh) 一种会话管理方法和装置
US9210142B2 (en) Method for providing internet services to a telephone user
WO2011160587A1 (zh) 一种双栈终端连接网络的方法及***
JP2019525578A (ja) データグラムベースのトランスポート層を介したカプセル化メディアトラフィックの効率的転送
JP2008078878A (ja) セッション制御システム、セッション代行装置、通信方法、およびプログラム
WO2012072045A1 (zh) 一种cdn网络中的数据传输方法、网络节点及***
US7564848B2 (en) Method for the establishing of connections in a communication system
WO2013154473A1 (en) Method for optimising downloading of data
JP5797591B2 (ja) 中継装置
TW201141163A (en) Quality parameters negotiation by specific URI
WO2013182030A1 (zh) 一种用于请求资源的方法、设备及***
JP2008219723A (ja) Sipサービスシステム、およびそれに用いる装置、方法並びにプログラム
JP4245986B2 (ja) ネットワークシステム、該ネットワークシステムにおける端末切替時のデータ・ダウンロード継続方法及びそのプログラム
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