METHOD FOR SCORING A SERVICE NODE, AND METHOD AND SERVER FOR SCHEDULING A DOMAIN NAME SYSTEM

Information

  • Patent Application
  • 20210409298
  • Publication Number
    20210409298
  • Date Filed
    September 26, 2018
    6 years ago
  • Date Published
    December 30, 2021
    3 years ago
Abstract
A method for scoring a service node includes: obtaining address information of the service node; monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node; and scoring the service node according to the plurality of performance evaluation information.
Description
FIELD OF DISCLOSURE

The present disclosure generally relates to the field of Internet technology and, more particularly, relates to a method for scoring a service node, and a method and server for scheduling a domain name system.


BACKGROUND

The Domain Name System (DNS) is a distributed database of domain names. It is the core service of the basic resources of the Internet. It is mainly used to carry the conversion between the IP addresses and the Internet domain names, which makes it easier and faster for people to access the Internet. When a user initiates a domain name parsing request in the browser of a terminal, the terminal calls a parser to perform a DNS query, and the parser sends the DNS query request to a domain name server. The domain name server queries the resource record in the domain name space to obtain the corresponding source station service node, and returns the address information of the source station service node to the parser, which then returns the eventual result to the terminal.


Content Delivery Network (CDN) is a concept proposed in response to the complex network architecture. It is a network traffic distribution/scheduling system derived from DNS that aims to improve the speed and quality of Internet access. The main principle of CDN is to redirect a user's request to a source station service node closest to the user based on the comprehensive real-time information including the network traffic, and the connection, load status, distance to the user, and response time of each source station service node, etc., so as to avoid, as much as possible, the bottlenecks and links on the Internet that may affect the speed and stability of data transmission, thereby making the transmission of content faster and more stable.


However, in the course of long-term research and development, the applicant of the present disclosure has found that the existing technologies have at least the following problems:


The existing CDN scheduling systems mainly rely on static policies. By pre-deploying nodes across various sites over the network, a layer of new intelligent virtual network is formed, and a series of DNS mapping data tables are constructed to distinguish domain name route coverage in different regions. Eventually, a user access is directed to a corresponding node based on these DNS mapping data tables, to facilitate traffic routing and acceleration processing. However, these DNS mapping data tables are pre-set and strictly divided according to the territory of operators. Therefore, the data received by each node is a relatively stable static configuration. In addition, the scheduling system may not determine the availability of each node. Further, the resources may not back up each other between different nodes, and thus the flexibility is really poor. Accordingly, it is really difficult to achieve a rational resource allocation. In addition, there may be cases where an unavailable node is scheduled or the network traffic is unevenly distributed.


Moreover, in the existing technologies, there are also cases where the mixed CDN scheduling (i.e., a content provider uses a plurality of CDN service providers to provide services) exists. The mixed CDN scheduling service requires a scheduling system to select, schedule, and switch among a plurality of CDN service providers, to eventually obtain the resource with the optimal quality. This requires the scheduling system to have relatively comprehensive monitoring and scheduling mechanisms that can monitor the state of each CDN in real time, and switch to or add another CDN service when a certain CDN service is unavailable or overloaded. This means a huge investment in technologies and resources.


BRIEF SUMMARY OF THE DISCLOSURE

The objective of the implementations of the present disclosure is to provide a method for scoring a service node, and a method and server for scheduling a domain name system, which may score service nodes to identify a service node with high quality, thereby providing a basis for implementing a rational resource allocation.


To solve the above technical problems, the implementations of the present disclosure provide a method for scoring a service node. The method includes:


obtaining address information of the service node;


monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node; and


scoring the service node according to the plurality of performance evaluation information.


The implementations of the present disclosure further provide a method for scheduling a domain name system. The method includes:


obtaining a to-be-scheduled domain name and route service information corresponding to the to-be-scheduled domain name, where the route service information includes address information of a plurality of service nodes;


scoring the plurality of service nodes by using the above-described method for scoring a service node;


generating route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes; and


publishing the route scheduling information to a preset domain name server to allow the preset domain name server to execute the route scheduling information.


The implementations of the present disclosure further provide a server. The server includes:


at least one processor; and


a memory communicably coupled to the at least one processor, where:


the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to implement the above-described method for scheduling a domain name system.


The implementations of the present disclosure further provide a computer-readable storage medium. The computer-readable storage medium stores a computer program that, when executed by a processor, implements the above-described method for scheduling a domain name system.


Compared with the existing technologies, the implementations of the present disclosure provide a method for scoring a service node, which monitors the service node according to the obtained address information of the service node, so as to obtain a plurality of performance evaluation information of the service node to score the service node. In this way, the score of a service node may directly reflect information including whether the service node is available, whether the service node is a service node with high quality, etc., which provides a basis for implementing a rational resource allocation.


Preferably, in the methods for scoring a service node, monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node specifically include: if the address information of the service node is an alias for recording a CNAME (Canonical Name Record) address, obtaining resource response time and a download speed of the service node; and scoring the service node according to the plurality of performance evaluation information specifically includes: calculating a scored value of the service node according to a formula T=(t0/t)*(v/v0), where T is the scored value, t is the resource response time, t0 is preset resource response time, v is the download speed, and v0 is a preset download speed. In this way, a specific implementation form for monitoring and scoring a service node is provided, which enhances the flexibility of the implementations of the present disclosure, and thus allows the implementations of the present disclosure to have a wide range of applications.


Preferably, in the methods for scoring a service node, monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node specifically include: if the address information of the service node is an IP address, obtaining resource response time, a bandwidth usage, and a resource memory load of the service node; and scoring the service node according to the plurality of performance evaluation information specifically includes: calculating a scored value of the service node according to a formula T=(t0/t)*(n/n0)*(z/z0), where T is the scored value, t is the resource response time, t0 is preset resource response time, n is the bandwidth usage, n0 is a preset bandwidth usage, z is the resource memory load, and z0 is a preset resource memory load. In this way, a specific implementation form for monitoring and scoring a service node is provided, which enhances the flexibility of the implementations of the present disclosure, and thus allows the implementations of the present disclosure to have a wide range of applications.


Compared with the existing technologies, the method for scheduling a domain name system, in the implementations of the present disclosure, generates route scheduling information of a to-be-scheduled domain name according to a scored value of each service node corresponding to the route scheduling information, and publishes the route scheduling information to a preset domain name server for execution. The method provides a basis for implementing a real-time route tuning and optimization and a rational resource allocation, and is applicable to a scheduling within a CDN network or a mixed CDN scheduling across CDNs, and thus has a wide range of applications. In addition, there is no need for personnel intervention and operation, which saves the human and financial resources of enterprises, and effectively controls the operation and maintenance costs.


Preferably, in the method for scheduling a domain name system, generating the route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes specifically includes: ranking each service node that satisfies route filtering criteria according to an order of high-to-low of scored values; and generating the route scheduling information of the to-be-scheduled domain name according to a result of ranking. This allows the implementation of tuning and optimization of a parsing route and a rational resource allocation.


Preferably, in the method for scheduling a domain name system, after publishing the route scheduling information to the preset domain name server, the method further includes: pushing prompt information including the route scheduling information to a preset terminal. This allows technical staff to grasp more valid information in time.





BRIEF DESCRIPTION OF THE DRAWINGS

One or more implementations are to-be-exemplified with reference to the figures in the accompanying drawings. The exemplary illustration should not be constructed as limiting the implementations. In the accompanying drawing, elements with like reference numbers indicate like elements. Unless specifically specified, the figures in the accompanying drawings do not constitute a limitation on ratios of the drawings.



FIG. 1 is a processing flow of a method for scoring a service node according to Implementation 1 of the present disclosure;



FIG. 2 is a flowchart of a method for scheduling a domain name according to Implementation 2 of the present disclosure; and



FIG. 3 is a schematic diagram of a server according to Implementation 4 of the present disclosure.





DETAILED DESCRIPTION

To make the objective, technical solutions, and advantages of the implementations of the present disclosure clearer, each implementation of the present disclosure will be made in detail hereinafter with reference to the accompanying drawings. A person skilled in the art may understand that, to make the people to better understand the present disclosure, a lot of technical details are provided in the various implementations of the present disclosure. However, even without these technical details or the various modifications or deviations based on each of the following implementations, the technical solutions that the present disclosure seeks for protection may still be implemented.


Implementation 1 of the present disclosure relates to a method for scoring a service node, and a specific processing flow is shown in FIG. 1. The method for scoring a service node in the disclosed implementation is implemented on a server, which may be referred to as a “resource scoring center” hereinafter. The implementation steps of the scoring method in the disclosed implementation are as follows:


Step 101: Acquire address information of a service node.


Specifically, a service node may be a source station service node or an acceleration service node. The technical staff sends the address information of a to-be-scored service node to the resource scoring center. Here, the address information of the service node may be an IP address, or a CNAME address.


Step 102: Monitor the service node according to the address information of the service node, to obtain a plurality of performance evaluation information of the service node, and score the service node according to the plurality of performance evaluation information.


Specifically, the resource scoring center may control one or more monitoring machines to perform real-time monitoring and detection on the service node. That is, each monitoring machine may monitor a plurality of performance of the service node, to obtain a plurality of performance evaluation information of the service node. In this way, the resource scoring center may score the service node according to the plurality of performance evaluation information of the service node obtained by each monitoring machine.


The specific implementation of Step 102 in the disclosed implementation is described hereinafter by way of example. Step 102 includes Sub-Step 1021 to Sub-Step 1026, which are specifically as follows.


Sub-Step 1021: Determine whether the address information of the service node is a CNAME address; if the address information of the service node is a CNAME address, proceed to Sub-Step 1022; and if the address information of the service node is not a CNAME address, proceed to Sub-Step 1024.


Specifically, if the address information of the service node is a domain name, such as the domain name of a certain CDN service provider, the result of the determination in Sub-Step 1021 is YES. If the address information of the service node is an IP address, the result of the determination in Sub-Step 1021 is NO.


Sub-step 1022: Obtain resource response time and a download speed of the service node.


Specifically, the resource scoring center may control one or more monitoring machines to perform real-time monitoring and detection on the service node. For example, the resource scoring center controls the monitoring machine(s) to perform a network diagnostic PING (Packet Internet Groper) monitoring on the service node to obtain the download speed of the service node, and perform DNS monitoring on the service node to obtain the resource response time of the service node.


More specifically, the technical staff may pre-set the detection frequency of the monitoring machine(s) in the resource scoring center in advance, to allow the resource scoring center to control the monitoring machine(s) to obtain more accurate and representative data. For example, the detection frequency may be 2 minutes/once.


Sub-Step 1023: Calculate a scored value of the service node according to a first preset formula.


Specifically, the first preset formula is pre-entered by the technical staff and saved to the resource scoring center. In the disclosed implementation, the first preset formula is: T=(t0/t)*(v/v0), where T is the scored value, t is the resource response time, t0 is the preset resource response time, v is the download speed, and v0 is the preset download speed. For example, the resource scoring center controls a monitoring machine to perform real-time monitoring and detection on the service node. The values detected by the monitoring machine are: t is 40 ms, v is 2500 k/s, preset to is 100 ms, v0 is 1250 k/s, then T=(100/40)*(2500/1250)=5.


It should be noted that if the resource scoring center controls a plurality of monitoring machines to perform real-time monitoring and detection on the service node, the scored value of the service node is the mean of Ts. For example, the resource scoring center controls two monitoring machines to perform real-time monitoring and detection on the service node. The values detected by one monitoring machine are: t is 40 ms, v is 2500 k/s, and the values detected by the other monitoring machine are: t is 60 ms, and v is 2000 k/s. The preset to is 100 ms, v0 is 1250 k/s, then T=((100/40)*(2500/1250)±(60/40)*(2000/1250))/2=(5+2.67)/2=3.84.


Sub-Step 1024: Determine whether the address information of the service node is an IP address; if the address information of the service node is an IP address, proceed to Sub-Step 1025, and if the address information of the service node is not an IP address, end the process.


Sub-Step 1025: Obtain resource response time, bandwidth usage, and resource memory load of the service node.


Specifically, the resource scoring center may control one or more monitoring machines to perform real-time monitoring and detection on the service node. For example, the resource scoring center may control the monitoring machine(s) to perform a network diagnostic PING monitoring on the service node to obtain the download speed of the service node, perform a port monitoring on the service node to obtain the bandwidth usage of the service node, and perform a server performance monitoring on the service node to obtain the resource memory load.


More specifically, the implementation that the resource scoring center controls the monitoring machine(s) to perform a server performance monitoring on the service node to obtain the resource memory load may be specifically as follow: the resource scoring center controls the monitoring machine(s) to obtain the CPU usage, memory usage, and disk occupancy of the service node, and calculates the resource memory load of the service node based on the formula:







z
=



(

aA
1

)



(

bA
2

)



(

cA
3

)


3


,




where z is the resource memory load, A1 is the CPU usage, A2 is the memory usage, A3 is the disk occupancy, a is a preset weight of the CPU usage, b is a preset weight of the memory usage, and c is a preset weight of the disk occupancy.


For example, assume that a, b, and c are all 1, the CPU usage of the service node obtained by the monitoring machine(s) is 40%, the memory usage is 40%, and the disk occupancy is 40%, then






z
=




(

40

%

)



(

40

%

)



(

40

%

)


3

.





It should be noted that the formula for calculating the resource memory load in the disclosed implementation is:






z
=




(

aA
1

)



(

bA
2

)



(

cA
3

)


3

.





In real applications, the plurality of performance evaluation information of the service node obtained by the resource scoring center is not limited to the resource response time, the bandwidth usage, and the resource memory load. The technical staff may make certain deformations to the formula for calculating the resource memory load. For example, the formula for calculating the resource memory load may be transformed into







z
=



(

aA
1

)



(

bA
2

)













(

xA
n

)


m


,




where A1 to An represent specific numerical values of each performance evaluation information, m represents the number of performance evaluation information obtained by the resource scoring center, and x represents a preset weight for the performance evaluation information An.


Sub-Step 1026: Calculate a scored value of the service node according to a second preset formula.


Specifically, the second preset formula is pre-entered by the technical staff and saved to the resource scoring center. In the disclosed implementation, the second preset formula is: T=(t0/t)*(n/n0)*(z/z0), where T is the scored value, t is the resource response time, t0 is the preset resource response time, n is the bandwidth usage, and no is the preset bandwidth usage, z is the resource memory load, and z0 is the preset resource memory load. For example, the resource scoring center controls a monitoring machine to perform real-time monitoring and detection on the service node. The values detected by the monitoring machine are:







t





is





50





ms

,

n





is





40

%

,

z





is








(

40

%

)



(

40

%

)



(

40

%

)


3


,




the preset to is 200 ms, n0 is 80%, z0 is 80%, then






T
=




200





ms


50





ms


*


80

%


40

%


*


80

%



40

%
*
40

%
*
40

%
*

3



=
16.





More specifically, if the resource scoring center controls a plurality of monitoring machines to perform real-time monitoring and detection on the service node, the scored value of the service node is the mean of Ts. For example, the resource scoring center controls two monitoring machines to perform real-time monitoring and detection on the service nodes. The values detected by one monitoring machine are:







t





is





50





ms

,

n





is





40

%

,

z





is








(

40

%

)



(

40

%

)



(

40

%

)


3


,




and the values detected by the other monitoring machine are:







t





is





60





ms

,

n





is





60

%

,

z





is








(

50

%

)



(

50

%

)



(

50

%

)


3


,




then T=(16+8.53)/2=12.27.


It should be noted that the foregoing description of Step 102 is merely an exemplary description provided for the convenience of understanding. The disclosed implementations do not put any limitation on the performance evaluation information and the specific implementation form of scoring the service node according to the performance evaluation information. In real applications, the technical staff may set the specific implementation form of the performance evaluation information and the specific implementation form of scoring the service node according to actual needs.


Compared with the existing technologies, the implementations of the present disclosure provide a method for scoring a service node, which monitors the service node according to the obtained address information of the service node, so as to obtain a plurality of performance evaluation information of the service node, to score the service node. In this way, the score of a service node may directly reflect information including whether the service node is available, whether the service node is a service node with high quality, etc., which provides a basis for implementing a rational resource allocation.


Implementation 2 of the present disclosure relates to a method for scheduling a domain name system. The specific flowchart is shown in FIG. 2. Implementation 2 of the present disclosure needs to call the method for scoring a service node in Implementation 1, so as to generate route scheduling information of a certain domain name. In the disclosed implementation, the method for scheduling a domain name system is implemented on a server, which may be referred to as a “scheduling decision center”. The steps of the method for scheduling a domain name system in the disclosed implementation are specifically as follows:


Step 201: Obtain a to-be-scheduled domain name, and route service information corresponding to the to-be-scheduled domain name.


Specifically, the technical staff sends the to-be-scheduled domain name and the route service information corresponding to the to-be-scheduled domain name to the scheduling decision center. The route service information includes at least address information of a plurality of service nodes, where a service node may be a source station service node. For example, the address information of a service node may be an IP address.


More specifically, the route service information may include additional information such as a geographic location, an Internet service provider for each service node, etc. For example, the to-be-scheduled domain name and the route service information corresponding to the to-be-scheduled domain name obtained by the scheduling decision center may be as shown in the following Example 1:


Example 1

The to-be-scheduled domain name is test.example.com, and the route service information is as follows:














Internet Service
Geographic
Address Information (IP) of the


Provider
Location
Source Station Service Node







Default
Default
1.1.1.1


Fujian Telecom
Fujian
2.1.1.1


Shanghai Mobile
Shanghai
3.1.1.1


Beijing Unicorn
Beijing
4.1.1.1









Step 202: Obtain scored values of a plurality of service nodes included in the route service information.


Specifically, the scheduling decision center sends the address information of the plurality of service nodes included in the route service information to the resource scoring center in Implementation 1, so that the resource scoring center scores the plurality of service nodes included in the route service information, and return a scored value of each service node to the scheduling decision center.


Step 203: Generate route scheduling information of the to-be-scheduled domain name according to the scored value of each service node.


Specifically, the scheduling decision center may rank each of the plurality of service nodes according to the scored values, and generate the route scheduling information of the to-be-scheduled domain name according to the result of ranking. For example, the technical staff may configure route filtering criteria in the scheduling decision center in advance. The route filtering criteria may be that: the scored value of a service node is greater than a preset threshold. In this way, the scheduling decision center may filter out certain faulty routes or heavily loaded routes, so that the route scheduling information may be generated based on the service nodes with relatively high quality. For example, the scheduling decision center may rank the service nodes that satisfy the route filtering criteria (i.e., the scored value of a service node is greater than the preset threshold) according to the scored values, so as to generate the route scheduling information of the to-be-scheduled domain name according to the result of ranking.


It should be noted that the route filtering criteria may be also that: the type of Internet service provider is a preset type. For example, if the preset type is China Telecom, all the service nodes whose Internet service provider is Fujian Telecom satisfy the route filtering criteria. In this way, the scheduling decision center may rank the service nodes, whose Internet service provider belongs to China Telecom, according to the scored values, so as to generate the route scheduling information of the to-be-scheduled domain name according to the result of ranking.


For ease of understanding, the specific implementation of Step 203 in the disclosed implementation is illustrated in the following by way of example. However, the following description is merely for illustrative purpose, and the specific implementation form of Step 203 is not limited to the disclosed implementation.


The to-be-scheduled domain name is test.example.com, and the route service information is as shown in Table 1:


Assume that two monitoring machines Node1 and Node2 are deployed, and the detection data for each source station service node is as follows:


















Address








Information
Monitoring
Response
Bandwidth
CPU
Memory
Disk


(IP)
Machine
Time
Usage
Usage
Usage
Occupancy






















1.1.1.1
Node1
50
ms
40%
40%
40%
40%



Node2
60
ms
50%
50%
50%
50%


2.1.1.1
Node1
100
ms
50%
50%
50%
50%



Node2
120
ms
60%
60%
60%
60%


3.1.1.1
Node1
200
ms
60%
60%
60%
60%



Node2
250
ms
70%
70%
70%
70%


4.1.1.1
Node1
500
ms
80%
80%
80%
80%



Node2
500
ms
90%
90%
90%
90%









If the preset to is 200 ms, n0 is 80%, z0 is 80%, the preset weight of the CPU usage, the preset weight of the memory usage, and the preset weight of the disk occupancy are all 1, then the scoring table for each source station service node is as follows:















Address





Information


(IP)
Monitoring Machine
Score
Final Score


















1.1.1.1
Node1
16.00
12.27



Node2
8.53


2.1.1.1
Node1
5.12
4.04



Node2
2.96


3.1.1.1
Node1
1.78
1.41



Node2
1.04


4.1.1.1
Node1
0.40
0.36



Node2
0.32









If the preset type includes all types of currently available Internet service providers, that is, the current scheduling allows cross-operator access, the scheduling decision center may screen service nodes ranked in the top, so that when a route fails or when load is heavy, screened service nodes with high quality may be used for replacement and recovery, to ensure the normal parsing and operation of a route.


If the preset type includes only a certain type of currently available Internet service providers, i.e., the current scheduling does not allow cross-operator access, the scheduling decision center needs to remove service nodes except the preset type, and then ranks the remaining service nodes. Moreover, when the route service information includes a level of each service node, the scheduling decision center may generate route scheduling information of the to-be-scheduled domain name according to the level of service nodes and the result of ranking. For example, when a low-level route fails, the parsing route may be gradually switched from a low-level route to a high-level route. For example, when Fujian Telecom 2.1.1.1 fails, it is preferentially switched to a route of China Telecom. When there is no route of China Telecom or the IPs under the China Telecom are all down, switch to a default route 1.1.1.1. When the default routes all fail, the parsing route may be automatically switched according to the ranking of the scored values of the resources.


It should be noted that, since the monitoring machine(s) monitors each service node according to the detection frequency, the resource scoring center may control the monitoring machine(s) to obtain more accurate and representative data when the detection frequency is about 2 minutes/once. Moreover, the resource scoring center may perform dynamic scoring of each service node in real time, which provides a basis for the scheduling decision center to subsequently generate more dynamic route scheduling information in real-time. In this way, the timeliness and flexibility in adjusting the domain name system are effectively ensured, so as to prevent the problem of timeliness delay caused by the optimization using the manual operation mode in the existing technologies.


It should be noted that when the scheduling decision center generates the route scheduling information of the to-be-scheduled domain name, the load value may be set for each service node included in the route scheduling information according to a scheduling mode preset by the technical staff. For example, if the preset scheduling mode is an active/standby scheduling mode, a first service node may serve as the active scheduling route, and a second service node may serve as the standby scheduling route. For example, if the preset scheduling mode is a load balancing mode, the service nodes that are ranked first and second each is in charge of 50% of the scheduled traffic load. In this way, dynamic load balancing and multi-level active/standby switching may be achieved.


Step 204: Publish the route scheduling information to a preset domain name server.


Specifically, the technical staff may input and save the address information of one or more domain name servers to the scheduling decision center in advance, so that the scheduling decision center may publish the route scheduling information to a preset domain name server according to the address information of the currently stored domain name servers, to allow the domain name server to implement the route scheduling information. This provides a basis for comprehensive coverage of route scheduling information.


It should be noted that, in the disclosed implementation, after the scheduling decision center publishes the route scheduling information to the respective domain name server, the route scheduling information may be also pushed to a preset terminal, to allow the technical staff to grasp more valid information in time. Here, the preset terminal may be a mobile phone, a computer, or a tablet of technical staff. The scheduling decision center may push the route scheduling information to the preset terminal through various channels, such as mail, SMS, WeChat, and internal communications. Moreover, the scheduling decision center may also inform a user the resource failure, resource switching, resource recovery, and other information.


For example, prompt information including the route scheduling information may exist in the following format. However, the following example of the prompt information is merely for illustrative purpose. In real operations, the technical staff may preset the prompt items included in the prompt information.


[Message Type]: scheduling switch


[Type of Strategy]: route scheduling


[Time of Event]: 2017-11-23 11:57:35


[Domain Name]: test.example.com


[Route]: default route


[Scheduling Information]: 1.1.1.1 replaces 2.1.1.1.


In the disclosed implementation, the technical staff may also set a timing for switch in the scheduling decision center, such as an immediate switch, a delayed switch, or a manual switch, so that the scheduling decision center determines the time for publishing the route scheduling information according to the timing for switch.


It is not difficult to understand that the scheduling decision center in the disclosed implementation is equivalent to a CDN network traffic distribution/scheduling system, which generates route scheduling information of a to-be-scheduled domain name according to the scored value of each service node corresponding to the to-be-scheduled domain name. The route scheduling information is published to a domain name server for execution, thereby achieving the objective of real-time route tuning and optimization and rational resource allocation. In this way, the technical staff only needs to create a simple domain name configuration table (as shown in Table 1), the scheduling system then is able to evaluate the advantages and disadvantages of each service node. Accordingly, the optimal route scheduling information may be automatically generated for comprehensive network coverage, so as to eliminate the need for excessive personnel intervention and operation. At the moments that the service quality is effectively ensured, the human and financial resources of enterprises may be saved, and the operation and maintenance costs may be effectively controlled.


Implementation 3 of the present disclosure relates to a method for scheduling a domain name system. Implementation 3 of the present disclosure is substantially similar to Implementation 2. The main difference is that Implementation 3 of the present disclosure is applicable to a situation of mixed CDN scheduling across CDNs. Implementation 3 is specifically described as follows:


The specific steps of the scheduling method in Implementation 3 are the same as those in Implementation 2. The main difference is the specific implementation forms of each step, which is specifically described below.


Step 201: Obtain a to-be-scheduled domain name and route service information corresponding to the to-be-scheduled domain name.


Specifically, the technical staff sends the to-be-scheduled domain name and the route service information corresponding to the to-be-scheduled domain name to the scheduling decision center. The route service information includes at least address information of a plurality of service nodes, where a service node may be an acceleration service node. For example, the address information of a service node may be a CNAME address of a certain CDN node.


More specifically, the route service information may further include information such as a geographic location, an Internet service provider of each service node, and the like. For example, the to-be-scheduled domain name and the route service information corresponding to the to-be-scheduled domain name obtained by the scheduling decision center may be as shown in the following example:


Example 2

The to-be-scheduled domain name is cdn.example.com; and the route service information is as follows:














Internet Service
Geographic
Acceleration Service Node Address


Provider
Location
Information (CNAME)







Fujian Telecom
Fujian
CDN1


Fujian Telecom
Fujian
CDN2


Fujian Telecom
Fujian
CDN3









Here, CDN1, CDN2, and CDN3 represent the address information of respective network traffic distribution/scheduling system of three CDN service providers. The above Table 2 indicates that the content provider for the domain name cdn.example.com needs to use CDN1, CDN2, and CDN3 service providers for mixed acceleration.


Step 202: Obtain scored values of a plurality of service nodes included in the route service information.


The specific implementation of this step is the same as that of Implementation 2. That is, the scheduling decision center sends the address information of a plurality of service nodes included in the route service information to the resource scoring center in Implementation 1, so that the resource scoring center scores the plurality of service nodes included in the route service information, and return the scored value of each service node to the scheduling decision center.


Step 203: Generate route scheduling information of the to-be-scheduled domain name according to the scored value of each service node.


Assume that two monitoring devices Node1 and Node2 are deployed, and the data for each acceleration service node is as follows:















Address





Information


(CNAME)
Monitoring Machine
Response Time
Download Speed




















CDN1
Node1
40
ms
2500
k/s



Node2
60
ms
2000
k/s


CDN2
Node1
100
ms
1250
k/s



Node2
120
ms
1000
k/s


CDN3
Node1
200
ms
800
k/s



Node2
250
ms
600
k/s









If the preset to is 100 ms and v0 is 1250 k/s, the scoring table of each acceleration service node is as follows:


















Address






information



(CNAME)
Monitoring Machine
Score
Final Score





















CDN1
Node1
5
3.84




Node2
2.67



CDN2
Node1
1
0.84




Node2
0.67



CDN3
Node1
0.32
0.26




Node2
0.19










Next, based on the above scoring information, the scheduling decision center may rank each acceleration service node according to the scored values of the resources, and the route scheduling information may be set according to the preset number of acceleration service nodes. For example, when the preset number is 1, in Fujian Telecom, CDN1 is preferred. If the preset number is 2, in Fujian Telecom, CDN1 and CDN2 are preferred.


Step 204: Publish the route scheduling information to a preset domain name server.


The specific implementation of this step is the same as that of Implementation 2. To prevent repetition, details of the implementation are not described again here.


It is not difficult to understand that the scheduling decision center in Implementation 3 is equivalent to a network traffic distribution/scheduling system across CDNs, and is applicable to mixed CDN scheduling (i.e., across-CDN scheduling). This scheduling method generates route scheduling information of the to-be-scheduled domain name based on the scores of service nodes corresponding to the to-be-scheduled domain name, and publishes the route scheduling information to a domain name server for execution, so that the objective of dynamic optimal selection of service nodes according to the acceleration quality of each CDN may be achieved, and route tuning and optimization and rational resource allocation may be implemented in real time. Moreover, without excessive personnel intervention and operation, the human and financial resources of enterprises are greatly saved, and the operation and maintenance costs are controlled.


The steps of the above various methods are divided merely for the purpose of clear description. During the implementations, these steps may be combined into one step or certain steps may be split and decomposed into multiple steps, all of which should fall within the protection scope of the present disclosure as long as the same logical relationship is incorporated. The addition of insignificant modifications or the introduction of insignificant designs to an algorithm or process without changing the essential design of the algorithm and process shall also fall within the protection scope of the present disclosure.


Implementation 4 of the present disclosure relates to a server. As shown in FIG. 3, the server includes: at least one processor 301, and a memory 302 communicably coupled to the at least one processor 301; where the memory 302 stores instructions executable by the at least one processor 301 to cause the at least one processor 301 to implement the methods for scheduling a domain name system in the above-described method-related implementations.


The memory 302 and the processor 301 are connected by a bus. The bus may include any number of interconnected buses and bridges that connect various circuits of the processor 301 and the memory 302. The bus may also connect various other circuits, such as peripherals, voltage regulator, and power management circuit, as is well known in the art, and therefore, will not be further described again here. A bus interface provides an interface between the bus and a transceiver. The transceiver may be an element or a plurality of elements, such as a plurality of receivers and transmitters, which provide means for communicating with various other devices on a transmission medium. The data processed by the processor 301 is transmitted over wireless medium via an antenna. Further, the antenna also receives data and transmits data to the processor 301.


The processor 301 is responsible for managing the bus and normal processing, and may also provide various functions including timing, peripheral interfaces, voltage regulation, power management, and other control functions. The memory 302 may be used to store data used by the processor 301 in implementing certain operations.


Compared with the existing technologies, the implementations of the present disclosure provide a basis for achieving a tuning and optimization of a parsing route and rational resource allocation. Moreover, the scheduling of a domain name system is achieved without excessive personnel intervention and operation, which saves the human and financial resources of enterprises and effectively controls the operation and maintenance costs.


Implementation 5 of the present disclosure relates to a computer-readable storage medium storing a computer program that, when executed by a processor, implements the above-described method-related implementations.


Compared with the existing technologies, the implementations of the present disclosure provide a basis for achieving a tuning and optimization of a parsing route and rational resource allocation. Moreover, the scheduling of a domain name system is achieved without excessive personnel intervention and operation, which saves the human and financial resources of enterprises and effectively controls the operation and maintenance costs.


Those skilled in the art may understand that all or part of the steps for implementing the above implementations may be achieved by a program instructing related hardware. The program is stored in a storage medium and includes a plurality of instructions for enabling a device (which may be a microcontroller, a chip, etc.) or a processor to implement all or part of steps of the methods described in the various implementations of the present disclosure. The storage medium includes: a flash drive, a mobile hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk, etc.


A person skilled in the art may understand that the above implementations are merely specific implementations for implementing the present disclosure. In real applications, various changes may be made in the form and details without departing from the spirit and scope of the present disclosure.

Claims
  • 1. A method for scoring a server node, comprising: obtaining address information of the service node;monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node; andscoring the service node according to the plurality of performance evaluation information.
  • 2. The method according to claim 1, wherein: monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node further include: if the address information of the service node is a CNAME address, obtaining resource response time and a download speed of the service node; andscoring the service node according to the plurality of performance evaluation information further includes: calculating a scored value of the service node according to a formula T=(t0/t)*(v/v0)T=(t0/t)*(v/v0), wherein T is the scored value, t is the resource response time, t0 is preset resource response time, v is the download speed, and v0 is a preset download speed.
  • 3. The method according to claim 1, wherein: monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node further include: if the address information of the service node is an IP address, obtaining resource response time, a bandwidth usage, and a resource memory load of the service node; andscoring the service node according to the plurality of performance evaluation information further includes: calculating a scored value of the service node according to a formula T=(t0/t)*(n/n0)*(z/z0), wherein T is the scored value, t is the resource response time, t0 is preset resource response time, n is the bandwidth usage, n0 is a preset bandwidth usage, z is the resource memory load, and z0 is a preset resource memory load.
  • 4. The method according to claim 3, wherein obtaining the resource memory load of the service node further includes: obtaining a CPU usage, a memory usage, and a disk occupancy; andcalculating the resource memory load of the service node according to a formula:
  • 5. A method for scheduling a domain name system, comprising: obtaining a to-be-scheduled domain name and route service information corresponding to the to-be-scheduled domain name, wherein the route service information includes address information of a plurality of service nodes;scoring the plurality of service nodes by using a method for scoring a service node wherein the method for scoring a service node includes: obtaining address information of the service node,monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node, andscoring the service node according to the plurality of performance evaluation information;generating route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes; andpublishing the route scheduling information to a preset domain name server to allow the preset domain name server to execute the route scheduling information.
  • 6. The method according to claim 5, wherein generating the route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes further includes: ranking each service node that satisfies route filtering criteria according to an order of high-to-low of scored values; andgenerating the route scheduling information of the to-be-scheduled domain name according to a result of ranking.
  • 7. The method according to claim 6, wherein the route filtering criteria include one or a combination of: a scored value of a service node being larger than a preset threshold, and a type to which an Internet service provider of a service node belongs being a preset type.
  • 8. The method according to claim 5, wherein, after publishing the route scheduling information to the preset domain name server, the method further includes: pushing prompt information including the route scheduling information to a preset terminal.
  • 9. A server, comprising: at least one processor; anda memory communicably coupled to the at least one processor, wherein:the memory stores instructions executable by the at least one processor, and the instructions, when executed by the at least one processor, cause the at least one processor to implement a method for scheduling a domain name system, the method including: obtaining a to-be-scheduled domain name and route service information corresponding to the to-be-scheduled domain name, wherein the route service information includes address information of a plurality of service nodes,scoring the plurality of service nodes by using a method for scoring a service node, wherein the method for scoring a service node includes: obtaining address information of the service node,monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node, andscoring the service node according to the plurality of performance evaluation information,generating route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes, andpublishing the route scheduling information to a preset domain name server to allow the preset domain name server to execute the route scheduling information.
  • 10. (canceled)
  • 11. The server according to claim 9, wherein generating the route scheduling information of the to-be-scheduled domain name according to a scored value of each of the plurality of service nodes further includes: ranking each service node that satisfies route filtering criteria according to an order of high-to-low of scored values; andgenerating the route scheduling information of the to-be-scheduled domain name according to a result of ranking.
  • 12. The server according to claim 11, wherein the route filtering criteria include one or a combination of: a scored value of a service node being larger than a preset threshold, and a type to which an Internet service provider of a service node belongs being a preset type.
  • 13. The server according to claim 9, wherein, after publishing the route scheduling information to the preset domain name server, the method for scheduling a domain name system further includes: pushing prompt information including the route scheduling information to a preset terminal.
  • 14. The method according to claim 5, wherein: monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node further include: if the address information of the service node is a CNAME address, obtaining resource response time and a download speed of the service node; andscoring the service node according to the plurality of performance evaluation information further includes: calculating a scored value of the service node according to a formula T=(t0/t)*(v/v0), wherein T is the scored value, t is the resource response time, t0 is preset resource response time, v is the download speed, and v0 is a preset download speed.
  • 15. The method according to claim 5, wherein: monitoring the service node according to the address information of the service node, and obtaining a plurality of performance evaluation information of the service node further include: if the address information of the service node is an IP address, obtaining resource response time, a bandwidth usage, and a resource memory load of the service node; andscoring the service node according to the plurality of performance evaluation information further includes: calculating a scored value of the service node according to a formula T=(t0/t)*(n/n0)*(z/z0), wherein T is the scored value, t is the resource response time, t0 is preset resource response time, n is the bandwidth usage, n0 is a preset bandwidth usage, z is the resource memory load, and z0 is a preset resource memory load.
  • 16. The method according to claim 15, wherein obtaining the resource memory load of the service node further includes: obtaining a CPU usage, a memory usage, and a disk occupancy; andcalculating the resource memory load of the service node according to a formula:
  • 17. The method according to claim 5, wherein, monitoring the service node according to the address information of the service node further includes: monitoring the service node according to a detection frequency.
  • 18. The method according to claim 5, wherein, generating the route scheduling information of the to-be-scheduled domain name according to the scored value of each of the plurality of service nodes further includes: setting a load value for each service node included in the route scheduling information according to a preset scheduling mode.
  • 19. The method according to claim 7, wherein, if the Internet service provider of a service node includes all types of currently available Internet service providers, one or more service nodes ranked in the top may be selected for replacement and recovery purpose.
  • 20. The method according to claim 7, wherein, if the Internet service provider of a service node includes a certain type of currently available Internet service providers, service nodes except the preset type are excluded, and the remaining service nodes are ranked.
Priority Claims (1)
Number Date Country Kind
201810816718.6 Jul 2018 CN national
PCT Information
Filing Document Filing Date Country Kind
PCT/CN2018/107474 9/26/2018 WO 00