CDN provider switching method, system, device, product and storage medium
By building a CDN node library and using historical access information to manage CDN provider switching, we solve the problem of extra traffic and high costs caused by CDN node failure detection in the existing technology, achieve efficient and accurate CDN provider switching, and reduce costs. Switching costs and improved timeliness.
Patent Information
- Application Number
- CN202410865741.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2044-06-28
AI Technical Summary
Existing CDN provider switching methods generate additional traffic when detecting CDN node failures, increasing switching costs. Moreover, the cost of deploying test nodes is high, the detection accuracy is low, and the timeliness is not high.
By building a CDN node database, historical domain name access information is saved for matching and switching CDN nodes, reducing the number of dial tests and reducing traffic and costs.
Implemented CDN provider switching management based on historical access information, reduced extra traffic, lowered switching costs, and improved the timeliness and accuracy of switching.
Smart Images

Figure CN118433016B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of communication technology, and in particular to a CDN provider switching method, system, device, product and storage medium. Background Art
[0002] In order to provide end users with a better access experience, many Internet businesses usually use the acceleration service provided by CDN (Content Delivery Network) to deliver various network resources. However, this CDN-based resource delivery method is often affected by various CDN failures, such as CDN edge node service anomalies, CDN node network failures in a certain region, etc.
[0003] Some current technologies deploy multiple dial-up test nodes in different regions, and periodically initiate detection visits through the dial-up test nodes to detect whether the CDN nodes of the currently used CDN vendors are available. If a CDN node of a CDN vendor is detected to be faulty, the CDN vendor is switched to an alternative CDN vendor, so as to ensure that the acceleration service can be provided normally to the end users. However, in this dial-up test method, additional traffic is often generated, which increases the switching cost.
[0004] In view of this, methods that can reduce switching costs are urgently needed. Summary of the invention
[0005] In view of this, the embodiments of the present disclosure provide a CDN provider switching method, a CDN provider switching system, an electronic device, a computer program product and a computer-readable storage medium, which can reduce the additional traffic generated and reduce the switching cost when switching CDN providers.
[0006] On one hand, the present disclosure provides a method for switching a CDN provider, the method comprising:
[0007] Obtain a first CDN provider currently used by the target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name;
[0008] Searching for a second CDN node matching the first CDN node from a CDN node library, wherein the CDN node library is used to store CDN nodes that provide acceleration services for one or more domain names in historical domain name accesses and the node status of each CDN node when providing the acceleration service;
[0009] Determining the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library;
[0010] If the supplier status indicates that the first CDN supplier is abnormal, the first CDN supplier currently used by the target domain name is switched to a second CDN supplier.
[0011] In one aspect, the present disclosure provides a CDN provider switching system, the system comprising:
[0012] A CDN node acquisition module, used to acquire a first CDN provider currently used by a target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name;
[0013] A CDN node screening module, used to search a second CDN node matching the first CDN node from a CDN node library, wherein the CDN node library is used to store CDN nodes that provide acceleration services for one or more domain names in historical domain name accesses and the node status of each CDN node when providing acceleration services;
[0014] A supplier status determination module, configured to determine the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library;
[0015] The supplier switching module is used to switch the first CDN supplier currently used by the target domain name to a second CDN supplier if the supplier status indicates that the first CDN supplier is abnormal.
[0016] Another aspect of the present disclosure further provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method described above is implemented.
[0017] Another aspect of the present disclosure provides an electronic device, which includes a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method described above is implemented.
[0018] Another aspect of the present disclosure provides a computer program product, including a computer program, and when the computer program is executed by a processor, the method as described above is implemented.
[0019] In the technical solutions of some embodiments of the present disclosure, since the CDN node library stores the CDN nodes that provide acceleration services for one or more domain names in the domain name access that has occurred in the past and the node status of each CDN node when providing the acceleration service, after obtaining the first CDN node for providing the acceleration service for the target domain name, the supplier status of the first CDN supplier can be determined based on the historical node status of the second CDN node that matches the first CDN node in the CDN node library, and then based on the supplier status, it can be determined whether to switch the first CDN supplier currently used by the target domain name. This is to switch the CDN supplier currently used by the target domain name based on the historical domain name access information, which reduces the number of dial tests, so that when switching the CDN supplier, it can reduce the additional traffic generated and reduce the switching cost. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The features and advantages of the present disclosure will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present disclosure in any way. In the accompanying drawings:
[0021] Figure 1 A schematic diagram showing the principle of disaster recovery switching of CDN providers in some technologies;
[0022] Figure 2 The domain name access process in the CDN scenario is shown;
[0023] Figure 3 A schematic diagram showing the relationship between a domain name and a CDN node under a CDN provider;
[0024] Figure 4 A schematic diagram of a switching method provided by an embodiment of the present disclosure is shown;
[0025] Figure 5 An interactive schematic diagram of disaster recovery switching of a CDN provider used by a newly configured domain name provided by an embodiment of the present disclosure is shown;
[0026] Figure 6 A schematic diagram of a module of a switching system provided by an embodiment of the present disclosure is shown;
[0027] Figure 7 A schematic diagram of an electronic device provided by an embodiment of the present disclosure is shown. DETAILED DESCRIPTION
[0028] In order to make the purpose, technical solutions and advantages of the embodiments of the present disclosure clearer, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the drawings in the embodiments of the present disclosure. Obviously, the described embodiments are part of the embodiments of the present disclosure, not all of the embodiments. Based on the embodiments of the present disclosure, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present disclosure.
[0029] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0030] Combined with reference Figure 1 , which is a schematic diagram of the principle of disaster recovery switching of CDN providers in some technologies. Figure 1 In the context of CDN, a domain name refers to an identifier used to locate the location of a network resource when a client accesses the network resource. Each CDN provider includes multiple CDN nodes (also known as edge nodes), which can be used to provide acceleration services for domain names. The principle of CDN-based domain name acceleration is as follows: when setting up the DNS (Domain Name System), the domain name is pointed to the CNAME provided by the CDN provider through an alias record. In this way, access requests for the domain name can be introduced into the CDN provider's network, so that the client can obtain the network resources under the domain name from one of the CDN nodes in the region, without having to obtain network resources from a distant source station. In this way, domain name acceleration is achieved.
[0031] In order to prevent the CDN nodes of CDN suppliers from failing, under normal circumstances, CDN nodes of multiple CDN suppliers can be used to provide acceleration services for domain names through disaster recovery switching. Specifically, the multiple CDN suppliers can be divided into common CDN suppliers and cold standby CDN suppliers. The disaster recovery switching system can issue a dial test task to each dial test node, and the dial test node regularly sends a dial test message to each CDN node under the common CDN supplier and the cold standby CDN supplier to obtain communication indicators used to characterize communication quality, such as TCP connection establishment time, etc. Each dial test node can report these acquired communication indicators as dial test results to the disaster recovery switching system. The disaster recovery switching system can determine whether the CDN nodes of the common CDN supplier and the cold standby CDN supplier fail by analyzing the dial test results reported by the dial test node. Among them, when it is determined that the CDN node of the common CDN supplier is normal, the domain name can be pointed to the CNAME of the common CDN supplier through DNS settings to preferentially provide acceleration services for the domain name through the CDN node of the common CDN supplier. However, when it is determined that the CDN node of the common CDN provider is faulty and the CDN node of the cold CDN provider is normal, the DNS settings can be modified to point the domain name to the CNAME of the cold CDN provider so that the CDN node of the cold CDN provider can provide acceleration services for the domain name. In this way, the stability of the acceleration service can be guaranteed. However, the above solution has the following problems:
[0032] 1) Each dial-up test node needs to periodically dial-up the CDN node. This process generates additional traffic and increases switching costs.
[0033] 2) It is necessary to deploy a large number of dial-up test nodes in multiple different regions, and the deployment cost of the dial-up test nodes is high;
[0034] 3) Based on cost considerations, usually only one or a few representative dial-up test nodes are deployed or selected in a region. The CDN nodes that can be detected by a few dial-up test nodes are relatively limited. That is, the dial-up test results of these dial-up test nodes cannot truly represent the availability of all CDN nodes in a region. Therefore, it is easy to cause disaster recovery false switching or missed switching, and the accuracy is low;
[0035] 4) Since the network where the dial-up test node is located has jitter, in order to ensure detection accuracy, the CDN node failure is usually determined only after a preset number of consecutive dial-up test failures on a dial-up test node. Therefore, in the above solution, it takes a long time from the actual failure of the CDN node to the completion of the disaster recovery switch, and the timeliness is not high.
[0036] In order to solve the above problems, refer to Figure 2 ,This disclosure first analyzes the domain name access process in the CDN scenario. Figure 2 It can be seen that the domain name access process in the CDN scenario can include five stages: DNS resolution, TCP connection establishment and SSL connection establishment, data transmission and data response. In these five stages, the failures that may occur mainly include:
[0037] 1) DNS resolution failure of the domain name;
[0038] 2) TCP network connection failure of CDN node;
[0039] 3) Service-level failures, such as HTTP responses returning a 500 status code.
[0040] Among them, the above-mentioned TCP network connection failure is the most frequent failure, which is a layer 4 network failure.
[0041] Based on the above description, the present disclosure further analyzes TCP network connection failures in CDN scenarios. Figure 3 , is a diagram showing the relationship between domain names and CDN nodes under CDN providers. Figure 3 It can be seen that CDN nodes under different CDN providers can provide acceleration services for the same domain name, and the same CDN node can provide acceleration services for different domain names. Among them, when a CDN node provides acceleration services for different domain names at the same time, if the operator network used is the same, then the four-layer network data information between the client that initiates the access request for these domain names and the CDN node is consistent.
[0042] Based on the above description, it is assumed that the CDN nodes that provide acceleration services for domain name A and domain name B are the same. First, since Layer 4 network failures are the most frequent failures, if the client fails to access domain name A, it can be reasonably inferred that a Layer 4 network failure has occurred. Second, since the Layer 4 network data information when the client accesses domain name A and domain name B is consistent, if the client fails to access domain name A, the client will also fail to access domain name B.
[0043] In short, when the same CDN node provides acceleration services for multiple different domain names based on the same operator's network, if the client fails to access one of the domain names, the client will also fail to access other domain names.
[0044] According to the above principle, the present disclosure provides a CDN supplier switching method, which can solve Figure 1Problems with the scheme shown. Among them, the switching method can be implemented based on the CDN node library. Therefore, before executing the switching method disclosed in the present invention, the construction of the CDN node library can be completed first. Specifically, the CDN node library can be used to save the CDN nodes that provide acceleration services for one or more domain names in the domain name access that has occurred in the history, and the node status of each CDN node when providing acceleration services. The so-called node status refers to the communication quality indicator when the CDN node communicates with the client, such as the connection establishment time and connection success rate between the CDN node and the client, the HTTP status code returned by the CDN node to the client, etc. Among them, the connection establishment time can also be called the TCP connection time, and the connection success rate can also be called the TCP connection success rate. Based on the node status of the CDN node when providing acceleration services, it is possible to judge the quality of communication between the CDN node and the client, and then it can be judged whether the CDN node has a fault. The following explains how to build a CDN node library.
[0045] 1) For domain name accesses that have occurred in the past, the following information can be obtained for each domain name access: the region where the client that initiated the domain name access is located, the operator used by the client, the domain name accessed, the IP address of the CDN node that provides acceleration services for the domain name, the CDN provider to which the CDN node belongs, the region where the CDN node is located, the operator used by the CDN node, the connection duration between the CDN node and the client, whether the connection between the CDN node and the client is successful, the HTTP status code returned by the CDN node, etc.
[0046] 2) Clean the acquired domain name access information to ensure data accuracy. For example, in the acquired domain name access information, the connection duration of a domain name access is several hours or a negative value. Obviously, this is not in line with the actual situation. Therefore, the data of this domain name access can be removed to ensure data accuracy.
[0047] 3) The acquired domain name access information is counted according to the specified statistical period and statistical dimension to obtain multiple domain name access records in the CDN node library.
[0048] Specifically, in the embodiment shown in the present disclosure, the statistical cycle can be 1 minute, and the statistical dimensions can include the region where the client that initiates the domain name access is located, the operator used by the client, the domain name accessed, the IP of the CDN node that provides acceleration services for the domain name, the CDN supplier to which the CDN node belongs, the region where the CDN node is located, the operator used by the CDN node, etc. Based on the above description, the final CDN node library can be similar to that shown in Table 1:
[0049] Table 1 CDN node library
[0050]
[0051] In Table 1, the CDN node library includes the node status of the CDN node in multiple statistical periods. The node status includes the connection establishment time between the CDN node and the client that initiates the domain name access, the connection establishment success rate between the CDN node and the client, and the number of requests for the CDN node. Among them, the connection establishment time can be obtained by averaging the connection establishment time of multiple domain name accesses in a statistical period; the connection success rate can be obtained based on the number of successful connections and the total number of requests in a statistical period. For example, in a statistical period, a CDN node is requested 5 times, of which 3 connections are successful and 2 connections fail, then the connection success rate is 60%; the number of requests can be obtained by counting the number of times the CDN node is requested in a statistical period.
[0052] After the CDN node library is built, under normal circumstances, most or all CDN nodes under each CDN provider can be located in the CDN node library, and the node status of each CDN node in the CDN node library is dynamically updated according to the statistical cycle. The so-called dynamic update is to count the information of the domain name access that has occurred in real time according to the statistical cycle.
[0053] This completes the CDN node library construction instructions.
[0054] Based on the CDN node library that has been built, the switching method disclosed in this disclosure can be executed. The switching method can be applied to Figure 1 The disaster recovery switching system in the system, or the electronic device used to run the disaster recovery switching system. The electronic device includes but is not limited to a tablet computer, a laptop computer, a desktop computer, a server, etc. Figure 4 , which is a flow chart of a switching method provided in one embodiment of the present disclosure. Figure 4 In the switching method, the switching method includes the following steps:
[0055] Step S41, obtaining a first CDN provider currently used by the target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name.
[0056] Specifically, the target domain name may be a domain name pre-configured in the disaster recovery switching system. The disaster recovery switching system performs disaster recovery switching management for the CDN providers used by these configured domain names. The CDN node library may include or exclude the domain name access record of the target domain name. When the CDN node library does not include the domain name access record of the target domain name, it means that the target domain name is a new domain name that has not been accessed, or a domain name for which domain name access information has not yet been obtained.
[0057] By performing DNS resolution on the target domain name, you can get the CNAME pointed to by the target domain name. The CDN provider represented by the CNAME is the first CDN provider currently used by the target domain name. By performing DNS resolution on the CNAME of the first CDN provider, you can get the IP of the first CDN node under the first CDN provider that provides acceleration services for the target domain name.
[0058] In this embodiment, the first CDN provider currently used by the target domain name can be divided according to the dimension of region + operator. Under different regions + operators, the first CDN provider used by the target domain name may not be exactly the same. For example, under region A + operator A and region B + operator B, the first CDN provider used by the target domain name is CDN provider A; under region A + operator B, the first CDN provider used by the target domain name is CDN provider B.
[0059] In step S41, one or more first CDN providers may be screened and obtained, and each first CDN provider may have one or more first CDN nodes for providing acceleration services for the target domain name.
[0060] Step S42: searching the CDN node library for a second CDN node that matches the first CDN node.
[0061] In this embodiment, for any first CDN node, a CDN node with the same IP, CDN supplier, region and operator as the first CDN node can be searched from the CDN node library, and the found CDN node is used as the second CDN node matching the first CDN node. For example. Assume that one of the first CDN nodes A obtained in step S41 is located under CDN supplier A+region A+operator A, and the IP is 1.1.1.1. Assume that there is a domain name access record similar to that shown in Table 2 in the CDN node library:
[0062] Table 2 CDN node library
[0063]
[0064] In Table 2, for the domain name access record with a statistical period of "202209031208", its operator, CDN node IP and CDN supplier are all different from the first CDN node A, so the CDN node in this domain name access record cannot be used as the second CDA node matching the first CDN node A. However, for the two domain name access records with statistical periods of "202209031206" and "202209031207", they have the same IP, CDN supplier, region and operator as the first CDN node A, so the CDN nodes in these two records can be used as the second CDA node matching the first CDN node A.
[0065] Since the CDN node library includes most of the CDN nodes under each CDN provider, for some or all of the first CDN nodes, a matching second CDN node can be found in the CDN node library. Of course, there may be some first CDN nodes that cannot be matched by a matching second CDN node in the CDN node library.
[0066] Step S43: Determine the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library.
[0067] The supplier status is used to indicate whether the first CDN supplier is in a normal state. If the first CDN supplier is in a normal state, it means that the first CDN node under the first CDN supplier is not faulty and can provide acceleration services for the target domain name normally; if the first CDN supplier is in an abnormal state, it means that the first CDN node of the first CDN supplier is faulty and cannot provide acceleration services for the target domain name. It can be seen that to determine the supplier status, it is first necessary to determine whether the first CDN node is faulty.
[0068] Specifically, through the above step S42, it can be understood that the first CDN node and the second CDN node can be understood as the same CDN node. Since the same CDN node provides acceleration services for different domain names based on the same operator network, if the access to one of the domain names fails, the access to other domain names will also fail. Therefore, regardless of whether the target domain name is located in the CDN node library, the historical node status of the second CDN node in the CDN library can be used to measure the historical ability of the first CDN node to provide acceleration services for the target domain name. The historical ability of the first CDN node to provide acceleration services for the target domain name can be used to measure the current ability of the first CDN node to provide acceleration services for the target domain name. Based on the current ability of the first CDN node to provide acceleration services for the target domain name, it can be determined whether the first CDN node has a fault, and then the supplier status of the first CDN supplier can also be determined.
[0069] For example, according to the node status of the second CDN node in the CDN library, it is found that in the domain name access that occurred before the current time point, the client and the second CDN node failed to connect, or the connection success rate was too low. Then it can be determined that before the current time point, the first CDN node cannot provide acceleration services for the target domain name. It can be reasonably inferred that the first CDN node is also unable to provide acceleration services for the target domain name, that is, the first CDN node is faulty. In this way, it can be determined that the first CDN supplier is abnormal.
[0070] In step S43, the supplier status of the first CDN supplier in each region + operator can be determined according to the dimension of region + operator. For example, the supplier status of the first CDN supplier in region A + operator A is determined according to the node status of the second CDN node in region A + operator A in the CDN node library; the supplier status of the first CDN supplier in region B + operator B is determined according to the node status of the second CDN node in region B + operator B in the CDN node library.
[0071] Step S44: If the supplier status indicates that the first CDN supplier is abnormal, the first CDN supplier currently used by the target domain name is switched to a second CDN supplier.
[0072] Specifically, the first CDN supplier currently used by the target domain name can be switched according to the dimension of region + operator. For example, if the first CDN supplier is abnormal in region A + operator A, the first CDN supplier currently used by the target domain name can be switched to the second CDN supplier in region A + operator A. In this way, it is avoided to switch the CDN supplier used by the target domain name on a large scale, and it is ensured that the first CDN node can still be used preferentially in the area where the first CDN supplier is normal to provide acceleration services for the target domain name.
[0073] In summary, in the technical solutions of some embodiments of the present disclosure, firstly, since the CDN node library saves the CDN nodes that provide acceleration services for one or more domain names in the domain name access that has occurred in the past and the node status of each CDN node when providing the acceleration service, after obtaining the first CDN node for providing the acceleration service for the target domain name, the supplier status of the first CDN supplier can be determined based on the historical node status of the second CDN node that matches the first CDN node in the CDN node library, and then according to the supplier status, it can be determined whether to switch the first CDN supplier currently used by the target domain name. This is to switch the CDN supplier currently used by the target domain name based on the historical domain name access information, which reduces the number of dial tests, so that when switching the CDN supplier, it can reduce the additional traffic generated and reduce the switching cost.
[0074] Secondly, in the method disclosed in the present invention, even if the target domain name does not have corresponding domain name access information in the disaster recovery switching system, disaster recovery switching management can be performed for the CDN provider used by the target domain name, which is more applicable.
[0075] Thirdly, the method disclosed in the present invention determines the supplier status of the first CDN supplier based on historical domain name access information, so there is no need to deploy dial-up test nodes or only a small number of dial-up test nodes, which greatly reduces the deployment cost of dial-up test nodes. At the same time, it avoids the problem of low timeliness of disaster recovery switching caused by network jitter, making disaster recovery switching more timely.
[0076] Finally, the CDN nodes in the CDN node library of the present invention can be relatively comprehensive. For all or most of the first CDN nodes, a matching second CDN node can be found in the CDN node library, so that a comprehensive node status analysis can be performed on the first CDN node under the first CDN supplier, making the determined supplier status more accurate.
[0077] The scheme of the present disclosure is further described below.
[0078] In some embodiments, obtaining the first CDN provider currently used by the target domain name and the first CDN node under the first CDN provider for providing acceleration services for the target domain name in step S41 may include:
[0079] 1) Get the client IP used to access the target domain name.
[0080] Specifically, according to the dimension of region + operator, one or more IPs can be obtained from each operator in each region as the client IP. For example, IP1 and IP2 can be obtained from operator A in region A, IP3 and IP4 can be obtained from operator B in region A, IP5 and IP6 can be obtained from operator A in region B, and so on.
[0081] 2) Based on the client IP and target domain name, build and send a domain name resolution request.
[0082] In this step, the domain name switching system simulates the scenario in which the client accesses the target domain name based on the client IP and the target domain name. The domain name switching system can send a domain name resolution request to the domain name resolution server based on the HTTPDNS protocol or the EDNS protocol. The domain name resolution request can include the client IP and the target domain name. Based on the received client IP, the domain name resolution server can determine the region A where the client is located and the operator network A used, and then determine the CNAME currently pointed to by the target domain name under the corresponding region A+operator A. This CNAME is the CNAME of the first CDN provider currently used by the target domain name under region A+operator A. By resolving the CNAME again, the IP of one of the first CDN nodes under the first CDN provider that provides acceleration services for the target domain name can be obtained.
[0083] 3) Extracting the first CDN node and the first CDN provider from the response message of the domain name resolution request.
[0084] Specifically, the response message may include the CNAME of the first CDN supplier resolved by the domain name resolution server and the IP of one of the first CDN nodes under the first CDN supplier. Since the first CDN supplier may include multiple first CDN nodes for providing acceleration services for the target domain name in one region + operator, and the disaster recovery switching system can only obtain the IP of one of the first CDN nodes each time it sends a domain name resolution request. Obviously, the IP of the first CDN node obtained in this way is incomplete. Therefore, the disaster recovery switching system can repeatedly send domain name resolution requests based on the same client IP and target domain name, and can obtain all or most of the first CDN nodes of the first CDN supplier in one region + operator for providing acceleration services for the target domain name. For example, suppose that a client IP1 is obtained under operator A in region A. Based on IP1 and the target domain name, by repeatedly constructing and sending domain name resolution requests, the IPs of multiple first CDN nodes used by the first CDN supplier to provide acceleration services for the target domain name under operator A in region A can be obtained.
[0085] So far, it is explained how to obtain the first CDN provider currently used by the target domain name, and the first CDN node under the first CDN provider for providing acceleration service for the target domain name.
[0086] In some embodiments, according to the description of Table 1, the CDN node library may include the node status of each second CDN node in multiple statistical periods. Therefore, determining the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library in step S43 may include:
[0087] Determine whether each second CDN node fails according to the node status of the second CDN node in the last statistical period;
[0088] If, among the second CDN nodes, the proportion of the failed second CDN nodes exceeds the first proportion threshold, it is determined that the first CDN provider is abnormal.
[0089] Specifically, the last statistical cycle refers to the statistical cycle closest to the current time point. Since the last statistical cycle is closest to the current time point, the node state of the second CDN node in the last statistical cycle can be relatively close to the node state of the second CDN node at the current time point. In this way, the result of determining whether the second CDN node fails can also be used to measure whether the second CDN node fails at the current time point.
[0090] It should be noted that in the CDN node library, the second CDN node with the same region + CDN supplier + operator + IP can be considered to be the same second CDN node. If a second CDN node has multiple domain name access records in the last statistical period, the node status in these domain name access records can be comprehensively calculated (such as average calculation, weighted calculation), and based on the results of the comprehensive calculation, it can be determined whether the second CDN node has a fault. For ease of understanding, assume that the last statistical period is "202209031206", combined with the CDN node library in Table 3:
[0091] Table 3 CDN node library
[0092]
[0093] Assuming that the CDN nodes in Table 3 are all the second CDN nodes found, then the two second CDN nodes under region A+CDN supplier A+operator A+1.1.1.1 can be considered to be the same second CDN node A, and the second CDN node under region A+CDN supplier B+operator B+1.1.1.1 can be considered to be another second CDN node B. Taking the second CDN node A under region A+CDN supplier A+operator A+1.1.1.1 as an example, the node status in the two domain name access records under the second CDN node A can be comprehensively evaluated (for example, the average of each node status is calculated separately) to determine whether the second CDN node A has a fault. If the proportion of the faulty second CDN nodes exceeds the first proportion threshold, it can be determined that the first CDN supplier is abnormal.
[0094] In some embodiments, according to the description of the CDN node library, the node status may include the duration of the connection between the second CDN node and the client that initiated the domain name access. Therefore, the above-mentioned determination of whether each second CDN node fails according to the node status of the second CDN node in the last statistical cycle may include:
[0095] For one of the second CDN nodes, if the duration of the connection between the CDN node and the client in the last statistical period exceeds a duration threshold, it is determined that the CDN node fails.
[0096] Since the connection establishment time is an indicator of the communication quality between the client and the CDN node, determining whether the second CDN node fails based on the connection establishment time is more accurate.
[0097] Specifically, referring to the second CDN node in region A+CDN provider A+operator A+1.1.1.1 in Table 3, if a second CDN node has multiple domain name access records in the last statistical period, the connection durations in the multiple domain name access records can be comprehensively calculated (such as average calculation, weighted calculation). If the result obtained by the comprehensive calculation exceeds the duration domain name, it is determined that the second CDN node is faulty.
[0098] In some embodiments, the above duration threshold may be obtained based on the following method:
[0099] For one of the second CDN nodes, the average duration of the connection between the CDN node and the client in multiple statistical periods is calculated, and the calculated result is used as the duration threshold for fault judgment of the CDN node.
[0100] For example, the connection establishment time of the second CDN node A in multiple statistical periods is averaged to obtain a time threshold for fault judgment on the second CDN node A; the connection establishment time of the second CDN node B in multiple statistical periods is averaged to obtain a time threshold for fault judgment on the second CDN node B.
[0101] The multiple statistical periods used to calculate the duration threshold may be N consecutive statistical periods before the last statistical period. N is an integer that can be determined according to actual conditions. For example, assuming that the last statistical period is the Kth statistical period, the multiple statistical periods used to calculate the duration threshold may be the K-1th, K-2th, and K-3th statistical periods. K is an integer.
[0102] In the above embodiment, the duration threshold for fault judgment of the corresponding second CDN node is determined respectively according to the connection duration of each second CDN node in multiple statistical periods. In this way, the setting of the duration threshold is more in line with the actual situation of each second CDN node, and the result of fault judgment is more accurate. For example, for the second CDN node A, under normal circumstances, its connection duration is 0.5 seconds, but for the second CDN node B, under normal circumstances, its connection duration is 0.3 seconds. If the second CDN node A and the second CDN node B share the same duration threshold, it is very likely that a fault will be misjudged for one of the second CDN nodes. For example, when the duration threshold is 0.4 seconds, the second CDN node B can be accurately judged as faulty, but it is very likely that a fault will be misjudged for the second CDN node A.
[0103] In some embodiments, according to the description of the CDN node library, the node status may include a connection success rate between the second CDN node and the client; therefore, the above-mentioned determining whether each second CDN node fails according to the node status of the second CDN node in the last statistical period includes:
[0104] For one of the second CDN nodes, if the connection establishment success rate of the CDN node with the client in the last statistical period is lower than the success rate threshold, it is determined that the CDN node fails.
[0105] This process is similar to the above process of determining whether the second CDN node is faulty based on the connection establishment time, and will not be described in detail here.
[0106] In some embodiments, it can be known from the relevant description of step S42 that when searching for a second CDN node that matches the first CDN node from the CDN node library, there may be some first CDN nodes that cannot find a matching second CDN node from the CDN node library. It is understandable that if there are more first CDN nodes and a matching second CDN node cannot be found from the CDN node library, then the node status of the second CDN node cannot objectively reflect the node status of the first CDN node as a whole, and the supplier status determined based on the node status of the second CDN node is also inaccurate. In view of this, determining the supplier status of the first CDN supplier based on the node status of the second CDN node in the CDN node library in step S43 may include:
[0107] In the case where some of the first CDN nodes match the CDN nodes in the CDN node library, obtaining a first number of first CDN nodes that have a matching relationship with the CDN nodes in the CDN node library, and obtaining a second number of first CDN nodes that do not have a matching relationship with the CDN nodes in the CDN node library;
[0108] When the ratio of the first quantity to the second quantity reaches a second proportion threshold, the supplier status of the first CDN supplier is determined according to the node status of the second CDN node in the CDN node library.
[0109] The ratio of the first number to the second number may also be referred to as the coverage rate of the first CDN node in the CDN node library.
[0110] The second ratio threshold value may be set according to actual conditions, such as 80%. When the ratio of the first number to the second number reaches the second ratio threshold value, it indicates that there are more first CDN nodes that match the CDN nodes in the CDN node library, the coverage rate of the first CDN nodes in the CDN node library is higher, and the second CDN nodes can accurately determine the node status of the first CDN nodes as a whole. Therefore, the supplier status of the first CDN supplier may be determined only based on the node status of the second CDN nodes in the CDN node library.
[0111] However, when the ratio of the first quantity to the second quantity does not reach the second proportion threshold, the determining the supplier status of the first CDN supplier may include:
[0112] Sending a dialing test message to at least some of the first CDN nodes to obtain a communication indicator for characterizing communication quality;
[0113] Based on the communication indicator, generate a dial test result indicating whether the first CDN node is faulty;
[0114] The supplier status of the first CDN supplier is determined according to the dial test result and the node status of the second CDN node in the CDN node library.
[0115] For more information, see Communication Indicators. Figure 1 The detection result can be used to assist in determining the supplier status. Therefore, when sending a dial test message to the first CDN node, a small number of first CDN nodes can be selected for detection, without detecting all first CDN nodes. It should be noted that the disclosed solution will only detect when the ratio of the first number to the second number does not reach the second proportion threshold. Therefore, compared with Figure 1 The solution shown can still greatly reduce the additional traffic generated during disaster recovery switching management.
[0116] In the above embodiment, the dialing test result may include the node status of each first CDN node obtained by detection, and the node status obtained by dialing test and the node status of the second CDN node in the CDN node library may be fused and calculated to determine the supplier status of the first CDN supplier, so as to improve the accuracy of the determined supplier status.
[0117] Furthermore, the ratio of the first number to the second number under each region + operator can be counted according to the dimension of region + operator, and the dial test of the first CDN node can be performed for the specific region and specific operator whose ratio of the first number to the second number does not reach the second proportion threshold. For example, take region A + operator A as an example. The first CDN node under region A + operator A can be obtained first. For the convenience of distinguishing the description, the first CDN node under region A + operator A will be referred to as the regional CDN node in the following. Based on the regional CDN node, the first number of regional CDN nodes that have a matching relationship with the CDN nodes in the CDN node library can be obtained, and the second number of regional CDN nodes that do not have a matching relationship with the CDN nodes in the CDN node library can be obtained. When the ratio of the first number to the second number does not reach the second proportion threshold, some regional CDN nodes under region A + operator A are detected (i.e., a detection message is sent). In this way, the number of dial tests can be reduced, and the additional traffic generated during the disaster recovery switching management process can be reduced.
[0118] In some embodiments, according to the description of the CDN node library, the node status of the second CDN node in the CDN node library is dynamically updated according to the statistical period. After switching the first CDN provider currently used by the target domain name to the second CDN provider, the method of the present disclosure may also include:
[0119] Re-determine the supplier status of the first CDN supplier according to the latest node status of the second CDN node in the CDN node library;
[0120] If the re-determined supplier status indicates that the first CDN supplier is normal, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
[0121] The process of re-determining the supplier status according to the latest node status is similar to the above description and will not be repeated here.
[0122] Similarly, the supplier status of the first CDN supplier in each region + operator can be re-determined according to the dimension of region + operator. If the supplier status of the first CDN supplier in one of the regions + operators becomes normal, the second CDN supplier currently used by the target domain name in the region + operator is switched to the first CDN supplier. In this way, the target domain name can use the first CDN supplier in a timely manner in the region + operator.
[0123] In some embodiments, re-determining the supplier status of the first CDN supplier according to the latest node status of the second CDN node in the CDN node library may include:
[0124] Determine whether each second CDN node fails according to the latest node status of the second CDN node in the CDN node library;
[0125] If, among the second CDN nodes, the proportion of the second CDN nodes that have not failed exceeds a second proportion threshold, it is determined that the first CDN provider is normal.
[0126] The relevant principle is similar to the above-mentioned how to determine that the first CDN provider is abnormal, and will not be repeated here.
[0127] Further, in some embodiments, the switching of the second CDN provider currently used by the target domain name to the first CDN provider may include:
[0128] In each statistical period after the first CDN supplier is switched to the second CDN supplier, the supplier status of the first CDN supplier is re-determined;
[0129] If the re-determined supplier status indicates that the first CDN supplier is normal in multiple consecutive statistical periods, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
[0130] For example, after switching from the first CDN provider to the second CDN provider, if the re-determined provider status indicates that the first CDN provider is normal within 5 consecutive statistical periods, the second CDN provider currently used by the target domain name will be switched to the first CDN provider. In this way, it can be ensured that the CDN provider is switched after the first CDN node under the first CDN provider is stable, avoiding frequent switching between CDN providers.
[0131] Combined with reference Figure 5 , is an interactive schematic diagram of disaster recovery switching of a CDN provider used by a newly configured domain name provided by an embodiment of the present disclosure.
[0132] Figure 5 In the above, a configured domain name refers to a domain name that is configured in the disaster recovery switching system and has obtained domain name access information. A newly configured domain name refers to a domain name that is configured in the disaster recovery switching but has not obtained domain name access information. The disaster recovery switching system provides quality center services and disaster recovery switching services.
[0133] The principle of disaster recovery switching for the CDN provider used by the newly configured domain name can be as follows:
[0134] 1) If the client initiates a domain name access to a configured domain name, the domain name access information of the configured domain name can be obtained, and the domain name access information can be cleaned and counted, and then saved in the CDN node library;
[0135] 2) The quality center service calculates the communication quality indicators when the client communicates with each CDN node, such as the connection establishment time and connection establishment success rate, based on the domain name access information in the CDN node library;
[0136] 3) The quality center service obtains the first CDN provider currently used by the newly configured domain name and the first CDN node under the first CDN provider for providing acceleration services for the newly configured domain name, and determines the second CDN node matching the first CDN node in the CDN node library, as well as the coverage rate of the first CDN node in the CDN node library;
[0137] 4) When the coverage rate of the first CDN node in the CDN node database is low, the quality center service can send a dial test task to the dial test node through the disaster recovery switching service, and the dial test node performs dial tests on some of the first CDN nodes to obtain the communication quality index of the communication with the first CDN node;
[0138] 5) The quality center service receives the communication quality indicators through the disaster recovery switch service;
[0139] 6) If the coverage rate of the first CDN node in the CDN node library is low, the quality center service determines whether the first CDN supplier currently used by the newly configured domain name is abnormal based on the communication quality index and the node status of the second CDN node in the CDN node library; if the coverage rate of the first CDN node in the CDN node library is high, the quality center service determines whether the first CDN supplier currently used by the newly configured domain name is abnormal based on the node status of the second CDN node in the CDN node library;
[0140] 7) If the quality center service determines that the first CDN provider currently used by the newly configured domain name is abnormal, the disaster recovery switching service switches the first CDN provider currently used by the newly configured domain name to the second CDN provider.
[0141] Corresponding to the CDN provider switching method, the present disclosure also provides a CDN provider switching system. Figure 6 , which is a module diagram of a switching system provided by an embodiment of the present disclosure. Figure 6 In the switching system, the switching system includes:
[0142] A CDN node acquisition module, used to acquire a first CDN provider currently used by a target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name;
[0143] A CDN node screening module, used to search a second CDN node matching the first CDN node from a CDN node library, wherein the CDN node library is used to store CDN nodes that provide acceleration services for one or more domain names in historical domain name accesses and the node status of each CDN node when providing acceleration services;
[0144] A supplier status determination module, used to determine the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library;
[0145] The supplier switching module is used to switch the first CDN supplier currently used by the target domain name to a second CDN supplier if the supplier status indicates that the first CDN supplier is abnormal.
[0146] In some embodiments, the CDN node library includes node status of each second CDN node in multiple statistical periods; the supplier status determination module is specifically used to:
[0147] Determine whether each second CDN node fails according to the node status of the second CDN node in the last statistical period;
[0148] If, among the second CDN nodes, the proportion of the failed second CDN nodes exceeds the first proportion threshold, it is determined that the first CDN provider is abnormal.
[0149] In some embodiments, the node status includes the duration of the connection between the second CDN node and the client that initiates the domain name access; the supplier status determination module is specifically used to:
[0150] For one of the second CDN nodes, if the duration of the connection between the CDN node and the client in the last statistical period exceeds a duration threshold, it is determined that the CDN node fails.
[0151] In some embodiments, the supplier status determination module is specifically configured to determine the duration threshold based on the following method:
[0152] For one of the second CDN nodes, the average duration of the connection between the CDN node and the client in multiple statistical periods is calculated, and the calculated result is used as the duration threshold for fault judgment of the CDN node.
[0153] In some embodiments, the node status includes a connection success rate between the second CDN node and the client; the supplier status determination module is specifically used to:
[0154] For one of the second CDN nodes, if the connection establishment success rate of the CDN node with the client in the last statistical period is lower than the success rate threshold, it is determined that the CDN node fails.
[0155] In some embodiments, the supplier status determination module is specifically configured to:
[0156] In the case where some of the first CDN nodes match the CDN nodes in the CDN node library, obtaining a first number of first CDN nodes that have a matching relationship with the CDN nodes in the CDN node library, and obtaining a second number of first CDN nodes that do not have a matching relationship with the CDN nodes in the CDN node library;
[0157] When the ratio of the first quantity to the second quantity reaches a second proportion threshold, the supplier status of the first CDN supplier is determined according to the node status of the second CDN node in the CDN node library.
[0158] In some embodiments, when the ratio of the first quantity to the second quantity does not reach the second proportion threshold, the supplier status determination module is specifically configured to:
[0159] Sending a dialing test message to at least some of the first CDN nodes to obtain a communication indicator for characterizing communication quality;
[0160] Based on the communication indicator, generate a dial test result indicating whether the first CDN node is faulty;
[0161] The supplier status of the first CDN supplier is determined according to the dial test result and the node status of the second CDN node in the CDN node library.
[0162] In some embodiments, the node status of the second CDN node in the CDN node library is dynamically updated according to a statistical period; after the first CDN provider currently used by the target domain name is switched to the second CDN provider, the provider switching module is specifically used to:
[0163] Re-determine the supplier status of the first CDN supplier according to the latest node status of the second CDN node in the CDN node library;
[0164] If the re-determined supplier status indicates that the first CDN supplier is normal, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
[0165] In some embodiments, the supplier switching module is specifically configured to:
[0166] In each statistical period after the first CDN supplier is switched to the second CDN supplier, the supplier status of the first CDN supplier is re-determined;
[0167] If the re-determined supplier status indicates that the first CDN supplier is normal in multiple consecutive statistical periods, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
[0168] In some embodiments, the supplier switching module is specifically configured to:
[0169] Determine whether each second CDN node fails according to the latest node status of the second CDN node in the CDN node library;
[0170] If, among the second CDN nodes, the proportion of the second CDN nodes that have not failed exceeds a second proportion threshold, it is determined that the first CDN provider is normal.
[0171] In some embodiments, the CDN node acquisition module is specifically used to:
[0172] Get the client IP used to access the target domain name;
[0173] Based on the client IP and target domain name, build and send a domain name resolution request;
[0174] The first CDN node and the first CDN provider are extracted from the response message of the domain name resolution request.
[0175] In some embodiments, the CDN node screening module is specifically used to:
[0176] For any first CDN node, a CDN node with the same IP, CDN provider, region and operator as the first CDN node is searched from the CDN node library, and the found CDN node is used as a second CDN node matching the first CDN node.
[0177] See also Figure 7 , is a schematic diagram of an electronic device provided by an embodiment of the present disclosure. The electronic device includes a processor and a memory, the memory is used to store a computer program, and when the computer program is executed by the processor, the above method is implemented.
[0178] The processor may be a central processing unit (CPU). The processor may also be other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or a combination of the above chips.
[0179] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.
[0180] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
[0181] An embodiment of the present disclosure further provides a computer-readable storage medium, where the computer-readable storage medium is used to store a computer program. When the computer program is executed by a processor, the above method is implemented.
[0182] The present disclosure also provides a computer program product, including a computer program, and when the computer program is executed by a processor, the above method is implemented.
[0183] Although the embodiments of the present disclosure have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present disclosure, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for switching CDN providers. It is characterized in that The method comprises: Obtain a first CDN provider currently used by the target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name; Searching for a second CDN node matching the first CDN node from a CDN node library, wherein the CDN node library is used to store CDN nodes that provide acceleration services for one or more domain names in historical domain name accesses and the node status of each CDN node when providing the acceleration service; Determine, according to the node status of the second CDN node in the CDN node library, the supplier status of the first CDN supplier, wherein the supplier status indicates whether the first CDN node under the first CDN supplier fails; If the supplier status indicates that the first CDN supplier is abnormal, the first CDN supplier currently used by the target domain name is switched to a second CDN supplier.
2. The method according to claim 1, It is characterized in that The CDN node library includes node status of each of the second CDN nodes in multiple statistical periods; The determining the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library includes: Determine whether each of the second CDN nodes fails according to the node status of the second CDN node in the last statistical period; If, among the second CDN nodes, the proportion of the faulty second CDN nodes exceeds a first proportion threshold, it is determined that the first CDN provider is abnormal.
3. The method according to claim 2, It is characterized in that The node status includes the duration of the connection between the second CDN node and the client that initiates the domain name access; The determining, according to the node status of the second CDN node in the last statistical period, whether each of the second CDN nodes fails includes: For one of the second CDN nodes, if the duration of the connection between the CDN node and the client in the last statistical period exceeds a duration threshold, it is determined that the CDN node fails.
4. The method according to claim 3, It is characterized in that The duration threshold is obtained based on the following method: For one of the second CDN nodes, the average duration of the connection between the CDN node and the client in multiple statistical periods is calculated, and the calculated result is used as the duration threshold for fault judgment of the CDN node.
5. The method according to claim 2, It is characterized in that The node status includes a connection success rate between the second CDN node and the client; The determining, according to the node status of the second CDN node in the last statistical period, whether each of the second CDN nodes fails includes: For one of the second CDN nodes, if the connection establishment success rate of the CDN node with the client in the last statistical period is lower than the success rate threshold, it is determined that the CDN node fails.
6. The method according to claim 1, It is characterized in that The determining the supplier status of the first CDN supplier according to the node status of the second CDN node in the CDN node library includes: In the case where some of the first CDN nodes match the CDN nodes in the CDN node library, obtaining a first number of first CDN nodes that have a matching relationship with the CDN nodes in the CDN node library, and obtaining a second number of first CDN nodes that do not have a matching relationship with the CDN nodes in the CDN node library; When the ratio of the first quantity to the second quantity reaches a second proportion threshold, the supplier status of the first CDN supplier is determined according to the node status of the second CDN node in the CDN node library.
7. The method according to claim 6, It is characterized in that When the ratio of the first quantity to the second quantity does not reach the second proportion threshold, determining the supplier status of the first CDN supplier includes: Sending a dialing test message to at least some of the first CDN nodes to obtain a communication indicator used to characterize communication quality; Based on the communication indicator, generating a dialing test result indicating whether the first CDN node is faulty; The supplier status of the first CDN supplier is determined according to the dialing test result and the node status of the second CDN node in the CDN node library.
8. The method according to claim 6 or 7, It is characterized in that The node status of the second CDN node in the CDN node library is dynamically updated according to a statistical period; After switching the first CDN provider currently used by the target domain name to the second CDN provider, the method further includes: re-determining the supplier status of the first CDN supplier according to the latest node status of the second CDN node in the CDN node library; If the re-determined supplier status indicates that the first CDN supplier is normal, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
9. The method according to claim 8, It is characterized in that The step of switching the second CDN provider currently used by the target domain name to the first CDN provider includes: Re-determining the supplier status of the first CDN supplier in each statistical period after the first CDN supplier is switched to the second CDN supplier; If, within a plurality of consecutive statistical periods, the re-determined supplier status indicates that the first CDN supplier is normal, the second CDN supplier currently used by the target domain name is switched to the first CDN supplier.
10. The method according to claim 8, It is characterized in that The re-determining the supplier status of the first CDN supplier according to the latest node status of the second CDN node in the CDN node library includes: Determine whether each of the second CDN nodes fails according to the latest node status of the second CDN node in the CDN node library; If, among the second CDN nodes, the proportion of the second CDN nodes that have not failed exceeds the second proportion threshold, it is determined that the first CDN provider is normal.
11. The method according to claim 1, It is characterized in that The obtaining of a first CDN provider currently used by the target domain name and a first CDN node under the first CDN provider for providing acceleration services for the target domain name includes: Obtaining a client IP address for accessing the target domain name; Based on the client IP and the target domain name, construct and send a domain name resolution request; The first CDN node and the first CDN provider are extracted from a response message of the domain name resolution request.
12. The method of claim 1, It is characterized in that The searching a second CDN node matching the first CDN node from a CDN node library includes: For any of the first CDN nodes, a CDN node having the same IP, CDN provider, region and operator as the first CDN node is searched from the CDN node library, and the found CDN node is used as a second CDN node matching the first CDN node.
13. A CDN provider switching system, It is characterized in that The system comprises: A CDN node acquisition module, used to acquire a first CDN provider currently used by a target domain name, and a first CDN node under the first CDN provider for providing acceleration services for the target domain name; A CDN node screening module, used to search a second CDN node matching the first CDN node from a CDN node library, wherein the CDN node library is used to store CDN nodes that provide acceleration services for one or more domain names in historical domain name accesses and the node status of each CDN node when providing acceleration services; a supplier status determination module, configured to determine a supplier status of the first CDN supplier according to a node status of the second CDN node in the CDN node library, wherein the supplier status indicates whether the first CDN node under the first CDN supplier fails; The supplier switching module is used to switch the first CDN supplier currently used by the target domain name to a second CDN supplier if the supplier status indicates that the first CDN supplier is abnormal.
14. A computer-readable storage medium, It is characterized in that The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
15. An electronic device, It is characterized in that The electronic device comprises a processor and a memory, wherein the memory is used to store a computer program, and when the computer program is executed by the processor, the method according to any one of claims 1 to 12 is implemented.
16. A computer program product comprising a computer program, It is characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 12 is implemented.
Citation Information
Patent Citations
Method and system for performing intelligent monitoring and analysis on CDN (Content Delivery Network) acceleration service
CN108964967A
CDN node scheduling method and device, storage medium and electronic device
CN110233861A
Gray release method, device and system based on user request traffic control
CN111628894A
Detection and scheduling method, device, and node of content delivery network
US20180026938A1
