Domain name resolution switching method and device, electronic equipment and storage medium

By creating a common domain name switching model, the problem of lack of a universal switching model in the existing technology is solved, and domain name resolution and switching that adapts to various business deployment architectures is realized, improving business stability and reliability.

CN119966805AActive Publication Date: 2025-05-09PARK DO CREDIT CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

The existing automatic switching technology lacks a highly versatile switching model and is difficult to adapt to various business deployment architectures, resulting in the need of a large number of customized development and debugging, which increases development costs and time, and may cause switching errors or performance problems.

Method used

By creating a common domain name switching model, including the model of noise reduction feature bits, basic feature bits and monitoring indicator feature bits, collecting monitoring data, performing noise reduction processing and feature modeling, calculating weighted ratios, and if it is less than the set threshold, switch the business domain name resolution IP.

Benefits of technology

It realizes domain name resolution and switching that adapts to various business deployment architectures, improves business stability and reliability, and reduces customized development needs and development costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119966805A_ABST
    Figure CN119966805A_ABST
Patent Text Reader

Abstract

The invention provides a domain name resolution switching method and device, electronic equipment and a storage medium, and relates to the technical field of data processing, noise reduction processing is performed on a noise reduction feature bit of monitoring data to obtain to-be-analyzed monitoring data; performing basic feature bit modeling on the to-be-analyzed monitoring data, and calculating a first actual score and a first ideal score of each basic feature bit; carrying out monitoring index feature bit modeling on the to-be-analyzed monitoring data, and calculating a weighted ratio according to the set weight of each monitoring index feature bit; and if the weighted ratio is smaller than a set threshold value, switching the service domain name resolution IP according to the calculated first actual score and the first ideal score of each basic feature bit. Therefore, domain name resolution switching is carried out by constructing the model comprising the noise reduction feature bit, the basic feature bit and the monitoring index feature bit, various service deployment architectures can be adapted, and service stability and continuity are guaranteed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of data processing technology, and in particular to a domain name resolution switching method, device, 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's DNS resolution needs to be refreshed to ensure the normal operation of the business external services. Currently, the central control end needs to automatically make decisions and execute the switching plan based on the business domain name status data reported by the monitoring probe in abnormal situations.

[0003] However, the existing automatic switching technology lacks a universal switching model and is difficult to adapt to various business deployment architectures. Different businesses have different deployment architectures, including differences in data center distribution, operator selection, server configuration, etc. Due to the lack of a universal model, when facing these diverse business scenarios, a lot of customized development and debugging is often required for each specific business, which not only increases development costs and time, but also easily leads to switching errors or performance problems caused by 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, device, electronic device and storage medium, which can adapt to various business deployment architectures and improve business stability and reliability by creating a universal domain name switching model.

[0005] In a first aspect, an embodiment of the present application provides a domain name resolution switching method, the method comprising the following steps: The monitoring data of the service domain name resolution IP is collected through the monitoring probe, and the noise reduction feature bits of the monitoring data are subjected to noise reduction processing to obtain the monitoring data to be analyzed; the noise reduction feature bits include the cloud vendor and the proxy IP; Modeling the basic characteristic bits of the monitoring data to be analyzed, and calculating the first actual score and the first ideal score of each basic characteristic bit; and modeling the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring indicator characteristic bits include Ping detection, ping delay and interface status code; If the weighted ratio is less than a set threshold, the service domain name resolution IP is switched according to the calculated first actual score and first ideal score of each basic feature bit.

[0006] In some embodiments, 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: Check whether all the data reported by the cloud vendor or the proxy IP is abnormal; If all the data reported by the cloud vendor or the proxy IP are abnormal, the data reported by the cloud vendor or the proxy IP are filtered out from the monitoring data to obtain the monitoring data to be analyzed.

[0007] In some embodiments, the basic feature bit modeling of 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: Perform binary modeling based on the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; A first ideal score and a first actual score of each basic feature bit are calculated according to the feature matrix; the first ideal score and the first actual score are used to represent the total number of times each basic feature bit appears in all business domain name resolution IPs under an ideal operating state and an actual operating state, respectively.

[0008] In some embodiments, the monitoring indicator characteristic bit modeling of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit, includes the following steps: The Ping detection, Ping delay and interface status code in the monitoring data to be analyzed are converted into 0 / 1 status respectively through a standardized evaluation strategy; Modeling of the monitoring indicator characteristic bit is performed according to the Ping detection, the Ping delay, the 0 / 1 state of the interface status code, and the set 0 / 1 state value, and a second ideal score and a second actual score of each monitoring indicator characteristic bit are obtained; the second ideal score and the second actual score are used to represent the total state value of each monitoring indicator characteristic bit in all service domain name resolution IPs under an ideal operating state and an actual operating state, respectively; The ideal weighted total score and the actual weighted total score of all monitoring indicator characteristic bits are calculated according to the corresponding weight set for each monitoring indicator characteristic bit, and the weighted ratio is calculated according to the ideal weighted total score and the actual weighted total score.

[0009] In some embodiments, a corresponding weight is set according to the degree of influence of each monitoring indicator characteristic bit on the quality of domain name resolution service.

[0010] In some embodiments, the step of converting the Ping detection, Ping delay, and interface status code in the monitoring data to be analyzed into 0 / 1 states respectively by using a standardized evaluation strategy comprises the following steps: According to whether the Ping probe is qualified, the Ping delay and the interface status code are converted to 0 / 1 state respectively; wherein, within the set time, if it is detected that the Ping probe is unavailable, the Ping delay is greater than the set delay threshold, and the interface status code is abnormal, it is judged as unqualified and converted to 0 state; otherwise, it is judged as qualified and converted to 1 state.

[0011] In some embodiments, the switching of the service domain name resolution IP according to the calculated first actual score and first ideal score of each basic feature bit includes the following steps: Determine the abnormal service domain name resolution IP according to the data reported by the monitoring indicator characteristic bit; Change the data corresponding to the abnormal service domain name resolution IP in the basic characteristic bit to 0, recalculate the first actual score and the first ideal score, and obtain the ratio of the two; The presence of an abnormal basic characteristic bit is determined based on the ratio, and the service domain name resolution IP switching is performed.

[0012] In a second aspect, an embodiment of the present application provides a domain name resolution switching device, the device comprising: A collection module is used to collect monitoring data of the service 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 monitoring data to be analyzed; the noise reduction feature bits include cloud vendors and proxy IPs; A modeling module, for modeling the basic characteristic bits of the monitoring data to be analyzed, and calculating the first actual score and the first ideal score of each basic characteristic bit; and for modeling the monitoring index characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring index characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring index characteristic bits include Ping detection, ping delay and interface status code; The switching module is used to switch the service domain name resolution IP according to the calculated first actual score and first ideal score of each basic characteristic bit if the weighted ratio is less than a set threshold.

[0013] In a third aspect, an embodiment of the present application provides an electronic device, comprising: a processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, 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 as described in any one of the first aspects are performed.

[0014] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the domain name resolution switching method described in any one of the first aspects are executed.

[0015] The domain name resolution switching method, device, electronic device and storage medium described in the present application collect monitoring data of the service 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; 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 indicator feature bit modeling on the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring indicator feature bit; if the weighted ratio is less than the set threshold, the service domain name resolution IP is switched according to the calculated first actual score and the first ideal score of each basic feature bit. Thus, by constructing a model including noise reduction feature bits, basic feature bits and monitoring indicator feature bits, domain name resolution switching is performed, which can adapt to various types of business deployment architectures and ensure business stability and continuity. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings required for use in the embodiments will be briefly introduced below. It should be understood that the following drawings only show certain embodiments of the present application and therefore should not be regarded as limiting the scope. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.

[0017] Figure 1 A flowchart of the domain name resolution switching method described in an embodiment of the present application is shown; Figure 2 A flowchart of an embodiment of the present application for modeling basic feature bits of the monitoring data to be analyzed and calculating a first actual score and a first ideal score for each basic feature bit is shown; Figure 3 A flowchart showing an embodiment of the present application for modeling the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit; Figure 4 A schematic diagram of the structure of the domain name resolution switching device according to an embodiment of the present application is shown; Figure 5 A structural block diagram of an electronic device described in an embodiment of the present application is shown. DETAILED DESCRIPTION

[0018] To make the purpose, technical scheme and advantages of the embodiments of the present application clearer, the technical scheme in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. It should be understood that the drawings in the present application only serve the purpose of explanation and description and are not used to limit the scope of protection of the present application. In addition, it should be understood that the schematic drawings are not drawn in real proportion. The flowchart used in this application shows the operations implemented according to some embodiments of the present application. It should be understood that the operations of the flowchart can be implemented out of sequence, and the steps without logical context can be reversed in order or implemented simultaneously. In addition, those skilled in the art can add one or more other operations to the flowchart under the guidance of the content of the present application, or remove one or more operations from the flowchart.

[0019] In addition, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. The components of the embodiments of the present application described and shown in the drawings here can be arranged and designed in various configurations. Therefore, the following detailed description of the embodiments of the present application provided in the drawings is not intended to limit the scope of the application claimed for protection, but merely represents the 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 making creative work belong to the scope of protection of the present application.

[0020] It should be noted that the term "comprising" will be used in the embodiments of the present application to indicate the existence of the features declared thereafter, but does not exclude the addition of other features.

[0021] In view of the technical problems raised by the background technology, the present application provides a domain name resolution switching method, device, electronic device and storage medium, which can adapt to various business deployment architectures and improve business stability and reliability by creating a universal domain name switching model.

[0022] See the instruction manual Figure 1 , a domain name resolution switching method provided in an embodiment of the present application includes the following steps: S1. Collect monitoring data of the service 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 monitoring data to be analyzed; the noise reduction feature bits include cloud vendors and proxy IPs; S2, modeling the basic characteristic bits of the monitoring data to be analyzed, and calculating the first actual score and the first ideal score of each basic characteristic bit; and modeling the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring indicator characteristic bits include Ping detection, ping delay and interface status code; S3. If the weighted ratio is less than a set threshold, the service domain name resolution IP is switched according to the calculated first actual score and first ideal score of each basic feature bit.

[0023] 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 decision-making during the domain name resolution switching decision-making process. These features are mainly derived from monitoring data, and their purpose is to reduce the noise caused by abnormal external factors and make the decision basis more accurate and reliable.

[0024] In the present application, the noise reduction feature bits include cloud vendors and proxy IPs. If all the data reported by a cloud vendor are abnormal (for example, all monitored resolution IPs are displayed as unavailable under the monitoring of this cloud vendor), this may be caused by the cloud vendor's own network, configuration or other problems, rather than a real problem with the monitored resolution IP. At this point, all data reported by this cloud vendor needs 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 likely that the corresponding monitoring probe itself has a fault. All data reported by this proxy IP needs to be screened out from the original monitoring data.

[0025] By reducing the noise of monitoring data to obtain the monitoring data to be analyzed, it is helpful to improve the quality of domain name resolution switching decisions. If data noise reduction is not performed, these abnormal factors may frequently trigger unnecessary domain name resolution switching, or cause the switching that should be performed to be not executed in time, thus affecting the normal operation of the business.

[0026] See the instruction manual Figure 2 In step S2, the basic feature bit modeling of the monitoring data to be analyzed and the first actual score and the first ideal score of each basic feature bit are calculated, including the following steps: S201, performing binary modeling based on the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; S202. Calculate a first ideal score and a 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 represent the total number of times each basic feature bit appears in all business domain name resolution IPs under an ideal operating state and an actual operating state, respectively.

[0027] Specifically, in step S201, by performing binary modeling on the computer room and operator of the service domain name resolution IP, the ownership 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 resolution IP has the corresponding basic feature bit, which can facilitate subsequent data statistics, comparisons, 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 belongs to A (the corresponding value of the computer room A column is 1), and the operator belongs to X (the corresponding value of the operator X column is 1), and it does not belong to computer room B and operator Y (the value of the corresponding column is 0).

[0028]

[0029] Table 1 In step S202, under an ideal operating state, assuming that all resolved IPs are evenly distributed among various computer rooms and operators, the first ideal total score of each basic feature bit (computer room A, computer room B, operator X, operator Y) is calculated. 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 4 resolved IPs in total, and computer room A appears in 2 of them, then the first ideal score of computer room A is 2. Similarly, the first actual score of each basic feature bit under the actual operating state is calculated.

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

[0031] In addition, see the instructions for Figure 3 The monitoring indicator characteristic bit modeling of the monitoring data to be analyzed and the weighted ratio calculation according to the set weight of each monitoring indicator characteristic bit include the following steps: P301, converting the Ping detection, Ping delay and interface status code in the monitoring data to be analyzed into 0 / 1 status respectively through a standardized evaluation strategy; P302, according to the Ping detection, the Ping delay and the 0 / 1 state of the interface status code and the set 0 / 1 state value, the monitoring indicator characteristic bit is modeled, and the second ideal score and the second actual score of each monitoring indicator characteristic bit are obtained; the second ideal score and the second actual score are used to represent the total state value of each monitoring indicator characteristic bit in all service domain name resolution IPs under the ideal operating state and the actual operating state, respectively; P303. Calculate the ideal weighted total score and the actual weighted total score of all monitoring indicator characteristic bits according to the corresponding weights set for each monitoring indicator characteristic bit, and calculate the weighted ratio according to the ideal weighted total score and the actual weighted total score.

[0032] Specifically, in step P301, since the characteristics of different monitoring indicators are different, by converting them into standardized judgments of 0 / 1 states, the same logic and standards can be used to measure whether each indicator meets the 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 receive a response, it is determined to be "connected" and the corresponding state is converted to 1; if no response is received within the specified time, it is determined to be "unconnected" and the state is converted to 0. The ping delay measures the time it takes for a data packet to be sent from the monitoring probe to the target resolved IP and returned. The ping delay <10ms is set to be qualified, and the corresponding state is converted to 1; if the ping delay is greater than or equal to 10ms, it is determined to be unqualified and the state 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 200 status code indicates that the request is successful. At this time, the corresponding state of the interface status code is converted to 1; while other non-200 status codes are determined to be unqualified and the corresponding state is converted to 0.

[0033] Furthermore, in order to avoid misjudgment due to short-term network fluctuations or instantaneous anomalies, an abnormal data duration determination mechanism is introduced. For the ping probe, the ping delay and the interface status code, an abnormal data duration threshold is set respectively. For example, if the ping probe is in the "unreachable" state for 3 consecutive times (each detection interval is a certain time, such as 5 seconds), that is, the duration reaches 15 seconds, the state will be converted to 0; for ping delay, if it is greater than or equal to 10ms for 5 consecutive times (each detection interval is 5 seconds), the duration reaches 25 seconds, the state will be converted to 0; the interface status code is similar, if it is a non-200 status code for several consecutive times (set according to business needs) and the duration exceeds the set threshold, the state will be converted to 0.

[0034] In step P302, monitoring indicator characteristic bit modeling is performed according to the Ping detection, the Ping delay, the 0 / 1 state of the interface status code, and the set 0 / 1 state value as shown in Table 2.

[0035]

[0036] Table 2 When calculating the second ideal score and the second actual score of each monitoring indicator characteristic bit, the score of the state 0 is 0, and the score of the state 1 is 1.

[0037] In step P303, a corresponding weight is set according to the degree of influence of each monitoring indicator characteristic bit on the quality of domain name resolution service. In one embodiment, ping activity, as a basic connectivity indicator, is directly related to whether the user can access the service, and the weight is set to 1; ping delay 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, the ideal weighted total score and the actual weighted total score of all monitoring indicator characteristic bits are calculated through weighted calculation, and the weighted ratio is calculated based on the ideal weighted total score and the actual weighted total score.

[0038]

[0039] Table 3 In step S3, by calculating the weighted ratio (the ratio of the weighted total score to the ideal total score) and comparing it with the set threshold, if the weighted ratio is less than the set threshold, it means that the current resolution IP may have problems and needs to be switched. For example, if the weighted ratio is 0.69, which is less than the set threshold (assuming the threshold is 0.8), it means that the overall service quality has declined, and the corresponding resolution IP switching plan 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 business.

[0040] Among them, when switching the service domain name resolution IP, first determine the abnormal service domain name resolution IP according to the data reported by the monitoring indicator characteristic bit; then change the data corresponding to the abnormal service domain name resolution IP in the basic characteristic bit to 0, recalculate the first actual score and the first ideal score, and obtain the ratio of the two; finally, determine the basic characteristic bit with abnormality according to the ratio, and switch the service domain name resolution IP.

[0041] In one embodiment, when the actual data reported by the monitoring indicator characteristic bit shows that IP3 is abnormal, the corresponding data in the basic characteristic bit is changed to 0. After the IP3 data is changed to 0, the first actual score of each basic characteristic bit (computer room A, computer room B, operator X, operator Y) is recalculated. After the original count value of IP3 in computer room B and operator X is changed from 1 to 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 of each basic characteristic bit to the first ideal score, the degree of deviation of each basic characteristic 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 many problems with the resolution IP in computer room B, affecting its overall performance; the ratio of operator X is also 0.5, which also indicates that the resolution IP related to the operator may be unstable. Execute the solution of switching to A and Y.

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

[0043] It can be seen that the domain name resolution switching method provided in the present application performs domain name resolution switching by constructing a model including noise reduction feature bits, basic feature bits and monitoring indicator feature bits, which can adapt to various business deployment architectures and ensure business stability and continuity.

[0044] Based on the same inventive concept, a domain name resolution switching device is also provided in the embodiment of the present application. Since the principle of solving the problem by the device in the embodiment of the present application is similar to 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 repeated.

[0045] As the instruction manual Figure 4 As shown, the present application also provides a domain name resolution switching device, the device comprising: The collection module 401 is used to collect monitoring data of the service domain name resolution IP through the 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 the cloud vendor and the proxy IP; Modeling module 402, used to model the basic characteristic bits of the monitoring data to be analyzed, and calculate the first actual score and the first ideal score of each basic characteristic bit; and model the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculate the weighted ratio according to the set weight of each monitoring indicator characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring indicator characteristic bits include Ping detection, ping delay and interface status code; The switching module 403 is used to switch the service domain name resolution IP according to the calculated first actual score and first ideal score of each basic feature bit if the weighted ratio is less than a set threshold.

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

[0047] In some embodiments, the modeling module 402 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, including: performing binary modeling on the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; calculating a first ideal score and a first actual score for each basic feature bit based on 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 business domain name resolution IPs under an ideal operating state and an actual operating state.

[0048] In some embodiments, the modeling module 402 models the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculates the weighted ratio according to the set weight of each monitoring indicator characteristic bit, including: converting the Ping detection, ping delay and interface status code in the monitoring data to be analyzed into 0 / 1 status respectively through a standardized evaluation strategy; modeling the monitoring indicator characteristic bits according to the 0 / 1 status of the Ping detection, the ping delay and the interface status code and the set 0 / 1 status value, and obtaining the second ideal score and the second actual score of each monitoring indicator characteristic bit; the second ideal score and the second actual score are used to represent the total state value of each monitoring indicator characteristic bit in all business domain name resolution IPs under the ideal operating state and the actual operating state respectively; the ideal weighted total score and the actual weighted total score of all monitoring indicator characteristic bits are calculated according to the corresponding weight set for each monitoring indicator characteristic bit, and the weighted ratio is calculated according to the ideal weighted total score and the actual weighted total score. Wherein, the corresponding weight is set according to the degree of influence of each monitoring indicator characteristic bit on the domain name resolution service quality. Among them, according to whether the Ping probe is qualified, the Ping delay and the interface status code are converted into 0 / 1 state accordingly; wherein, within the set time, if it is detected that the Ping probe is unavailable, the Ping delay is greater than the set delay threshold, and the interface status code is abnormal, it is judged as unqualified and converted into 0 state; otherwise, it is judged as qualified and converted into 1 state.

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

[0050] The application provides a domain name resolution switching device, which collects monitoring data of the service domain name resolution IP through the monitoring probe through the collection module, and performs noise reduction processing on the noise reduction feature bits of the monitoring data to obtain the monitoring data to be analyzed; the basic feature bits of the monitoring data to be analyzed are modeled through the modeling module, 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 service domain name resolution IP is switched according to the calculated first actual score and the first ideal score of each basic feature bit through the switching module. Thus, by constructing a model including noise reduction feature bits, basic feature bits and monitoring index feature bits, domain name resolution switching is performed, which can adapt to various types of business deployment architectures and ensure business stability and continuity.

[0051] Based on the same concept of the present invention, the specification is attached Figure 5 As shown, the structure of an electronic device 500 provided in an embodiment of the present application includes: at least one processor 501, at least one network interface 504 or other user interface 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 (Holographic) or projection (Projector), etc.), a keyboard or a pointing device (for example, a mouse, a trackball (trackball), a touch pad or a touch screen, etc.).

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

[0053] In some embodiments, the memory 505 stores the following elements, which may be protected modules or data structures, or subsets thereof, or extended sets thereof: Operating system 5051, including various system programs, used to implement various basic services and process hardware-based tasks; The application module 5052 includes various application programs, such as a launcher, a media player, a browser, etc., which are used to implement various application services.

[0054] In an embodiment of the present application, by calling the program or instructions stored in the memory 505, the processor 501 is used to execute steps in a domain name resolution switching method, device, electronic device and storage medium, and can adapt to various business deployment architectures and improve business stability and reliability by creating a universal domain name switching model.

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

[0056] Specifically, the storage medium can be a general storage medium, such as a mobile disk, a hard disk, etc. When the computer program on the storage medium is executed, the above-mentioned domain name resolution switching method can be executed.

[0057] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The device embodiments described above are merely schematic. For example, the division of units is only a logical function division. There may be other division methods in actual implementation. For 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 mutual coupling or direct coupling or communication connection shown or discussed can be through some communication interfaces, and the indirect coupling or communication connection of devices or units can be electrical, mechanical or other forms.

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

[0059] In addition, each functional unit in the embodiments provided in the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0060] If the 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 the present application, or the part that contributes to the prior art or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), disk or optical disk, and other media that can store program codes.

[0061] Finally, it should be noted that the above embodiments are only specific implementation methods of the present application, which are used to illustrate the technical solutions of the present application, rather than to limit them. The protection scope of the present application is not limited thereto. Although the present application is described in detail with reference to the aforementioned embodiments, ordinary technicians in the field should understand that any technician familiar with the technical field can still modify the technical solutions recorded in the aforementioned embodiments within the technical scope disclosed in the present application, or can easily think of changes, or make equivalent replacements for some of the technical features therein; 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 the present application. They should all be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be based on the protection scope of the claims.

Claims

1. A domain name resolution switching method, characterized in that: The method comprises the following steps: The monitoring data of the service domain name resolution IP is collected through the monitoring probe, and the noise reduction feature bits of the monitoring data are subjected to noise reduction processing to obtain the monitoring data to be analyzed; the noise reduction feature bits include the cloud vendor and the proxy IP; Modeling the basic characteristic bits of the monitoring data to be analyzed, and calculating the first actual score and the first ideal score of each basic characteristic bit; and modeling the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring indicator characteristic bits include Ping detection, ping delay and interface status code; If the weighted ratio is less than a set threshold, the service domain name resolution IP is switched according to the calculated first actual score and first ideal score of each basic feature bit.

2. A domain name resolution switching method according to claim 1, characterized in that: 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 comprises the following steps: Check whether all the data reported by the cloud vendor or the proxy IP is abnormal; If all the data reported by the cloud vendor or the proxy IP are abnormal, the data reported by the cloud vendor or the proxy IP are filtered out from the monitoring data to obtain the monitoring data to be analyzed.

3. A domain name resolution switching method according to claim 2, characterized in that: The step of performing basic feature bit modeling on the monitoring data to be analyzed and calculating a first actual score and a first ideal score for each basic feature bit comprises the following steps: Perform binary modeling based on the computer room and the operator as basic feature bits to obtain a two-dimensional feature matrix; A first ideal score and a first actual score of each basic feature bit are calculated according to the feature matrix; the first ideal score and the first actual score are used to represent the total number of times each basic feature bit appears in all business domain name resolution IPs under an ideal operating state and an actual operating state, respectively.

4. A domain name resolution switching method according to claim 3, characterized in that: The step of modeling the monitoring indicator characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring indicator characteristic bit, comprises the following steps: The Ping detection, Ping delay and interface status code in the monitoring data to be analyzed are converted into 0 / 1 status respectively through a standardized evaluation strategy; Modeling of the monitoring indicator characteristic bit is performed according to the Ping detection, the Ping delay, the 0 / 1 state of the interface status code, and the set 0 / 1 state value, and a second ideal score and a second actual score of each monitoring indicator characteristic bit are obtained; the second ideal score and the second actual score are used to represent the total state value of each monitoring indicator characteristic bit in all service domain name resolution IPs under an ideal operating state and an actual operating state, respectively; The ideal weighted total score and the actual weighted total score of all monitoring indicator characteristic bits are calculated according to the corresponding weight set for each monitoring indicator characteristic bit, and the weighted ratio is calculated according to the ideal weighted total score and the actual weighted total score.

5. A domain name resolution switching method according to claim 4, characterized in that: in, The corresponding weight is set according to the impact of each monitoring indicator characteristic bit on the domain name resolution service quality.

6. A domain name resolution switching method according to claim 5, characterized in that: The method of converting the Ping detection, ping delay and interface status code in the monitoring data to be analyzed into 0 / 1 status respectively by using a standardized evaluation strategy includes the following steps: According to whether the Ping probe is qualified, the Ping delay and the interface status code are converted to 0 / 1 state respectively; wherein, within the set time, if it is detected that the Ping probe is unavailable, the Ping delay is greater than the set delay threshold, and the interface status code is abnormal, it is judged as unqualified and converted to 0 state; otherwise, it is judged as qualified and converted to 1 state.

7. A domain name resolution switching method according to claim 6, characterized in that: The switching of the service domain name resolution IP according to the calculated first actual score and first ideal score of each basic feature bit comprises the following steps: Determine the abnormal service domain name resolution IP according to the data reported by the monitoring indicator characteristic bit; Change the data corresponding to the abnormal service domain name resolution IP in the basic characteristic bit to 0, recalculate the first actual score and the first ideal score, and obtain the ratio of the two; The presence of an abnormal basic characteristic bit is determined based on the ratio, and the service domain name resolution IP switching is performed.

8. A domain name resolution switching device, characterized in that: The device comprises: A collection module is used to collect monitoring data of the service 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 monitoring data to be analyzed; the noise reduction feature bits include cloud vendors and proxy IPs; A modeling module, for modeling the basic characteristic bits of the monitoring data to be analyzed, and calculating the first actual score and the first ideal score of each basic characteristic bit; and for modeling the monitoring index characteristic bits of the monitoring data to be analyzed, and calculating the weighted ratio according to the set weight of each monitoring index characteristic bit; the basic characteristic bits include the computer room and the operator; the monitoring index characteristic bits include Ping detection, ping delay and interface status code; The switching module is used to switch the service domain name resolution IP according to the calculated first actual score and first ideal score of each basic characteristic bit if the weighted ratio is less than a set threshold.

9. An electronic device, characterized in that: include: A processor, a memory and a bus, wherein the memory stores machine-readable instructions executable by the processor, and when the electronic device is running, the processor and the memory communicate via the bus, and when the machine-readable instructions are executed by the processor, the steps of the domain name resolution switching method as described in any one of claims 1 to 7 are performed.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the domain name resolution switching method according to any one of claims 1 to 7 are executed.

Citation Information

Patent Citations

  • Intelligent service fault processing method based on DNS

    CN112583648A

  • Domain name resolution record switching method and device, terminal equipment and readable storage medium

    CN115842714A

  • Data center switching method and device, storage medium and electronic equipment

    CN117729098A

  • Service access method and device, storage medium and electronic equipment

    CN118337509A

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

    CN119254665A