A method, device, electronic device and storage medium for domain name resolution switching

By collecting and modeling the monitoring data of domain name resolution IP, noise reduction processing and feature bit modeling, the problem of poor adaptability of domain name resolution switching models in the existing technology is solved, and business stability and reliability are improved.

CN119966805BActive Publication Date: 2025-07-22PARK DO CREDIT CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202510429384.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-08
Publication Date
2025-07-22
Estimated Expiration
2045-04-08

AI Technical Summary

Technical Problem

The existing technology lacks a domain name resolution switching model with strong versatility, making it difficult to adapt to various business deployment architectures, resulting in high development costs and prone to switching errors or performance problems.

Method used

The monitoring probe collects monitoring data of the service domain name resolution IP, performs noise reduction processing, and performs modeling of the basic feature bits and monitoring indicator feature bits, calculates the score and weighted ratio of each feature bit. If the weighted ratio is less than the threshold, the domain name resolution IP switching is performed.

Benefits of technology

It has realized the adaptation to various business deployment architectures, improved business stability and reliability, and reduced development costs and switching errors.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966805B_ABST
    Figure CN119966805B_ABST
Patent Text Reader

Abstract

The present application provides a domain name resolution switching method, apparatus, electronic device and storage medium, which relate to the technical field of data processing. The noise reduction feature bits of the monitoring data are processed for noise reduction to obtain the monitoring data to be analyzed; the basic feature bits of the monitoring data to be analyzed are modeled, and the first actual score and the first ideal score of each basic feature bit are calculated; and the monitoring index feature bits of the monitoring data to be analyzed are modeled, and the weighted ratio is calculated according to the set weight of each monitoring index feature bit; if the weighted ratio is less than the set threshold, the business domain name resolution IP is switched according to the first actual score and the first ideal score of each basic feature bit calculated. Thus, by constructing a model including noise reduction feature bits, basic feature bits and monitoring index feature bits for domain name resolution switching, it can adapt to various business deployment architectures and ensure business stability and continuity.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the technical field of data processing, and more particularly, to a domain name resolution switching method, apparatus, electronic device, and storage medium. Background Art

[0002] In business operations, there are multiple entry IPs for business domain name resolution. When some IPs are abnormal, the domain name resolution needs to be automatically switched to the normal entry IP, and the operator DNS resolution needs to be refreshed to ensure the normal operation of the business external service. Currently, based on the business domain name status data reported by the monitoring probe, in case of an abnormality, the central control end makes an automated decision and executes the switching plan.

[0003] However, the existing automatic switching technology lacks a switching model with strong generality and is difficult to adapt to various business deployment architectures. Different businesses have different deployment architectures, including differences in computer room distribution, operator selection, server configuration, etc. Due to the lack of a general model, in the face of these diverse business scenarios, a large amount of customized development and debugging often needs to be carried out for each specific business, which not only increases the development cost and time, but also easily leads to switching errors or performance problems due to improper adaptation. Summary of the Invention

[0004] In view of this, the purpose of this application is to provide a domain name resolution switching method, apparatus, electronic device, and storage medium, which can adapt to various business deployment architectures by creating a general domain name switching model, and improve the stability and reliability of the business.

[0005] In a first aspect, an embodiment of this application provides a domain name resolution switching method, which includes the following steps:

[0006] Collect monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs;

[0007] Perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probing, ping latency, and interface status codes;

[0008] If the weighted ratio is less than the set threshold, switch the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated.

[0009] In some embodiments, the noise reduction process for the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed includes the following steps:

[0010] Detect whether all the data reported by the cloud service provider or the proxy IP is abnormal;

[0011] If all the data reported by the cloud service provider or the proxy IP is abnormal, filter out the data reported by the cloud service provider or the proxy IP from the monitoring data to obtain the monitoring data to be analyzed.

[0012] In some embodiments, the basic feature bit modeling of the monitoring data to be analyzed and the calculation of the first actual score and the first ideal score for each basic feature bit include the following steps:

[0013] Perform binary modeling based on the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix;

[0014] Calculate the first ideal score and the first actual score for each basic feature bit according to the feature matrix; the first ideal score and the first actual score are used to respectively represent the total number of occurrences of each basic feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state.

[0015] In some embodiments, the monitoring index feature bit modeling of the monitoring data to be analyzed and the calculation of the weighted ratio according to the set weight of each monitoring index feature bit include the following steps:

[0016] Convert the Ping probe liveness, ping latency, and interface status code in the monitoring data to be analyzed into 0 / 1 states respectively through a standardized evaluation strategy;

[0017] Perform monitoring index feature bit modeling according to the 0 / 1 states of the Ping probe liveness, the ping latency, and the interface status code and the set 0 / 1 state values, and obtain the second ideal score and the second actual score for each monitoring index feature bit; the second ideal score and the second actual score are used to respectively represent the total state value of each monitoring index feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state;

[0018] Calculate the ideal weighted total score and the actual weighted total score for all monitoring index feature bits according to the corresponding weights set for each monitoring index feature bit, and calculate the weighted ratio according to the ideal weighted total score and the actual weighted total score.

[0019] In some embodiments, corresponding weights are set according to the influence degree of each monitoring index feature bit on the domain name resolution service quality.

[0020] In some embodiments, converting the Ping probe, ping latency, and interface status code in the monitoring data to be analyzed into 0 / 1 status through a standardized evaluation strategy includes the following steps:

[0021] Convert them to the corresponding 0 / 1 status according to whether the Ping probe, the ping latency, and the interface status code are qualified; among them, within a set time, if it is detected that the Ping probe is in a non-connective state, the ping latency is greater than the set latency threshold, and the interface status code is in an abnormal state, it is determined as unqualified and converted to the 0 state; otherwise, it is determined as qualified and converted to the 1 state.

[0022] In some embodiments, switching the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated includes the following steps:

[0023] Determine the abnormal business domain name resolution IP according to the data reported by the monitoring index feature bits;

[0024] Change the data corresponding to the abnormal business domain name resolution IP in the basic feature bits to 0, recalculate the first actual score and the first ideal score, and obtain the ratio of the two;

[0025] Determine the basic feature bits with abnormalities according to the ratio, and perform switching of the business domain name resolution IP.

[0026] In a second aspect, an embodiment of the present application provides a domain name resolution switching device, and the device includes:

[0027] An acquisition module, configured to collect monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs;

[0028] A modeling module, configured to perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probe, ping latency, and interface status code;

[0029] A switching module, configured to, if the weighted ratio is less than the set threshold, switch the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated.

[0030] In a third aspect, an electronic device provided by an embodiment of the present application includes: a processor, a memory, and a bus. The memory stores machine-readable instructions executable by the processor. When the electronic device runs, the processor communicates with the memory through the bus. When the machine-readable instructions are executed by the processor, the steps of the domain name resolution switching method according to any one of the first aspects are executed.

[0031] In a fourth aspect, a computer-readable storage medium provided by an embodiment of the present application stores a computer program thereon. When the computer program is run by a processor, the steps of the domain name resolution switching method according to any one of the above first aspects are executed.

[0032] For a domain name resolution switching method, device, electronic device, and storage medium provided by the present application, monitoring data of the business domain name resolution IP is collected through a monitoring probe, and noise reduction processing is performed on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; basic feature bit modeling is performed on the monitoring data to be analyzed, and the first actual score and the first ideal score of each basic feature bit are calculated; and monitoring index feature bit modeling is performed on the monitoring data to be analyzed, and a weighted ratio is calculated according to the set weight of each monitoring index feature bit; if the weighted ratio is less than the set threshold, the business domain name resolution IP is switched according to the first actual score and the first ideal score of each basic feature bit calculated. Therefore, by constructing a model including noise reduction feature bits, basic feature bits, and monitoring index feature bits to perform domain name resolution switching, it can adapt to various business deployment architectures and ensure business stability and continuity. Description of the Drawings

[0033] To more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required to be used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present application, and therefore should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can be obtained based on these drawings without creative efforts.

[0034] Figure 1 Shows a flowchart of the domain name resolution switching method described in the embodiments of the present application;

[0035] Figure 2 Shows a flowchart of performing basic feature bit modeling on the monitoring data to be analyzed and calculating the first actual score and the first ideal score of each basic feature bit in the embodiments of the present application;

[0036] Figure 3 Shows a flowchart of performing monitoring index feature bit modeling on the monitoring data to be analyzed and calculating a weighted ratio according to the set weight of each monitoring index feature bit in the embodiments of the present application;

[0037] Figure 4 Shows a schematic structural diagram of the domain name resolution switching device described in the embodiments of the present application;

[0038] Figure 5 Shows a block diagram of the structure of the electronic device described in the embodiments of the present application. Detailed implementation manners

[0039] To make the objectives, technical solutions, and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. It should be understood that the accompanying drawings in the present application are only for the purposes of illustration and description, and are not used to limit the protection scope of the present application. In addition, it should be understood that the schematic drawings are not drawn in actual proportions. The flowcharts used in the present application show operations implemented according to some embodiments of the present application. It should be understood that the operations in the flowcharts may not be implemented in sequence, and steps without logical context relationships may be reversed or implemented simultaneously. In addition, those skilled in the art may add one or more other operations to the flowchart or remove one or more operations from the flowchart under the guidance of the content of the present application.

[0040] In addition, the described embodiments are only some embodiments of the present application, rather than all embodiments. The components of the embodiments of the present application usually described and illustrated in the accompanying drawings here may be arranged and designed in various different configurations. Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the present application claimed, but merely represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative efforts fall within the protection scope of the present application.

[0041] It should be noted that the term "including" will be used in the embodiments of the present application to indicate the existence of the subsequently stated features, but does not exclude adding other features.

[0042] In view of the technical problems proposed in the background art, the present application provides a domain name resolution switching method, device, electronic device, and storage medium, which can create a general domain name switching model, adapt to various service deployment architectures, and improve service stability and reliability.

[0043] See the attached Figure 1 In the embodiments of the present application, a domain name resolution switching method includes the following steps:

[0044] S1. Collect monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs;

[0045] S2. Perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score for each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probing, ping latency, and interface status codes;

[0046] S3. If the weighted ratio is less than the set threshold, switch the business domain name resolution IP according to the first actual score and the first ideal score calculated for each basic feature bit.

[0047] Specifically, in step S1, the noise reduction feature bits are a set of features used to screen and process abnormal data that may interfere with the decision-making process during the domain name resolution switching decision. These features mainly come from the monitoring data, and their purpose is to reduce the noise caused by external factor anomalies and make the decision-making basis more accurate and reliable.

[0048] In this application, the noise reduction feature bits include cloud providers and proxy IPs. If all the data reported by a certain cloud provider are abnormal (for example, all the monitored resolution IPs show as unavailable under the monitoring of this cloud provider), this may be due to network, configuration, or other problems of the cloud provider itself, rather than a real problem with the monitored resolution IP. At this time, all the data reported by this cloud provider need to be screened out from the original monitoring data. Similarly, for a specific proxy IP, if all the data it reports are abnormal, it is very likely that the corresponding monitoring probe itself has a fault. All the data reported involving this proxy IP need to be screened out from the original monitoring data.

[0049] Obtaining the monitoring data to be analyzed by performing noise reduction on the monitoring data helps improve the quality of the domain name resolution switching decision. If data noise reduction is not performed, unnecessary domain name resolution switching may be frequently triggered due to these abnormal factors, or the switching that should be performed may not be executed in a timely manner, thus affecting the normal operation of the business.

[0050] See the attached instructions Figure 2 In step S2, the performing basic feature bit modeling on the monitoring data to be analyzed and calculating the first actual score and the first ideal score for each basic feature bit include the following steps:

[0051] S201. Perform binary modeling based on the computer room and the operator as the basic feature bits to obtain a two-dimensional feature matrix;

[0052] S202. Calculate the first ideal score and the first actual score of each basic feature bit according to the feature matrix; the first ideal score and the first actual score are used to respectively represent the total number of times each basic feature bit appears in all service domain name resolution IPs under the ideal operating state and the actual operating state.

[0053] Specifically, in step S201, by performing binary modeling on the computer room and the operator of the service domain name resolution IP, the attribution of each IP in terms of different key attributes can be presented in a clear and structured manner. Each 1 or 0 represents whether the resolved IP has the corresponding basic feature bit, which facilitates subsequent data statistics, comparison, and the formulation of relevant decision-making strategies based on these basic feature bits. For example, the obtained two-dimensional feature matrix is shown in Table 1. For IP1, its computer room attribution is A (the value in the corresponding computer room A column is 1), and the operator attribution is X (the value in the corresponding operator X column is 1), and it does not belong to computer room B and operator Y (the values in the corresponding columns are 0).

[0054]

[0055] Table 1

[0056] In step S202, under the ideal operating state, assuming that all resolved IPs are evenly distributed among each computer room and operator, calculate the first ideal total score of each basic feature bit (computer room A, computer room B, operator X, operator Y). The calculation method is to count the total number of times each basic feature bit appears in all resolved IPs. For example, if there are a total of 4 resolved IPs and computer room A appears in 2 of them, then the first ideal score of computer room A is 2. Similarly, calculate the first actual score of each basic feature bit under the actual operating state.

[0057] By performing such binary modeling and analysis on the basic feature bits, a reference framework from the dimensions of computer room and operator is provided for the domain name resolution switching decision, which helps to formulate corresponding strategies more scientifically and reasonably. For example, if there are signs of a failure in the computer room where the currently used resolved IP is located and domain name resolution switching is required, the resolved IP in the same operator but different computer room can be given priority for switching.

[0058] In addition, referring to the attached Figure 3 description, the modeling of the monitoring index feature bits for the to-be-analyzed monitoring data and the calculation of the weighted ratio according to the set weights of each monitoring index feature bit include the following steps:

[0059] P301. Convert the Ping probe, ping latency, and interface status code in the monitoring data to be analyzed into 0 / 1 status respectively through a standardized evaluation strategy;

[0060] P302. Based on the 0 / 1 status of the Ping probe, the ping latency, and the interface status code, and the set 0 / 1 status values, perform modeling on the monitoring index feature bits, and obtain the second ideal score and the second actual score for each monitoring index feature bit; the second ideal score and the second actual score are used to represent the total status value of each monitoring index feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state respectively;

[0061] P303. Calculate the ideal weighted total score and the actual weighted total score of all monitoring index feature bits according to the corresponding weights set for each monitoring index feature bit, and calculate the weighted ratio based on the ideal weighted total score and the actual weighted total score.

[0062] Specifically, in step P301, since the properties of different monitoring index feature bits are different, through the standardized evaluation of converting them into 0 / 1 status, it is possible to measure whether each index meets the standard with the same logic and standard, providing a unified basis for subsequent comprehensive evaluation. The Ping probe is mainly used to detect whether the resolved IP is reachable. If the ping command can be successfully sent from the monitoring probe to the target resolved IP and a response is received, it is determined as "reachable", and the corresponding status is converted to 1; if no response is received within the specified time, it is determined as "unreachable", and the status is converted to 0. The ping latency measures the time it takes for a data packet to be sent from the monitoring probe to the target resolved IP and return. It is set that the ping latency < 10ms is qualified, and at this time the corresponding status is converted to 1; if the ping latency is greater than or equal to 10ms, it is determined as unqualified, and the status is converted to 0. The interface status code is the response status identifier of the server to the request. Taking the HTTP protocol as an example, the status code 200 indicates that the request is successful, and at this time the corresponding status of the interface status code is converted to 1; while other non-200 status codes are determined as unqualified, and the corresponding status is converted to 0.

[0063] Further, to avoid misjudgment caused by short-term network fluctuations or instantaneous anomalies, an abnormal data duration determination mechanism is introduced. For the ping liveness probe, the ping latency, and the interface status code, an abnormal data duration threshold is set respectively. For example, if the ping liveness probe is in the "unreachable" state for 3 consecutive times (with a certain time interval between each detection, such as 5 seconds), that is, the duration reaches 15 seconds, the status is converted to 0; for the ping latency, if it is greater than or equal to 10 ms for 5 consecutive times (with a detection interval of 5 seconds each time) and the duration reaches 25 seconds, the status is converted to 0; the same applies to the interface status code. If it is in a non-200 status code for several consecutive times (set according to business requirements) and the duration exceeds the set threshold, the status is converted to 0.

[0064] In step P302, a monitoring metric feature bit model is built as shown in Table 2 according to the 0 / 1 status of the ping liveness probe, the ping latency, and the interface status code and the set 0 / 1 status values.

[0065]

[0066] Table 2

[0067] Among them, when calculating the second ideal score and the second actual score of each monitoring metric feature bit, the score for the status of 0 is 0, and the score for the status of 1 is 1.

[0068] In step P303, corresponding weights are set according to the influence degree of each monitoring metric feature bit on the quality of the domain name resolution service. In an embodiment, the ping liveness probe, as a basic connectivity metric, is directly related to whether users can access the service, and the weight is set to 1; the ping latency affects the user experience, especially for services with high real-time requirements, and the weight is set to 0.6; the interface status code is related to the execution of business logic, and the weight is set to 0.8. Referring to Table 3, through weighted calculation, the ideal weighted total score and the actual weighted total score of all monitoring metric feature bits are calculated, and the weighted ratio is calculated according to the ideal weighted total score and the actual weighted total score.

[0069]

[0070] Table 3

[0071] In step S3, by comparing the calculated weighted ratio (the ratio of the weighted total score to the ideal total score) with the set threshold, a weighted ratio less than the set threshold means that there may be a problem with the current resolved IP and a switch is needed. For example, if the weighted ratio is 0.69, which is less than the set threshold (assuming the threshold is 0.8), it indicates that the overall service quality has declined, and the corresponding resolved IP switching scheme is automatically triggered to switch the domain name resolution to the backup IP or other healthier resolution paths to ensure the normal operation of the service.

[0072] Among them, when performing the IP switching of the business domain name resolution, first determine the abnormal business domain name resolution IP according to the data reported by the monitoring index feature bits; then change the data corresponding to the abnormal business domain name resolution IP in the basic feature bits to 0, recalculate the first actual score and the first ideal score, and obtain the ratio between the two; finally, determine the basic feature bits with abnormalities according to the ratio, and perform the IP switching of the business domain name resolution.

[0073] In an embodiment, when the actual data reported by the monitoring index feature bits shows that IP3 is abnormal, change the data corresponding to it in the basic feature bits to 0. After the data of IP3 becomes 0, the first actual score of each basic feature bit (computer room A, computer room B, operator X, operator Y) will be recalculated. After the count values of IP3 in computer room B and operator X, which were originally 1, become 0, the actual total score of computer room B changes from a possible higher value to 2, and the actual total score of operator X also changes accordingly. By recalculating the ratio of the first actual score to the first ideal score of each basic feature bit, the deviation degree of each basic feature bit from the ideal state can be intuitively seen. For example, the ratio of computer room B is 0.5, which is less than 1, indicating that there may be more problems with the resolved IP in computer room B, affecting its overall performance; the ratio of operator X is also 0.5, which also indicates that the resolved IP related to this operator may be unstable. Execute the switching plan to A and Y.

[0074] It should be noted that before performing the IP switching of the business domain name resolution, check the current domain name resolution status to ensure the feasibility and effectiveness of the switching. If the status is not checked and the switching is directly executed, conflicts may be triggered, resulting in parsing chaos or service interruption. For example, if the DNS cache update is currently in progress, executing the switching at this time may make the cache data inconsistent with the new parsing configuration, affecting the normal access of users.

[0075] It can be seen that a domain name resolution switching method provided by the present application can adapt to various business deployment architectures and ensure business stability and continuity by constructing a model including a noise reduction feature bit, a basic feature bit, and a monitoring index feature bit for domain name resolution switching.

[0076] Based on the same inventive concept, an embodiment of the present application also provides a domain name resolution switching device. Since the principle of solving problems by the device in the embodiment of the present application is similar to that of the above-mentioned domain name resolution switching method, device, electronic device, and storage medium in the embodiment of the present application, the implementation of the device can refer to the implementation of the method, and the repeated parts will not be elaborated.

[0077] As shown in the attached Figure 4 description of the specification, the present application also provides a domain name resolution switching device, and the device includes:

[0078] The acquisition module 401 is configured to acquire monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs;

[0079] The modeling module 402 is configured to perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate a weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probing, ping latency, and interface status codes;

[0080] The switching module 403 is configured to, if the weighted ratio is less than a set threshold, switch the business domain name resolution IP according to the calculated first actual score and the first ideal score of each basic feature bit.

[0081] In some embodiments, the acquisition module 401 performs noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed, including: detecting whether all the data reported by the cloud provider or the proxy IP is abnormal; if all the data reported by the cloud provider or the proxy IP is abnormal, filtering out the data reported by the cloud provider or the proxy IP from the monitoring data to obtain the monitoring data to be analyzed.

[0082] In some embodiments, the modeling module 402 performs basic feature bit modeling on the monitoring data to be analyzed, and calculates the first actual score and the first ideal score of each basic feature bit, including: performing binary modeling with the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; calculating the first ideal score and the first actual score of each basic feature bit according to the feature matrix; the first ideal score and the first actual score are used to respectively represent the total number of occurrences of each basic feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state.

[0083] In some embodiments, the modeling module 402 performs modeling on the monitoring index feature bits of the monitoring data to be analyzed, and calculates a weighted ratio according to the set weights of each monitoring index feature bit, including: converting the Ping probe activity, ping latency, and interface status code in the monitoring data to be analyzed into 0 / 1 states respectively through a standardized evaluation strategy; performing modeling on the monitoring index feature bits according to the 0 / 1 states of the Ping probe activity, the ping latency, and the interface status code and the set 0 / 1 state values, and obtaining the second ideal score and the second actual score of each monitoring index feature bit; the second ideal score and the second actual score are used to represent the total status value of each monitoring index feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state respectively; calculating the ideal weighted total score and the actual weighted total score of all monitoring index feature bits according to the corresponding weights set for each monitoring index feature bit, and calculating the weighted ratio according to the ideal weighted total score and the actual weighted total score. Among them, the corresponding weights are set according to the influence degree of each monitoring index feature bit on the quality of domain name resolution service. Among them, the Ping probe activity, the ping latency, and the interface status code are correspondingly converted into 0 / 1 states according to whether they are qualified; among them, within a set time, if it is detected that the Ping probe activity is in a non-connective state, the ping latency is greater than the set latency threshold, and the interface status code is in an abnormal state, it is determined to be unqualified and converted to the 0 state; otherwise, it is determined to be qualified and converted to the 1 state.

[0084] In some embodiments, the switching module 403 switches the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated, including: determining the abnormal business domain name resolution IP according to the data reported by the monitoring index feature bit; changing the data corresponding to the abnormal business domain name resolution IP in the basic feature bit to 0, and recalculating the first actual score and the first ideal score, and obtaining the ratio between the two; determining the basic feature bit with an abnormality according to the ratio, and performing switching of the business domain name resolution IP.

[0085] A domain name resolution switching device provided by the present application collects monitoring data of the IP address of a service domain name resolution through a monitoring probe by a collection module, and performs noise reduction processing on the noise reduction feature bits of the monitoring data to obtain monitoring data to be analyzed; a modeling module performs basic feature bit modeling on the monitoring data to be analyzed, and calculates a first actual score and a first ideal score for each basic feature bit; and performs monitoring index feature bit modeling on the monitoring data to be analyzed, and calculates a weighted ratio according to the set weight of each monitoring index feature bit; if the weighted ratio is less than a set threshold, a switching module switches the IP address of the service domain name resolution according to the calculated first actual score and first ideal score of each basic feature bit. Therefore, by constructing a model including noise reduction feature bits, basic feature bits, and monitoring index feature bits for domain name resolution switching, it can adapt to various service deployment architectures and ensure service stability and continuity.

[0086] Based on the same inventive concept of the present invention, the attached Figure 5 As shown in the figure, the structure of an electronic device 500 provided by an embodiment of the present application, the electronic device 500 includes: at least one processor 501, at least one network interface 504 or other user interfaces 503, a memory 505, and at least one communication bus 502. The communication bus 502 is used to realize the connection and communication between these components. The electronic device 500 optionally includes a user interface 503, including a display (for example, a touch screen, LCD, CRT, holographic imaging, or projector, etc.), a keyboard, or a pointing device (for example, a mouse, trackball, touchpad, or touch screen, etc.).

[0087] The memory 505 may include a read-only memory and a random access memory, and provide instructions and data to the processor 501. A part of the memory 505 may also include a non-volatile random access memory (NVRAM).

[0088] In some embodiments, the memory 505 stores the following elements, protection modules, or data structures, or subsets thereof, or extended sets thereof:

[0089] An operating system 5051, including various system programs, used to implement various basic services and process hardware-based tasks;

[0090] An application program module 5052, including various application programs, such as a launcher, a media player, a browser, etc., used to implement various application services.

[0091] In the embodiments of the present application, by invoking the programs or instructions stored in the memory 505, the processor 501 is configured to execute the steps in a domain name resolution switching method, apparatus, electronic device, and storage medium, and can adapt to various service deployment architectures by creating a general domain name switching model, improving service stability and reliability.

[0092] The present application also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is run by a processor, it executes the steps in the domain name resolution switching method.

[0093] Specifically, the storage medium can be a general storage medium, such as a removable disk, a hard disk, etc. When the computer program on the storage medium is run, it can execute the above domain name resolution switching method.

[0094] In the embodiments provided by the present application, it should be understood that the disclosed apparatus and method can be implemented in other ways. The apparatus embodiments described above are merely illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For another example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection between each other can be through some communication interfaces. The indirect coupling or communication connection of the apparatus or unit can be in an electrical, mechanical or other form.

[0095] The units described as separate components may or may not be physically separated. The components displayed as units may or may not be physical units, that is, they can be located in one place, or they can be distributed to multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0096] In addition, the functional units in the embodiments provided by the present application can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit.

[0097] If a function is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art or a part of this technical solution can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods of various embodiments of this application. The aforementioned storage medium includes: various media such as USB flash drives, mobile hard disks, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), magnetic disks, or optical discs that can store program codes.

[0098] Finally, it should be noted that the above embodiments are only specific implementation manners of this application, used to illustrate the technical solutions of this application, rather than limiting it. The protection scope of this application is not limited thereto. Although this application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: any person skilled in the art within the technical scope disclosed by this application can still modify the technical solutions recorded in the foregoing embodiments or can easily think of changes, or perform equivalent replacements on some of the technical features; and these modifications, changes, or replacements do not make the essence of the corresponding technical solutions deviate from the spirit and scope of the technical solutions of the embodiments of this application. All should be covered within the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

Claims

1. A domain name resolution switching method, characterized in that, The method includes the following steps: Collect monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs; Perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probing, ping latency, and interface status codes; wherein, performing basic feature bit modeling on the monitoring data to be analyzed and calculating the first actual score and the first ideal score of each basic feature bit includes the following steps: performing binary modeling with the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; calculating the first ideal score and the first actual score of each basic feature bit according to the feature matrix; the first ideal score and the first actual score are used to respectively represent the total number of occurrences of each basic feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state; If the weighted ratio is less than the set threshold, switch the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated.

2. The domain name resolution switching method according to claim 1, wherein The step of performing noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed includes the following steps: Detect whether all the data reported by the cloud provider or the proxy IP is abnormal; If all the data reported by the cloud provider or the proxy IP is abnormal, filter out the data reported by the cloud provider or the proxy IP from the monitoring data to obtain the monitoring data to be analyzed.

3. The method for switching domain name resolution according to claim 2, wherein The step of performing monitoring index feature bit modeling on the monitoring data to be analyzed and calculating the weighted ratio according to the set weight of each monitoring index feature bit includes the following steps: Convert the Ping probing, ping latency, and interface status codes in the monitoring data to be analyzed into 0 / 1 states respectively through a standardized evaluation strategy; Perform monitoring index feature bit modeling according to the 0 / 1 states of the Ping probing, the ping latency, and the interface status code and the set 0 / 1 state values, and obtain the second ideal score and the second actual score of each monitoring index feature bit; the second ideal score and the second actual score are used to respectively represent the total state values of each monitoring index feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state; Calculate the ideal weighted total score and the actual weighted total score of all monitoring index feature bits according to the corresponding weights set for each monitoring index feature bit, and calculate the weighted ratio according to the ideal weighted total score and the actual weighted total score.

4. The domain name resolution switching method according to claim 3, characterized in that Wherein, Set the corresponding weights according to the influence degree of each monitoring index feature bit on the domain name resolution service quality.

5. A domain name resolution switching method according to claim 4, characterized in that, The conversion of the Ping probing, ping latency, and interface status code in the monitoring data to be analyzed into 0 / 1 status through the standardized evaluation strategy includes the following steps: Convert them to 0 / 1 status according to whether the Ping probing, the ping latency, and the interface status code are qualified; among them, within a set time, if it is detected that all the Ping probing are in the unreachable state, all the ping latencies are greater than the set latency threshold, and all the interface status codes are in the abnormal state, it is determined as unqualified and converted to the 0 state; otherwise, it is determined as qualified and converted to the 1 state.

6. A domain name resolution switching method according to claim 5, characterized in that, The switching of the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated includes the following steps: Determine the abnormal business domain name resolution IP according to the data reported by the monitoring index feature bits; Change the data corresponding to the abnormal business domain name resolution IP in the basic feature bits to 0, recalculate the first actual score and the first ideal score, and obtain the ratio between the two; Determine the basic feature bits with abnormalities according to the ratio and perform switching of the business domain name resolution IP.

7. A domain name resolution switching device, characterized in that, The device includes: An acquisition module, configured to acquire the monitoring data of the business domain name resolution IP through a monitoring probe, and perform noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the noise reduction feature bits include cloud providers and proxy IPs; A modeling module, configured to perform basic feature bit modeling on the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic feature bit; and perform monitoring index feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring index feature bit; the basic feature bits include computer rooms and operators; the monitoring index feature bits include Ping probing, ping latency, and interface status code; among them, the performing basic feature bit modeling on the monitoring data to be analyzed and calculating the first actual score and the first ideal score of each basic feature bit includes: performing binary modeling with the computer room and the operator as the basic feature bits to obtain a two-dimensional feature matrix; calculating the first ideal score and the first actual score of each basic feature bit according to the feature matrix; the first ideal score and the first actual score are used to respectively represent the total number of occurrences of each basic feature bit among all business domain name resolution IPs in the ideal operating state and the actual operating state; A switching module, configured to, if the weighted ratio is less than the set threshold, switch the business domain name resolution IP according to the first actual score and the first ideal score of each basic feature bit calculated.

8. An electronic device, characterized in that, It includes: A processor, a memory, and a bus, the memory stores machine-readable instructions executable by the processor, when the electronic device runs, the processor communicates with the memory through the bus, and when the machine-readable instructions are executed by the processor, the steps of the domain name resolution switching method according to any one of claims 1 to 6 are executed.

9. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium. When the computer program is run by a processor, it executes the steps of the domain name resolution switching method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Intelligent service fault processing method based on DNS

    CN112583648A

  • Adaptive switching method and system for connectivity diagnosis of DNS (Domain Name Server)

    CN119254665A