CN110830564A - CDN scheduling method, apparatus, system, and computer-readable storage medium - Google Patents
CDN scheduling method, apparatus, system, and computer-readable storage medium Download PDFInfo
- Publication number
- CN110830564A CN110830564A CN201911051967.1A CN201911051967A CN110830564A CN 110830564 A CN110830564 A CN 110830564A CN 201911051967 A CN201911051967 A CN 201911051967A CN 110830564 A CN110830564 A CN 110830564A
- Authority
- CN
- China
- Prior art keywords
- scheduling
- target
- matching
- edge server
- information
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 75
- 230000004044 response Effects 0.000 claims description 30
- 238000004590 computer program Methods 0.000 claims description 15
- 238000005516 engineering process Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 12
- 230000008569 process Effects 0.000 description 12
- 238000004891 communication Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 6
- 230000000694 effects Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 5
- 230000008878 coupling Effects 0.000 description 3
- 238000010168 coupling process Methods 0.000 description 3
- 238000005859 coupling reaction Methods 0.000 description 3
- 238000012546 transfer Methods 0.000 description 2
- FFBHFFJDDLITSX-UHFFFAOYSA-N benzyl N-[2-hydroxy-4-(3-oxomorpholin-4-yl)phenyl]carbamate Chemical compound OC1=C(NC(=O)OCC2=CC=CC=C2)C=CC(=C1)N1CCOCC1=O FFBHFFJDDLITSX-UHFFFAOYSA-N 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000000802 evaporation-induced self-assembly Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/63—Routing a service request depending on the request content or context
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/45—Network directories; Name-to-address mapping
- H04L61/4505—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
- H04L61/4511—Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/02—Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/50—Network services
- H04L67/60—Scheduling 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/61—Scheduling or organising the servicing of application requests, e.g. requests for application data transmissions using the analysis and optimisation of the required network resources taking into account QoS or priority requirements
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/22—Parsing or analysis of headers
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Information Transfer Between Computers (AREA)
Abstract
本发明提供了一种CDN调度方法、装置、系统及计算机可读存储介质,涉及互联网技术领域,通过获取客户端的访问请求中携带的目标调度需求信息,其中,目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;基于该目标调度需求信息确定目标边缘服务器,进而将该客户端调度至目标边缘服务器,实现了针对目标调度需求信息的调度,与现有技术中仅能针对区域和请求域名作出调度相比,提高了调度粒度的精细度,从而缓解了用户的精细化调度需求。
The present invention provides a CDN scheduling method, device, system and computer-readable storage medium, and relates to the field of Internet technology. By acquiring target scheduling requirement information carried in an access request from a client, the scheduling unit indicated by the target scheduling requirement information It is smaller than the scheduling unit composed of the request domain name and the area; the target edge server is determined based on the target scheduling requirement information, and then the client is scheduled to the target edge server, which realizes the scheduling according to the target scheduling requirement information, which is different from the prior art that can only Compared with scheduling based on region and request domain name, the granularity of scheduling is improved, thereby alleviating the user's refined scheduling requirements.
Description
技术领域technical field
本发明涉及互联网技术领域,尤其是涉及一种CDN调度方法、装置、系统及计算机可读存储介质。The present invention relates to the field of Internet technologies, and in particular, to a CDN scheduling method, device, system, and computer-readable storage medium.
背景技术Background technique
CDN的全称是Content Delivery Network,即内容分发网络。CDN是构建在网络之上的内容分发网络,依靠部署在各地的边缘服务器,通过中心平台的负载均衡、内容分发、调度等功能模块,使用户就近获取所需内容,降低网络拥塞,提高用户访问响应速度和命中率。The full name of CDN is Content Delivery Network, that is, Content Delivery Network. CDN is a content distribution network built on the network, relying on edge servers deployed in various places, through the load balancing, content distribution, scheduling and other functional modules of the central platform, so that users can obtain the desired content nearby, reduce network congestion, and improve user access. Response speed and hit rate.
CDN调度系统依据一定的调度策略,如CDN的GSLB(global server load balance,全局服务器负载均衡)调度系统依据就近调度、质量优先、成本优先等策略,将用户的访问请求调度到CDN边缘节点(即边缘服务器)。The CDN scheduling system schedules users' access requests to CDN edge nodes (ie, CDN edge nodes) according to certain scheduling strategies, such as CDN's GSLB (global server load balance) scheduling system based on nearby scheduling, quality priority, cost priority and other strategies. edge server).
HTTP(Hypertext Transfer Protocol,超文本传输协议)调度是CDN调度系统的一种常见调度方式。现有HTTP调度的调度策略通常包括以下原则中的一种或者多种:就近原则、质量原则、成本原则等,调度粒度一般到区域,区域通常以省(或直辖市)和运营商划分得到的,比如深圳市电信、深圳移动、广东省电信等均为不同的区域,这些区域加上请求域名作为调度单元,也即相同区域加上相同请求域名会得到相同应答。然而这种CDN调度方法的调度粒度还不够精细,无法满足用户的精细化调度需求。HTTP (Hypertext Transfer Protocol, Hypertext Transfer Protocol) scheduling is a common scheduling method in a CDN scheduling system. The scheduling strategy of the existing HTTP scheduling usually includes one or more of the following principles: the principle of proximity, the principle of quality, the principle of cost, etc., the scheduling granularity is generally to the region, and the region is usually divided into provinces (or municipalities) and operators. For example, Shenzhen Telecom, Shenzhen Mobile, Guangdong Telecom, etc. are all different regions. These regions plus the request domain name are used as scheduling units, that is, the same region plus the same request domain name will get the same response. However, the scheduling granularity of this CDN scheduling method is not fine enough to meet the refined scheduling requirements of users.
发明内容SUMMARY OF THE INVENTION
本发明的目的在于提供一种CDN调度方法、装置、系统及计算机可读存储介质,以提高调度粒度的精细度,从而缓解用户的精细化调度需求。The purpose of the present invention is to provide a CDN scheduling method, device, system and computer-readable storage medium, so as to improve the fineness of the scheduling granularity, thereby alleviating the refined scheduling requirements of users.
本发明提供了一种CDN调度方法,包括:The present invention provides a CDN scheduling method, including:
当接收到客户端的访问请求时,获取所述访问请求中携带的目标调度需求信息;其中,所述目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;When receiving the access request from the client, obtain the target scheduling requirement information carried in the access request; wherein, the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area;
根据所述目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定所述访问请求对应的目标边缘服务器;Determine the target edge server corresponding to the access request according to the target scheduling requirement information and the preset matching relationship between the edge server and the scheduling requirement information;
将所述客户端调度至所述目标边缘服务器。The client is scheduled to the target edge server.
进一步地,所述获取所述访问请求中携带的目标调度需求信息,包括:Further, the obtaining target scheduling requirement information carried in the access request includes:
如果所述访问请求为HTTP请求,则从所述HTTP请求中解析出HTTP头部信息,并将所述HTTP头部信息作为所述HTTP请求对应的目标调度需求信息;If the access request is an HTTP request, the HTTP header information is parsed from the HTTP request, and the HTTP header information is used as the target scheduling requirement information corresponding to the HTTP request;
其中,所述目标调度需求信息中携带请求域名对应的目标域名信息以及调度指标信息,所述调度指标信息包括统一资源标识符URI路径、用户代理和资源文件类型中的一种或多种。The target scheduling requirement information carries target domain name information corresponding to the requested domain name and scheduling index information, and the scheduling index information includes one or more of a uniform resource identifier URI path, a user agent, and a resource file type.
进一步地,所述匹配关系包括请求域名与调度策略的第一对应关系和匹配结果与调度组的第二对应关系;所述根据所述目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定所述访问请求对应的目标边缘服务器,包括:Further, the matching relationship includes the first corresponding relationship between the request domain name and the scheduling policy and the second corresponding relationship between the matching result and the scheduling group; Matching relationship, determine the target edge server corresponding to the access request, including:
根据所述第一对应关系确定所述目标域名信息对应的目标调度策略;其中,所述目标调度策略包括与所述调度指标信息对应的目标匹配规则;Determine a target scheduling policy corresponding to the target domain name information according to the first correspondence; wherein, the target scheduling policy includes a target matching rule corresponding to the scheduling index information;
将所述调度指标信息与对应的目标匹配规则进行匹配,得到目标匹配结果;Matching the scheduling indicator information with the corresponding target matching rule to obtain a target matching result;
根据所述第二对应关系确定所述目标匹配结果对应的目标调度组;Determine the target scheduling group corresponding to the target matching result according to the second correspondence;
从所述目标调度组的多个边缘服务器中选取目标边缘服务器。A target edge server is selected from a plurality of edge servers in the target scheduling group.
进一步地,所述目标调度策略还包括多个目标匹配规则的优先级顺序;所述将所述调度指标信息与对应的目标匹配规则进行匹配,得到目标匹配结果,包括:Further, the target scheduling policy further includes the priority order of multiple target matching rules; the matching of the scheduling index information with the corresponding target matching rules to obtain a target matching result, including:
按照所述优先级顺序依次对所述目标调度信息进行相应目标匹配规则的匹配;According to the priority order, the target scheduling information is sequentially matched with the corresponding target matching rules;
当匹配失败时,继续对所述目标调度信息进行下一目标匹配规则的匹配;When the matching fails, continue to match the target scheduling information with the next target matching rule;
当匹配成功或者完成各所述目标匹配规则的匹配时,确定目标匹配结果。When the matching is successful or the matching of each of the target matching rules is completed, the target matching result is determined.
进一步地,所述调度指标信息包括URI路径、用户代理和资源文件类型,所述目标匹配规则包括与所述URI路径对应的URI路径匹配规则、与所述用户代理对应的用户代理匹配规则和与所述资源文件类型对应的资源文件类型匹配规则,所述优先级顺序包括所述URI路径匹配规则的优先级高于所述用户代理匹配规则的优先级,且所述用户代理匹配规则的优先级高于所述资源文件类型匹配规则的优先级。Further, the scheduling indicator information includes a URI path, a user agent, and a resource file type, and the target matching rule includes a URI path matching rule corresponding to the URI path, a user agent matching rule corresponding to the user agent, and a matching rule corresponding to the user agent. The resource file type matching rule corresponding to the resource file type, the priority order includes that the priority of the URI path matching rule is higher than the priority of the user agent matching rule, and the priority of the user agent matching rule Higher priority than the resource file type matching rule.
进一步地,所述从所述目标调度组的多个边缘服务器中选取目标边缘服务器,包括:Further, the selecting a target edge server from multiple edge servers in the target scheduling group includes:
采用随机方式或者哈希算法从所述目标调度组的多个边缘服务器中选取目标边缘服务器。A target edge server is selected from a plurality of edge servers in the target scheduling group in a random manner or a hash algorithm.
进一步地,所述将所述客户端调度至所述目标边缘服务器,包括:Further, the scheduling of the client to the target edge server includes:
根据所述目标边缘服务器的IP地址构建所述目标边缘服务器的统一资源定位符;constructing a uniform resource locator of the target edge server according to the IP address of the target edge server;
向所述客户端返回携带有所述目标边缘服务器的统一资源定位符的应答消息,以使所述客户端基于所述目标边缘服务器的统一资源定位符访问所述目标边缘服务器。A response message carrying the uniform resource locator of the target edge server is returned to the client, so that the client can access the target edge server based on the uniform resource locator of the target edge server.
本发明提供了一种CDN调度装置,包括:The present invention provides a CDN scheduling device, comprising:
获取模块,用于当接收到客户端的访问请求时,获取所述访问请求中携带的目标调度需求信息;其中,所述目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;an obtaining module, configured to obtain the target scheduling requirement information carried in the access request when receiving the access request from the client; wherein, the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area ;
确定模块,用于根据所述目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定所述访问请求对应的目标边缘服务器;a determining module, configured to determine a target edge server corresponding to the access request according to the target scheduling requirement information and a preset matching relationship between the edge server and the scheduling requirement information;
调度模块,用于将所述客户端调度至所述目标边缘服务器。A scheduling module, configured to schedule the client to the target edge server.
本发明提供了一种边缘调度服务器,包括存储器、处理器,所述存储器中存储有可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现上述的CDN调度方法。The present invention provides an edge scheduling server, comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, and the processor implements the above CDN scheduling method when executing the computer program .
本发明提供了一种CDN调度系统,包括中心调度服务器和上述的边缘调度服务器,所述边缘调度服务器与所述中心调度服务器连接;The present invention provides a CDN scheduling system, comprising a central scheduling server and the above-mentioned edge scheduling server, wherein the edge scheduling server is connected with the central scheduling server;
所述边缘调度服务器用于从所述中心调度服务器获取边缘服务器与调度需求信息的匹配关系。The edge scheduling server is configured to acquire the matching relationship between the edge server and the scheduling requirement information from the central scheduling server.
本发明提供了一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器运行时执行是上述的CDN调度方法。The present invention provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, it is the above-mentioned CDN scheduling method.
本发明提供的CDN调度方法、装置、系统及计算机可读存储介质中,该方法包括:当接收到客户端的访问请求时,获取该访问请求中携带的目标调度需求信息;其中,目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;根据该目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定该访问请求对应的目标边缘服务器;将客户端调度至该目标边缘服务器。该方法通过获取客户端的访问请求中携带的目标调度需求信息,基于该目标调度需求信息确定目标边缘服务器,进而将该客户端调度至目标边缘服务器,实现了针对目标调度需求信息的调度,由于目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元,因此与现有技术中仅能针对区域和请求域名作出调度相比,提高了调度粒度的精细度,从而缓解了用户的精细化调度需求。In the CDN scheduling method, device, system and computer-readable storage medium provided by the present invention, the method includes: when an access request from a client is received, acquiring target scheduling requirement information carried in the access request; wherein, the target scheduling requirement information The indicated scheduling unit is smaller than the scheduling unit composed of the request domain name and the area; according to the target scheduling requirement information and the matching relationship between the preset edge server and the scheduling requirement information, determine the target edge server corresponding to the access request; schedule the client to the target edge server. The method obtains the target scheduling requirement information carried in the access request of the client, determines the target edge server based on the target scheduling requirement information, and then schedules the client to the target edge server, so as to realize the scheduling according to the target scheduling requirement information. The scheduling unit indicated by the scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area, so compared with the prior art, which can only be scheduled for the area and the request domain name, the fineness of the scheduling granularity is improved, thereby alleviating the user's worries. Refinement scheduling requirements.
附图说明Description of drawings
为了更清楚地说明本发明具体实施方式或现有技术中的技术方案,下面将对具体实施方式或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本发明的一些实施方式,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to illustrate the specific embodiments of the present invention or the technical solutions in the prior art more clearly, the following briefly introduces the accompanying drawings that need to be used in the description of the specific embodiments or the prior art. Obviously, the accompanying drawings in the following description The drawings are some embodiments of the present invention. For those of ordinary skill in the art, other drawings can also be obtained based on these drawings without creative efforts.
图1为本发明实施例提供的一种CDN调度方法的应用环境示意图;FIG. 1 is a schematic diagram of an application environment of a CDN scheduling method provided by an embodiment of the present invention;
图2为本发明实施例提供的一种CDN调度方法的流程示意图;FIG. 2 is a schematic flowchart of a CDN scheduling method provided by an embodiment of the present invention;
图3为图2中步骤S204的一种实现方法的流程示意图;3 is a schematic flowchart of a method for implementing step S204 in FIG. 2;
图4为本发明实施例提供的另一种CDN调度方法的流程示意图;FIG. 4 is a schematic flowchart of another CDN scheduling method provided by an embodiment of the present invention;
图5为本发明实施例提供的一种CDN调度装置的结构示意图;FIG. 5 is a schematic structural diagram of a CDN scheduling apparatus provided by an embodiment of the present invention;
图6为本发明实施例提供的一种边缘调度服务器的结构示意图;FIG. 6 is a schematic structural diagram of an edge scheduling server according to an embodiment of the present invention;
图7为本发明实施例提供的一种CDN调度系统的结构示意图。FIG. 7 is a schematic structural diagram of a CDN scheduling system according to an embodiment of the present invention.
具体实施方式Detailed ways
下面将结合实施例对本发明的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The technical solutions of the present invention will be clearly and completely described below with reference to the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, but not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.
参见图1所示的一种CDN调度方法的应用环境示意图,在本发明提供的CDN调度方法的一个实施例中,其应用环境包括:客户端、DNS系统、HTTP调度系统和边缘服务器,其中,HTTP调度系统为采用HTTP调度(HTTP调度也称为HTTP302调度)方式的调度系统。HTTP302调度具有精准度高、灵活性好、生效快、难被劫持等优点,较适用于大文件,视频文件等资源的调度。Referring to the schematic diagram of the application environment of a CDN scheduling method shown in FIG. 1, in an embodiment of the CDN scheduling method provided by the present invention, the application environment includes: a client, a DNS system, an HTTP scheduling system, and an edge server, wherein, The HTTP scheduling system is a scheduling system that adopts HTTP scheduling (HTTP scheduling is also called HTTP302 scheduling). HTTP302 scheduling has the advantages of high accuracy, good flexibility, quick effect, and is difficult to be hijacked. It is more suitable for scheduling resources such as large files and video files.
HTTP302调度的原理如下:首先客户端通过DNS系统访问到HTTP调度系统,HTTP调度系统选择最优的边缘服务器,用该边缘服务器的IP(Internet Protocol,网络之间互连的协议)地址组装HTTP响应头的URL(Uniform Resource Locator,统一资源定位符),将该URL通过状态码为302的方式响应给客户端,然后客户端根据该URL发起连接。需要说明的是,与客户端进行直接交互的服务器均为边缘服务器,也即HTTP调度系统中与客户端进行直接交互的调度服务器也属于边缘服务器(这里称之为边缘调度服务器)。The principle of HTTP302 scheduling is as follows: First, the client accesses the HTTP scheduling system through the DNS system, the HTTP scheduling system selects the optimal edge server, and assembles the HTTP response with the IP (Internet Protocol) address of the edge server. The URL of the header (Uniform Resource Locator, Uniform Resource Locator), the URL is responded to the client through the status code of 302, and then the client initiates a connection according to the URL. It should be noted that the servers that directly interact with the client are all edge servers, that is, the scheduling server that directly interacts with the client in the HTTP scheduling system also belongs to the edge server (herein referred to as the edge scheduling server).
具体地,如图1所示,HTTP302调度的流程如下:流程1,客户端向DNS系统发送DNS请求,该DNS请求包括请求域名;流程2,DNS系统基于请求域名返回调度服务器IP地址;流程3,客户端基于调度服务器IP地址向HTTP调度系统发送HTTP请求,该HTTP请求包括请求URL,该请求URL指向客户端请求访问的资源;流程4,HTTP调度系统返回状态码为302的应答消息(即302应答),该应答消息包括指向目标边缘服务器的边缘服务器URL;流程5,客户端基于边缘服务器URL向对应的边缘服务器(即目标边缘服务器)发送请求消息,该请求消息包括请求URL;流程6,边缘服务器向客户端返回与请求URL对应的内容应答。本发明实施例主要涉及客户端与HTTP调度系统之间的交互过程,也即主要涉及上述流程中的流程3和流程4。Specifically, as shown in Figure 1, the process of HTTP302 scheduling is as follows: Process 1, the client sends a DNS request to the DNS system, and the DNS request includes the requested domain name; Process 2, the DNS system returns the IP address of the scheduling server based on the requested domain name; Process 3 , the client sends an HTTP request to the HTTP scheduling system based on the IP address of the scheduling server, the HTTP request includes a request URL, and the request URL points to the resource that the client requests to access; process 4, the HTTP scheduling system returns a response message with a status code of 302 (that is, 302 response), the response message includes the edge server URL pointing to the target edge server; process 5, the client sends a request message to the corresponding edge server (that is, the target edge server) based on the edge server URL, and the request message includes the request URL; process 6 , the edge server returns the content response corresponding to the request URL to the client. The embodiments of the present invention mainly relate to the interaction process between the client and the HTTP scheduling system, that is, mainly relate to the process 3 and the process 4 in the above process.
现有技术中,HTTP调度系统的调度粒度一般到区域,区域加上请求域名作为调度单元,调度粒度还不够精细。本发明实施例通过边缘调度服务器分析HTTP请求中携带的调度需求信息,可以实现针对目标调度需求信息的调度,提高调度粒度的精细度。In the prior art, the scheduling granularity of the HTTP scheduling system generally depends on the area, and the area plus the request domain name is used as the scheduling unit, and the scheduling granularity is not fine enough. In the embodiment of the present invention, by analyzing the scheduling requirement information carried in the HTTP request by the edge scheduling server, the scheduling for the target scheduling requirement information can be realized, and the fineness of the scheduling granularity can be improved.
为便于对本实施例进行理解,首先对本发明实施例所公开的一种CDN调度方法进行详细介绍。To facilitate understanding of this embodiment, a CDN scheduling method disclosed in the embodiment of the present invention is first introduced in detail.
图2为本发明实施例提供的一种CDN调度方法的流程示意图,该方法可以由上述HTTP调度系统中的边缘调度服务器执行。如图2所示,该CDN调度方法包括以下几个步骤:FIG. 2 is a schematic flowchart of a CDN scheduling method according to an embodiment of the present invention. The method may be executed by an edge scheduling server in the above-mentioned HTTP scheduling system. As shown in Figure 2, the CDN scheduling method includes the following steps:
步骤S202,当接收到客户端的访问请求时,获取该访问请求中携带的目标调度需求信息;其中,目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元。Step S202, when an access request from the client is received, obtain target scheduling requirement information carried in the access request; wherein, the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area.
本实施例中,调度单元指能够做出不同调度应答的最小单位,即具有相同调度单元的多个访问请求所对应的调度应答是相同的。上述区域可以是以省(或直辖市)和运营商划分得到的。In this embodiment, the scheduling unit refers to the smallest unit capable of making different scheduling responses, that is, the scheduling responses corresponding to multiple access requests having the same scheduling unit are the same. The above areas can be divided into provinces (or municipalities directly under the Central Government) and operators.
在一些可能的实施例中,上述访问请求为HTTP请求,上述步骤S202包括:从HTTP请求中解析出HTTP头部信息,并将该HTTP头部信息作为该HTTP请求对应的目标调度需求信息;其中,目标调度需求信息包括请求域名对应的目标域名信息以及调度指标信息,也即目标调度需求信息所指示的调度单元由请求域名和调度指标信息组成。该调度指标信息可以根据实际需求选取,调度指标信息可以是任意的HTTP头部信息或者自定义的HTTP头部信息。In some possible embodiments, the above-mentioned access request is an HTTP request, and the above-mentioned step S202 includes: parsing out the HTTP header information from the HTTP request, and using the HTTP header information as the target scheduling requirement information corresponding to the HTTP request; wherein , the target scheduling demand information includes target domain name information corresponding to the request domain name and scheduling index information, that is, the scheduling unit indicated by the target scheduling demand information is composed of the request domain name and the scheduling index information. The scheduling indicator information can be selected according to actual requirements, and the scheduling indicator information can be any HTTP header information or self-defined HTTP header information.
具体地,HTTP头部信息包括请求头部信息,请求头部信息包括用户代理、资源文件类型和请求URL等,请求URL包括请求域名和URI(Uniform Resource Identifier,统一资源标识符);其中,用户代理即User-Agent;资源文件类型包括图片、视频文件、普通文本等。基于此,在一些可能的实现方式中,将请求头部信息作为上述目标调度需求信息,上述调度指标信息包括URI路径、User-Agent和资源文件类型中的一种或多种。当调度指标信息包括User-Agent时,具体还可以将User-Agent中的客户端类型作为调度指标信息。Specifically, the HTTP header information includes request header information, the request header information includes user agent, resource file type, and request URL, etc., and the request URL includes the request domain name and URI (Uniform Resource Identifier); wherein, the user Agent is User-Agent; resource file types include pictures, video files, ordinary text, etc. Based on this, in some possible implementations, the request header information is used as the target scheduling requirement information, and the scheduling indicator information includes one or more of URI path, User-Agent, and resource file type. When the scheduling indicator information includes the User-Agent, specifically, the client type in the User-Agent may be used as the scheduling indicator information.
步骤S204,根据上述目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定上述访问请求对应的目标边缘服务器。Step S204: Determine the target edge server corresponding to the access request according to the target scheduling requirement information and the preset matching relationship between the edge server and the scheduling requirement information.
基于上述目标调度需求信息和上述匹配关系来确定上述访问请求对应的目标边缘服务器,例如根据URI路径、User-Agent和资源文件类型等确定对应的目标边缘服务器,能够满足某些特定场景下特定的调度需求,可以做到同一个请求域名同一个区域返回完全不同的应答,实现更精确的、更细粒度的、特殊业务场景下的调度,弥补传统HTTP302调度方法的不足。The target edge server corresponding to the access request is determined based on the above target scheduling requirement information and the above matching relationship. For example, the corresponding target edge server is determined according to the URI path, User-Agent and resource file type, etc., which can meet the requirements of certain specific scenarios. Scheduling requirements, the same request domain name and the same area can return completely different responses, to achieve more accurate, finer-grained scheduling in special business scenarios, and make up for the shortcomings of traditional HTTP302 scheduling methods.
步骤S206,将上述客户端调度至上述目标边缘服务器。Step S206, the client is scheduled to the target edge server.
在一种可能的实现方式中,步骤S206包括:根据目标边缘服务器的IP地址构建目标边缘服务器的统一资源定位符;向客户端返回携带有目标边缘服务器的统一资源定位符的应答消息,以使该客户端基于目标边缘服务器的统一资源定位符访问该目标边缘服务器。In a possible implementation manner, step S206 includes: constructing a uniform resource locator of the target edge server according to the IP address of the target edge server; returning a response message carrying the uniform resource locator of the target edge server to the client, so that the The client accesses the target edge server based on the uniform resource locator of the target edge server.
可选地,边缘调度服务器可以用上述目标边缘服务器的IP地址组装HTTP响应头的Location应答字段的URL,通过状态码为302的方式响应给客户端。这样客户端基于该组装后的URL,能够访问到目标边缘服务器。Optionally, the edge scheduling server may use the IP address of the target edge server to assemble the URL of the Location response field of the HTTP response header, and respond to the client in a manner of status code 302. In this way, the client can access the target edge server based on the assembled URL.
本发明实施例中,该方法通过获取客户端的访问请求中携带的目标调度需求信息,基于该目标调度需求信息确定目标边缘服务器,进而将该客户端调度至目标边缘服务器,实现了针对目标调度需求信息的调度,由于目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元,因此与现有技术中仅能针对区域和请求域名作出调度相比,提高了调度粒度的精细度,从而缓解了用户的精细化调度需求。In the embodiment of the present invention, the method obtains the target scheduling requirement information carried in the access request of the client, determines the target edge server based on the target scheduling requirement information, and then schedules the client to the target edge server, thereby realizing the target scheduling requirement. The scheduling of information, because the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area, so compared with the prior art, which can only be scheduled for the area and the request domain name, the fineness of the scheduling granularity is improved. , thereby alleviating the user's refined scheduling requirements.
本发明实施例提供了一种上述步骤S204的可选实现方式,在该实现方式中,上述目标调度需求信息包括请求域名对应的目标域名信息以及调度指标信息,上述匹配关系包括请求域名与调度策略的第一对应关系和匹配结果与调度组的第二对应关系。如图3所示,步骤S204包括以下几个子步骤:The embodiment of the present invention provides an optional implementation manner of the above step S204. In this implementation manner, the target scheduling requirement information includes target domain name information corresponding to the request domain name and scheduling index information, and the matching relationship includes the request domain name and the scheduling policy. The first corresponding relationship and the matching result of , and the second corresponding relationship of the scheduling group. As shown in Figure 3, step S204 includes the following sub-steps:
步骤S302,根据上述第一对应关系确定目标域名信息对应的目标调度策略;其中,目标调度策略包括与调度指标信息对应的目标匹配规则。Step S302 , determining a target scheduling policy corresponding to the target domain name information according to the first corresponding relationship; wherein, the target scheduling policy includes a target matching rule corresponding to the scheduling index information.
边缘调度服务器内存储有配置的调度策略,调度策略的配置粒度可以是域名,即每个域名有自己的调度策略,如果一个域名没有配置调度策略,说明该域名不需要采用这种调度方法。调度策略包括与调度指标信息对应的一个或多个匹配规则,这里将请求域名对应的调度策略称为目标调度策略,将目标调度策略所包括的匹配规则称为目标匹配规则。边缘调度服务器可以通过查找上述第一对应关系来确定上述目标域名信息对应的目标调度策略。The edge scheduling server stores the configured scheduling policy. The configuration granularity of the scheduling policy can be the domain name, that is, each domain name has its own scheduling policy. If a domain name does not have a scheduling policy configured, it means that the domain name does not need to use this scheduling method. The scheduling policy includes one or more matching rules corresponding to the scheduling index information. Here, the scheduling policy corresponding to the request domain name is called the target scheduling policy, and the matching rules included in the target scheduling policy are called the target matching rule. The edge scheduling server may determine the target scheduling policy corresponding to the target domain name information by looking up the first correspondence.
进一步可选地,当目标调度策略包括多个目标匹配规则时,目标调度策略还包括多个目标匹配规则的优先级顺序。需要说明的是,该优先级顺序可以根据实际需求设置。Further optionally, when the target scheduling policy includes multiple target matching rules, the target scheduling policy further includes the priority order of the multiple target matching rules. It should be noted that the priority order can be set according to actual requirements.
在一种可选的实现方式中,调度指标信息包括URI路径、用户代理和资源文件类型;目标匹配规则包括与URI路径对应的URI路径匹配规则、与用户代理对应的用户代理匹配规则和与资源文件类型对应的资源文件类型匹配规则;优先级顺序包括URI路径匹配规则的优先级高于用户代理匹配规则的优先级,且用户代理匹配规则的优先级高于资源文件类型匹配规则的优先级。In an optional implementation manner, the scheduling indicator information includes a URI path, a user agent, and a resource file type; the target matching rule includes a URI path matching rule corresponding to the URI path, a user agent matching rule corresponding to the user agent, and a resource matching rule corresponding to the resource The resource file type matching rule corresponding to the file type; the priority order includes that the priority of the URI path matching rule is higher than the priority of the user agent matching rule, and the priority of the user agent matching rule is higher than the priority of the resource file type matching rule.
步骤S304,将上述调度指标信息与对应的目标匹配规则进行匹配,得到目标匹配结果。Step S304: Match the above scheduling index information with the corresponding target matching rule to obtain a target matching result.
在一种可选的实现方式中,当目标匹配规则仅为一个时,直接将上述调度指标信息与该目标匹配规则进行匹配,得到目标匹配结果,该目标匹配结果包括与该目标匹配规则相匹配或者匹配失败。In an optional implementation manner, when there is only one target matching rule, the above-mentioned scheduling indicator information is directly matched with the target matching rule to obtain a target matching result, where the target matching result includes matching with the target matching rule Or the match fails.
当目标匹配规则仅为多个时,上述目标调度策略还包括多个目标匹配规则的优先级顺序,此时可以按照该优先级顺序依次对目标调度信息进行相应目标匹配规则的匹配;当匹配失败时,继续对该目标调度信息进行下一目标匹配规则的匹配;当匹配成功或者完成各目标匹配规则的匹配时,确定目标匹配结果。目标匹配结果包括与某一目标匹配规则相匹配或者匹配失败。需要说明的是,每个目标匹配规则可以是一个规则,也可以包括多个子规则,目标匹配结果可以细化为与某个子规则相匹配。When there are only a plurality of target matching rules, the above-mentioned target scheduling policy also includes the priority order of the plurality of target matching rules. At this time, the target scheduling information can be matched with the corresponding target matching rules in sequence according to the priority order; when the matching fails When the target scheduling information is matched, the next target matching rule is continued to be matched; when the matching is successful or the matching of each target matching rule is completed, the target matching result is determined. The target matching result includes matching with a certain target matching rule or failing to match. It should be noted that each target matching rule may be a rule or may include multiple sub-rules, and the target matching result may be refined to match a certain sub-rule.
步骤S306,根据上述第二对应关系确定目标匹配结果对应的目标调度组。Step S306: Determine the target scheduling group corresponding to the target matching result according to the second corresponding relationship.
在配置匹配规则时,会指定每种匹配规则对应的调度组(如果包括多个子规则,则每个子规则对应一个调度组),表明如果匹配了这个匹配规则,则调度到这个调度组上,也即当目标匹配结果为与某一目标匹配规则相匹配时,目标调度组为该目标匹配规则对应的调度组。另外,每个域名都有一个默认调度组,如果没有匹配到任何匹配规则(即匹配失败),则确定目标调度组为默认调度组。When configuring a matching rule, the scheduling group corresponding to each matching rule will be specified (if multiple sub-rules are included, each sub-rule corresponds to a scheduling group), indicating that if the matching rule is matched, it will be scheduled to this scheduling group. That is, when the target matching result matches a certain target matching rule, the target scheduling group is the scheduling group corresponding to the target matching rule. In addition, each domain name has a default scheduling group. If no matching rule is matched (that is, the matching fails), the target scheduling group is determined as the default scheduling group.
调度组是一组服务节点(边缘服务器)的集合,这些节点存放有用户要访问的内容,如果内容没有,节点会向客户源站拉取并缓存。调度组可以灵活配置,根据不同的业务类型配置不同的节点,比如针对视频文件配置带宽大的节点,针对PK(Player Killing,比赛/挑战)域名配置带宽较小但是速度快的BGP(Border Gateway Protocol,边界网关协议)节点。调度组可以但不限于用k1、k2、k3等表示。A scheduling group is a collection of service nodes (edge servers) that store the content that users want to access. If the content is not available, the nodes will pull and cache the content from the customer origin site. The scheduling group can be flexibly configured, and different nodes can be configured according to different business types. For example, configure nodes with large bandwidth for video files, and configure BGP (Border Gateway Protocol) with small bandwidth but fast speed for PK (Player Killing, competition/challenge) domain names. , Border Gateway Protocol) node. The scheduling group can be represented by, but not limited to, k1, k2, k3, and so on.
例如,调度策略可以配置为:优先级方面,URI路径匹配规则优先级最高,用户代理匹配规则次之;URI路径匹配规则包括URI子规则1和URI子规则2,URI子规则1为:如果是/rule1开头,则调度到调度组k1;URI子规则2为:如果是/rule2开头,则调度到调度组k2。用户代理匹配规则是,如果User-Agent包含bowser123关键字则调度到调度组k3。For example, the scheduling policy can be configured as follows: in terms of priority, the URI path matching rule has the highest priority, followed by the user agent matching rule; the URI path matching rule includes URI sub-rule 1 and URI sub-rule 2, and URI sub-rule 1 is: if yes If it starts with /rule1, it will be scheduled to scheduling group k1; URI sub-rule 2 is: if it starts with /rule2, it will be scheduled to scheduling group k2. The user agent matching rule is that if User-Agent contains the bowser123 keyword, it will be dispatched to dispatch group k3.
步骤S308,从上述目标调度组的多个边缘服务器中选取目标边缘服务器。Step S308, selecting a target edge server from a plurality of edge servers in the above-mentioned target scheduling group.
一旦目标调度组确定,最终做内容应答的目标边缘服务器一定是来自于此调度组内,由于目标调度组包括多个边缘服务器,每次应答只能是一个边缘服务器,所以需要从多个边缘服务器中选一个,可以但不限于采用随机方式或者哈希算法从目标调度组的多个边缘服务器中选取目标边缘服务器。Once the target scheduling group is determined, the target edge server that finally responds to the content must come from this scheduling group. Since the target scheduling group includes multiple edge servers, each response can only be one edge server. If one is selected, the target edge server may be selected from multiple edge servers in the target scheduling group in a random manner or a hash algorithm, but is not limited to.
在一种可能的实现方式中,目标调度组包括的是与边缘服务器对应的IP地址,最终302应答中的IP地址一定是来自于此目标调度组内,由于目标调度组内有多个IP地址,每次应答只能是一个IP地址,所以需要从多个IP地址中选一个,选择的方法可以但不限于是随机或者哈希算法等。In a possible implementation manner, the target scheduling group includes the IP addresses corresponding to the edge servers, and the IP address in the final 302 response must come from this target scheduling group, because there are multiple IP addresses in the target scheduling group , each response can only be one IP address, so one needs to be selected from multiple IP addresses, and the selected method can be but not limited to random or hash algorithm.
为了便于理解,本发明实施例还提供了一种CDN调度方法的具体实现方式,该实现方式中,调度指标信息包括URI路径和用户代理,目标调度策略包括URI路径匹配规则、用户代理匹配规则和优先级顺序,其中,优先级顺序为URI路径匹配规则的优先级高于用户代理匹配规则的优先级。参见图4所示的另一种CDN调度方法的流程示意图,该方法包括以下步骤:For ease of understanding, an embodiment of the present invention also provides a specific implementation of a CDN scheduling method. In this implementation, the scheduling indicator information includes a URI path and a user agent, and the target scheduling policy includes URI path matching rules, user agent matching rules and Priority order, where the priority order is that the priority of the URI path matching rule is higher than the priority of the user agent matching rule. Referring to the schematic flowchart of another CDN scheduling method shown in FIG. 4 , the method includes the following steps:
步骤S402,当接收到客户端的访问请求时,从该访问请求中解析出目标域名信息、URI路径和User-Agent。Step S402, when an access request from the client is received, the target domain name information, the URI path and the User-Agent are parsed from the access request.
步骤S404,根据上述目标域名信息确定目标调度策略,该目标调度策略包括URI路径匹配规则和用户代理匹配规则。Step S404: Determine a target scheduling policy according to the target domain name information, where the target scheduling policy includes a URI path matching rule and a user agent matching rule.
步骤S406,判断URI路径是否匹配URI路径匹配规则。如果否,执行步骤S407;如果是,执行步骤S408。Step S406, judging whether the URI path matches the URI path matching rule. If no, go to step S407; if yes, go to step S408.
步骤S407,判断User-Agent是否匹配用户代理匹配规则。如果是,执行步骤S409;如果否,执行步骤S410。Step S407, judging whether the User-Agent matches the user-agent matching rule. If yes, go to step S409; if not, go to step S410.
步骤S408,确定目标调度组为上述URI路径匹配规则对应的调度组。Step S408, determining that the target scheduling group is the scheduling group corresponding to the above-mentioned URI path matching rule.
步骤S409,确定目标调度组为上述用户代理匹配规则对应的调度组。Step S409, determining that the target scheduling group is the scheduling group corresponding to the above-mentioned user agent matching rule.
步骤S410,确定目标调度组为默认调度组。Step S410, determining the target scheduling group as the default scheduling group.
步骤S412,随机选择一个目标调度组内的IP地址,用该IP地址合成HTTP302应答URL,并返回至客户端。Step S412, randomly select an IP address in the target scheduling group, use the IP address to synthesize the HTTP302 response URL, and return it to the client.
本实施例中,基于HTTP头部信息中目标域名信息、URI路径和User-Agent的调度可以让调度更精确,更有针对性,可以弥补传统HTTP302调度的不足。经过验证,针对某些访问比较差的客户端,应用该方法后,访问效果明显提高。In this embodiment, the scheduling based on the target domain name information, the URI path and the User-Agent in the HTTP header information can make the scheduling more accurate and targeted, and can make up for the shortcomings of the traditional HTTP302 scheduling. After verification, for some clients with poor access, after applying this method, the access effect is obviously improved.
本发明实施例还提供了一个应用上述CDN调度方法的具体示例,以下结合具体的调度策略说明302应答是如何返回的。假定请求域名是123.com,其调度策略如下:URI路径匹配规则的优先级高于用户代理匹配规则的优先级,URI路径匹配规则为URI在/video路径下请求调度到k1组,用户代理匹配规则为User-Agent中包含kscdn关键字的调度到k2组,默认调度组是k0。该调度策略的一种表示方法如下:The embodiment of the present invention also provides a specific example of applying the above CDN scheduling method. The following describes how the 302 response is returned in conjunction with a specific scheduling policy. Assuming that the requested domain name is 123.com, the scheduling policy is as follows: the priority of the URI path matching rule is higher than that of the user agent matching rule, the URI path matching rule is that the URI request is scheduled to group k1 under the /video path, and the user agent matches The rule is that User-Agent containing the kscdn keyword is scheduled to group k2, and the default scheduling group is k0. A representation of this scheduling policy is as follows:
同时假定k0调度组下拥有的节点IP地址是1.1.1.1和2.2.2.2,k1调度组下拥有的节点IP地址是3.3.3.3和4.4.4.4,k2调度组下拥有的节点IP地址是5.5.5.5和6.6.6.6,那么不同的访问请求得到的应答分别如下:At the same time, it is assumed that the IP addresses of the nodes under the k0 scheduling group are 1.1.1.1 and 2.2.2.2, the IP addresses of the nodes under the k1 scheduling group are 3.3.3.3 and 4.4.4.4, and the node IP addresses under the k2 scheduling group are 5.5. 5.5 and 6.6.6.6, the responses to different access requests are as follows:
第一种情况,请求URI是/video/abc.mp4(匹配URI路径匹配规则),由于URI优先级最高,所以不管User-Agent是否匹配,此访问请求将由k1调度组内的IP地址合成302应答。In the first case, the request URI is /video/abc.mp4 (matching the URI path matching rule). Since the URI has the highest priority, regardless of whether the User-Agent matches or not, the access request will be combined with the IP addresses in the k1 scheduling group to respond with 302 .
访问请求:curl http://123.com/video/abc.mp4-H"User-Agent:kscdn-client"。Access request: curl http://123.com/video/abc.mp4-H"User-Agent:kscdn-client".
302应答:http://3.3.3.3/123.com/video/abc.mp4(3.3.3.3和4.4.4.4随机)。302 response: http://3.3.3.3/123.com/video/abc.mp4 (3.3.3.3 and 4.4.4.4 random).
表明此访问请求被调往3.3.3.3这台边缘服务器上。Indicates that the access request is transferred to the edge server 3.3.3.3.
第二种情况,请求URI是/game/xyz.jpg(不匹配URI路径匹配规则),User-Agent包含关键字kscdn(匹配用户代理匹配规则),此访问请求将由k2调度组内的IP地址合成302应答。In the second case, the request URI is /game/xyz.jpg (does not match the URI path matching rule), User-Agent contains the keyword kscdn (matches the user agent matching rule), this access request will be synthesized by the IP addresses in the k2 scheduling group 302 response.
访问请求:curl http://123.com/game/xyz.jpg-H"User-Agent:kscdn-client"。Access request: curl http://123.com/game/xyz.jpg-H"User-Agent:kscdn-client".
302应答:http://5.5.5.5/123.com/game/xyz.jpg(5.5.5.5和6.6.6.6随机)。302 response: http://5.5.5.5/123.com/game/xyz.jpg (5.5.5.5 and 6.6.6.6 random).
表明此访问请求被调往5.5.5.5这台边缘服务器上。Indicates that the access request is transferred to the edge server 5.5.5.5.
第三种情况,请求URI是/game/xyz.jpg,User-Agent中不包括kscdn关键字,两种规则都不匹配,此时由默认调度组k0内的IP地址合成302应答。In the third case, the request URI is /game/xyz.jpg, the kscdn keyword is not included in the User-Agent, and the two rules do not match. In this case, the IP address in the default scheduling group k0 is synthesized with a 302 response.
访问请求:curl http://123.com/game/xyz.jpg-H"User-Agent:xxxxyyyyzzz"。Access request: curl http://123.com/game/xyz.jpg-H"User-Agent:xxxxyyyyzzz".
302应答:http://1.1.1.1/123.com/game/xyz.jpg(1.1.1.1和2.2.2.2随机)。302 response: http://1.1.1.1/123.com/game/xyz.jpg (1.1.1.1 and 2.2.2.2 random).
表明此访问请求被调往1.1.1.1这台边缘服务器上。Indicates that the access request is transferred to the edge server 1.1.1.1.
由此可以实现,同一个域名的访问请求调度到不同的节点(边缘服务器),或者同一个域名下同一个访问资源(请求URL)由于客户端不同,而调度到不同的节点,这些规则灵活组合应用可以满足特殊业务的需求。In this way, access requests for the same domain name are scheduled to different nodes (edge servers), or the same access resource (request URL) under the same domain name is scheduled to different nodes due to different clients. These rules are flexibly combined. Applications can meet the needs of special business.
综上,本实施例提供的CDN调度方法,调度粒度更细,即使是同一个区域的同一个域名,根据客户端、访问资源等不同因素可以调度到不同的节点(边缘服务器)上。To sum up, the CDN scheduling method provided in this embodiment has finer scheduling granularity. Even the same domain name in the same area can be scheduled to different nodes (edge servers) according to different factors such as clients and access resources.
本发明实施例还提供了一种CDN调度装置,该CDN调度装置主要用于执行本发明实施例上述内容所提供的CDN调度方法,以下对本发明实施例提供的CDN调度装置做具体介绍。An embodiment of the present invention further provides a CDN scheduling apparatus, which is mainly used to execute the CDN scheduling method provided by the above content of the embodiment of the present invention. The following will introduce the CDN scheduling apparatus provided by the embodiment of the present invention.
参见图5所示的一种CDN调度装置的结构示意图,该装置包括:Referring to the schematic structural diagram of a CDN scheduling apparatus shown in FIG. 5, the apparatus includes:
获取模块52,用于当接收到客户端的访问请求时,获取该访问请求中携带的目标调度需求信息;其中,目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;The obtaining module 52 is used to obtain the target scheduling requirement information carried in the access request when receiving the access request of the client; wherein, the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit formed by the request domain name and the area;
确定模块54,用于根据目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定访问请求对应的目标边缘服务器;The determining module 54 is configured to determine the target edge server corresponding to the access request according to the target scheduling requirement information and the preset matching relationship between the edge server and the scheduling requirement information;
调度模块56,用于将客户端调度至目标边缘服务器。The scheduling module 56 is configured to schedule the client to the target edge server.
本实施例中,获取模块52当接收到客户端的访问请求时,获取该访问请求中携带的目标调度需求信息;其中,目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元;确定模块54根据该目标调度需求信息和预先设置的边缘服务器与调度需求信息的匹配关系,确定该访问请求对应的目标边缘服务器;调度模块56将客户端调度至该目标边缘服务器。该装置通过获取客户端的访问请求中携带的目标调度需求信息,基于该目标调度需求信息确定目标边缘服务器,进而将该客户端调度至目标边缘服务器,实现了针对目标调度需求信息的调度,由于目标调度需求信息所指示的调度单元小于由请求域名和区域组成的调度单元,因此与现有技术中仅能针对区域和请求域名作出调度相比,提高了调度粒度的精细度,从而缓解了用户的精细化调度需求。In this embodiment, when receiving the access request from the client, the obtaining module 52 obtains the target scheduling requirement information carried in the access request; wherein, the scheduling unit indicated by the target scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area The determining module 54 determines the target edge server corresponding to the access request according to the target scheduling requirement information and the matching relationship between the preset edge server and the scheduling requirement information; the scheduling module 56 schedules the client to the target edge server. The device obtains the target scheduling requirement information carried in the client's access request, determines the target edge server based on the target scheduling requirement information, and then schedules the client to the target edge server, thereby realizing the scheduling for the target scheduling requirement information. The scheduling unit indicated by the scheduling requirement information is smaller than the scheduling unit composed of the request domain name and the area. Therefore, compared with the prior art, which can only be scheduled for the area and the request domain name, the fineness of the scheduling granularity is improved, thereby alleviating the user's worries. Refinement scheduling requirements.
可选地,上述获取模块52具体用于:如果访问请求为HTTP请求,则从HTTP请求中解析出HTTP头部信息,并将该HTTP头部信息作为HTTP请求对应的目标调度需求信息;其中,目标调度需求信息中携带请求域名对应的目标域名信息以及调度指标信息,调度指标信息包括URI路径、用户代理和资源文件类型中的一种或多种。Optionally, the above-mentioned obtaining module 52 is specifically configured to: if the access request is an HTTP request, then parse out the HTTP header information from the HTTP request, and use the HTTP header information as the target scheduling requirement information corresponding to the HTTP request; wherein, The target scheduling requirement information carries target domain name information corresponding to the requested domain name and scheduling index information, and the scheduling index information includes one or more of a URI path, a user agent, and a resource file type.
可选地,上述匹配关系包括请求域名与调度策略的第一对应关系和匹配结果与调度组的第二对应关系;上述确定模块54具体用于:根据第一对应关系确定目标域名信息对应的目标调度策略;其中,目标调度策略包括与调度指标信息对应的目标匹配规则;将调度指标信息与对应的目标匹配规则进行匹配,得到目标匹配结果;根据第二对应关系确定目标匹配结果对应的目标调度组;从目标调度组的多个边缘服务器中选取目标边缘服务器。Optionally, the above-mentioned matching relationship includes a first corresponding relationship between the request domain name and the scheduling policy and a second corresponding relationship between the matching result and the scheduling group; the above-mentioned determining module 54 is specifically configured to: determine the target corresponding to the target domain name information according to the first corresponding relationship. scheduling strategy; wherein, the target scheduling strategy includes target matching rules corresponding to the scheduling index information; the scheduling index information is matched with the corresponding target matching rules to obtain a target matching result; the target scheduling corresponding to the target matching result is determined according to the second correspondence group; selects the target edge server from multiple edge servers in the target scheduling group.
可选地,上述目标调度策略还包括多个目标匹配规则的优先级顺序;上述确定模块54在将调度指标信息与对应的目标匹配规则进行匹配,得到目标匹配结果时,具体用于:按照优先级顺序依次对目标调度信息进行相应目标匹配规则的匹配;当匹配失败时,继续对目标调度信息进行下一目标匹配规则的匹配;当匹配成功或者完成各目标匹配规则的匹配时,确定目标匹配结果。Optionally, the above-mentioned target scheduling strategy further includes the priority order of multiple target matching rules; when the above-mentioned determining module 54 matches the scheduling index information with the corresponding target matching rules to obtain the target matching result, it is specifically used for: according to the priority. The target scheduling information is matched with the corresponding target matching rules in sequence; when the matching fails, the target scheduling information continues to be matched with the next target matching rule; when the matching is successful or the matching of each target matching rule is completed, the target matching is determined. result.
可选地,上述调度指标信息包括URI路径、用户代理和资源文件类型,目标匹配规则包括与URI路径对应的URI路径匹配规则、与用户代理对应的用户代理匹配规则和与资源文件类型对应的资源文件类型匹配规则,优先级顺序包括URI路径匹配规则的优先级高于用户代理匹配规则的优先级,且用户代理匹配规则的优先级高于资源文件类型匹配规则的优先级。Optionally, the above-mentioned scheduling indicator information includes a URI path, a user agent, and a resource file type, and the target matching rule includes a URI path matching rule corresponding to the URI path, a user agent matching rule corresponding to the user agent, and a resource corresponding to the resource file type. File type matching rules. The priority order includes that the priority of URI path matching rules is higher than that of user agent matching rules, and the priority of user agent matching rules is higher than that of resource file type matching rules.
可选地,上述确定模块54在从目标调度组的多个边缘服务器中选取目标边缘服务器时,具体用于:采用随机方式或者哈希算法从目标调度组的多个边缘服务器中选取目标边缘服务器。Optionally, when selecting the target edge server from the multiple edge servers in the target scheduling group, the above determining module 54 is specifically configured to: select the target edge server from the multiple edge servers in the target scheduling group in a random manner or a hash algorithm. .
可选地,上述调度模块56具体用于:根据目标边缘服务器的IP地址构建目标边缘服务器的统一资源定位符;向客户端返回携带有目标边缘服务器的统一资源定位符的应答消息,以使客户端基于该目标边缘服务器的统一资源定位符访问目标边缘服务器。Optionally, the above-mentioned scheduling module 56 is specifically configured to: construct a uniform resource locator of the target edge server according to the IP address of the target edge server; return a response message carrying the uniform resource locator of the target edge server to the client, so that the client The terminal accesses the target edge server based on the uniform resource locator of the target edge server.
本实施例所提供的装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the device provided in this embodiment are the same as those in the foregoing method embodiments. For brief description, for the parts not mentioned in the device embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
参见图6,本发明实施例还提供一种边缘调度服务器600,包括:处理器60,存储器61,总线62和通信接口63,所述处理器60、通信接口63和存储器61通过总线62连接;处理器60用于执行存储器61中存储的可执行模块,例如计算机程序。6, an embodiment of the present invention further provides an
其中,存储器61可能包含高速随机存取存储器(RAM,Random Access Memory),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。通过至少一个通信接口63(可以是有线或者无线)实现该系统网元与至少一个其他网元之间的通信连接,可以使用互联网,广域网,本地网,城域网等。The
总线62可以是ISA总线、PCI总线或EISA总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图6中仅用一个双向箭头表示,但并不表示仅有一根总线或一种类型的总线。The bus 62 may be an ISA bus, a PCI bus, an EISA bus, or the like. The bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one bidirectional arrow is shown in FIG. 6, but it does not mean that there is only one bus or one type of bus.
其中,存储器61用于存储程序,所述处理器60在接收到执行指令后,执行所述程序,前述本发明实施例任一实施例揭示的流过程定义的装置所执行的方法可以应用于处理器60中,或者由处理器60实现。The
处理器60可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器60中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器60可以是通用处理器,包括中央处理器(Central Processing Unit,简称CPU)、网络处理器(Network Processor,简称NP)等;还可以是数字信号处理器(Digital SignalProcessing,简称DSP)、专用集成电路(Application Specific Integrated Circuit,简称ASIC)、现成可编程门阵列(Field-Programmable Gate Array,简称FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器61,处理器60读取存储器61中的信息,结合其硬件完成上述方法的步骤。The
本实施例所提供的边缘调度服务器,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,边缘调度服务器实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and the technical effects of the edge scheduling server provided in this embodiment are the same as those in the foregoing method embodiments. For brief description, for the parts not mentioned in the edge scheduling server embodiments, reference may be made to the corresponding content in the foregoing method embodiments. .
参见图7所示的一种CDN调度系统的结构示意图,该CDN调度系统包括中心调度服务器70和上述的边缘调度服务器72,边缘调度服务器72与中心调度服务器70连接;边缘调度服务器用于从中心调度服务器获取边缘服务器与调度需求信息的匹配关系。Referring to the schematic diagram of the structure of a CDN scheduling system shown in FIG. 7, the CDN scheduling system includes a central scheduling server 70 and the above-mentioned edge scheduling server 72. The edge scheduling server 72 is connected to the central scheduling server 70; The scheduling server obtains the matching relationship between the edge server and the scheduling requirement information.
如图7所示,在一些可能的实施例中,上述CDN调度系统的数据传递采用的是一中心调度服务器70多边缘调度服务器72的架构(边缘调度服务器72的个数不限于图7中所示的3个,图7仅为示例),中心调度服务器70负责调度策略的配置、存储,并提供API(Application Programming Interface,应用程序接口)接口。各个边缘调度服务器72向中心调度服务器70同步调度策略,并且按照这些调度策略响应客户端的访问请求,用户通过客户端直接和边缘调度服务器72交互,通过边缘调度服务器72获取HTTP302应答。边缘调度服务器72在响应用户的访问请求时,根据HTTP头部信息或者URI路径等作出决策,可以做到同一个域名同一个区域返回完全不同的应答,实现更精确的、更细粒度的、特殊业务场景下的调度,弥补传统HTTP302调度的不足。As shown in FIG. 7 , in some possible embodiments, the data transmission of the above-mentioned CDN scheduling system adopts the architecture of one central scheduling server 70 and multiple edge scheduling servers 72 (the number of edge scheduling servers 72 is not limited to those shown in FIG. 7 ). 7 is only an example), the central scheduling server 70 is responsible for the configuration and storage of scheduling policies, and provides an API (Application Programming Interface, application program interface) interface. Each edge scheduling server 72 synchronizes scheduling policies with the central scheduling server 70 and responds to the client's access request according to these scheduling policies. When the edge scheduling server 72 responds to the user's access request, it makes decisions based on the HTTP header information or URI path, etc., so that the same domain name and the same area can return completely different responses, so as to achieve more accurate, finer-grained, special Scheduling in business scenarios makes up for the shortcomings of traditional HTTP302 scheduling.
具体地,中心调度服务器70主要负责请求域名与调度组关系、配置数据等的存储,同时响应边缘调度服务器72的请求,把配置好的策略下发到边缘调度服务器72。Specifically, the central scheduling server 70 is mainly responsible for the storage of the relationship between the request domain name and the scheduling group, configuration data, etc., and at the same time responds to the request of the edge scheduling server 72 , and delivers the configured policy to the edge scheduling server 72 .
边缘调度服务器72可以但不限于采用拉(PULL)的方式定期向中心调度服务器70请求配置的调度策略等信息,获取的信息存入到边缘调度服务器72的内存和内存数据库中。边缘调度服务器72在响应用户的访问请求时会根据请求域名的调度策略等进行逻辑处理。The edge scheduling server 72 may periodically request information such as the configured scheduling policy from the central scheduling server 70 by, but is not limited to, the pull (PULL) method, and the obtained information is stored in the memory and the memory database of the edge scheduling server 72 . When responding to the user's access request, the edge scheduling server 72 will perform logical processing according to the scheduling policy of the requested domain name and the like.
调度策略可以但不限于配置为:优先级方面,URI路径匹配规则优先级最高,用户代理匹配规则次之;URI路径匹配规则是,URI如果是/rule1开头,则调度到调度组k1,如果是/rule2开头,则调度到调度组k2;用户代理匹配规则是,如果User-Agent包含bowser123关键字则调度到调度组k3。那么一个访问请求到来后,先判断请求URI是否匹配/rule1或者/rule2,如果匹配,则按照配置的调度组k1或k2合成应答,如果没有匹配,则继续判断User-Agent是否包含bowser123关键字,如果匹配,则按照指定调度组k3合成应答,如果都没有匹配,则按照默认调度组处理。The scheduling policy can be configured, but is not limited to: in terms of priority, the URI path matching rule has the highest priority, followed by the user agent matching rule; the URI path matching rule is that if the URI starts with /rule1, it will be scheduled to scheduling group k1, if it is Starting with /rule2, it will be scheduled to scheduling group k2; the user agent matching rule is that if User-Agent contains the bowser123 keyword, it will be scheduled to scheduling group k3. Then after an access request arrives, first determine whether the request URI matches /rule1 or /rule2. If it matches, it will synthesize the response according to the configured scheduling group k1 or k2. If there is no match, continue to determine whether the User-Agent contains the bowser123 keyword. If there is a match, the response will be synthesized according to the specified scheduling group k3, and if there is no match, it will be processed according to the default scheduling group.
本实施例所提供的系统,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,系统实施例部分未提及之处,可参考前述方法实施例中相应内容。The implementation principle and technical effects of the system provided in this embodiment are the same as those in the foregoing method embodiments. For brief description, for the parts not mentioned in the system embodiments, reference may be made to the corresponding content in the foregoing method embodiments.
在这里示出和描述的所有示例中,任何具体值应被解释为仅仅是示例性的,而不是作为限制,因此,示例性实施例的其他示例可以具有不同的值。In all examples shown and described herein, any specific value should be construed as merely exemplary and not as limiting, as other examples of exemplary embodiments may have different values.
附图中的流程图和框图显示了根据本发明的多个实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。在这点上,流程图或框图中的每个方框可以代表一个模块、程序段或代码的一部分,所述模块、程序段或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个连续的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图和/或流程图中的每个方框、以及框图和/或流程图中的方框的组合,可以用执行规定的功能或动作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code that contains one or more functions for implementing the specified logical function(s) executable instructions. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations, can be implemented in dedicated hardware-based systems that perform the specified functions or actions , or can be implemented in a combination of dedicated hardware and computer instructions.
本发明实施例所提供的进行CDN调度方法的计算机程序产品,包括存储有计算机程序的计算机可读存储介质,该计算机程序被处理器运行时执行前面方法实施例中所述的方法,具体实现可参见方法实施例,在此不再赘述。The computer program product for performing the CDN scheduling method provided by the embodiment of the present invention includes a computer-readable storage medium storing a computer program, and the computer program executes the method described in the foregoing method embodiments when the computer program is run by a processor. Refer to the method embodiment, which is not repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统、装置和方法,可以通过其它的方式实现。以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,又例如,多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些通信接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. The apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some communication interfaces, indirect coupling or communication connection of devices or units, which may be in electrical, mechanical or other forms.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个处理器可执行的非易失的计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。The functions, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a processor-executable non-volatile computer-readable storage medium. Based on such understanding, the technical solution of the present invention can be embodied in the form of a software product in essence, or the part that contributes to the prior art or the part of the technical solution. The computer software product is stored in a storage medium, including Several instructions are used to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes: U disk, removable hard disk, Read-Only Memory (ROM, Read-Only Memory), Random Access Memory (RAM, Random Access Memory), magnetic disk or optical disk and other media that can store program codes .
最后应说明的是:以上各实施例仅用以说明本发明的技术方案,而非对其限制;尽管参照前述各实施例对本发明进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本发明各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, but not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present invention. scope.
Claims (11)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911051967.1A CN110830564B (en) | 2019-10-30 | 2019-10-30 | CDN scheduling method, device, system and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911051967.1A CN110830564B (en) | 2019-10-30 | 2019-10-30 | CDN scheduling method, device, system and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110830564A true CN110830564A (en) | 2020-02-21 |
CN110830564B CN110830564B (en) | 2022-11-01 |
Family
ID=69551580
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911051967.1A Active CN110830564B (en) | 2019-10-30 | 2019-10-30 | CDN scheduling method, device, system and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110830564B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111355731A (en) * | 2020-02-28 | 2020-06-30 | 北京奇艺世纪科技有限公司 | Resource access method, device, resource access system, equipment and storage medium |
CN112260962A (en) * | 2020-10-16 | 2021-01-22 | 网宿科技股份有限公司 | Bandwidth control method and device |
CN112491961A (en) * | 2020-11-02 | 2021-03-12 | 网宿科技股份有限公司 | Scheduling system and method and CDN system |
CN112631758A (en) * | 2020-12-30 | 2021-04-09 | 杭州雾联科技有限公司 | Edge computing resource scheduling method, device and equipment and readable storage medium |
CN113010410A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Method and system for monitoring and evaluating CDN performance based on backbone network |
CN113497817A (en) * | 2020-03-20 | 2021-10-12 | 北京金山云网络技术有限公司 | Traffic scheduling method and device, edge node of CDN (content delivery network) and server |
CN114390060A (en) * | 2021-12-13 | 2022-04-22 | 杭州网鼎科技有限公司 | Method for distributing edge computing network and storage medium |
CN114448960A (en) * | 2021-12-27 | 2022-05-06 | 天翼云科技有限公司 | Scheduling system, method, device, equipment and medium |
CN114513554A (en) * | 2020-10-27 | 2022-05-17 | 北京金山云网络技术有限公司 | Network access method, device, equipment, computer readable storage medium and system |
CN114726776A (en) * | 2022-01-30 | 2022-07-08 | 阿里巴巴(中国)有限公司 | Content delivery network CDN scheduling method, device, equipment and medium |
CN115225490A (en) * | 2022-07-20 | 2022-10-21 | 天翼云科技有限公司 | Gateway configuration method and device and electronic equipment |
Citations (21)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102291447A (en) * | 2011-08-05 | 2011-12-21 | 中国电信股份有限公司 | Content distribution network load scheduling method and system |
US20130144994A1 (en) * | 2010-08-16 | 2013-06-06 | Zte Corporation | Content Delivery Network and Method for Content Delivery |
CN103825837A (en) * | 2014-02-19 | 2014-05-28 | 上海视云网络科技有限公司 | Node load distributed CDN global scheduling method |
CN104320487A (en) * | 2014-11-11 | 2015-01-28 | 网宿科技股份有限公司 | HTTP dispatching system and method for content delivery network |
CN104427005A (en) * | 2013-08-20 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and system for realizing accurate request scheduling on content delivery network |
CN105262841A (en) * | 2015-11-06 | 2016-01-20 | 浪潮软件集团有限公司 | CDN network load balancing implementation method and CDN scheduling server |
CN105959433A (en) * | 2016-07-22 | 2016-09-21 | 无锡华云数据技术服务有限公司 | Domain name resolution method and domain name resolution system |
US20160321286A1 (en) * | 2015-04-30 | 2016-11-03 | Netflix, Inc. | Tiered cache filling |
CN106230782A (en) * | 2016-07-20 | 2016-12-14 | 腾讯科技(深圳)有限公司 | A kind of information processing method based on content distributing network and device |
CN106534240A (en) * | 2015-09-11 | 2017-03-22 | 中国移动通信集团公司 | CDN resource scheduling method, server and client |
CN106790704A (en) * | 2017-02-27 | 2017-05-31 | 网宿科技股份有限公司 | A kind of method and system for accessing cloud storage file |
CN106941507A (en) * | 2016-01-04 | 2017-07-11 | 中兴通讯股份有限公司 | The dispatching method and device of request message |
CN108234639A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | A kind of data access method and device based on content distributing network CDN |
CN109040343A (en) * | 2018-09-11 | 2018-12-18 | 达闼科技(北京)有限公司 | Domain name analytic method, device, computer readable storage medium and electronic equipment |
CN109618003A (en) * | 2019-01-14 | 2019-04-12 | 网宿科技股份有限公司 | A kind of servers' layout method, server and storage medium |
CN109743416A (en) * | 2019-03-19 | 2019-05-10 | 广州品唯软件有限公司 | CDN domain name scheduling method, device, computer-readable storage medium and system |
CN109831511A (en) * | 2019-02-18 | 2019-05-31 | 华为技术有限公司 | Method and equipment for scheduling content delivery network CDN edge nodes |
CN109995859A (en) * | 2019-03-26 | 2019-07-09 | 网宿科技股份有限公司 | A kind of dispatching method, dispatch server and computer readable storage medium |
CN109996201A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | A kind of Network Access Method and the network equipment |
CN110198344A (en) * | 2019-05-05 | 2019-09-03 | 网宿科技股份有限公司 | A kind of resource regulating method and system |
CN110213349A (en) * | 2019-05-17 | 2019-09-06 | 网宿科技股份有限公司 | A kind of HTTP dispatching method and device |
-
2019
- 2019-10-30 CN CN201911051967.1A patent/CN110830564B/en active Active
Patent Citations (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20130144994A1 (en) * | 2010-08-16 | 2013-06-06 | Zte Corporation | Content Delivery Network and Method for Content Delivery |
CN102291447A (en) * | 2011-08-05 | 2011-12-21 | 中国电信股份有限公司 | Content distribution network load scheduling method and system |
CN104427005A (en) * | 2013-08-20 | 2015-03-18 | 阿里巴巴集团控股有限公司 | Method and system for realizing accurate request scheduling on content delivery network |
CN103825837A (en) * | 2014-02-19 | 2014-05-28 | 上海视云网络科技有限公司 | Node load distributed CDN global scheduling method |
EP3211857A1 (en) * | 2014-11-11 | 2017-08-30 | Wangsu Science & Technology Co., Ltd. | Http scheduling system and method of content delivery network |
CN104320487A (en) * | 2014-11-11 | 2015-01-28 | 网宿科技股份有限公司 | HTTP dispatching system and method for content delivery network |
US20160321286A1 (en) * | 2015-04-30 | 2016-11-03 | Netflix, Inc. | Tiered cache filling |
CN106534240A (en) * | 2015-09-11 | 2017-03-22 | 中国移动通信集团公司 | CDN resource scheduling method, server and client |
CN105262841A (en) * | 2015-11-06 | 2016-01-20 | 浪潮软件集团有限公司 | CDN network load balancing implementation method and CDN scheduling server |
CN106941507A (en) * | 2016-01-04 | 2017-07-11 | 中兴通讯股份有限公司 | The dispatching method and device of request message |
CN106230782A (en) * | 2016-07-20 | 2016-12-14 | 腾讯科技(深圳)有限公司 | A kind of information processing method based on content distributing network and device |
CN105959433A (en) * | 2016-07-22 | 2016-09-21 | 无锡华云数据技术服务有限公司 | Domain name resolution method and domain name resolution system |
CN106790704A (en) * | 2017-02-27 | 2017-05-31 | 网宿科技股份有限公司 | A kind of method and system for accessing cloud storage file |
CN108234639A (en) * | 2017-12-29 | 2018-06-29 | 北京奇虎科技有限公司 | A kind of data access method and device based on content distributing network CDN |
CN109996201A (en) * | 2018-01-02 | 2019-07-09 | 中国移动通信有限公司研究院 | A kind of Network Access Method and the network equipment |
CN109040343A (en) * | 2018-09-11 | 2018-12-18 | 达闼科技(北京)有限公司 | Domain name analytic method, device, computer readable storage medium and electronic equipment |
CN109618003A (en) * | 2019-01-14 | 2019-04-12 | 网宿科技股份有限公司 | A kind of servers' layout method, server and storage medium |
CN109831511A (en) * | 2019-02-18 | 2019-05-31 | 华为技术有限公司 | Method and equipment for scheduling content delivery network CDN edge nodes |
CN109743416A (en) * | 2019-03-19 | 2019-05-10 | 广州品唯软件有限公司 | CDN domain name scheduling method, device, computer-readable storage medium and system |
CN109995859A (en) * | 2019-03-26 | 2019-07-09 | 网宿科技股份有限公司 | A kind of dispatching method, dispatch server and computer readable storage medium |
CN110198344A (en) * | 2019-05-05 | 2019-09-03 | 网宿科技股份有限公司 | A kind of resource regulating method and system |
CN110213349A (en) * | 2019-05-17 | 2019-09-06 | 网宿科技股份有限公司 | A kind of HTTP dispatching method and device |
Non-Patent Citations (1)
Title |
---|
蔡宁: "CDN边缘节点部署位置下沉的研究", 《电信工程技术与标准化》 * |
Cited By (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111355731B (en) * | 2020-02-28 | 2022-09-30 | 北京奇艺世纪科技有限公司 | Resource access method, device, resource access system, equipment and storage medium |
CN111355731A (en) * | 2020-02-28 | 2020-06-30 | 北京奇艺世纪科技有限公司 | Resource access method, device, resource access system, equipment and storage medium |
CN113497817A (en) * | 2020-03-20 | 2021-10-12 | 北京金山云网络技术有限公司 | Traffic scheduling method and device, edge node of CDN (content delivery network) and server |
CN112260962A (en) * | 2020-10-16 | 2021-01-22 | 网宿科技股份有限公司 | Bandwidth control method and device |
CN112260962B (en) * | 2020-10-16 | 2023-01-24 | 网宿科技股份有限公司 | Bandwidth control method and device |
CN114513554A (en) * | 2020-10-27 | 2022-05-17 | 北京金山云网络技术有限公司 | Network access method, device, equipment, computer readable storage medium and system |
CN112491961A (en) * | 2020-11-02 | 2021-03-12 | 网宿科技股份有限公司 | Scheduling system and method and CDN system |
CN113010410A (en) * | 2020-12-08 | 2021-06-22 | 云智慧(北京)科技有限公司 | Method and system for monitoring and evaluating CDN performance based on backbone network |
CN112631758A (en) * | 2020-12-30 | 2021-04-09 | 杭州雾联科技有限公司 | Edge computing resource scheduling method, device and equipment and readable storage medium |
CN114390060A (en) * | 2021-12-13 | 2022-04-22 | 杭州网鼎科技有限公司 | Method for distributing edge computing network and storage medium |
CN114448960A (en) * | 2021-12-27 | 2022-05-06 | 天翼云科技有限公司 | Scheduling system, method, device, equipment and medium |
CN114726776A (en) * | 2022-01-30 | 2022-07-08 | 阿里巴巴(中国)有限公司 | Content delivery network CDN scheduling method, device, equipment and medium |
CN114726776B (en) * | 2022-01-30 | 2024-01-30 | 阿里巴巴(中国)有限公司 | CDN scheduling method, device, equipment and medium for content delivery network |
CN115225490A (en) * | 2022-07-20 | 2022-10-21 | 天翼云科技有限公司 | Gateway configuration method and device and electronic equipment |
Also Published As
Publication number | Publication date |
---|---|
CN110830564B (en) | 2022-11-01 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110830564B (en) | CDN scheduling method, device, system and computer readable storage medium | |
CN109067914B (en) | web service proxy method, device, equipment and storage medium | |
WO2018133306A1 (en) | Dispatching method and device in content delivery network | |
US20120110641A1 (en) | Traffic steering system | |
CN108616490A (en) | A kind of method for network access control, apparatus and system | |
WO2013060210A1 (en) | Sharing control system and method for network resources download information | |
EP2633667A2 (en) | System and method for on the fly protocol conversion in obtaining policy enforcement information | |
CN112260961B (en) | Network traffic scheduling method and device, electronic equipment and storage medium | |
CN105610993B (en) | A kind of domain name analytic method, apparatus and system | |
CN109756584B (en) | Domain name resolution method, domain name resolution device and computer readable storage medium | |
CN112565406B (en) | Gray release method, gray release system and electronic equipment | |
CN113037888A (en) | Method and device for accelerating configuration of domain name, storage medium and electronic equipment | |
CN113382065B (en) | File downloading method, device, system, equipment and storage medium | |
CN110392069B (en) | CDN service scheduling processing method and CDN server | |
CN102857547B (en) | The method and apparatus of distributed caching | |
WO2016180284A1 (en) | Service node allocation method, device, cdn management server and system | |
CN113297603A (en) | Data processing method, apparatus, device, storage medium and program product | |
CN110913011B (en) | Session holding method, session holding device, readable storage medium and electronic device | |
US10104511B2 (en) | Recommendations and notifications over limited connections | |
CN107959704A (en) | A kind of data processing method and home gateway | |
CN109309907B (en) | Method and device for charging flow and related equipment | |
US10129320B2 (en) | QoS improvement method, apparatus, and system | |
CN112218121B (en) | Content delivery network scheduling method and device | |
CN103647703A (en) | Browser communication method and browser terminal | |
CN114189469B (en) | Public cloud multi-node equipment access routing method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |