CN115473871A - Domain name local resolution method and device, equipment, medium and product thereof - Google Patents

Domain name local resolution method and device, equipment, medium and product thereof Download PDF

Info

Publication number
CN115473871A
CN115473871A CN202211138851.3A CN202211138851A CN115473871A CN 115473871 A CN115473871 A CN 115473871A CN 202211138851 A CN202211138851 A CN 202211138851A CN 115473871 A CN115473871 A CN 115473871A
Authority
CN
China
Prior art keywords
network address
domain name
network
server
detection
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202211138851.3A
Other languages
Chinese (zh)
Other versions
CN115473871B (en
Inventor
邱基荣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangzhou Baiguoyuan Information Technology Co Ltd
Original Assignee
Guangzhou Baiguoyuan Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangzhou Baiguoyuan Information Technology Co Ltd filed Critical Guangzhou Baiguoyuan Information Technology Co Ltd
Priority to CN202211138851.3A priority Critical patent/CN115473871B/en
Publication of CN115473871A publication Critical patent/CN115473871A/en
Application granted granted Critical
Publication of CN115473871B publication Critical patent/CN115473871B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • 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/1097Protocols in which an application is distributed across nodes in the network for distributed storage of data in networks, e.g. transport arrangements for network file system [NFS], storage area networks [SAN] or network attached storage [NAS]

Landscapes

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

Abstract

The application relates to a local domain name resolution method, a device, equipment, a medium and a product thereof, wherein the method comprises the following steps: acquiring a detection recommendation list from a server, wherein the detection recommendation list comprises a plurality of domain names and network addresses mapped with the domain names, and each network address points to different storage nodes in the same distributed storage system; sending a network detection request to each network address to acquire a first performance parameter, and determining first quality index data of each network address according to the first performance parameter; obtaining second quality index data determined according to a second performance parameter generated by the network access request from the server; counting the comprehensive score of each network address according to the quality index data, and determining the optimal network address of each domain name according to the comprehensive score; each domain name is mapped with its best network address to write to the system host file. The application enables the browser program to determine the best network address corresponding to the domain name in the network access request.

Description

Domain name local resolution method and device, equipment, medium and product thereof
Technical Field
The present application relates to the field of domain name resolution technologies, and in particular, to a local domain name resolution method, apparatus, device, medium, and product.
Background
In a content security auditing system of a globally operated site, auditing users of the system are distributed all over the world, content producers are distributed all over the world, but often auditors and producers are in different countries or regions, so that the ultra-long distance geographical limitation, the stability of the system and the response speed of requests are seriously influenced, because the globally operated site is generally deployed in a distributed storage system.
With the development of services, a distributed storage system where a site is located is continuously provided with new machine room building and machine room migration, in such a complex and changeable scene, a CDN and a DNS cache need to be updated in time to perform network traffic scheduling quickly and stably, otherwise, if the problems of slow cross-network access, no response to a request, and the like occur, the work efficiency of a system audit user will be reduced, and potential loss is brought to site operation.
It can be seen that, for a network access request corresponding to a site deployed in a distributed storage system, how to ensure that a relevant network access request can be responded robustly and quickly is one of the key issues.
In an actual scene, a system audit user accesses a site background page through an independently running browser in a terminal device, and triggers a network access request to load corresponding information to be audited in the background page for auditing, while the browser generally only relies on an inherent domain name resolution mechanism to determine a target network address for a related network access request, has slow response, and does not relate to selection of specific storage nodes in a distributed storage system, so that the system audit user cannot adapt to various dynamic change conditions, including changes of the distributed storage system caused by machine room transition and disaster recovery switching.
Disclosure of Invention
The present application is directed to solve the above problems and provide a domain name local resolution method, and a corresponding apparatus, device, non-volatile readable storage medium, and computer program product.
According to an aspect of the present application, there is provided a local resolution method for a domain name, including the steps of:
acquiring a detection recommendation list from a server, wherein the detection recommendation list comprises a plurality of domain names and network addresses mapped with the domain names, and each network address mapped with each domain name points to different storage nodes in the same distributed storage system;
sending a network detection request to each network address to obtain a corresponding first performance parameter, and determining first quality index data of each network address according to the first performance parameter;
obtaining second quality index data from the server, the second quality index data being determined according to a second performance parameter generated by a network access request sent to the network address;
determining a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determining an optimal network address of each domain name according to the comprehensive score;
and mapping each domain name in the detection recommendation list with the optimal network address thereof and writing the domain name into a system host file.
According to another aspect of the present application, there is provided a domain name local resolution apparatus including:
the system comprises a list acquisition module, a detection recommendation module and a recommendation module, wherein the list acquisition module is used for acquiring a detection recommendation list from a server, the detection recommendation list comprises a plurality of domain names and network addresses mapped with each domain name, and each network address mapped with each domain name points to different storage nodes in the same distributed storage system;
the detection implementation module is configured to send a network detection request to each network address to obtain a corresponding first performance parameter, and determine first quality index data of each network address according to the first performance parameter;
a monitoring implementation module configured to obtain second quality indicator data from the server, the second quality indicator data being determined according to a second performance parameter generated by a network access request sent to the network address;
the statistical scoring module is configured to determine a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determine an optimal network address of each domain name according to the comprehensive score;
and the configuration optimization module is set to map each domain name in the detection recommendation list with the optimal network address thereof and write the domain name into a system host file.
According to another aspect of the present application, there is provided a local domain name resolution device, comprising a central processing unit and a memory, wherein the central processing unit is configured to invoke and run a computer program stored in the memory to perform the steps of the local domain name resolution method described herein.
According to another aspect of the present application, there is provided a non-transitory readable storage medium storing a computer program implemented according to the domain name local resolution method in the form of computer readable instructions, where the computer program is called by a computer to execute the steps included in the method.
According to another aspect of the present application, there is provided a computer program product comprising computer programs/instructions which, when executed by a processor, implement the steps of the method described in any one of the embodiments of the present application.
The present application achieves a number of technical advantages over the prior art, including but not limited to:
firstly, the method is decoupled from a browser program used for triggering a network access request, and is realized without depending on a webpage code, on one hand, first quality index data are obtained by locally sending a network detection request aiming at a network address mapped by a domain name in a detection recommendation list provided by a server, on the other hand, second quality index data are determined by monitoring performance parameters generated by the network access request of each network address through the server, comprehensive scores of each network address are determined according to all the quality index data, then, an optimal network address corresponding to each domain name is determined according to the comprehensive scores, then, the domain name and the optimal network address are mapped and written into a system host file, so that the browser program carries out domain name resolution on the network access request, the domain name resolution speed is improved, the browser program is ensured to be free from calling an external domain name resolution server, potential problems that domain name hijacking, domain name verification cannot be carried out through an HTTPS (hypertext transfer protocol over protocol) certificate can be effectively prevented, and the method has safety.
Secondly, the method determines comprehensive scores of all network addresses mapped by all domain names in a detection recommendation list, the comprehensive scores are determined jointly according to performance parameters obtained by locally implementing network detection requests and performance parameters of monitoring a large number of network access requests by a server, the performance parameters of the two aspects can reflect the latest network quality, the two types of performance parameters more accurately, comprehensively and objectively reflect the whole condition of the end-to-end network quality, and the comprehensive scores of all the network addresses mapped by all the domain names are adjusted in time according to the latest network quality, so that the optimal network address is determined in time, a switching mechanism of storage nodes in a distributed storage system is realized, a disaster tolerance effect is achieved, and timeliness and accuracy are better than those of disaster tolerance through the server.
In addition, for content security audit of globally operated sites, the method and the system can provide a more efficient network access mechanism for system audit users, can ensure that the system audit users can obtain a stable and efficient access effect when loading related network resources by using a browser program through optimization of optimal network addresses of all domain names, and can quickly obtain related information content from storage nodes which are most beneficial to access in a distributed storage system for deploying the sites to implement related audit, thereby ensuring normal operation of site services.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a network architecture diagram of an exemplary application scenario of the present application;
fig. 2 is a flowchart illustrating an embodiment of a local domain name resolution method according to the present application;
FIG. 3 is a schematic flow chart illustrating acquisition of a probe recommendation list from a server according to an embodiment of the present application;
fig. 4 is a schematic flowchart illustrating a process of implementing network probing to determine first quality indicator data of each network address in a probe recommendation list according to an embodiment of the present application;
fig. 5 is a schematic flowchart illustrating a process of monitoring a second performance parameter and generating second quality indicator data by a server according to an embodiment of the present application;
FIG. 6 is a flowchart illustrating an embodiment of loading a corresponding network after a browser program triggers a network access request
Fig. 7 is a schematic block diagram of a domain name local resolution apparatus according to the present application;
fig. 8 is a schematic structural diagram of a domain name local resolution device used in the present application.
Detailed Description
Referring to fig. 1, fig. 1 is a schematic diagram of a network architecture of an application scenario of a domain name local resolution method of the present application, and illustrates a client and a server, where the client is a domain name local resolution device of the present application, and the server may be a cloud computer device suitable for maintaining communication of one or more distributed storage Systems (CDNs), or may also be a front-end service device belonging to the distributed storage systems, or may also be a server in an independent server cluster.
The client may be a terminal device such as a personal computer, a mobile phone, a tablet computer, and the like, and is configured to run a computer program product implemented according to the local domain name resolution method of the present application and a browser program relatively independent from the computer program product, and is configured as a system host file that can be called by the browser program.
The distributed storage system, which is not shown in fig. 1, may be used to deploy a site, and includes a plurality of storage nodes distributed in different places, where each storage node may be used to store network resources of the same site, and the same network resource may be stored in one or more of the storage nodes. The network resource may be a web code file such as a JavaScript file, video, picture, audio, text, or any other computer readable data.
The storage nodes contained in the distributed storage system can be distributed and deployed in different geographic areas in the global scope. The domain name of a site deployed in the distributed storage system may be resolved into network addresses of a plurality of storage nodes distributed in a plurality of geographic regions through a domain name resolution mechanism according to a domain name mapping record registered in advance, where such a storage node is generally the storage node that can be reached most quickly and/or accessed most stably by a corresponding network access request, and is also generally the storage node closest to a geographic location where the network access request is located on an administrative region. Multiple sites may be deployed in the same distributed storage system, or different sites may be deployed in different storage distribution systems. Different domain names may point to storage nodes where the same site is located.
The server is configured to collect a second performance parameter corresponding to the network access request sent to the storage node in the distributed storage system, and count index values included in the second performance parameter to determine second quality index data.
The server is also configured to determine a geographic area to which the client belongs according to an exit network address corresponding to the list acquisition request sent by the client, acquire one or more network addresses of storage nodes of network resources of sites corresponding to the domain name in the geographic area according to a preset domain name, and construct mapping relation data according to the domain name and the one or more network addresses thereof to form a detection recommendation list and push the detection recommendation list to the client.
The computer program product is operated as a current program of the client, and can implement network probing for each network address in the probing push list, determine first quality index data according to a first performance parameter obtained from a network probing result, then determine a comprehensive score corresponding to each network address by synthesizing the first quality index data and the second quality index data, and determine an optimal network address corresponding to each domain name according to the comprehensive score.
When the browser program runs, the browser program is set to call the system host file aiming at the network access request triggered in the system host file, the optimal network address mapped by the domain name carried by the network access request is inquired from the system host file, and then the network access request is sent to the optimal network address to obtain the corresponding network resource.
The system host file generally refers to a system file dedicated to domain name resolution in an operating system, for example, all operating systems such as Windows, linux, IOS, android and the like have corresponding system files named by Hosts without suffixes.
Referring to fig. 2, in an embodiment of a method for local resolution of a domain name according to the present application, the method includes the following steps:
step S1100, acquiring a detection recommendation list from a server, wherein the detection recommendation list comprises a plurality of domain names and network addresses mapped with each domain name, and each network address mapped with each domain name points to different storage nodes in the same distributed storage system;
after being installed and operated on a client, a computer program product implementing the local domain name resolution method of the present application starts working, and then requests a probe recommendation list from a server.
In an exemplary application scenario, the system auditing users of the content security auditing system provided by the client to one or more target sites are responsible for performing information security auditing on network resources of the target sites, and therefore, mapping relation data between the domain names and the network addresses of the target sites are mainly stored in the detection recommendation list.
The network resources of the target site in the detection recommendation list are usually distributed and stored in a plurality of storage nodes of the distributed storage system, so that a plurality of network addresses mapped with the domain name of the target site are usually included correspondingly, each network address is an IP address of a corresponding storage node, and thus, a plurality of network addresses mapped with the domain name of the same target site respectively point to different storage nodes in the same distributed storage system. It should be noted that, in an embodiment, the same network resource in the same target site may be stored in the plurality of storage nodes at the same time to backup each other, the network resource may be accessed when any one network address corresponding to the domain name of the target site reaches the corresponding storage node, and the network resource is acquired by switching the network addresses corresponding to different storage nodes of the same target site, so that the plurality of storage nodes actually implement a disaster recovery mechanism for the network resource of the target site.
Step S1200, sending a network detection request to each network address to obtain a corresponding first performance parameter, and determining first quality index data of each network address according to the first performance parameter;
after the probe recommendation list is obtained, network probing is started to be performed on each network address in the probe recommendation list, and for this purpose, a network probing pool may be preset for storing and processing a network probing result. The network probe pool may be a cache area in the memory of the client or a cache file in its local storage device.
When network detection needs to be carried out on each network address in the detection recommendation list, the network address is regarded as a target network address, and then a corresponding network detection request is sent to the target network address. For each network detection request, the start time and the end time of the request, whether the request arrives, the generated delay and the like can be recorded, according to the information, a plurality of index values such as request success rate (packet loss rate), average delay, jitter and the like can be calculated, and a plurality of index values obtained by detecting one network address at a time form a first performance parameter corresponding to the network address. In one embodiment, the network probe request may be implemented by calling a system interface pre-packaged by the system, and the first performance parameter returned by the system interface may be directly obtained.
The first performance parameter obtained by detecting each network address in the recommendation list can be stored in the network detection pool, and network detection can be periodically or aperiodically performed on each network address in the recommendation list to update the first performance parameter in the network detection pool, so that the change of the network quality can be dynamically followed.
In an embodiment, for the first performance parameter of each network address in the network probe pool, because the first performance parameter of each network address is composed of a plurality of index values, and the same network probe may obtain a plurality of first performance parameters by sending a plurality of network probe requests, the first performance parameters of each network address may be classified, collected and averaged according to the index values, so as to form first quality index data, so that the first quality index data includes average index values corresponding to a plurality of indexes, which are used for measuring the end-to-end network quality obtained after the network address is subjected to the network probe.
In one embodiment, each average indicator value in the first quality indicator data may be normalized in advance to convert each average indicator value into a value of the same confidence interval.
In one embodiment, in the process of implementing network probing, when it is found that a network address cannot be reached for a long time through network probing, the network address can be deleted from the probing recommendation list, and then the deleted network address is not probed any more, so that system overhead can be saved, and waste of the total time of network probing is avoided. Therefore, a time period can be set, when a network address which cannot be reached is detected for the first time, timing is started, whether the timing reaches or exceeds the time period is detected every time when the same network address is detected to be unreachable, when the time period is exceeded, the network address is confirmed to be unreachable, and then the network address is deleted from the detection recommendation list. If the deleted network address is the last network address of the domain name to which it is mapped, then the domain name may be deleted from the probe recommendation list together.
Step S1300, obtaining second quality index data from the server, the second quality index data being determined according to a second performance parameter generated by the network access request sent to the network address;
the server not only maintains the distribution mapping relationship of each target site on each storage node of the distributed storage system, but also is responsible for receiving various data collected after the operation of the embedded point codes in the web pages of the target sites, wherein the various data comprises a second performance parameter generated after a network access request for acquiring the network resources of one target site is triggered in the web page of the target site.
In one embodiment, a buried point code is preset in a web page of a target site, and when the web page is loaded by any browser program and human-computer interaction is implemented on the web page, a network access request for acquiring a network resource of the target site is triggered, and the network access request is sent to a network address serving as a delivery target, that is, to a storage node where the network resource of the target site is deployed. When the network access request is triggered, the execution of the corresponding buried point code is also triggered. The embedded point code collects various index values corresponding to the network quality after the network access request is implemented, the network quality is end-to-end network quality, namely the network quality of a data communication link from a client loading the network to a corresponding network address through a public network, and the index values form a second performance parameter generated by sending the network access request aiming at the network address.
According to the principle, each storage node deployed by a target site pointed by each domain name in a detection recommendation list sent to a client is represented as a network address, for each network address, the server can obtain second performance parameters corresponding to massive network access requests through monitoring, and second quality index data corresponding to each network address can be obtained through regularly counting the second performance parameters.
In an embodiment, the client may replace the server to receive and process the second performance parameter, and generate the second quality index data according to the second performance parameter, thereby omitting a link involving the server. According to this further modified embodiment, the client of the present application may provide the second performance parameter corresponding to the network access request through the browser program running therein and locally determine the corresponding second quality index data, and the second performance parameter does not need to be generated by using an external terminal device, which may also have an equivalent effect.
For the second performance parameter of each network address obtained by the server, because the second performance parameter of each network address is formed by a plurality of index values, and the same network address may obtain a plurality of second performance parameters, the second performance parameters of each network address can be classified, summarized and averaged according to the index values to form second quality index data, so that the second quality index data includes average index values corresponding to a plurality of indexes, and is used for generally measuring the network quality corresponding to the service provided by the storage device of one network address for mass users.
In one embodiment, each average indicator value in the second quality indicator data may be normalized in advance to convert each average indicator value into a value of the same confidence interval. The confidence intervals used for the respective normalization of the first quality index data and the second quality index data may be the same value interval, for example [0,1], so that the index values in all the quality index data are unified to the same dimension, and the subsequent fusion is convenient.
In an embodiment, a browser program may be run in a client of the present application, a web page of a target site is loaded through human-computer interaction, or a control in the loaded web page is triggered, a network access request pointing to a network address corresponding to the target site in a probe recommendation list is correspondingly triggered, then a corresponding embedded point code is triggered to calculate index values such as a success rate (packet loss rate), average consumed time and the like of the network access request, so as to obtain a second performance parameter, then the embedded point code sends the second performance parameter to a server, the server receives the second performance parameter and then caches the second performance parameter, and then second quality data corresponding to the network address is determined according to the second performance parameters from multiple clients and for the same network address.
It should be noted that, for each index included in the first performance parameter and the second performance parameter of the present application, the embodiment that does not affect the inventive spirit of the present application may be determined as needed by those skilled in the art, and may include one or more indexes as long as the corresponding index can reflect one aspect of the network quality.
Step S1400, determining a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determining an optimal network address of each domain name according to the comprehensive score;
it is understood that the first quality index data and the second quality index data corresponding to the same network address each include a plurality of average index values, and both of the average index values can be obtained by the client, so that the first quality index data and the second quality index data can be statistically processed by the client and quantized into a comprehensive score for representing the network quality of the storage device pointed by the network address.
When determining the comprehensive score of a network address, in one embodiment, a summation operation may be performed on each average index value in the first quality index data and the second quality index data of the network address; in another embodiment, the weights may also be matched for each average index value as needed during the summation process. In any way, the average index values in the corresponding first quality index data and second quality index data are fused into the same comprehensive score corresponding to the same network address.
By determining the corresponding comprehensive score for each network address, each network address corresponding to each domain name in the detection recommendation list has a corresponding evaluation basis, that is, each domain name in the detection recommendation list has a corresponding comprehensive score for each network address mapped with the domain name, and the network quality of each network address can be compared through the comprehensive scores. Generally, for a domain name, the network address with the highest comprehensive score among all the network addresses mapped to the domain name is the best network address for characterizing the network quality of a data communication link from the current client to the storage device pointed to by the network address, and the network address with the highest comprehensive score can be preferentially determined as the best network address of the domain name.
In one embodiment, before determining the optimal network address for each domain name, the optimal network address of the domain name does not need to be changed when the current and the last two highest composite scores point to the same network address; if the network address corresponding to the current highest comprehensive score is different from the previously determined optimal network address, the optimal network address of the domain name can be reset as the network address with the current highest comprehensive score. In other embodiments, it may be allowed that when the variation of the highest composite score of the two previous times is within a certain tolerance range, the optimal network address is not easily varied, so as to avoid frequent switching of the data communication link.
And S1500, mapping each domain name in the detection recommendation list with the optimal network address thereof and writing the domain name into a system host file.
When each domain name in the detection recommendation list determines the corresponding optimal network address, a mapping relationship is established between the domain name and the optimal network address to form mapping relationship data, and the mapping relationship data corresponding to each domain name can be written into a system host file (Hosts) of an operating system of a client, so that a browser program of a current program can determine the optimal network address for the domain name in the network access request according to the system host file.
As previously described, the system host file may be provided to a browser program to perform localized domain name resolution, where unique mapping data between domain names to network addresses is stored. The browser program firstly calls the system host file to execute query aiming at the domain name in each network access request triggered in the domain name, determines the network address mapped with the domain name, namely the optimal network address determined by the application, then sends the network access request to a storage node in a distributed storage system pointed by the optimal network address, and obtains corresponding network resources from the storage node.
It can be seen that the computer program product of the present application operates independently of the browser program, is decoupled from each other, but implements data communication through the system host file, provides the mapping relationship data between the domain name and the optimal network address for the system host file, and calls the mapping relationship data in the system host file by the independently operating browser program for implementing domain name resolution, implementing a domain name proxy resolution mechanism.
In one embodiment, when the browser cannot resolve the network address of a certain domain name from the system host file, the browser performs resolution on the domain name through a domain name resolution server preset by an operating system to determine a target network address of the domain name, and then sends a corresponding network access request to the target network address determined by the domain name resolution server to determine effective execution of the network access request.
According to the above embodiments, it can be known that the technical solution of the present application has various technical advantages, including but not limited to:
firstly, the method is realized by a current program decoupled from a browser program used for triggering a network access request without depending on a webpage code, on one hand, first quality index data are obtained by locally sending a network detection request aiming at a network address mapped by a domain name in a detection recommendation list provided by a server, on the other hand, second quality index data are determined by monitoring performance parameters generated by the network access request of each network address through the server, comprehensive scores of each network address are determined according to all the quality index data, then, an optimal network address corresponding to each domain name is determined according to the comprehensive scores, then, the domain name and the optimal network address are mapped and written into a system host file, the browser program carries out domain name resolution on the network access request, the speed of the domain name resolution is improved, the browser program does not need to call an external domain name resolution server, potential problems that domain name hijacking, an HTTPS (hypertext transfer protocol) certificate cannot pass through and the like can be effectively prevented, and the method has safety.
Secondly, the method determines comprehensive scores of all network addresses mapped by all domain names in a detection recommendation list, the comprehensive scores are determined jointly according to performance parameters obtained by locally implementing network detection requests and performance parameters of monitoring a large number of network access requests by a server, the performance parameters of the two aspects can reflect the latest network quality, the two types of performance parameters more accurately, comprehensively and objectively reflect the whole condition of the end-to-end network quality, and the comprehensive scores of all the network addresses mapped by all the domain names are adjusted in time according to the latest network quality, so that the optimal network address is determined in time, a switching mechanism of storage nodes in a distributed storage system is realized, a disaster tolerance effect is achieved, and timeliness and accuracy are better than those of disaster tolerance through the server.
In addition, for content security audit of globally operated sites, the method and the system can provide a more efficient network access mechanism for system audit users, can ensure that the system audit users can obtain a stable and efficient access effect when loading related network resources by using a browser program through optimization of optimal network addresses of all domain names, and can quickly obtain related information content from storage nodes which are most beneficial to access in a distributed storage system for deploying the sites to implement related audit, thereby ensuring normal operation of site services.
On the basis of any embodiment of the present application, referring to fig. 3, acquiring a probe recommendation list from a server includes:
step S1110, sending a list acquisition request to the server, so that the server determines a geographical area to which the server belongs according to a source network address carried by the list acquisition request;
in order to obtain the probe recommendation list, after the computer program product runs on the client, a list obtaining request is packaged by the client and sent to the server. After receiving the list acquisition request, the server analyzes the source network address in the message, namely the exit network address of the client.
The server inquires a pre-registered database according to the source network address, wherein the database comprises mapping relation data between pre-registered IP addresses (network addresses) and geographical areas to which the pre-registered IP addresses belong, and the geographical areas to which the source network addresses belong can be determined by inquiring the database. The geographical regions may be pre-divided at any granularity, such as regional level, national level, provincial (state) level, etc.
Step S1120, determining, by the server, a probe recommendation list according to the geographic area, where the geographic area to which the network address of the storage node included in the probe recommendation list belongs is the same as the geographic area to which the source network address belongs;
and determining the geographical area to which the source network address belongs, wherein the purpose of the determination is to match a storage node which is theoretically suitable for efficient access of the geographical area range for the list acquisition request according to the information grasped by the server. Therefore, the server further queries the network addresses of the storage nodes where the network resources of the target sites corresponding to the preset domain names are located according to the registration data in the distributed storage system, constructs mapping relationship data according to the corresponding relationship between the domain names and the deployed network addresses, and constructs a detection recommendation list. Each domain name is in the same geographic area range and may correspond to a plurality of storage nodes, so that the mapping relation data in the probe recommendation list may be in a one-to-many form.
Generally, since geographically adjacent computer communication networks generally have fewer gateways and short links, the communication efficiency is higher, and therefore, for the geographic area to which the source network address belongs, the network addresses of the corresponding storage nodes in the geographic area may be preferred to be used for forming the mapping relationship data with the domain name.
And step S1130, receiving the detection recommendation list pushed by the server and storing the detection recommendation list in a local storage space.
And after responding to the list acquisition request, the server generates a corresponding detection recommendation list, and then the detection recommendation list can be pushed to the client side of the application to finish the response to the list acquisition request. After receiving the detection recommendation list, the client side of the application stores the detection recommendation list in a local storage space so as to implement network detection according to the detection recommendation list to determine the optimal network address corresponding to each domain name.
According to the embodiment, the server actually realizes the preliminary screening of the network addresses mapped by the domain names of the target sites according to the exit network addresses of the client, so that the client selects the determined optimal network addresses according to the comprehensive scores on the basis, the principle of region administration is met, the principle advantage of the distributed storage system is utilized to the maximum extent, the accurate scheduling of the storage nodes in the distributed storage system is ensured, and the problem of traffic deviation caused by inaccurate traffic scheduling is avoided.
Based on any embodiment of the present application, referring to fig. 4, sending a network probe request to each network address to obtain a corresponding first performance parameter, and determining first quality index data of each network address according to the first performance parameter includes:
step S1210, responding to a regular detection instruction triggered by a scheduled task, and traversing each network address in the detection recommendation list;
after the client side obtains the detection recommendation list, a preset planning task can be started, wherein the planning task is used for regularly triggering a regular detection instruction aiming at the detection recommendation list, and a detection period can be flexibly set by a person skilled in the art, for example, the detection period is set to every half hour, every day and the like.
When the timing of the planning task is reached, the periodic detection instruction is triggered, and then, each network address in the detection recommendation list can be traversed, and a network detection request is initiated for each network address.
Step S1220, in the traversal process, sending network probe requests corresponding to at least one protocol one by one for each network address to obtain corresponding first performance parameters, where the protocols include an HTTP protocol and/or an ICMP protocol, and the first performance parameters include a plurality of index values;
in the traversal process of performing network probing on each network address of the probe recommendation list, multiple network probe requests may be initiated for each network address, where the multiple network probe requests may be of the same type encapsulated according to the same protocol, or of multiple types encapsulated according to different protocols. In the same traversal process, one or more network detection requests can be initiated according to actual needs aiming at the same network address, corresponding first performance parameters are obtained, and the first performance parameters are stored in a preset network detection pool.
In an embodiment, the network probe request may be a first type probe request encapsulated according to a hypertext Transfer Protocol (HTTP), and may be implemented by calling a preset interface, so that a corresponding first performance parameter may be obtained, where the first performance parameter includes index values corresponding to success rate, delay, and jitter.
In another embodiment, the network probe request may be a second type probe request encapsulated according to an Internet Control Message Protocol (ICMP), and may also be implemented by invoking a preset interface, so as to obtain a corresponding first performance parameter, where the first performance parameter includes an index value corresponding to a packet loss rate, a delay, and a jitter.
In one embodiment, for each network address in the probe recommendation list, a probe thread may be created for the network address one by one, each probe thread implements network probing corresponding to "domain name + network address", and then each probe thread may be responsible for concurrently implementing periodic probing, thereby providing network probing efficiency.
Step S1230, counting the first performance parameters corresponding to each network address, and determining an average index value corresponding to each index value to form first quality index data.
After traversal is completed, the network probe pool includes one or more first performance parameters corresponding to each network address in the probe recommendation list, each first performance parameter includes a plurality of index values, for convenience of subsequent calculation, the plurality of first performance parameters of the same network address can be counted according to index dimension classification, specifically, a mean value of the plurality of index values can be obtained for the same index, an average index value is obtained, and the average index value corresponding to each index forms first quality index data of the network address.
According to the embodiment, the client is responsible for implementing network detection, the network detection request encapsulated by various protocols is applied when the network detection is implemented, the end-to-end network quality can be reflected more comprehensively, and the optimal network address determined on the basis is more suitable for the client to use.
On the basis of any embodiment of the present application, referring to fig. 5, acquiring second quality indicator data from the server, where the second quality indicator data is determined according to a second performance parameter generated by a network access request sent to the network address, includes:
step S1310, the server monitors a second performance parameter, where the second performance parameter is generated by a browser program running on any terminal device triggering a network access request pointing to a network address mapped by the domain name, and the second performance parameter includes a plurality of index values;
any terminal device accesses the site pointed by the domain name in the detection recommendation list of the application, and similarly, the storage node pointed by each network address mapped by the domain name in the detection recommendation list can be accessed by touching through the corresponding network access request. The monitoring of the second performance parameters generated corresponding to the network access requests is realized by presetting the embedded point codes in the pages of the sites. When a terminal device triggers a network access request, the corresponding embedded point code obtains a second performance parameter correspondingly generated by the embedded point code and uploads the second performance parameter to the server.
And the server monitors all the second performance parameters, and caches the network access request after the browser program running on any terminal equipment triggers the network access request and subsequently submits the corresponding second performance parameters so as to periodically count the second performance parameters to determine second quality index data.
As previously mentioned, the second performance parameter includes a plurality of index values, which may include, for example, in one embodiment, the success rate and average elapsed time of the corresponding network access request.
Step S1320, the server performs statistics on a plurality of second performance parameters corresponding to each network address, and determines an average index value corresponding to each index value, thereby forming second quality index data;
the server is responsible for periodically performing statistics on the second performance parameters of each network address, and in an exemplary statistical manner, it is considered that a plurality of second performance parameters of the same network address all include index values corresponding to the same index, so that a mean value of all the index values can be obtained according to index classification to obtain corresponding average index values, and then the average index values are constructed as second quality index data.
It is understood that, in fact, the server may collect the second performance parameter and determine the second quality index data for all storage nodes of all target sites, so as to serve the needs of a plurality of clients of the present application, thereby providing a standardized service, and enabling different system auditing users distributed around the world to obtain the matched second quality index data by applying the technical scheme disclosed in the present application.
Step S1330, downloading the second quality index data from the server.
The client side of the application can actively inquire or passively receive the second quality index data downloaded from the server, and the second quality index data corresponds to each network address in the detection recommendation list and comprises corresponding data, and can be correspondingly provided by the server in advance for realizing the statistical update of the comprehensive score.
It can be known from the foregoing embodiments that, in the client of the present application, the second quality index data according to which the optimal network address is modified for the domain name in the detection recommendation list is determined by the server in combination with the second performance parameters corresponding to the massive network access requests, and since the network address preset for the domain name in the detection recommendation list may not be the end IP address in the distributed storage system, for example, the network address may be an IP address of a CDN node or an IP address of a relay room, the network quality in the first half of the network detection request can only be monitored by simply depending on the client to perform network detection, and the second quality index data determined by the second performance parameter of the network access request generated by the web page end is index data of a full link, which can effectively make up for the deficiency of the network quality detection request, and the second quality index data is generated according to a plurality of second performance parameters generated by massive terminal access, and has the capability of comprehensively measuring the overall network quality, and can guide the client to more accurately determine the optimal network address corresponding to each domain name.
On the basis of any embodiment of the present application, determining a composite score of each network address according to first quality index data and second quality index data of each network address, and determining an optimal network address of each domain name according to the composite score, includes:
step 1410, counting by taking the indexes as dimensions, and performing weighted fusion on each index value in the first quality index data and the second quality index data corresponding to each network address to obtain a comprehensive score corresponding to each network address;
when determining the comprehensive score of each network address in the detection recommendation list, the client respectively acquires first quality index data corresponding to the network address from a network detection pool and downloads corresponding second quality index data from the server. As described above, the first quality index data and the second quality index data each include index values corresponding to a plurality of indexes, specifically, average index values determined according to the first performance parameter and the second performance parameter, so that the indexes can be counted with the indexes as dimensions, and the index values in the first quality index data and the second quality index data are weighted and fused to obtain the comprehensive score of the network address.
In one embodiment, the composite score for each network address may be determined according to the following algorithm:
let the index value of each index be V i For which the predetermined weight constant is K i By the formula S i =V i ×K i Calculating the single score S of each index i Then, calculating the comprehensive scores corresponding to all the indexes:
Figure BDA0003852545400000181
it will be understood that, according to the above formula, a corresponding composite score can be determined for each network address in the probe recommendation list.
Step S1420, for each domain name, determining whether a difference between the highest composite score of each network address in the current statistics and the highest composite score of each network address obtained in the previous statistics exceeds a preset tolerance threshold, and when the difference exceeds the tolerance threshold, determining the network address corresponding to the highest composite score in the current statistics as the optimal network address of the domain name.
The timely change of the network sometimes does not reflect the overall stability of a certain data communication link, and therefore, in this embodiment, a preset tolerance threshold value may be compared with a difference value of composite scores determined at two times before and after each network address, so as to decide whether to change the optimal network address of a certain domain name.
In one embodiment, for all network addresses of each domain name in the probe recommendation list, the comprehensive score C of each network address is used s Sorting to select the network address with the highest comprehensive score
Figure BDA0003852545400000182
The value of the composite score is represented as C s(max) (ii) a In order to prevent the frequent switching of the preferred result by the network jitter, a tolerance threshold value M is preset, and the last determined optimal network address is used
Figure BDA0003852545400000183
The comprehensive score C obtained in the preferential calculation s(0) Comparing, determining the difference, if the difference is in the range of the tolerance threshold, keeping the last best network address unchanged, otherwise resetting the best network address of the corresponding domain name to be
Figure BDA0003852545400000184
An example of the formula is as follows:
if C s(max) -C s(0) M is less than or equal to, the optimal network address is set to
Figure BDA0003852545400000185
If C s(max) -C s(0) >M, then the best network address is set to
Figure BDA0003852545400000186
According to the embodiments, it can be understood that the comprehensive scores of the network addresses in the network detection list are obtained through weighting fusion, and then whether the optimal network address is changed for the domain name in the detection recommendation list under the condition of network jitter is determined by comparing the preset tolerance threshold with the comprehensive score difference value when the network addresses are selected twice, so that frequent switching of the data communication link is effectively avoided, and the data communication link for the client to obtain the network resources is more stable.
On the basis of any embodiment of the present application, mapping each domain name in the probe recommendation list with its optimal network address to write into a system host file, includes:
step S1510, constructing each domain name in the detection recommendation list and the optimal network address thereof as mapping relation data;
when each domain name in the detection recommendation list determines the corresponding optimal network address, the domain name and the optimal network address can be constructed into mapping relation data, and the mapping relation data can be obtained by each domain name without difficulty.
Step S1520, storing the mapping relationship data in the system host file, wherein the mapping relationship data includes replacing data records containing the same domain name in the system host file.
In order to enable the browser program to implement effective resolution through the system host file and obtain the optimal network address of the domain name in the detection recommendation list, the mapping relationship data needs to be written into the system host file.
When the mapping relationship data corresponding to the domain name in the detection recommendation list is written into the system host file, whether the mapping relationship data corresponding to the same domain name exists in the system host file or not can be determined, and if the mapping relationship data exists, the mapping relationship data corresponding to the same domain name is replaced and stored; if not, newly building storage. Therefore, the mapping relation data corresponding to each domain name is determined to be unique data in the system host file so as to avoid resolution errors.
As can be seen from the above embodiments, the system host file is used as a data transmission medium, which not only implements decoupling between the computer program product of the present application as a current program and a browser program, but also provides an agent parsing mechanism for a network access request of the browser program, and does not need to implement a self-parsing code in a web page of a target site, which is convenient for implementation and deployment, and is particularly suitable for client deployment of a system audit user in a content security audit system of a globally operated site, and can assist the system audit user in centralized and efficient management and control of global data of a corresponding site.
On the basis of any embodiment of the present application, please refer to fig. 6, after mapping each domain name in the probe recommendation list with its best network address into a system host file, the method includes:
step S1600, responding to a network access request triggered by a user by a browser program, and determining a target domain name carried by the network access request;
when a system audit user implements content management on a target site through a client of the application, a background page of the target site can be accessed by means of a browser program in the client, and a corresponding website is accessed in the browser program, so that a corresponding network access request is triggered.
And the browser program determines a target domain name to be accessed by the browser program according to the network access request, namely the domain name of the target site, so as to perform domain name resolution.
Step S1700, calling the system host file by the browser program to inquire out an optimal network address corresponding to the target domain name;
and calling the system host file by the browser program by utilizing a localized resolution mechanism, and inquiring the optimal network address mapped by the target domain name corresponding to the target site. Because the mapping relation between the domain name and the network address in the system host file is restricted by taking the domain name as a unique value, a plurality of optimal network addresses cannot be inquired.
Step S1800, the browser program sends the network access request to the optimal network address, so as to load a corresponding network resource from a storage node pointed by the optimal network address, where the network resource includes information to be audited.
After determining the optimal network address of the target domain name corresponding to the target site, the browser program sends the network access request to the optimal network address, that is, to a storage node in the distributed storage system to which the optimal network address points, the storage node pushes the corresponding network resource in response to the network access request, and the browser program loads the network resource into a page after obtaining the network resource.
For the system audit user, the network resource may be information to be audited uploaded to the platform by any user of the target site, the information to be audited may be any content such as text, picture, video, audio, and commodity configuration data, the system auditor completes the audit program for the information to be audited, and after sending an instruction that the audit is passed, the information to be audited is converted into audited information to be issued, thereby opening the access right of the audited information to at least part of users of the target site.
According to the embodiments, it can be known that after determining the optimal network address for each domain name and configuring the optimal network address to the system host file, a domain name proxy resolution mechanism can be implemented, so that a browser program in a client can perform domain name resolution accordingly, determine the optimal network address of a target domain name, and implement remote access with the highest efficiency. For a target domain name corresponding to a target site in global operation, a system audit user can realize centralized audit on information to be audited of a global source of the target site with the help of the client of the application and the assistance of high-efficiency and steady network quality, and audit efficiency can be improved.
Referring to fig. 7, in an embodiment, a local domain name resolution apparatus according to an aspect of the present application includes a list obtaining module 1100, a detection implementation module 1200, a monitoring implementation module 1300, a statistical scoring module 1400, and a configuration optimization module 1500, where: the list obtaining module 1100 is configured to obtain a detection recommendation list from a server, where the detection recommendation list includes a plurality of domain names and network addresses mapped to each domain name, and each network address mapped to each domain name points to different storage nodes in the same distributed storage system; the probe implementation module 1200 is configured to send a network probe request to each network address to obtain a corresponding first performance parameter, and determine first quality indicator data of each network address according to the first performance parameter; the monitoring implementation module 1300 is configured to obtain second quality indicator data from the server, where the second quality indicator data is determined according to a second performance parameter generated by a network access request sent to the network address; the statistical scoring module 1400 is configured to determine a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determine an optimal network address of each domain name according to the comprehensive score; the configuration optimization module 1500 is configured to map each domain name in the detection recommendation list with its optimal network address and write the mapping into a system host file.
On the basis of any embodiment of the present application, the list obtaining module 1100 includes: the area determining unit is used for sending a list obtaining request to the server so that the server can determine the geographical area to which the server belongs according to the source network address carried by the list obtaining request; the list determining unit is arranged for determining a detection recommendation list by the server according to the geographical area, wherein the geographical area to which the network address of the storage node contained in the detection recommendation list belongs is the same as the geographical area to which the source network address belongs; and the pushing storage unit is used for receiving the detection recommendation list pushed by the server and storing the detection recommendation list in a local storage space.
On the basis of any embodiment of the present application, the detection implementation module 1200 includes: the plan starting unit is set to respond to a regular detection instruction triggered by a plan task and traverse each network address in the detection recommendation list; the traversal detection unit is set to send network detection requests corresponding to at least one protocol one by one aiming at each network address in the traversal process to obtain corresponding first performance parameters, wherein the protocols comprise an HTTP protocol and/or an ICMP protocol, and the first performance parameters comprise a plurality of index values; and the first statistical unit is configured to perform statistics on the first performance parameters corresponding to each network address, determine an average index value corresponding to each index value, and form first quality index data.
On the basis of any embodiment of the present application, the monitoring implementation module 1300 includes: a monitoring receiving unit, configured to monitor a second performance parameter by the server, where the second performance parameter is generated by a browser program running on any terminal device triggering a network access request pointing to a network address mapped by the domain name, and the second performance parameter includes a plurality of index values; a second statistical unit configured to perform statistics on a plurality of second performance parameters corresponding to each network address by the server, and determine an average index value corresponding to each index value to form second quality index data; a data downloading unit configured to download the second quality indicator data from the server.
On the basis of any embodiment of the present application, the statistical scoring unit includes: the weighted fusion unit is used for carrying out statistics by taking the indexes as dimensions, carrying out weighted fusion on each index value in the first quality index data and the second quality index data corresponding to each network address, and obtaining a comprehensive score corresponding to each network address; and the switching decision unit is set to determine whether the difference between the highest comprehensive score of each network address in the current statistics and the highest comprehensive score of each network address obtained in the previous statistics exceeds a preset tolerance threshold or not for each domain name, and when the difference exceeds the tolerance threshold, the network address corresponding to the highest comprehensive score in the current statistics is determined as the optimal network address of the domain name.
On the basis of any embodiment of the present application, the configuration optimization module 1500 includes: the association mapping unit is used for constructing each domain name and the optimal network address in the detection recommendation list into mapping relation data; and the storage replacing unit is used for storing the mapping relation data in the system host file, wherein the data records containing the same domain name in the system host file are replaced.
On the basis of any embodiment of the present application, the local domain name resolution apparatus of the present application includes: the domain name extraction module is set to respond to a network access request triggered by a user by a browser program and determine a target domain name carried by the network access request; the address query module is used for calling the system host file by the browser program to query the optimal network address corresponding to the target domain name; and the resource loading module is configured to send the network access request to the optimal network address by the browser program so as to load a corresponding network resource from the storage node pointed by the optimal network address, wherein the network resource includes information to be audited.
Another embodiment of the present application also provides a domain name local resolution device. As shown in fig. 8, the internal structure of the domain name local resolution device is schematically illustrated. The domain name local resolution device includes a processor, a computer readable storage medium, a memory, and a network interface connected by a system bus. The computer-readable non-volatile readable storage medium of the domain name local resolution device stores an operating system, a database and computer-readable instructions, the database can store information sequences, and when the computer-readable instructions are executed by a processor, the processor can realize a domain name local resolution method.
The processor of the domain name local resolution device is used for providing calculation and control capability and supporting the operation of the whole domain name local resolution device. The memory of the domain name local resolution device may have stored therein computer readable instructions, which, when executed by the processor, may cause the processor to perform the domain name local resolution method of the present application. The network interface of the domain name local resolution equipment is used for connecting and communicating with the terminal.
Those skilled in the art will understand that the structure shown in fig. 8 is only a block diagram of a part of the structure related to the present application, and does not constitute a limitation on the domain name local resolution device to which the present application is applied, and a specific domain name local resolution device may include more or less components than those shown in the figure, or combine some components, or have a different arrangement of components.
In this embodiment, the processor is configured to execute specific functions of each module in fig. 7, and the memory stores program codes and various data required for executing the modules or sub-modules. The network interface is used for realizing data transmission between user terminals or servers. The nonvolatile readable storage medium in the present embodiment stores program codes and data necessary for executing all modules in the domain name local resolution device of the present application, and the server can call the program codes and data of the server to execute the functions of all modules.
The present application also provides a non-transitory readable storage medium storing computer readable instructions which, when executed by one or more processors, cause the one or more processors to perform the steps of the domain name local resolution method of any of the embodiments of the present application.
The present application also provides a computer program product comprising computer programs/instructions which, when executed by one or more processors, implement the steps of the method as described in any of the embodiments of the present application.
It will be understood by those skilled in the art that all or part of the processes of the methods of the embodiments of the present application may be implemented by hardware related to instructions of a computer program, which may be stored in a non-volatile readable storage medium, and when executed, may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), or other computer readable storage medium, or a Random Access Memory (RAM).
In summary, the present application may write, independent of a browser program, mapping relationship data between a domain name and an optimal network address corresponding to an optimal storage node in a distributed storage system in a system host file, so that the browser program may determine, through the system host file, the optimal network address corresponding to the domain name in a network access request, thereby ensuring that network resources are safely, efficiently, and stably obtained from the distributed storage system in which a site to which the domain name is directed is located.

Claims (11)

1. A domain name local resolution method is characterized by comprising the following steps:
acquiring a detection recommendation list from a server, wherein the detection recommendation list comprises a plurality of domain names and network addresses mapped with the domain names, and each network address mapped with each domain name points to different storage nodes in the same distributed storage system;
sending a network detection request to each network address to obtain a corresponding first performance parameter, and determining first quality index data of each network address according to the first performance parameter;
obtaining second quality index data from the server, the second quality index data being determined according to a second performance parameter generated by a network access request sent to the network address;
determining a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determining an optimal network address of each domain name according to the comprehensive score;
and mapping each domain name in the detection recommendation list with the optimal network address thereof and writing the domain name into a system host file.
2. The local domain name resolution method according to claim 1, wherein obtaining the probe recommendation list from the server comprises:
sending a list acquisition request to the server, so that the server determines the geographical area to which the server belongs according to the source network address carried by the list acquisition request;
determining a detection recommendation list by the server according to the geographical area, wherein the geographical area to which the network address of the storage node contained in the detection recommendation list belongs is the same as the geographical area to which the source network address belongs;
and receiving the probe recommendation list pushed by the server and storing the probe recommendation list in a local storage space.
3. The local domain name resolution method according to claim 1, wherein sending a network probe request to each network address to obtain a corresponding first performance parameter, and determining the first quality indicator data of each network address according to the first performance parameter comprises:
responding to a periodic detection instruction triggered by a scheduled task, and traversing each network address in the detection recommendation list;
in the traversal process, network detection requests corresponding to at least one protocol are sent one by one aiming at each network address to obtain corresponding first performance parameters, wherein the protocols comprise an HTTP protocol and/or an ICMP protocol, and the first performance parameters comprise a plurality of index values;
and counting the first performance parameters corresponding to each network address, and determining an average index value corresponding to each index value to form first quality index data.
4. The local domain name resolution method according to claim 1, wherein obtaining second quality index data from the server, the second quality index data being determined according to a second performance parameter generated by a network access request sent to the network address, comprises:
monitoring a second performance parameter by the server, wherein the second performance parameter is generated by triggering a network access request pointing to the network address mapped by the domain name by a browser program running on any terminal device, and the second performance parameter comprises a plurality of index values;
the server counts a plurality of second performance parameters corresponding to each network address, determines an average index value corresponding to each index value, and forms second quality index data;
downloading the second quality indicator data from the server.
5. The local resolution method for domain names according to claim 1, wherein determining a composite score for each network address according to the first quality index data and the second quality index data for each network address, and determining the best network address for each domain name according to the composite score comprises:
counting by taking indexes as dimensions, and performing weighted fusion on each index value in the first quality index data and the second quality index data corresponding to each network address to obtain a comprehensive score corresponding to each network address;
and determining whether the difference value between the highest comprehensive score of each network address in the current statistics and the highest comprehensive score of each network address obtained in the previous statistics exceeds a preset tolerance threshold or not for each domain name, and determining the network address corresponding to the highest comprehensive score in the current statistics as the optimal network address of the domain name when the difference value exceeds the tolerance threshold.
6. The local domain name resolution method according to claim 1, wherein mapping each domain name in the probe recommendation list with its best network address into a system host file comprises:
constructing each domain name and the optimal network address thereof in the detection recommendation list into mapping relation data;
and storing the mapping relation data in the system host file, wherein the mapping relation data comprises data records containing the same domain name in the system host file.
7. The local domain name resolution method according to any one of claims 1 to 6, wherein after writing each domain name in the probe recommendation list in a system host file with its best network address mapping, the method includes:
responding to a network access request triggered by a user by a browser program, and determining a target domain name carried by the network access request;
calling the system host file by the browser program to inquire out an optimal network address corresponding to the target domain name;
and sending the network access request to the optimal network address by the browser program so as to load a corresponding network resource from the storage node pointed by the optimal network address, wherein the network resource comprises information to be audited.
8. A local resolution apparatus for domain names, comprising:
the system comprises a list acquisition module, a detection recommendation module and a recommendation module, wherein the list acquisition module is used for acquiring a detection recommendation list from a server, the detection recommendation list comprises a plurality of domain names and network addresses mapped with each domain name, and each network address mapped with each domain name points to different storage nodes in the same distributed storage system;
the detection implementation module is configured to send a network detection request to each network address to obtain a corresponding first performance parameter, and determine first quality index data of each network address according to the first performance parameter;
a monitoring implementation module configured to obtain second quality indicator data from the server, the second quality indicator data being determined according to a second performance parameter generated by a network access request sent to the network address;
the statistical scoring module is configured to determine a comprehensive score of each network address according to the first quality index data and the second quality index data of each network address, and determine an optimal network address of each domain name according to the comprehensive score;
and the configuration optimization module is set to map each domain name in the detection recommendation list with the optimal network address of the domain name and write the domain name into a system host file.
9. A domain name local resolution device comprising a central processing unit and a memory, characterized in that the central processing unit is arranged to invoke execution of a computer program stored in the memory to perform the steps of the method according to any of claims 1 to 7.
10. A non-transitory readable storage medium storing a computer program implemented according to the method of any one of claims 1 to 7 in the form of computer readable instructions, the computer program, when invoked by a computer, performing the steps included in the corresponding method.
11. A computer program product comprising computer programs/instructions which, when executed by a processor, carry out the steps of the method of any one of claims 1 to 7.
CN202211138851.3A 2022-09-19 2022-09-19 Domain name local resolution method and device, equipment, medium and product thereof Active CN115473871B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211138851.3A CN115473871B (en) 2022-09-19 2022-09-19 Domain name local resolution method and device, equipment, medium and product thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211138851.3A CN115473871B (en) 2022-09-19 2022-09-19 Domain name local resolution method and device, equipment, medium and product thereof

Publications (2)

Publication Number Publication Date
CN115473871A true CN115473871A (en) 2022-12-13
CN115473871B CN115473871B (en) 2023-08-04

Family

ID=84371285

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211138851.3A Active CN115473871B (en) 2022-09-19 2022-09-19 Domain name local resolution method and device, equipment, medium and product thereof

Country Status (1)

Country Link
CN (1) CN115473871B (en)

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129134A1 (en) * 2000-05-26 2002-09-12 Leighton F. Thomson Global load balancing across mirrored data centers
US20060023638A1 (en) * 2004-07-29 2006-02-02 Solutions4Networks Proactive network analysis system
CN1905497A (en) * 2006-07-31 2007-01-31 西安西电捷通无线网络通信有限公司 Method and apparatus for estimating terminal to terminal service grade protocol
US20070165535A1 (en) * 2005-12-22 2007-07-19 Huawei Technologies Co., Ltd. Method, device and system for monitoring network performance
CN102347864A (en) * 2011-11-02 2012-02-08 网宿科技股份有限公司 System and method for monitoring service quality of content distribution networks
US20140245359A1 (en) * 2011-06-01 2014-08-28 Interdigital Patent Holdings, Inc. Content Delivery Network Interconnection (CDNI) Mechanism
CN104105121A (en) * 2013-04-11 2014-10-15 中国移动通信集团浙江有限公司 Network quality segmented quantification evaluation method and system
US20140334326A1 (en) * 2011-12-26 2014-11-13 Huawei Technologies Co., Ltd. Method, Device, and System for Monitoring Quality of Internet Access Service of Mobile Terminal
CN104202418A (en) * 2014-09-17 2014-12-10 北京瑞汛世纪科技有限公司 Method and system for recommending commercial content distribution network for content provider
US20150127721A1 (en) * 2013-11-06 2015-05-07 Fastly, Inc. Server network address selection based on network characteristics of service providers
CN104754640A (en) * 2013-12-26 2015-07-01 中国移动通信集团公司 Network resource scheduling method and network resource management server
CN108886479A (en) * 2018-02-12 2018-11-23 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and device, network detection equipment and readable storage medium
CN110768852A (en) * 2018-07-25 2020-02-07 贵州白山云科技股份有限公司 Method and device for testing cloud network nodes
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN111787129A (en) * 2019-04-03 2020-10-16 北京奇虎科技有限公司 Method and system for configuring local DNS server for client
WO2020228038A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Domain name processing method, apparatus, electronic device, and storage medium
CN112491719A (en) * 2020-10-26 2021-03-12 网宿科技股份有限公司 Network node selection method, equipment and storage medium
CN112787946A (en) * 2021-01-28 2021-05-11 哈尔滨工业大学(威海) Method for eliminating noise data caused by network blockage during network data acquisition

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020129134A1 (en) * 2000-05-26 2002-09-12 Leighton F. Thomson Global load balancing across mirrored data centers
US20060023638A1 (en) * 2004-07-29 2006-02-02 Solutions4Networks Proactive network analysis system
US20070165535A1 (en) * 2005-12-22 2007-07-19 Huawei Technologies Co., Ltd. Method, device and system for monitoring network performance
CN1905497A (en) * 2006-07-31 2007-01-31 西安西电捷通无线网络通信有限公司 Method and apparatus for estimating terminal to terminal service grade protocol
US20140245359A1 (en) * 2011-06-01 2014-08-28 Interdigital Patent Holdings, Inc. Content Delivery Network Interconnection (CDNI) Mechanism
CN102347864A (en) * 2011-11-02 2012-02-08 网宿科技股份有限公司 System and method for monitoring service quality of content distribution networks
US20140334326A1 (en) * 2011-12-26 2014-11-13 Huawei Technologies Co., Ltd. Method, Device, and System for Monitoring Quality of Internet Access Service of Mobile Terminal
CN104105121A (en) * 2013-04-11 2014-10-15 中国移动通信集团浙江有限公司 Network quality segmented quantification evaluation method and system
US20150127721A1 (en) * 2013-11-06 2015-05-07 Fastly, Inc. Server network address selection based on network characteristics of service providers
CN104754640A (en) * 2013-12-26 2015-07-01 中国移动通信集团公司 Network resource scheduling method and network resource management server
CN104202418A (en) * 2014-09-17 2014-12-10 北京瑞汛世纪科技有限公司 Method and system for recommending commercial content distribution network for content provider
CN108886479A (en) * 2018-02-12 2018-11-23 深圳前海达闼云端智能科技有限公司 Network quality evaluation method and device, network detection equipment and readable storage medium
CN110768852A (en) * 2018-07-25 2020-02-07 贵州白山云科技股份有限公司 Method and device for testing cloud network nodes
CN111787129A (en) * 2019-04-03 2020-10-16 北京奇虎科技有限公司 Method and system for configuring local DNS server for client
WO2020228038A1 (en) * 2019-05-16 2020-11-19 深圳市欢太科技有限公司 Domain name processing method, apparatus, electronic device, and storage medium
CN111212156A (en) * 2020-01-15 2020-05-29 中国银联股份有限公司 Network connection method and device
CN112491719A (en) * 2020-10-26 2021-03-12 网宿科技股份有限公司 Network node selection method, equipment and storage medium
CN112787946A (en) * 2021-01-28 2021-05-11 哈尔滨工业大学(威海) Method for eliminating noise data caused by network blockage during network data acquisition

Also Published As

Publication number Publication date
CN115473871B (en) 2023-08-04

Similar Documents

Publication Publication Date Title
CN106888270B (en) Method and system for back source routing scheduling
US8639748B2 (en) Optimized content distribution based on metrics derived from the end user
US20140280803A1 (en) Optimized Content Distribution Based on Metrics Derived from the End User
CN111459750A (en) Private cloud monitoring method and device based on non-flat network, computer equipment and storage medium
US20200327045A1 (en) Test System and Test Method
EP3873066A1 (en) Method for managing resource state information, and resource downloading system
CN105357584B (en) User behavior log classification uploading method and system based on smart television
CN112256495A (en) Data transmission method and device, computer equipment and storage medium
CN110166526B (en) Multi-CDN access management method and device, computer equipment and storage medium
US11102289B2 (en) Method for managing resource state information and system for downloading resource
US11032358B2 (en) Monitoring web applications including microservices
CN103166980A (en) Internet data pulling method and system
CN112733001B (en) Method and device for acquiring subscription information and electronic equipment
US11637914B2 (en) Multiple geography service routing
CN111431813A (en) Access current limiting method, device and storage medium
CN102938716A (en) Content distribution network acceleration test method and device
CN111327606A (en) Resource management method, system and storage medium
CN109818821B (en) Detection method and device for CDN (content delivery network) architecture of website
US11645186B2 (en) Remote deployment of monitoring agents on computing systems
EP4033719A1 (en) System for providing exact communication delay protection of request response for distributed service
US11206302B2 (en) Method and device for feeding back a resource file
US11606415B2 (en) Method, apparatus and system for processing an access request in a content delivery system
CN109788083B (en) Application downloading method and device, storage medium and electronic device
CN115473871A (en) Domain name local resolution method and device, equipment, medium and product thereof
IL268670A (en) Automatic server cluster discovery

Legal Events

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