[go: up one dir, main page]

CN114448990A - A resource scheduling method, device and device based on converged CDN - Google Patents

A resource scheduling method, device and device based on converged CDN Download PDF

Info

Publication number
CN114448990A
CN114448990A CN202111590205.6A CN202111590205A CN114448990A CN 114448990 A CN114448990 A CN 114448990A CN 202111590205 A CN202111590205 A CN 202111590205A CN 114448990 A CN114448990 A CN 114448990A
Authority
CN
China
Prior art keywords
allocated
cache server
resource
dividing
address 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
Application number
CN202111590205.6A
Other languages
Chinese (zh)
Other versions
CN114448990B (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.)
China Telecom Cloud Technology Co Ltd
Original Assignee
China Telecom Cloud Technology 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 China Telecom Cloud Technology Co Ltd filed Critical China Telecom Cloud Technology Co Ltd
Priority to CN202111590205.6A priority Critical patent/CN114448990B/en
Publication of CN114448990A publication Critical patent/CN114448990A/en
Application granted granted Critical
Publication of CN114448990B publication Critical patent/CN114448990B/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
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1021Server selection for load balancing based on client or server locations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers
    • H04L67/1004Server selection for load balancing
    • H04L67/1023Server selection for load balancing based on a hash applied to IP addresses or costs

Landscapes

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

Abstract

本发明提供了一种基于融合CDN的资源调度方法、装置及设备,该方法包括:获取业务域名DNS请求指令以及待分配缓存服务器IP资源;基于所述业务域名DNS请求指令提取资源分配的需求信息及所述业务域名DNS请求指令的IP地址信息;基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果;基于所述需求信息及划分结果对所述待分配缓存服务器进行调度。通过融合CDN按照资源分配的需求信息进行合理分配,从而克服了现有规划分配资源造成偏差的问题。

Figure 202111590205

The present invention provides a resource scheduling method, device and equipment based on integrated CDN. The method includes: acquiring service domain name DNS request instructions and to-be-allocated cache server IP resources; and extracting resource allocation demand information based on the service domain name DNS request instructions and the IP address information of the service domain name DNS request instruction; based on the area to which the IP address information belongs and the cache server IP resource, the area to which the cache server belongs is divided, and the division result is obtained; based on the demand information and the division result The to-be-allocated cache server is scheduled. By integrating the CDN for reasonable allocation according to the demand information of resource allocation, the problem of deviation caused by the allocation of resources in the existing planning is overcome.

Figure 202111590205

Description

一种基于融合CDN的资源调度方法、装置及设备A resource scheduling method, device and equipment based on converged CDN

技术领域technical field

本发明涉及网络通信技术领域,具体涉及一种基于融合CDN的资源调度方法、装置及设备。The present invention relates to the technical field of network communication, in particular to a resource scheduling method, device and equipment based on a converged CDN.

背景技术Background technique

内容分发网络(Content Delivery Network,CDN)是一种新型网络内容服务体系,其基于IP网络而构建,基于内容访问与应用的效率要求、质量要求和内容秩序而提供内容的分发和服务。CDN因其可以显著缓解源站压力,提高内容分发和服务的速度,已被广泛应用于网站加速、点直播、游戏加速等场景。而融合CDN是在传统CDN的基础上,整合优质的CDN厂商资源,通过融合技术,实现对数据网络加速进一步优化的融合管理,同时不仅将多CDN备灾、带宽用量等问题完美解决,还为企业使用CDN服务提供优质的加速体验。Content Delivery Network (CDN) is a new type of network content service system, which is constructed based on IP network and provides content distribution and services based on the efficiency requirements, quality requirements and content order of content access and application. CDNs have been widely used in scenarios such as website acceleration, on-demand live broadcasting, and game acceleration because they can significantly relieve pressure on origin sites and improve the speed of content distribution and services. On the basis of traditional CDN, converged CDN integrates high-quality CDN vendor resources, and realizes converged management that further optimizes data network acceleration through converged technology. Enterprises use CDN services to provide a high-quality acceleration experience.

随着CDN技术的普及,DNS解析越来越受到大家的重视。DNS解析的性能及其调度准确性将直接影响到互联网用户的体验,然而当前国内复杂的网络环境中,运营商递归域名解析服务器,即LOCALDNS(业务域名DNS)的择优策略,也将直接影响到DNS解析的效率和稳定性。在实际工作过程当中,通过融合CDN系统,企业将业务流量分别解析到不同的CDN厂商中,各CDN厂商再根据业务情况分别进行内容解析和调度,但运营商LOCALDNS的择优策略在过滤掉一些与当前LOCALDNS相距较远位置的服务器时,会导致融合CDN对于业务流量的规划分配造成偏差。With the popularization of CDN technology, DNS resolution has attracted more and more attention. The performance of DNS resolution and its scheduling accuracy will directly affect the experience of Internet users. However, in the current domestic complex network environment, the operator's recursive domain name resolution server, that is, the optimal strategy of LOCALDNS (business domain name DNS), will also directly affect the Efficiency and stability of DNS resolution. In the actual work process, by integrating the CDN system, the enterprise parses the business traffic to different CDN vendors, and each CDN vendor performs content analysis and scheduling according to the business situation. When the current LOCALDNS is far away from the servers, it will cause deviations in the planning and distribution of service traffic by the converged CDN.

发明内容SUMMARY OF THE INVENTION

因此,本发明要解决的技术问题在于克服现有技术中导致融合CDN对于业务流量的规划分配造成偏差缺陷,从而提供一种基于融合CDN的资源调度方法、装置及设备。Therefore, the technical problem to be solved by the present invention is to overcome the deficiencies in the prior art that cause deviations in the planning and distribution of service traffic by the converged CDN, thereby providing a resource scheduling method, apparatus and device based on the converged CDN.

根据第一方面,本发明实施例提供了一种基于融合CDN的资源调度方法,包括如下步骤:获取业务域名DNS请求指令以及待分配缓存服务器IP资源;基于所述业务域名DNS请求指令提取资源分配的需求信息及所述业务域名DNS请求指令的IP地址信息;基于所述IP地址信息的所属区域及所述待分配缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果;基于所述需求信息及划分结果对所述待分配缓存服务器进行调度。According to a first aspect, an embodiment of the present invention provides a resource scheduling method based on a converged CDN, including the following steps: obtaining a service domain name DNS request instruction and a cache server IP resource to be allocated; extracting resource allocation based on the service domain name DNS request instruction demand information and the IP address information of the service domain name DNS request instruction; divide the area to which the cache server belongs based on the area to which the IP address information belongs and the to-be-allocated cache server IP resources, and obtain a division result; The demand information and the division result schedule the to-be-allocated cache server.

可选地,所述基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果,包括:获取与所述IP地址信息的所属区域属于同一区域的待分配缓存服务器的第一IP个数,或,获取与所述IP地址信息的所属区域属于非同一区域的待分配缓存服务器的第二IP个数;基于所述第一IP个数或第二IP个数对所述待分配缓存服务器进行划分,得到所述划分结果。Optionally, dividing the area to which the cache server belongs based on the area to which the IP address information belongs and the cache server IP resource, and obtaining a division result includes: obtaining the same area as the area to which the IP address information belongs. The first IP number of the cache server to be allocated, or, obtain the second IP number of the cache server to be allocated that belongs to a non-same area with the area to which the IP address information belongs; based on the first IP number or the first IP number Divide the cache server to be allocated by the number of IPs to obtain the division result.

可选地,所述基于所述第一IP个数对所述待分配缓存服务器进行划分,包括:基于所述第一IP个数以及所述IP地址信息获取所述第一IP个数占比;基于所述第一IP个数占比对所述待分配缓存服务器进行划分。Optionally, the dividing the cache server to be allocated based on the number of the first IP includes: obtaining the proportion of the number of the first IP based on the number of the first IP and the IP address information. ; Divide the cache server to be allocated based on the proportion of the first IP number.

可选地,所述基于所述第二IP个数对所述待分配缓存服务器进行划分,包括:基于所述第二IP个数以及所述IP地址信息获取所述第二IP个数占比;基于所述第二IP个数占比对所述待分配缓存服务器进行划分。Optionally, the dividing the cache server to be allocated based on the number of the second IP includes: obtaining the proportion of the number of the second IP based on the number of the second IP and the IP address information ; Divide the cache server to be allocated based on the proportion of the second IP number.

可选地,所述基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果,包括:基于所述IP地址信息获取预设资源信息内同一区域的待分配缓存服务器的第三IP个数以及非同一区域的待分配缓存服务器的第四IP个数;基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果。Optionally, dividing the area to which the cache server belongs based on the area to which the IP address information belongs and the IP resource of the cache server, and obtaining a division result includes: obtaining, based on the IP address information, the same content in the preset resource information. The third IP number of the cache servers to be allocated in the area and the fourth IP number of the cache servers to be allocated in a different area; based on the third IP number and the fourth IP number, the cache servers to be allocated are processed. Divide, and obtain the division result.

可选地,所述基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果,包括:获取所述预设资源信息内IP数;基于所述第三IP个数以及所述预设资源信息内IP数,计算获得所述第三IP个数在所述预设资源信息内IP数的占比;基于所述第四IP个数以及所述预设资源信息内IP数,计算获得所述第四IP个数在所述预设资源信息内IP数的占比;基于所述第三IP个数在所述预设资源信息内IP数的占比以及第四IP个数在所述预设资源信息内IP数的占比对所述待分配缓存服务器进行划分,得到所述划分结果。Optionally, dividing the cache server to be allocated based on the third IP number and the fourth IP number, and obtaining the division result, includes: acquiring the IP number in the preset resource information; The third IP number and the IP number in the preset resource information, calculate the ratio of the third IP number in the IP number in the preset resource information; based on the fourth IP number and The number of IPs in the preset resource information, calculating the ratio of the fourth IP number in the IP number in the preset resource information; based on the third IP number in the preset resource information The to-be-allocated cache server is divided according to the proportion of the number of IPs and the proportion of the number of fourth IPs in the number of IPs in the preset resource information, and the division result is obtained.

可选地,所述基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果,包括:基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行等比例划分,得到所述划分结果。Optionally, dividing the cache server to be allocated based on the third IP number and the fourth IP number, and obtaining the division result, includes: based on the third IP number and the fourth IP number The number of cache servers to be allocated is divided in equal proportions to obtain the division result.

根据第二方面,本发明实施例还提供了一种基于融合CDN的资源调度装置,包括:获取模块,用于获取业务域名DNS请求指令以及待分配缓存服务器IP资源;提取模块,用于基于所述业务域名DNS请求指令提取资源分配的需求信息及所述业务域名DNS请求指令的IP地址信息;划分模块,用于基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果;调度模块,用于基于所述需求信息及划分结果对所述待分配缓存服务器进行调度。According to a second aspect, an embodiment of the present invention further provides a resource scheduling device based on a converged CDN, including: an acquisition module for acquiring service domain name DNS request instructions and to-be-allocated cache server IP resources; an extraction module for The service domain name DNS request instruction extracts the demand information of resource allocation and the IP address information of the service domain name DNS request instruction; the division module is used for the cache server based on the area to which the IP address information belongs and the cache server IP resource. The belonging area is divided, and a division result is obtained; the scheduling module is used for scheduling the to-be-allocated cache server based on the demand information and the division result.

根据第三方面,本发明实施例还提供了一种基于融合CDN的资源调度设备,包括:通信单元、存储器和处理器,所述存储器和所述处理器之间互相通信连接,所述存储器中存储有计算机指令,所述处理器通过执行所述计算机指令,从而第一方面或者任意一种可选实施方式中所述的方法的步骤。According to a third aspect, an embodiment of the present invention further provides a resource scheduling device based on a converged CDN, including: a communication unit, a memory, and a processor, wherein the memory and the processor are communicatively connected to each other, and the memory is Computer instructions are stored, and the processor executes the computer instructions to perform the steps of the method described in the first aspect or any one of the optional implementation manners.

根据第四方面,本发明实施例还提供了一种计算机可读存储介质,其特征在于,所述计算机可读存储介质存储有计算机指令,所述计算机指令用于使所述计算机执行第一方面或者任意一种可选实施方式中所述的方法的步骤。According to a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the first aspect or the steps of the method described in any of the alternative embodiments.

本发明技术方案,具有如下优点:The technical scheme of the present invention has the following advantages:

本发明实施例提供的一种基于融合CDN的资源调度方法、装置及设备,该方法包括:获取业务域名DNS请求指令以及待分配缓存服务器IP资源,根据所述业务域名DNS请求指令提取IP地址信息,同时获取资源分配的需求信息,根据所述IP地址信息的所述区域及所述缓存服务器IP资源对缓存服务器的所述区域进行划分,根据所述资源分配的需求信息和划分的结果将待分配的缓存服务器进行调度分配。通过提取业务域名DNS请求指令中的IP信息以及需求信息,进行优选调度分配,实现对业务流量的准确分配。An embodiment of the present invention provides a method, device, and device for resource scheduling based on converged CDN. The method includes: acquiring a service domain name DNS request instruction and a cache server IP resource to be allocated, and extracting IP address information according to the service domain name DNS request instruction , obtain the demand information of resource allocation at the same time, divide the area of the cache server according to the area of the IP address information and the IP resource of the cache server, and divide the area of the cache server according to the demand information of the resource allocation and the result of the division. The assigned cache server makes scheduling assignments. By extracting the IP information and demand information in the service domain name DNS request instructions, optimal scheduling and allocation are performed to achieve accurate allocation of service traffic.

附图说明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的资源调度方法的一个具体示例的流程图;1 is a flowchart of a specific example of a resource scheduling method based on converged CDN in an embodiment of the present invention;

图2为本发明实施例中基于融合CDN的资源调度装置的一个具体示例的原理框图;2 is a schematic block diagram of a specific example of a resource scheduling apparatus based on converged CDN in an embodiment of the present invention;

图3为本发明实施例中基于融合CDN的资源调度设备的一个具体示例的结构框图。FIG. 3 is a structural block diagram of a specific example of a resource scheduling device based on a converged CDN in 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 accompanying drawings. Obviously, the described embodiments are a 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.

此外,下面所描述的本发明不同实施方式中所涉及的技术特征只要彼此之间未构成冲突就可以相互结合。In addition, the technical features involved in the different embodiments of the present invention described below can be combined with each other as long as they do not conflict with each other.

本发明实施例是通过融合CDN按照业务域名DNS中所提取的IP信息以及需求信息将业务流量进行调度分配。在实际应用中,融合CDN通过融合技术实现对数据网络加速进一步的融合管理,下述各实施例中,仅以CDN厂商为例,本发明亦可应用于其它领域,本发明并不以此为限。The embodiment of the present invention schedules and distributes the service traffic according to the IP information and the demand information extracted from the service domain name DNS by integrating the CDN. In practical applications, the converged CDN realizes further convergent management of data network acceleration through convergent technology. In the following embodiments, only CDN manufacturers are taken as an example, the present invention can also be applied to other fields, and the present invention does not take this as an example limit.

图1示出了本发明实施例的一种基于融合CDN的资源调度方法,该方法包括以下步骤:FIG. 1 shows a resource scheduling method based on a converged CDN according to an embodiment of the present invention, and the method includes the following steps:

S100:获取业务域名DNS请求指令以及待分配缓存服务器IP资源。S100: Obtain the service domain name DNS request instruction and the to-be-allocated cache server IP resource.

具体的,通过融合CDN获取业务域名DNS(LOCALDNS)请求指令以及待分配缓存服务器IP资源。在实际应用中,接收到业务域名DNS请求指令后,根据所述业务域名DNS查找融合CDN对应区域覆盖下的待分配缓存服务器IP资源。Specifically, the service domain name DNS (LOCALDNS) request instruction and the to-be-allocated cache server IP resource are obtained by integrating the CDN. In practical applications, after receiving the service domain name DNS request instruction, the IP resources of the cache server to be allocated under the coverage of the corresponding area of the fusion CDN are searched according to the service domain name DNS.

S200:基于所述业务域名DNS请求指令提取资源分配的需求信息及所述业务域名DNS请求指令的IP地址信息。S200: Extract demand information for resource allocation and IP address information of the service domain name DNS request instruction based on the service domain name DNS request instruction.

具体的,从业务域名DNS请求指令中提取资源分配的需求信息以及业务域名DNS请求指令中所包含的缓存服务器IP地址信息。在实际应用中,获取需要相似加速服务的域名集合解析组,基于所述解析组获取组内包含的缓存服务器IP地址信息,基于所述缓存服务器IP地址信息获得网络运营商粒度的规划。Specifically, the resource allocation requirement information and the cache server IP address information included in the service domain name DNS request instruction are extracted from the service domain name DNS request instruction. In practical applications, a set of domain name resolution groups requiring similar acceleration services are obtained, the cache server IP address information contained in the group is obtained based on the resolution group, and the network operator granularity plan is obtained based on the cache server IP address information.

S300:基于所述IP地址信息的所属区域及所述待分配缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果。S300: Divide the area to which the cache server belongs based on the area to which the IP address information belongs and the IP resource of the cache server to be allocated, and obtain a division result.

具体的,根据业务域名DNS请求指令中所包含的缓存服务器IP地址信息所属区域以及待分配缓存服务器IP资源所对应的区域进行划分,获得区域划分结果。Specifically, the area division result is obtained according to the area to which the cache server IP address information contained in the service domain name DNS request instruction belongs and the area corresponding to the cache server IP resource to be allocated.

S400:基于所述需求信息及划分结果对所述待分配缓存服务器进行调度。S400: Schedule the to-be-allocated cache server based on the demand information and the division result.

具体的,根据所述划分结果以及所述需求信息,将待分配缓存服务器按照划分的区域以及需求进行资源调度分配。Specifically, according to the division result and the demand information, resource scheduling and allocation of the cache server to be allocated is performed according to the divided regions and demands.

本发明实施例提供的一种基于融合CDN的资源调度方法,获取业务域名DNS请求指令以及待分配缓存服务器IP资源,根据所述业务域名DNS请求指令提取IP地址信息,同时获取资源分配的需求信息,根据所述IP地址信息的所述区域及所述缓存服务器IP资源对缓存服务器的所述区域进行划分,根据所述资源分配的需求信息和划分的结果将待分配的缓存服务器进行调度分配。通过提取业务域名DNS请求指令中的IP信息以及需求信息,进行优选调度分配,解决了目前基于融合CDN系统中包含的缓存服务器分布差异较大时调度切量不准确的问题,在进行资源调度过程中,能够实现对业务流量的准确分配。An embodiment of the present invention provides a resource scheduling method based on a converged CDN, which acquires a service domain name DNS request instruction and a cache server IP resource to be allocated, extracts IP address information according to the service domain name DNS request instruction, and acquires resource allocation demand information at the same time , divide the area of the cache server according to the area of the IP address information and the IP resource of the cache server, and schedule and allocate the cache server to be allocated according to the resource allocation demand information and the result of the division. By extracting the IP information and demand information in the DNS request instructions of the business domain name, optimal scheduling and allocation are performed, which solves the problem of inaccurate scheduling and slicing when the distribution of cache servers included in the fusion CDN system is quite different. can realize accurate distribution of business traffic.

在本发明一个可选实施例中,步骤S300,基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果的具体过程,主要包括以下步骤:In an optional embodiment of the present invention, in step S300, the area to which the cache server belongs is divided based on the area to which the IP address information belongs and the IP resource of the cache server, and the specific process of obtaining the division result mainly includes the following steps:

(1)获取与所述IP地址信息的所属区域属于同一区域的待分配缓存服务器的第一IP个数,或,获取与所述IP地址信息的所属区域属于非同一区域的待分配缓存服务器的第二IP个数。(1) obtain the first IP number of the cache server to be allocated belonging to the same area as the area to which the IP address information belongs, or, obtain the cache server to be allocated that belongs to a different area with the area to which the IP address information belongs The second IP number.

具体的,根据所述IP地址信息的所属区域以及待分配缓存服务器IP资源获得上述IP地址属于同一区域的待分配缓存服务器的第一IP个数,或获得上述IP地址不属于同一区域的非同一区域的待分配缓存服务器的第二IP个数。在实际应用中,获取需要相似加速服务的域名集合解析组,基于所述域名集合解析组中所包含的缓存服务器IP地址信息,获取同一区域待分配缓存服务器的第一IP个数或非同一区域待分配缓存服务器的第二IP个数。在实际应用中,例如可以是CDN厂商A下辖区域有5个待分配缓存服务器IP资源,其中,有2个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有3个IP与业务域名DNS请求指令的IP地址信息不属于同一区域;CDN厂商B下辖区域例如可以有8个待分配缓存服务器IP资源,其中,有4个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有4个IP与业务域名DNS请求指令的IP地址信息不属于同一区域;CDN厂商C下辖区域例如可以有12个待分配缓存服务器IP资源,其中,有5个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有7个IP与业务域名DNS请求指令的IP地址信息不属于同一区域,则第一IP个数为11,第二IP个数为14。Specifically, according to the region to which the IP address information belongs and the IP resources of the cache server to be allocated, the first IP number of the cache server to be allocated whose IP address belongs to the same region is obtained, or the non-identical IP address that does not belong to the same region is obtained. The second IP number of the cache server to be allocated in the region. In practical applications, obtain a domain name set resolution group that requires similar acceleration services, and based on the cache server IP address information included in the domain name set resolution group, obtain the first IP number of cache servers to be allocated in the same area or a non-same area The number of second IP addresses of the cache server to be allocated. In practical applications, for example, there may be 5 cache server IP resources to be allocated in the area under the jurisdiction of CDN manufacturer A. Among them, 2 IPs belong to the same area as the IP address information of the service domain name DNS request instruction, and 3 IPs belong to the same area. The IP address information of the domain name DNS request instruction does not belong to the same area; for example, the area under the jurisdiction of CDN manufacturer B may have 8 cache server IP resources to be allocated, of which 4 IPs belong to the same area as the IP address information of the service domain name DNS request instruction , there are 4 IPs that do not belong to the same area as the IP address information of the service domain name DNS request instruction; for example, the area under the jurisdiction of CDN manufacturer C can have 12 cache server IP resources to be allocated, of which there are 5 IP and service domain name DNS request instructions The IP address information belongs to the same area, and there are 7 IPs that do not belong to the same area as the IP address information of the service domain name DNS request instruction, then the number of the first IP is 11, and the number of the second IP is 14.

(2)基于所述第一IP个数或第二IP个数对所述待分配缓存服务器进行划分,得到所述划分结果。(2) Divide the cache server to be allocated based on the first IP number or the second IP number to obtain the division result.

具体的,根据获取的同一区域待分配缓存服务器的第一IP个数或非同一区域待分配缓存服务器的第二IP个数将待分配缓存服务器进行划分,得到同一区域的缓存服务器个数或非同一区域的缓存服务器个数。Specifically, according to the obtained first IP number of cache servers to be allocated in the same area or the second IP number of cache servers to be allocated in different areas, the cache servers to be allocated are divided to obtain the number of cache servers in the same area or the number of non-to-be-allocated cache servers. The number of cache servers in the same region.

在本发明实施例中,基于所述IP地址信息的所属区域以及待分配缓存服务器IP资源获得上述IP地址属于同一区域的待分配缓存服务器的第一IP个数或上述IP地址不属于同一区域的非同一区域的待分配缓存服务器的第二IP个数,并基于所述第一IP个数或第二IP个数将待分配缓存服务器进行划分,得到同一区域的缓存服务器个数和非同一区域的缓存服务器个数。通过IP地址将待分配缓存服务器进行区域划分,从而能够更加精确地按照需求信息将所述资源进行合理调度分配。In the embodiment of the present invention, based on the region to which the IP address information belongs and the IP resource of the cache server to be allocated, the first IP number of the cache server to be allocated whose IP address belongs to the same region is obtained, or the IP address does not belong to the same region. The number of the second IPs of the cache servers to be allocated in a different area, and based on the number of the first IP or the number of the second IPs, the cache servers to be allocated are divided to obtain the number of cache servers in the same area and non-identical areas. number of cache servers. The cache servers to be allocated are divided into regions by IP addresses, so that the resources can be reasonably scheduled and allocated according to the demand information more accurately.

在本发明一可选实施例中,所述基于所述第一IP个数对所述待分配缓存服务器进行划分,包括以下步骤:In an optional embodiment of the present invention, the dividing the cache server to be allocated based on the number of the first IP includes the following steps:

(1)基于所述第一IP个数以及所述IP地址信息获取所述第一IP个数占比;(1) obtaining the ratio of the first IP number based on the first IP number and the IP address information;

(2)基于所述第一IP个数占比对所述待分配缓存服务器进行划分。(2) Dividing the cache servers to be allocated based on the proportion of the first IP numbers.

在本发明实施例中,通过所述第一IP个数以及全部所述IP地址信息进行计算,获得所述第一IP个数在全部IP地址中的占比,基于第一IP个数占比对所述待分配缓存服务器进行划分,从而能够更加精确的将属于同一区域的资源进行调度分配。在实际应用中,例如可以是CDN厂商A、CDN厂商B以及CDN厂商C下辖的缓存服务器总体个数为25,与业务域名DNS请求指令的IP地址信息属于同一区域的缓存服务器IP个数为11,则第一IP个数占比为

Figure BDA0003429613150000091
基于此比例将待分配缓存服务器进行划分。In the embodiment of the present invention, the first IP number and all the IP address information are calculated to obtain the proportion of the first IP number in all the IP addresses, based on the proportion of the first IP number The cache servers to be allocated are divided, so that resources belonging to the same area can be scheduled and allocated more accurately. In practical applications, for example, the total number of cache servers under the jurisdiction of CDN vendor A, CDN vendor B, and CDN vendor C may be 25, and the number of cache server IPs belonging to the same area as the IP address information of the service domain name DNS request instruction is 11, then the proportion of the first IP number is
Figure BDA0003429613150000091
Based on this ratio, the cache servers to be allocated are divided.

在本发明一个可选实施例中,所述基于所述第二IP个数对所述待分配缓存服务器进行划分,包括以下步骤:In an optional embodiment of the present invention, the dividing the cache server to be allocated based on the number of the second IP includes the following steps:

(1)基于所述第二IP个数以及所述IP地址信息获取所述第二IP个数占比;(1) obtaining the ratio of the second IP number based on the second IP number and the IP address information;

(2)基于所述第二IP个数占比对所述待分配缓存服务器进行划分。(2) Dividing the cache servers to be allocated based on the proportion of the number of the second IPs.

在本发明实施例中,通过所述第二IP个数以及全部所述IP地址信息进行计算,获得所述第二IP个数在全部IP地址中的占比,基于第二IP个数占比对所述待分配缓存服务器进行划分,从而能够更加精确的将不属于同一区域的资源进行调度分配。在实际应用中,例如可以是CDN厂商A、CDN厂商B以及CDN厂商C下辖的缓存服务器总体个数为25,与业务域名DNS请求指令的IP地址信息属于同一区域的缓存服务器IP个数为14,则第一IP个数占比为

Figure BDA0003429613150000101
基于此比例将待分配缓存服务器进行划分。In the embodiment of the present invention, the number of the second IPs and all the IP address information are calculated to obtain the proportion of the number of the second IPs in all the IP addresses, based on the proportion of the number of the second IPs The cache servers to be allocated are divided, so that resources that do not belong to the same area can be scheduled and allocated more accurately. In practical applications, for example, the total number of cache servers under the jurisdiction of CDN vendor A, CDN vendor B, and CDN vendor C may be 25, and the number of cache server IPs belonging to the same area as the IP address information of the service domain name DNS request instruction is 14, then the proportion of the first IP number is
Figure BDA0003429613150000101
Based on this ratio, the cache servers to be allocated are divided.

在本发明一个可选实施例中,步骤300,基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果的过程,主要包括以下步骤:In an optional embodiment of the present invention, in step 300, the area to which the cache server belongs is divided based on the area to which the IP address information belongs and the IP resource of the cache server, and the process of obtaining the division result mainly includes the following steps:

(1)基于所述IP地址信息获取预设资源信息内同一区域的待分配缓存服务器的第三IP个数以及非同一区域的待分配缓存服务器的第四IP个数。(1) Obtaining the third IP number of cache servers to be allocated in the same area and the fourth IP number of cache servers to be allocated in different areas in the preset resource information based on the IP address information.

具体的,获取预设资源信息内所包含的待分配缓存服务器个数,并基于IP地址信息将所述待分配缓存服务器分为同一区域的待分配缓存服务器的第三IP个数以及非同一区域的待分配缓存服务器的第四IP个数。在实际应用中,所述预设资源信息例如可以是CDN厂商A所包含的5个待分配缓存服务器IP资源中,有2个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有3个IP与业务域名DNS请求指令的IP地址信息不属于同一区域,则CDN厂商A的第三IP个数为2,第四IP个数为3;CDN厂商B所包含的8个待分配缓存服务器IP资源中,有4个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有4个IP与业务域名DNS请求指令的IP地址信息不属于同一区域,则CDN厂商B的第三IP个数为4,第四IP个数为4;CDN厂商C所包含的12个待分配缓存服务器IP资源中,有5个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有7个IP与业务域名DNS请求指令的IP地址信息不属于同一区域,则CDN厂商C的第三IP个数为5,第四IP个数为7。Specifically, the number of cache servers to be allocated contained in the preset resource information is obtained, and based on the IP address information, the cache servers to be allocated are divided into a third IP number of cache servers to be allocated in the same area and a non-identical area The fourth IP number of the cache server to be allocated. In practical applications, the preset resource information may be, for example, among the five cache server IP resources to be allocated included by CDN manufacturer A, two IPs belong to the same area as the IP address information of the service domain name DNS request instruction, and three If the number of IP addresses and the IP address information of the service domain name DNS request instruction do not belong to the same area, the number of third IPs of CDN manufacturer A is 2, and the number of fourth IPs is 3; the number of 8 cache servers to be allocated included by CDN manufacturer B is In the IP resources, there are 4 IPs that belong to the same area as the IP address information of the service domain name DNS request instruction, and there are 4 IP addresses that do not belong to the same area as the IP address information of the service domain name DNS request instruction. The number is 4, and the number of the fourth IP is 4; among the 12 cache server IP resources to be allocated included by CDN vendor C, 5 IPs belong to the same area as the IP address information of the service domain name DNS request instruction, and there are 7 IPs If the IP address information of the service domain name DNS request instruction does not belong to the same area, the number of third IPs of CDN manufacturer C is 5, and the number of fourth IPs is 7.

(2)基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果。(2) Divide the cache server to be allocated based on the third IP number and the fourth IP number to obtain the dividing result.

具体的,基于第三IP个数以及第四IP个数将待分配缓存服务器进行合理划分,得到划分结果。Specifically, the cache servers to be allocated are reasonably divided based on the third IP number and the fourth IP number, and a division result is obtained.

在本发明实施例中,通过获取预设资源信息内所包含的待分配缓存服务器个数,并基于IP地址信息将所述待分配缓存服务器分为同一区域的待分配缓存服务器的第三IP个数以及非同一区域的待分配缓存服务器的第四IP个数,并基于第三IP个数以及第四IP个数将待分配缓存服务器进行合理划分,从而能够将属于同一预设资源信息内的缓存服务器进行合理的资源调度,避免了同一预设资源覆盖下的缓存服务器因自身IP地址信息而进行特殊规划,提升了工作效率。In the embodiment of the present invention, by acquiring the number of cache servers to be allocated contained in the preset resource information, and based on the IP address information, the cache servers to be allocated are divided into a third IP address of the cache servers to be allocated in the same area and the number of the fourth IPs of the cache servers to be allocated not in the same area, and based on the number of the third IPs and the number of the fourth IPs, the cache servers to be allocated are divided reasonably, so that the cache servers belonging to the same preset resource information can be divided The cache server performs reasonable resource scheduling, which avoids the special planning of the cache server covered by the same preset resource due to its own IP address information, and improves the work efficiency.

在本发明一个可选实施例中,所述基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果,包括以下步骤:In an optional embodiment of the present invention, dividing the cache server to be allocated based on the third IP number and the fourth IP number to obtain the dividing result includes the following steps:

(1)获取所述预设资源信息内IP数;(1) obtain the number of IPs in the preset resource information;

(2)基于所述第三IP个数以及所述预设资源信息内IP数,计算获得所述第三IP个数在所述预设资源信息内IP数的占比;(2) based on the third IP number and the IP number in the preset resource information, calculate and obtain the ratio of the third IP number in the IP number in the preset resource information;

(3)基于所述第四IP个数以及所述预设资源信息内IP数,计算获得所述第四IP个数在所述预设资源信息内IP数的占比;(3) based on the fourth IP number and the IP number in the preset resource information, calculate and obtain the ratio of the fourth IP number in the IP number in the preset resource information;

(4)基于所述第三IP个数在所述预设资源信息内IP数的占比以及第四IP个数在所述预设资源信息内IP数的占比对所述待分配缓存服务器进行划分,得到所述划分结果。(4) Based on the proportion of the third IP number in the IP number in the preset resource information and the proportion of the fourth IP number in the IP number in the preset resource information, the cache server to be allocated is Perform division to obtain the division result.

具体的,获取预设资源信息内的总体缓存服务器IP数量,基于所述第三IP个数以及预设资源信息内的总体缓存服务器IP数量,计算获得第三IP个数在所述预设资源信息内IP数的占比,通过所述第三IP个数的占比得到第三IP在预设资源信息内的分配概率,按照所述分配概率将待分配缓存服务器划分至同一区域,基于所述第四IP个数以及预设资源信息内的总体缓存服务器IP数量,计算获得第四IP个数在所述预设资源信息内IP数的占比,通过所述第四IP个数的占比得到第四IP在预设资源信息内的分配概率,按照所述分配概率将待分配缓存服务器划分至非同一区域。在实际应用中,预设资源信息例如可以是CDN厂商A有5个待分配缓存服务器IP资源,有2个IP与业务域名DNS请求指令的IP地址信息属于同一区域,有3个IP与业务域名DNS请求指令的IP地址信息不属于同一区域,则第三IP个数为2,第四IP个数为3,则分配资源至第三IP缓存服务器的概率为100%*2/5=40%,分配资源至第四IP缓存服务器的概率为100%*3/5=60%。Specifically, the total number of cache server IPs in the preset resource information is obtained, and based on the third IP number and the total cache server IP number in the preset resource information, the third IP number is calculated and obtained in the preset resource The proportion of the number of IPs in the information, the allocation probability of the third IP in the preset resource information is obtained by the proportion of the number of the third IP, and the cache servers to be allocated are divided into the same area according to the allocation probability, based on the allocation probability. Describe the fourth IP number and the overall cache server IP number in the preset resource information, calculate and obtain the ratio of the fourth IP number in the IP number in the preset resource information, and obtain the ratio of the fourth IP number by the proportion of the fourth IP number. The ratio obtains the allocation probability of the fourth IP in the preset resource information, and divides the cache servers to be allocated into different areas according to the allocation probability. In practical applications, the preset resource information can be, for example, that CDN manufacturer A has 5 cache server IP resources to be allocated, 2 IPs belong to the same area as the IP address information of the service domain name DNS request instruction, and 3 IP addresses belong to the service domain name. The IP address information of the DNS request instruction does not belong to the same area, then the number of third IPs is 2 and the number of fourth IPs is 3, then the probability of allocating resources to the third IP cache server is 100%*2/5=40% , the probability of allocating resources to the fourth IP cache server is 100%*3/5=60%.

在本发明一个可选实施例中,所述基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行划分,得到所述划分结果,包括以下步骤:In an optional embodiment of the present invention, dividing the cache server to be allocated based on the third IP number and the fourth IP number to obtain the dividing result includes the following steps:

(1)基于所述第三IP个数以及第四IP个数对所述待分配缓存服务器进行等比例划分,得到所述划分结果。(1) Divide the cache servers to be allocated in equal proportions based on the third IP number and the fourth IP number to obtain the dividing result.

在本发明实施例中,通过所述第三IP个数以及第四IP个数将待分配缓存服务器划分至同区域和非同区域,并按照所述第三IP个数以及第四IP个数等比例将资源合理调度分配至对应缓存服务器内,从而能够将同一运营商的属于同一区域和不属于同一区域的缓存服务器分别进行资源的调度分配,极大的提升了工作效率。In the embodiment of the present invention, the cache server to be allocated is divided into the same area and the different area according to the third IP number and the fourth IP number, and according to the third IP number and the fourth IP number Reasonable scheduling of resources is allocated to the corresponding cache servers in equal proportions, so that the cache servers belonging to the same region and those that do not belong to the same region of the same operator can be scheduled and allocated separately, which greatly improves work efficiency.

如图2所示,本发明实施例提供了一种基于融合CDN的资源调度装置,其特征在于,包括获取模块1、提取模块2、划分模块3以及调度模块4,其中,As shown in FIG. 2 , an embodiment of the present invention provides a resource scheduling device based on a converged CDN, which is characterized in that it includes an acquisition module 1, an extraction module 2, a division module 3, and a scheduling module 4, wherein,

获取模块1,用于获取业务域名DNS请求指令以及待分配缓存服务器IP资源,详细内容可以参见上述任意方法实施例的步骤S100的相关描述;The obtaining module 1 is used to obtain the service domain name DNS request instruction and the IP resource of the cache server to be allocated. For details, please refer to the relevant description of step S100 in any of the above method embodiments;

提取模块2,用于基于所述业务域名DNS请求指令提取资源分配的需求信息及所述业务域名DNS请求指令的IP地址信息,详细内容可以参见上述任意方法实施例的步骤S200的相关描述;Extraction module 2, configured to extract the demand information of resource allocation and the IP address information of the service domain name DNS request instruction based on the service domain name DNS request instruction, the details can refer to the relevant description of step S200 in any of the above method embodiments;

划分模块3,用于基于所述IP地址信息的所属区域及所述缓存服务器IP资源对缓存服务器的所属区域进行划分,获得划分结果,详细内容可以参见上述任意方法实施例的步骤S300的相关描述;The division module 3 is used to divide the area to which the cache server belongs based on the area to which the IP address information belongs and the IP resource of the cache server to obtain a division result. For details, please refer to the relevant description of step S300 in any of the above method embodiments. ;

调度模块4,用于基于所述需求信息及划分结果对所述待分配缓存服务器进行调度,详细内容可以参见上述任意方法实施例的步骤S400的相关描述。The scheduling module 4 is configured to schedule the to-be-allocated cache server based on the demand information and the division result. For details, please refer to the relevant description of step S400 in any of the above method embodiments.

本发明实施例提供的一种基于融合CDN的资源调度装置,获取业务域名DNS请求指令以及待分配缓存服务器IP资源,根据所述业务域名DNS请求指令提取IP地址信息,同时获取资源分配的需求信息,根据所述IP地址信息的所述区域及所述缓存服务器IP资源对缓存服务器的所述区域进行划分,根据所述资源分配的需求信息和划分的结果将待分配的缓存服务器进行调度分配。通过提取业务域名DNS请求指令中的IP信息以及需求信息,进行优选调度分配,解决了目前基于融合CDN系统中包含的缓存服务器分布差异较大时调度切量不准确的问题,在进行资源调度过程中,能够实现对业务流量的准确分配。An embodiment of the present invention provides a resource scheduling device based on a converged CDN, which acquires service domain name DNS request instructions and cache server IP resources to be allocated, extracts IP address information according to the service domain name DNS request instructions, and simultaneously acquires resource allocation demand information , divide the area of the cache server according to the area of the IP address information and the IP resource of the cache server, and schedule and allocate the cache server to be allocated according to the resource allocation demand information and the result of the division. By extracting the IP information and demand information in the DNS request instructions of the business domain name, optimal scheduling and allocation are performed, which solves the problem of inaccurate scheduling and slicing when the distribution of cache servers included in the fusion CDN system is quite different. can realize accurate distribution of business traffic.

关于基于融合CDN的资源调度装置的具体限定以及有益效果可以参见上文中对于基于融合CDN的资源调度方法的限定,在此不再赘述。上述基于融合CDN的资源调度装置的各个模块可全部或部分通过软件、硬件及其组合来实现。上述各模块可以硬件形式内嵌于或独立于电子设备中的处理器中,也可以以软件形式存储于电子设备中的存储器中,以便于处理器调用执行以上各个模块对应的操作。For the specific limitations and beneficial effects of the resource scheduling apparatus based on the converged CDN, reference may be made to the above limitations on the resource scheduling method based on the converged CDN, which will not be repeated here. Each module of the above-mentioned integrated CDN-based resource scheduling apparatus may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules can be embedded in or independent of the processor in the electronic device in the form of hardware, or stored in the memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

本发明实施例还提供一种基于融合CDN的资源调度设备,如图3所示,图3是本发明可选实施例提供的一种基于融合CDN的资源调度设备的结构示意图,该基于融合CDN的资源调度设备可以包括至少一个处理器41、至少一个通信接口42、至少一个通信总线43和至少一个存储器44,其中,通信接口42可以包括显示屏(Display)、键盘(Keyboard),可选通信接口42还可以包括标准的有线接口、无线接口。存储器44可以是高速RAM存储器(RandomAccess Memory,易挥发性随机存取存储器),也可以是非不稳定的存储器(non-volatilememory),例如至少一个磁盘存储器。存储器44可选的还可以是至少一个位于远离前述处理器41的存储装置。其中处理器41可以结合图2所描述的装置,存储器44中存储应用程序,且处理器41调用存储器44中存储的程序代码,以用于执行上述任意方法实施例的基于融合CDN的资源调度方法的步骤。An embodiment of the present invention further provides a resource scheduling device based on a converged CDN, as shown in FIG. 3 . FIG. 3 is a schematic structural diagram of a resource scheduling device based on a converged CDN provided by an optional embodiment of the present invention. The resource scheduling device may include at least one processor 41, at least one communication interface 42, at least one communication bus 43 and at least one memory 44, wherein the communication interface 42 may include a display screen (Display), a keyboard (Keyboard), optional communication The interface 42 may also include standard wired and wireless interfaces. The memory 44 may be a high-speed RAM memory (RandomAccess Memory, volatile random access memory), or may be a non-volatile memory (non-volatile memory), such as at least one disk memory. The memory 44 can optionally also be at least one storage device located away from the aforementioned processor 41 . The processor 41 can be combined with the device described in FIG. 2 , the memory 44 stores application programs, and the processor 41 calls the program code stored in the memory 44 to execute the converged CDN-based resource scheduling method in any of the above method embodiments A step of.

其中,通信总线43可以是外设部件互连标准(peripheral componentinterconnect,简称PCI)总线或扩展工业标准结构(extended industry standardarchitecture,简称EISA)总线等。通信总线43可以分为地址总线、数据总线、控制总线等。为便于表示,图3中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。The communication bus 43 may be a peripheral component interconnect (PCI for short) bus or an extended industry standard architecture (EISA for short) bus or the like. The communication bus 43 can be divided into an address bus, a data bus, a control bus, and the like. For ease of presentation, only one thick line is used in FIG. 3, but it does not mean that there is only one bus or one type of bus.

其中,存储器44可以包括易失性存储器(英文:volatile memory),例如随机存取存储器(英文:random-access memory,缩写:RAM);存储器也可以包括非易失性存储器(英文:non-volatile memory),例如快闪存储器(英文:flash memory),硬盘(英文:hard diskdrive,缩写:HDD)或固态硬盘(英文:solid-state drive,缩写:SSD);存储器44还可以包括上述种类的存储器的组合。The memory 44 may include volatile memory (English: volatile memory), such as random-access memory (English: random-access memory, abbreviation: RAM); the memory may also include non-volatile memory (English: non-volatile memory) memory), such as flash memory (English: flash memory), hard disk (English: hard diskdrive, abbreviation: HDD) or solid-state drive (English: solid-state drive, abbreviation: SSD); the memory 44 may also include the above-mentioned types of memory The combination.

其中,处理器41可以是中央处理器(英文:central processing unit,缩写:CPU),网络处理器(英文:network processor,缩写:NP)或者CPU和NP的组合。The processor 41 may be a central processing unit (English: central processing unit, abbreviation: CPU), a network processor (English: network processor, abbreviation: NP), or a combination of CPU and NP.

其中,处理器41还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(英文:application-specific integrated circuit,缩写:ASIC),可编程逻辑器件(英文:programmable logic device,缩写:PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(英文:complex programmable logic device,缩写:CPLD),现场可编程逻辑门阵列(英文:field-programmable gate array,缩写:FPGA),通用阵列逻辑(英文:generic arraylogic,缩写:GAL)或其任意组合。The processor 41 may further include a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (English: application-specific integrated circuit, abbreviation: ASIC), a programmable logic device (English: programmable logic device, abbreviation: PLD) or a combination thereof. The above-mentioned PLD may be a complex programmable logic device (English: complex programmable logic device, abbreviation: CPLD), a field programmable gate array (English: field-programmable gate array, abbreviation: FPGA), a general array logic (English: generic arraylogic , abbreviation: GAL) or any combination thereof.

可选地,存储器44还用于存储程序指令。处理器41可以调用程序指令,实现如本发明图1实施例中所示的基于融合CDN的资源调度方法。Optionally, memory 44 is also used to store program instructions. The processor 41 may invoke program instructions to implement the resource scheduling method based on the converged CDN as shown in the embodiment of FIG. 1 of the present invention.

本发明实施例还提供了一种非暂态计算机存储介质,所述计算机存储介质存储有计算机可执行指令,该计算机可执行指令可执行上述任意方法实施例中的基于融合CDN的资源调度方法。其中,所述存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)、随机存储记忆体(Random Access Memory,RAM)、快闪存储器(Flash Memory)、硬盘(Hard Disk Drive,缩写:HDD)或固态硬盘(Solid-State Drive,SSD)等;所述存储介质还可以包括上述种类的存储器的组合。Embodiments of the present invention further provide a non-transitory computer storage medium, where the computer storage medium stores computer-executable instructions, and the computer-executable instructions can execute the converged CDN-based resource scheduling method in any of the foregoing method embodiments. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM), a random access memory (Random Access Memory, RAM), a flash memory (Flash Memory), a hard disk (Hard) Disk Drive, abbreviation: HDD) or solid-state drive (Solid-State Drive, SSD), etc.; the storage medium may also include a combination of the above-mentioned types of memories.

显然,上述实施例仅仅是为清楚地说明所作的举例,而并非对实施方式的限定。对于所属领域的普通技术人员来说,在上述说明的基础上还可以做出其它不同形式的变化或变动。这里无需也无法对所有的实施方式予以穷举。而由此所引伸出的显而易见的变化或变动仍处于本发明创造的保护范围之中。Obviously, the above-mentioned embodiments are only examples for clear description, and are not intended to limit the implementation manner. For those of ordinary skill in the art, changes or modifications in other different forms can also be made on the basis of the above description. There is no need and cannot be exhaustive of all implementations here. And the obvious changes or changes derived from this are still within the protection scope of the present invention.

Claims (10)

1. A resource scheduling method based on a converged CDN is characterized by comprising the following steps:
acquiring a service domain name DNS request instruction and IP resources of a cache server to be allocated;
extracting the demand information of resource allocation and the IP address information of the service domain name DNS request instruction based on the service domain name DNS request instruction;
dividing the region of the cache server based on the region of the IP address information and the IP resources of the cache server to be allocated to obtain a division result;
and scheduling the cache servers to be distributed based on the demand information and the division result.
2. The method for resource scheduling based on the converged CDN of claim 1, wherein the dividing the area to which the cache server belongs based on the area to which the IP address information belongs and the cache server IP resource to obtain a division result includes:
acquiring the first IP number of cache servers to be allocated, which belong to the same region as the region to which the IP address information belongs, or,
acquiring a second IP number of cache servers to be allocated, wherein the cache servers to be allocated belong to a non-identical region with the region to which the IP address information belongs;
and dividing the cache servers to be allocated based on the first IP number or the second IP number to obtain the division result.
3. The method for resource scheduling based on the converged CDN of claim 2, wherein the dividing the cache servers to be allocated based on the first number of IPs comprises:
acquiring the first IP number ratio based on the first IP number and the IP address information;
and dividing the cache servers to be allocated based on the first IP number ratio.
4. The method for resource scheduling based on the converged CDN of claim 2, wherein the dividing the cache servers to be allocated based on the second number of IPs comprises:
acquiring the second IP number ratio based on the second IP number and the IP address information;
and dividing the cache servers to be allocated based on the second IP number.
5. The method for resource scheduling based on the converged CDN as recited in claim 1, wherein the dividing the area to which the cache server belongs based on the area to which the IP address information belongs and the cache server IP resource to obtain a division result comprises:
acquiring a third IP number of cache servers to be allocated in the same region and a fourth IP number of cache servers to be allocated in a non-same region in preset resource information based on the IP address information;
and dividing the cache servers to be allocated based on the third IP number and the fourth IP number to obtain the division result.
6. The method for resource scheduling based on the converged CDN as recited in claim 5, wherein the dividing the cache servers to be allocated based on the third and fourth IP numbers to obtain the division result comprises:
acquiring the IP number in the preset resource information;
calculating the ratio of the number of the third IP in the preset resource information based on the number of the third IP and the number of the IPs in the preset resource information;
calculating to obtain the ratio of the number of the fourth IP in the IP number in the preset resource information based on the number of the fourth IP and the number of the IPs in the preset resource information;
and dividing the cache servers to be allocated based on the ratio of the number of the third IP in the preset resource information and the ratio of the number of the fourth IP in the preset resource information to obtain the division result.
7. The method for resource scheduling based on the converged CDN of claim 5, wherein the dividing the cache servers to be allocated based on the third and fourth IP numbers to obtain the division result includes:
and carrying out equal proportion division on the cache servers to be allocated based on the third IP number and the fourth IP number to obtain the division result.
8. A resource scheduling device based on a converged CDN (content delivery network), comprising:
the acquisition module is used for acquiring a service domain name DNS request instruction and IP resources of a cache server to be allocated;
the extraction module is used for extracting the demand information of resource allocation and the IP address information of the service domain name DNS request instruction based on the service domain name DNS request instruction;
the dividing module is used for dividing the region of the cache server based on the region of the IP address information and the IP resource of the cache server to obtain a dividing result;
and the scheduling module is used for scheduling the cache server to be allocated based on the demand information and the division result.
9. A resource scheduling device based on a converged CDN (content delivery network), comprising:
a communication unit, a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor performing the steps of the method according to any one of claims 1 to 7 by executing the computer instructions.
10. A computer-readable storage medium having stored thereon computer instructions for causing a computer to perform the steps of the method of any one of claims 1-7.
CN202111590205.6A 2021-12-23 2021-12-23 A resource scheduling method, device and equipment based on converged CDN Active CN114448990B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111590205.6A CN114448990B (en) 2021-12-23 2021-12-23 A resource scheduling method, device and equipment based on converged CDN

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111590205.6A CN114448990B (en) 2021-12-23 2021-12-23 A resource scheduling method, device and equipment based on converged CDN

Publications (2)

Publication Number Publication Date
CN114448990A true CN114448990A (en) 2022-05-06
CN114448990B CN114448990B (en) 2023-06-23

Family

ID=81363468

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111590205.6A Active CN114448990B (en) 2021-12-23 2021-12-23 A resource scheduling method, device and equipment based on converged CDN

Country Status (1)

Country Link
CN (1) CN114448990B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150469A (en) * 2022-07-21 2022-10-04 天翼云科技有限公司 Storage method and device for domain name resolution result, electronic equipment and storage medium

Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2450394A1 (en) * 2000-05-26 2001-12-06 Akamai Technologies, Inc. Global load balancing across mirrored data centers
WO2013053785A1 (en) * 2011-10-13 2013-04-18 Telefonica, S.A. A method and a system to perform a distributed content acquisition process for a content delivery network
CN103873604A (en) * 2014-03-24 2014-06-18 成都博宇科技有限公司 Network access method based on analysis of CDN data
US8819227B1 (en) * 2012-03-19 2014-08-26 Narus, Inc. Discerning web content and services based on real-time DNS tagging
CN106412063A (en) * 2016-09-29 2017-02-15 赛尔网络有限公司 CDN node detection and resource scheduling system and method in education network
US20170310744A1 (en) * 2016-04-22 2017-10-26 Level 3 Communications, Llc Anycast routing techniques in a network
CN109167674A (en) * 2018-07-24 2019-01-08 网宿科技股份有限公司 Methods of marking, domain name system DNS dispatching method and the server of service node
CN110460652A (en) * 2019-07-26 2019-11-15 网宿科技股份有限公司 A resource acquisition method and an edge computing scheduling server
CN111614736A (en) * 2020-04-30 2020-09-01 北京金山云网络技术有限公司 Network content resource scheduling method, domain name scheduling server and electronic equipment
CN111917898A (en) * 2020-07-24 2020-11-10 网宿科技股份有限公司 Method and device for adjusting resource scheduling strategy
CN112202906A (en) * 2020-10-09 2021-01-08 安徽极玩云科技有限公司 CDN access optimization method and system
CN112583952A (en) * 2020-12-09 2021-03-30 北京金山云网络技术有限公司 Redirection scheduling processing method, device and system, related equipment and storage medium
CN113037878A (en) * 2021-05-26 2021-06-25 北京拓课网络科技有限公司 CDN data access method, system and electronic equipment
CN113452808A (en) * 2021-06-29 2021-09-28 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium

Patent Citations (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2450394A1 (en) * 2000-05-26 2001-12-06 Akamai Technologies, Inc. Global load balancing across mirrored data centers
WO2013053785A1 (en) * 2011-10-13 2013-04-18 Telefonica, S.A. A method and a system to perform a distributed content acquisition process for a content delivery network
US8819227B1 (en) * 2012-03-19 2014-08-26 Narus, Inc. Discerning web content and services based on real-time DNS tagging
CN103873604A (en) * 2014-03-24 2014-06-18 成都博宇科技有限公司 Network access method based on analysis of CDN data
US20170310744A1 (en) * 2016-04-22 2017-10-26 Level 3 Communications, Llc Anycast routing techniques in a network
CN106412063A (en) * 2016-09-29 2017-02-15 赛尔网络有限公司 CDN node detection and resource scheduling system and method in education network
CN109167674A (en) * 2018-07-24 2019-01-08 网宿科技股份有限公司 Methods of marking, domain name system DNS dispatching method and the server of service node
CN110460652A (en) * 2019-07-26 2019-11-15 网宿科技股份有限公司 A resource acquisition method and an edge computing scheduling server
CN111614736A (en) * 2020-04-30 2020-09-01 北京金山云网络技术有限公司 Network content resource scheduling method, domain name scheduling server and electronic equipment
CN111917898A (en) * 2020-07-24 2020-11-10 网宿科技股份有限公司 Method and device for adjusting resource scheduling strategy
CN112202906A (en) * 2020-10-09 2021-01-08 安徽极玩云科技有限公司 CDN access optimization method and system
CN112583952A (en) * 2020-12-09 2021-03-30 北京金山云网络技术有限公司 Redirection scheduling processing method, device and system, related equipment and storage medium
CN113037878A (en) * 2021-05-26 2021-06-25 北京拓课网络科技有限公司 CDN data access method, system and electronic equipment
CN113452808A (en) * 2021-06-29 2021-09-28 百果园技术(新加坡)有限公司 Domain name resolution method, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
K. FUJIWARA: ""DNS Traffic Analysis: Issues of IPv6 and CDN"", 《012 IEEE/IPSJ 12TH INTERNATIONAL SYMPOSIUM ON APPLICATIONS AND THE INTERNET》 *
崔子琦: "\" 业务特征感知的CDN网络资源调度的研究\"", 《中国优秀硕士学位论文信息科技辑》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115150469A (en) * 2022-07-21 2022-10-04 天翼云科技有限公司 Storage method and device for domain name resolution result, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN114448990B (en) 2023-06-23

Similar Documents

Publication Publication Date Title
CN109688235B (en) Virtual network service processing method, device and system, controller, storage medium
CN108737325B (en) A multi-tenant data isolation method, device and system
US11461149B1 (en) Capacity management in provider networks using dynamic host device instance model reconfigurations
CN107431651B (en) Life cycle management method and equipment for network service
WO2019201039A1 (en) Method and system for updating application and application server
WO2017016423A1 (en) Real-time new data update method and device
US20240406076A1 (en) Configuration method and apparatus for virtual network interface card resource, and computer device and medium
EP2998862A1 (en) Method, device, and system for memory management
CN108733449B (en) Method, apparatus, and computer-readable storage medium for managing virtual machines
WO2018040525A1 (en) Method, device, and equipment for processing resource pool
CN111064786B (en) Account identifier management method and device
CN113691575B (en) Communication method, device and system
CN110198530B (en) Flow-free service scheduling processing method, device, equipment and storage medium
US20220229701A1 (en) Dynamic allocation of computing resources
CN110708360A (en) An information processing method, system and electronic device
US20200358715A1 (en) Resource sharing method, computer device, and storage medium
CN110633130A (en) Virtual memory management method and device based on memory hot plug technology
CN107508765B (en) A message processing method and device
CN106708573B (en) A system and method for automatic installation of Hadoop cluster
WO2017054533A1 (en) External resource management method, apparatus and system through cloud interworking
CN106210156B (en) Processing method, device and the server of parsing task
CN114448990A (en) A resource scheduling method, device and device based on converged CDN
CN107798239B (en) Operational risk processing method, apparatus, computer equipment and storage medium
WO2019034084A1 (en) Method for applying for common service resource, related device, and system
CN104410511A (en) Server management 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