[go: up one dir, main page]

CN102148752B - Routing implementing method based on content distribution network and related equipment and system - Google Patents

Routing implementing method based on content distribution network and related equipment and system Download PDF

Info

Publication number
CN102148752B
CN102148752B CN201010600701.0A CN201010600701A CN102148752B CN 102148752 B CN102148752 B CN 102148752B CN 201010600701 A CN201010600701 A CN 201010600701A CN 102148752 B CN102148752 B CN 102148752B
Authority
CN
China
Prior art keywords
server
dns
edge server
routing
edge
Prior art date
Legal status (The legal status 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 status listed.)
Active
Application number
CN201010600701.0A
Other languages
Chinese (zh)
Other versions
CN102148752A (en
Inventor
王敬
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201010600701.0A priority Critical patent/CN102148752B/en
Publication of CN102148752A publication Critical patent/CN102148752A/en
Priority to PCT/CN2011/083841 priority patent/WO2012083800A1/en
Application granted granted Critical
Publication of CN102148752B publication Critical patent/CN102148752B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • 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/60Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources
    • H04L67/63Routing a service request depending on the request content or context

Landscapes

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

Abstract

本发明实施例涉及内容分发网络领域,公开了一种基于内容分发网络的路由实现方法及相关设备、系统。该方法包括:路由服务器接收DNS服务器发送的DNS请求消息;根据该DNS服务器的IP地址,从预先建立的动态路由表中确定出到该DNS服务器的时延最短的边缘服务器群,该动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至该DNS服务器,使该DNS服务器将选取的边缘服务器的IP地址发送至用户终端。本发明实施例可以快速、准确地选择到用户时延最短的边缘服务器群来为用户提供服务,提升CDN服务质量。

Figure 201010600701

The embodiment of the present invention relates to the field of content distribution network, and discloses a routing implementation method based on content distribution network and related equipment and system. The method includes: the routing server receives the DNS request message sent by the DNS server; according to the IP address of the DNS server, the edge server group with the shortest delay to the DNS server is determined from the pre-established dynamic routing table, and the dynamic routing table It is used to record the time delay from each edge server group to each DNS server; select any edge server from the determined edge server group, and send the IP address of the selected edge server to the DNS server through a DNS response message, so that The DNS server sends the selected IP address of the edge server to the user terminal. The embodiment of the present invention can quickly and accurately select the edge server group with the shortest time delay for users to provide services for users and improve the service quality of CDN.

Figure 201010600701

Description

基于内容分发网络的路由实现方法及相关设备、系统Content distribution network-based routing implementation method and related equipment and system

技术领域 technical field

本发明涉及内容分发网络领域,具体涉及一种基于内容分发网络的路由实现方法及相关设备、系统。The present invention relates to the field of content distribution network, in particular to a content distribution network-based routing implementation method and related equipment and systems.

背景技术 Background technique

内容分发网络(Content Delivery Network,CDN)是一种新型的网络构建方式,其特点是采用分布式缓存技术,将视频、音频、图片以及文档等网络内容发布到最接近用户的网络“边缘”,就近为用户提供服务,可以极大地提高用户访问网络的响应速度以及服务质量,而且可以节约网络带宽资源。Content Delivery Network (Content Delivery Network, CDN) is a new type of network construction method, which is characterized by the use of distributed caching technology to publish network content such as video, audio, pictures, and documents to the "edge" of the network closest to the user. Providing users with nearby services can greatly improve the response speed and service quality of users accessing the network, and can save network bandwidth resources.

在CDN中,一个重要功能就是为用户实现路由,即CDN根据用户的请求位置来选择出到用户时延最短的边缘服务器群为该用户提供服务,这一个重要功能是由CDN中的路由服务器来完成的。现有技术中,路由服务器可以采用域名管理系统(Domain Name System,DNS)路由方式为用户实现路由,即路由服务器可以根据用户所在的DNS服务器的网际协议(InternetProtocol,IP)地址,选择到该DNS服务器时延最短的边缘服务器集群来为用户提供服务。In the CDN, an important function is to implement routing for the user, that is, the CDN selects the edge server group with the shortest delay to the user according to the location of the user's request to provide services for the user. This important function is performed by the routing server in the CDN. Completed. In the prior art, the routing server can adopt the domain name management system (Domain Name System, DNS) routing method to implement routing for the user, that is, the routing server can select the DNS server according to the Internet Protocol (Internet Protocol, IP) address of the DNS server where the user is located. The edge server cluster with the shortest server latency provides services to users.

在上述DNS路由方式中,CDN采用静态配置方式预先配置好各个边缘服务器集群和DNS服务器的时延关系。其中,在静态配置方式下可能会出现以下问题:一、如果某一DNS服务器与最接近的边缘服务器集群之间的路由中断了,路由服务器是无法通过静态配置数据来获知的,路由服务器若仍然选择此边缘服务器集群为用户提供服务,会造成用户无法访问CDN;二、CDN在网络上提供内容加速时,由于各个运营商都有自己的DNS服务器,CND无法获悉所有的DNS服务器的IP地址并预先配置到CDN中;三、不同边缘服务器集群到同一DNS服务器集群的消息时延会随着网络发生变化,静态配置方式无法准确地选择出到用户时延最短的边缘服务器集群来为用户提供服务,无法保证CDN服务质量。In the above-mentioned DNS routing method, the CDN adopts a static configuration method to pre-configure the delay relationship between each edge server cluster and the DNS server. Among them, the following problems may occur in the static configuration mode: 1. If the route between a certain DNS server and the closest edge server cluster is interrupted, the routing server cannot be informed through the static configuration data. Choosing this edge server cluster to provide services to users will cause users to be unable to access the CDN; 2. When CDN provides content acceleration on the network, since each operator has its own DNS server, CND cannot learn the IP addresses of all DNS servers and Configured in the CDN; 3. The message delay from different edge server clusters to the same DNS server cluster will change with the network, and the static configuration method cannot accurately select the edge server cluster with the shortest delay to provide services for users. CDN service quality cannot be guaranteed.

发明内容 Contents of the invention

针对上述问题,本发明实施例提供了一种基于内容分发网络的路由实现方法及相关设备、系统,用于快速、准确地选择出到用户时延最短的边缘服务器群来为用户提供服务,提升CDN的服务质量。In view of the above problems, the embodiment of the present invention provides a content distribution network-based routing implementation method and related equipment and systems, which are used to quickly and accurately select the edge server group with the shortest delay to the user to provide services for the user, and improve CDN service quality.

其中,一种基于内容分发网络的路由实现方法,包括:Among them, a routing implementation method based on content distribution network, including:

路由服务器接收域名管理系统DNS服务器发送的DNS请求消息;The routing server receives the DNS request message sent by the DNS server of the domain name management system;

所述路由服务器根据所述DNS服务器的IP地址,从预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;The routing server determines the edge server group with the shortest delay to the DNS server from the pre-established dynamic routing table according to the IP address of the DNS server; the dynamic routing table is used to record the edge server group of each edge server group The delay to each DNS server;

所述路由服务器从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器,以使所述DNS服务器将所述选取的边缘服务器的IP地址发送至用户终端。The routing server selects any edge server from the determined edge server group, and sends the IP address of the selected edge server to the DNS server through a DNS response message, so that the DNS server sends the selected edge server The IP address is sent to the user terminal.

相应地,一种获取时延的方法,包括:Correspondingly, a method for obtaining time delay includes:

边缘服务器接收路由服务器发送的IP探测命令,所述IP探测命令携带被探测的域名管理系统DNS服务器的IP地址;The edge server receives the IP detection command sent by the routing server, and the IP detection command carries the IP address of the detected domain name management system DNS server;

所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器;The edge server sends a delay detection message to the detected DNS server according to the IP address of the detected DNS server;

所述边缘服务器记录到所述被探测的DNS服务器的时延大小;The edge server records the time delay to the detected DNS server;

所述边缘服务器将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The edge server sends the delay and the group ID of the edge server group to which the edge server belongs as an IP detection result to the routing server.

相应地,一种路由服务器,应用于内容分发网络,包括:Correspondingly, a routing server, applied to a content distribution network, includes:

接收单元,用于接收域名管理系统DNS服务器发送的DNS请求消息;The receiving unit is used to receive the DNS request message sent by the DNS server of the domain name management system;

确定单元,用于根据所述DNS服务器的IP地址,从所述预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;A determining unit, configured to determine from the pre-established dynamic routing table the edge server group with the shortest delay to the DNS server according to the IP address of the DNS server; the dynamic routing table is used to record each The delay from the edge server group to each DNS server;

选取单元,用于从所述确定单元确定出的边缘服务器群中选取任意一个边缘服务器;a selection unit, configured to select any one edge server from the group of edge servers determined by the determination unit;

发送单元,用于将所述选取单元选取出的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器,以使所述DNS服务器将所述选取单元选取出的边缘服务器的IP地址发送至用户终端。a sending unit, configured to send the IP address of the edge server selected by the selection unit to the DNS server through a DNS response message, so that the DNS server sends the IP address of the edge server selected by the selection unit to user terminal.

相应地,一种边缘服务器,应用于内容分发网络,包括:Correspondingly, an edge server, applied to a content distribution network, includes:

接收单元,用于接收路由服务器发送的IP探测命令,所述IP探测命令携带被探测的域名管理系统DNS服务器的IP地址;The receiving unit is used to receive the IP detection command sent by the routing server, and the IP detection command carries the IP address of the detected domain name management system DNS server;

第一发送单元,用于根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器;A first sending unit, configured to send a delay detection message to the detected DNS server according to the IP address of the detected DNS server;

记录单元,用于记录所述边缘服务器到所述被探测的DNS服务器的时延大小;a recording unit, configured to record the time delay from the edge server to the detected DNS server;

第二发送单元,用于将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The second sending unit is configured to send the delay and the group number of the edge server group to which the edge server belongs to the routing server as an IP detection result.

相应地,一种基于内容分发网络的路由实现系统,包括:Correspondingly, a routing implementation system based on content distribution network includes:

路由服务器和域名管理系统DNS服务器;Routing server and domain name management system DNS server;

所述路由服务器,用于接收所述DNS服务器发送的DNS请求消息,根据所述DNS服务器的IP地址,从预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;以及从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器;The routing server is configured to receive the DNS request message sent by the DNS server, and determine the edge server group with the shortest delay to the DNS server from a pre-established dynamic routing table according to the IP address of the DNS server ; The dynamic routing table is used to record the delay size of each edge server group to each DNS server; and select any edge server from the determined edge server group, and pass the IP address of the selected edge server through the DNS response message sent to the DNS server;

所述DNS服务器,用于发送DNS请求消息至所述路由服务器,以及接收所述路由服务器通过DNS响应消息发送的所述路由服务器选取出的边缘服务器的IP地址,将所述边缘服务器的IP地址发送至用户终端。The DNS server is configured to send a DNS request message to the routing server, and receive the IP address of the edge server selected by the routing server sent by the routing server through a DNS response message, and set the IP address of the edge server to sent to the user terminal.

本发明实施例中,路由服务器预先建立用于记录每个边缘服务器群到各个DNS服务器的时延大小的动态路由表,在接收到任一个DNS服务器发送的DNS请求消息后,可以根据该DNS服务器的IP地址从预先建立的动态路由表中确定出到该DNS服务器的时延最短的边缘服务器群,并从确定的边缘服务器群中选取任意一个的边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至该DNS服务器,使该DNS服务器将路由服务器选取的边缘服务器的IP地址发送至用户终端,从而实现用户终端到该边缘服务器的路由。本发明实施例中,动态路由表可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the routing server pre-establishes a dynamic routing table for recording the time delay from each edge server group to each DNS server. After receiving the DNS request message sent by any DNS server, it can Determine the edge server group with the shortest delay to the DNS server from the pre-established dynamic routing table, and select any edge server from the determined edge server group, and send the IP address of the selected edge server By sending the DNS response message to the DNS server, the DNS server sends the IP address of the edge server selected by the routing server to the user terminal, thereby implementing routing from the user terminal to the edge server. In the embodiment of the present invention, the dynamic routing table can accurately record the time delay from each edge server group to each DNS server. Compared with the static configuration method in the prior art, the time delay to the user can be quickly and accurately selected. The shortest (that is, the shortest time delay to the DNS server) edge server group provides services for users and improves the service quality of CDN.

附图说明 Description of drawings

为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the following will briefly introduce the accompanying drawings required in the embodiments. Obviously, the accompanying drawings in the following description are only some of the present invention. Embodiments, for those of ordinary skill in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1为现有的一种基于DNS路由方式的路由实现方法的流程示意图;Fig. 1 is a schematic flow diagram of an existing routing implementation method based on DNS routing;

图2为本发明实施例提供的一种基于内容分发网络的路由实现方法的流程示意图;FIG. 2 is a schematic flowchart of a routing implementation method based on a content distribution network provided by an embodiment of the present invention;

图3为本发明实施例提供的一种路由服务器建立动态路由表的方法流程示意图;FIG. 3 is a schematic flowchart of a method for establishing a dynamic routing table by a routing server according to an embodiment of the present invention;

图4为本发明实施例提供的另一种基于内容分发网络的路由实现方法的流程示意图;FIG. 4 is a schematic flowchart of another method for implementing routing based on a content distribution network provided by an embodiment of the present invention;

图5为本发明实施例提供的一种获取时延的方法的流程示意图;FIG. 5 is a schematic flowchart of a method for obtaining time delay provided by an embodiment of the present invention;

图6为本发明实施例提供的一种路由服务器的结构示意图;FIG. 6 is a schematic structural diagram of a routing server provided by an embodiment of the present invention;

图7为本发明实施例提供的另一种路由服务器的结构示意图;FIG. 7 is a schematic structural diagram of another routing server provided by an embodiment of the present invention;

图8为本发明实施例提供的一种边缘服务器的结构示意图;FIG. 8 is a schematic structural diagram of an edge server provided by an embodiment of the present invention;

图9是本发明实施例提供的一种基于内容分发网络的路由实现系统的结构示意图。FIG. 9 is a schematic structural diagram of a content distribution network-based routing implementation system provided by an embodiment of the present invention.

具体实施方式 Detailed ways

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without making creative efforts belong to the protection scope of the present invention.

为了便于理解本发明实施例提供的基于内容分发网络的路由实现方法及相关设备、系统,本发明实施例首先对现有的一种基于DNS路由方式的路由实现方法进行介绍。请参阅图1,图1为现有的一种基于DNS路由方式的路由实现方法的流程示意图。其中,图1所示的路由实现方法可以包括以下步骤:In order to facilitate the understanding of the content distribution network-based routing implementation method and related equipment and systems provided by the embodiments of the present invention, the embodiments of the present invention first introduce an existing routing implementation method based on DNS routing. Please refer to FIG. 1 . FIG. 1 is a schematic flow diagram of an existing routing implementation method based on DNS routing. Wherein, the routing implementation method shown in Figure 1 may include the following steps:

101、用户终端发起对某一个统一资源定位符(Uniform ResourceLocation,URL)指向的内容的访问时,用户终端的桌面系统将发送DNS请求消息到用户终端所在的本地DNS服务器;101. When the user terminal initiates access to content pointed to by a certain Uniform Resource Locator (Uniform ResourceLocation, URL), the desktop system of the user terminal will send a DNS request message to the local DNS server where the user terminal is located;

102、本地DNS服务器查询上述DNS请求消息中携带的域名的授权DNS服务器,并向授权DNS服务器发送DNS请求消息;102. The local DNS server queries the authorized DNS server of the domain name carried in the DNS request message, and sends the DNS request message to the authorized DNS server;

其中,如果本地DNS服务器无法查询到上述DNS请求消息中携带的域名的授权DNS服务器,则本地DNS服务器采用递归的方式,将上述DNS请求消息发送至其上级DNS服务器,由上级DNS服务器查询到上述DNS请求消息中携带的域名的授权DNS服务器后返回授权DNS服务器的IP地址,本地DNS服务器根据授权DNS服务器的IP地址,向该域名的授权DNS服务器发送DNS请求消息。Wherein, if the local DNS server cannot query the authorized DNS server of the domain name carried in the above-mentioned DNS request message, the local DNS server uses a recursive method to send the above-mentioned DNS request message to its upper-level DNS server, and the upper-level DNS server queries the above-mentioned DNS server. The authorized DNS server of the domain name carried in the DNS request message returns the IP address of the authorized DNS server, and the local DNS server sends a DNS request message to the authorized DNS server of the domain name according to the IP address of the authorized DNS server.

103、授权DNS服务器通过DNS响应消息将CDN的路由服务器的IP地址发送给本地DNS服务器,由本地DNS服务器进行地址解析,获得CDN的路由服务器的IP地址;103. The authorized DNS server sends the IP address of the routing server of the CDN to the local DNS server through the DNS response message, and the local DNS server performs address resolution to obtain the IP address of the routing server of the CDN;

104、本地DNS服务器根据路由服务器的IP地址,向路由服务器发送DNS请求消息,其中,该DNS请求消息中携带本地DNS服务器的IP地址;104. The local DNS server sends a DNS request message to the routing server according to the IP address of the routing server, wherein the DNS request message carries the IP address of the local DNS server;

105、路由服务器根据本地DNS服务器的IP地址,确定出到本地DNS服务器最近的边缘服务器群-1,并基于负载均衡策略从边缘服务器群-1中选择一个负载最小的边缘服务器,并将负载最小的边缘服务器的IP地址通过DNS响应消息返回给本地DNS服务器;105. The routing server determines the edge server group-1 closest to the local DNS server according to the IP address of the local DNS server, and selects an edge server with the least load from the edge server group-1 based on the load balancing strategy, and loads the least The IP address of the edge server is returned to the local DNS server through the DNS response message;

106、本地DNS服务器通过DNS响应消息将上述的负载最小边缘服务器的IP地址返回给用户终端;106. The local DNS server returns the IP address of the aforementioned edge server with the least load to the user terminal through a DNS response message;

107、用户终端根据得到的IP地址向边缘服务器群-1中的负载最小的边缘服务器发起媒体访问请求。107. The user terminal initiates a media access request to the edge server with the smallest load in the edge server group-1 according to the obtained IP address.

上述的路由实现方法中,CDN中预先配置好各个边缘服务器群和本地DNS服务器的IP地址的距离关系,这属于静态配置方法,其不包括如下几个方面:In the above routing implementation method, the distance relationship between each edge server group and the IP address of the local DNS server is pre-configured in the CDN. This is a static configuration method, which does not include the following aspects:

一、如果某一个DNS服务器与到该DNS服务器最近的边缘服务器群的IP路径中断了,路由服务器是无法通过静态配置数据来获悉的,路由服务器可能仍然选择此边缘服务器群为用户提供服务,造成用户无法访问CDN内容的情况。1. If the IP path between a certain DNS server and the edge server group closest to the DNS server is interrupted, the routing server cannot learn about it through static configuration data, and the routing server may still choose this edge server group to provide services for users, resulting in Situations where users cannot access CDN content.

二、CDN在网络上提供内容加速时,由于各个运营商都有自己的DNS服务器,无法把所有DNS服务器地址都获取和预先配置到CDN中。比如,中国电信部署了一套CDN网络,但中国联通、中国移动或者国外的用户访问中国电信的CDN网络时,是通过这些运营商自己的DNS服务器发来DNS请求消息,这些DNS服务器的IP地址就无法获取和配置。2. When the CDN provides content acceleration on the network, since each operator has its own DNS server, it is impossible to obtain and pre-configure all DNS server addresses into the CDN. For example, China Telecom has deployed a CDN network, but when China Unicom, China Mobile or foreign users access China Telecom's CDN network, they send DNS request messages through the DNS servers of these operators. The IP addresses of these DNS servers It cannot be obtained and configured.

三、CDN服务质量无法保证。不同边缘服务器群到同一个DNS服务器的时延大小会随着网络发生变化的,静态配置无法准确地选择出时延最短的边缘服务器群来为用户提供服务。3. CDN service quality cannot be guaranteed. The delay between different edge server groups and the same DNS server will vary with the network, and static configuration cannot accurately select the edge server group with the shortest delay to provide services for users.

针对上述问题,本发明实施例中提供了一种基于内容分发网络的路由实现方法及路由服务器、系统,用于快速、准确地选择出到用户时延最短的边缘服务器群来为用户提供服务,提升CDN的服务质量。以下分别进行详细说明。In view of the above problems, the embodiment of the present invention provides a content distribution network-based routing implementation method, routing server, and system, which are used to quickly and accurately select the edge server group with the shortest delay to the user to provide services for the user. Improve the service quality of CDN. Each will be described in detail below.

实施例一:Embodiment one:

请参阅图2,图2为本发明实施例提供一种基于内容分发网络的路由实现方法的流程示意图。其中,图2所示的路由实现方法可以包括以下步骤:Please refer to FIG. 2 . FIG. 2 is a schematic flowchart of a method for implementing routing based on a content distribution network according to an embodiment of the present invention. Wherein, the routing implementation method shown in Figure 2 may include the following steps:

201、路由服务器接收DNS服务器发送的DNS请求消息;201. The routing server receives the DNS request message sent by the DNS server;

202、路由服务器根据上述DNS服务器的IP地址,从预先建立的动态路由表中确定出到上述DNS服务器的时延最短的边缘服务器群,该动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;202. According to the IP address of the above-mentioned DNS server, the routing server determines the edge server group with the shortest delay to the above-mentioned DNS server from the pre-established dynamic routing table, and the dynamic routing table is used to record each edge server group to each DNS The delay of the server;

203、路由服务器从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至上述DNS服务器,以使上述DNS服务器将路由服务器选取的边缘服务器的IP地址发送至用户终端。203. The routing server selects any edge server from the determined edge server group, and sends the IP address of the selected edge server to the above-mentioned DNS server through a DNS response message, so that the above-mentioned DNS server sends the IP address of the edge server selected by the routing server to The address is sent to the user terminal.

本发明实施例中,路由服务器需要预先建立动态路由表,用于记录每个边缘服务器群到各个DNS服务器的时延大小,或者需要更新用于记录每个边缘服务器群到各个DNS服务器的时延大小的动态路由表。In the embodiment of the present invention, the routing server needs to establish a dynamic routing table in advance, which is used to record the time delay from each edge server group to each DNS server, or needs to be updated to record the time delay from each edge server group to each DNS server The size of the dynamic routing table.

作为一个可选的实施方式,路由服务器预先建立或更新动态路由表的方法可以如图3所示,包括以下步骤:As an optional implementation, the method for the routing server to pre-establish or update the dynamic routing table may be as shown in Figure 3, including the following steps:

301、路由服务器发送IP探测命令给至少一个边缘服务器群。301. The routing server sends an IP detection command to at least one edge server group.

本发明实施例中,路由服务器可以发送IP探测命令给至少一个边缘服务器群中的任一个边缘服务器。In the embodiment of the present invention, the routing server may send an IP detection command to any edge server in at least one edge server group.

其中,一个边缘服务器群是放在一个机房的一个机框中的,因此,路由服务器的IP探测命令可以发送给每一个边缘服务器群中的任一个边缘服务器。Wherein, an edge server group is placed in a machine frame of a computer room, therefore, the IP detection command of the routing server can be sent to any edge server in each edge server group.

可选地,路由服务器可以发送IP探测命令给每一个边缘服务器群中的负载最小的边缘服务器,由每一个边缘服务器群中负载最小的边缘服务器来执行路由器发送的IP探测命令。Optionally, the routing server may send the IP detection command to the edge server with the smallest load in each edge server group, and the edge server with the smallest load in each edge server group executes the IP detection command sent by the router.

302、路由服务器接收上述边缘服务器群中任意一个边缘服务器发送的IP探测结果,其中,该IP探测结果可以包括上述边缘服务器群的群编号以及上述边缘服务器群到被探测的DNS服务器的时延大小。302. The routing server receives the IP detection result sent by any edge server in the above-mentioned edge server group, where the IP detection result may include the group number of the above-mentioned edge server group and the time delay from the above-mentioned edge server group to the detected DNS server .

作为一个可选的实施方式,上述边缘服务器群中的任一个边缘服务器接收到路由服务器发送的IP探测命令之后,可以根据该IP探测命令中携带的被探测的DNS服务器的IP地址,发送DNS消息至被探测的DNS服务器;同时,该边缘服务器(即每一个边缘服务器群中的任一个边缘服务器)还记录从发送DNS消息到接收到被探测的DNS服务器返回响应消息的时延大小;该边缘服务器在记录到时延大小之后,可以将该边缘服务器记录的时延大小以及该边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。As an optional implementation, after any edge server in the above-mentioned edge server group receives the IP detection command sent by the routing server, it can send a DNS message according to the IP address of the detected DNS server carried in the IP detection command to the detected DNS server; at the same time, the edge server (that is, any edge server in each edge server group) also records the time delay from sending the DNS message to receiving the response message returned by the detected DNS server; the edge After recording the delay, the server may send the delay recorded by the edge server and the group ID of the edge server group to which the edge server belongs to the routing server as an IP detection result.

其中,上述的被探测的DNS服务器是路由服务器确定出的DNS服务器,路由服务器需要获悉每一个边缘服务器群到该DNS服务器的时延大小。换句话说,路由服务器需要每一个边缘服务器测量到该DNS服务器的时延大小,因此,该DNS服务器称为被探测的DNS服务器。Wherein, the detected DNS server is the DNS server determined by the routing server, and the routing server needs to know the time delay from each edge server group to the DNS server. In other words, the routing server requires each edge server to measure the delay to the DNS server, so the DNS server is called a probed DNS server.

作为另一个可选的实施方式,上述边缘服务器群中的任一个边缘服务器接收到路由服务器发送的IP探测命令之后,可以根据该IP探测命令中携带的被探测的DNS服务器的IP地址,发送至少二个PING消息至被探测的DNS服务器;同时,该边缘服务器(即每一个边缘服务器群中的任一个边缘服务器)还记录从发送每一个PING消息到接收到被探测的DNS服务器返回响应消息的时延大小,即获得每一个PING消息对应的时延大小;该边缘服务器在获取每一个PING消息对应的时延大小之后,可以将上述至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;该边缘服务器可以将该时延大小平均值以及该边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。其中,边缘服务器发送至少二个PING消息并计算至少二个PING消息对应的时延大小平均值作为该边缘服务器所属的边缘服务器群到被探测的DNS服务器的时延大小,可以获得比较准确的时延大小。As another optional implementation, after any edge server in the above-mentioned edge server group receives the IP detection command sent by the routing server, it can send at least Two PING messages are sent to the detected DNS server; at the same time, the edge server (that is, any edge server in each edge server group) also records the time from sending each PING message to receiving the response message returned by the detected DNS server Delay size, that is, to obtain the delay size corresponding to each PING message; after obtaining the delay size corresponding to each PING message, the edge server can average the delay size corresponding to the above-mentioned at least two PING messages to obtain The average value of delay; the edge server may send the average value of delay and the group ID of the edge server group to which the edge server belongs to the routing server as an IP detection result. Wherein, the edge server sends at least two PING messages and calculates the average value of the time delay corresponding to the at least two PING messages as the time delay from the edge server group to which the edge server belongs to the detected DNS server, so that a more accurate time delay can be obtained. extension size.

本发明实施例中,同一个边缘服务器群是放在一个机房的一个机框中的,因此,同一个边缘服务器群中的每一个边缘服务器到同一个被探测的DNS服务器的时延大小的差别很小(一般微妙),可以忽略不计。所以,每一个边缘服务器群中的任一个边缘服务器到被探测的DNS服务器的时延大小可以认为是该边缘服务器所属的边缘服务器群到被探测的DNS服务器的时延大小。In the embodiment of the present invention, the same edge server group is placed in a machine frame in a computer room, therefore, the difference in the delay between each edge server in the same edge server group and the same detected DNS server Small (generally subtle) and negligible. Therefore, the delay from any edge server in each edge server group to the detected DNS server can be regarded as the delay from the edge server group to which the edge server belongs to the detected DNS server.

303、路由服务器存储上述边缘服务器群到被探测的DNS服务器的时延大小与被探测的DNS服务器的IP地址的对应关系,实现动态路由表的建立或更新。303. The routing server stores the correspondence between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server, so as to realize the establishment or update of a dynamic routing table.

其中,路由服务器存储的上述边缘服务器群到被探测的DNS服务器的时延大小与被探测的DNS服务器的IP地址的对应关系可以看作是上述边缘服务器群到被探测的DNS服务器的路由记录。Wherein, the correspondence between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server stored in the routing server can be regarded as the routing record from the edge server group to the detected DNS server.

其中,路由服务器在接收到每一个边缘服务器群中的任一个边缘服务器(如负载最小的边缘服务器)发送的IP探测结果之后,可以存储每一个边缘服务器群到被探测的DNS服务器的时延大小与被探测的DNS服务器的IP地址的对应关系(即路由记录);其中,多个对应关系(即多个路由记录)可以构成如表1所示的动态路由列表。Wherein, after the routing server receives the IP detection result sent by any edge server (such as the edge server with the least load) in each edge server group, it can store the time delay from each edge server group to the detected DNS server The corresponding relationship (ie routing record) with the IP address of the detected DNS server; where multiple corresponding relationships (ie multiple routing records) can constitute a dynamic routing list as shown in Table 1.

表1路由服务器上的动态路由表Table 1 Dynamic routing table on routing server

Figure BDA0000039983850000091
Figure BDA0000039983850000091

在表1所示的动态路由表中,边缘服务器群-6、边缘服务器群-3以及边缘服务器群-7到IP地址为10.80.158.2的被探测的DNS服务器的时延大小分别为12ms、33ms以及21ms。如表1所示的动态路由表,还相应地记录每一条对应关系(即路由记录)的产生时间,例如,边缘服务器群-12到IP地址为10.80.155.18的被探测的DNS服务器的时延大小为11ms的路由记录的产生时间为2010年10月27日08点10分。In the dynamic routing table shown in Table 1, the delays from edge server group-6, edge server group-3, and edge server group-7 to the detected DNS server with IP address 10.80.158.2 are 12ms and 33ms respectively and 21ms. The dynamic routing table shown in Table 1 also correspondingly records the generation time of each corresponding relationship (ie routing record), for example, the time delay from the edge server group-12 to the detected DNS server whose IP address is 10.80.155.18 The routing record with a size of 11 ms was generated at 08:10 on October 27, 2010.

作为一个可选的实施方式,在执行上述的步骤301之前,路由服务器还可以执行以下步骤:As an optional implementation manner, before performing the above step 301, the routing server may also perform the following steps:

路由服务器从热度统计表中选取发送DNS请求次数达到预设次数值的DNS服务器作为被探测的DNS服务器;和/或,The routing server selects from the heat statistics table the DNS server whose number of sending DNS requests reaches the preset value as the detected DNS server; and/or,

路由服务器从热度统计表中选取发送DNS请求次数占所有DNS请求次数的百分比达到预设百分比值的DNS服务器作为被探测的DNS服务器。The routing server selects the DNS server whose percentage of sending DNS requests to all DNS requests reaches a preset percentage value from the heat statistics table as the detected DNS server.

本发明实施例中,路由服务器在初始化时,上述表1所示的动态路由表中是没有内容的。路由服务器在接收到某一个DNS服务器发送的DNS请求之后,路由服务器查询动态路由表会失败,路由服务器可以将该DNS发送DNS请求的次数,以及该DNS发送的DNS请求次数占所有的DNS请求次数的百分比记录到如表2所示的热度统计表中。In the embodiment of the present invention, when the routing server is initialized, there is no content in the dynamic routing table shown in Table 1 above. After the routing server receives a DNS request sent by a certain DNS server, the routing server will fail to query the dynamic routing table. The number of times the routing server can send DNS requests to the DNS, and the number of DNS requests sent by the DNS accounts for all DNS requests The percentage of is recorded in the heat statistics table shown in Table 2.

表2路由服务器上维护的热度统计表Table 2 The popularity statistics table maintained on the routing server

Figure BDA0000039983850000101
Figure BDA0000039983850000101

如表2所示的热度统计表中,产生时间用于记录每一个DNS服务器对应的DNS请求次数或DNS请求次数所占的百分比最后更新的时间。In the popularity statistics table shown in Table 2, the generation time is used to record the time when the number of DNS requests corresponding to each DNS server or the percentage of the number of DNS requests is last updated.

作为一个可选的实施方式,路由服务器可以定时扫描上述表2所示的热度统计表,当路由服务器扫描发现某一DNS服务器(如IP为10.80.134.3的DNS服务器)发送的DNS请求次数达到预设次数值,和/或发送的DNS请求次数占所有DNS请求次数的百分比达到预设百分比值之后,路由服务器可以选取该DNS服务器(如IP为10.80.134.3的DNS服务器)作为被探测的DNS服务器,并执行上述的步骤301,启动对被探测的DNS服务器的IP探测过程。As an optional implementation, the routing server can regularly scan the heat statistics table shown in Table 2 above. When the routing server scans and finds that the number of DNS requests sent by a certain DNS server (such as a DNS server with an IP of 10.80.134.3) reaches the predetermined After the number is set, and/or the percentage of the number of DNS requests sent to all DNS requests reaches the preset percentage value, the routing server can select the DNS server (such as the DNS server with an IP of 10.80.134.3) as the DNS server to be detected , and execute the above step 301 to start the IP detection process of the detected DNS server.

作为另一个可选的实施方式,在执行上述的步骤301之前,路由服务器还可以执行以下步骤:As another optional implementation manner, before performing the above step 301, the routing server may also perform the following steps:

路由服务器判断出上述表1中的某一条对应关系(即路由记录)的存储时间达到预设时间,路由服务器将该条对应关系(即路由记录)中的DSN服务器作为再次被探测的DNS服务器,并执行上述的步骤301,启动对被探测的DNS服务器的IP探测过程。The routing server judges that the storage time of a certain corresponding relationship (i.e. routing record) in the above table 1 reaches the preset time, and the routing server regards the DSN server in the corresponding relationship (i.e. routing record) as the DNS server to be detected again, And execute the above step 301 to start the IP detection process of the detected DNS server.

其中,上述步骤201中DNS服务器发送的DNS请求消息是通过IP协议来发送的,因此,路由服务器在接收到DNS服务器发送的DNS请求消息之后,可以从IP消息头中源IP字段中解析出DNS服务器的IP地址。Wherein, the DNS request message sent by the DNS server in the above step 201 is sent through the IP protocol. Therefore, after receiving the DNS request message sent by the DNS server, the routing server can resolve the DNS request message from the source IP field in the IP message header. The IP address of the server.

举例来说,若上述步骤201中发送DNS请求消息的DNS服务器的IP地址为10.80.158.2,则相应地在步骤202中路由服务器根据该IP地址可以从表1所示的动态路由表中确定出到IP地址为10.80.158.2的DNS服务器的时延最短的边缘服务器群为边缘服务器群-3。For example, if the IP address of the DNS server sending the DNS request message in step 201 is 10.80.158.2, then correspondingly in step 202, the routing server can determine from the dynamic routing table shown in Table 1 according to the IP address The edge server group with the shortest delay to the DNS server with the IP address 10.80.158.2 is the edge server group-3.

上述步骤203中,路由服务器可以根据负载均衡策略,从确定的边缘服务器群中选取负载最小的边缘服务器,并将负载最小的边缘服务器的IP地址通过DNS请求响应消息发送至该DNS服务器。例如,如果上述步骤202中确定出的边缘服务器群为边缘服务器群-3,则路由服务器可以将边缘服务器群-3中负载最小的边缘服务器的IP地址通过DNS请求响应消息发送至DNS服务器。In the above step 203, the routing server may select the edge server with the least load from the determined edge server group according to the load balancing policy, and send the IP address of the edge server with the least load to the DNS server through a DNS request response message. For example, if the edge server group determined in step 202 is edge server group-3, the routing server may send the IP address of the edge server with the least load in the edge server group-3 to the DNS server through a DNS request response message.

本发明实施例中,路由服务器可以识别出与其连接的每一个边缘服务器群中的负载最小的边缘服务器。例如,路由服务器可以通过每一个边缘服务器群对应的负载监测表实时监测每一个边缘服务器群中的每一个边缘服务器的负载大小,这是本领域技术人员公知的常识,本发明实施例此处不作赘述。In the embodiment of the present invention, the routing server can identify the edge server with the least load in each edge server group connected to it. For example, the routing server can monitor the load of each edge server in each edge server group in real time through the load monitoring table corresponding to each edge server group. repeat.

本发明实施例中,网络环境的变化可能会导致边缘服务器群到某一DNS服务器的时延大小也会发生变化,因此,表1所示的动态路由表中的对应关系(即路由记录)需要定时更新。即当表1所示的动态路由表中的某一条对应关系(即路由记录)的存储时间超过预设时间后,路由服务器可以根据该对应关系(即路由记录)中的DNS服务器的IP地址,重新发起对该DNS服务器的时延探测,探测过程同图3所示。In the embodiment of the present invention, changes in the network environment may cause the time delay from the edge server group to a certain DNS server to also change. Therefore, the corresponding relationship (ie, routing records) in the dynamic routing table shown in Table 1 needs to be Update regularly. That is, when the storage time of a certain corresponding relationship (i.e. routing record) in the dynamic routing table shown in Table 1 exceeds the preset time, the routing server can, according to the IP address of the DNS server in the corresponding relationship (i.e. routing record), Re-initiate the delay detection of the DNS server, the detection process is the same as shown in Figure 3.

可选地,路由服务器在陆续收到多个边缘服务器群发来的IP探测结果后,路由服务器每收到一条IP探测结果,可以判断是否需要更新到当前存储的N条对应关系(即路由记录)中。例如,当路由服务器收到某一IP探测结果后,可以将该IP探测结果与动态路由表中已经存储的N条对应关系(即路由记录)进行比较,如果该IP探测结果中的时延大于或等于上述N条对应关系(即路由记录)中的最大时延,则上述N条对应关系(即路由记录)作为更新后的结果;如果该IP探测结果中的时延小于上述N条对应关系(即路由记录)的最大时延,则删除上述N条对应关系(即路由记录)中最大时延对应的对应关系(即路由记录),将剩余的N-1条对应关系(即路由记录)以及该IP探测结果作为更新后的结果。Optionally, after the routing server successively receives IP detection results sent by multiple edge servers, each time the routing server receives an IP detection result, it can determine whether to update the currently stored N corresponding relationships (ie routing records) middle. For example, after the routing server receives a certain IP detection result, it can compare the IP detection result with the N correspondences (ie routing records) stored in the dynamic routing table, if the delay in the IP detection result is greater than or equal to the maximum delay in the above N correspondences (ie routing records), then the above N correspondences (ie routing records) are used as the updated result; if the delay in the IP detection result is less than the above N correspondences (i.e. routing records), then delete the correspondence (i.e. routing records) corresponding to the maximum delay in the above N correspondences (i.e. routing records), and use the remaining N-1 correspondences (i.e. routing records) And the IP detection result is used as the updated result.

本发明实施例中,路由服务器预先建立用于记录每个边缘服务器群到各个DNS服务器的时延大小的动态路由表,在接收到任一个DNS服务器发送的DNS请求消息之后,从上述动态路由表中确定出到该DNS服务器的时延最短的边缘服务器群,并从确定的边缘服务器群中选取任意一个边缘服务器(如负载最小的边缘服务器),并将选取的边缘服务器的IP地址通过DNS请求响应消息发送至该DNS服务器,使该DNS服务器将选取的边缘服务器的IP地址发送至用户终端,从而实现用户终端到边缘服务器的路由。本发明实施例中,动态路由表可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the routing server pre-establishes a dynamic routing table for recording the time delay from each edge server group to each DNS server. After receiving the DNS request message sent by any DNS server, the dynamic routing table Determine the edge server group with the shortest delay to the DNS server, and select any edge server (such as the edge server with the smallest load) from the determined edge server group, and send the IP address of the selected edge server through DNS request The response message is sent to the DNS server, so that the DNS server sends the selected IP address of the edge server to the user terminal, thereby realizing the routing from the user terminal to the edge server. In the embodiment of the present invention, the dynamic routing table can accurately record the time delay from each edge server group to each DNS server. Compared with the static configuration method in the prior art, the time delay to the user can be quickly and accurately selected. The shortest (that is, the shortest time delay to the DNS server) edge server group provides services for users and improves the service quality of CDN.

实施例二:Embodiment two:

请参阅图4,图4为本发明实施例提供另一种基于内容分发网络的路由实现方法的流程示意图。其中,图4所示的路由实现方法可以包括以下步骤:Please refer to FIG. 4 . FIG. 4 is a schematic flowchart of another method for implementing routing based on content delivery networks according to an embodiment of the present invention. Wherein, the routing implementation method shown in Figure 4 may include the following steps:

401、路由服务器从表2所示热度统计表中选取出发送DNS请求次数达到预设次数值,和/或发送DNS请求次数所占的百分比达到预设百分比值的DNS服务器作为被探测的DNS服务器,并发送IP探测命令给每一个边缘服务器群中的负载最小的边缘服务器,其中,该IP探测命令携带被探测的DNS服务器的IP地址。401. The routing server selects from the heat statistics table shown in Table 2, the DNS server whose number of times of sending DNS requests reaches the preset number of times, and/or the percentage of times of sending DNS requests reaches the preset percentage value, as the DNS server to be detected , and send an IP detection command to the edge server with the least load in each edge server group, where the IP detection command carries the IP address of the DNS server to be detected.

402、路由服务器接收每一个边缘服务器群中的负载最小的边缘服务器发送的IP探测结果,其中,该IP探测结果包括负载最小的边缘服务器所属的边缘服务器群的群编号以及负载最小的边缘服务器所属的边缘服务器群到被探测的DNS服务器的时延大小,路由服务器预先建立如表1所示的动态路由表。402. The routing server receives the IP detection result sent by the edge server with the lightest load in each edge server group, where the IP detection result includes the group number of the edge server group to which the edge server with the lightest load belongs and the edge server to which the edge server with the lightest load belongs. The time delay from the edge server group to the detected DNS server, the routing server pre-establishes the dynamic routing table shown in Table 1.

其中,每一个边缘服务器群中的负载最小的边缘服务器上在接收到路由服务器发送的IP探测命令之后,可以根据该IP探测命令中携带的被探测的DNS服务器的IP地址,发送DNS消息或PING消息至被探测的DNS服务器,获得对应的时延大小后可以将该时延大小以及所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。Wherein, after receiving the IP detection command sent by the routing server, the edge server with the smallest load in each edge server group can send a DNS message or PING according to the IP address of the detected DNS server carried in the IP detection command. The message is sent to the detected DNS server, and after obtaining the corresponding time delay, the time delay and the group number of the edge server group to which it belongs can be sent to the routing server as the IP detection result.

403、用户终端发起对某一个URL指向的内容的访问时,用户终端的桌面系统将发送DNS请求消息到用户终端所在的本地DNS服务器;403. When the user terminal initiates access to content pointed to by a certain URL, the desktop system of the user terminal will send a DNS request message to the local DNS server where the user terminal is located;

404、本地DNS服务器查询上述DNS请求消息中携带的域名的授权DNS服务器,并向授权DNS服务器发送DNS请求消息;404. The local DNS server queries the authorized DNS server of the domain name carried in the DNS request message, and sends the DNS request message to the authorized DNS server;

其中,如果本地DNS服务器无法查询到上述DNS请求消息中携带的域名的授权DNS服务器,则本地DNS服务器采用递归的方式,将上述DNS请求消息发送至其上级DNS服务器,由上级DNS服务器查询到上述DNS请求消息中携带的域名的授权DNS服务器后返回授权DNS服务器的IP地址,本地DNS服务器根据授权DNS服务器的IP地址,向该域名的授权DNS服务器发送DNS请求消息;Wherein, if the local DNS server cannot query the authorized DNS server of the domain name carried in the above-mentioned DNS request message, the local DNS server uses a recursive method to send the above-mentioned DNS request message to its upper-level DNS server, and the upper-level DNS server queries the above-mentioned DNS server. The authorized DNS server of the domain name carried in the DNS request message returns the IP address of the authorized DNS server, and the local DNS server sends a DNS request message to the authorized DNS server of the domain name according to the IP address of the authorized DNS server;

405、授权DNS服务器通过DNS响应消息将CDN的路由服务器的IP地址发送给本地DNS服务器,由本地DNS服务器进行地址解析,获得CDN的路由服务器的IP地址;405. The authorized DNS server sends the IP address of the routing server of the CDN to the local DNS server through the DNS response message, and the local DNS server performs address resolution to obtain the IP address of the routing server of the CDN;

406、本地DNS服务器根据路由服务器的IP地址,向路由服务器发送DNS请求消息;406. The local DNS server sends a DNS request message to the routing server according to the IP address of the routing server;

407、路由服务器根据本地DNS服务器的IP地址,从预先建立的如表1所示的动态路由表中确定出到本地DNS服务器的时延最短的边缘服务器群-N,并基于负载均衡策略从边缘服务器群-N中选择一个负载最小的边缘服务器的IP地址通过DNS响应消息返回给本地DNS服务器;407. According to the IP address of the local DNS server, the routing server determines from the pre-established dynamic routing table shown in Table 1 the edge server group-N with the shortest delay to the local DNS server, and based on the load balancing strategy, from the edge server Select the IP address of an edge server with the least load in the server group-N and return it to the local DNS server through the DNS response message;

408、本地DNS服务器通过DNS响应消息将上述的负载最小边缘服务器的IP地址返回给用户终端;408. The local DNS server returns the IP address of the aforementioned edge server with the least load to the user terminal through a DNS response message;

409、用户终端根据得到的IP地址向边缘服务器群-N中的负载最小的边缘服务器发起媒体访问请求。409. The user terminal initiates a media access request to the edge server with the smallest load in the edge server group-N according to the obtained IP address.

本发明实施例中,路由服务器预先建立的动态路由表可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the dynamic routing table established in advance by the routing server can accurately record the time delay from each edge server group to each DNS server. Compared with the static configuration method in the prior art, it can quickly and accurately select The edge server group with the shortest delay to the user (that is, the shortest delay to the DNS server) provides services for users and improves the service quality of the CDN.

实施例三:Embodiment three:

请参阅图5,图5为本发明实施例提供的一种获取时延的方法的流程示意图。其中,该方法可以包括以下步骤:Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of a method for obtaining time delay provided by an embodiment of the present invention. Wherein, the method may include the following steps:

501、边缘服务器接收路由服务器发送的IP探测命令,其中,该IP探测命令携带被探测的DNS服务器的IP地址;501. The edge server receives the IP detection command sent by the routing server, where the IP detection command carries the IP address of the DNS server to be detected;

本发明实施例中,上述边缘服务器可以位于某一个边缘服务器群中。In the embodiment of the present invention, the above-mentioned edge server may be located in a certain edge server group.

502、边缘服务器根据上述被探测的DNS服务器的IP地址,发送时延探测消息至被探测的DNS服务器;502. The edge server sends a delay detection message to the detected DNS server according to the IP address of the detected DNS server;

503、边缘服务器记录到被探测的DNS服务器的时延大小;503. The edge server records the time delay to the detected DNS server;

504、边缘服务器将上述时延大小以及边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。504. The edge server sends the above delay and the group ID of the edge server group to which the edge server belongs as an IP detection result to the routing server.

作为一个可选的实施方式,上述步骤502中边缘服务器可以根据上述被探测的DNS服务器的IP地址,发送DNS消息至被探测的DNS服务器;As an optional implementation, the edge server in step 502 may send a DNS message to the detected DNS server according to the IP address of the detected DNS server;

相应地,上述步骤503中边缘服务器可以记录从发送DNS消息到接收到被探测的DNS服务器返回响应消息的时延大小。Correspondingly, in step 503 above, the edge server may record the time delay from sending the DNS message to receiving the response message returned by the detected DNS server.

作为另一个可选的实施方式,上述步骤502中边缘服务器可以根据上述被探测的DNS服务器的IP地址,发送至少二个PING消息至被探测的DNS服务器;As another optional implementation manner, the edge server in step 502 may send at least two PING messages to the detected DNS server according to the IP address of the detected DNS server;

相应地,上述步骤503中边缘服务器可以记录从发送每一个PING消息到接收到被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大;以及边缘服务器可以将至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;Correspondingly, in the above-mentioned step 503, the edge server can record the time delay from sending each PING message to receiving the response message returned by the detected DNS server, and obtain the corresponding time delay of each PING message; and the edge server can send at least The delays corresponding to the two PING messages are averaged to obtain the average delay;

相应地,上述步骤504中边缘服务器可以将上述时延大小平均值以及边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。Correspondingly, in the above step 504, the edge server may send the average value of the delay and the group ID of the edge server group to which the edge server belongs as the IP detection result to the routing server.

本发明实施例中,边缘服务器可以根据路由服务器发送的IP探测命令,对被探测的DNS服务器进行时延探测,并将时延大小以及边缘服务器所属的边缘服务器群的群编号,或者将时延平均值以及边缘服务器所属的边缘服务器群的群编号发送至路由服务器,使得路由服务器可以建立如表1所示的动态路由表,可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the edge server can detect the time delay of the detected DNS server according to the IP detection command sent by the routing server, and the time delay and the group number of the edge server group to which the edge server belongs, or the time delay equal to The mean value and the group number of the edge server group to which the edge server belongs are sent to the routing server, so that the routing server can establish a dynamic routing table as shown in Table 1, which can accurately record the time delay from each edge server group to each DNS server, Compared with the static configuration method in the prior art, the edge server group with the shortest time delay to the user (that is, the shortest time delay to the DNS server) can be quickly and accurately selected to provide services for users and improve the service quality of the CDN.

实施例四:Embodiment four:

请参阅图6,图6为本发明实施例提供一种路由服务器的结构示意图,该服务器应用于CDN。其中,图6所示的路由服务器可以包括:Please refer to FIG. 6 . FIG. 6 is a schematic structural diagram of a routing server according to an embodiment of the present invention, and the server is applied to a CDN. Wherein, the routing server shown in Figure 6 may include:

接收单元601,用于接收DNS服务器发送的DNS请求消息;a receiving unit 601, configured to receive a DNS request message sent by a DNS server;

确定单元602,用于根据该DNS服务器的IP地址,从预先建立的动态路由表中确定出到该DNS服务器的时延最短的边缘服务器群,该动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;The determination unit 602 is configured to determine the edge server group with the shortest delay to the DNS server from the pre-established dynamic routing table according to the IP address of the DNS server, and the dynamic routing table is used to record each edge server group to The delay of each DNS server;

选取单元603,用于从确定单元602确定出的边缘服务器群中选取任意一个边缘服务器;A selecting unit 603, configured to select any edge server from the edge server group determined by the determining unit 602;

发送单元604,用于将选取单元603选取出的边缘服务器的IP地址通过DNS响应消息发送给该DNS服务器,以使该DNS服务器将选取单元603选取出的边缘服务器的IP地址发送至用户终端。The sending unit 604 is configured to send the IP address of the edge server selected by the selecting unit 603 to the DNS server through a DNS response message, so that the DNS server sends the IP address of the edge server selected by the selecting unit 603 to the user terminal.

请一并参阅图7,图7为本发明实施例提供另一种路由服务器的结构示意图,该服务器应用于CDN。图7所示的路由服务器给由图6所示的路由服务器进行优化得到,其中,在图7所示的路由服务器中,还包括:Please also refer to FIG. 7 . FIG. 7 is a schematic structural diagram of another routing server according to an embodiment of the present invention, which is applied to a CDN. The routing server shown in Figure 7 is obtained by optimizing the routing server shown in Figure 6, wherein, in the routing server shown in Figure 7, it also includes:

路由表单元605,用于建立或更新动态路由表。Routing table unit 605, configured to establish or update a dynamic routing table.

本发明实施例中,路由表单元605建立的动态路由表可以和表1类似,本发明实施例此处不作复述。In the embodiment of the present invention, the dynamic routing table established by the routing table unit 605 may be similar to Table 1, which will not be repeated here in the embodiment of the present invention.

其中,路由表单元605可以包括:Wherein, the routing table unit 605 may include:

收发子单元6051,用于发送IP探测命令给至少一个边缘服务器群,该IP探测命令携带被探测的DNS服务器的IP地址;以及接收上述边缘服务器群中的任意一个边缘服务器发送的IP探测结果,该IP探测结果包括上述边缘服务器群的群编号以及上述边缘服务器群到被探测的DNS服务器的时延大小;The transceiver subunit 6051 is configured to send an IP detection command to at least one edge server group, the IP detection command carries the IP address of the DNS server being detected; and receives an IP detection result sent by any edge server in the above edge server group, The IP detection result includes the group number of the above-mentioned edge server group and the time delay from the above-mentioned edge server group to the detected DNS server;

存储子单元6052,用于存储上述边缘服务器群到被探测的DNS服务器的时延大小与被探测的DNS服务器的IP地址的对应关系,实现动态路由表的建立或更新。The storage subunit 6052 is used to store the corresponding relationship between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server, so as to realize the establishment or update of the dynamic routing table.

如图7所示的路由服务器中,还可以包括:In the route server shown in Figure 7, may also include:

第一获取单元606,用于从热度统计表中选取出发送DNS请求的次数达到预设次数值的DNS服务器作为被探测的DNS服务器;和/或,从热度统计表中选取出发送DNS请求的次数占所有DNS请求次数的百分比达到预设百分比值的DNS服务器作为被探测的DNS服务器;并将被探测的DNS服务器的IP地址通知收发子单元6051,使收发子单元6051可以根据被探测的DNS服务器的IP地址对被探测的DNS服务器进行时延探测。The first acquisition unit 606 is configured to select from the heat statistics table the DNS server whose number of times of sending DNS requests reaches a preset value as the detected DNS server; and/or select from the heat statistics table the DNS server that sends the DNS request The DNS server whose number of times accounts for the percentage of all DNS request times reaches the preset percentage value is used as the detected DNS server; and the IP address of the detected DNS server is notified to the transceiver subunit 6051, so that the transceiver subunit 6051 can The IP address of the server performs delay detection on the detected DNS server.

本发明实施例中,热度统计表可以和表2类似,本发明实施例此处不作复述。In the embodiment of the present invention, the heat statistics table may be similar to Table 2, which will not be repeated here in the embodiment of the present invention.

如图7所示的路由服务器中,还可以包括:In the route server shown in Figure 7, may also include:

第二获取单元607,用于从存储子单元6052存储的动态路由表中选取出存储时间达到预设时间的对应关系,将选取出的对应关系中的DNS服务器作为被探测的DNS服务器,并将被探测的DNS服务器的IP地址通知收发子单元6051,使收发子单元6051可以根据被探测的DNS服务器的IP地址对被探测的DNS服务器进行时延探测,实现对路由表单元605建立的动态路由表的更新。The second obtaining unit 607 is configured to select a corresponding relationship whose storage time reaches a preset time from the dynamic routing table stored in the storage subunit 6052, use the DNS server in the selected corresponding relationship as the DNS server to be detected, and set The IP address of the detected DNS server notifies the sending and receiving subunit 6051, so that the sending and receiving subunit 6051 can detect the time delay of the detected DNS server according to the IP address of the detected DNS server, and realize the dynamic routing established by the routing table unit 605 table updates.

本发明实施例中,路由服务器中的路由表单元605预先建立或更新用于记录每个边缘服务器群到各个DNS服务器的时延大小的动态路由表,接收单元601在接收到DNS服务器发送的DNS请求消息之后,确定单元602从上述动态路由表中确定出到该DNS服务器的时延最短的边缘服务器群,选取单元603从确定的边缘服务器群中选取任意一个的边缘服务器(如负载最小的边缘服务器),发送单元604将选取出的边缘服务器的IP地址通过DNS请求响应消息发送至该DNS服务器,使该DNS服务器将选取出的边缘服务器的IP地址发送至用户终端,从而实现用户终端到负载最小的边缘服务器的路由。本发明实施例中,路由服务器中的路由表单元605预先建立的动态路由表可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the routing table unit 605 in the routing server pre-establishes or updates a dynamic routing table used to record the time delay from each edge server group to each DNS server, and the receiving unit 601 receives the DNS information sent by the DNS server. After the request message, the determination unit 602 determines the edge server group with the shortest time delay to the DNS server from the above-mentioned dynamic routing table, and the selection unit 603 selects any edge server (such as the edge server with the smallest load) from the determined edge server group. server), the sending unit 604 sends the selected IP address of the edge server to the DNS server through a DNS request response message, so that the DNS server sends the selected IP address of the edge server to the user terminal, thereby realizing the user terminal to load Minimal edge server routing. In the embodiment of the present invention, the dynamic routing table established in advance by the routing table unit 605 in the routing server can accurately record the time delay from each edge server group to each DNS server. Compared with the static configuration method in the prior art, It can quickly and accurately select the edge server group with the shortest delay to the user (that is, the shortest delay to the DNS server) to provide services for users and improve the service quality of the CDN.

实施例五:Embodiment five:

请参阅图8,图8为本发明实施例提供的一种边缘服务器的结构示意图,该边缘服务器位于任意一个边缘服务器群中。其中,图8所示的边缘服务器可以包括:Please refer to FIG. 8 . FIG. 8 is a schematic structural diagram of an edge server provided by an embodiment of the present invention, and the edge server is located in any edge server group. Wherein, the edge server shown in Figure 8 may include:

接收单元801,用于接收路由服务器发送的IP探测命令,其中,该IP探测命令携带被探测的DNS服务器的IP地址;The receiving unit 801 is configured to receive the IP detection command sent by the routing server, wherein the IP detection command carries the IP address of the detected DNS server;

第一发送单元802,用于根据被探测的DNS服务器的IP地址,发送时延探测消息至被探测的DNS服务器;The first sending unit 802 is configured to send a delay detection message to the detected DNS server according to the IP address of the detected DNS server;

记录单元803,用于记录本边缘服务器到被探测的DNS服务器的时延大小;A recording unit 803, configured to record the time delay from the edge server to the detected DNS server;

第二发送单元804,用于将上述时延大小以及本边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The second sending unit 804 is configured to send the aforementioned time delay and the group number of the edge server group to which the edge server belongs to the routing server as an IP detection result.

作为一个可选的实施方式,第一发送单元802用于根据被探测的DNS服务器的IP地址,发送DNS消息至被探测的DNS服务器;As an optional implementation manner, the first sending unit 802 is configured to send a DNS message to the detected DNS server according to the IP address of the detected DNS server;

相应地,记录单元803用于记录从第一发送单元802发送DNS消息到接收单元801接收到被探测的DNS服务器返回响应消息的时延大小。Correspondingly, the recording unit 803 is configured to record the time delay from when the first sending unit 802 sends the DNS message to when the receiving unit 801 receives the response message returned by the probed DNS server.

作为另一个可选的实施方式,第一发送单元802用于根据被探测的DNS服务器的IP地址,发送至少二个PING消息至被探测的DNS服务器;As another optional implementation manner, the first sending unit 802 is configured to send at least two PING messages to the detected DNS server according to the IP address of the detected DNS server;

相应地,记录单元803用于记录从第一发送单元802发送每一个PING消息到接收单元801接收到被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大小;以及将上述至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;Correspondingly, the recording unit 803 is used to record the time delay from the first sending unit 802 sending each PING message to the receiving unit 801 receiving the response message returned by the probed DNS server, so as to obtain the time delay corresponding to each PING message; and averaging the time delays corresponding to the above at least two PING messages to obtain an average time delay;

相应地,第二发送单元804用于将上述时延大小平均值以及本边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器。Correspondingly, the second sending unit 804 is configured to send the above average value of the delay and the group ID of the edge server group to which the edge server belongs to the routing server as the IP detection result.

本发明实施例中,边缘服务器可以根据路由服务器发送的IP探测命令,对被探测的DNS服务器进行时延探测,并将时延大小以及边缘服务器所属的边缘服务器群的群编号,或者将时延平均值以及边缘服务器所属的边缘服务器群的群编号发送至路由服务器,使得路由服务器可以建立如表1所示的动态路由表,可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the edge server can detect the time delay of the detected DNS server according to the IP detection command sent by the routing server, and the time delay and the group number of the edge server group to which the edge server belongs, or the time delay equal to The mean value and the group number of the edge server group to which the edge server belongs are sent to the routing server, so that the routing server can establish a dynamic routing table as shown in Table 1, which can accurately record the time delay from each edge server group to each DNS server, Compared with the static configuration method in the prior art, the edge server group with the shortest time delay to the user (that is, the shortest time delay to the DNS server) can be quickly and accurately selected to provide services for users and improve the service quality of the CDN.

实施例六:Embodiment six:

请参阅图9,图9为本发明实施例提供一种基于内容分发网络的路由实现系统的结构示意图,其中,图9所示的路由实现系统可以包括:Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a content distribution network-based routing implementation system according to an embodiment of the present invention, wherein the routing implementation system shown in FIG. 9 may include:

路由服务器901和DNS服务器902;Routing server 901 and DNS server 902;

其中,路由服务器901的结构与图6所示的路由服务器相同,或者与图7所示的路由服务器相同,本发明实施例此处不作复述。Wherein, the structure of the routing server 901 is the same as the routing server shown in FIG. 6 , or the same as the routing server shown in FIG. 7 , which will not be repeated here in the embodiment of the present invention.

路由服务器901,用于接收DNS服务器902发送的DNS请求消息,根据DNS服务器902的IP地址,从预先建立的动态路由表中确定出到DNS服务器902的时延最短的边缘服务器群;动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;以及从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至DNS服务器902;The routing server 901 is used to receive the DNS request message sent by the DNS server 902, and determine the edge server group with the shortest delay to the DNS server 902 from the pre-established dynamic routing table according to the IP address of the DNS server 902; the dynamic routing table It is used to record the delay from each edge server group to each DNS server; and select any edge server from the determined edge server group, and send the IP address of the selected edge server to the DNS server 902 through a DNS response message;

DNS服务器902,用于发送DNS请求消息至路由服务器901,以及接收路由服务器901通过DNS响应消息发送的路由服务器901选取出的边缘服务器的IP地址,将边缘服务器的IP地址发送至用户终端。The DNS server 902 is configured to send a DNS request message to the routing server 901, and receive the IP address of the edge server selected by the routing server 901 sent by the routing server 901 through the DNS response message, and send the IP address of the edge server to the user terminal.

如图9所示,本发明实施例提供的基于内容分发网络的路由实现系统还可以包括至少一个边缘服务器群903;As shown in FIG. 9 , the content distribution network-based routing implementation system provided by the embodiment of the present invention may also include at least one edge server group 903;

其中,边缘服务器群903中的任意一个边缘服务器,用于接收路由服务器901发送的IP探测命令,该IP探测命令携带被探测的DNS服务器的IP地址;根据被探测的DNS服务器的IP地址,发送时延探测消息至被探测的DNS服务器;记录到被探测的DNS服务器的时延大小,以及将该时延大小以及该边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器901;Wherein, any edge server in the edge server group 903 is used to receive the IP detection command sent by the routing server 901, and the IP detection command carries the IP address of the DNS server to be detected; according to the IP address of the DNS server to be detected, send Delay detection message to the detected DNS server; record the time delay of the detected DNS server, and send the time delay and the group number of the edge server group to which the edge server belongs to the routing server 901 as an IP detection result ;

相应地,路由服务器901还用于发送IP探测命令给边缘服务器群903,该IP探测命令携带被探测的DNS服务器的IP地址;接收边缘服务器群903中任意一个边缘服务器发送的IP探测结果,该IP探测结果包括边缘服务器群903的群编号以及边缘服务器群903到被探测的DNS服务器的时延大小;存储边缘服务器群903到被探测的DNS服务器的时延大小与被探测的DNS服务器的IP地址的对应关系。Correspondingly, the routing server 901 is also configured to send an IP detection command to the edge server group 903, the IP detection command carrying the IP address of the detected DNS server; receiving the IP detection result sent by any edge server in the edge server group 903, the The IP detection result includes the group number of the edge server group 903 and the time delay from the edge server group 903 to the detected DNS server; the time delay from the edge server group 903 to the detected DNS server and the IP address of the detected DNS server are stored Address correspondence.

其中,上述的边缘服务器群903中的任意一个边缘服务器的结构与图8所示的边缘服务器的结构相同,本发明实施例此处不作复述。Wherein, the structure of any one edge server in the above-mentioned edge server group 903 is the same as the structure of the edge server shown in FIG. 8 , which will not be repeated here in this embodiment of the present invention.

作为一个可选的实施方式,边缘服务器群903中的任意一个边缘服务器可以用于接收路由服务器901发送的IP探测命令,根据被探测的DNS服务器的IP地址,发送DNS消息至被探测的DNS服务器;记录从发送DNS消息到接收到被探测的DNS服务器返回响应消息的时延大小;以及将该时延大小以及该边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器901。As an optional implementation, any edge server in the edge server group 903 can be used to receive the IP detection command sent by the routing server 901, and send a DNS message to the detected DNS server according to the IP address of the detected DNS server ; record the time delay from sending the DNS message to receiving the detected DNS server to return the response message;

作为一个可选的实施方式,每一个边缘服务器群903中的任意一个边缘服务器,还可以用于接收路由服务器901发送的IP探测命令,该IP探测命令携带被探测的DNS服务器的IP地址;该边缘服务器可以根据被探测的DNS服务器的IP地址,发送至少二个PING消息至被探测的DNS服务器;记录从发送每一个PING消息到接收到被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大小;将至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;将时延大小平均值以及该边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至路由服务器901。As an optional implementation, any edge server in each edge server group 903 can also be used to receive the IP detection command sent by the routing server 901, and the IP detection command carries the IP address of the DNS server being detected; The edge server can send at least two PING messages to the detected DNS server according to the IP address of the detected DNS server; record the time delay from sending each PING message to receiving the detected DNS server to return the response message, and obtain The delay corresponding to each PING message; average the delay corresponding to at least two PING messages to obtain the average delay; compare the average delay and the group number of the edge server group to which the edge server belongs It is sent to the routing server 901 as an IP detection result.

本发明实施例中,路由服务器901预先建立用于记录每个边缘服务器群903到各个DNS服务器的时延大小的动态路由表,在接收到DNS服务器902发送的DNS请求消息后,从上述动态路由表中确定出到DNS服务器902的时延最短的边缘服务器群,并从确定的边缘服务器群中选取出任意一个边缘服务器(如负载最小的边缘服务器),并将选取出的边缘服务器的IP地址通过DNS响应消息发送至DNS服务器902,使DNS服务器902将选取出的边缘服务器的IP地址发送至用户终端,从而实现用户终端到负载最小的边缘服务器的路由。本发明实施例中,动态路由表可以准确地记录每个边缘服务器群到各个DNS服务器的时延大小,与现有技术中采用静态配置方式相比,可以快速、准确地选择出到用户时延最短(即到DNS服务器时延最短)的边缘服务器群来为用户提供服务,提升CDN的服务质量。In the embodiment of the present invention, the routing server 901 pre-establishes a dynamic routing table for recording the time delay from each edge server group 903 to each DNS server. After receiving the DNS request message sent by the DNS server 902, Determine the edge server group with the shortest delay to the DNS server 902 in the table, and select any edge server (such as the edge server with the smallest load) from the determined edge server group, and set the IP address of the selected edge server By sending the DNS response message to the DNS server 902, the DNS server 902 sends the selected IP address of the edge server to the user terminal, so as to realize the routing from the user terminal to the edge server with the least load. In the embodiment of the present invention, the dynamic routing table can accurately record the time delay from each edge server group to each DNS server. Compared with the static configuration method in the prior art, the time delay to the user can be quickly and accurately selected. The shortest (that is, the shortest time delay to the DNS server) edge server group provides services for users and improves the service quality of CDN.

本领域普通技术人员可以理解上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质可以包括:闪存盘、只读存储器(Read-OnlyMemory,ROM)、随机存取器(Random Access Memory,RAM)、磁盘或光盘等。Those of ordinary skill in the art can understand that all or part of the steps in the various methods of the above-mentioned embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium can include: Flash disk, read-only memory (Read-OnlyMemory, ROM), random access device (Random Access Memory, RAM), magnetic disk or optical disk, etc.

以上对本发明实施例所提供的基于内容分发网络的路由方法及相关设备、系统进行了详细介绍,本文中应用了具体个例对本发明的原理及实施方式进行了阐述,以上实施例的说明只是用于帮助理解本发明的方法及其核心思想;同时,对于本领域的一般技术人员,依据本发明的思想,在具体实施方式及应用范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。The content distribution network-based routing method and related equipment and systems provided by the embodiments of the present invention are described above in detail. In this paper, specific examples are used to illustrate the principles and implementation methods of the present invention. The descriptions of the above embodiments are only used To help understand the method of the present invention and its core idea; at the same time, for those of ordinary skill in the art, according to the idea of the present invention, there will be changes in the specific implementation and scope of application. In summary, this specification The content should not be construed as a limitation of the invention.

Claims (17)

1.一种基于内容分发网络的路由实现方法,其特征在于,包括:1. A routing implementation method based on content distribution network, characterized in that, comprising: 路由服务器接收域名管理系统DNS服务器发送的DNS请求消息;The routing server receives the DNS request message sent by the DNS server of the domain name management system; 所述路由服务器根据所述DNS服务器的IP地址,从预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;The routing server determines the edge server group with the shortest delay to the DNS server from the pre-established dynamic routing table according to the IP address of the DNS server; the dynamic routing table is used to record the edge server group of each edge server group The delay to each DNS server; 所述路由服务器从确定的边缘服务器群中选取任意一个边缘服务器,并将选取的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器,以使所述DNS服务器将所述选取的边缘服务器的IP地址发送至用户终端;The routing server selects any edge server from the determined edge server group, and sends the IP address of the selected edge server to the DNS server through a DNS response message, so that the DNS server sends the selected edge server The IP address sent to the user terminal; 所述路由服务器建立或更新动态路由表,具体包括:The routing server establishes or updates the dynamic routing table, specifically including: 所述路由服务器发送IP探测命令给至少一个边缘服务器群,所述IP探测命令携带被探测的DNS服务器的IP地址;The routing server sends an IP detection command to at least one edge server group, and the IP detection command carries the IP address of the detected DNS server; 所述路由服务器接收所述边缘服务器群中任意一个边缘服务器发送的IP探测结果,所述IP探测结果包括所述边缘服务器群的群编号以及所述边缘服务器群到所述被探测的DNS服务器的时延大小;The routing server receives an IP detection result sent by any edge server in the edge server group, and the IP detection result includes a group number of the edge server group and a link between the edge server group and the detected DNS server. delay size; 所述路由服务器存储所述边缘服务器群到所述被探测的DNS服务器的时延大小与所述被探测的DNS服务器的IP地址的对应关系。The routing server stores the correspondence between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server. 2.根据权利要求1所述的路由实现方法,其特征在于,所述路由服务器接收所述边缘服务器群中任意一个边缘服务器发送的IP探测结果之前,还包括:2. The routing implementation method according to claim 1, wherein, before the routing server receives the IP detection result sent by any edge server in the edge server group, it further includes: 所述边缘服务器群中任意一个边缘服务器接收所述路由服务器发送的IP探测命令,根据所述IP探测命令携带的被探测的DNS服务器的IP地址,发送DNS消息至所述被探测的DNS服务器;Any edge server in the edge server group receives the IP detection command sent by the routing server, and sends a DNS message to the detected DNS server according to the IP address of the detected DNS server carried in the IP detection command; 所述边缘服务器记录从发送DNS消息到接收到所述被探测的DNS服务器返回响应消息的时延大小;The edge server records the time delay from sending the DNS message to receiving the response message returned by the detected DNS server; 所述边缘服务器将所述时延大小以及所述边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The edge server sends the delay and the group number of the edge server group to the routing server as an IP detection result. 3.根据权利要求1所述的路由实现方法,其特征在于,所述路由服务器接收所述边缘服务器群中任意一个边缘服务器发送的IP探测结果之前,还包括:3. The routing implementation method according to claim 1, wherein, before the routing server receives the IP detection result sent by any edge server in the edge server group, it further includes: 所述边缘服务器群中任意一个边缘服务器接收所述路由服务器发送的IP探测命令,根据所述IP探测命令携带的被探测的DNS服务器的IP地址,发送至少二个PING消息至所述被探测的DNS服务器;Any edge server in the edge server group receives the IP detection command sent by the routing server, and sends at least two PING messages to the detected DNS server according to the IP address of the detected DNS server carried in the IP detection command. DNS server; 所述边缘服务器记录从发送每一个PING消息到接收到所述被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大小;The edge server records the time delay from sending each PING message to receiving the response message returned by the detected DNS server, and obtains the time delay corresponding to each PING message; 所述边缘服务器将所述至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;The edge server averages the time delays corresponding to the at least two PING messages to obtain an average time delay; 所述边缘服务器将所述时延大小平均值以及所述边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The edge server sends the average value of the delay and the group number of the edge server group to the routing server as an IP detection result. 4.根据权利要求1~3任意一项所述的路由实现方法,其特征在于,所述路由服务器发送IP探测命令给至少一个边缘服务器群之前,还包括:4. The routing implementation method according to any one of claims 1 to 3, characterized in that, before the routing server sends the IP detection command to at least one edge server group, it also includes: 所述路由服务器从热度统计表中选取出发送DNS请求的次数达到预设次数值的DNS服务器作为被探测的DNS服务器;和/或,从热度统计表中选取出发送DNS请求的次数占所有DNS请求次数的百分比达到预设百分比值的DNS服务器作为被探测的DNS服务器。The routing server selects from the heat statistics table the DNS server whose number of times of sending DNS requests reaches the preset value as the detected DNS server; and/or selects from the heat statistics table that the number of times of sending DNS requests accounts for all DNS The DNS server with the percentage of the number of requests reaching the preset percentage value is used as the detected DNS server. 5.根据权利要求1~3任意一项所述的路由实现方法,其特征在于,所述路由服务器发送IP探测命令给至少一个边缘服务器群之前,还包括:5. The routing implementation method according to any one of claims 1 to 3, characterized in that, before the routing server sends the IP detection command to at least one edge server group, it also includes: 所述路由服务器从所述动态路由表中选取出存储时间达到预设时间的对应关系,并将选取出的对应关系中的DNS服务器作为被探测的DNS服务器。The routing server selects from the dynamic routing table a corresponding relationship whose storage time reaches a preset time, and uses the DNS server in the selected corresponding relationship as the DNS server to be detected. 6.根据权利要求1~3任意一项所述的路由实现方法,所述路由服务器从确定的边缘服务器群中选取任意一个边缘服务器,包括:6. The routing implementation method according to any one of claims 1 to 3, wherein the routing server selects any edge server from the determined edge server group, including: 所述路由服务器从确定的边缘服务器群中选取负载最小的一个边缘服务器。The routing server selects an edge server with the smallest load from the determined edge server group. 7.一种获取时延的方法,其特征在于,包括:7. A method for obtaining time delay, comprising: 边缘服务器接收路由服务器发送的IP探测命令,所述IP探测命令携带被探测的域名管理系统DNS服务器的IP地址;The edge server receives the IP detection command sent by the routing server, and the IP detection command carries the IP address of the detected domain name management system DNS server; 所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器;The edge server sends a delay detection message to the detected DNS server according to the IP address of the detected DNS server; 所述边缘服务器记录到所述被探测的DNS服务器的时延大小;The edge server records the time delay to the detected DNS server; 所述边缘服务器将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The edge server sends the delay and the group ID of the edge server group to which the edge server belongs as an IP detection result to the routing server. 8.根据权利要求7所述的方法,其特征在于,所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器,包括:8. The method according to claim 7, wherein the edge server sends a delay detection message to the detected DNS server according to the IP address of the detected DNS server, comprising: 所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送DNS消息至所述被探测的DNS服务器;The edge server sends a DNS message to the detected DNS server according to the IP address of the detected DNS server; 所述边缘服务器记录到所述被探测的DNS服务器的时延大小,包括:The edge server records the time delay to the detected DNS server, including: 所述边缘服务器记录从发送DNS消息到接收到所述被探测的DNS服务器返回响应消息的时延大小。The edge server records the time delay from sending the DNS message to receiving the response message returned by the detected DNS server. 9.根据权利要求7所述的方法,其特征在于,所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器,包括:9. The method according to claim 7, wherein the edge server sends a delay detection message to the detected DNS server according to the IP address of the detected DNS server, comprising: 所述边缘服务器根据所述被探测的DNS服务器的IP地址,发送至少二个PING消息至所述被探测的DNS服务器;The edge server sends at least two PING messages to the detected DNS server according to the IP address of the detected DNS server; 所述边缘服务器记录到所述被探测的DNS服务器的时延大小,包括:The edge server records the time delay to the detected DNS server, including: 所述边缘服务器记录从发送每一个PING消息到接收到所述被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大小;The edge server records the time delay from sending each PING message to receiving the response message returned by the detected DNS server, and obtains the time delay corresponding to each PING message; 所述边缘服务器将所述至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;The edge server averages the time delays corresponding to the at least two PING messages to obtain an average time delay; 所述边缘服务器将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器,包括:The edge server sends the delay size and the group number of the edge server group to which the edge server belongs as an IP detection result to the routing server, including: 所述边缘服务器将所述时延大小平均值以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The edge server sends the average value of the delay and the group number of the edge server group to which the edge server belongs as an IP detection result to the routing server. 10.一种路由服务器,应用于内容分发网络,其特征在于,包括:10. A routing server applied to a content distribution network, characterized in that it comprises: 接收单元,用于接收域名管理系统DNS服务器发送的DNS请求消息;The receiving unit is used to receive the DNS request message sent by the DNS server of the domain name management system; 确定单元,用于根据所述DNS服务器的IP地址,从预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;A determining unit, configured to determine from a pre-established dynamic routing table the edge server group with the shortest delay to the DNS server according to the IP address of the DNS server; the dynamic routing table is used to record the edge server group The delay from the group to each DNS server; 选取单元,用于从所述确定单元确定出的边缘服务器群中选取任意一个边缘服务器;a selection unit, configured to select any one edge server from the group of edge servers determined by the determination unit; 发送单元,用于将所述选取单元选取出的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器,以使所述DNS服务器将所述选取单元选取出的边缘服务器的IP地址发送至用户终端;a sending unit, configured to send the IP address of the edge server selected by the selection unit to the DNS server through a DNS response message, so that the DNS server sends the IP address of the edge server selected by the selection unit to user terminal; 还包括:路由表单元,用于建立或更新动态路由表;Also includes: a routing table unit, used to establish or update a dynamic routing table; 所述路由表单元包括:The routing table unit includes: 收发子单元,用于发送IP探测命令给至少一个边缘服务器群,所述IP探测命令携带被探测的DNS服务器的IP地址;以及接收所述边缘服务器群中的任意一个边缘服务器发送的IP探测结果,所述IP探测结果包括所述边缘服务器群的群编号以及所述边缘服务器群到所述被探测的DNS服务器的时延大小;A transceiver subunit, configured to send an IP detection command to at least one edge server group, the IP detection command carrying the IP address of the detected DNS server; and receiving an IP detection result sent by any edge server in the edge server group , the IP detection result includes the group number of the edge server group and the time delay from the edge server group to the detected DNS server; 存储子单元,用于存储所述边缘服务器群到所述被探测的DNS服务器的时延大小与所述被探测的DNS服务器的IP地址的对应关系。The storage subunit is configured to store the correspondence between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server. 11.根据权利要求10所述的路由服务器,其特征在于,还包括:11. The routing server according to claim 10, further comprising: 第一获取单元,用于从热度统计表中选取出发送DNS请求次数达到预设次数值的DNS服务器作为被探测的DNS服务器;和/或,从热度统计表中选取出发送DNS请求次数占所有DNS请求次数的百分比达到预设百分比值的DNS服务器作为被探测的DNS服务器;并将所述被探测的DNS服务器的IP地址通知所述收发子单元。The first acquisition unit is used to select from the heat statistics table the DNS server whose number of times of sending DNS requests reaches the preset value as the detected DNS server; and/or select from the heat statistics table that the number of times of sending DNS requests accounts for all The DNS server whose percentage of DNS request times reaches a preset percentage value is used as the detected DNS server; and the IP address of the detected DNS server is notified to the transceiver subunit. 12.根据权利要求10所述的路由服务器,其特征在于,还包括:12. The routing server according to claim 10, further comprising: 第二获取单元,用于从所述存储子单元存储的动态路由表中选取出存储时间达到预设时间的对应关系,将选取出的对应关系中的DNS服务器作为被探测的DNS服务器,并将所述被探测的DNS服务器的IP地址通知所述收发子单元。The second acquisition unit is configured to select a corresponding relationship whose storage time reaches a preset time from the dynamic routing table stored by the storage subunit, and use the DNS server in the selected corresponding relationship as the DNS server to be detected, and set The IP address of the detected DNS server is notified to the transceiver subunit. 13.一种边缘服务器,应用于内容分发网络,其特征在于,包括:13. An edge server applied to a content distribution network, characterized in that it comprises: 接收单元,用于接收路由服务器发送的IP探测命令,所述IP探测命令携带被探测的域名管理系统DNS服务器的IP地址;The receiving unit is used to receive the IP detection command sent by the routing server, and the IP detection command carries the IP address of the detected domain name management system DNS server; 第一发送单元,用于根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器;A first sending unit, configured to send a delay detection message to the detected DNS server according to the IP address of the detected DNS server; 记录单元,用于记录所述边缘服务器到所述被探测的DNS服务器的时延大小;a recording unit, configured to record the time delay from the edge server to the detected DNS server; 第二发送单元,用于将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The second sending unit is configured to send the delay and the group number of the edge server group to which the edge server belongs to the routing server as an IP detection result. 14.根据权利要求13所述的边缘服务器,其特征在于,14. The edge server according to claim 13, wherein: 所述第一发送单元,用于根据所述被探测的DNS服务器的IP地址,发送DNS消息至所述被探测的DNS服务器;The first sending unit is configured to send a DNS message to the detected DNS server according to the IP address of the detected DNS server; 所述记录单元,用于记录从所述第一发送单元发送DNS消息到所述接收单元接收到所述被探测的DNS服务器返回响应消息的时延大小。The recording unit is configured to record the time delay from when the first sending unit sends a DNS message to when the receiving unit receives a response message from the detected DNS server. 15.根据权利要求13所述的边缘服务器,其特征在于15. The edge server according to claim 13, characterized in that 所述第一发送单元,用于根据所述被探测的DNS服务器的IP地址,发送至少二个PING消息至所述被探测的DNS服务器;The first sending unit is configured to send at least two PING messages to the detected DNS server according to the IP address of the detected DNS server; 所述记录单元,用于记录从所述第一发送单元发送每一个PING消息到所述接收单元接收到所述被探测的DNS服务器返回响应消息的时延大小,获得每一个PING消息对应的时延大小;以及将所述至少二个PING消息对应的时延大小进行平均处理,获得时延大小平均值;The recording unit is configured to record the time delay from when the first sending unit sends each PING message to when the receiving unit receives the response message returned by the detected DNS server, and obtains the time delay corresponding to each PING message. delay size; and average the delay size corresponding to the at least two PING messages to obtain the average value of the delay size; 所述第二发送单元,用于将所述时延大小平均值以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。The second sending unit is configured to send the average value of the delay and the group number of the edge server group to which the edge server belongs to the routing server as an IP detection result. 16.一种基于内容分发网络的路由实现系统,其特征在于,包括:16. A routing realization system based on content distribution network, characterized in that, comprising: 路由服务器和域名管理系统DNS服务器;Routing server and domain name management system DNS server; 所述路由服务器,包括接收单元,用于接收域名管理系统DNS服务器发送的DNS请求消息;确定单元,用于根据所述DNS服务器的IP地址,从预先建立的动态路由表中确定出到所述DNS服务器的时延最短的边缘服务器群;所述动态路由表用于记录每个边缘服务器群到各个DNS服务器的时延大小;选取单元,用于从所述确定单元确定出的边缘服务器群中选取任意一个边缘服务器;发送单元,用于将所述选取单元选取出的边缘服务器的IP地址通过DNS响应消息发送至所述DNS服务器,以使所述DNS服务器将所述选取单元选取出的边缘服务器的IP地址发送至用户终端;路由表单元,用于建立或更新动态路由表;所述路由表单元包括:收发子单元,用于发送IP探测命令给至少一个边缘服务器群,所述IP探测命令携带被探测的DNS服务器的IP地址;以及接收所述边缘服务器群中的任意一个边缘服务器发送的IP探测结果,所述IP探测结果包括所述边缘服务器群的群编号以及所述边缘服务器群到所述被探测的DNS服务器的时延大小;存储子单元,用于存储所述边缘服务器群到所述被探测的DNS服务器的时延大小与所述被探测的DNS服务器的IP地址的对应关系;The routing server includes a receiving unit, configured to receive a DNS request message sent by a DNS server of a domain name management system; a determining unit, configured to determine from a pre-established dynamic routing table based on the IP address of the DNS server to the The edge server group with the shortest time delay of the DNS server; the dynamic routing table is used to record the time delay from each edge server group to each DNS server; the selection unit is used to determine from the edge server group determined by the determination unit Select any edge server; a sending unit, configured to send the IP address of the edge server selected by the selection unit to the DNS server through a DNS response message, so that the DNS server will select the edge server selected by the selection unit The IP address of the server is sent to the user terminal; the routing table unit is used to establish or update the dynamic routing table; the routing table unit includes: a transceiver subunit for sending an IP detection command to at least one edge server group, and the IP detection The command carries the IP address of the detected DNS server; and receives the IP detection result sent by any edge server in the edge server group, the IP detection result includes the group number of the edge server group and the edge server group The time delay to the detected DNS server; a storage subunit for storing the correspondence between the time delay from the edge server group to the detected DNS server and the IP address of the detected DNS server relation; 所述DNS服务器,用于发送DNS请求消息至所述路由服务器,以及接收所述路由服务器通过DNS响应消息发送的所述路由服务器选取出的边缘服务器的IP地址,将所述边缘服务器的IP地址发送至用户终端。The DNS server is configured to send a DNS request message to the routing server, and receive the IP address of the edge server selected by the routing server sent by the routing server through a DNS response message, and set the IP address of the edge server to sent to the user terminal. 17.根据权利要求16所述的系统,其特征在于,还包括至少一个边缘服务器群;17. The system according to claim 16, further comprising at least one edge server group; 所述边缘服务器群中的任意一个边缘服务器,用于接收所述路由服务器发送的IP探测命令,所述IP探测命令携带被探测的DNS服务器的IP地址;根据所述被探测的DNS服务器的IP地址,发送时延探测消息至所述被探测的DNS服务器;记录到所述被探测的DNS服务器的时延大小,以及将所述时延大小以及所述边缘服务器所属的边缘服务器群的群编号作为IP探测结果发送至所述路由服务器。Any edge server in the edge server group is configured to receive the IP detection command sent by the routing server, and the IP detection command carries the IP address of the detected DNS server; according to the IP address of the detected DNS server Address, sending a delay detection message to the detected DNS server; recording the delay to the detected DNS server, and the delay and the group number of the edge server group to which the edge server belongs It is sent to the routing server as an IP detection result.
CN201010600701.0A 2010-12-22 2010-12-22 Routing implementing method based on content distribution network and related equipment and system Active CN102148752B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010600701.0A CN102148752B (en) 2010-12-22 2010-12-22 Routing implementing method based on content distribution network and related equipment and system
PCT/CN2011/083841 WO2012083800A1 (en) 2010-12-22 2011-12-12 Routing method based on content delivery network and device and system thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010600701.0A CN102148752B (en) 2010-12-22 2010-12-22 Routing implementing method based on content distribution network and related equipment and system

Publications (2)

Publication Number Publication Date
CN102148752A CN102148752A (en) 2011-08-10
CN102148752B true CN102148752B (en) 2014-03-12

Family

ID=44422764

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010600701.0A Active CN102148752B (en) 2010-12-22 2010-12-22 Routing implementing method based on content distribution network and related equipment and system

Country Status (2)

Country Link
CN (1) CN102148752B (en)
WO (1) WO2012083800A1 (en)

Families Citing this family (44)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102148752B (en) * 2010-12-22 2014-03-12 华为技术有限公司 Routing implementing method based on content distribution network and related equipment and system
CN103166985B (en) * 2011-12-09 2018-02-27 上海盛大网络发展有限公司 A kind of GSLB dispatching method, data transmission method, apparatus and system
CN102438278B (en) * 2011-12-21 2014-07-16 优视科技有限公司 Load allocation method and device for mobile communication network
CN102546774A (en) * 2011-12-27 2012-07-04 厦门市美亚柏科信息股份有限公司 CDN (content distribution network) routing method for secondary redirection and system
CN102595207B (en) * 2012-01-10 2015-09-23 深圳市同洲电子股份有限公司 A kind of content delivering system, content distribution method and content delivering apparatus
EP2847954A4 (en) * 2012-05-11 2015-12-30 Hewlett Packard Development Co Server selection
CN102868630B (en) * 2012-09-07 2015-08-05 北京邮电大学 A kind of parallel adaptive data transmission method for uplink based on many IP address and device
CN103873497B (en) * 2012-12-11 2017-08-15 中国电信股份有限公司 Methods, devices and systems for schedule information
US9998354B2 (en) * 2013-09-24 2018-06-12 Netflix, Inc. Server selection for content distribution
CN103701619B (en) * 2013-10-22 2016-09-07 上海交通大学 The internet content distribution method dynamically selected based on CDN and data center
CN104734869A (en) * 2013-12-19 2015-06-24 华耀(中国)科技有限公司 Intelligent DNS domain name system and method based on dynamic detection
CN104767684B (en) * 2014-01-03 2018-12-11 腾讯科技(深圳)有限公司 Data transmission method and relevant apparatus and communication system
WO2015161499A1 (en) * 2014-04-25 2015-10-29 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for performing post-delivery process
CN103973835A (en) * 2014-05-16 2014-08-06 北京金山网络科技有限公司 Domain name system server selection method and device
KR101569857B1 (en) * 2014-06-20 2015-11-27 서정환 Method and system for detecting client causing network problem using client route control system
CN104158732B (en) * 2014-08-22 2017-11-28 成都致云科技有限公司 A kind of intelligent cloud service dynamic routing strategy
CN104320487B (en) 2014-11-11 2018-03-20 网宿科技股份有限公司 The HTTP scheduling system and method for content distributing network
CN105991365B (en) * 2015-02-28 2019-07-16 网宿科技股份有限公司 Method, apparatus and system for path detection
CN104702619A (en) * 2015-03-25 2015-06-10 广东睿江科技有限公司 Method and device for intelligently determining service node in CDN (Content Distribution Network)
CN105897822B (en) * 2015-11-11 2019-07-26 法法汽车(中国)有限公司 A kind of content distributing network CDN node selection method and its device
CN107277927B (en) * 2016-04-08 2023-04-25 中兴通讯股份有限公司 Processing method of user text perception service and network equipment
CN105704032B (en) * 2016-04-13 2019-03-01 北京邮电大学 A kind of interest package transmitting method and device
CN106487684B (en) * 2016-11-08 2019-05-10 中国电子科技集团公司第二十研究所 A Routing Method Based on Link Quality and Queuing Delay
CN108124020B (en) * 2016-11-28 2021-03-09 中国电信股份有限公司 Domain name resolution method, system and equipment
CN106992938B (en) * 2017-05-15 2020-03-31 网宿科技股份有限公司 Network flow dynamic scheduling and distributing method and system
CN107071091B (en) * 2017-05-26 2019-03-12 无锡华云数据技术服务有限公司 A kind of implementation method optimizing DNS name resolution
CN109962790B (en) * 2017-12-14 2020-05-29 北京金山云网络技术有限公司 A network quality monitoring method, device, electronic device and storage medium
CN108111623A (en) * 2017-12-29 2018-06-01 北京奇虎科技有限公司 A kind of communication means and device based on content distributing network CDN
CN110768852A (en) * 2018-07-25 2020-02-07 贵州白山云科技股份有限公司 Method and device for testing cloud network nodes
CN110839006A (en) * 2018-08-17 2020-02-25 阿里巴巴集团控股有限公司 Network scheduling method and device and electronic equipment
CN109379774B (en) * 2018-11-08 2021-04-16 网宿科技股份有限公司 Intelligent scheduling method, terminal equipment, edge node cluster and intelligent scheduling system
CN109547286B (en) * 2018-11-21 2020-06-19 中国联合网络通信集团有限公司 CDN node selection method, device and storage medium
CN109379453B (en) * 2018-12-27 2021-11-23 网宿科技股份有限公司 Method and system for detecting IP address of DNS (Domain name Server) outlet server
CN112104680B (en) * 2019-06-17 2023-03-31 中国移动通信有限公司研究院 Method, device and equipment for determining edge application and storage medium
CN111836319B (en) 2019-08-23 2023-04-07 维沃移动通信有限公司 Method and device for acquiring domain name address
CN110581890B (en) * 2019-09-10 2022-02-22 中国建设银行股份有限公司 Routing method and device for service request
CN112532674B (en) * 2019-09-19 2023-07-28 贵州白山云科技股份有限公司 Creation method, device and medium of network edge computing system
CN112532758B (en) * 2019-09-19 2023-04-18 贵州白山云科技股份有限公司 Method, device and medium for establishing network edge computing system
CN112527493A (en) * 2019-09-19 2021-03-19 贵州白山云科技股份有限公司 Method, device, system and medium for creating edge computing service
CN112787833B (en) * 2019-11-07 2022-08-12 中国电信股份有限公司 Method and device for deploying CDN (content delivery network) server
CN110995827B (en) * 2019-11-29 2022-01-07 腾讯科技(深圳)有限公司 Communication processing method and device, computer readable medium and electronic equipment
CN115244910B (en) * 2021-02-01 2024-01-23 北京小米移动软件有限公司 Network path determination method, device, communication equipment and storage medium
CN113364873A (en) * 2021-06-08 2021-09-07 中国联合网络通信集团有限公司 Traffic scheduling method and equipment
CN113572863A (en) * 2021-07-21 2021-10-29 江南信安(北京)科技有限公司 Application acceleration method and system based on dynamic routing protocol

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540543A (en) * 2003-10-31 2004-10-27 浙江大学 A content server system and its processing procedure
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server
CN101710905A (en) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 Address resolution control method and system based on tactics
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1235157C (en) * 2002-10-10 2006-01-04 华为技术有限公司 Content-oriented load equalizing method and apparatus
US7154901B2 (en) * 2003-02-07 2006-12-26 Mobile 365, Inc. Intermediary network system and method for facilitating message exchange between wireless networks
GB0319251D0 (en) * 2003-08-15 2003-09-17 British Telecomm System and method for selecting data providers
CN1791053A (en) * 2004-12-13 2006-06-21 杭州华为三康技术有限公司 Method for implementing optimization selection for multi server
US7991910B2 (en) * 2008-11-17 2011-08-02 Amazon Technologies, Inc. Updating routing information based on client location
CN102148752B (en) * 2010-12-22 2014-03-12 华为技术有限公司 Routing implementing method based on content distribution network and related equipment and system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1540543A (en) * 2003-10-31 2004-10-27 浙江大学 A content server system and its processing procedure
CN101640684A (en) * 2009-08-21 2010-02-03 中国电信股份有限公司 Content delivering method, network system, GSLB device and domain name server
CN101710905A (en) * 2009-12-17 2010-05-19 中国联合网络通信集团有限公司 Address resolution control method and system based on tactics
CN101764747A (en) * 2009-12-24 2010-06-30 北京世纪互联宽带数据中心有限公司 Intelligent dispatching method, device and system of content delivery network flow

Also Published As

Publication number Publication date
WO2012083800A1 (en) 2012-06-28
CN102148752A (en) 2011-08-10

Similar Documents

Publication Publication Date Title
CN102148752B (en) Routing implementing method based on content distribution network and related equipment and system
CN103780714B (en) The detection method of a kind of dns server and device
US8756296B2 (en) Method, device and system for distributing file data
US8266316B2 (en) Client apparatus and method of streaming content, and computer readable recording medium storing program for performing the method
WO2018209734A1 (en) Dynamic scheduling and allocation method and system for network traffic
CN103841045B (en) A kind of internet method for caching and processing, content detection subsystem and Cache systems
CN102136969B (en) Method, device and system for probing link quality
WO2022151643A1 (en) Domain name resolution method and system
CN108737515A (en) Route Selection is asked in networked environment
WO2015027743A1 (en) Domain name resolution method, domain name cache server, and final domain name server
CN101616169A (en) Method, system, service selection entity, service management entity for selecting service providing entity
CN108124020B (en) Domain name resolution method, system and equipment
CN102035815A (en) Data acquisition method, access node and data acquisition system
WO2021144041A1 (en) A method of and a session management function for provisioning a user plane function, a method of and a user plane function for processing user traffic and a method of and charging function for charging user traffic
CN107979592A (en) A kind of method and device for sending business request information
CN101662508B (en) Method for data transmission based on point-to-point protocol, device and system thereof
CN102082837A (en) Method and device for distributing public network address for IP (Internet protocol) terminal
CN112866413A (en) Data transmission method and device, electronic equipment and computer readable storage medium
US9166884B2 (en) Network location service
CN111953806B (en) Link selection method, device, computer equipment and computer storage medium
CN101808107A (en) Storage device and user communication method, device and system
JP7697930B2 (en) Method, system and computer readable medium for actively discovering and tracking addresses associated with 4G service endpoints - Patents.com
CN103416027A (en) Cache optimization method, cache and cache optimization system
KR101243071B1 (en) Source switching method, system and device
CN112543150A (en) Dynamic load balancing method based on server control

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant