CN113347286A - Method, device and equipment for determining domain name server and storage medium - Google Patents

Method, device and equipment for determining domain name server and storage medium Download PDF

Info

Publication number
CN113347286A
CN113347286A CN202110673044.0A CN202110673044A CN113347286A CN 113347286 A CN113347286 A CN 113347286A CN 202110673044 A CN202110673044 A CN 202110673044A CN 113347286 A CN113347286 A CN 113347286A
Authority
CN
China
Prior art keywords
domain name
name server
service quality
current detection
client device
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.)
Pending
Application number
CN202110673044.0A
Other languages
Chinese (zh)
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.)
WeBank Co Ltd
Original Assignee
WeBank 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 WeBank Co Ltd filed Critical WeBank Co Ltd
Priority to CN202110673044.0A priority Critical patent/CN113347286A/en
Publication of CN113347286A publication Critical patent/CN113347286A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/45Network directories; Name-to-address mapping
    • H04L61/4505Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols
    • H04L61/4511Network directories; Name-to-address mapping using standardised directories; using standardised directory access protocols using domain name system [DNS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1001Protocols in which an application is distributed across nodes in the network for accessing one among a plurality of replicated servers

Abstract

The embodiment of the application provides a method, a device, electronic equipment and a computer storage medium for determining a domain name server; the method comprises the following steps: obtaining current detection values of service quality indexes of a plurality of domain name servers; each domain name server in the domain name servers has the capacity of analyzing the domain name to be accessed by the client equipment; determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers; under the condition that the present service quality score value of the target domain name server meets the preset condition, updating the target domain name server according to the present service quality score value of each domain name server; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the plurality of domain name servers.

Description

Method, device and equipment for determining domain name server and storage medium
Technical Field
The present application relates to financial technology (Fintech) information technology, and relates to, but is not limited to, a method, apparatus, electronic device, and computer storage medium for determining a domain name server.
Background
With the development of computer technology, more and more technologies are applied in the financial field, and the traditional financial industry is gradually changing to financial technology, but higher requirements are also put forward on the technologies due to the requirements of the financial industry on safety and real-time performance.
Currently, a Domain Name System (DNS) is a System for resolving machine naming on the Internet (Internet), and belongs to a global distributed database. The DNS can convert a human-readable name (e.g., www.example.com) into an address number in a numeric form, i.e., an Internet Protocol (IP) address (e.g., 192.0.2.1), for interconnection between computers, i.e., the DNS is used to manage the correspondence between names and IPs, and the conversion process is called domain name resolution. A server for implementing a domain name resolution function is a domain name server, and when the performance or service quality of the domain name server configured by a client device is degraded, how to improve the service quality of the DNS for a domain name resolution request of the client device is a technical problem to be solved urgently.
Disclosure of Invention
The embodiment of the application provides a method and a device for determining a domain name server, electronic equipment and a computer storage medium, which can improve the service quality of domain name resolution aiming at a domain name resolution request of user equipment.
The technical scheme of the embodiment of the application is realized as follows:
the embodiment of the application provides a method for determining a domain name server, which comprises the following steps:
obtaining current detection values of service quality indexes of a plurality of domain name servers; each domain name server in the plurality of domain name servers has the capability of analyzing a domain name to be accessed by the client device;
determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers;
under the condition that the present service quality score value of the target domain name server meets the preset condition, updating the target domain name server according to the present service quality score value of each domain name server; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
In some embodiments of the present application, the obtaining the current detection value of the qos indicator of the plurality of domain name servers includes:
acquiring a current detection value of a link quality index between each domain name server and the client device; acquiring a current detection value of the performance parameter of each domain name server;
and determining the current detection value of the service quality index of each domain name server according to at least one of the current detection value of the link quality index between each domain name server and the client device and the current detection value of the performance parameter of each domain name server.
It can be understood that, in general, the service quality of domain name resolution of the domain name server is generally related to the performance of the domain name server or the link quality between the domain name server and the client device, and thus, the service quality indicator of the domain name server can be accurately determined according to the link quality indicator between the domain name server and the client device or the performance parameter of the domain name server in the embodiments of the present application.
In some embodiments of the present application, the obtaining the current detected value of the performance parameter of each domain name server includes:
acquiring a current detection value of the performance index of the operating system of each domain name server and a current detection value of the hardware performance index of each domain name server;
determining a current detection value of a performance parameter of each domain name server according to at least one of a current detection value of a performance index of the operating system of each domain name server and a current detection value of a hardware performance index of each domain name server, wherein the performance index of the operating system is used for representing a resource use condition when the domain name server operates the operating system; the hardware performance index includes a Central Processing Unit (CPU) specification parameter of a domain name server host.
Therefore, the performance parameters of the domain name server can be accurately determined according to the performance indexes or hardware performance indexes of the operating system of the domain name server.
In some embodiments of the present application, the obtaining a current detection value of a link quality indicator between each domain name server and the client device includes:
after a network detection packet is sent to each domain name server from a detection buried point, the network detection packet is captured from each domain name server, and the captured network detection packet is analyzed to obtain a current detection value of a link quality index between each domain name server and the client device; wherein the detection buried point and the client device are in the same network plane.
It can be seen that, in the embodiment of the present application, the link quality indicator between the domain name server and the client device can be easily obtained by capturing the network probe packet to the domain name server.
In some embodiments of the present application, the determining the current qos score of each of the plurality of domain name servers according to the current detection value of the qos indicator of each of the plurality of domain name servers includes:
acquiring a reference service quality parameter of each domain name server; the reference service quality parameter is used for representing the average analysis duration of each domain name server for analyzing a plurality of preset domain names;
and according to the contribution degree of the service quality index of each domain name server to the reference service quality parameter, carrying out weighted calculation on the current detection value of the service quality index of each domain name server to obtain the service quality score value of the current time of each domain name server.
It can be seen that, since the reference quality of service parameter may represent the quality standard of the domain name resolution service perceived by the user, the present quality of service score of each domain name server may be accurately determined according to the degree of contribution of the quality of service index of each domain name server to the reference quality of service parameter.
In some embodiments of the present application, the performing a weighted calculation on the current detection value of the qos indicator of each domain name server according to the contribution degree of the qos indicator of each domain name server to the reference qos parameter includes:
standardizing the current detection value of the service quality index of each domain name server to obtain a standardized service quality index corresponding to each domain name server;
and performing weighted calculation on the standardized service quality index corresponding to each domain name server according to the contribution degree of the standardized service quality index corresponding to each domain name server to the reference service quality parameter.
It can be understood that, by standardizing the current detection value of the service quality index of each domain name server, different service quality indexes of the domain name servers can be converted into the same data dimension, thereby increasing the comparability between the data indexes and being beneficial to comprehensively evaluating the service quality of the domain name servers by referring to the indexes of each dimension.
In some embodiments of the present application, the performing a weighted calculation on the current detection value of the qos indicator of each domain name server according to the contribution degree of the qos indicator of each domain name server to the reference qos parameter includes:
and performing weighted calculation on the current detection value of the service quality index of each domain name server according to the following formula:
Figure BDA0003120072710000041
among them, Qos{n,k}The service quality score values of the nth domain name server after sampling in the kth batch are shown, alpha, beta and gamma respectively show the average routing length L from the network plane of the client device to the domain name server, round-trip delay T and the contribution degree of the packet loss rate E of a link to a reference service quality parameter, delta shows the contribution degree of the current CPU utilization rate P to the reference service quality parameter when the domain name server runs an operating system, epsilon shows the contribution degree of the average load A in T1 minutes when the domain name server runs the operating system to the reference service quality parameter, T1 shows a constant, theta shows the contribution degree of the utilization rate I of the input and output of the output path of the query log on the domain name server to the reference service quality parameter, F shows a flag bit for judging whether the query log function is to be started or not, and lambda shows the contribution degree of the CPU logic core number C of the server host to the reference service quality parameter, mu represents the contribution degree of the CPU main frequency H of the domain name server host to the reference service quality parameter.
In the embodiment of the application, the network software parameters and the host hardware parameters are comprehensively evaluated, so that the analysis and combination are more accurate, and the accuracy of the management and evaluation of the domain name server is improved.
In some embodiments of the present application, the method further comprises:
when the current service quality score value of the target domain name server is lower than the last service quality score value of the target domain name server, determining that the current service quality score value of the target domain name server meets a preset condition;
or when the current service quality score value of the target domain name server is lower than a preset score value, determining that the current service quality score value of the target domain name server meets a preset condition.
It can be understood that when the present quality of service score of the target domain name server is lower than the last quality of service score of the target domain name server, or the present quality of service score of the target domain name server is lower than a preset score, the domain name resolution capability of the target domain name server may be considered not to meet the preset domain name resolution requirement, and therefore, the service quality of the domain name resolution request for the client device may be improved by updating the target domain name server.
In some embodiments of the present application, the updating the target domain name server according to the current quality of service score value of each domain name server includes:
determining the updated address of the target domain name server; and sending an instruction for updating the address of the target domain name server to the client equipment based on the updated address of the target domain name server.
Therefore, the client device can change the target domain name server in time through interaction with the client device, the domain name of the client device can be analyzed quickly and efficiently, and the service quality of the domain name analysis request for the client device is improved.
The embodiment of the application provides a device for determining a domain name server, and the device comprises: an acquisition module, a first processing module and a second processing module, wherein,
the acquisition module is used for acquiring the current detection values of the service quality indexes of the plurality of domain name servers; each domain name server in the plurality of domain name servers has the capability of analyzing a domain name to be accessed by the client device;
the first processing module is used for determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers;
the second processing module is used for updating the target domain name server according to the current service quality score value of each domain name server under the condition that the current service quality score value of the target domain name server meets the preset condition; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
An embodiment of the present application provides an electronic device, which includes:
a memory for storing executable instructions;
and the processor is used for implementing any one of the above methods for determining the domain name server when executing the executable instructions stored in the memory.
An embodiment of the present application provides a computer-readable storage medium, which stores executable instructions for implementing any one of the above methods for determining a domain name server when being executed by a processor.
In the embodiment of the application, the current detection values of the service quality indexes of a plurality of domain name servers are obtained; each domain name server in the domain name servers has the capacity of analyzing the domain name to be accessed by the client equipment; determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers; under the condition that the present service quality score value of the target domain name server meets the preset condition, updating the target domain name server according to the present service quality score value of each domain name server; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
Therefore, the target domain name server can be updated according to the service quality score of the target domain name server; when the performance or service quality of the target domain name server is reduced, the domain name server with the reduced performance or service quality does not need to be adopted for domain name resolution, but the target domain name server can be updated, so that the service quality of the domain name resolution request aiming at the client equipment is improved.
Drawings
Fig. 1 is a schematic structural diagram of a horizontal capacity expansion DNS service node in the related art;
fig. 2 is a schematic structural diagram corresponding to a domain name resolution scheme optimized across an operator network in the related art;
FIG. 3 is a flowchart of a method for determining a domain name server according to an embodiment of the present application;
fig. 4 is a schematic diagram of a system architecture for implementing a method for determining a domain name server in an embodiment of the present application;
fig. 5 is a schematic structural diagram of an apparatus for determining a domain name server in an embodiment of the present application;
fig. 6 is a schematic structural diagram of an electronic device in an embodiment of the present application.
Detailed Description
The present application will be described in further detail below with reference to the accompanying drawings and examples. It should be understood that the examples provided herein are merely illustrative of the present application and are not intended to limit the present application. In addition, the following examples are provided as partial examples for implementing the present application, not all examples for implementing the present application, and the technical solutions described in the examples of the present application may be implemented in any combination without conflict.
It should be noted that in the embodiments of the present application, the terms "comprises", "comprising" or any other variation thereof are intended to cover a non-exclusive inclusion, so that a method or apparatus including a series of elements includes not only the explicitly recited elements but also other elements not explicitly listed or inherent to the method or apparatus. Without further limitation, the use of the phrase "including a. -. said." does not exclude the presence of other elements (e.g., steps in a method or elements in a device, such as portions of circuitry, processors, programs, software, etc.) in the method or device in which the element is included.
For example, the method for determining a domain name server provided in the embodiment of the present application includes a series of steps, but the method for determining a domain name server provided in the embodiment of the present application is not limited to the described steps, and similarly, the apparatus for determining a domain name server provided in the embodiment of the present application includes a series of modules, but the apparatus provided in the embodiment of the present application is not limited to include the modules explicitly described, and may also include modules that are required to be provided for acquiring relevant information or performing processing based on the information.
In the related art, one or more domain name server addresses may be configured on a client device, so that a domain name server configured by the client device may be determined; illustratively, some applications of the client device will also configure the domain name server address used by themselves. The access request in the form of the domain name initiated by the client device is subjected to domain name resolution through a domain name server configured by the client device.
The domain name server is one of the most important infrastructures in the online environment, and usually, numerous applications inside each enterprise have strong dependence on domain name resolution performance and availability of the domain name server. Numerous application programs or user access scenes in an enterprise private cloud environment are closely related to a DNS domain name resolution process; the quality of service of the DNS has great influence on the private cloud basic environment of the enterprise. Here, the private cloud may be an internal cloud or a company cloud, and refers to a computing service provided only to a specific user (not general public) through the internet or a private internal network. The private cloud is responsible for all costs and management within the enterprise company.
In the related art, the schemes for improving the quality of service or performance of the DNS may at least include a scheme for laterally expanding DNS service nodes and a scheme for optimizing domain name resolution across an operator network, which are described below.
1) And laterally expanding the DNS service node.
Managing a plurality of domain name servers through a Load Balance management node, wherein the domain name servers managed by the Load Balance management node form a domain name server cluster (cluster); here, the load balancing means that loads (work tasks) are balanced and distributed to a plurality of operation units to be operated, for example, a File Transfer Protocol (FTP) server, a Web (Web) server, an enterprise core application server, and other main task servers, thereby cooperatively completing the work tasks. The load balancing technology provides a transparent, cheap and effective method for expanding the bandwidth of the server and the network equipment, and can strengthen the network data processing capacity, increase the throughput and improve the availability and flexibility of the network.
The meaning of load balancing is combined, so that the overall throughput capacity of the DNS can be improved through the domain name server cluster, the hidden trouble that a single domain name server provides domain name resolution service for the outside and the performance limitation are solved, and the overall service capacity of the DNS is further expanded; referring to fig. 1, all incoming and outgoing domain name resolution requests may be forwarded through the management node 101 with load balancing, and a domain name server that processes the domain name resolution request is determined in a domain name server cluster based on a load balancing manner, where in fig. 1, the domain name server cluster 102 includes a first domain name server 1021, a second domain name server 1022, and a third domain name server 1023.
2) Optimizing a domain name resolution scheme across operator networks.
Usually, network lines of the enterprise antithetical couplet Internet are accessed by multiple operators; when the domain name resolution request is resolved across operator networks, for example, a user on a network line of an operator a accesses an application on the internet, and the domain name server resolves the domain name into an address on the network line of the operator B, the cross-network access from the network of the operator a to the network of the operator B occurs, which inevitably reduces the efficiency of the user access. To solve this problem, a domain name resolution scheme across operator networks may be optimized, that is, domain name resolution across operator networks may be optimized using an intelligent domain name server, which may direct a domain name resolution request to a network line of the same operator as the client device according to a source network of the client device and according to a set access control, thereby solving a problem of low access efficiency across operator network sites.
Referring to fig. 2, the intelligent domain name server 201 may receive domain name resolution requests of a first client device 202 and a second client device 203, where the network where the first client device 202 is located is a network of an operator a, the network where the second client device 203 is located is a network of an operator B, and the operator a and the operator B are different operators; in this case, if the intelligent domain name server receives the domain name resolution request, it may determine the operator to which the source IP of the domain name resolution request belongs, and if the operator to which the source IP of the domain name resolution request belongs is operator a, it may resolve the domain name resolution request into the network address of operator a; if the operator to which the source IP of the domain name resolution request belongs is operator B, the domain name resolution request may be resolved to the network address of operator B.
Both schemes for improving the quality of service or performance of the DNS in the related art have certain drawbacks, which are described below.
1) And laterally expanding the DNS service node.
For the scheme, activity detection monitoring and abnormal isolation of a DNS service instance accessed at the back end are basically performed in a connection detection manner, that is, a health detection component in a load balancing system detects connectivity of a domain name server port accessed at the back end in real time (usually, the DNS port is a port number 53), and if the port is not reachable, for example, a service process of the domain name server exits or a host of the domain name server fails, the corresponding domain name server is removed. However, for the case where the performance or service quality of the domain name server is degraded, the domain name server is not isolated or eliminated, in this case, a cluster address of the domain name server may be configured on the client device, the client device may send the domain name resolution request to the corresponding management node with balanced load, and the management node with balanced load sends the domain name resolution request to one domain name server in the domain name server cluster, at this time, the domain name resolution request is sent to the domain name server with degraded performance or service quality with a certain probability, which reduces the service quality and user experience of domain name resolution.
2) Optimizing a domain name resolution scheme across operator networks.
The client device may send the domain name resolution request to the domain name server according to the configured domain name server address, and although the domain name server may resolve the domain name into an address of the same operator as the source IP according to the source IP of the domain name resolution request, when the domain name server has a condition of reduced performance or service quality, the problem of lower service quality of domain name resolution still exists, and the response of domain name resolution may be delayed, which reduces user experience to a certain extent.
In summary, the two schemes both start from the dimension of the DNS server, and improve the DNS service quality touched by the client through architecture change or configuration optimization of the DNS server, but both fail to solve the influence of the scenario in which the performance of the domain name server is degraded on domain name resolution access of the client. That is, the starting point of the consideration of the DNS service quality is located at the DNS server level, and the domain name resolution requests from the client are all carried by the full amount of domain name servers configured on the client system, so that the request entry for DNS domain name resolution is not actually changed, and when the service quality of the request entry, that is, the domain name server, is decreased, the access efficiency of the client is still directly affected.
Further, in the related art, the service availability of the domain name server may also be monitored, and this monitoring scheme belongs to a passive monitoring scheme, that is, when the domain name server is unavailable or performance degradation occurs, the domain name server configured on the client device can only be replaced and modified afterwards by manually intervening the domain name server list of the client device. For example, the service quality of a domain name server in an enterprise private cloud environment can be monitored through a monitoring system, so that service quality indexes of different dimensions are obtained; comparing the monitored result data (which can be the service quality index) with various thresholds solidified according to historical experience, and then triggering related alarm notifications; and then, fault isolation or standby replacement is carried out on the domain name server configured on the client equipment in a manual mode.
It can be seen that, in the above scheme of performing fault isolation or standby replacement on the domain name server configured on the client device through manual intervention, because manual intervention is required, there is hysteresis of problem repair, and timeliness of problem repair cannot be guaranteed; in addition, the monitoring system only judges the service quality of the domain name server according to certain service quality indexes, and the evaluation of the service quality of the domain name server has certain one-sidedness, so that the service quality of the domain name server cannot be accurately and objectively evaluated; moreover, because the acquisition cycle frequencies of different service quality indexes are often inconsistent, the comprehensive evaluation of all related indexes is difficult,
in view of the above technical problems, the technical solutions of the embodiments of the present application are provided. The embodiment of the application can be applied to electronic equipment, wherein the electronic equipment can be a small computer system, a large computer system, a distributed cloud computing technology environment comprising any system, and the like. The electronic device may include program modules capable of executing the instructions. Generally, program modules may include routines, programs, objects, components, logic, data structures, etc. that perform particular tasks or may manipulate particular abstract data types.
Fig. 3 is a flowchart of a method for determining a domain name server according to an embodiment of the present application, and as shown in fig. 3, the flowchart may include:
step 301: obtaining current detection values of service quality indexes of a plurality of domain name servers; each of the plurality of domain name servers has the capability to resolve a domain name to be accessed by the client device.
In the embodiment of the application, each domain name server in a plurality of domain name servers can form communication connection with a client device, the domain name server configured by the client device is at least one domain name server in the plurality of domain name servers, and the client device can configure the address of at least one domain name server in the plurality of domain name servers, so that the configuration of the domain name server is realized; when any one of the domain name servers is in a normal working state and receives a domain name resolution request sent by client equipment, domain name resolution can be carried out according to the domain name resolution request; the domain name resolution request may carry a domain name to be accessed by the client device.
In practical application, the service quality index of each domain name server can be detected in real time, so that the current detection value of the service quality index of each domain name server is obtained; illustratively, the quality of service indicator for each domain name server may be used to reflect the domain name resolution capability of the domain name resolution request for the client device, and it is understood that the quality of service indicator for each domain name server may be related to at least one of: link quality between the domain name server and the client device, and performance of the domain name server.
Step 302: and determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers.
Since the qos index of each domain name server may be used to reflect the domain name resolution capability of the domain name resolution request for the client device, the present qos score value of each domain name server may be easily determined based on the current detection value of the qos index of each of the plurality of domain name servers.
For example, the current detection value of the qos indicator of each domain name server may be counted to obtain a statistical result, and then the current qos score of each domain name server may be determined according to the statistical result.
Step 303: under the condition that the present service quality score value of the target domain name server meets the preset condition, updating the target domain name server according to the present service quality score value of each domain name server; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the plurality of domain name servers.
In the embodiment of the present application, the preset condition indicates that the domain name resolution capability of the target domain name server does not meet the condition of the preset domain name resolution requirement, and therefore, under the condition that the present quality of service score of the target domain name server meets the preset condition, it can be considered that the domain name resolution capability of the target domain name server is insufficient, and therefore, the target domain name server configured at the client needs to be updated.
Under the condition that the current service quality score value of the target domain name server meets the preset condition, according to the current service quality score value of each domain name server, an updated target domain name server can be determined in the plurality of domain name servers, and the current service quality score value of the updated target domain name server meets the preset condition; for example, the updated target dns is one of the dns with the highest qos score value.
Illustratively, one implementation of updating the target domain name server may be: and sending an instruction for updating the address of the target domain name server to the client equipment based on the updated address of the target domain name server.
Therefore, the client device can change the target domain name server in time through interaction with the client device, the domain name of the client device can be analyzed quickly and efficiently, and the service quality of the domain name analysis request for the client device is improved.
In the related art, in a scenario where an application program or an open-source framework of a client device uses a domain name resolution service, a bottom layer of the application program or the open-source framework caches a domain name server address on the client device in order to improve access processing efficiency of an IP address and a domain name record and reduce system calls, and after the domain name server address is cached, the bottom layer of the application program or the open-source framework refreshes the domain name server address in the cache according to a set or default refresh policy after a refresh period is reached.
When a domain name server corresponding to a domain name server address configured on the client device monitors that the service quality is reduced, a target domain name server can be updated according to the content described in the embodiment of the present application; in this case, if the application or the bottom layer of the open source framework does not refresh the domain name server address in the cache in time, the domain name resolution is performed using the target domain name server before updating. For the technical problem, in some embodiments of the present application, an application program on a client device may reasonably select a cache refresh policy in combination with a cache control mechanism related to a code bottom layer; that is, the application program may read the updated target domain name server configured by the client device in real time and cache the updated target domain name server, for example, in a scenario where a Java Virtual Machine (JVM) is used to cache the domain name server address, an os res _ init method is called through a Java Native Interface (JNI), the target domain name server address configured on the system where the application program is located is read in real time, and the read target domain name server address is refreshed in the domain name server address cache in the JVM.
In some embodiments, when the present quality of service score of the target domain name server is lower than the last quality of service score of the target domain name server, it may be determined that the present quality of service score of the target domain name server satisfies a preset condition; or when the current service quality score value of the target domain name server is lower than a preset score value, determining that the current service quality score value of the target domain name server meets a preset condition.
In practical application, the service quality index of each domain name server can be detected in real time, so that the service quality scores of the domain name servers at different moments can be determined according to the service quality indexes of the domain name servers detected at different moments, the service quality scores of the domain name servers can be obtained for multiple times, and the service quality scores of the domain name servers can be recorded after the service quality scores of the domain name servers are obtained every time.
In the embodiment of the application, the preset score value can be set according to experience, and can also be set according to the requirement of the client device on the domain name resolution service.
It can be understood that when the present quality of service score of the target domain name server is lower than the last quality of service score of the target domain name server, or the present quality of service score of the target domain name server is lower than a preset score, the domain name resolution capability of the target domain name server may be considered not to meet the preset domain name resolution requirement, and therefore, the service quality of the domain name resolution request for the client device may be improved by updating the target domain name server.
It should be noted that, under the condition that the present quality of service score of the target domain name server does not satisfy the preset condition, the domain name resolution capability of the target domain name server may be considered to satisfy the preset domain name resolution requirement, and in this condition, the target domain name server may not be updated, that is, the target domain name server configured by the client device remains unchanged.
In practical applications, the steps 301 to 303 may be implemented based on a Processor of an electronic Device, where the Processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic device implementing the above-described processor function may be other electronic devices, and the embodiments of the present application are not limited thereto.
Therefore, the target domain name server can be updated according to the service quality score of the target domain name server; when the performance or service quality of the target domain name server is reduced, the domain name server with the reduced performance or service quality does not need to be adopted for domain name resolution, but the target domain name server can be updated, so that the service quality of the domain name resolution request aiming at the client equipment is improved.
In some embodiments, the obtaining of the current detection value of the qos indicator of the plurality of domain name servers may include:
acquiring a current detection value of a link quality index between each domain name server and client equipment; acquiring a current detection value of the performance parameter of each domain name server;
determining a current detection value of the service quality index of each domain name server according to at least one of a current detection value of a link quality index between each domain name server and the client device and a current detection value of a performance parameter of each domain name server.
Illustratively, the link quality indicator between each domain name server and the client device may include at least one of: the routing length from the network plane of the client device to the domain name server, the packet loss rate of a link from the network plane of the client device to the domain name server, the round-trip delay from the network plane of the client device to the domain name server, the delay jitter of a data packet sent from the client device to the domain name server, and the bandwidth size of a network between the client device and the domain name server.
Illustratively, the performance parameter of each domain name server may be used to represent a performance index of the operating system and/or a hardware performance index.
Illustratively, at least one of the current detected value of the link quality indicator between each domain name server and the client device and the current detected value of the performance parameter of each domain name server may be directly taken as the current detected value of the quality of service indicator of each domain name server.
It can be understood that, in general, the service quality of domain name resolution of the domain name server is generally related to the performance of the domain name server or the link quality between the domain name server and the client device, and thus, the service quality indicator of the domain name server can be accurately determined according to the link quality indicator between the domain name server and the client device or the performance parameter of the domain name server in the embodiments of the present application.
In some embodiments, after sending a network probe packet from a probe burial point to each domain name server, capturing the network probe packet from each domain name server, and analyzing the captured network probe packet to obtain a current detection value of a link quality indicator between each domain name server and the client device; wherein the detection buried point and the client device are in the same network plane.
In one implementation, a Libnet network probe packet constructor may be used to construct a specific Internet Control Message Protocol (ICMP) network probe packet or a User Datagram Protocol (UDP) network probe packet, where the Libnet network probe packet constructor is configured to send a corresponding network probe packet to a plurality of domain servers from a probe embedded point located on the same network plane as the client device; the Libnet is a small interface function library, is mainly written in C language, and provides the functions of constructing, processing and sending low-level network data packets. The ICMP network detection packet may be configured to detect a round trip delay between a network plane of the client device and the domain name server, and the UDP network detection packet may be configured to detect a routing length between the network plane of the client device and the domain name server and a packet loss rate of a link between the network plane of the client device and the domain name server; the time delay jitter of the data message sent by the client device to the domain name server and the bandwidth of the network between the client device and the domain name server can be detected by an ICMP network detection packet or a UDP network detection packet.
After the network detection packet is sent to the domain name server, a corresponding response network packet of the domain name server can be captured at one end of the domain name server by using a network detection packet capturing device, and the captured response network packet can be sent to a network detection packet information extraction and acquisition module; illustratively, the network probe packet capturer may be a Winpcap tool, a tcpdump tool, or other packet capture tool.
The network detection packet information extraction and acquisition module analyzes the response network packet, extracts related elements in different types of network detection packets, and extracts link quality indexes for representing the link quality between the domain name server and the client equipment. Illustratively, the elements extracted by the network probe packet information extraction and collection module include, but are not limited to: a router hop count of a Time To Live (TTL) value of the network probe packet arrival, a timestamp associated with the network probe packet, and a Flag status bit associated therewith.
Because the firewall is widely used in the network, the ICMP response packet or UDP packet sent by the detection may be filtered out, and the complete network detection packet capture cannot be performed. In general, a firewall may permit a reverse Transmission Control Protocol (TCP) packet to pass through the firewall to a designated port, and based on this consideration, in another implementation, a Libnet network probe packet constructor may be used to construct and send a TCP SYN (synchronization) packet instead of a UDP network probe packet or an ICMP network probe packet; then, a response (ACK) message of the TCP SYN data packet is captured by a network detection packet capturing device, and then the captured newspaper is sent to a network detection packet information extraction and collection module to extract corresponding information.
It can be seen that, in the embodiment of the present application, the link quality indicator between the domain name server and the client device can be easily obtained by capturing the network probe packet to the domain name server.
In some embodiments, the implementation of obtaining the current detection value of the performance parameter of each domain name server may include:
acquiring a current detection value of a performance index of an operating system of each domain name server and a current detection value of a hardware performance index of each domain name server;
and determining the current detection value of the performance parameter of each domain name server according to at least one of the current detection value of the performance index of the operating system of each domain name server and the current detection value of the hardware performance index of each domain name server.
The performance index of the operating system is used for characterizing the resource usage of the domain name server when the operating system is running, that is, the performance index of the operating system of each domain name server may represent a resource situation index that the operating system layer has a substantial influence on the running performance of the domain name server, for example, the performance index of the operating system of each domain name server may include at least one of the following: the current CPU utilization rate when the domain name server runs the operating system, and the average load (loads) within a set time length when the domain name server runs the operating system; for example, the set time period may be 1 minute, 5 minutes, 15 minutes, or other time period.
Exemplarily, whether to start a query log (query log) function of DNS resolution can be determined according to actual requirements, whether to start a flag bit of the query log is F, where a value of the flag bit of F is 0 or 1, and when a value of the flag bit of F is 0, it indicates that the query log function does not need to be started; when the value of the F flag bit is 1, it indicates that 1 needs to start the function of querying the log.
For the condition that the query log of the DNS resolution is started according to actual needs, the IO usage rate of the disk device corresponding to the output path of the query log on the domain name server also needs to be acquired. This is because the query log records all received DNS resolution requests and specific resolution result responses; for the Query Per Second (QPS) rate of DNS requests in an online environment, software in the domain name server frequently calls IO of a disk device to write a log on a disk. If the IO performance is not sufficient, the IO wait queue on the domain name server is lengthened, which results in an average load of the CPU and the operating system.
Therefore, in one implementation, the performance index of the operating system of each domain name server may include a current IO usage rate of a disk where an output path of a query log of the domain name server is located.
Here, the hardware performance index may include a CPU specification parameter of the domain name server host; for example, the hardware performance indicators for each domain name server may include at least one of: the CPU logic core number of the domain name server host and the CPU main frequency of the domain name server host.
Illustratively, at least one of the current detected value of the performance indicator of the operating system of each domain name server and the current detected value of the hardware performance indicator of each domain name server may be directly used as the current detected value of the performance parameter of each domain name server.
It can be understood that, since the quality of service of the domain name server is related to the basic resource capability provided by the operating system of the domain name server and the specification of the host of the domain name server, in the embodiment of the present application, the performance parameter of the domain name server can be accurately determined according to the performance index or the hardware performance index of the operating system of the domain name server.
In some embodiments, determining an implementation manner of the present quality of service score value of each domain name server according to the current detection value of the quality of service indicator of each domain name server in the plurality of domain name servers may include:
acquiring a reference service quality parameter of each domain name server; the reference service quality parameter is used for representing the average analysis duration of each domain name server for analyzing a plurality of preset domain names;
and according to the contribution degree of the service quality index of each domain name server to the reference service quality parameter, carrying out weighted calculation on the current detection value of the service quality index of each domain name server to obtain the service quality score value of the current time of each domain name server.
For the domain name resolution service, the intuitive service experience from the perspective of the user is the response time for resolving the domain name, so the domain name resolution time is the service quality which can be directly felt by the user.
For example, assuming that the reference domain name sample set is D, and each sample in the set D represents a domain name to be resolved, the reference quality of service parameter U may be calculated according to formula (1):
Figure BDA0003120072710000181
in formula (1), q (i) represents the domain name resolution time of the ith sample in the set U, and c (d) represents the sample space size of the reference domain name sample set.
Illustratively, domain names frequently visited by the online environment may be used as samples in the reference domain name sample set, e.g., the domain name of Alex Top 1000 may be used as a sample in the reference domain name sample set; then, for the corresponding domain name server, the reference quality of service parameter corresponding to the domain name server can be determined by actively sending a domain name resolution request.
For example, the contribution degree of the service quality index of each domain name server to the reference service quality parameter may represent: a statistical correlation function between the quality of service indicator for each domain name server versus the baseline quality of service parameter.
For example, the formula for performing weighted calculation on the current detection value of the quality of service index of each domain name server according to the contribution degree of the quality of service index of each domain name server to the reference quality of service parameter may be formula (2).
Figure BDA0003120072710000182
Where, V ═ {1 … … m } represents a participating metric performance set, and in the embodiment of the present application, V represents a set of individual quality of service indicators of the domain name server; m{i}Where {1 … … n } denotes a measurement sequence of the i-th class performance metric, M in the embodiment of the present application{i}A measurement sequence representing the ith quality of service indicator of the domain name server;
Figure BDA0003120072710000191
set of measurements representing class i performance metrics, in the present example, YiA measurement result set representing an ith quality of service indicator of the domain name server;
Figure BDA0003120072710000192
a data set representing all performance metrics obtained by measurement, in the embodiment of the present application, X represents a measurement result set of each service quality index of the domain name server; RC represents the result of weighting calculation of the current detection value of the service quality index of each domain name server. For equation (2), assuming that m properties participate in the measurement, the overall performance evaluation is an m-ary evaluation on X
Figure BDA0003120072710000193
Operation, and n-membered on Y
Figure BDA0003120072710000194
The operation is integrated;
it can be seen that, since the reference quality of service parameter may represent the quality standard of the domain name resolution service perceived by the user, the present quality of service score of each domain name server may be accurately determined according to the degree of contribution of the quality of service index of each domain name server to the reference quality of service parameter.
In an actual scene, different service quality indexes of each domain name server can respectively belong to evaluation indexes with different dimensions, and have different dimensions, so that data standardization processing is needed to solve comparability between data indexes in order to avoid influencing a data analysis result and eliminate differences in the index dimensions. After the index data is subjected to data standardization, all indexes are in the same order of magnitude, and the index data is suitable for subsequent evaluation.
Based on the above considerations, in some embodiments, performing a weighted calculation on the current detection value of the qos indicator of each domain name server according to the contribution degree of the qos indicator of each domain name server to the reference qos parameter includes:
standardizing the current detection value of the service quality index of each domain name server to obtain a standardized service quality index corresponding to each domain name server; and performing weighted calculation on the standardized service quality index corresponding to each domain name server according to the contribution degree of the standardized service quality index corresponding to each domain name server to the reference service quality parameter.
In one implementation, the current detection value of the qos indicator for each domain name server may be normalized using equation (3):
Figure BDA0003120072710000201
in formula (3), x represents a data sample to be normalized, min (x) represents a minimum value in the data sample x, max (x) represents a maximum value in the data sample x, g (x) represents a normalization result corresponding to the data sample x, and g (x) represents a normalization service quality index corresponding to the domain name server when x represents a current detection value of the service quality index of the domain name server.
In another implementation, the Z-Score normalization function may be used to normalize the current detection value of the qos indicator of each domain name server, that is, the current detection value of the qos indicator of each domain name server is normalized by using formulas (4) to (6):
Figure BDA0003120072710000202
Figure BDA0003120072710000203
Figure BDA0003120072710000204
in the formulae (4) to (6), xiIndicating the ith data sample requiring normalization, n indicating the number of data samples, yiRepresenting data samples xiCorresponding normalized result, at xiWhen the current detection value of the service quality index of the domain name server is represented, yiAnd the normalized service quality index corresponding to the domain name server is shown.
It can be understood that, by standardizing the current detection value of the service quality index of each domain name server, different service quality indexes of the domain name servers can be converted into the same data dimension, thereby increasing the comparability between the data indexes and being beneficial to comprehensively evaluating the service quality of the domain name servers by referring to the indexes of each dimension.
As can be seen from the above description, the embodiments of the present application may perform real-time dynamic detection on the performance status of the domain name server according to various indexes of the domain name server, and may select a standby target domain name server with better performance according to the service quality scores of multiple domain name servers.
The embodiments of the present application will be further described with reference to the accompanying drawings.
Referring to fig. 4, a system architecture for implementing the method for determining the domain name server in the embodiment of the present application includes a Libnet network probe packet constructor, a network probe packet capturer, a network probe packet information extraction and collection module, a DNS host base index collection module, a batch remote configuration management module, a real-time monitoring and automation module, and a performance evaluation module; the indexes extracted by the network detection packet information extraction and acquisition module can be sent to the performance evaluation module, and the functions of the Libnet network detection packet constructor, the network detection packet capturer and the network detection packet information extraction and acquisition module are already described in the above-mentioned contents, and are not described again here.
And the DNS host basic index acquisition module is used for acquiring the performance parameters of each domain name server and sending the acquired current detection values of the performance parameters to the performance evaluation module.
And the performance evaluation module is used for evaluating the performance of the domain name server according to the current detection value of the service quality index of each of the domain name servers, namely determining the service quality score value of the domain name server at this time.
And the batch remote configuration management module is used for managing a domain name server list on the client equipment in the jurisdiction range of the batch remote configuration management module. When a domain name server replacement instruction from a real-time monitoring and automation module is received, the client equipment is connected initiated by a batch remote configuration management module, and at least the client equipment changes the address of a target domain name server; illustratively, the batch remote configuration management module may be implemented based on an ansable tool or a salt stack tool.
And the real-time monitoring and automation module is used for monitoring the performance evaluation condition of each domain name server by the performance evaluation module and comparing the performance evaluation condition with the performance evaluation condition of the corresponding domain name server in the last sampling period. When determining that a certain domain name server has degraded performance or is unavailable, reading out the domain name server with the optimal performance (the highest service quality score value) in the network plane of the client as a target domain name server for providing domain name resolution service for the domain name resolution request of the client equipment. Then, the related information of the new target domain name server can be assembled into the following triplet information through the assembly instruction: [ IP address of client device, original target Domain name Server which needs to be replaced now, new target Domain name Server is recommended ]. The real-time monitoring and automation module can send the triple information to the batch remote configuration management module, and the batch remote configuration management module automatically modifies a target domain name server configured by the client device according to the triple information.
It can be seen that, based on the quantized performance evaluation result, the embodiment of the application can timely adjust the target domain name server configured by the client device in the online environment in an automatic manner, thereby solving the problem of time-dependent hysteresis in a mode of taking monitoring alarm as a trigger driving condition and then making corresponding change adjustment on the client device in a manual intervention manner in the related art; meanwhile, the problem that domain name servers with degraded service quality under a load balancing scheme commonly used in the industry cannot be removed in time can be well solved.
Further, the domain name server list configured on the online environment client device is optimally adjusted, the situation that an online application program of the client device sends a domain name resolution request to a domain name server with degraded service performance for processing is avoided, the potential hidden danger that the time consumption of service processing of the application program is increased due to the delay of domain name resolution can be effectively avoided, and the benefit of improving the overall domain name resolution response quality of the application program in the online environment name access scene is good.
In some embodiments, the performance evaluation module may periodically sample data sent by the network probe packet information extraction and acquisition module and the DNS host base indicator acquisition module, so as to calculate the end-to-end network service quality of a network link between a network plane where the client device is located and each domain name server; in addition, the quality of service of the domain name server is associated with the basic resource capability that the operating system running on the domain name server can provide, in addition to the quality of the network link. In addition to the basic resource capability, the hardware specification of the domain name server (usually including the number of CPU logic cores and CPU main frequency) will also have a certain impact on the service quality of the domain name server. Therefore, the service quality of the domain name server can be comprehensively evaluated by combining a mathematical statistics method according to the indexes extracted by the network detection packet information extraction and acquisition module, the sampling data of the DNS host basic index acquisition module and the hardware specification of the domain name server.
When the present service quality of the domain name server is comprehensively evaluated by combining a mathematical statistics method, the related statistics comprise: the method comprises the following steps of obtaining an average routing length L from a network plane of a client device to a domain name server, round-trip delay T from the network plane of the client device to the domain name server, a packet loss rate E of a link from the network plane of the client device to the domain name server, a current CPU usage rate P when the domain name server runs an operating system, an average load A1 within 1 minute when the domain name server runs the operating system, an average load A5 within 5 minutes when the domain name server runs the operating system, an average load A15 within 15 minutes when the domain name server runs the operating system, an IO usage rate I of a corresponding disk device of an output path of a query log on the domain name server, a CPU logic core number C of the domain name server host and a CPU logic core number H of the domain name server host.
In some embodiments, the data sampling method of the performance assessment module is Poisson sampling. The Poisson sampling is random increment sampling, and for a sampled process, the probability of acquiring any time value of the process by the sampling is equal; the ratio of each state sampled by Poisson is consistent with the ratio of the state in the total time; the randomness of the Poisson sampling may effectively avoid some existing periodic event synchronizations.
For the statistics, the indexes obtained by the ith sampling are respectively: l is{i}、T{i}、E{i}、P{i}、A1{i}、A5{i}、A15{i}And I{i}Domain name serverThe CPU logic core number C of the host and the CPU main frequency H of the domain name server host are fixed and unchangeable indexes; assuming that the set Z represents the degree of contribution of each index to the reference QoS parameter, the calculation formula of the degree of contribution of each index to the reference QoS parameter may be formula (7)
Figure BDA0003120072710000231
In the formula (7), X represents a set of reference qos parameters obtained by measurement, Y represents a set of measurement indices, and N represents the number of sampling times.
When calculating the contribution degree of each index to the reference service quality parameter, the method can firstly carry out standardization processing on each index, and then calculate the contribution degree of each index after standardization processing to the reference service quality parameter; and obtaining the service quality score value of the domain name server according to the contribution degree of each index after the standardization treatment to the reference service quality parameter and by referring to the following formula (8):
Figure BDA0003120072710000232
in equation (8), Qos{n,k}The service quality score value of the nth DNS nameserver after the k-th batch of Poisson sampling is shown, alpha represents the contribution degree of the average routing length L from the network plane of the client device to the domain name server to the reference service quality parameter, beta represents the contribution degree of the round-trip delay between the network plane of the client device and the domain name server to the T reference service quality parameter, gamma represents the contribution degree of the packet loss rate E of a link between the network plane of the client device and the domain name server to the reference service quality parameter, delta represents the contribution degree of the current CPU utilization rate P of the host computer to the reference service quality parameter when the domain name server runs the operating system, epsilon represents the contribution degree of the average load A within T1 minutes (which can be selected as 1 minute) of the domain name server running the operating system to the reference service quality parameter, and theta represents the utilization rate I of the output path of the query log on the domain name server to the corresponding disk device IO.The contribution degree to the reference service quality parameter, the value of the F mark bit is 0 or 1, and when the value of the F mark bit is 0, the query log function does not need to be started; when the value of the F mark bit is 1, it indicates that 1 needs to start the function of inquiring the log, λ represents the contribution degree of the CPU logic core number C of the domain name server host computer to the reference service quality parameter, and μ represents the contribution degree of the CPU main frequency H of the domain name server host computer to the reference service quality parameter.
It should be understood that, in the embodiment of the present application, not only the service quality calculation may be performed from the single dimension of the network parameter (L, T, E), but also the calculation may be performed in combination with the dimension of the host parameter (P, I, C, H, A), and not only includes software parameters such as a network, but also performs comprehensive evaluation from parameters of two dimensions of software and hardware in combination with hardware parameters related to the host, so that the analysis and combination are more accurate, and the accuracy of the domain name server governance evaluation is improved.
Further, in order to reduce the error of the calculation result and further improve the accuracy, the service quality score value of the domain name server may be obtained by referring to the following formula (9):
Figure BDA0003120072710000241
in formula (9), Qos{n,k}The service quality score value of the nth DNS nameserver after the k-th Poisson sampling is shown, alpha represents the contribution degree of the average routing length L from the network plane of the client device to the domain name server to the reference service quality parameter, beta represents the contribution degree of the round trip delay between the network plane of the client device and the domain name server to the T reference service quality parameter, gamma represents the contribution degree of the packet loss rate E of a link between the network plane of the client device and the domain name server to the reference service quality parameter, delta represents the contribution degree of the current CPU utilization rate P of the host computer when the domain name server runs the operating system to the reference service quality parameter, epsilon represents the contribution degree of the average load A within T1 minutes (optionally 1 minute) of the domain name server running the operating system to the reference service quality parameter, and zeta represents the average load within T2 minutes (optionally 5 minutes) of the domain name server running the operating system.The contribution degree of A to the reference service quality parameter, eta represents the contribution degree of average load A to the reference service quality parameter within t3 minutes (optionally 15 minutes) when the domain name server runs the operating system, theta represents the contribution degree of IO utilization rate I of the disk device corresponding to the output path of the query log on the domain name server to the reference service quality parameter, the value of the F mark bit is 0 or 1, and when the value of the F mark bit is 0, the query log function does not need to be started; when the value of the F mark bit is 1, it indicates that 1 needs to start the function of inquiring the log, λ represents the contribution degree of the CPU logic core number C of the domain name server host computer to the reference service quality parameter, and μ represents the contribution degree of the CPU main frequency H of the domain name server host computer to the reference service quality parameter.
It should be understood that in the embodiment of the application, not only the comprehensive evaluation is performed on the parameters of two dimensions of software and hardware, but also the average load of the main hardware parameter can be calculated by selecting a plurality of values, so that the error caused by a certain average load is reduced, the analysis and combination are more accurate, and the accuracy of the management evaluation of the domain name server is improved.
It can be understood that each index shows a dynamic change characteristic at different time, and especially for the basic performance index of the host, the basic performance index often varies with the traffic of the online environment at different time. Therefore, the quality score values corresponding to various indexes collected by Poisson sampling of different batches may have certain differences. The performance evaluation result of each batch is recorded for the real-time monitoring and automation module to decide whether to issue an instruction for modifying the domain name server on the client device, namely when the real-time monitoring and automation module monitors the Qos{n,k}<Qos{n,k-1}When the domain name server is in the sampling period of the (n) th batch, the comprehensive service quality of the (n) th domain name server is considered to be poor compared with the (k-1) th batch; setting the address of the nth domain name server as ns{i}Sorting the quality scores of all the domain name servers obtained by calculation after sampling the k batches, selecting the domain name server corresponding to the maximum quality score, and recording the address of the domain name server corresponding to the selected maximum quality score as ns{y}Then, the configuration modification instruction composed of the real-time monitoring and automation module is as follows: [ passenger)IP address of the subscriber device, ns{i},ns{y}]。
In summary, the embodiment of the application can reasonably select the index which has core influence on the comprehensive performance of the domain name server from a plurality of indexes which influence the service quality of the domain name server, and establishes a digital measurement model of the service quality of the domain name server. By means of real-time index collection, the comprehensive performance of all the existing and standby domain name servers in the online environment is measured, and a scientific evaluation basis for the comprehensive service quality of the domain name servers is formed. The method solves the problem that the evaluation of the real service quality of the domain name server is one-sidedness caused by the dispersion of the attention of the performance indexes and the non-uniformity of the monitoring period frequency of the indexes in the bypass monitoring scheme of the related technology.
On the basis of the method for determining the domain name server provided by the foregoing embodiment, the embodiment of the present application further provides a device for determining the domain name server; fig. 5 is a schematic diagram illustrating an alternative configuration of an apparatus for determining a domain name server according to an embodiment of the present application, and as shown in fig. 5, the apparatus 500 may include: an acquisition module 501, a first processing module 502 and a second processing module 503, wherein,
an obtaining module 501, configured to obtain current detection values of service quality indicators of multiple domain name servers; each domain name server in the plurality of domain name servers has the capability of analyzing a domain name to be accessed by the client device;
a first processing module 502, configured to determine, according to a current detection value of a quality of service indicator of each domain name server in the plurality of domain name servers, a current quality of service score of each domain name server;
the second processing module 503 is configured to update the target domain name server according to the current quality of service score value of each domain name server when the current quality of service score value of the target domain name server meets a preset condition; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
In some embodiments, the obtaining module 501 is specifically configured to:
acquiring a current detection value of a link quality index between each domain name server and the client device; acquiring a current detection value of the performance parameter of each domain name server;
and determining the current detection value of the service quality index of each domain name server according to at least one of the current detection value of the link quality index between each domain name server and the client device and the current detection value of the performance parameter of each domain name server.
In some embodiments, the obtaining module 501 is specifically configured to:
acquiring a current detection value of the performance index of the operating system of each domain name server and a current detection value of the hardware performance index of each domain name server;
and determining the current detection value of the performance parameter of each domain name server according to at least one of the current detection value of the performance index of the operating system of each domain name server and the current detection value of the hardware performance index of each domain name server.
In some embodiments, the performance index of the operating system is used for characterizing the resource usage condition when the domain name server runs the operating system; the hardware performance index includes a CPU specification parameter of the domain name server host.
In some embodiments, the obtaining module 501 is specifically configured to:
after a network detection packet is sent to each domain name server from a detection buried point, the network detection packet is captured from each domain name server, and the captured network detection packet is analyzed to obtain a current detection value of a link quality index between each domain name server and the client device; wherein the detection buried point and the client device are in the same network plane.
In some embodiments, the first processing module 502 is specifically configured to:
acquiring a reference service quality parameter of each domain name server; the reference service quality parameter is used for representing the average analysis duration of each domain name server for analyzing a plurality of preset domain names;
and according to the contribution degree of the service quality index of each domain name server to the reference service quality parameter, carrying out weighted calculation on the current detection value of the service quality index of each domain name server to obtain the service quality score value of the current time of each domain name server.
In some embodiments, the first processing module 502 is specifically configured to:
standardizing the current detection value of the service quality index of each domain name server to obtain a standardized service quality index corresponding to each domain name server;
and performing weighted calculation on the standardized service quality index corresponding to each domain name server according to the contribution degree of the standardized service quality index corresponding to each domain name server to the reference service quality parameter.
In some embodiments, the second processing module 503 is further configured to:
when the current service quality score value of the target domain name server is lower than the last service quality score value of the target domain name server, determining that the current service quality score value of the target domain name server meets a preset condition;
or when the current service quality score value of the target domain name server is lower than a preset score value, determining that the current service quality score value of the target domain name server meets a preset condition.
In some embodiments, the second processing module 503 is specifically configured to:
determining the updated address of the target domain name server; and sending an instruction for updating the address of the target domain name server to the client equipment based on the updated address of the target domain name server.
In practical applications, the obtaining module 501, the first processing module 502, and the second processing module 503 may be implemented by a processor of an electronic device, where the processor may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor. It is understood that the electronic device implementing the above-described processor function may be other electronic devices, and the embodiments of the present application are not limited thereto.
It should be noted that the above description of the embodiment of the apparatus, similar to the above description of the embodiment of the method, has similar beneficial effects as the embodiment of the method. For technical details not disclosed in the embodiments of the apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
It should be noted that, in the embodiment of the present application, if the method described above is implemented in the form of a software functional module and sold or used as a standalone product, it may also be stored in a computer readable storage medium. Based on such understanding, the technical solutions of the embodiments of the present application may be essentially implemented or portions thereof contributing to the prior art may be embodied in the form of a software product stored in a storage medium, and including several instructions for causing a computer device (which may be a terminal, a server, etc.) to execute all or part of the methods described in the embodiments of the present application. And the aforementioned storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read Only Memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present application are not limited to any specific combination of hardware and software.
Accordingly, an embodiment of the present application further provides a computer storage medium, where computer-executable instructions are stored on the computer storage medium, and the computer-executable instructions are used to implement any one of the methods for determining a domain name server provided in the foregoing embodiments.
An embodiment of the present application further provides an electronic device, fig. 6 is an optional schematic structural diagram of the electronic device provided in the embodiment of the present application, and as shown in fig. 6, the electronic device 60 includes:
a memory 601 for storing executable instructions;
a processor 602, configured to execute the executable instructions stored in the memory 601, implement any one of the above-mentioned methods for determining a domain name server.
The processor 602 may be at least one of an ASIC, a DSP, a DSPD, a PLD, an FPGA, a CPU, a controller, a microcontroller, and a microprocessor.
The computer-readable storage medium/Memory may be a ROM, a Programmable Read-Only Memory (PROM), an Erasable Programmable Read-Only Memory (EPROM), an Electrically Erasable Programmable Read-Only Memory (EEPROM), a magnetic Random Access Memory (FRAM), a Flash Memory (Flash Memory), a magnetic surface Memory, an optical Disc, or a Compact Disc Read-Only Memory (CD-ROM), and the like; but may also be various terminals such as mobile phones, computers, tablet devices, personal digital assistants, etc., that include one or any combination of the above-mentioned memories.
Here, it should be noted that: the above description of the storage medium and device embodiments is similar to the description of the method embodiments above, with similar advantageous effects as the method embodiments. For technical details not disclosed in the embodiments of the storage medium and apparatus of the present application, reference is made to the description of the embodiments of the method of the present application for understanding.
The above description is only for the embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (11)

1. A method of determining a domain name server, the method comprising:
obtaining current detection values of service quality indexes of a plurality of domain name servers; each domain name server in the plurality of domain name servers has the capability of analyzing a domain name to be accessed by the client device;
determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers;
under the condition that the present service quality score value of the target domain name server meets the preset condition, updating the target domain name server according to the present service quality score value of each domain name server; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
2. The method of claim 1, wherein obtaining the current detected value of the QoS metrics of the domain name servers comprises:
acquiring a current detection value of a link quality index between each domain name server and the client device; acquiring a current detection value of the performance parameter of each domain name server;
and determining the current detection value of the service quality index of each domain name server according to at least one of the current detection value of the link quality index between each domain name server and the client device and the current detection value of the performance parameter of each domain name server.
3. The method according to claim 2, wherein said obtaining a current detected value of the performance parameter of each domain name server comprises:
acquiring a current detection value of the performance index of the operating system of each domain name server and a current detection value of the hardware performance index of each domain name server;
determining a current detection value of a performance parameter of each domain name server according to at least one of a current detection value of a performance index of the operating system of each domain name server and a current detection value of a hardware performance index of each domain name server, wherein the performance index of the operating system is used for representing a resource use condition when the domain name server operates the operating system; the hardware performance index comprises a central processing unit CPU specification parameter of the domain name server host.
4. The method of claim 2, wherein obtaining the current detected value of the link quality indicator between each domain name server and the client device comprises:
after a network detection packet is sent to each domain name server from a detection buried point, the network detection packet is captured from each domain name server, and the captured network detection packet is analyzed to obtain a current detection value of a link quality index between each domain name server and the client device; wherein the detection buried point and the client device are in the same network plane.
5. The method according to claim 1, wherein determining the present quality of service score value of each of the plurality of domain name servers according to the current detected value of the quality of service indicator of each of the domain name servers comprises:
acquiring a reference service quality parameter of each domain name server; the reference service quality parameter is used for representing the average analysis duration of each domain name server for analyzing a plurality of preset domain names;
and according to the contribution degree of the service quality index of each domain name server to the reference service quality parameter, carrying out weighted calculation on the current detection value of the service quality index of each domain name server to obtain the service quality score value of the current time of each domain name server.
6. The method according to claim 5, wherein the performing a weighted calculation on the current detected value of the QoS indicator of each domain name server according to the contribution degree of the QoS indicator of each domain name server to the reference QoS parameter comprises:
standardizing the current detection value of the service quality index of each domain name server to obtain a standardized service quality index corresponding to each domain name server;
and performing weighted calculation on the standardized service quality index corresponding to each domain name server according to the contribution degree of the standardized service quality index corresponding to each domain name server to the reference service quality parameter.
7. The method according to claim 6, wherein the performing a weighted calculation on the current detected value of the QoS indicator of each domain name server according to the contribution degree of the QoS indicator of each domain name server to the reference QoS parameter comprises:
and performing weighted calculation on the current detection value of the service quality index of each domain name server according to the following formula:
Figure FDA0003120072700000031
among them, Qos{n,k}The service quality score values of the nth domain name server after sampling in the kth batch are shown, alpha, beta and gamma respectively show the average routing length L from the network plane of the client device to the domain name server, the round-trip delay T and the contribution degree of the packet loss rate E of a link to a reference service quality parameter, delta shows the contribution degree of the current CPU utilization rate P to the reference service quality parameter when the domain name server runs an operating system, epsilon shows the contribution degree of the average load A to the reference service quality parameter within T1 minutes when the domain name server runs the operating system, T1 shows a constant, theta shows the contribution degree of the input and output IO utilization rate I of a corresponding disk device of an output path of a query log on the domain name server to the reference service quality parameter, F shows whether a flag bit of the query log function is to be started or not, and lambda shows the contribution degree of the CPU logic core number C of a domain name server host to the reference service quality parameter, mu represents the contribution degree of the CPU main frequency H of the domain name server host to the reference service quality parameter.
8. The method of claim 1, further comprising:
when the current service quality score value of the target domain name server is lower than the last service quality score value of the target domain name server, determining that the current service quality score value of the target domain name server meets a preset condition;
or when the current service quality score value of the target domain name server is lower than a preset score value, determining that the current service quality score value of the target domain name server meets a preset condition.
9. The method according to any one of claims 1 to 8, wherein the updating the target domain name server according to the current quality of service score value of each domain name server comprises:
determining the updated address of the target domain name server; and sending an instruction for updating the address of the target domain name server to the client equipment based on the updated address of the target domain name server.
10. An apparatus for determining a domain name server, the apparatus comprising: an acquisition module, a first processing module and a second processing module, wherein,
the acquisition module is used for acquiring the current detection values of the service quality indexes of the plurality of domain name servers; each domain name server in the plurality of domain name servers has the capability of analyzing a domain name to be accessed by the client device;
the first processing module is used for determining the service quality score value of each domain name server according to the current detection value of the service quality index of each domain name server in the plurality of domain name servers;
the second processing module is used for updating the target domain name server according to the current service quality score value of each domain name server under the condition that the current service quality score value of the target domain name server meets the preset condition; the target domain name server is a domain name server configured by the client device, and the target domain name server is one of the domain name servers.
11. An electronic device, characterized in that the electronic device comprises:
a memory for storing executable instructions;
a processor for implementing the method of any one of claims 1 to 9 when executing executable instructions stored in the memory.
CN202110673044.0A 2021-06-17 2021-06-17 Method, device and equipment for determining domain name server and storage medium Pending CN113347286A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110673044.0A CN113347286A (en) 2021-06-17 2021-06-17 Method, device and equipment for determining domain name server and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110673044.0A CN113347286A (en) 2021-06-17 2021-06-17 Method, device and equipment for determining domain name server and storage medium

Publications (1)

Publication Number Publication Date
CN113347286A true CN113347286A (en) 2021-09-03

Family

ID=77476020

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110673044.0A Pending CN113347286A (en) 2021-06-17 2021-06-17 Method, device and equipment for determining domain name server and storage medium

Country Status (1)

Country Link
CN (1) CN113347286A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348234A (en) * 2022-08-10 2022-11-15 山石网科通信技术股份有限公司 Server detection method and device and electronic equipment
CN117240823A (en) * 2023-11-10 2023-12-15 快上云(上海)网络科技有限公司 Generalized network intelligent optimization method and generalized network intelligent optimization terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104639388A (en) * 2014-12-30 2015-05-20 中国科学院计算机网络信息中心 DNS server availability detection method based on user perception
CN105264826A (en) * 2012-12-21 2016-01-20 皇家Kpn公司 Low-latency streaming
WO2018090977A1 (en) * 2016-11-17 2018-05-24 贵州白山云科技有限公司 Device switching method and device switching apparatus
CN109981805A (en) * 2017-12-28 2019-07-05 中国移动通信集团山东有限公司 A kind of method and device of domain name mapping
CN112187924A (en) * 2020-09-28 2021-01-05 深圳前海微众银行股份有限公司 Service request method, device, equipment and computer storage medium

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105264826A (en) * 2012-12-21 2016-01-20 皇家Kpn公司 Low-latency streaming
CN104639388A (en) * 2014-12-30 2015-05-20 中国科学院计算机网络信息中心 DNS server availability detection method based on user perception
WO2018090977A1 (en) * 2016-11-17 2018-05-24 贵州白山云科技有限公司 Device switching method and device switching apparatus
CN112104498A (en) * 2016-11-17 2020-12-18 贵州白山云科技股份有限公司 DNS service quality evaluation method, device, medium and equipment
CN109981805A (en) * 2017-12-28 2019-07-05 中国移动通信集团山东有限公司 A kind of method and device of domain name mapping
CN112187924A (en) * 2020-09-28 2021-01-05 深圳前海微众银行股份有限公司 Service request method, device, equipment and computer storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
杜跃进;张兆心;王克;杨逍;胡萍;任立昊;: "基于贡献度分析的DNS服务质量评价模型", 南京理工大学学报, no. 06, 30 December 2013 (2013-12-30) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115348234A (en) * 2022-08-10 2022-11-15 山石网科通信技术股份有限公司 Server detection method and device and electronic equipment
CN115348234B (en) * 2022-08-10 2023-11-03 山石网科通信技术股份有限公司 Server detection method and device and electronic equipment
CN117240823A (en) * 2023-11-10 2023-12-15 快上云(上海)网络科技有限公司 Generalized network intelligent optimization method and generalized network intelligent optimization terminal

Similar Documents

Publication Publication Date Title
Natarajan et al. NSDMiner: Automated discovery of network service dependencies
JP6816139B2 (en) Methods, systems, and devices for generating information transmission performance alerts
US8135828B2 (en) Cooperative diagnosis of web transaction failures
US9049199B2 (en) Dynamic cache selection method and system
CN109981805B (en) Domain name resolution method and device
CN104365058B (en) For the system and method in multinuclear and group system high speed caching SNMP data
Pang et al. Availability, usage, and deployment characteristics of the domain name system
CN107409071B (en) Method for obtaining diagnosis test result, control module and computer readable storage medium
CN104380660B (en) System and method for carrying out trap monitoring in multinuclear and group system
EP0883271A2 (en) Method and system for managing data service systems
EP2563062A1 (en) Long connection management apparatus and link resource management method for long connection communication
CN113347286A (en) Method, device and equipment for determining domain name server and storage medium
EP1966712A2 (en) Load balancing mechanism using resource availability profiles
CN104869155B (en) Data Audit method and device
CN110719194B (en) Network data analysis method and device
CN111274604A (en) Service access method, device, equipment and computer readable storage medium
Corneo et al. (How Much) can edge computing change network latency?
US10382290B2 (en) Service analytics
Marotta et al. Through the Internet of Things--A Management by Delegation Smart Object Aware System (MbDSAS)
CN106161339A (en) Obtain the method and device of IP access relation
CN112104523B (en) Detection method, device and equipment for flow transparent transmission and storage medium
CN111818134B (en) Mist calculation-based data transmission method and device in substation data center
Martinez-Julia et al. Achieving the autonomic adaptation of resources in virtualized network environments
Deri et al. Graph theoretical models of DNS traffic
CN101651583B (en) Monitoring information management method and device

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