Address resolution processing method and apparatus, medium, and electronic device

By using a dual-threshold decision mechanism to acquire and restore network quality for resolved addresses, the problem of unstable address resolution processing in existing technologies is solved, achieving accurate and stable recovery of resolved addresses and improving the stability of network services and user experience.

CN117614897BActive Publication Date: 2026-11-27BEIJING ZITIAO NETWORK TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311755400.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-12-19
Publication Date
2026-11-27
Estimated Expiration
2043-12-19

AI Technical Summary

Technical Problem

Existing technologies cannot handle address resolution smoothly and effectively, causing network service providers to experience traffic fluctuations, making it impossible to perform accurate and stable traffic and content scheduling, and thus reducing the user's network experience.

Method used

By obtaining the network quality of the DNS resolution address corresponding to the domain name, and if the network quality is higher than the first threshold and lower than the second threshold in a continuous first time period when the DNS resolution address is removed, the DNS resolution address is restored; if the network quality is lower than the first threshold, the DNS resolution address is removed, the second threshold is less than 100%, and the second threshold is greater than the first threshold.

Benefits of technology

It achieves slow and stable recovery of resolved addresses, avoids false recovery of network quality, and ensures that resolved addresses are only restored after network quality stabilizes. It provides accurate and stable traffic scheduling and content scheduling, thereby improving the user's network experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117614897B_ABST
    Figure CN117614897B_ABST
Patent Text Reader

Abstract

The present disclosure relates to a method and device for resolving an address, a medium and an electronic device, belonging to the technical field of computers, which can smoothly restore the resolved address, avoid traffic jitter of a service provider providing network services, provide accurate and smooth traffic scheduling and content scheduling for the service provider, and improve the network experience of users. A method for processing a resolved address includes: obtaining network quality of a resolved address corresponding to a domain name; in a case where the resolved address has been removed, if the network quality is higher than a first threshold and less than a second threshold in a continuous first period, restoring the resolved address, wherein the second threshold is less than 100%, and the second threshold is greater than the first threshold.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of computer technology, and more specifically, to a method, apparatus, medium, and electronic device for resolving addresses. Background Technology

[0002] When a user accesses a domain name, the domain name server performs address resolution to obtain the corresponding DNS address. In related technologies, to ensure network quality, a network test is typically performed from a designated monitoring point to the DNS address. If the network quality of the DNS address is lower than a user-defined tolerance threshold, the DNS address is removed; conversely, if the network quality is higher than the threshold, it is restored. This method cannot smoothly and effectively process DNS addresses, leading to severe traffic fluctuations for network service providers. It hinders precise and stable traffic and content scheduling, ultimately degrading the user's network experience. Summary of the Invention

[0003] This section is provided to briefly introduce the concepts, which will be described in detail in the Detailed Description section later. This section is not intended to identify key or essential features of the claimed technical solution, nor is it intended to limit the scope of the claimed technical solution.

[0004] Firstly, this disclosure provides a method for resolving addresses, including:

[0005] Get the network quality of the DNS address corresponding to the domain name;

[0006] If the resolved address has been removed, and the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period, then the resolved address is restored, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0007] Secondly, this disclosure provides an address resolution processing apparatus, comprising:

[0008] The acquisition module is used to obtain the network quality of the resolution address corresponding to the domain name;

[0009] The processing module is configured to restore the resolved address if, in the case where the resolved address has been removed, the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0010] Thirdly, this disclosure provides a computer-readable medium having a computer program stored thereon, which, when executed by a processing device, implements the steps of the method described in any one of the first aspects.

[0011] Fourthly, this disclosure provides an electronic device, comprising:

[0012] A storage device having at least one computer program stored thereon;

[0013] At least one processing means is configured to execute the at least one computer program in the storage device to implement the steps of the method according to any one of the first aspects.

[0014] By adopting the above technical solution, the network quality of the resolution address corresponding to the domain name can be obtained. If, in the case that the resolution address has been removed, the network quality is consistently higher than a first threshold and lower than a second threshold within a continuous first time period, the resolution address is restored. This allows for slow and stable recovery to eliminate network jitter in scenarios with fluctuating network quality. Furthermore, it effectively avoids restoring the resolution address during periods of false network quality recovery. This ensures that the resolution address is restored only after network quality has stabilized, and also guarantees accurate and stable restoration. Consequently, in cloud products related to traffic scheduling, it avoids traffic jitter for network service providers, providing them with accurate and stable traffic and content scheduling, thus improving the user's network experience.

[0015] Other features and advantages of this disclosure will be described in detail in the following detailed description section. Attached Figure Description

[0016] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and the originals and elements are not necessarily drawn to scale. In the drawings:

[0017] Figure 1 This is a flowchart of a method for resolving addresses according to an embodiment of the present disclosure.

[0018] Figure 2 This is a flowchart of another address resolution processing method according to an embodiment of the present disclosure.

[0019] Figure 3 This is a flowchart of another address resolution processing method according to an embodiment of the present disclosure.

[0020] Figure 4a and Figure 4bThis is a schematic diagram illustrating the effect of the address parsing method according to an embodiment of the present disclosure.

[0021] Figure 5 This is another schematic diagram illustrating the effect of the address parsing method according to an embodiment of the present disclosure.

[0022] Figure 6 This is a schematic block diagram of a processing apparatus for resolving addresses according to an embodiment of the present disclosure.

[0023] Figure 7 A schematic diagram of the structure of an electronic device suitable for implementing embodiments of the present disclosure is shown. Detailed Implementation

[0024] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.

[0025] It should be understood that the steps described in the method embodiments of this disclosure may be performed in different orders and / or in parallel. Furthermore, the method embodiments may include additional steps and / or omit the steps shown. The scope of this disclosure is not limited in this respect.

[0026] The term "comprising" and its variations as used herein are open-ended inclusions, meaning "including but not limited to". The term "based on" means "at least partially based on". The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments". Definitions of other terms will be given in the description below.

[0027] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.

[0028] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".

[0029] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.

[0030] All actions involving the acquisition of signals, information, or data in this disclosure are carried out in accordance with the relevant data protection laws and policies of the country where the location is situated, and with the authorization granted by the owner of the relevant device.

[0031] It is understood that before using the technical solutions disclosed in the various embodiments of this disclosure, users should be informed of the types, scope of use, and usage scenarios of the personal information involved in this disclosure in an appropriate manner in accordance with relevant laws and regulations, and user authorization should be obtained.

[0032] For example, upon receiving a user's active request, a prompt message is sent to the user to explicitly inform them that the requested operation will require the acquisition and use of the user's personal information. This allows the user to independently choose whether to provide personal information to the software or hardware, such as the electronic device, application, server, or storage medium performing the operations of this disclosed technical solution, based on the prompt message.

[0033] As an optional but non-limiting implementation, in response to a user's active request, sending a prompt message to the user can be done via a pop-up window, where the prompt message can be presented in text format. Furthermore, the pop-up window can also include a selection control allowing the user to choose "agree" or "disagree" to provide personal information to the electronic device.

[0034] It is understood that the above notification and user authorization process are merely illustrative and do not constitute a limitation on the implementation of this disclosure. Other methods that comply with relevant laws and regulations may also be applied to the implementation of this disclosure.

[0035] Meanwhile, it is understood that the data involved in this technical solution (including but not limited to the data itself, the acquisition or use of the data) shall comply with the requirements of relevant laws, regulations and related provisions.

[0036] Internet applications and network links are complex and diverse. How to quickly identify and locate network problems (e.g., network failures, performance degradation) when users access internet services, rapidly switch the DNS addresses corresponding to the domain names accessed by users, and reliably switch back to the DNS addresses after network quality stabilizes and recovers, has always been a challenging problem for various service providers. For service providers offering high-concurrency, high-traffic access services, a decision-making algorithm that enables fast removal and smooth recovery can provide precise traffic scheduling, offering users a better network experience, avoiding traffic fluctuations, and improving system stability. Currently, there are many network diagnostic products in the industry. Most solutions involve probing the network from a designated test point to the DNS address, using a user-defined success rate threshold for the probing success as a criterion for judging the quality of the current link, and thus deciding whether access traffic should go through the primary or backup DNS address, and when to switch back to the primary DNS address. This decision-making algorithm uses a single fixed threshold to determine which DNS address to use. Its drawbacks are twofold: firstly, it cannot accurately simulate recent network quality; secondly, in network environments with significant jitter, the network quality value may fluctuate around the user-defined success tolerance threshold, causing frequent switching between the primary and backup DNS addresses, resulting in severe traffic jitter on the server side. Therefore, a simple and efficient algorithm is urgently needed to address these issues.

[0037] Figure 1 This is a flowchart illustrating a method for processing resolved addresses according to an embodiment of this disclosure. This method can process the resolved addresses corresponding to domain names accessed by users, such as removing or restoring the resolved addresses, thereby providing accurate and stable traffic and content scheduling for network service providers. Figure 1 As shown, the method for processing the resolved address includes steps S11 to S12.

[0038] In step S11, the network quality of the resolution address corresponding to the domain name is obtained.

[0039] For example, the network quality of the DNS address corresponding to a domain name can be obtained through dial-up testing or other network quality measurement methods.

[0040] In step S12, if the network quality is consistently higher than a first threshold and lower than a second threshold within a consecutive first time period after the resolved address has been removed, then the resolved address is restored, wherein the second threshold is less than 100% and greater than the first threshold. This restoration strategy is suitable for restoring resolved addresses under network quality jitter conditions, achieving a slow and smooth restoration of the resolved address and de-jittering effect.

[0041] Step S12 is used to restore the resolved address in scenarios where the resolved address has been removed. Removal refers to deleting a resolved address from the list of resolved addresses corresponding to a domain name, so that the domain name server will no longer resolve the deleted resolved address when performing address resolution for that domain. Restoration refers to adding the deleted resolved address back to the list of resolved addresses corresponding to the domain name, so that the domain name server can resolve the restored resolved address when performing address resolution for that domain.

[0042] The first threshold can be a user's tolerance threshold for network quality. For example, a user's tolerance threshold for network quality can be received and set as the first threshold. The user's tolerance for network quality can be reflected in the success rate of dial-up tests. For example, if the user's tolerance threshold for network quality is 90%, then if the dial-up test success rate is 93%, the network quality is considered to be higher than the user's tolerance threshold. The user's tolerance threshold for network quality can be set by the user based on their tolerance for network quality. The first threshold is essentially the lower limit for address resolution recovery; that is, address resolution is only possible if the network quality is higher than the first threshold.

[0043] The second threshold can be determined as follows: If the resolved address has not been removed, obtain the historical network quality of the resolved address within the most recent third time period; dynamically determine the second threshold based on the historical network quality. For example, the average of all historical network quality values ​​within the most recent third time period can be taken, and the second threshold can be dynamically determined based on the average value. The duration of the third time period can be set according to actual conditions, for example, it can be 5 minutes. In other words, the second threshold is determined in the scenario where the resolved address has not been removed. For example, in the scenario where the resolved address has not been removed, assuming the network quality values ​​obtained within the most recent third time period include 100%, 96%, 100%, 100%, and 100%, the second threshold can be obtained by averaging these network quality values, i.e., setting the second threshold to (100% + 96% + 100% + 100% + 100%) / 5 = 99.2%. This technical solution allows for adaptive real-time updates of the second threshold, and the second threshold also reflects the recent network quality.

[0044] The duration of the first time period can be set according to the user's tolerance for network recovery time. This allows different tolerance duration coefficients to be assigned to different users, achieving a balance between varying degrees of jitter reduction and rapid recovery. For example, the duration of the first time period could be 5 minutes.

[0045] Furthermore, since the network quality remained above the first threshold and below the second threshold throughout the first consecutive time period, this indicates that the current network condition is one where the network quality is above the lower threshold for recovering the resolved address (i.e., the first threshold), but the network quality is not particularly high. Under such network conditions, network quality fluctuations are more likely to occur; therefore, a slow and stable recovery of the resolved address is required.

[0046] By adopting the above technical solution, the network quality of the resolution address corresponding to the domain name can be obtained. If, when the resolution address has been removed, the network quality is consistently higher than a first threshold and lower than a second threshold within a continuous first time period, the resolution address is restored. This allows for slow and stable recovery to eliminate network quality fluctuations (e.g., fluctuating network quality), effectively preventing resolution address restoration during false network quality recovery. This ensures that resolution address restoration occurs only after network quality has stabilized, guaranteeing accurate and stable restoration. Consequently, in cloud products related to traffic scheduling, it avoids traffic fluctuations for network service providers, providing them with accurate and stable traffic and content scheduling, thus improving the user's network experience. Furthermore, since the resolution address processing method according to this disclosure is based on both the first and second thresholds for resolution address restoration, this dual-threshold decision-making scheme can adapt to different network scenarios (e.g., scenarios with fluctuating network quality, scenarios with relatively stable network quality, etc.) for resolution address restoration.

[0047] Figure 2 This is a flowchart illustrating yet another address resolution processing method according to an embodiment of this disclosure. Figure 2 As shown, the method for processing the resolved address includes steps S21 and S22.

[0048] In step S21, the network quality of the resolution address corresponding to the domain name is obtained.

[0049] For example, the network quality of the DNS address corresponding to a domain name can be obtained through dial-up testing or other network quality measurement methods.

[0050] In step S22, if the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period after the resolved address has been removed, then the resolved address is restored, wherein the duration of the second time period is shorter than the duration of the first time period. This recovery strategy is suitable for rapid and stable recovery in the event of a network outage, achieving a fast recovery effect.

[0051] The duration of the second time period can be set according to the user's tolerance for network recovery time. This allows for different tolerance duration coefficients to be specified for different users, achieving a balance between varying degrees of jitter reduction and rapid recovery. For example, the duration of the second time period could be 3 minutes.

[0052] The second threshold has been described in detail above and will not be repeated here. Furthermore, because historical network quality data is used to dynamically calculate the second threshold in real time, the success rate of address resolution recovery is more reliable, better adaptable to network changes, and reduces unnecessary jitter recovery.

[0053] In addition, since the network quality is greater than or equal to the second threshold and less than or equal to 100% in the second consecutive time period, it indicates that the current network condition is a relatively high network quality condition. Therefore, under such network conditions, the network quality is relatively stable and the address can be resolved quickly. In other words, the period for evaluating network quality (i.e., the duration of the second time period) can be relatively short.

[0054] By adopting the above technical solution, the network quality of the resolution address corresponding to the domain name can be obtained. If, in the case that the resolution address has been removed, the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period, the resolution address is restored. This ensures that, in scenarios with relatively stable network quality, the resolution address is restored not only after the network quality has stabilized but also more quickly, achieving accurate and rapid restoration. Furthermore, in cloud products related to traffic scheduling, this avoids traffic fluctuations for network service providers, providing them with accurate and stable traffic and content scheduling, thus improving the user's network experience. In addition, since the resolution address processing method according to this disclosure is based on two thresholds—a first threshold and a second threshold—to restore the resolution address, the introduction of a dual-threshold decision scheme can adapt to different network scenarios (such as scenarios with fluctuating network quality or scenarios with relatively stable network quality).

[0055] In some embodiments, the method for processing the resolved address according to the present disclosure further includes: if the network quality is less than or equal to the first threshold when the resolved address has been removed, then keeping the resolved address removed.

[0056] By adopting the above technical solution, the resolved address can be kept removed even if the network quality does not reach the lower threshold for restoring the resolved address. This ensures the quality of network services for users, avoids traffic jitter for network service providers, provides accurate and stable traffic and content scheduling for service providers, and improves the user's network experience.

[0057] Figure 3 This is a flowchart illustrating yet another address resolution processing method according to an embodiment of this disclosure. Figure 3 As shown, the method for processing the resolved address includes steps S31 and S32.

[0058] In step S31, the network quality of the resolution address corresponding to the domain name is obtained.

[0059] For example, the network quality of the DNS address corresponding to a domain name can be obtained through dial-up testing or other network quality measurement methods.

[0060] In step S32, if the network quality is lower than the first threshold for a continuous fourth time period without the resolved address being removed, then the resolved address is removed.

[0061] The first threshold is both the lower limit for recovering the resolved address and the threshold for removing the resolved address.

[0062] The duration of the fourth time slot can be set according to the user's tolerance for network service quality. This allows for different tolerance duration coefficients to be assigned to different users, achieving a balance between different levels of jitter reduction and jitter removal. For example, the duration of the fourth time slot could be 3 minutes.

[0063] By adopting the above technical solution, the network quality of the resolution address corresponding to the domain name can be obtained. If the network quality is lower than the first threshold for four consecutive time periods without the resolution address being removed, the resolution address is removed. Through this processing scheme, the resolution address is not removed when the first network quality fluctuation is detected, but only after a continuous deterioration occurs. This ensures that the resolution address is removed smoothly and accurately. Furthermore, in cloud products related to traffic scheduling, traffic fluctuations for the network service providers are avoided, providing them with accurate and stable traffic and content scheduling, and improving the user's network experience.

[0064] Figure 4a and Figure 4b This is a schematic diagram illustrating the effect of the address parsing method according to an embodiment of the present disclosure.

[0065] in, Figure 4a The display shows the network quality test curve for address resolution. Figure 4b This diagram illustrates the removal and restoration of the parsed address according to an embodiment of this disclosure. Figure 4a It can be seen that the network connection suddenly dropped during address resolution. Figure 4bIt can be seen that the address resolution processing method according to the embodiments of this disclosure does not remove the resolved address immediately upon network outage, but only removes the resolved address when the network quality of the resolved address is lower than the first threshold for a continuous fourth time period starting from the time of network outage. From Figure 4a and Figure 4b It can also be seen that after the network for the resolved address is restored, the resolved address is not restored immediately. Instead, it is restored only after the network quality of the resolved address has been above the second threshold for a second consecutive time period. In this way, the resolved address can be quickly removed and restored in network outage scenarios, avoiding traffic jitter for the network service provider and providing the service provider with accurate and stable traffic and content scheduling, thereby improving the user's network experience.

[0066] Figure 5 This is another schematic diagram illustrating the effect of the address resolution processing method according to an embodiment of the present disclosure, wherein a downward arrow indicates the removal of the resolved address, and an upward arrow indicates the restoration of the resolved address. From Figure 5 It can be seen that the network quality of the resolved address fluctuated, but the resolved address was not immediately removed as soon as its network quality began to deteriorate. Instead, it was removed only after the network quality of the resolved address had been deteriorating for four consecutive time periods, and it was only restored after the network quality of the resolved address had stabilized and recovered for a period of time. For example, Figure 5 In the diagram, the locations circled by the ellipse all exhibited false recovery of network quality. The address resolution processing method according to this embodiment effectively eliminated these false recoveries (i.e., the address resolution was not restored at these false recovery locations). This achieves smooth removal and recovery of address resolution in scenarios with fluctuating network quality, avoiding traffic jitter for network service providers, providing them with accurate and stable traffic and content scheduling, and improving the user's network experience.

[0067] Figure 6 This is a schematic block diagram of a device for processing resolved addresses according to an embodiment of this disclosure. This device can process the resolved addresses corresponding to domain names accessed by users, such as removing or restoring the resolved addresses, providing accurate and stable traffic and content scheduling for service providers. Figure 6 As shown, the processing device includes: an acquisition module 61, used to acquire the network quality of the resolution address corresponding to the domain name; and a processing module 62, used to restore the resolution address if the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period when the resolution address has been removed, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0068] By adopting the above technical solution, the network quality of the resolution address corresponding to the domain name can be obtained. If, when the resolution address has been removed, the network quality is consistently higher than a first threshold and lower than a second threshold within a continuous first time period, the resolution address is restored. This allows for slow and stable recovery to eliminate network quality fluctuations (e.g., fluctuating network quality), effectively preventing resolution address restoration during false network quality recovery. This ensures that resolution address restoration occurs only after network quality has stabilized, guaranteeing accurate and stable restoration. Consequently, in cloud products related to traffic scheduling, it avoids traffic fluctuations for network service providers, providing them with accurate and stable traffic and content scheduling, thus improving the user's network experience. Furthermore, since the resolution address processing method according to this disclosure is based on both the first and second thresholds for resolution address restoration, this dual-threshold decision-making scheme can adapt to different network scenarios (e.g., scenarios with fluctuating network quality, scenarios with relatively stable network quality, etc.) for resolution address restoration.

[0069] Optionally, the processing module 62 is further configured to: if the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period after the resolved address has been removed, then restore the resolved address, wherein the duration of the second time period is less than the duration of the first time period.

[0070] Optionally, the processing module 62 is further configured to: if the network quality is less than or equal to the first threshold when the resolved address has been removed, then keep the resolved address removed.

[0071] Optionally, the processing device further includes a determining module, configured to: obtain the historical network quality of the resolved address within the most recent third time period if the resolved address has not been removed, and dynamically determine the second threshold based on the historical network quality.

[0072] Optionally, the determining module dynamically determines the second threshold based on the historical network quality, including: averaging all the historical network quality values ​​within the most recent third time period; and dynamically determining the second threshold based on the average value.

[0073] Optionally, the processing module 62 is further configured to: remove the resolution address if the network quality is lower than the first threshold for a continuous fourth time period, provided that the resolution address has not been removed.

[0074] Optionally, the processing device further includes a setting module for: receiving a user's tolerance threshold for the network quality, and setting the tolerance threshold as the first threshold.

[0075] The specific implementation of the operations performed by each module in the processing apparatus according to the embodiments of this disclosure has been described in detail in the relevant methods, and will not be repeated here.

[0076] This disclosure also provides a computer-readable medium having a computer program stored thereon that, when executed by a processing device, implements the steps of any of the methods described in this disclosure.

[0077] This disclosure also provides an electronic device, comprising: a storage device having at least one computer program stored thereon; and at least one processing device for executing the at least one computer program in the storage device to implement the steps of any of the methods described in this disclosure.

[0078] The following is for reference. Figure 7 This diagram illustrates a structural schematic of an electronic device 600 suitable for implementing embodiments of the present disclosure. The terminal devices in the embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), in-vehicle terminals (e.g., in-vehicle navigation terminals), and fixed terminals such as digital TVs and desktop computers. Figure 7 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments disclosed herein.

[0079] like Figure 7 As shown, electronic device 600 may include a processing device (e.g., a central processing unit, a graphics processor, etc.) 601, which can perform various appropriate actions and processes according to a program stored in read-only memory (ROM) 602 or a program loaded from storage device 608 into random access memory (RAM) 603. RAM 603 also stores various programs and data required for the operation of electronic device 600. Processing device 601, ROM 602, and RAM 603 are interconnected via bus 604. Input / output (I / O) interface 605 is also connected to bus 604.

[0080] Typically, the following devices can be connected to I / O interface 605: input devices 606 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 607 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 608 including, for example, magnetic tapes, hard disks, etc.; and communication devices 609. Communication device 609 allows electronic device 600 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 7 An electronic device 600 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively.

[0081] In particular, according to embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, embodiments of this disclosure include a computer program product comprising a computer program carried on a non-transitory computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 609, or installed from a storage device 608, or installed from a ROM 602. When the computer program is executed by the processing device 601, it performs the functions defined in the methods of embodiments of this disclosure.

[0082] It should be noted that the computer-readable medium described in this disclosure can be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium can be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this disclosure, a computer-readable storage medium can be any tangible medium containing or storing a program that can be used by or in connection with an instruction execution system, apparatus, or device. In this disclosure, a computer-readable signal medium can include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals can take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.

[0083] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future-developed networks.

[0084] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently and not assembled into the electronic device.

[0085] The aforementioned computer-readable medium carries one or more programs, which, when executed by the electronic device, cause the electronic device to: obtain the network quality of the resolution address corresponding to the domain name; and, if the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period when the resolution address has been removed, restore the resolution address, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0086] Computer program code for performing the operations of this disclosure can be written in one or more programming languages ​​or a combination thereof, including but not limited to object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0087] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.

[0088] The modules described in the embodiments of this disclosure can be implemented in software or in hardware. The name of a module does not necessarily limit the module itself; for example, the first acquisition module can also be described as "a module for acquiring the network quality of the resolved address corresponding to a domain name".

[0089] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.

[0090] In the context of this disclosure, a machine-readable medium can be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, apparatus, or device. A machine-readable medium can be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium can be, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, apparatus, or devices, or any suitable combination of the foregoing. More specific examples of machine-readable storage media include electrical connections based on one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the foregoing.

[0091] According to one or more embodiments of this disclosure, Example 1 provides a method for resolving addresses, including:

[0092] Get the network quality of the DNS address corresponding to the domain name;

[0093] If the resolved address has been removed, and the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period, then the resolved address is restored, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0094] According to one or more embodiments of this disclosure, Example 2 provides the method of Example 1, wherein the processing method further includes:

[0095] If the resolved address has been removed, and the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period, then the resolved address is restored, wherein the duration of the second time period is less than the duration of the first time period.

[0096] According to one or more embodiments of this disclosure, Example 3 provides the method of Example 1, wherein the processing method further includes:

[0097] If the network quality is less than or equal to the first threshold after the resolved address has been removed, then the resolved address remains removed.

[0098] According to one or more embodiments of this disclosure, Example 4 provides the method of Example 1, wherein the processing method further includes:

[0099] If the resolved address has not been removed, obtain the historical network quality of the resolved address within the most recent third time period;

[0100] The second threshold is dynamically determined based on the historical network quality.

[0101] According to one or more embodiments of this disclosure, Example 5 provides the method of Example 4, wherein dynamically determining the second threshold based on the historical network quality includes:

[0102] The average quality of all historical networks within the most recent third time period is taken;

[0103] The second threshold is dynamically determined based on the average value.

[0104] According to one or more embodiments of this disclosure, Example 6 provides the method of Example 1, wherein the processing method further includes:

[0105] If the network quality is below the first threshold for a fourth consecutive time period without the resolved address being removed, then the resolved address is removed.

[0106] According to one or more embodiments of this disclosure, Example 7 provides the method of Example 1, wherein the processing method further includes:

[0107] Receive the user's tolerance threshold for the network quality;

[0108] Set the tolerance threshold to the first threshold.

[0109] According to one or more embodiments of this disclosure, Example 8 provides an address resolution processing apparatus, including:

[0110] The acquisition module is used to obtain the network quality of the resolution address corresponding to the domain name;

[0111] The processing module is configured to restore the resolved address if, in the case where the resolved address has been removed, the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold.

[0112] According to one or more embodiments of this disclosure, Example 9 provides the apparatus of Example 8, wherein the processing module is further configured to:

[0113] If the resolved address has been removed, and the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period, then the resolved address is restored, wherein the duration of the second time period is less than the duration of the first time period.

[0114] According to one or more embodiments of this disclosure, Example 10 provides the apparatus of Example 8, wherein the processing module is further configured to:

[0115] If the network quality is less than or equal to the first threshold after the resolved address has been removed, then the resolved address remains removed.

[0116] According to one or more embodiments of this disclosure, Example 11 provides the apparatus of Example 8, wherein the processing apparatus further includes a determining module for:

[0117] If the resolved address has not been removed, obtain the historical network quality of the resolved address within the most recent third time period;

[0118] The second threshold is dynamically determined based on the historical network quality.

[0119] According to one or more embodiments of this disclosure, Example 12 provides the apparatus of Example 11, wherein the determining module dynamically determines the second threshold based on the historical network quality, including:

[0120] The average quality of all historical networks within the most recent third time period is taken;

[0121] The second threshold is dynamically determined based on the average value.

[0122] According to one or more embodiments of this disclosure, Example 13 provides the apparatus of Example 8, wherein the processing module is further configured to:

[0123] If the network quality is below the first threshold for a fourth consecutive time period without the resolved address being removed, then the resolved address is removed.

[0124] According to one or more embodiments of this disclosure, Example 14 provides the apparatus of Example 8, wherein the processing apparatus further includes a setting module for:

[0125] Receive the user's tolerance threshold for the network quality;

[0126] Set the tolerance threshold to the first threshold.

[0127] According to one or more embodiments of the present disclosure, Example 15 provides a computer-readable medium having a computer program stored thereon that, when executed by a processing device, implements the steps of the method described in any one of Examples 1-7.

[0128] According to one or more embodiments of this disclosure, Example 16 provides an electronic device comprising:

[0129] A storage device having at least one computer program stored thereon;

[0130] At least one processing device is configured to execute the at least one computer program in the storage device to implement the steps of any one of the methods described in Examples 1-7.

[0131] The above description is merely a preferred embodiment of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described concept. For example, technical solutions formed by substituting the above features with (but not limited to) technical features disclosed in this disclosure that have similar functions.

[0132] Furthermore, while the operations are described in a specific order, this should not be construed as requiring these operations to be performed in the specific order shown or in a sequential order. In certain environments, multitasking and parallel processing may be advantageous. Similarly, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of this disclosure. Certain features described in the context of individual embodiments may also be implemented in combination in a single embodiment. Conversely, various features described in the context of a single embodiment may also be implemented individually or in any suitable sub-combination in multiple embodiments.

[0133] Although the subject matter has been described using language specific to structural features and / or methodological logic, it should be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or actions described above. Rather, the specific features and actions described above are merely illustrative forms of implementing the claims. Regarding the apparatus in the above embodiments, the specific manner in which the various modules perform their operations has been described in detail in the embodiments relating to the method, and will not be elaborated upon here.

Claims

1. A method for resolving addresses, characterized in that, include: Get the network quality of the DNS address corresponding to the domain name; If the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period after the resolution address has been removed, then the resolution address is restored, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold; the removal refers to deleting the resolution address from the resolution address list corresponding to the domain name; the restoration refers to adding the resolution address to the resolution address list corresponding to the domain name.

2. The processing method according to claim 1, characterized in that, The processing method further includes: If the resolved address has been removed, and the network quality is greater than or equal to the second threshold and less than or equal to 100% for a consecutive second time period, then the resolved address is restored, wherein the duration of the second time period is less than the duration of the first time period.

3. The processing method according to claim 1, characterized in that, The processing method further includes: If the network quality is less than or equal to the first threshold after the resolved address has been removed, then the resolved address remains removed.

4. The processing method according to claim 1, characterized in that, The processing method further includes: If the resolved address has not been removed, obtain the historical network quality of the resolved address within the most recent third time period; The second threshold is dynamically determined based on the historical network quality.

5. The processing method according to claim 4, characterized in that, The step of dynamically determining the second threshold based on the historical network quality includes: The average quality of all historical networks within the most recent third time period is taken; The second threshold is dynamically determined based on the average value.

6. The processing method according to claim 1, characterized in that, The processing method further includes: If the network quality is below the first threshold for a fourth consecutive time period without the resolved address being removed, then the resolved address is removed.

7. The processing method according to claim 1, characterized in that, The processing method further includes: Receive the user's tolerance threshold for the network quality; Set the tolerance threshold to the first threshold.

8. A processing apparatus for resolving addresses, characterized in that, include: The acquisition module is used to obtain the network quality of the resolution address corresponding to the domain name; The processing module is configured to, when the resolved address has been removed, restore the resolved address if the network quality is higher than a first threshold and lower than a second threshold for a continuous first time period, wherein the second threshold is less than 100% and the second threshold is greater than the first threshold; the removal refers to deleting the resolved address from the list of resolved addresses corresponding to the domain name; the restoration refers to adding the resolved address to the list of resolved addresses corresponding to the domain name.

9. A computer-readable medium having a computer program stored thereon, characterized in that, When executed by the processing device, the program implements the steps of the method described in any one of claims 1-7.

10. An electronic device, characterized in that, include: A storage device having at least one computer program stored thereon; At least one processing device is configured to execute the at least one computer program in the storage device to implement the steps of the method according to any one of claims 1-7.

Citation Information

Patent Citations

  • Communication network switching method and communication network switching device

    CN104902527A

  • Domain name local analysis method and device, equipment, medium and product

    CN115473871A