[go: up one dir, main page]

CN108881516B - Method and device for scheduling multi-CDN service system - Google Patents

Method and device for scheduling multi-CDN service system Download PDF

Info

Publication number
CN108881516B
CN108881516B CN201810847479.0A CN201810847479A CN108881516B CN 108881516 B CN108881516 B CN 108881516B CN 201810847479 A CN201810847479 A CN 201810847479A CN 108881516 B CN108881516 B CN 108881516B
Authority
CN
China
Prior art keywords
target
view
address
cache server
cache
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810847479.0A
Other languages
Chinese (zh)
Other versions
CN108881516A (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.)
Wangsu Science and Technology Co Ltd
Original Assignee
Wangsu Science and 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 Wangsu Science and Technology Co Ltd filed Critical Wangsu Science and Technology Co Ltd
Priority to CN201810847479.0A priority Critical patent/CN108881516B/en
Publication of CN108881516A publication Critical patent/CN108881516A/en
Application granted granted Critical
Publication of CN108881516B publication Critical patent/CN108881516B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

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

Landscapes

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

Abstract

本发明公开了一种调度多CDN服务系统的方法和装置,属于互联网技术领域。所述方法包括:根据预设视图信息以及预先为目标域名配置的在每个所述CDN服务系统中的接入域名,向所述每个CDN服务系统的权威DNS发起在每个视图下的对所述接入域名的解析请求;接收每个CDN服务系统返回的携带有每个视图下的IP地址的解析结果,监控所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量;当接收到对所述目标域名的目标域名解析请求时,确定所述目标域名解析请求对应的目标视图,返回目标IP地址。采用本发明,可以提高调度质量。

Figure 201810847479

The invention discloses a method and a device for scheduling a multi-CDN service system, belonging to the technical field of Internet. The method includes: according to preset view information and an access domain name in each of the CDN service systems pre-configured for the target domain name, initiating a query under each view to the authoritative DNS of each CDN service system. The resolution request of the access domain name; receiving the resolution result that carries the IP address under each view returned by each CDN service system, and monitoring the cache service quality of the cache server corresponding to the IP address under each view; When a target domain name resolution request for the target domain name is received, a target view corresponding to the target domain name resolution request is determined, and a target IP address is returned. By adopting the present invention, the scheduling quality can be improved.

Figure 201810847479

Description

Method and device for scheduling multi-CDN service system
Technical Field
The invention relates to the technical field of internet, in particular to a method and a device for scheduling a multi-CDN service system.
Background
With the continuous development of internet technology, CDN (Content Delivery Network) services are rapidly developing, and accordingly, the number of CDN service providers is increasing. Some CDN customers often adopt CDN service systems provided by multiple CDN service providers to perform CDN acceleration on a website, and may monitor the service quality of each CDN service system through a CDN scheduling system, schedule a CDN service system with better service quality in real time to perform CDN acceleration on the website, where the service quality mainly includes DNS service quality and cache service quality, the DNS service quality may be obtained based on factors such as DNS resolution time and DNS resolution accuracy of the CDN service system, and the cache service quality may be obtained based on factors such as cache response time and cache content hit rate of a cache server in the CDN service system.
The CDN scheduling system may configure a plurality of CNAME (alias Name) in advance for a website domain Name of a website that needs CDN acceleration, and the CNAME may be used as an access domain Name of the website domain Name in a certain CDN service system. When a user accesses the website for CDN acceleration through a terminal, the terminal may initiate a Domain Name resolution request for the website Domain Name to a public DNS (Domain Name System), and then the public DNS may initiate a Domain Name resolution request to an authoritative DNS in the CDN scheduling System, and then the authoritative DNS in the CDN scheduling System may return an access Domain Name of the website Domain Name in a certain CDN service System scheduled to the public DNS. Thus, the public DNS may initiate a domain name resolution request to the authoritative DNS of the scheduled CDN service system through the access domain name, and then the public DNS may receive an IP (Internet Protocol, Internet interconnection Protocol) address of a cache server in which the website content is cached, and feed back the IP address to the terminal, so that the terminal may obtain the website content cached by the cache server by accessing the IP address.
In the process of implementing the invention, the inventor finds that the prior art has at least the following problems:
the public DNS first needs to acquire an access domain name of the CDN service system from an authoritative DNS in the CDN scheduling system, and then may acquire an IP address of the cache server from the authoritative DNS of the CDN service system based on the access domain name, which results in a long DNS resolution time. In addition, if the DNS service quality of a certain CDN service system is poor and the cache service quality is good, the CDN scheduling system often does not schedule the CDN service system to provide the CDN service, so that the cache service that is good for the CDN service system cannot be fully utilized. Therefore, the scheduling quality of the CDN scheduling system is low.
Disclosure of Invention
In order to solve the problems in the prior art, embodiments of the present invention provide a method and an apparatus for scheduling a multi-CDN service system. The technical scheme is as follows:
in a first aspect, a method for scheduling a multi-CDN service system is provided, where the method includes:
initiating an analysis request for the access domain name under each view to an authoritative DNS of each CDN service system according to preset view information and the access domain name in each CDN service system configured for a target domain name in advance;
receiving an analysis result which is returned by each CDN service system and carries the IP address under each view, and monitoring the cache service quality of a cache server corresponding to the IP address under each view;
when a target domain name resolution request for the target domain name is received, determining a target view corresponding to the target domain name resolution request, and returning a target IP address corresponding to a cache server to be scheduled under the target view
Further, after monitoring the caching service quality of the caching server corresponding to the IP address under each view, the method further includes:
according to the monitored cache service quality of the cache server corresponding to the IP address under each view, the IP address corresponding to the cache server to be scheduled under each view is predetermined;
the returning of the target IP address corresponding to the cache server to be scheduled in the target view comprises:
and searching a target IP address corresponding to the cache server to be scheduled under the target view from the predetermined IP addresses corresponding to the cache servers to be scheduled under each view, and returning the target IP address.
Further, the returning of the target IP address corresponding to the cache server to be scheduled in the target view includes:
and determining a target IP address corresponding to the cache server to be scheduled in the target view according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, and returning the target IP address.
Further, the determining, according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, the target IP address corresponding to the cache server to be scheduled in the target view includes:
calculating the quality score of each cache server under the target view based on the monitored cache service data of the cache server corresponding to the IP address under the target view;
and determining the cache server with the highest quality score under the target view as a cache server to be scheduled, and determining the IP address corresponding to the cache server to be scheduled as the target IP address.
Further, the method further comprises:
and when the persistence time of the analysis result exceeds the preset time, initiating an analysis request for the access domain name under each view to an authoritative DNS of the CDN service system returning the analysis result again.
In a second aspect, an apparatus for scheduling a multi-CDN service system is provided, where the apparatus includes:
the sending module is used for initiating an analysis request for the access domain name in each view to an authoritative DNS of each CDN service system according to preset view information and the access domain name in each CDN service system configured for a target domain name in advance;
the monitoring module is used for receiving an analysis result which is returned by each CDN service system and carries the IP address under each view, and monitoring the cache service quality of the cache server corresponding to the IP address under each view;
and the determining module is used for determining a target view corresponding to the target domain name resolution request when the target domain name resolution request of the target domain name is received, and returning a target IP address corresponding to a cache server to be scheduled under the target view.
Further, the determining module is further configured to:
according to the monitored cache service quality of the cache server corresponding to the IP address under each view, the IP address corresponding to the cache server to be scheduled under each view is predetermined;
and searching a target IP address corresponding to the cache server to be scheduled under the target view from the predetermined IP addresses corresponding to the cache servers to be scheduled under each view, and returning the target IP address.
Further, the determining module is further configured to:
and determining a target IP address corresponding to the cache server to be scheduled in the target view according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, and returning the target IP address.
Further, the determining module is further configured to:
calculating the quality score of each cache server under the target view based on the monitored cache service data of the cache server corresponding to the IP address under the target view;
and determining the cache server with the highest quality score under the target view as a cache server to be scheduled, and determining the IP address corresponding to the cache server to be scheduled as the target IP address.
Further, the sending module is further configured to:
and when the persistence time of the analysis result exceeds the preset time, initiating an analysis request for the access domain name under each view to an authoritative DNS of the CDN service system returning the analysis result again.
In a third aspect, a scheduling device is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the at least one instruction, the at least one program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the method for scheduling a multi-CDN service system according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the method for scheduling a multi-CDN service system according to the first aspect.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
in this embodiment, the public DNS only needs to send a domain name resolution request to the CDN scheduling system, and can directly obtain the IP address of the cache server corresponding to the domain name, and does not need to obtain the IP address from the CDN service system where the cache server is located, so that DNS resolution time can be reduced, and scheduling quality of the CDN scheduling system is improved. In addition, when the CDN scheduling system schedules a plurality of CDN service systems to provide CDN services, only the cache service quality of each CDN service system needs to be considered, so that the cache service of each CDN service system can be fully utilized, and in particular, a CDN service system with poor DNS service quality and good cache service quality can be utilized, and the scheduling quality of the CDN scheduling system can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a network scenario diagram provided by an embodiment of the present invention;
fig. 2 is a flowchart of a method for scheduling a multi-CDN service system according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus for scheduling a multi-CDN service system according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a scheduling apparatus according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, embodiments of the present invention will be described in detail with reference to the accompanying drawings.
The embodiment of the invention provides a method for scheduling a multi-CDN service system, wherein an execution main body of the method can be scheduling equipment in the CDN scheduling system, and the scheduling equipment can be a single server or a cluster consisting of a plurality of servers; the CDN scheduling system can be built by a CDN customer or purchased by the CDN customer from a scheduling system service provider; the CDN client can adopt a plurality of CDN service systems to jointly accelerate the CDN of the website; the CDN service system may be provided by each CDN service provider, and redirect the access request of the user to a cache server closest to the user based on the access request of the user, where the cache server may be a server in the CDN service system that caches content requested by the user, and the cache server may return the cached content requested by the user to the user after receiving the access request of the user. The scheduling device of the CDN scheduling system may perform the determination in the multiple CDN service systems according to the access requests of different users, and schedule the CDN service system with better service quality in real time to process the access request of the user. A specific network scenario may be as shown in fig. 1. The scheduling device may include a processor, a memory, and a transceiver, where the processor may be configured to perform a process of scheduling the multi-CDN service system in the following process, the memory may be configured to store data required in the following process and data generated in the following process, and the transceiver may be configured to receive and transmit related data in the following process.
In the following, a detailed description will be given of a processing flow of the method for scheduling a multi-CDN service system shown in fig. 2 with reference to a specific embodiment, where the content may be as follows:
step 201: and initiating an analysis request for the access domain name in each view to an authoritative DNS of each CDN service system according to the preset view information and the access domain name in each CDN service system configured for the target domain name in advance.
In implementation, the scheduling device may configure an access domain name in each CDN service system for each website domain name in advance based on the CNAME technology, and for convenience of description, the website domain name will be referred to as a target domain name in the following description, and the target domain name may be any website domain name. For example, the target domain name may be www.xxx.com, and the access domain name configured by the scheduling device may be www.xxx.com.abc.com, www.xxx.com.def.com, and the domain of the access domain name abc. In addition, the scheduling device may store preset view information, the preset view information may record specific views corresponding to different IPs or IP segments, such as a beijing view and a guangdong view, the scheduling device may simulate domain name resolution requests in different views based on the preset view information, for example, a certain DNS address of the beijing telecommunications may be recorded as 219.141.136.10 in the preset view information, the view corresponding to the address may be a beijing view, a certain DNS address of the guangdong telecommunications is 202.96.128.86, the view corresponding to the address may be a guangdong view, and the scheduling device may simulate a technical effect of sending a domain name resolution request by 219.141.136.10 or 202.96.128.86, so that a domain name resolution request in the beijing view or the guangdong view is simulated. In this way, the scheduling device may initiate an analysis request for the access domain name to an authoritative DNS of each CDN service system in combination with the preset view information and the access domain name in each CDN service system configured for the target domain name in advance.
Step 202: and receiving an analysis result which is returned by each CDN service system and carries the IP address under each view, and monitoring the cache service quality of the cache server corresponding to the IP address under each view.
In implementation, after initiating a request for resolving an access domain name under each view to an authoritative DNS of each CDN service system, the scheduling device may receive a resolution result returned by each CDN service system for the domain name resolution request under each view, where each resolution result may carry an IP address under a certain view corresponding to the resolution result, and the IP address may correspond to a certain cache server in the CDN service system. Taking the CDN service system A, CDN service system B as an example, the scheduling device may initiate an access domain name resolution request under the beijing view and the guangdong view to an authoritative DNS of the CDN service system A, B, and after the authoritative DNS of the CDN service system A, B completes the domain name resolution request, the scheduling device may receive an resolution result carrying the IP address under the beijing view and an resolution result carrying the IP address under the guangdong view, which are returned by the CDN service system a, and an resolution result carrying the IP address under the beijing view and an resolution result carrying the IP address under the guangdong view, which are returned by the CDN service system B. Then, the scheduling device may monitor the cache service quality of the cache server corresponding to the IP address in each view, and record corresponding cache service data, such as cache response time, cache content hit rate, and cache cost.
Optionally, the scheduling device may determine in advance a cache server to be scheduled, and accordingly, the specific processing may be as follows: and according to the monitored cache service quality of the cache server corresponding to the IP address under each view, predetermining the IP address corresponding to the cache server to be scheduled under each view.
In implementation, the scheduling device may obtain, based on the cache service data of the cache server corresponding to the IP address in each view recorded in the monitoring process, the cache service quality of the cache server corresponding to the IP address in each view returned by each CDN service system, and then the scheduling device may perform analysis statistics on the cache service quality of each cache server in each view to find the cache server with the best cache service quality in each view, and further the scheduling device may determine the cache server with the best cache service quality in each view as the cache server to be scheduled in the corresponding view, and determine the IP address corresponding to the cache server to be scheduled.
Optionally, the scheduling device may adjust the current cache server to be scheduled based on a monitoring condition that changes continuously with time, and accordingly, the specific processing may be as follows: and re-determining the IP address corresponding to the cache server to be scheduled under each view at preset time intervals according to the recorded monitoring condition.
In implementation, considering that the cache service quality of each cache server is dynamically changed, the scheduling device may re-determine the cache server to be scheduled and its corresponding IP address under each view every preset time period, for example, five minutes or ten minutes, so that the scheduling device may determine the cache server currently having the best cache service quality as the cache server to be scheduled as far as possible based on the latest monitoring condition.
Step 203: when a target domain name resolution request for a target domain name is received, a target view corresponding to the target domain name resolution request is determined, and a target IP address corresponding to a cache server to be scheduled under the target view is returned.
In an implementation, when a user accesses a website accelerated by the CDN, the user may input a website domain name (which may be referred to as a target domain name) of the website in a browser application running on the terminal, and then may access the website by clicking an access button. In this way, the terminal can initiate a domain name resolution request for the target domain name to the public DNS. Then, the public DNS may query, based on the target domain name, an address of an authoritative DNS in the CDN scheduling system, and then the public DNS may initiate a domain name resolution request for the target domain name to the authoritative DNS in the CDN scheduling system. Then, the scheduling device may receive a target domain name resolution request for a target domain name, then determine a target view corresponding to the target domain name resolution request based on an IP address of a public DNS or a terminal IP address carried in a data packet corresponding to the target domain name resolution request, and then the scheduling device may obtain an IP address (which may be referred to as a target IP address) of a cache server to be scheduled in the target view, which is determined based on the recorded monitoring condition, and then the scheduling device may return the target IP address to the public DNS. In this way, after receiving the target IP address, the public DNS may return the target IP address to the terminal, and then the terminal may send an access request to the cache server to be scheduled through the target IP address to obtain the website content.
It is easy to understand that through the processing in step 201 and step 203, the technical effect of scheduling the cache server with better cache service quality to process the access request of the user to the website can be achieved, and thus, only the cache service quality of each CDN service system needs to be considered, and the DNS resolution quality of each CDN service system does not need to be considered, so that the cache service in each CDN service system can be fully utilized, and particularly, the CDN service system with better cache service quality due to poorer DNS service quality can be fully utilized.
Optionally, if the scheduling device determines the IP address of the cache server to be scheduled in each view in advance, part of the processing of step 203 may be as follows: and searching a target IP address corresponding to the cache server to be scheduled in the target view from the predetermined IP addresses corresponding to the cache servers to be scheduled in each view, and returning the target IP address.
In implementation, since the scheduling device determines the IP address of the cache server to be scheduled in each view in advance, after determining the target view corresponding to the target domain name resolution request, the scheduling device can find the IP address corresponding to the currently determined cache server to be scheduled in the target view, that is, the target IP address, from the IP addresses corresponding to the cache servers to be scheduled in each view, so that the scheduling device can directly return the target IP address to the public DNS, thereby improving the domain name resolution efficiency.
Optionally, after receiving the target domain name resolution request, the scheduling device may determine the cache server to be scheduled, and accordingly, the specific processing may be as follows: and determining a target IP address corresponding to the cache server to be scheduled in the target view according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, and returning the target IP address.
In implementation, after receiving the analysis result carrying the IP address under each view returned by each CDN service system, the scheduling device may monitor only the cache service quality of the cache server corresponding to the IP address under each view. In this way, the scheduling device may determine, according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, the IP address corresponding to the cache server to be scheduled in the target view only when receiving the target domain name resolution request for the target domain name, and then the scheduling device may return the determined IP address corresponding to the cache server to be scheduled in the target view to the public DNS, so that the system resource utilization rate of the scheduling device may be reduced.
Optionally, the cache server to be scheduled may be determined by calculating a quality score of the cache server, taking determining the cache server to be scheduled in the target view as an example, and accordingly, the specific processing may be as follows: calculating the quality scores of all cache servers under the target view based on the monitored cache service data of the cache servers corresponding to the IP addresses under the target view; and determining the cache server with the highest quality score under the target view as a cache server to be scheduled, and determining the IP address corresponding to the cache server to be scheduled as the target IP address.
In implementation, the scheduling device may monitor the cache service quality of the cache server corresponding to the IP address in each view, and record corresponding cache service data, for example, the cache response time in the last hour, the cache content hit rate, and the like. In this way, the scheduling device may find the cache service data of each cache server in the target view from all the recorded cache service data, and then calculate the quality score of each cache server in the target view, it is easy to understand that the higher the quality score is, the higher the cache service quality of the cache server is. Then, the scheduling device may determine, based on the calculated quality scores of the cache servers, the cache server with the highest quality score in the target view as the cache server to be scheduled, and determine the IP address corresponding to the cache server to be scheduled as the target IP address. Taking the target view as the beijing view and the CDN service system A, CDN service system B as an example, assuming that the CDN service system A, B returns one IP address each, the scheduling device may receive two IP addresses, may then monitor only the cache response times of the cache servers (recorded as cache server a and cache server B, respectively) corresponding to the two IP addresses, may further record the historical cache response times of the cache server A, B within a period of time, may then calculate the average cache response time of each of the cache servers A, B, may convert the average cache response time into a quality score of the cache server, for example, may take the reciprocal of the average cache response time, and use the obtained value as the quality score, for example, the average cache response time of the cache server A, B is 500 milliseconds, and the average cache response time of the cache server B is 500 milliseconds, and the average cache response time of the cache server B, And 1000 milliseconds, the converted quality scores are 0.002 and 0.001, and it can be seen that the quality score of the cache server a is higher than that of the cache server B, so the scheduling device can determine the IP address corresponding to the cache server a as the target IP address.
Optionally, considering that each CDN service system may dynamically adjust an IP address corresponding to each cache server, the scheduling device may periodically initiate an access domain name resolution request, and accordingly, the specific processing may be as follows: and when the persistence time of the analysis result exceeds the preset time, initiating an analysis request for the access domain name under each view to an authoritative DNS of the CDN service system returning the analysis result again.
In implementation, after receiving the analysis result carrying the IP address under each view returned by each CDN service system, the scheduling device may record the persistence time of each analysis result. When the persistence time of a certain analysis result exceeds a preset time, for example, one or three days, the scheduling device may reinitiate an analysis request for the access domain name in each view to the authoritative DNS of the CDN service system that returns the analysis result, so as to obtain the latest analysis result for the access domain name by each CDN service system, thereby ensuring that the IP address in each view is consistent with the actually corresponding cache server.
In this embodiment, the public DNS only needs to send a domain name resolution request to the CDN scheduling system, and can directly obtain the IP address of the cache server corresponding to the domain name, and does not need to obtain the IP address from the CDN service system where the cache server is located, so that DNS resolution time can be reduced, and scheduling quality of the CDN scheduling system is improved. In addition, when the CDN scheduling system schedules a plurality of CDN service systems to provide CDN services, only the cache service quality of each CDN service system needs to be considered, so that the cache service of each CDN service system can be fully utilized, and in particular, a CDN service system with poor DNS service quality and good cache service quality can be utilized, and the scheduling quality of the CDN scheduling system can be improved.
Based on the same technical concept, an embodiment of the present invention further provides a device for scheduling a multi-CDN service system, where as shown in fig. 3, the device includes:
a sending module 301, configured to initiate an analysis request for an access domain name in each view to an authoritative DNS of each CDN service system according to preset view information and the access domain name in each CDN service system configured for a target domain name in advance;
a monitoring module 302, configured to receive an analysis result carrying an IP address under each view returned by each CDN service system, and monitor the cache quality of the cache server corresponding to the IP address under each view;
the determining module 303 is configured to determine, when a target domain name resolution request for the target domain name is received, a target view corresponding to the target domain name resolution request, and return a target IP address corresponding to a cache server to be scheduled in the target view.
Optionally, the determining module 303 is further configured to:
according to the monitored cache service quality of the cache server corresponding to the IP address under each view, the IP address corresponding to the cache server to be scheduled under each view is predetermined;
and searching a target IP address corresponding to the cache server to be scheduled under the target view from the predetermined IP addresses corresponding to the cache servers to be scheduled under each view, and returning the target IP address.
Optionally, the determining module 303 is further configured to:
and determining a target IP address corresponding to the cache server to be scheduled in the target view according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, and returning the target IP address.
Optionally, the determining module 303 is further configured to:
calculating the quality score of each cache server under the target view based on the monitored cache service data of the cache server corresponding to the IP address under the target view;
and determining the cache server with the highest quality score under the target view as a cache server to be scheduled, and determining the IP address corresponding to the cache server to be scheduled as the target IP address.
Optionally, the sending module 301 is further configured to:
and when the persistence time of the analysis result exceeds the preset time, initiating an analysis request for the access domain name under each view to an authoritative DNS of the CDN service system returning the analysis result again.
In this embodiment, the public DNS only needs to send a domain name resolution request to the CDN scheduling system, and can directly obtain the IP address of the cache server corresponding to the domain name, and does not need to obtain the IP address from the CDN service system where the cache server is located, so that DNS resolution time can be reduced, and scheduling quality of the CDN scheduling system is improved. In addition, when the CDN scheduling system schedules a plurality of CDN service systems to provide CDN services, only the cache service quality of each CDN service system needs to be considered, so that the cache service of each CDN service system can be fully utilized, and in particular, a CDN service system with poor DNS service quality and good cache service quality can be utilized, and the scheduling quality of the CDN scheduling system can be improved.
It should be noted that: in the device for scheduling a multi-CDN service system according to the foregoing embodiment, when the multi-CDN service system is scheduled, only the division of the functional modules is described as an example, in practical applications, the function allocation may be completed by different functional modules according to needs, that is, an internal structure of the device is divided into different functional modules, so as to complete all or part of the functions described above. In addition, the device for scheduling a multi-CDN service system and the method for scheduling a multi-CDN service system provided in the foregoing embodiments belong to the same concept, and specific implementation processes thereof are described in detail in the method embodiments and are not described herein again.
Fig. 4 is a schematic structural diagram of a scheduling apparatus according to an embodiment of the present invention. The scheduler device 400 may vary significantly due to configuration or performance differences and may include one or more central processors 422 (e.g., one or more processors) and memory 432, one or more storage media 430 (e.g., one or more mass storage devices) storing applications 442 or data 444. Wherein the memory 432 and storage medium 430 may be transient or persistent storage. The program stored on the storage medium 430 may include one or more modules (not shown), each of which may include a sequence of instructions operating on a scheduling device. Still further, the central processor 422 may be arranged to communicate with the storage medium 430 to execute a series of instruction operations in the storage medium 430 on the scheduling device 400.
The scheduling apparatus 400 may also include one or more power supplies 426, one or more wired or wireless network interfaces 450, one or more input-output interfaces 458, one or more keyboards 456, and/or one or more operating systems 441, such as Windows Server (TM), Mac OS XTM, Unix (TM), Linux (TM), FreeBSD (TM), and the like.
The scheduling apparatus 400 may include a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors to include instructions for scheduling the multi-CDN service system as described above.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (11)

1.一种调度多CDN服务系统的方法,其特征在于,所述方法应用于CDN调度系统的调度设备中,所述方法包括:1. A method for scheduling a multi-CDN service system, wherein the method is applied to a scheduling device of a CDN scheduling system, and the method comprises: 根据预设视图信息以及预先为目标域名配置的在每个所述CDN服务系统中的接入域名,向所述每个CDN服务系统的权威DNS发起在每个视图下的对所述接入域名的解析请求;According to the preset view information and the access domain name in each CDN service system pre-configured for the target domain name, initiate the access domain name under each view to the authoritative DNS of each CDN service system parse request; 接收每个CDN服务系统返回的携带有每个视图下的IP地址的解析结果,监控所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量;Receive the resolution result that carries the IP address under each view returned by each CDN service system, and monitor the cache service quality of the cache server corresponding to the IP address under each view; 当接收到对所述目标域名的目标域名解析请求时,确定所述目标域名解析请求对应的目标视图,返回所述目标视图下待调度的缓存服务器所对应的目标IP地址。When a target domain name resolution request for the target domain name is received, a target view corresponding to the target domain name resolution request is determined, and the target IP address corresponding to the cache server to be scheduled in the target view is returned. 2.根据权利要求1所述的方法,其特征在于,所述监控所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量之后,还包括:2. The method according to claim 1, wherein after monitoring the cache service quality of the cache server corresponding to the IP address under each view, the method further comprises: 根据监控的所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量,预先确定所述每个视图下待调度的缓存服务器所对应的IP地址;According to the monitored cache service quality of the cache server corresponding to the IP address under each view, the IP address corresponding to the cache server to be scheduled under each view is predetermined; 所述返回所述目标视图下待调度的缓存服务器所对应的目标IP地址,包括:The returning the target IP address corresponding to the cache server to be scheduled in the target view includes: 在预先确定的所述每个视图下待调度的缓存服务器所对应的IP地址中,查找所述目标视图下待调度的缓存服务器所对应的目标IP地址,并将其返回。In the predetermined IP addresses corresponding to the cache servers to be scheduled in each view, the target IP addresses corresponding to the cache servers to be scheduled in the target view are searched, and returned. 3.根据权利要求1所述的方法,其特征在于,所述返回所述目标视图下待调度的缓存服务器所对应的目标IP地址,包括:3. The method according to claim 1, wherein the returning the target IP address corresponding to the cache server to be scheduled in the target view comprises: 根据监控的所述目标视图下的IP地址所对应的缓存服务器的缓存服务质量,确定所述目标视图下待调度的缓存服务器所对应的目标IP地址,并将其返回。According to the monitored cache service quality of the cache server corresponding to the IP address in the target view, determine the target IP address corresponding to the cache server to be scheduled in the target view, and return it. 4.根据权利要求3所述的方法,其特征在于,所述根据监控的所述目标视图下的IP地址所对应的缓存服务器的缓存服务质量,确定所述目标视图下待调度的缓存服务器所对应的目标IP地址,包括:4 . The method according to claim 3 , wherein, according to the monitored cache service quality of the cache server corresponding to the IP address in the target view, the cache server to be scheduled in the target view is determined. 5 . The corresponding destination IP address, including: 基于监控的所述目标视图下的IP地址所对应的缓存服务器的缓存服务数据,计算所述目标视图下各个缓存服务器的质量分数;Calculate the quality score of each cache server in the target view based on the monitored cache service data of the cache server corresponding to the IP address in the target view; 确定所述目标视图下所述质量分数最高的缓存服务器为待调度的缓存服务器,将所述待调度的缓存服务器所对应的IP地址确定为所述目标IP地址。It is determined that the cache server with the highest quality score in the target view is the cache server to be scheduled, and the IP address corresponding to the cache server to be scheduled is determined as the target IP address. 5.根据权利要求1所述的方法,其特征在于,所述方法还包括:5. The method according to claim 1, wherein the method further comprises: 当所述解析结果的存留时长超过预设时长时,重新向返回所述解析结果的所述CDN服务系统的权威DNS,发起在每个视图下的对所述接入域名的解析请求。When the retention time of the resolution result exceeds a preset time period, a resolution request for the access domain name under each view is re-initiated to the authoritative DNS of the CDN service system that returns the resolution result. 6.一种调度多CDN服务系统的装置,其特征在于,所述装置应用于CDN调度系统的调度设备中,所述装置包括:6. An apparatus for scheduling a multi-CDN service system, wherein the apparatus is applied to a scheduling device of a CDN scheduling system, and the apparatus comprises: 发送模块,用于根据预设视图信息以及预先为目标域名配置的在每个所述CDN服务系统中的接入域名,向所述每个CDN服务系统的权威DNS发起在每个视图下的对所述接入域名的解析请求;The sending module is configured to initiate a query under each view to the authoritative DNS of each CDN service system according to the preset view information and the access domain name in each of the CDN service systems pre-configured for the target domain name. The resolution request of the access domain name; 监控模块,用于接收每个CDN服务系统返回的携带有每个视图下的IP地址的解析结果,监控所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量;a monitoring module, configured to receive a resolution result that carries the IP address under each view returned by each CDN service system, and monitor the cache service quality of the cache server corresponding to the IP address under each view; 确定模块,用于当接收到对所述目标域名的目标域名解析请求时,确定所述目标域名解析请求对应的目标视图,返回所述目标视图下待调度的缓存服务器所对应的目标IP地址。A determining module, configured to determine a target view corresponding to the target domain name resolution request when receiving a target domain name resolution request for the target domain name, and return the target IP address corresponding to the cache server to be scheduled in the target view. 7.根据权利要求6所述的装置,其特征在于,所述确定模块还用于:7. The apparatus according to claim 6, wherein the determining module is further configured to: 根据监控的所述每个视图下的IP地址所对应的缓存服务器的缓存服务质量,预先确定所述每个视图下待调度的缓存服务器所对应的IP地址;According to the monitored cache service quality of the cache server corresponding to the IP address under each view, the IP address corresponding to the cache server to be scheduled under each view is predetermined; 在预先确定的所述每个视图下待调度的缓存服务器所对应的IP地址中,查找所述目标视图下待调度的缓存服务器所对应的目标IP地址,并将其返回。In the predetermined IP addresses corresponding to the cache servers to be scheduled in each view, the target IP addresses corresponding to the cache servers to be scheduled in the target view are searched and returned. 8.根据权利要求6所述的装置,其特征在于,所述确定模块还用于:8. The apparatus according to claim 6, wherein the determining module is further configured to: 根据监控的所述目标视图下的IP地址所对应的缓存服务器的缓存服务质量,确定所述目标视图下待调度的缓存服务器所对应的目标IP地址,并将其返回。According to the monitored cache service quality of the cache server corresponding to the IP address in the target view, determine the target IP address corresponding to the cache server to be scheduled in the target view, and return it. 9.根据权利要求8所述的装置,其特征在于,所述确定模块还用于:9. The apparatus according to claim 8, wherein the determining module is further configured to: 基于监控的所述目标视图下的IP地址所对应的缓存服务器的缓存服务数据,计算所述目标视图下各个缓存服务器的质量分数;Calculate the quality score of each cache server in the target view based on the monitored cache service data of the cache server corresponding to the IP address in the target view; 确定所述目标视图下所述质量分数最高的缓存服务器为待调度的缓存服务器,将所述待调度的缓存服务器所对应的IP地址确定为所述目标IP地址。It is determined that the cache server with the highest quality score in the target view is the cache server to be scheduled, and the IP address corresponding to the cache server to be scheduled is determined as the target IP address. 10.根据权利要求6所述的装置,其特征在于,所述发送模块还用于:10. The apparatus according to claim 6, wherein the sending module is further configured to: 当所述解析结果的存留时长超过预设时长时,重新向返回所述解析结果的所述CDN服务系统的权威DNS发起在每个视图下的对所述接入域名的解析请求。When the retention period of the resolution result exceeds a preset period, a resolution request for the access domain name under each view is re-initiated to the authoritative DNS of the CDN service system that returns the resolution result. 11.一种计算机可读存储介质,其特征在于,所述存储介质中存储有至少一条指令、至少一段程序、代码集或指令集,所述至少一条指令、所述至少一段程序、所述代码集或指令集由处理器加载并执行以实现如权利要求1至5任一所述的调度多CDN服务系统的方法。11. A computer-readable storage medium, wherein the storage medium stores at least one instruction, at least one piece of program, code set or instruction set, the at least one instruction, the at least one piece of program, the code The set or instruction set is loaded and executed by the processor to implement the method for scheduling a multi-CDN service system as claimed in any one of claims 1 to 5.
CN201810847479.0A 2018-07-27 2018-07-27 Method and device for scheduling multi-CDN service system Active CN108881516B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810847479.0A CN108881516B (en) 2018-07-27 2018-07-27 Method and device for scheduling multi-CDN service system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810847479.0A CN108881516B (en) 2018-07-27 2018-07-27 Method and device for scheduling multi-CDN service system

Publications (2)

Publication Number Publication Date
CN108881516A CN108881516A (en) 2018-11-23
CN108881516B true CN108881516B (en) 2021-03-19

Family

ID=64306429

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810847479.0A Active CN108881516B (en) 2018-07-27 2018-07-27 Method and device for scheduling multi-CDN service system

Country Status (1)

Country Link
CN (1) CN108881516B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109788080B (en) * 2018-12-07 2021-09-21 中国互联网络信息中心 Domain name resolution method and device based on graph view, electronic equipment and medium
CN111447291B (en) * 2018-12-29 2024-04-05 三六零科技集团有限公司 DNS-based scheduling method and system and electronic equipment
CN110708385A (en) * 2019-10-13 2020-01-17 杭州云缔盟科技有限公司 CDN scheduling algorithm and system based on network delay
CN112040027B (en) * 2020-09-14 2023-06-16 网易(杭州)网络有限公司 Data processing method and device, electronic equipment and storage medium
CN113411377B (en) * 2021-05-14 2023-08-18 郑州埃文计算机科技有限公司 CDN scene judging method based on DNS analysis of large content website
CN113905017B (en) * 2021-10-14 2023-03-24 牙木科技股份有限公司 Domain name resolution caching method, DNS (Domain name Server) and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756341B1 (en) * 2009-03-27 2014-06-17 Amazon Technologies, Inc. Request routing utilizing popularity information
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record
CN105516391A (en) * 2015-12-25 2016-04-20 互联网域名系统北京市工程研究中心有限公司 CNAME-based DNS (domain name system) domain name resolution method
CN105721394A (en) * 2014-12-03 2016-06-29 中国移动通信集团公司 Service access device, method and system oriented toward content delivery network
CN106161649A (en) * 2016-08-30 2016-11-23 常州云端网络科技股份有限公司 A kind of CDN intelligent dispatching method based on redirection mechanism

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8560598B2 (en) * 2009-12-22 2013-10-15 At&T Intellectual Property I, L.P. Integrated adaptive anycast for content distribution
CN104994123B (en) * 2015-05-12 2018-10-02 段利平 A kind of traffic scheduling method of CDN cloud platforms and CDN cloud platforms
CN106453671A (en) * 2015-08-07 2017-02-22 中国电信股份有限公司 Method, client, server and system for CDN scheduling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8756341B1 (en) * 2009-03-27 2014-06-17 Amazon Technologies, Inc. Request routing utilizing popularity information
CN104144222A (en) * 2014-08-20 2014-11-12 北京阅联信息技术有限公司 Method and system for load balancing in DNS system based on alias record
CN105721394A (en) * 2014-12-03 2016-06-29 中国移动通信集团公司 Service access device, method and system oriented toward content delivery network
CN105516391A (en) * 2015-12-25 2016-04-20 互联网域名系统北京市工程研究中心有限公司 CNAME-based DNS (domain name system) domain name resolution method
CN106161649A (en) * 2016-08-30 2016-11-23 常州云端网络科技股份有限公司 A kind of CDN intelligent dispatching method based on redirection mechanism

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CDN业务调度系统研究;吴茜,文静,李倩;《电信技术》;20160625;全文 *

Also Published As

Publication number Publication date
CN108881516A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN108881516B (en) Method and device for scheduling multi-CDN service system
US6324580B1 (en) Load balancing for replicated services
CN103973834B (en) A DNS domain name resolution acceleration method and device based on home gateway
EP3800870A1 (en) Method and device for controlling multi-cname traffic ratio
EP1125416B1 (en) System for responding to a resource request
US7802014B2 (en) Method and system for class-based management of dynamic content in a networked environment
US10187445B2 (en) System, method and browser client for enabling browser data synchronization
CN113452808B (en) Domain name resolution method, device, equipment and storage medium
CN109587290B (en) Domain name resolution method and related device
WO2013131485A1 (en) Method, apparatus, and system for allocating cdn volume
CN110213349A (en) A kind of HTTP dispatching method and device
US11297131B2 (en) Method and apparatus for multi-vendor GTM fabric
US10021207B1 (en) Architecture for proactively providing bundled content items to client devices
CN116996578B (en) Resource processing method and device based on content distribution network
US20240264877A1 (en) Dynamic selection of where to execute application code in a distributed cloud computing network
CN102932434B (en) A kind of method and device for carrying out load balancing to server
US10404651B2 (en) Domain name system network traffic management
CN110674098B (en) Domain name resolution method in distributed file system
CN106713456A (en) Network bandwidth statistics method and device
WO2019196225A1 (en) Resource file feedback method and apparatus
CN115086275B (en) Message processing method, device, medium and electronic equipment
CN110995827B (en) Communication processing method and device, computer readable medium and electronic equipment
CN113590915A (en) Partitioned data caching method, partitioned data accessing method, partitioned data caching device, partitioned data accessing device, terminal and storage medium
CN112019451B (en) Bandwidth allocation methods, debugging network elements, local cache servers and computing equipment
CN106686156A (en) A method and device for Internet audio and video domain name analysis

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