CN115442330B - Domain name resolution system, method and equipment - Google Patents

Domain name resolution system, method and equipment Download PDF

Info

Publication number
CN115442330B
CN115442330B CN202210937864.0A CN202210937864A CN115442330B CN 115442330 B CN115442330 B CN 115442330B CN 202210937864 A CN202210937864 A CN 202210937864A CN 115442330 B CN115442330 B CN 115442330B
Authority
CN
China
Prior art keywords
address
value
domain name
determining
response
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
CN202210937864.0A
Other languages
Chinese (zh)
Other versions
CN115442330A (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.)
Tianyi Cloud Technology Co Ltd
Original Assignee
Tianyi Cloud Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tianyi Cloud Technology Co Ltd filed Critical Tianyi Cloud Technology Co Ltd
Priority to CN202210937864.0A priority Critical patent/CN115442330B/en
Publication of CN115442330A publication Critical patent/CN115442330A/en
Application granted granted Critical
Publication of CN115442330B publication Critical patent/CN115442330B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/10Mapping addresses of different types
    • H04L61/103Mapping addresses of different types across network layers, e.g. resolution of network layer into physical layer addresses or address resolution protocol [ARP]

Landscapes

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

Abstract

The application discloses a domain name resolution system, a domain name resolution method and domain name resolution equipment, which are used for enabling traffic scheduling to be more orderly. Because the CDN of the application can acquire the flow parameter value of each IP address of each region corresponding to any domain name; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; and sending the response probability corresponding to each IP address to the Local DNS corresponding to the region; the Local DNS can determine the target IP address of the response based on the response probability corresponding to each IP address when receiving the domain name resolution request for the domain name sent by the client, and based on the response probability, the purposes of more orderly flow scheduling and ensuring the network smoothness can be realized.

Description

Domain name resolution system, method and equipment
Technical Field
The present disclosure relates to the field of cloud computing technologies, and in particular, to a domain name resolution system, a domain name resolution method, a domain name resolution device, a domain name resolution medium and a domain name resolution method.
Background
Domain name resolution is a IP (Internet Protocol) address that directs a domain name to the web site space, i.e., domain name resolution is the process of translating a domain name into an IP address, and the resolution of the domain name is typically done by a domain name server (Domain Name System, DNS).
For example, when the object needs to access the network through the client, a domain name may be input in the browser, a domain name resolution request is triggered, after the DNS receives the domain name resolution request, it may determine that each IP address corresponding to the domain name is located in the area where the client is located, and select a target IP address from each IP address, thereby completing the domain name resolution process, and returning the selected target IP address to the client of the object. The object may enable access to a server corresponding to a target IP address at the client based on the target IP address.
However, for the same domain name, when multiple objects trigger the domain name resolution request at the same time, if the target IP addresses returned by the clients of the multiple objects are all the same IP address, traffic congestion may be caused, and network smoothness may be affected.
Therefore, how to select the target IP address from each IP address when performing domain name resolution, so that traffic scheduling is more orderly, and network smoothness is ensured, which is a technical problem to be solved urgently at present.
Disclosure of Invention
In order to make traffic scheduling more orderly, the application provides a domain name resolution system, a method, a device, equipment and a medium.
In a first aspect, the present application provides a domain name resolution system, the system comprising:
the content delivery network CDN is used for acquiring the flow parameter value of each IP address of each region corresponding to any domain name; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to a Local domain name server Local DNS corresponding to the region;
the Local DNS is used for receiving the response probability corresponding to each IP address and determining a target IP address for response based on the response probability corresponding to each IP address when receiving a domain name resolution request for the domain name sent by a client; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a second aspect, the present application provides a domain name resolution method, where the method is applied to a content delivery network CDN, the method includes:
for each region corresponding to any domain name, acquiring a flow parameter value of each IP address of the region;
Determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to a Local domain name server Local DNS corresponding to the region, the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request aiming at the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In a third aspect, the present application provides a domain name resolution method, where the method is applied to a Local domain name server Local DNS, the method includes:
receiving response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is determined for each IP address based on the flow parameter value of each IP address and a set response proportion adjustment algorithm, and the response probability is determined when the IP address is used for responding;
When a domain name resolution request for the domain name sent by a client is received, determining a target IP address for response based on response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a fourth aspect, the present application provides a domain name resolution device, applied to a CDN, where the device includes:
and the acquisition module is used for acquiring the flow parameter value of each IP address of each region corresponding to any domain name.
The determining module is used for determining response probability when responding with the IP address according to the flow parameter value of each IP address and the set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to the Local DNS corresponding to the region, so that the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request for the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In a fifth aspect, the present application provides a domain name resolution device, applied to a Local DNS, including:
the receiving module is used for receiving the response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is a response probability determined for each IP address when responding to the IP address based on the traffic parameter value of each IP address and a set response proportion adjustment algorithm.
The response module is used for determining a target IP address for response based on response probability corresponding to each IP address when receiving a domain name resolution request for the domain name sent by the client; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a sixth aspect, the present application provides an electronic device, including: a processor, a memory;
the memory is used for storing computer instructions;
the processor is configured to read the computer instructions and perform the method of any of the above.
In a seventh aspect, the present application provides a computer-readable storage medium storing computer-executable instructions for causing a computer to perform a method as claimed in any one of the preceding claims.
In an eighth aspect, the present application also provides a computer program product which, when invoked by a computer, causes the computer to perform the method of any one of the preceding claims.
Because the CDN of the application can acquire the flow parameter value of each IP address of each region corresponding to any domain name; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; and sending the response probability corresponding to each IP address to the Local DNS corresponding to the region; the Local DNS can determine the target IP address of the response based on the response probability corresponding to each IP address when receiving the domain name resolution request for the domain name sent by the client, and based on the response probability, the purposes of more orderly flow scheduling and ensuring the network smoothness can be realized.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic diagram of a domain name resolution system according to an embodiment of the present application;
fig. 2 is a schematic diagram of a domain name resolution process according to an embodiment of the present application;
fig. 3 is a schematic diagram of a domain name resolution flow provided in an embodiment of the present application;
FIG. 4 is a schematic diagram of another domain name resolution flow provided in an embodiment of the present application;
fig. 5 is a schematic diagram of a domain name resolution device according to an embodiment of the present application;
fig. 6 is a schematic diagram of another domain name resolution device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make traffic scheduling more orderly, the embodiment of the application provides a domain name resolution system, a method, a device, equipment and a medium.
For purposes of clarity and implementation of the present application, the following description will make clear and complete descriptions of exemplary implementations of the present application with reference to the accompanying drawings in which exemplary implementations of the present application are illustrated, it being apparent that the exemplary implementations described are only some, but not all, of the examples of the present application.
It should be noted that the brief description of the terms in the present application is only for convenience in understanding the embodiments described below, and is not intended to limit the embodiments of the present application. Unless otherwise indicated, these terms should be construed in their ordinary and customary meaning.
The terms "first," second, "" third and the like in the description and in the claims and in the above-described figures are used for distinguishing between similar or similar objects or entities and not necessarily for limiting a particular order or sequence, unless otherwise indicated. It is to be understood that the terms so used are interchangeable under appropriate circumstances.
The terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a product or apparatus that comprises a list of elements is not necessarily limited to all elements explicitly listed, but may include other elements not expressly listed or inherent to such product or apparatus.
The term "module" refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic, or combination of hardware or/and software code that is capable of performing the function associated with that element.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Example 1:
fig. 1 is a schematic diagram of a domain name resolution system according to an embodiment of the present application, where the system includes:
a content delivery network (Content Delivery Network, CDN) 11 for acquiring, for each region corresponding to any domain name, a traffic parameter value of each IP address of the region; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; and transmitting the response probability corresponding to each IP address to a Local domain name server (Local Domain Name System, local DNS) 12 corresponding to the region;
the Local DNS 12 is configured to receive a response probability corresponding to each IP address, and determine, when receiving a domain name resolution request for the domain name sent by the client, a target IP address for response based on the response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In one possible implementation, in order to make the traffic scheduling more orderly, the CDN 11 and the Local DNS 12 may be mutually matched so as to implement accurate traffic scheduling. Alternatively, the CDN 11 may obtain, for each region corresponding to any domain name, a traffic parameter value of each IP address (node) of the region. Illustratively, the bandwidth load collection device may collect a traffic parameter value such as a bandwidth load rate, a health value, etc. of each IP address (node), and the CDN 11 may obtain the traffic parameter value. Alternatively, the bandwidth load collection device may be included in the CDN 11, or may be another device independent of the CDN 11, which is not specifically limited in this application. In addition, the prior art may be used to collect the traffic parameter values such as the bandwidth load rate and the health value of each IP address (node), which is not limited in this application, for example, taking the health value of the collected IP address (node) as an example, the health of each IP address (node) may be periodically checked according to a set time period, so as to obtain the health value of each IP address (node).
After acquiring the flow parameter value of each IP address of each region corresponding to any domain name, the CDN 11 may determine, for each IP address, a response probability when responding to the IP address based on the flow parameter value of each IP address and a set response proportion adjustment algorithm. In one possible embodiment, when determining, for any region, a response probability when responding with any IP address in the region, a sum value and an average value of flow parameter values of respective IP addresses of the region may be determined first, and then, for each IP address, a difference value between the average value and the flow parameter value of the IP address may be determined, and based on a ratio of the difference value and the sum value, a response probability when responding with the IP address may be determined. For example, when determining the response probability, the initial probability value corresponding to each IP address may be determined according to the number of the IP addresses; then, for each IP address, based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value, determining the response probability when responding with the IP address.
For ease of understanding, the procedure for determining the response probability provided in the present application is explained in the form of a formula.
Assume that for a domain name, the domain name has n IP addresses (nodes) in total in a certain region. The specific numerical value of n is not specifically limited, can be flexibly set according to requirements, and can be optionally any positive integer not more than 14. The traffic parameter value for each IP address is denoted by L (i), where i is 1,2,3, … … n.
The sum of the traffic parameter values of the respective IP addresses is sum (L (1) +l (2) +l (3) + … … +l (n));
the average value of the flow parameter values of the respective IP addresses is avg (L (1) +l (2) +l (3) + … … +l (n));
the initial probability value corresponding to each IP address is 1/n;
response probability when responding with each IP address
In one possible embodiment, the response probability P may be not greater than 1, i.e., 0.ltoreq.P.ltoreq.1.
In one possible embodiment, the traffic parameter value may include at least one of a bandwidth load rate, a health value, that is, the traffic parameter value may include only the bandwidth load rate, only the health value, or both the bandwidth load rate and the health value.
For ease of understanding, the following description will first illustrate how the response probability is determined when only the bandwidth load factor is included in the traffic parameter values. The process of determining the probability of response of the present application is still explained in terms of formula behavior.
Assume that for a domain name, the domain name has n IP addresses (nodes) in total in a certain region. The traffic parameter value of each IP address, i.e., the bandwidth load rate, is represented by load (i), where i is 1,2,3, … … n.
The sum of the traffic parameter values of the respective IP addresses is sum (load (1) +load (2) +load (3) + … … +load (n));
the average value of the flow parameter values of the respective IP addresses is avg (load (1) +load (2) +load (3) + … … +load (n));
the initial probability value corresponding to each IP address is 1/n;
response probability when responding with each IP address
In one possible implementation, if the traffic parameter value includes a bandwidth load rate and a health value, when determining the traffic parameter value of the IP address for each IP address, the traffic parameter value of the IP address may be determined based on the bandwidth load rate, the health value, and a set traffic parameter determination algorithm of the IP address. For each IP address, the traffic parameter value of the IP address may be determined according to the maximum value of the bandwidth load rate and the health value of the IP address, that is, the maximum value of the bandwidth load rate and the health value of the IP address may be determined as the traffic parameter value of the IP address.
In addition, when determining the traffic parameter value of the IP address, the traffic parameter value of the IP address may be determined according to the minimum value of the bandwidth load rate and the health value of the IP address, that is, the minimum value of the bandwidth load rate and the health value of the IP address may be determined as the traffic parameter value of the IP address.
In addition, when determining the traffic parameter value of the IP address, the traffic parameter value of the IP address may be determined according to the average value of the bandwidth load rate and the health value of the IP address, that is, the average value of the bandwidth load rate and the health value of the IP address may be determined as the traffic parameter value of the IP address.
In addition, when determining the traffic parameter value of the IP address, the traffic parameter value of the IP address may be determined according to the bandwidth load factor of the IP address, the set bandwidth load factor weight coefficient, the health value, and the set health value weight coefficient. For example, a first product of the bandwidth load rate of the IP address and the set bandwidth load rate weight coefficient may be determined (for convenience of description, the product of the bandwidth load rate and the bandwidth load rate weight coefficient is referred to as a first product), and a second product of the health value of the IP address and the set health value weight coefficient (for convenience of description, the product of the health value and the health value weight coefficient is referred to as a second product), and then a sum of the first product and the second product is determined as the traffic parameter value of the IP address.
In one possible embodiment, after determining the response probability of responding with each IP address based on the traffic parameter value of each IP address and the set response proportion adjustment algorithm, the CDN 11 may send the response probability corresponding to each IP address to the corresponding Local domain name server (Local DNS 12).
After receiving the response probability corresponding to each IP address sent by the CDN 11, the Local DNS 12 may save the response probability corresponding to each IP address. When receiving a domain name resolution request for a domain name sent by a client belonging to a Local area, the Local DNS 12 may determine a target IP address for response based on a response probability corresponding to each IP address, and respond based on the target IP address, that is, may send the target IP address to the client, and may implement, using an object of the client, access to a server corresponding to the target IP address at the client based on the target IP address.
In one possible implementation, the process of determining the destination IP address for reply by the Local DNS 12 based on the probability of reply corresponding to each IP address may be as follows:
firstly, the Local DNS 12 may normalize the response probability corresponding to each IP address, and generate a random number value subinterval corresponding to each IP address based on the size of the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to the IP addresses are not overlapped with each other. The Local DNS 12 may generate a target random number not exceeding the total length of each random number value subinterval based on a set random number generation algorithm (the generated random number is referred to as a target random number for convenience of description).
Then, the Local DNS 12 may determine a target random number value subinterval to which the target random number belongs (for convenience of description, the random number value subinterval to which the target random number belongs is referred to as a target random number value subinterval), and determine an IP address corresponding to the target random number value subinterval as a target IP address for response.
For ease of understanding, the process of determining the target IP address provided herein is illustrated by one specific embodiment.
Each IP address (node) for which a domain name (customer domain name) provides services in respective areas is preconfigured for the domain name. Illustratively, for a domain name, assume that each IP address configured in this region of north is 1.1.1.1, 2.2.2.2, and 3.3.3.3, respectively, and each IP address configured in this region of wide is 4.4.4.4, 5.5.5.5, and 6.6.6.6, respectively. The following is an example of this region of north.
For a region of north, the initial probability value corresponding to each IP address is 33.33% respectively.
Referring to fig. 2, fig. 2 is a schematic diagram of a domain name resolution process provided in the embodiment of the present application, and assuming that a traffic parameter value is a bandwidth load rate, for a certain region, the bandwidth load rate of each IP address of the region is as follows:
1.1.1.1 the bandwidth load rate of this IP address (node) is 100% (severe overload);
2.2.2.2 this IP address (node) has a bandwidth load rate of 50% (normal load);
3.3.3.3 the bandwidth load rate for this IP address (node) is 80% (normal overload).
For example, when determining the response probability when responding with an IP address based on the traffic parameter value of each IP address and the set response proportion adjustment algorithm, the response proportion of the IP address (node) of 1.1.1.1 may be adjusted from 33.33% to 10%, the response proportion of the IP address (node) of 2.2.2.2 may be adjusted from 33.33% to 60%, and the response proportion of the IP address (node) of 3.3.3.3 may be adjusted from 33.33% to 30%.
The CDN 11 may send the response probability corresponding to each IP address in the region of north to the Local DNS 12 corresponding to the region of north. The Local DNS 12 corresponding to this region of north may receive and load the configuration of the response probability corresponding to each IP address.
When the Local DNS 12 corresponding to the region of north where the client belongs to north sends a domain name resolution request for the domain name, the Local DNS 12 may determine the destination IP address for response based on the response probability corresponding to each IP address of the region of north.
For example, assuming that the response probability corresponding to each IP address in the north region is normalized, and the random number value subinterval corresponding to each IP address is generated based on the magnitude of the response probability corresponding to each IP address, the random number value subinterval corresponding to 1.1.1.1 this IP address is [0,0.1], the random number value subinterval corresponding to 2.2.2.2 this IP address is (0.1,0.7 ], and the random number value subinterval corresponding to 3.3.3.3 this IP address is (0.7,1.0 ].
Assuming that the target random number generated based on the set random number generation algorithm is 0.6, the target random number value subinterval to which the target random number belongs is (0.1,0.7), and the IP address corresponding to the target random number value subinterval, that is, 2.2.2.2, can be determined as the target IP address for response.
Because the CDN of the application can acquire the flow parameter value of each IP address of each region corresponding to any domain name; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; and sending the response probability corresponding to each IP address to the Local DNS corresponding to the region; the Local DNS can determine the target IP address of the response based on the response probability corresponding to each IP address when receiving the domain name resolution request for the domain name sent by the client, and based on the response probability, the purposes of more orderly flow scheduling and ensuring the network smoothness can be realized.
In addition, because the Local DNS of the application can directly carry out domain name resolution based on the response probability corresponding to each IP address stored (configured) locally when receiving the domain name resolution request sent by the client and carrying out domain name resolution, compared with the domain name resolution process in the related art, the Local DNS of the application reduces the DNS iteration process, reduces the DNS loss and improves the user experience.
In addition, when a plurality of huge objects trigger a domain name resolution request at the same time for the same domain name, when domain name resolution is performed based on the domain name resolution process in the embodiment of the present application, the actual bandwidth proportion of each IP address (node) may be expected to be consistent with the response probability of each IP address.
Example 2:
based on the same technical concept, the present application provides a domain name resolution method applied to a CDN, and referring to fig. 3, fig. 3 is a schematic diagram of a domain name resolution flow provided in an embodiment of the present application, where the process includes the following steps:
s301: and acquiring the flow parameter value of each IP address of each region corresponding to any domain name.
S302: determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to the Local DNS corresponding to the region, so that the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request for the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In one possible embodiment, the determining, for each IP address, a response probability when responding with the IP address based on the traffic parameter value of each IP address and the set response proportion adjustment algorithm includes:
Determining the sum value and the average value of the flow parameter values of all the IP addresses;
for each IP address, determining the difference value between the average value and the flow parameter value of the IP address, and determining the response probability when responding with the IP address based on the ratio of the difference value to the sum value.
In one possible implementation manner, the determining, based on the ratio of the difference value to the sum value, the response probability when responding with the IP address includes:
determining an initial probability value corresponding to each IP address according to the number of each IP address;
for each IP address, determining the response probability when responding with the IP address based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value.
In one possible embodiment, the flow parameter value includes: at least one of bandwidth load rate, health value.
In one possible implementation manner, if the traffic parameter value includes a bandwidth load rate and a health value, the obtaining the traffic parameter value of each IP address of the region includes:
for each IP address, determining the flow parameter value of the IP address based on the bandwidth load rate, the health value and the set flow parameter determining algorithm of the IP address.
In one possible implementation manner, the determining the traffic parameter value of the IP address based on the bandwidth load rate, the health value and the set traffic parameter determining algorithm of the IP address includes:
for each IP address, a traffic parameter value for that IP address is determined based on any one of the following:
determining the flow parameter value of the IP address according to the maximum value of the bandwidth load rate and the health value of the IP address; or,
determining a flow parameter value of the IP address according to the minimum value of the bandwidth load rate and the health value of the IP address; or,
determining the flow parameter value of the IP address according to the average value of the bandwidth load rate and the health value of the IP address; or,
and determining the flow parameter value of the IP address according to the bandwidth load rate of the IP address, the set bandwidth load rate weight coefficient, the health value and the set health value weight coefficient.
Based on the same technical concept, the present application provides a domain name resolution method applied to Local DNS, referring to fig. 4, fig. 4 is another schematic domain name resolution flow provided in the embodiment of the present application, where the process includes the following steps:
s401: receiving response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is a response probability determined for each IP address when responding to the IP address based on the traffic parameter value of each IP address and a set response proportion adjustment algorithm.
S402: when a domain name resolution request for the domain name sent by a client is received, determining a target IP address for response based on response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a possible implementation manner, the determining, based on the response probability corresponding to each IP address, the target IP address for response includes:
normalizing the response probability corresponding to each IP address, and generating a random number value subinterval corresponding to each IP address based on the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to each IP address are not overlapped with each other;
generating a target random number which does not exceed the total length of the random number value subinterval based on a set random number generation algorithm;
determining a target random number value subinterval to which the target random number belongs;
and determining the IP address corresponding to the target random number value subinterval as a target IP address for response.
Example 3:
based on the same technical concept, the present application provides a domain name resolution device, which is applied to a CDN, and referring to fig. 5, fig. 5 is a schematic diagram of the domain name resolution device provided in an embodiment of the present application, where the device includes:
The obtaining module 51 is configured to obtain, for each region corresponding to any domain name, a flow parameter value of each IP address of the region.
A determining module 52, configured to determine, for each IP address, a response probability when responding with the IP address, based on the traffic parameter value of the IP address and the set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to the Local DNS corresponding to the region, so that the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request for the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In one possible implementation, the determining module 52 is specifically configured to:
determining the sum value and the average value of the flow parameter values of all the IP addresses;
for each IP address, determining the difference value between the average value and the flow parameter value of the IP address, and determining the response probability when responding with the IP address based on the ratio of the difference value to the sum value.
In one possible implementation, the determining module 52 is specifically configured to:
determining an initial probability value corresponding to each IP address according to the number of each IP address;
for each IP address, determining the response probability when responding with the IP address based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value.
In one possible embodiment, the flow parameter value includes: at least one of bandwidth load rate, health value.
In one possible implementation manner, if the traffic parameter value includes a bandwidth load rate and a health value, the obtaining module 51 is specifically configured to:
for each IP address, determining the flow parameter value of the IP address based on the bandwidth load rate, the health value and the set flow parameter determining algorithm of the IP address.
In a possible implementation manner, the obtaining module 51 is specifically configured to:
for each IP address, a traffic parameter value for that IP address is determined based on any one of the following:
determining the flow parameter value of the IP address according to the maximum value of the bandwidth load rate and the health value of the IP address; or,
determining a flow parameter value of the IP address according to the minimum value of the bandwidth load rate and the health value of the IP address; or,
Determining the flow parameter value of the IP address according to the average value of the bandwidth load rate and the health value of the IP address; or,
and determining the flow parameter value of the IP address according to the bandwidth load rate of the IP address, the set bandwidth load rate weight coefficient, the health value and the set health value weight coefficient.
Based on the same technical concept, the present application provides another domain name resolution device, which is applied to Local DNS, referring to fig. 6, fig. 6 is a schematic diagram of another domain name resolution device provided in an embodiment of the present application, where the device includes:
a receiving module 61, configured to receive a response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is a response probability determined for each IP address when responding to the IP address based on the traffic parameter value of each IP address and a set response proportion adjustment algorithm.
A response module 62, configured to determine, when receiving a domain name resolution request for the domain name sent by the client, a target IP address for response based on the response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In one possible implementation, the answering module 62 is specifically configured to:
normalizing the response probability corresponding to each IP address, and generating a random number value subinterval corresponding to each IP address based on the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to each IP address are not overlapped with each other;
generating a target random number which does not exceed the total length of the random number value subinterval based on a set random number generation algorithm;
determining a target random number value subinterval to which the target random number belongs;
and determining the IP address corresponding to the target random number value subinterval as a target IP address for response.
Example 4:
based on the same technical concept, the application provides electronic equipment. Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 7, including: the processor 71, the communication interface 72, the memory 73 and the communication bus 74, wherein the processor 71, the communication interface 72 and the memory 73 complete communication with each other through the communication bus 74;
the memory 73 has stored therein a computer program which, when executed by the processor 71, causes the processor 71 to perform the steps of:
For each region corresponding to any domain name, acquiring a flow parameter value of each IP address of the region;
determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to the Local DNS corresponding to the region, so that the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request for the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In a possible implementation, the processor 71 is specifically configured to:
determining the sum value and the average value of the flow parameter values of all the IP addresses;
for each IP address, determining the difference value between the average value and the flow parameter value of the IP address, and determining the response probability when responding with the IP address based on the ratio of the difference value to the sum value.
In a possible implementation, the processor 71 is specifically configured to:
determining an initial probability value corresponding to each IP address according to the number of each IP address;
for each IP address, determining the response probability when responding with the IP address based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value.
In one possible embodiment, the flow parameter value includes: at least one of bandwidth load rate, health value.
In one possible implementation, if the traffic parameter value includes a bandwidth load rate and a health value, the processor 71 is specifically configured to:
for each IP address, determining the flow parameter value of the IP address based on the bandwidth load rate, the health value and the set flow parameter determining algorithm of the IP address.
In a possible implementation, the processor 71 is specifically configured to:
for each IP address, a traffic parameter value for that IP address is determined based on any one of the following:
determining the flow parameter value of the IP address according to the maximum value of the bandwidth load rate and the health value of the IP address; or,
determining a flow parameter value of the IP address according to the minimum value of the bandwidth load rate and the health value of the IP address; or,
Determining the flow parameter value of the IP address according to the average value of the bandwidth load rate and the health value of the IP address; or,
and determining the flow parameter value of the IP address according to the bandwidth load rate of the IP address, the set bandwidth load rate weight coefficient, the health value and the set health value weight coefficient.
In addition, the memory 73 stores a computer program, which when executed by the processor 71, may further cause the processor 71 to perform the steps of:
receiving response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is determined for each IP address based on the flow parameter value of each IP address and a set response proportion adjustment algorithm, and the response probability is determined when the IP address is used for responding;
when a domain name resolution request for the domain name sent by a client is received, determining a target IP address for response based on response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a possible implementation, the processor 71 is specifically configured to:
normalizing the response probability corresponding to each IP address, and generating a random number value subinterval corresponding to each IP address based on the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to each IP address are not overlapped with each other;
generating a target random number which does not exceed the total length of the random number value subinterval based on a set random number generation algorithm;
determining a target random number value subinterval to which the target random number belongs;
and determining the IP address corresponding to the target random number value subinterval as a target IP address for response.
The communication bus mentioned above for the electronic devices may be a peripheral component interconnect standard (Peripheral Component Interconnect, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus, etc. The communication bus may be classified as an address bus, a data bus, a control bus, or the like. For ease of illustration, the figures are shown with only one bold line, but not with only one bus or one type of bus.
The communication interface 72 is used for communication between the above-described electronic device and other devices.
The Memory may include random access Memory (Random Access Memory, RAM) or may include Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the aforementioned processor.
The processor may be a general-purpose processor, including a central processing unit, a network processor (Network Processor, NP), etc.; but also digital instruction processors (Digital Signal Processing, DSP), application specific integrated circuits, field programmable gate arrays or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
Example 5:
based on the same technical idea, the embodiments of the present application provide a computer-readable storage medium having stored therein a computer program executable by an electronic device, which when run on the electronic device, causes the electronic device to perform the steps of:
for each region corresponding to any domain name, acquiring a flow parameter value of each IP address of the region;
determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to the Local DNS corresponding to the region, so that the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request for the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
In one possible embodiment, the determining, for each IP address, a response probability when responding with the IP address based on the traffic parameter value of each IP address and the set response proportion adjustment algorithm includes:
determining the sum value and the average value of the flow parameter values of all the IP addresses;
for each IP address, determining the difference value between the average value and the flow parameter value of the IP address, and determining the response probability when responding with the IP address based on the ratio of the difference value to the sum value.
In one possible implementation manner, the determining, based on the ratio of the difference value to the sum value, the response probability when responding with the IP address includes:
determining an initial probability value corresponding to each IP address according to the number of each IP address;
for each IP address, determining the response probability when responding with the IP address based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value.
In one possible embodiment, the flow parameter value includes: at least one of bandwidth load rate, health value.
In one possible implementation manner, if the traffic parameter value includes a bandwidth load rate and a health value, the obtaining the traffic parameter value of each IP address of the region includes:
For each IP address, determining the flow parameter value of the IP address based on the bandwidth load rate, the health value and the set flow parameter determining algorithm of the IP address.
In one possible implementation manner, the determining the traffic parameter value of the IP address based on the bandwidth load rate, the health value and the set traffic parameter determining algorithm of the IP address includes:
for each IP address, a traffic parameter value for that IP address is determined based on any one of the following:
determining the flow parameter value of the IP address according to the maximum value of the bandwidth load rate and the health value of the IP address; or,
determining a flow parameter value of the IP address according to the minimum value of the bandwidth load rate and the health value of the IP address; or,
determining the flow parameter value of the IP address according to the average value of the bandwidth load rate and the health value of the IP address; or,
and determining the flow parameter value of the IP address according to the bandwidth load rate of the IP address, the set bandwidth load rate weight coefficient, the health value and the set health value weight coefficient.
In addition, the computer readable storage medium stores a computer program executable by an electronic device, and when the program runs on the electronic device, the computer program may further cause the electronic device to implement the following steps:
Receiving response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is determined for each IP address based on the flow parameter value of each IP address and a set response proportion adjustment algorithm, and the response probability is determined when the IP address is used for responding;
when a domain name resolution request for the domain name sent by a client is received, determining a target IP address for response based on response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
In a possible implementation manner, the determining, based on the response probability corresponding to each IP address, the target IP address for response includes:
normalizing the response probability corresponding to each IP address, and generating a random number value subinterval corresponding to each IP address based on the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to each IP address are not overlapped with each other;
generating a target random number which does not exceed the total length of the random number value subinterval based on a set random number generation algorithm;
Determining a target random number value subinterval to which the target random number belongs;
and determining the IP address corresponding to the target random number value subinterval as a target IP address for response.
The computer readable storage medium may be any available medium or data storage device that can be accessed by a processor in an electronic device, including but not limited to magnetic memories such as floppy disks, hard disks, magnetic tapes, magneto-optical disks (MO), etc., optical memories such as CD, DVD, BD, HVD, etc., and semiconductor memories such as ROM, EPROM, EEPROM, nonvolatile memories (NAND FLASH), solid State Disks (SSD), etc.
Based on the same technical idea, on the basis of the above embodiments, the present application provides a computer program product, the computer program product comprising: computer program code to, when run on a computer, cause the computer to perform the steps of any of the methods described above.
It will be appreciated by those skilled in the art that embodiments of the present application may be provided as a method, system, or computer program product. Accordingly, the present application may take the form of an entirely hardware embodiment, an entirely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to the application. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various modifications and variations can be made in the present application without departing from the spirit or scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims and the equivalents thereof, the present application is intended to cover such modifications and variations.

Claims (10)

1. A domain name resolution system, the system comprising:
the content delivery network CDN is used for acquiring the flow parameter value of each IP address of each region corresponding to any domain name; determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to a Local domain name server Local DNS corresponding to the region;
The Local DNS is used for receiving the response probability corresponding to each IP address and determining a target IP address for response based on the response probability corresponding to each IP address when receiving a domain name resolution request for the domain name sent by a client; sending the target IP address to the client; wherein the location of the client belongs to the region.
2. The system according to claim 1, characterized in that the CDN is specifically configured to:
determining the sum value and the average value of the flow parameter values of all the IP addresses;
for each IP address, determining the difference value between the average value and the flow parameter value of the IP address, and determining the response probability when responding with the IP address based on the ratio of the difference value to the sum value.
3. The system according to claim 2, characterized in that the CDN is specifically configured to:
determining an initial probability value corresponding to each IP address according to the number of each IP address;
for each IP address, determining the response probability when responding with the IP address based on the initial probability value and the ratio of the difference value corresponding to the IP address to the sum value.
4. A system according to any one of claims 1-3, wherein the flow parameter values comprise: at least one of bandwidth load rate, health value.
5. The system of claim 4, wherein if the traffic parameter value includes a bandwidth load rate and a health value, the CDN is configured to:
for each IP address, determining the flow parameter value of the IP address based on the bandwidth load rate, the health value and the set flow parameter determining algorithm of the IP address.
6. The system according to claim 5, wherein the CDN is configured to:
for each IP address, a traffic parameter value for that IP address is determined based on any one of the following:
determining the flow parameter value of the IP address according to the maximum value of the bandwidth load rate and the health value of the IP address; or,
determining a flow parameter value of the IP address according to the minimum value of the bandwidth load rate and the health value of the IP address; or,
determining the flow parameter value of the IP address according to the average value of the bandwidth load rate and the health value of the IP address; or,
and determining the flow parameter value of the IP address according to the bandwidth load rate of the IP address, the set bandwidth load rate weight coefficient, the health value and the set health value weight coefficient.
7. The system according to claim 1, characterized in that the LocalDNS is specifically configured to:
Normalizing the response probability corresponding to each IP address, and generating a random number value subinterval corresponding to each IP address based on the response probability corresponding to each IP address; wherein, the random number value subintervals corresponding to each IP address are not overlapped with each other;
generating a target random number which does not exceed the total length of the random number value subinterval based on a set random number generation algorithm;
determining a target random number value subinterval to which the target random number belongs;
and determining the IP address corresponding to the target random number value subinterval as a target IP address for response.
8. A domain name resolution method, wherein the method is applied to a content delivery network CDN, the method comprising:
for each region corresponding to any domain name, acquiring a flow parameter value of each IP address of the region;
determining response probability when responding with each IP address according to the flow parameter value of each IP address and a set response proportion adjustment algorithm; the response probability corresponding to each IP address is sent to a Local domain name server Local DNS corresponding to the region, the Local DNS receives the response probability corresponding to each IP address, and when receiving a domain name resolution request aiming at the domain name sent by a client, the Local DNS determines a target IP address for response based on the response probability corresponding to each IP address; causing the Local DNS to send the target IP address to the client; wherein the location of the client belongs to the region.
9. A domain name resolution method, wherein the method is applied to a Local domain name server Local DNS, the method comprising:
receiving response probability corresponding to each IP address sent by the CDN; wherein, each IP address is each IP address of any region corresponding to any domain name; the response probability is determined for each IP address based on the flow parameter value of each IP address and a set response proportion adjustment algorithm, and the response probability is determined when the IP address is used for responding;
when a domain name resolution request for the domain name sent by a client is received, determining a target IP address for response based on response probability corresponding to each IP address; sending the target IP address to the client; wherein the location of the client belongs to the region.
10. An electronic device, comprising: a processor, a memory;
the memory is used for storing computer instructions;
the processor being configured to read the computer instructions and to perform the method of claim 8 or 9.
CN202210937864.0A 2022-08-05 2022-08-05 Domain name resolution system, method and equipment Active CN115442330B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210937864.0A CN115442330B (en) 2022-08-05 2022-08-05 Domain name resolution system, method and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210937864.0A CN115442330B (en) 2022-08-05 2022-08-05 Domain name resolution system, method and equipment

Publications (2)

Publication Number Publication Date
CN115442330A CN115442330A (en) 2022-12-06
CN115442330B true CN115442330B (en) 2023-08-08

Family

ID=84242421

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210937864.0A Active CN115442330B (en) 2022-08-05 2022-08-05 Domain name resolution system, method and equipment

Country Status (1)

Country Link
CN (1) CN115442330B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634227A (en) * 2012-08-20 2014-03-12 百度在线网络技术(北京)有限公司 A service traffic precision scheduling method based on a user quantity and an apparatus thereof
CN104954401A (en) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 Flow scheduling method and apparatus
CN105939399A (en) * 2015-11-30 2016-09-14 杭州迪普科技有限公司 Domain name resolution method and device
CN106657374A (en) * 2017-01-04 2017-05-10 贵州力创科技发展有限公司 Internet traffic and flow direction big data intelligent analysis and decision-making method and system
CN109040343A (en) * 2018-09-11 2018-12-18 达闼科技(北京)有限公司 Domain name analytic method, device, computer readable storage medium and electronic equipment
WO2019237557A1 (en) * 2018-06-13 2019-12-19 网宿科技股份有限公司 Method and device for controlling multi-cname traffic ratio
CN111541796A (en) * 2016-09-20 2020-08-14 贵州白山云科技股份有限公司 CDN access flow scheduling method, device, communication system and storage medium
CN112738288A (en) * 2020-12-24 2021-04-30 上海牙木通讯技术有限公司 DNS domain name resolution method, DNS server, GSLB system and domain name resolution system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103634227A (en) * 2012-08-20 2014-03-12 百度在线网络技术(北京)有限公司 A service traffic precision scheduling method based on a user quantity and an apparatus thereof
CN104954401A (en) * 2014-03-27 2015-09-30 阿里巴巴集团控股有限公司 Flow scheduling method and apparatus
CN105939399A (en) * 2015-11-30 2016-09-14 杭州迪普科技有限公司 Domain name resolution method and device
CN111541796A (en) * 2016-09-20 2020-08-14 贵州白山云科技股份有限公司 CDN access flow scheduling method, device, communication system and storage medium
CN106657374A (en) * 2017-01-04 2017-05-10 贵州力创科技发展有限公司 Internet traffic and flow direction big data intelligent analysis and decision-making method and system
WO2019237557A1 (en) * 2018-06-13 2019-12-19 网宿科技股份有限公司 Method and device for controlling multi-cname traffic ratio
CN109040343A (en) * 2018-09-11 2018-12-18 达闼科技(北京)有限公司 Domain name analytic method, device, computer readable storage medium and electronic equipment
CN112738288A (en) * 2020-12-24 2021-04-30 上海牙木通讯技术有限公司 DNS domain name resolution method, DNS server, GSLB system and domain name resolution system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
Yutaro Inaba ; Yosuke Tanigawa ; Hideki Tode.Content retrieval method in cooperation with CDN and ICN-based in-network guidance over IP network.2015 IEEE 40th Conference on Local Computer Networks (LCN).2016,全文. *

Also Published As

Publication number Publication date
CN115442330A (en) 2022-12-06

Similar Documents

Publication Publication Date Title
US11863417B2 (en) Routing mode and point-of-presence selection service
CN111460460B (en) Task access method, device, proxy server and machine-readable storage medium
CN107395683B (en) Method for selecting return path and server
US10091096B1 (en) Routing mode and point-of-presence selection service
US10033627B1 (en) Routing mode and point-of-presence selection service
CN109547286B (en) CDN node selection method, device and storage medium
CN110519183B (en) Node speed limiting method and device, electronic equipment and storage medium
CN107624233B (en) VPN transmission tunnel scheduling method and device and VPN client server
CN108924005B (en) Network detection method, network detection apparatus, medium, and device
CN106936877B (en) A kind of content distribution method, apparatus and system
CN113497817A (en) Traffic scheduling method and device, edge node of CDN (content delivery network) and server
CN113301071B (en) Network source returning method, device and equipment
CN113067875B (en) Access method, device and equipment based on dynamic flow control of micro-service gateway
CN105871734B (en) The method and apparatus for obtaining local domain name system flow distribution information
CN112954089B (en) Method, device, equipment and storage medium for analyzing data
CN111654561B (en) Method and device for determining IP address number, electronic equipment and storage medium
CN111556135A (en) Request scheduling method, system and device and electronic equipment
CN112261133A (en) CDN node control method, device, server and storage medium
CN115442330B (en) Domain name resolution system, method and equipment
CN110677683B (en) Video storage and video access method and distributed storage and video access system
CN114338516B (en) Traffic forwarding and policy determining method and device
CN115665262A (en) Request processing method and device, electronic equipment and storage medium
CN114520784A (en) Dynamic content accelerated access method and device
CN114726854B (en) Service request processing method and device and cloud service system
CN111371826A (en) CDN node performance detection method, device and system

Legal Events

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