Business exception processing method and device, electronic equipment and readable storage medium

Through the detection terminal, the access status information of the offloading node is obtained and reported, and the control center generates and issues access policies, which solves the problem of the offloading node IP being blocked in the acceleration network, improves user experience and satisfaction, and is suitable for services on cloud nodes. , realizing the effectiveness of business exception handling.

CN118802456APending Publication Date: 2024-10-18CHINA MOBILEHANGZHOUINFORMATION TECH CO LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311132232.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-09-04
Publication Date
2024-10-18

AI Technical Summary

Technical Problem

In the accelerated network, the IP of the offloading node is blocked, resulting in poor user experience. Existing technologies are difficult to effectively solve this problem, especially the business on cloud nodes. Abnormal services cannot be restored by changing the IP or port.

Method used

The access status information of the offloading node is obtained through the detection end, and access records are generated and reported to the control center. The control center generates target access policies based on multiple access records and sends them to the access nodes to restore abnormal services.

Benefits of technology

It realizes the processing of business exceptions in the accelerated network, reduces the probability of the offloading node IP being blocked, and improves user experience and satisfaction. It is suitable for businesses in the accelerated network, is simple to deploy, takes up less resources, and ensures the security of the service. and stability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118802456A_ABST
    Figure CN118802456A_ABST
Patent Text Reader

Abstract

The invention discloses a service exception processing method and device, electronic equipment and a readable storage medium, a detection end obtains access state information when an unloading node corresponding to the detection end is utilized to access a target service, and the target service is a service reaching an actual detection period; according to the access state information, determining whether access to the target service by using the unloading node is abnormal or not; and generating an access record of the target service, and reporting the access record to a control center when it is determined that the access of the target service by using the unloading node is abnormal. According to the embodiment of the invention, the detection end regularly detects the service state corresponding to the unloading node, can timely discover the abnormal service with the access abnormality, and can enable the control center to timely process the abnormal service by uploading the access record corresponding to the abnormal service to the control center, thereby improving the user experience. Therefore, the exception handling of the service in the acceleration network is realized, the probability that the unloaded node IP is forbidden is reduced, the user service experience is guaranteed, and the user satisfaction is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of communication technology, and in particular, relates to a service exception processing method, device, electronic device and readable storage medium. Background Art

[0002] With the development of the Internet, technologies such as XR (Extended Reality) are penetrating deeper into homes. However, due to the impact of the quality of the home intranet, the service latency of technologies such as XR is an important challenge for home broadband networks. The accelerated network used for network acceleration (such as Content Delivery Network) is oriented towards all home services and can provide scenario-based, differentiated backbone network services and quality assurance. It can effectively solve the latency problem of home broadband networks, meet various business needs, and help promote the business development of advanced technologies such as XR.

[0003] The acceleration network mainly includes two types of nodes: access nodes and offloading nodes. These two types of nodes are usually cloud nodes. Users access the acceleration network through access nodes. Access nodes direct traffic to offloading nodes according to business access policies, and offloading nodes offload traffic to the destination address accessed by users. In this process, since a large number of users access the destination address through the IP of the same offloading node, if the security policy setting of the website corresponding to the destination address is sensitive, the IP of the offloading node will be set as an illegal IP and the IP will be banned, resulting in abnormalities in the business accessed by users through the IP, poor user experience, and further reduced user satisfaction and loss of user groups.

[0004] In order to reduce the problem of poor user experience caused by IP blocking, there are currently two main solutions in the relevant technology. One is to constantly change the IP used to access the service, and the other is to constantly change the port used to access the service. However, the above two solutions are not applicable to services that deploy nodes on the cloud, that is, they are not applicable to services in the accelerated network. First, it is impossible to apply for a large number of public IPs for cloud nodes as an IP address library for replacement. Second, the service generally blocks the IP accessing the service, so abnormal services cannot be restored by changing the port. Summary of the invention

[0005] The embodiments of the present application provide a service exception processing method, apparatus, device and computer storage medium, which can perform service exception processing on services in an accelerated network.

[0006] In a first aspect, an embodiment of the present application provides a service exception processing method, which is applied to a detection end, and the method includes:

[0007] Obtain access status information when accessing a target service using an offloading node corresponding to the detection end, where the target service is a service that reaches an actual detection period;

[0008] Determine whether there is any abnormality in accessing the target service using the offload node according to the access status information;

[0009] Generate an access record of the target service, the access record includes access status information, access path information of the target service, and a status identifier, the access path information includes the IP address of the offloading node and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service using the offloading node;

[0010] When it is determined that there is an abnormality in accessing the target service using the offloading node, the access record is reported to the control center.

[0011] In a second aspect, an embodiment of the present application provides a service exception processing method, which is applied to a control center, and the method includes:

[0012] In the case of receiving an access record of a target service reported by any of the N detection terminals, determining that there is an access anomaly in the target service, the access record includes access status information when the target service is accessed by the unloading node corresponding to the detection terminal, access path information of the target service, and a status identifier, the access path information includes the IP address of the unloading node corresponding to the detection terminal and the access address of the target service, and the status identifier is used to identify whether there is an anomaly in accessing the target service by the unloading node corresponding to the detection terminal, and N is a positive integer;

[0013] Obtain multiple access records of the target business from N detection terminals;

[0014] Among the multiple access records, a normal access record with the best access performance corresponding to the access status information is used as the target access record, and the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the offloading node corresponding to the detection end;

[0015] Generate a target access policy corresponding to the target business based on the target access path information in the target access record;

[0016] Send the target access policy to the access node corresponding to the target service.

[0017] In a third aspect, an embodiment of the present application provides a service exception processing device, which is applied to a detection end, and the device includes:

[0018] A detection module, used to obtain access status information when accessing a target service using an offloading node corresponding to the detection end, where the target service is a service that reaches an actual detection period;

[0019] An abnormality analysis module, used to determine whether there is an abnormality in accessing the target service using the offload node according to the access status information;

[0020] A recording module, used to generate an access record of a target service, wherein the access record includes access status information, access path information of the target service, and a status identifier, wherein the access path information includes the IP address of the offloading node and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service using the offloading node;

[0021] The reporting module is used to report the access record to the control center when it is determined that there is an abnormality in accessing the target service using the offloading node.

[0022] In a fourth aspect, an embodiment of the present application provides a service exception processing device, which is applied to a control center, and the device includes:

[0023] An abnormality determination module is used to determine whether there is an access abnormality in the target business when receiving an access record of the target business reported by any detection end among N detection ends. The access record includes access status information when the target business is accessed by the unloading node corresponding to the detection end, access path information of the target business, and a status identifier. The access path information includes the IP address of the unloading node corresponding to the detection end and the access address of the target business. The status identifier is used to identify whether there is an abnormality in accessing the target business by using the unloading node corresponding to the detection end. N is a positive integer.

[0024] A record acquisition module, used to acquire multiple access records of target services from N detection terminals;

[0025] A target record determination module is used to take a normal access record with the best access performance corresponding to the access status information among multiple access records as a target access record, wherein the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the offloading node corresponding to the detection end;

[0026] A policy generation module, used to generate a target access policy corresponding to a target business based on target access path information in a target access record;

[0027] The policy delivery module is used to deliver the target access policy to the access node corresponding to the target service.

[0028] In a fifth aspect, an embodiment of the present application provides an electronic device, the electronic device comprising: a processor and a memory storing computer program instructions;

[0029] When the processor executes the computer program instructions, the service exception handling method of the first aspect or the second aspect is implemented.

[0030] In a sixth aspect, an embodiment of the present application provides a computer-readable storage medium, on which computer program instructions are stored. When the computer program instructions are executed by a processor, the business exception handling method of the first aspect or the second aspect is implemented.

[0031] The service exception processing method, device, electronic device and readable storage medium of the embodiment of the present application, the detection end obtains the access status information when the target service is accessed by the unloading node corresponding to the detection end, and the target service is the service that reaches the actual detection cycle; based on the access status information, it is determined whether there is an abnormality in accessing the target service by using the unloading node; an access record of the target service is generated, and when it is determined that there is an abnormality in accessing the target service by using the unloading node, the access record is reported to the control center. According to the embodiment of the present application, the detection end can timely discover abnormal services with access abnormalities by regularly detecting the service status corresponding to the unloading node, and by uploading the access record corresponding to the abnormal service to the control center, the control center can promptly process the abnormal service, thereby realizing abnormal processing of services in the accelerated network, reducing the probability of the unloading node IP being blocked, ensuring the user service experience, and improving user satisfaction. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] In order to more clearly illustrate the technical solution of the embodiments of the present application, the following is a brief introduction to the drawings required for use in the embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0033] Figure 1 This is a schematic diagram of the overall architecture of an acceleration network provided by an embodiment of the present application;

[0034] Figure 2 It is a flowchart of a method for handling business exceptions provided in an embodiment of the present application;

[0035] Figure 3 It is a flowchart of a method for handling business exceptions in an application scenario provided by an embodiment of the present application;

[0036] Figure 4 is a block diagram of a service exception handling device provided in an embodiment of the present application;

[0037] Figure 5 is a block diagram of a service exception handling device provided in an embodiment of the present application;

[0038] Figure 6 It is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0039] The features and exemplary embodiments of various aspects of the present application will be described in detail below. In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings and specific embodiments. It should be understood that the specific embodiments described herein are only intended to explain the present application, rather than to limit the present application. For those skilled in the art, the present application can be implemented without the need for some of these specific details. The following description of the embodiments is only to provide a better understanding of the present application by illustrating the examples of the present application.

[0040] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the statement "include..." do not exclude the presence of other identical elements in the process, method, article or device including the elements.

[0041] The service exception processing method provided in the embodiment of the present application can be applied to an acceleration network including a control center and a detection end. Figure 1 , is a schematic diagram of the overall architecture of an acceleration network provided in an embodiment of the present application, such as Figure 1 As shown, the acceleration network includes M access nodes, N offloading nodes, a control center and N detection terminals, wherein each offloading node corresponds to a detection terminal, M is a positive integer greater than or equal to 1, and N is a positive integer greater than or equal to 2.

[0042] The detection end refers to the detection program, which can be deployed on the cloud node as an independent functional module or integrated on the offloading node. The detection program is used to detect and analyze the access status of the corresponding offloading node to the service, determine the service with access anomalies, and report the access records of the service with access anomalies to the control center.

[0043] The control center is responsible for service access policy scheduling and service recovery. After receiving a service with access anomalies reported by any detection end, the control center obtains all access records corresponding to the service from all detection ends, determines the access record with the best access performance corresponding to the service, generates the target access policy corresponding to the service based on the access record with the best access performance, and sends the generated target access policy to the access node corresponding to the service.

[0044] The access node is responsible for providing access services to users. Users connect to the acceleration network through the access node. After the user's service traffic reaches the access node, the access node forwards the user traffic according to the preset service access policy (also called routing policy). If there is a target access policy issued by the control center in the access node, the access node will preferentially forward the service traffic according to the target access policy issued by the control center.

[0045] The offload node is used to receive traffic forwarded by the access node and forward it to the destination address, that is, the IP address of the service.

[0046] See also Figure 2 , is a flow chart of a method for handling service anomalies provided in an embodiment of the present application, the method being applied to an acceleration network including a control center and N detection terminals connected to the control center, such as Figure 2 As shown, the method may include the following steps S21-S29.

[0047] S21. For each detection end, obtain access status information when the target service is accessed by using the offloading node corresponding to the detection end, where the target service is the service that reaches the actual detection period.

[0048] In this embodiment, one detection end corresponds to one offloading node, and one offloading node can access multiple services, wherein the actual detection periods corresponding to different services can be different or the same.

[0049] The detection end may perform service detection upon receiving a detection instruction sent by the control center, or may automatically perform service detection upon determining that there is a service that has reached an actual detection period.

[0050] To facilitate service detection, for each detection end, when it first accesses the control center, the control center can send an information list of services to be detected to the detection end. The information list includes the access path information corresponding to the services to be detected, as well as the initial detection cycle corresponding to the services. The actual detection cycle of each service can be determined based on its corresponding initial detection cycle.

[0051] Since different services may correspond to different actual detection periods, when performing service detection, the detection end only needs to detect services that have reached the actual detection period.

[0052] Since the actual detection periods corresponding to different services may be the same, multiple services may reach the actual detection period each time detection is performed. In this case, the detection end performs service detection on all services that reach the actual detection period. Since the control center and the detection end perform the same processing flow on each service that reaches the actual detection period, for ease of description, this embodiment is described by taking the target service as a service that reaches the actual detection period as an example.

[0053] The detection end may detect the target service by using the unloading node corresponding to the detection end to access the target service within a second preset time period, and monitor the access status within the preset time period, thereby obtaining access status information. The second preset time period may be set according to actual needs. Actual detection cycle

[0054] Access status information is information that can reflect access performance, including but not limited to website access status code, website access delay and other information.

[0055] The website access status code is also called the network request status code, HTTP status code, etc. It refers to the response code returned by the website where the target service is located when the target service is accessed through the offloading node corresponding to the detection end. Different website access status codes represent different access statuses, and the access status represented by each website access status code is common knowledge in the field. Based on the website access status code, it can be determined whether there is an abnormality in the access to the target service through the offloading node.

[0056] Website access delay refers to the network delay when accessing the target business through the offloading node corresponding to the detection end. The higher the network delay, the slower the network speed, and the slower the network speed, the greater the probability of business access anomalies. Therefore, based on the website access delay, it can also be determined whether there is an abnormality in the access to the target business through the offloading node.

[0057] S22. For each detection end, determine whether there is any abnormality in accessing the target service using the offloading node corresponding to the detection end according to the access status information obtained by the detection end.

[0058] Determine whether there is an abnormality in accessing the target service using the offloading node corresponding to the detection end, that is, determine whether there is an access abnormality when accessing the target service using the offloading node.

[0059] As an example, an abnormal condition can be set in advance according to actual needs, and whether the access status information meets the abnormal condition is determined to determine whether there is an abnormality in accessing the target service using the offloading node corresponding to the detection end. If the access status information meets the abnormal condition, it is determined that there is an abnormality in accessing the target service using the offloading node corresponding to the detection end, and if the access status information does not meet the abnormal condition, there is no abnormality in accessing the target service using the offloading node corresponding to the detection end.

[0060] S23. For each detection end, an access record of the target service of the detection end is generated. The access record includes access status information, access path information of the target service, and a status identifier. The access path information includes the IP address of the unloading node and the access address of the target service. The status identifier is used to identify whether there is an abnormality in accessing the target service using the unloading node.

[0061] As an example, when the access status information includes a website access status code and a website access delay, if there is an access anomaly in the target service, the access record corresponding to the target service may be as shown in Table 1 below:

[0062] Table 1:

[0063]

[0064] Among them, the status flag "1" indicates that there is an access anomaly, and if there is no access anomaly, the status flag can be "0".

[0065] S24. For each detection end, when it is determined that there is an abnormality in accessing the target service using the offloading node corresponding to the detection end, the access record of the target service is reported to the control center.

[0066] When it is determined that there is an abnormality in accessing the target business, the access record of the target business is reported to the control center, so that the control center can know that there is an abnormality in accessing the current target business, so that the control center can perform business recovery processing in time.

[0067] S25. When the control center receives the access record of the target service reported by any detection end among the N detection ends, it determines that there is an access anomaly in the target service.

[0068] S26. The control center obtains multiple access records of the target service from the N detection terminals.

[0069] The principle of the embodiment of the present application is that, for a target service, when there is an access anomaly, an unloading node with the best access performance to the target service is determined from N detection terminals, and then the access policy of the target service is adjusted based on the unloading node with the best access performance, thereby improving the user experience. Therefore, the detection terminals among the N detection terminals that can detect the same target service have the same actual detection cycle for detecting the target service, that is, multiple detection terminals detect the same target service at the same time. Therefore, for a target service, multiple access records corresponding to the target service can be obtained through N detection terminals within an actual detection cycle.

[0070] S27. The control center uses the normal access record with the best access performance corresponding to the access status information among multiple access records as the target access record, and the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the offloading node corresponding to the detection end.

[0071] The access performance of a normal access record may be determined based on the access status information contained therein.

[0072] S28. The control center generates a target access policy corresponding to the target business based on the target access path information in the target access record.

[0073] The target access path refers to the access path information contained in the target access record.

[0074] S29. The control center sends the target access policy to the access node corresponding to the target service.

[0075] Through S27-S28, a target access policy with optimal access performance can be generated. By sending the target access policy to the access node, the access node can adjust the access path of the target service based on the target access policy, so that the target service can be restored to normal access, thereby improving the user experience.

[0076] The service exception handling method provided in this embodiment is that the detection end obtains the access status information when the target service is accessed by the unloading node corresponding to the detection end, and the target service is the service that reaches the actual detection cycle; according to the access status information, it is determined whether there is an abnormality in accessing the target service by using the unloading node; an access record of the target service is generated, and when it is determined that there is an abnormality in accessing the target service by using the unloading node, the access record is reported to the control center. According to the embodiment of the present application, the detection end can timely discover abnormal services with access abnormalities by regularly detecting the service status corresponding to the unloading node, and by uploading the access record corresponding to the abnormal service to the control center, the control center can timely handle the abnormal service, thereby realizing abnormal handling of the service in the acceleration network, thereby reducing the probability of the unloading node IP being banned, ensuring the user service experience, and improving user satisfaction. Compared with the existing solution of reducing IP bans by constantly changing IPs or ports, this embodiment does not need to prepare a large number of replacement IPs and ports on the server, can be applied to the acceleration network, and is simple to deploy. It only needs to set the detection end corresponding to the unloading node, which occupies less resources and will not affect the existing services, thus ensuring the security and stability of the service.

[0077] The service anomaly processing method provided in this embodiment is that when the control center receives the access record of the target service reported by any detection end among N detection ends, it determines that there is an access anomaly in the target service, obtains multiple access records of the target service from the N detection ends; takes the normal access record with the best access performance among the multiple access records as the target access record, and the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the unloading node corresponding to the detection end; based on the target access path information in the target access record, generates a target access policy corresponding to the target service; and sends the target access policy to the access node corresponding to the target service. According to this embodiment, the control center dynamically adjusts the access policy corresponding to the abnormal service based on the access record of the abnormal service, quickly restores the abnormal service, ensures the user service experience, improves user satisfaction, and reduces network operation and maintenance costs.

[0078] In some embodiments, the access status information includes a website access status code and a website access delay. Based on this, when the detection end determines whether there is an abnormality in accessing the target service using the offloading node according to the acquired access status information, the detection end may perform the following steps:

[0079] Compare the website access status code with the set status code, and compare the website access delay with the delay threshold;

[0080] When the website access status code is greater than the set status code, or the website access delay is greater than the delay threshold, it is determined that there is an abnormality in accessing the target service using the offloading node;

[0081] When the website access status code is less than or equal to the set status code, and the website access delay is less than or equal to the delay threshold, it is determined that there is no abnormality in accessing the target service using the offloading node.

[0082] Among them, the status code can be set according to actual needs, for example, 400. When the website access status code is greater than 400, it usually means that a request error or a server error occurs, resulting in unsuccessful access. Therefore, it can be determined at this time that there is an access anomaly.

[0083] The delay threshold can also be set according to actual conditions. When the website access delay is greater than the delay threshold, it means that the website access delay is high, which is not conducive to business access and the probability of access anomalies is high. At this time, it can also be determined that there are access anomalies. In this way, corresponding processing can be carried out in advance before the anomaly occurs to reduce the probability of anomalies.

[0084] Through the above method, access anomaly identification is performed from two aspects, and the business with access anomaly can be accurately identified.

[0085] In some embodiments, after obtaining the access status information when the target service is accessed by the offloading node corresponding to the detection end, the following steps may be further performed:

[0086] Obtain the number of visits to the target service within the most recent first preset time period, the alarm threshold corresponding to the target service, and the initial detection period corresponding to the target service;

[0087] The actual detection period of the target service is adjusted according to the number of accesses, the alarm threshold, and the initial detection period.

[0088] The most recent first preset duration refers to the first preset duration before the detection end detects the target service this time and the closest to the detection time of this detection. The first preset duration can be set according to actual conditions, for example, it can be 1 hour.

[0089] Exemplarily, if the detection time of the target business by the detection end is 13:00 on December 5, 2021, and the first preset time is 1 hour, the number of visits to the target business in the time interval from 12:00 on December 5, 2021 to 13:00 on December 5, 2021 is obtained.

[0090] The alarm threshold of the target service is an access count threshold, which can be set according to actual needs and stored in the control center. The control center can record the access count of each service. Based on this, the detection end can obtain the access count and alarm threshold of the target service within the most recent first preset time period from the control center.

[0091] The initial detection period of the target service is an initial value of the detection period set according to actual needs. In the actual operation process, the actual detection period of the target service can be adjusted based on the initial detection period.

[0092] Through the above method, according to the number of visits and the alarm threshold of the target business, the actual detection period of the target business is reasonably updated and adjusted, thereby realizing the autonomous adjustment of the actual detection period of the target business to achieve the purpose of optimal business detection.

[0093] In some embodiments, adjusting the actual detection period of the target service according to the number of accesses, the alarm threshold, and the initial detection period includes:

[0094] Determine the ratio of the number of accesses to the alarm threshold;

[0095] comparing the ratio with a first threshold and a second threshold respectively;

[0096] When the ratio is less than the first threshold, the actual detection period of the target service is expanded according to the preset first ratio. If the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the actual detection period after adjustment of the target service. If the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the actual detection period after adjustment of the target service.

[0097] When the ratio is greater than or equal to the first threshold and less than or equal to the second threshold, if the actual detection period of the target service is consistent with the initial detection period, the actual detection period of the target service is not adjusted; if the actual detection period of the target service is less than the initial detection period, the actual detection period of the service is expanded according to the preset second ratio; if the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the adjusted actual detection period of the target service; if the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the adjusted actual detection period of the target service;

[0098] When the ratio is greater than the second threshold, the actual detection period of the target service is reduced according to a preset third ratio, and the reduced actual detection period is used as the adjusted actual detection period of the target service.

[0099] Among them, the first threshold, the second threshold, the first ratio, the second ratio and the third ratio can all be set according to actual conditions, and the first ratio can be greater than the second ratio.

[0100] As an example, taking the first threshold as 0.5 and the second threshold as 0.8, when the ratio of the number of accesses ω to the alarm threshold ρ is less than 0.5, the actual detection period is expanded by the first ratio ν to T ′ If the actual detection period after expansion is greater than the initial detection period T, then T ′ The value of is set to T to ensure that the actual detection cycle corresponding to the target service is not greater than the initial detection cycle T; when the ratio of the number of accesses ω to the alarm threshold ρ is greater than 0.5 and less than 0.8, if the current actual detection cycle is the initial detection cycle T, then the current actual detection cycle is not adjusted; if the current actual detection cycle is less than the initial detection cycle T, then the current actual detection cycle is expanded by the second ratio μ; if the expanded actual detection cycle T ′ If it is greater than the initial detection period T, then T ′ The value is set to T to ensure that the actual detection period is not greater than the initial detection period T; when the ratio of the number of accesses ω to the alarm threshold ρ is greater than 0.8, the current actual detection period T is reduced by the third ratio k, and the current detection period is reduced to T ‘ .

[0101] The smaller the actual detection period is and the greater the detection frequency is, the easier it is to detect abnormal access to the target service.

[0102] Through the above method, when the number of target service accesses increases, the adjusted actual detection period becomes smaller, so that it is possible to quickly detect whether the service has access anomalies during access peak periods.

[0103] In some embodiments, when the access status information includes the website access delay, the control center may perform the following steps when taking the normal access record with the best access performance corresponding to the access status information among multiple access records as the target access record:

[0104] Determine that among the multiple access records, the status identifier indicates a normal access record in which there is no abnormality in accessing the target service using the offloading node corresponding to the detection end;

[0105] The access record containing the smallest website access delay in the normal access records is determined as the target access record.

[0106] Through the above method, it can be ensured that business access is performed according to the target access policy generated based on the target access record, and there can be a lower network delay, making the business access more efficient.

[0107] In some embodiments, based on the target access path information in the target access record, generating a target access policy corresponding to the target service includes:

[0108] Determine the destination address based on the access address of the target service in the target access path information;

[0109] The IP address of the uninstall node in the target access path information is used as the next hop address;

[0110] Generate an access policy that includes the destination address and next-hop address;

[0111] The access policy is determined as the target access policy corresponding to the target business.

[0112] Among them, the access address of the target service in the target access path information may be a website domain name, because a website domain name corresponds to a unique website IP address. Therefore, in this case, the IP address corresponding to the website domain name can be determined as the destination address. If the access address of the target service in the target access path information is itself an IP address, then the IP address can be directly determined as the destination address.

[0113] Furthermore, because there may be multiple access policies corresponding to the target service in the access node, in order to distinguish the target access policy issued by the control center from other access policies, before determining the initial access policy as the target access policy corresponding to the target service, the following steps may be performed:

[0114] Add a high priority flag to the initial access policy.

[0115] Accordingly, the initial access policy with the high priority identifier is determined as the target access policy corresponding to the target service. In this way, the target access policy issued by the control center can be distinguished from other access policies. Since the target access policy includes a high priority identifier, the access node preferentially forwards the traffic of the target service according to the target access policy issued by the control center to complete service recovery.

[0116] As an example, see Table 2, which is a schematic diagram of a generated target access policy:

[0117] Table 2:

[0118] Destination Address Next hop address Priority ID 172.17.219.204 202.12.126.35 1

[0119] Through the above method, the target service can be successfully accessed based on the generated target access policy, the target service can be restored, and the user service can be guaranteed.

[0120] The following uses the detection of multiple services in the same detection cycle as an example to illustrate the service exception handling method provided in the embodiment of the present application.

[0121] See also Figure 3 , the whole processing flow includes the following steps:

[0122] S31. The control center discovers the detection program of the new access system p i , the control center sends the detection program p i Issue the service list L.

[0123] Detection Program i As a detection end, it is deployed on the cloud node as an independent functional module or integrated on the offloading node.

[0124] The service list L includes information such as the website domain name, IP address, and initial detection period corresponding to the service to be detected.

[0125] S32. When the detection cycle T arrives, the control center sends a message to all detection programs p i Issue a service detection instruction.

[0126] The arrival of the detection period T may include any service to be detected reaching the actual detection period.

[0127] S33. Detection program p i Each service that reaches the actual detection cycle is detected according to the service list L, and the service access record is stored. After the service detection is completed, if there is no abnormal service in this cycle, return to execute S32, if there is an abnormal service in this cycle, execute S34.

[0128] Among them, abnormal business refers to the detection procedure p i When the corresponding offloading node performs service access, abnormal services occur.

[0129] S34. Detection program p i Report abnormal business in this cycle to the control center i .

[0130] S35. The control center summarizes the detection procedures p in this cycle i Abnormal access records corresponding to all abnormal businesses reported i , forming an abnormal business set U e .

[0131] S36. The control center sends a message to each detection program p i Send data pull instructions to pull all access records within this cycle.

[0132] S37. The control center selects the best normal access record r with the best access performance corresponding to each abnormal service in the service list L from all access records. i , and form a normal business set R.

[0133] S38. The control center determines the abnormal business set U e Is it empty? If not, execute S39; otherwise, execute S32.

[0134] S39. The control center generates an alarm message and issues an alarm work order to e An abnormal access record pops up i .

[0135] In this way, each abnormal access record can be popped up in turn until all abnormal access records are removed from the abnormal business set U e pops up.

[0136] S310. The control center selects abnormal access records from the normal business set R i The corresponding best normal access record r i , and according to r i The information in forms the target access policy S.

[0137] S311. The control center sends the target access policy S to the access node, so that the access node adjusts the service access path according to the target access policy S, completes service recovery, and returns to execute S38.

[0138] By applying this solution, we can achieve the goal of actively discovering and restoring abnormal services and ensure user experience. There is no need to prepare a large number of replacement IPs and ports on the server, which ensures the security and stability of the service, effectively reduces the occurrence of abnormal business access, and can quickly complete user business recovery in a shorter period of time. It is widely applicable and can be promoted and applied in education, overseas shopping, video and other businesses. It is simple to deploy and only needs to mount an application on the uninstall node, which takes up less resources and will not affect existing services.

[0139] Based on the service exception handling method provided in the above embodiment, the present application also provides a specific implementation of the service exception handling device. Please refer to the following embodiment.

[0140] See also Figure 4 , is a schematic diagram of a service exception processing device provided in an embodiment of the present application, which can be applied to a detection end, such as Figure 4 As shown, the device may include the following modules:

[0141] The detection module 401 is used to obtain access status information when the target service is accessed by using the offloading node corresponding to the detection end, and the target service is the service that reaches the actual detection period;

[0142] An abnormality analysis module 402, used to determine whether there is an abnormality in accessing the target service using the offloading node according to the access status information;

[0143] A recording module 403 is used to generate an access record for the target service, wherein the access record includes the access status information, the access path information of the target service, and a status identifier, wherein the access path information includes the IP address of the offloading node and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service using the offloading node;

[0144] The reporting module 404 is configured to report the access record to the control center when it is determined that there is an abnormality in accessing the target service using the offloading node.

[0145] The present embodiment provides a service exception processing device, in which the detection end obtains access status information when the target service is accessed by the unloading node corresponding to the detection end, and the target service is the service that reaches the actual detection period; based on the access status information, it is determined whether there is an abnormality in accessing the target service by using the unloading node; an access record of the target service is generated, and when it is determined that there is an abnormality in accessing the target service by using the unloading node, the access record is reported to the control center. According to the embodiment of the present application, the detection end detects the service status corresponding to the unloading node regularly, and promptly discovers abnormal services with access abnormalities. By uploading the access records corresponding to the abnormal services to the control center, the control center can promptly process the abnormal services, thereby realizing abnormal processing of services in the accelerated network, reducing the probability of the unloading node IP being blocked, ensuring user service experience, and improving user satisfaction.

[0146] In some embodiments, the access status information includes a website access status code and a website access delay. The abnormality analysis module 402 is used to:

[0147] Compare the website access status code with the set status code, and compare the website access delay with the delay threshold;

[0148] When the website access status code is greater than the set status code, or the website access delay is greater than the delay threshold, it is determined that there is an abnormality in accessing the target service using the offloading node;

[0149] When the website access status code is less than or equal to the set status code, and the website access delay is less than or equal to the delay threshold, it is determined that there is no abnormality in accessing the target service using the offloading node.

[0150] In some embodiments, the apparatus may further include:

[0151] A first acquisition module is used to obtain the number of accesses of the target service within a recent first preset time period, the alarm threshold corresponding to the target service, and the initial detection period corresponding to the target service after obtaining the access status information when the target service is accessed by the offloading node corresponding to the detection end;

[0152] The cycle adjustment module is used to adjust the actual detection cycle of the target service according to the number of accesses, the alarm threshold and the initial detection cycle.

[0153] In some embodiments, the period adjustment module is used to:

[0154] Determine the ratio of the number of accesses to the alarm threshold;

[0155] comparing the ratio with a first threshold and a second threshold respectively;

[0156] When the ratio is less than the first threshold, the actual detection period of the target service is expanded according to the preset first ratio. If the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the actual detection period after adjustment of the target service. If the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the actual detection period after adjustment of the target service.

[0157] When the ratio is greater than or equal to the first threshold and less than or equal to the second threshold, if the actual detection period of the target service is consistent with the initial detection period, the actual detection period of the target service is not adjusted; if the actual detection period of the target service is less than the initial detection period, the actual detection period of the service is expanded according to the preset second ratio; if the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the adjusted actual detection period of the target service; if the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the adjusted actual detection period of the target service;

[0158] When the ratio is greater than the second threshold, the actual detection period of the target service is reduced according to a preset third ratio, and the reduced actual detection period is used as the adjusted actual detection period of the target service.

[0159] The service exception processing device provided in the embodiment of the present application can achieve Figures 2 to 3 In order to avoid repetition, the various processes implemented by the detection end in the method embodiment are not described here.

[0160] See also Figure 5 , is a schematic diagram of a service exception handling device provided in an embodiment of the present application, which can be applied to a control center, such as Figure 5 As shown, the device may include the following modules:

[0161] The abnormality determination module 501 is used to determine whether there is an access abnormality in the target service when receiving an access record of the target service reported by any detection end among the N detection ends, the access record includes access status information when the target service is accessed by the unloading node corresponding to the detection end, access path information of the target service, and a status identifier, the access path information includes the IP address of the unloading node corresponding to the detection end and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service by using the unloading node corresponding to the detection end, and N is a positive integer;

[0162] A record acquisition module 502, used to acquire multiple access records of a target service from N detection terminals;

[0163] The target record determination module 503 is used to take the normal access record with the best access performance corresponding to the access status information among the multiple access records as the target access record, and the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the offloading node corresponding to the detection end;

[0164] A policy generation module 504, used to generate a target access policy corresponding to a target service based on target access path information in a target access record;

[0165] The policy delivery module 505 is used to deliver the target access policy to the access node corresponding to the target service.

[0166] The service exception processing device provided in this embodiment is that when the control center receives the access record of the target service reported by any detection end among N detection ends, it determines that there is an access anomaly in the target service, obtains multiple access records of the target service from the N detection ends; takes the normal access record with the best access performance among the multiple access records as the target access record, and the normal access record is an access record containing a status identifier indicating that there is no abnormal access to the target service using the unloading node corresponding to the detection end; generates a target access policy corresponding to the target service based on the target access path information in the target access record; and sends the target access policy to the access node corresponding to the target service. According to this embodiment, the control center dynamically adjusts the access policy corresponding to the abnormal service based on the access record of the abnormal service, quickly restores the abnormal service, ensures the user service experience, improves user satisfaction, and reduces network operation and maintenance costs.

[0167] In some embodiments, the access status information includes a website access delay, and the target record determination module 503 is used to:

[0168] Determine that among the multiple access records, the status identifier indicates a normal access record in which there is no abnormality in accessing the target service using the offloading node corresponding to the detection end;

[0169] The access record containing the smallest website access delay in the normal access records is determined as the target access record.

[0170] In some embodiments, the policy generation module 504 is used to:

[0171] The access address of the target service in the target access path information is used as the destination address;

[0172] The IP address of the uninstall node in the target access path information is used as the next hop address;

[0173] Generate an access policy that includes the destination address and next-hop address;

[0174] The access policy is determined as the target access policy corresponding to the target business.

[0175] The service exception processing device provided in the embodiment of the present application can achieve Figures 2 to 3 In order to avoid repetition, the various processes implemented by the control center in the method embodiment are not described here.

[0176] Figure 6 A schematic diagram of the hardware structure of an electronic device provided in an embodiment of the present application is shown.

[0177] The electronic device may include a processor 601 and a memory 602 storing computer program instructions.

[0178] Specifically, the processor 601 may include a central processing unit (CPU), or an application specific integrated circuit (ASIC), or may be configured to implement one or more integrated circuits of the embodiments of the present application.

[0179] The memory 602 may include a large capacity memory for data or instructions. By way of example and not limitation, the memory 602 may include a hard disk drive (HDD), a floppy disk drive, a flash memory, an optical disk, a magneto-optical disk, a magnetic tape, or a universal serial bus (USB) drive or a combination of two or more of these. Where appropriate, the memory 602 may include a removable or non-removable (or fixed) medium. Where appropriate, the memory 602 may be inside or outside the integrated gateway disaster recovery device. In a specific embodiment, the memory 602 is a non-volatile solid-state memory. The memory 602 may include a read-only memory (ROM), a random access memory (RAM), a disk storage medium device, an optical storage medium device, a flash memory device, an electrical, optical, or other physical / tangible memory storage device. Therefore, typically, the memory 602 includes one or more tangible (non-transitory) computer-readable storage media (e.g., a memory device) encoded with software including computer executable instructions, and when the software is executed (e.g., by one or more processors), it may perform the operations described in any one of the business exception handling methods in the above-mentioned embodiments.

[0180] The processor 601 implements any one of the service exception processing methods in the above embodiments by reading and executing computer program instructions stored in the memory 602 .

[0181] In one example, the electronic device may further include a communication interface 603 and a bus 610. Figure 6As shown, the processor 601, the memory 602, and the communication interface 603 are connected via a bus 610 and communicate with each other.

[0182] The communication interface 603 is mainly used to implement communication between various modules, devices, units and / or equipment in the embodiments of the present application.

[0183] Bus 610 includes hardware, software or both, and the parts of online data flow billing equipment are coupled to each other. For example, but not limitation, bus may include accelerated graphics port (AGP) or other graphics bus, enhanced industrial standard architecture (EISA) bus, front-end bus (FSB), hypertransport (HT) interconnection, industrial standard architecture (ISA) bus, infinite bandwidth interconnection, low pin count (LPC) bus, memory bus, micro channel architecture (MCA) bus, peripheral component interconnection (PCI) bus, PCI-Express (PCI-X) bus, serial advanced technology attachment (SATA) bus, video electronics standard association local (VLB) bus or other suitable bus or two or more of these combinations. In appropriate cases, bus 610 may include one or more buses. Although the present application embodiment describes and shows a specific bus, the present application considers any suitable bus or interconnection.

[0184] In addition, in combination with the XX method in the above embodiment, the embodiment of the present application can provide a computer storage medium for implementation. The computer storage medium stores computer program instructions; when the computer program instructions are executed by the processor, any one of the service exception handling methods in the above embodiment is implemented.

[0185] It should be clear that the present application is not limited to the specific configuration and processing described above and shown in the figures. For the sake of simplicity, a detailed description of the known method is omitted here. In the above embodiments, several specific steps are described and shown as examples. However, the method process of the present application is not limited to the specific steps described and shown, and those skilled in the art can make various changes, modifications and additions, or change the order between the steps after understanding the spirit of the present application.

[0186] The functional blocks shown in the above-described block diagram can be implemented as hardware, software, firmware or a combination thereof. When implemented in hardware, it can be, for example, an electronic circuit, an application specific integrated circuit (ASIC), appropriate firmware, a plug-in, a function card, etc. When implemented in software, the elements of the present application are programs or code segments that are used to perform the required tasks. The program or code segment can be stored in a machine-readable medium, or transmitted on a transmission medium or a communication link by a data signal carried in a carrier wave. "Machine-readable medium" can include any medium capable of storing or transmitting information. Examples of machine-readable media include electronic circuits, semiconductor memory devices, ROM, flash memory, erasable ROM (EROM), floppy disks, CD-ROMs, optical disks, hard disks, optical fiber media, radio frequency (RF) links, etc. The code segment can be downloaded via a computer network such as the Internet, an intranet, etc.

[0187] It should also be noted that the exemplary embodiments mentioned in this application describe some methods or systems based on a series of steps or devices. However, this application is not limited to the order of the above steps, that is, the steps can be performed in the order mentioned in the embodiment, or in a different order from the embodiment, or several steps can be performed simultaneously.

[0188] Aspects of the present disclosure are described above with reference to the flowchart and / or block diagram of the method, device (system) and computer program product according to the embodiment of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device to produce a machine so that these instructions executed by the processor of the computer or other programmable data processing device enable the implementation of the function / action specified in one or more boxes of the flowchart and / or block diagram. Such a processor can be, but is not limited to, a general-purpose processor, a special-purpose processor, a special application processor, or a field programmable logic circuit. It can also be understood that each box in the block diagram and / or flowchart and the combination of boxes in the block diagram and / or flowchart can also be implemented by dedicated hardware that performs a specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions.

[0189] The above is only a specific implementation of the present application. Those skilled in the art can clearly understand that for the convenience and simplicity of description, the specific working processes of the systems, modules and units described above can refer to the corresponding processes in the aforementioned method embodiments, and will not be repeated here. It should be understood that the protection scope of the present application is not limited to this. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed in this application, and these modifications or replacements should be included in the protection scope of this application.

Claims

1. A method for handling business exceptions, characterized in that: Applied to the detection end, the method includes: Acquire access status information when a target service is accessed by using an offloading node corresponding to the detection end, wherein the target service is a service that reaches an actual detection period; Determining, according to the access status information, whether there is an abnormality in accessing the target service by using the offloading node; Generate an access record for the target service, the access record including the access status information, the access path information of the target service, and a status identifier, the access path information including the IP address of the offloading node and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service using the offloading node; When it is determined that there is an abnormality in accessing the target service by using the offloading node, the access record is reported to the control center.

2. The method according to claim 1, characterized in that The access status information includes a website access status code and a website access delay, and determining whether there is an abnormality in accessing the target service by using the offloading node according to the access status information includes: Comparing the website access status code with a set status code, and comparing the website access delay with a delay threshold; When the website access status code is greater than the set status code, or the website access delay is greater than the delay threshold, determining that there is an abnormality in accessing the target service using the offloading node; When the website access status code is less than or equal to the set status code, and the website access delay is less than or equal to the delay threshold, it is determined that there is no abnormality in accessing the target service using the offloading node.

3. The method according to claim 1 or 2, characterized in that: After obtaining the access status information when the target service is accessed by the offloading node corresponding to the detection end, the method further includes: Obtaining the number of visits to the target service within a recent first preset time period, an alarm threshold corresponding to the target service, and an initial detection period corresponding to the target service; The actual detection period of the target service is adjusted according to the number of accesses, the alarm threshold, and the initial detection period.

4. The method according to claim 3, characterized in that: The adjusting the actual detection period of the target service according to the number of accesses, the alarm threshold and the initial detection period includes: Determining a ratio of the number of accesses to the alarm threshold; comparing the ratio with a first threshold and a second threshold, respectively; When the ratio is less than the first threshold, the actual detection period of the target service is expanded according to a preset first ratio; if the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the adjusted actual detection period of the target service; if the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the adjusted actual detection period of the target service; In the case where the ratio is greater than or equal to the first threshold value and less than or equal to the second threshold value, if the actual detection period of the target service is consistent with the initial detection period, the actual detection period of the target service is not adjusted; if the actual detection period of the target service is less than the initial detection period, the actual detection period of the service is expanded according to a preset second ratio; if the expanded actual detection period is less than the initial detection period, the expanded actual detection period is used as the adjusted actual detection period of the target service; if the expanded actual detection period is greater than or equal to the initial detection period, the initial detection period is used as the adjusted actual detection period of the target service; When the ratio is greater than the second threshold, the actual detection period of the target service is reduced according to a preset third ratio, and the reduced actual detection period is used as the adjusted actual detection period of the target service.

5. A method for handling business exceptions, characterized in that: Applied to a control center, the method comprises: In the case of receiving an access record of a target service reported by any detection end among N detection ends, determining that the target service has an access anomaly, the access record includes access status information when the target service is accessed using the unloading node corresponding to the detection end, access path information of the target service, and a status identifier, the access path information includes the IP address of the unloading node corresponding to the detection end and the access address of the target service, the status identifier is used to identify whether there is an anomaly in accessing the target service using the unloading node corresponding to the detection end, and N is a positive integer; Acquire multiple access records of the target service from the N detection terminals; Among the multiple access records, a normal access record with the best access performance corresponding to the access status information is used as a target access record, wherein the normal access record is an access record including a status identifier indicating that there is no abnormality in accessing the target service using the offloading node corresponding to the detection end; Generate a target access policy corresponding to the target service based on the target access path information in the target access record; The target access policy is sent to the access node corresponding to the target service.

6. The method according to claim 5, characterized in that The access status information includes a website access delay, and taking a normal access record with the best access performance corresponding to the access status information among the multiple access records as a target access record includes: Determine that among the multiple access records, the status identifier indicates a normal access record in which there is no abnormality in accessing the target service using the offloading node corresponding to the detection end; An access record containing the smallest website access delay in the normal access records is determined as a target access record.

7. The method according to claim 5, characterized in that The generating a target access policy corresponding to the target service based on the target access path information in the target access record includes: An access address of the target service based on the target access path information is used as a destination address; Using the IP address of the uninstall node in the target access path information as the next hop address; Generate an access policy including the destination address and the next hop address; The access policy is determined as a target access policy corresponding to the target service.

8. A service exception processing device, characterized in that: Applied to the detection end, the device comprises: A detection module, used to obtain access status information when a target service is accessed using an offloading node corresponding to the detection end, wherein the target service is a service that reaches an actual detection period; an abnormality analysis module, used to determine whether there is an abnormality in accessing the target service using the offloading node according to the access status information; a recording module, configured to generate an access record of the target service, wherein the access record includes the access status information, the access path information of the target service, and a status identifier, wherein the access path information includes the IP address of the offloading node and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service using the offloading node; The reporting module is used to report the access record to the control center when it is determined that there is an abnormality in accessing the target service using the offloading node.

9. A service exception processing device, characterized in that: Applied to a control center, the device comprises: An abnormality determination module is used to determine whether there is an access abnormality in the target service when receiving an access record of the target service reported by any detection end among N detection ends, wherein the access record includes access status information when the target service is accessed by the unloading node corresponding to the detection end, access path information of the target service, and a status identifier, wherein the access path information includes the IP address of the unloading node corresponding to the detection end and the access address of the target service, and the status identifier is used to identify whether there is an abnormality in accessing the target service by the unloading node corresponding to the detection end, and N is a positive integer; A record acquisition module, used to acquire multiple access records of the target service from the N detection terminals; A target record determination module, configured to use a normal access record with the best access performance corresponding to the access status information among the multiple access records as a target access record, wherein the normal access record is an access record containing a status identifier indicating that there is no abnormality in accessing the target service using the offloading node corresponding to the detection end; A policy generation module, used to generate a target access policy corresponding to the target business based on the target access path information in the target access record; The policy delivery module is used to deliver the target access policy to the access node corresponding to the target service.

10. An electronic device, characterized in that: The electronic device comprises: a processor and a memory storing computer program instructions; When the processor executes the computer program instructions, the service exception handling method as described in any one of claims 1-4 or 5-7 is implemented.

11. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer program instructions, and when the computer program instructions are executed by the processor, the service exception handling method according to any one of claims 1-4 or 5-7 is implemented.