Cloud service cluster detection method and device, electronic equipment and storage medium

By real-time detection of gateway status in the cloud service cluster, the problem of inability to be perceived during the cloud service change process is solved, and dynamic detection and operation and maintenance operations of cloud service traffic are realized, ensuring the quality of cloud service.

CN119052134AActive Publication Date: 2024-11-29NETEASE (HANGZHOU) NETWORK CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410970258.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Priority Date
2024-06-14
Filing Date
2024-07-18
Publication Date
2024-11-29
Estimated Expiration
2044-07-18

AI Technical Summary

Technical Problem

In cloud computing scenarios, the impact caused by the change of cloud services cannot be effectively perceived, resulting in operation and maintenance personnel being unable to handle gateway status changes in time, affecting the quality of cloud services.

Method used

By entering detection instructions for cloud service clusters, obtaining gateway parameters, determining the detection gateway and test gateway, obtaining and visualizing traffic data in real time, detecting gateway status, generating gateway detection results, characterizing communication abnormalities, and realizing dynamic detection of cloud service traffic and Operation and maintenance operations.

Benefits of technology

Operations and maintenance personnel can sense the status of the communication link in real time, handle gateway abnormalities in a timely manner, ensure cloud service quality, and adapt to gateway detection needs of different clusters.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052134A_ABST
    Figure CN119052134A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a cloud service cluster detection method and device, electronic equipment and a storage medium, and relates to the technical field of cloud computing, and the method comprises the steps: obtaining gateway parameters of a cloud service cluster in response to a detection instruction for the cloud service cluster; determining a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters; sending a packet to the test gateway through the detection gateway, acquiring flow data between the detection gateway and the test gateway in a packet sending process, and visually displaying the flow data; the test gateway is detected according to the flow data, a gateway detection result for the test gateway is generated, and the gateway detection result is used for representing whether the test gateway has communication abnormity or not, so that the cloud service cluster is continuously detected, targeted operation and maintenance operation is carried out in time, and the detection efficiency of the cloud service cluster is improved. And the cloud service quality is ensured.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of cloud computing technology, and in particular to a cloud service cluster detection method, a cloud service cluster detection device, an electronic device and a computer-readable storage medium. Background Art

[0002] In recent years, cloud computing has been a hot research direction in the field of ICT (Information and Communication Technology field), and the quality control of cloud computing platforms has also been a focus of attention. Among them, by testing the cloud network, problems in the cloud network can be better discovered and the service quality of the cloud network can be guaranteed. However, for cloud services, the impact of the change process cannot be effectively perceived. Usually, we can only wait for user feedback and spend manpower to roll back the version. At the same time, it is impossible to grasp the network status of the cloud service at the user level, resulting in the inability of operation and maintenance personnel to handle the anomaly in a timely manner when the cloud service is abnormal, affecting the quality of the cloud service. Summary of the invention

[0003] The embodiments of the present invention provide a cloud service cluster detection method, device, electronic device and computer-readable storage medium to solve or partially solve the problem that the gateway in the cluster involved in cloud computing cannot be effectively detected, especially when the state of the gateway changes due to changes in cloud services, it is difficult to effectively grasp the network state of the gateway.

[0004] The embodiment of the present invention discloses a cloud service cluster detection method, comprising:

[0005] In response to a detection instruction for a cloud service cluster, obtaining a gateway parameter of the cloud service cluster;

[0006] Determine a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters;

[0007] Sending a packet to the test gateway through the detection gateway, obtaining the flow data between the detection gateway and the test gateway during the packet sending process, and visually displaying the flow data;

[0008] The test gateway is detected according to the traffic data to generate a gateway detection result for the test gateway, where the gateway detection result is used to characterize whether there is a communication anomaly in the test gateway.

[0009] The embodiment of the present invention further discloses a cloud service cluster detection device, including:

[0010] A parameter acquisition module, configured to acquire gateway parameters of the cloud service cluster in response to a detection instruction for the cloud service cluster;

[0011] A gateway selection module, used to determine a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters;

[0012] A traffic acquisition module, used to send packets to the test gateway through the detection gateway, obtain traffic data between the detection gateway and the test gateway during the packet sending process, and visualize the traffic data;

[0013] The detection module is used to detect the test gateway according to the traffic data and generate a gateway detection result for the test gateway, wherein the gateway detection result is used to characterize whether there is a communication anomaly in the test gateway.

[0014] The embodiment of the present invention further discloses an electronic device, comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus;

[0015] The memory is used to store computer programs;

[0016] The processor is used to implement the method described in the embodiment of the present invention when executing the program stored in the memory.

[0017] The embodiment of the present invention further discloses a computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, enables the processors to execute the method described in the embodiment of the present invention.

[0018] The embodiments of the present invention include the following advantages:

[0019] In an embodiment of the present invention, in a cloud computing scenario, by inputting a detection instruction for a cloud service cluster, the detection system can obtain the gateway parameters of the cloud service cluster, and then the system can determine the detection gateway and the test gateway from the cloud service cluster according to the gateway parameters, and send a packet to the test gateway through the detection gateway, and obtain the flow data between the detection gateway and the test gateway during the packet sending process, and visualize the flow data. By displaying the flow data between the detection gateway and the test gateway in real time and visually, the operation and maintenance personnel can perceive the state corresponding to the corresponding communication link in real time and grasp the state of the gateway, and then detect the test gateway according to the flow data, and generate a gateway detection result for the test gateway, so as to characterize whether the test gateway has communication anomalies through the gateway detection result, so that in the process of cloud computing continuously providing cloud services to users, the corresponding detection gateway and test gateway can be constructed in real time for the gateway that needs to be detected, and can be effectively adapted to different clusters. At the same time, the detection gateway sends a packet to the test gateway to obtain the flow data between the two, and then the communication link is detected based on the flow data, and the flow of cloud services is continuously dynamically detected, so as to carry out targeted operation and maintenance operations in a timely manner to ensure the quality of cloud services. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] Figure 1 is a flow chart of the steps of a cloud service cluster detection method provided in an embodiment of the present invention;

[0021] Figure 2 is a schematic diagram of a scenario of gateway detection provided in an embodiment of the present invention;

[0022] Figure 3 is a schematic diagram of a network topology provided in an embodiment of the present invention;

[0023] Figure 4 is a schematic diagram of gateway creation provided in an embodiment of the present invention;

[0024] Figure 5 is a schematic diagram of a generation process of a detection task provided in an embodiment of the present invention;

[0025] Figure 6 It is a structural block diagram of a detection device for a cloud service cluster provided in an embodiment of the present invention;

[0026] Figure 7 It is a block diagram of an electronic device provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0027] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, the present invention is further described in detail below with reference to the accompanying drawings and specific embodiments.

[0028] As an example, for cloud networks, the test solutions in related technologies have carried out quality assurance for various characteristics of cloud networks, including functional testing, automated regression testing, performance testing, inspection testing, chaos testing, etc. Among them, functional testing is to verify that the cloud network functions are used normally, chaos testing is a cloud network fault simulation test, and performance testing is a cloud network load test. The above are to find problems before the software is released; inspection testing is to simulate users operating online services to verify whether the online services are normal, and automated regression testing is to test and accept the main functions after the cloud network changes are completed. Based on these tests, cloud network problems can be better discovered and quality can be guaranteed.

[0029] However, the above test methods provide quality assurance before and after the service change. Whether the service is normal during the change process and after the launch is still not guaranteed. For cloud services, the impact of the change process cannot be perceived, and usually only feedback from the user side is received, and manpower is spent to roll back the version. At the same time, the current operation and maintenance or testing system cannot grasp the network status at the user level, such as whether there is network jitter, packet loss, etc., and cannot provide timely service maintenance.

[0030] In this regard, in the present invention, in a cloud computing scenario, by inputting a detection instruction for a cloud service cluster, the detection system can obtain the gateway parameters of the cloud service cluster, and then the system can determine the detection gateway and the test gateway from the cloud service cluster according to the gateway parameters, and send a packet to the test gateway through the detection gateway, and obtain the flow data between the detection gateway and the test gateway during the packet sending process, and visualize the flow data. By displaying the flow data between the detection gateway and the test gateway in real time and visually, the operation and maintenance personnel can perceive the corresponding state of the corresponding communication link in real time and grasp the state of the gateway, and then detect the test gateway according to the flow data, and generate a gateway detection result for the test gateway, so as to characterize whether the test gateway has communication anomalies through the gateway detection result, so that in the process of cloud computing continuously providing cloud services to users, the corresponding detection gateway and test gateway can be constructed in real time for the gateway that needs to be detected, which can be effectively adapted to different clusters, and at the same time, the detection gateway sends a packet to the test gateway to obtain the flow data between the two, and then the communication link is detected based on the flow data, and the flow of cloud services is continuously dynamically detected, so as to carry out targeted operation and maintenance operations in a timely manner to ensure the quality of cloud services.

[0031] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, some technical features involved in the embodiments of the present invention are explained and illustrated below:

[0032] The Data Center Zone is a physical or logical partition within a data center, which contains IT infrastructure such as servers, network equipment, and storage devices. The design of the data center zone usually takes into account redundancy, security, and energy efficiency to ensure the stable operation and data security of the data center. The data center zone can be divided according to geographical location, functional requirements, or security level.

[0033] A cluster is a group of interconnected computers (nodes) that work together to provide higher computing power, storage capacity, or network services. Clusters can be divided into computing clusters, storage clusters, database clusters, etc. They use cluster management software to coordinate resource and task allocation between nodes. The purpose of clusters is to improve system reliability, availability, and scalability.

[0034] A gateway is a device that connects two or more networks and transfers data from one network to another. A gateway can perform a variety of functions, such as protocol conversion, packet forwarding, security checks, etc. In a data center environment, a gateway may refer to a border router that connects an internal network to an external network, or a switch that connects different network areas (such as VLANs).

[0035] For computer room area, cluster and gateway, the computer room area is the physical or logical hosting environment of the cluster. The servers and network devices in the cluster are usually deployed in the computer room area and rely on the power, cooling and physical security infrastructure provided by the computer room. The cluster can be a component of the computer room area, or it can span multiple computer room areas to form a distributed cluster to improve the disaster recovery and scalability of the system. At the same time, the cluster communicates with the external network or other clusters through the gateway. The gateway is responsible for processing the traffic in and out of the cluster to ensure the security and correct routing of data. In the microservice architecture, the communication between services within the cluster may also be managed by a gateway (such as an API gateway) to achieve functions such as traffic control and security policy implementation. Accordingly, the gateway is usually deployed at the boundary of the computer room area as a bridge between the internal network and the external network. Gateways can be physical devices or virtual devices. They play a key role in the security and network policy of the computer room area. Gateways may also be deployed between different network partitions (such as different security level areas) in the computer room area to achieve network isolation and traffic control.

[0036] In general, the computer room area provides the physical environment for clusters and gateways to run. The cluster is a logical collection of computing and storage services in the computer room area, and the gateway is a key device that connects the cluster to the outside world or other clusters. These three are interdependent and together constitute the infrastructure architecture of the data center.

[0037] In one example, for a gateway, it may include an external network gateway and an internal network gateway. The external network gateway may be a gateway responsible for data interaction between the cluster and the public network, while the internal network gateway may be a gateway for data interaction within the cluster. At the same time, according to the traffic carrying capacity, the gateway may be divided into a gateway that supports access from within the cluster to outside the cluster, supports access from outside the cluster to within the cluster, supports traffic distribution from within the cluster to outside the cluster, supports traffic distribution from outside the cluster to outside the cluster, supports access within the cluster, and supports traffic distribution within the cluster. In the corresponding implementation, the network topology may be configured based on the gateway type and traffic carrying capacity, so as to configure the network topology of the cluster according to actual needs, thereby meeting different cloud computing scenarios, and providing corresponding cloud services for different users.

[0038] Reference Figure 1 , shows a flow chart of the steps of a cloud service cluster detection method provided in an embodiment of the present invention, which may specifically include the following steps:

[0039] Step 101, in response to a detection instruction for a cloud service cluster, obtaining gateway parameters of the cloud service cluster;

[0040] In an embodiment of the present invention, an automatic detection program for a cloud service cluster (hereinafter referred to as a cluster) can be constructed. By cooperating with the corresponding cloud network components in the cluster, the corresponding detection of the gateways in the cluster can be effectively achieved. For example, after the automatic detection program is deployed in the cluster, the corresponding gateway is selected from the cluster that needs to be detected according to actual needs, and then the traffic data involved in the data interaction process of the gateway is collected, and the collected traffic data is transmitted to the management scheduler for visual display, and the abnormality of the traffic data is detected at the same time, so as to continuously detect the gateway.

[0041] Among them, the management scheduler can be used to control the detection tasks of traffic monitoring, as well as the selection of detection gateways and test gateways. It can also be used to store detailed information of gateways in the cloud cluster and provide corresponding interfaces for automatic detection programs to call in order to collect information corresponding to the detection tasks.

[0042] It should be noted that the automatic detection program can be a script developed by developers for automatically detecting the gateway. Specifically, the developer can make the automatic detection program into an executable image, and then write cronJobyaml. Each yawl corresponds to a program of a gateway type. Then the yawl file can be packaged into a helm package, and the helm package can be deployed in the selected point cluster, so as to achieve the purpose of one-click deployment of multiple yamls. Among them, the yawl file can be a configuration file for traffic detection, through which the automatic detection of the gateway can be realized to ensure the quality of cloud services.

[0043] In some feasible implementations, the detection instruction may be an instruction generated when a state change of the cloud service cluster is detected. Specifically, the detection instruction for the cloud service cluster may be generated in response to detecting a state change of the cloud service cluster. Detecting a state change of the cloud service cluster includes at least: detecting the addition of a new gateway to the cloud service cluster, or detecting a state change of the gateway; wherein the state change of the gateway includes at least one of a connection state change, an operation state change, a performance state change, a security state change, a configuration state change, and a version state change.

[0044] In addition, it can also be a detection instruction regularly generated by an automatic detection program. The regular detection instruction can be an instruction to detect relevant gateways according to a preset detection cycle or at a fixed time, or to randomly select gateways for detection; for newly added gateways in the cluster, since there is no corresponding detection record in advance, when a new gateway is added, the newly added gateway can be detected so that the operation and maintenance personnel can effectively grasp the status of each gateway; accordingly, when the state of the gateway changes, in order to ensure the stability of the gateway, the gateway can be detected, etc., so that when the gateway in the cluster undergoes corresponding changes, the gateway can be detected in time to ensure the stability of the gateway.

[0045] It should be noted that for periodic detection instructions, since a corresponding automatic detection program is deployed in the stability detection system, based on the characteristics of the automatic detection program, it can be executed regularly in the cluster to trigger detection instructions for the cloud service cluster, etc. The present invention does not impose any restrictions on this.

[0046] Step 102, determining a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters;

[0047] After obtaining the gateway parameters corresponding to each gateway in the cloud service cluster, the detection gateway and the test gateway can be determined from the gateway based on the gateway parameters. The detection gateway can be used as a data sending end relative to the test gateway, and the test gateway can be used as a data receiving end relative to the detection gateway, that is, the detection data packet sent between the detection gateway and the test gateway can be transmitted from the detection gateway to the test gateway, and the test gateway does not send a data packet to the detection gateway.

[0048] Among them, the gateway parameters may include at least the gateway type and traffic carrying capacity, etc., and the automatic detection program can use the gateway type and traffic carrying capacity to determine the detection gateway and the test gateway from the gateway, so as to build a communication link between the detection gateway and the test gateway, and then transmit data based on the communication link.

[0049] In some feasible implementations, if the gateway type belongs to an external network gateway in a cluster, and the traffic carrying capacity is that the gateway supports access from within the cluster to outside the cluster, then any gateway is selected as a detection gateway in any cluster in the first computer room area, and any gateway is selected as a first test gateway in any cluster in the second computer room area, or, a website with an IP address in the first geographical area is used as the second test gateway, and a website with an IP address in the second geographical area is used as the third test gateway; if the gateway type belongs to an external network gateway in a cluster, and the traffic carrying capacity is that the gateway supports access from outside the cluster to within the cluster, then any gateway is selected as a detection gateway in any cluster in the first computer room area, and Select any gateway in any cluster in the second computer room area as the first test gateway; if the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports traffic distribution from within the cluster to outside the cluster, then select any gateway in any cluster in the first computer room area as the detection gateway, and select any gateway in any cluster in the second computer room area as the first test gateway; if the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports traffic distribution from outside the cluster to outside the cluster, then select any gateway from any cluster that supports the istio function as the detection gateway, and select any gateway in any cluster in the computer room area different from the detection gateway as the test gateway.

[0050] In other feasible implementations, if the gateway type is an intranet gateway in a cluster and the traffic carrying capacity is that the gateway supports access within the cluster, then any gateway is selected in each cluster in each first computer room area as a detection gateway, and any gateway is selected in each cluster in each second computer room area as a test gateway; if the gateway type is an intranet gateway in a cluster and the traffic carrying capacity is that the gateway supports traffic distribution within the cluster, then any gateway is selected in any cluster in the first computer room area as a detection gateway, and any gateway is selected in any cluster in the second computer room area as the first test gateway.

[0051] In the specific implementation, for the external network gateway, it can be SNAT GW, DNAT GW, NAT64 GW, L4ELB and ISTIO GATEWAY, etc. SNAT GW (Source Network Address Translation Gateway): SNAT gateway is mainly used to convert the private IP address of the internal network into the public IP address of the external network, so that the internal host can access the external network (that is, access from within the cluster to outside the cluster), while hiding the internal network structure and increasing security.

[0052] DNAT GW (Destination Network Address Translation Gateway), the DNAT gateway is used to map the public IP address and port of the external network to the private IP address and port of the internal network, so that external users can access the services provided by the internal server (i.e., cluster-outside access to cluster-inside access).

[0053] NAT64 GW (Network Address Translation 64Gateway), NAT64 gateway is a special network address translation device used to translate addresses between IPv6 and IPv4 networks, which allows IPv6 hosts to communicate with IPv4 servers, and is usually used in conjunction with DNS64 to achieve non-aware dual-stack communication. Optionally, access from the cluster to the cluster can be achieved through NAT64 GW.

[0054] L4 ELB (Layer 4 Elastic Load Balancer) is a load balancer that works at the fourth layer (transport layer) of the OSI model. It can distribute traffic based on IP addresses and port numbers, and supports TCP and UDP protocols. L4 ELB is usually used to provide basic traffic distribution and failover functions. Optionally, L4 ELB can be used to distribute traffic from within the cluster to outside the cluster.

[0055] Istio Gateway, which can be a component in the Istio service mesh, defines the traffic rules in and out of the mesh. Istio Gateway can be configured as an L4-L7 load balancer, supporting HTTP / HTTPS, TCP and UDP traffic, which allows administrators to control the traffic in and out of the mesh, including TLS termination, traffic routing and security policy enforcement. Optionally, Istio Gateway can be used to distribute traffic from outside the cluster to within the cluster.

[0056] For the intranet gateway, it may include support for intra-cluster access and L4 ELB, etc. The corresponding description can refer to the aforementioned process and will not be repeated here.

[0057] It should be noted that the traffic carrying capacity can be the ability to support traffic for different objects, and the objects can include intranet containers, intranet networks, extranet networks, extranet containers, etc., where the intranet container can be a virtual machine deployed in the internal network of the cluster, and the extranet container can be a virtual machine deployed in the external network of the cluster; for the extranet network, it can be divided into domestic networks and overseas networks, etc. Based on the traffic carrying capacity, for the extranet gateway, it can support the intranet container to access the extranet (domestic network and overseas network, etc.), the extranet network to access the extranet container, the extranet network to access the intranet container, etc.; for the intranet gateway, it can support the intranet container to access the intranet network or another intranet container, etc., and the present invention does not limit this.

[0058] In some examples, assuming that the gateway is a SNAT GW, which supports the intranet container to access the external network, any gateway can be selected as the detection gateway in any cluster in each first computer room area (such as Shanghai, Guangzhou, Beijing, etc.). Accordingly, a website with an IP address located in the country can be used as a test gateway, and / or a website with an IP address located abroad can be used as a test gateway, etc.

[0059] Assuming that the gateway is a DNAT GW or a NAT64 GW, which supports external networks to access external containers, you can select any gateway in any cluster in each first computer room area (such as Shanghai, Guangzhou, Beijing, etc.) as the detection gateway, and you can select any gateway in any cluster in each second computer room area (Shanghai, Guangzhou, Beijing, etc.) as the test gateway (these gateways are bound to the external SNAT GW).

[0060] Assuming that the gateway is L4ELB, which supports intranet containers to access the external network, you can select any gateway in any cluster in each first computer room area (such as Shanghai, Guangzhou, Beijing, etc.) as the detection gateway, and you can select any gateway in any cluster in each second computer room area (Shanghai, Guangzhou, Beijing, etc.) as the test gateway (these gateways are bound to the external SNAT GW).

[0061] Assuming that the gateway is ISTIO GATEWAY, which supports the external network to access the external network container, you can select any gateway from each cluster that supports the istio function as the detection gateway, and select any gateway in any cluster in each computer room area (Shanghai, Guangzhou, Beijing, etc.) as the test gateway (these gateways are bound to the external SNAT GW).

[0062] Correspondingly, if the gateway is an intranet gateway and it supports the intranet container to access the intranet network and / or the intranet container, then any gateway can be selected as the detection gateway in each cluster in each first computer room area (such as Shanghai, Guangzhou, Beijing, etc.), and any gateway can be selected as the test gateway in any cluster in each second computer room area (such as Shanghai, Guangzhou, Beijing, etc.) (these gateways are bound to the external SNAT GW); if the gateway is the intranet L4ELB, which supports the intranet container to access the intranet network, then any gateway can be selected as the detection gateway in any cluster in each first computer room area (such as Shanghai, Guangzhou, Beijing, etc.), and any gateway can be selected as the test gateway in any cluster in each second computer room area (Shanghai, Guangzhou, Beijing, etc.).

[0063] Through the above process, the detection gateway and the test gateway can be determined according to the gateway parameters, which effectively adapts to different clusters and meets the needs of gateway detection for different clusters.

[0064] In some feasible implementations, after determining the detection gateway and the test gateway, the system can obtain the first gateway information of the detection gateway and the second gateway information of the test gateway, and construct tasks according to the first gateway information and the second gateway information to obtain detection tasks for the detection gateway and the test gateway. The gateway information may include at least IP type, detection method, network type, and transmission protocol, etc. The IP type may include IPV4 and IPV6, etc. The detection method may include fullmesh and one-way dialing, etc. Fullmesh can be a detection method in which each node tests other nodes, and one-way dialing can be a one-way delay detection method from one point to another. The network type may include an external network and an internal network. The transmission protocol may include ICMP-ping, ICMP-mtr, TCP, UDP, HTTP(s), and messiah protocols, and the present invention does not limit this.

[0065] In a specific implementation, the automatic detection program can send a detection request to the management scheduler, and the detection request can include gateway information corresponding to the detection gateway and the test gateway respectively. Then the management scheduler can extract at least one of the IP type, detection method, network type, and transmission protocol between the detection gateway and the test gateway from the first gateway information and the second gateway information, and then use at least one of the IP type, detection method, network type, and transmission protocol to construct a detection task for the detection gateway and the test gateway, and then send the detection task to the automatic detection program so that the automatic detection program can execute the corresponding detection task.

[0066] Step 103, sending a packet to the test gateway through the detection gateway, and obtaining the flow data between the detection gateway and the test gateway during the packet sending process, and visually displaying the flow data;

[0067] For the detection gateway and the test gateway, the automatic detection program can send the detection task to the detection gateway. After receiving the detection task, the detection gateway can initiate the detection of the test target. Specifically, the detection gateway can send the corresponding test data packet to the test gateway, and at the same time, it can obtain the flow data between the detection gateway and the test gateway during the packet sending process, so as to detect the test gateway based on the flow data. At the same time, the collected flow data can be visualized so that the operation and maintenance personnel can perceive the corresponding status of the corresponding communication link in real time and grasp the status of the gateway.

[0068] In a specific implementation, a communication link between the detection gateway and the test gateway can be first constructed based on the IP type and the network type, and then the detection gateway can be controlled to send packets to the test gateway according to the detection method and the transmission protocol. Optionally, assuming that the detection gateway is outside the cluster and the test gateway is inside the cluster, a gateway communication link between the networks inside and outside the cluster can be first constructed based on the IP type and the network type, and then the corresponding test data packet can be sent to the test gateway according to the detection method and the transmission protocol. In one example, assuming that the IP type is IPV4, the detection method is one-way dialing, the network type is an external network, and the transmission protocol is ICMP-ping, then a communication link from the cluster external network to the internal network can be constructed between the detection gateway and the test gateway, and the detection gateway can be controlled to send the corresponding test data packet to the test gateway according to the one-way dialing and ICMP-ping method to achieve detection of the test cloud service cluster.

[0069] Step 104: Detect the test gateway according to the traffic data to generate a gateway detection result for the test gateway, where the gateway detection result is used to indicate whether there is a communication anomaly in the test gateway.

[0070] After obtaining the corresponding traffic data during the packet sending process between the detection gateway and the test gateway, the communication link between the detection gateway and the test gateway can be detected based on the traffic data to generate a gateway detection result for the test gateway. Therefore, in the process of cloud computing continuously providing cloud services to users, the corresponding detection gateway and test gateway can be built in real time for the gateway that needs to be detected, and packets can be sent to the test gateway through the detection gateway to obtain the traffic data between the two. Then, the communication link is detected based on the traffic data, and the traffic of cloud services is continuously detected. Targeted operation and maintenance operations can be performed in a timely manner to ensure the quality of cloud services.

[0071] In some feasible implementations, the traffic data includes at least one of the following: packet loss rate, link availability rate, average delay of request response time, statistical percentile of request response time, and standard deviation of request response time. The automatic inspection program can detect the communication link between the detection gateway and the test gateway based on at least one of the following: packet loss rate, link availability rate, average delay of request response time, statistical percentile of request response time, and standard deviation of request response time, and generate a gateway detection result for the test gateway.

[0072] For example, for packet loss rate, if a certain percentage of the packets sent by the detection gateway within a certain period of time are lost or discarded during transmission, the automatic detection program can evaluate the stability of the link by calculating the packet loss rate. For example, if the packet loss rate exceeds a certain threshold (such as 1%), it may indicate network congestion or link failure, and a gateway abnormal result for the test gateway can be generated; conversely, if the packet loss rate is less than or equal to the corresponding threshold, a gateway normal result for the test gateway can be generated.

[0073] For link availability, the automatic detection program can calculate the link availability, that is, the proportion of the link in an available state during a certain period of time, by recording the online time and total time of the link. If the link availability is lower than a certain threshold (such as 95%), it may indicate that there are more faults or instability in the link, and a gateway abnormal result for the test gateway can be generated; conversely, if the link availability is greater than or equal to the corresponding threshold, it indicates that there are no faults or instability in the link, and a gateway normal result for the test gateway can be generated.

[0074] For the average delay of the request response time, the average delay of the detection gateway sending the request to the test gateway and receiving the response can be counted, which can reflect the delay of the communication link. A higher average delay may affect the real-time and response speed of the service. If the average delay is greater than or equal to the corresponding duration threshold, a gateway abnormal result for the test gateway can be generated; conversely, if the average delay is less than the duration threshold, a gateway normal result for the test gateway can be generated.

[0075] For the statistical percentiles of the request response time, in addition to the average delay, the statistical percentiles of the request response time (such as the median, 75th percentile, 95th percentile, etc.) can also be calculated to help understand the stability and reliability of the communication link. A higher statistical percentile may indicate that there are a certain number of requests with large delays. Therefore, when the statistical percentile reaches the corresponding threshold, a gateway abnormality result can be generated for the test gateway; otherwise, a gateway normal result can be generated for the test gateway.

[0076] The standard deviation of the request response time can reflect the data distribution of the request response time. A larger standard deviation may indicate that the stability of the communication link is poor and there is greater volatility. Therefore, when the standard deviation is greater than or equal to the preset threshold, an abnormal gateway result can be generated for the test gateway; otherwise, a normal gateway result can be generated for the test gateway.

[0077] It should be noted that, in the above process, the communication link of the test gateway is detected in a single-dimensional manner. It can be understood that the communication link of the test gateway can also be detected in a comprehensive manner in multiple dimensions, such as based on packet loss rate, average delay and standard deviation, or based on average delay, statistical percentile and standard deviation, etc. The present invention is not limited to this.

[0078] In the above process, if the gateway detection result indicates that the communication link is abnormal, an alarm prompt information for the test gateway is output so that the corresponding operation and maintenance personnel can make timely adjustments to the abnormal gateway, link, etc. through the alarm prompt information to ensure the quality of cloud services.

[0079] In addition, when the corresponding gateway is deleted, the corresponding associated resources and detection tasks and other information can be deleted synchronously. Specifically, the system can respond to the deletion instructions for the detection gateway and / or the test gateway, and delete the test tasks corresponding to the detection gateway and / or the test gateway. By continuously detecting the gateways in the cluster, it is possible to effectively detect the stability of the gateway after the change in time when the gateway changes, so as to ensure the quality of cloud services.

[0080] It should be noted that the embodiments of the present invention include but are not limited to the above examples. It is understandable that those skilled in the art can also make settings according to actual needs under the guidance of the ideas of the embodiments of the present invention, and the present invention is not limited to this.

[0081] In an embodiment of the present invention, in a cloud computing scenario, by inputting a detection instruction for a cloud service cluster, the detection system can obtain the gateway parameters of the cloud service cluster, and then the system can determine the detection gateway and the test gateway from the cloud service cluster according to the gateway parameters, and send a packet to the test gateway through the detection gateway, and obtain the flow data between the detection gateway and the test gateway during the packet sending process, and visualize the flow data. By displaying the flow data between the detection gateway and the test gateway in real time and visually, the operation and maintenance personnel can perceive the state corresponding to the corresponding communication link in real time and grasp the state of the gateway, and then detect the test gateway according to the flow data, and generate a gateway detection result for the test gateway, so as to characterize whether the test gateway has communication anomalies through the gateway detection result, so that in the process of cloud computing continuously providing cloud services to users, the corresponding detection gateway and test gateway can be constructed in real time for the gateway that needs to be detected, and can be effectively adapted to different clusters. At the same time, the detection gateway sends a packet to the test gateway to obtain the flow data between the two, and then the communication link is detected based on the flow data, and the flow of cloud services is continuously dynamically detected, so as to carry out targeted operation and maintenance operations in a timely manner to ensure the quality of cloud services.

[0082] In order to enable those skilled in the art to better understand the technical solutions in the embodiments of the present invention, the following examples are used for exemplary description:

[0083] Reference Figure 2 , shows a schematic diagram of the scenario of gateway detection provided in an embodiment of the present invention, wherein CrobJob can be an automatic detection program, Client can be a detection gateway, Server can be a test gateway, interface can be an interface of the management scheduler (Operation Control Center), and WaterflowCenter can be a flow meter. In the process of detecting the Server, CrobJob can automatically trigger the detection of the Server at a fixed time or when conditions are met, that is, it can first initiate a detection request to the management scheduler through the interface, and obtain the detection task issued by the management scheduler, and then control the Client to send a data packet to the Server based on the detection task, and collect the flow data involved in the packet sending process, and then transmit the flow data to the management scheduler, and the management scheduler can visualize the flow data through the flow meter. At the same time, the flow meter can detect the Server based on the flow data, and if an abnormality occurs, it can trigger a corresponding alarm prompt.

[0084] Reference Figure 3, showing a schematic diagram of the network topology provided in an embodiment of the present invention. Specifically, all cloud network component types in the cluster and the required network resources can be listed first. If it is an external network gateway type, it is necessary to apply for a subnet as the client side, and use the traffic detection tool (fullmesh) image as the container image; if it is an intranet gateway, it is necessary to use the ngnix image as the container image as the server side. Then, according to the computer room area where the gateway is located, select the corresponding computing cluster to create containers and network resources. When sending packets, the gateway will forward them to the corresponding backend container with the shortest path strategy, thereby achieving steady-state resource coverage of the gateway. For example, for a kubernetes cluster, it can be composed of a gateway area and a computing area. In the same computer room, corresponding gateway areas and computing clusters can be deployed, and corresponding data communications can be carried out between different computer rooms. Refer to Figure 3 , the gateway located in computer room A can select the computing clusters located in computer rooms B, C, and D as containers and network resources; the gateway located in computer room B can select the computing clusters located in computer rooms B, C, and D as containers and network resources, etc. The present invention does not limit this.

[0085] Reference Figure 4 , shows a schematic diagram of gateway creation provided in an embodiment of the present invention, and the specific process may include:

[0086] S401. The technician first makes the program into an executable image, and then writes the crobJob yaml file. Each yaml file corresponds to a gateway type program. Then the yaml file is packaged into a helm package, and the helm package is deployed in the selected cluster, so that multiple yaml files can be deployed with one click.

[0087] S402. Due to the characteristics of crobJob, it can be executed in the cluster on a regular basis every day to check the number of gateways and add or delete resources.

[0088] S403, the program is an execution code implemented according to the network topology diagram. When the program is run, the program will first call the management scheduler interface to obtain the current detection source list for the next step of configuring the acl network resources.

[0089] S404. When the program is running, the program will obtain a gateway list and filter gateways of a specified type and a specified area.

[0090] S405. When the program is running, it will create k8s resources such as Pod, Service, DNATEip, etc. according to the obtained gateway list, among which Eip and Service will be associated with the specified gateway.

[0091] S406. After creating the resources, the program will collect the information such as Eip id, gateway id, cluster id, region, etc. returned by the interface and send it to the management scheduler for storing the detected source / detection source information and generating detection tasks.

[0092] S407, the management scheduler will collect the detector / detected source information, organize the detection tasks of different latitudes according to the cluster / region / gateway information, and send it to the monitoring center to generate a monitoring dashboard.

[0093] Reference Figure 5 , shows a schematic diagram of the generation process of the detection task provided in an embodiment of the present invention, and the specific process may include:

[0094] S501. The technician injects the detection source, detection target and necessary label information into the database through the API (Application Programming Interface) of the control device.

[0095] S502: The scheduler collects different latitude information such as cluster, region, gateway type, etc. according to the arranged scenario rules (management tasks, etc.), dynamically classifies the detection source and target, and outputs them to different detection scenario directories, and then generates a configuration and sends it to the detection agent.

[0096] S503. After receiving the task, the Agent periodically initiates detection of the detection target and establishes a communication connection corresponding to the detection target. The detection target may include an API server, an internal / external network container, an overseas network, a gateway, a node (pod), etc. The transmission protocol of the communication connection includes HTTP, TCP, ping and other connections.

[0097] S504, the Agent reports the detection results to the Monitor monitoring center, including indicators such as delay and packet loss.

[0098] S505. The technical personnel can set alarm configurations such as thresholds and templates for different scenarios in the monitoring center, so that the monitoring center can detect corresponding data indicators based on the set alarm configurations.

[0099] S506. The monitoring center may send the detection result to the device where the technician is located, and a receiving device may display the detection result, so that the technician may view the corresponding detection result in real time.

[0100] Through the above process, in the process of cloud computing continuously providing cloud services to users, corresponding detection gateways and test gateways can be built in real time for the gateways that need to be detected, which can effectively adapt to different clusters. At the same time, packets are sent to the test gateway through the detection gateway to obtain the traffic data between the two, and then the communication link is detected based on the traffic data. The traffic of cloud services is continuously detected dynamically, so as to carry out targeted operation and maintenance operations in a timely manner to ensure the quality of cloud services.

[0101] It should be noted that, for the sake of simplicity, the method embodiments are described as a series of action combinations, but those skilled in the art should be aware that the embodiments of the present invention are not limited by the order of the actions described, because according to the embodiments of the present invention, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the embodiments of the present invention.

[0102] Reference Figure 6 , shows a structural block diagram of a cloud service cluster detection device provided in an embodiment of the present invention, which may specifically include the following modules:

[0103] The parameter acquisition module 601 is used to obtain the gateway parameters of the cloud service cluster in response to the detection instruction for the cloud service cluster;

[0104] A gateway selection module 602, configured to determine a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters;

[0105] The traffic acquisition module 603 is used to send a packet to the test gateway through the detection gateway, and obtain the traffic data between the detection gateway and the test gateway during the packet sending process;

[0106] The detection module 604 is used to detect the test gateway according to the traffic data and generate a gateway detection result for the test gateway, wherein the gateway detection result is used to indicate whether there is a communication anomaly in the test gateway.

[0107] In some feasible implementations, the gateway parameters include at least a gateway type and a traffic carrying capacity, and the gateway selection module 602 is specifically used to:

[0108] The detection gateway and the test gateway are determined from the cloud service cluster using the gateway type and the traffic carrying capacity, wherein the traffic carrying capacity is the ability of a gateway to access different networks or distribute traffic between different networks.

[0109] In some feasible implementations, the gateway selection module 602 is specifically configured to:

[0110] If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports access from within the cluster to outside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway, or, a website with an IP address in the first geographical area is used as the second test gateway, and a website with an IP address in the second geographical area is used as the third test gateway;

[0111] If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports access from outside the cluster to inside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway;

[0112] If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports the distribution of traffic from within the cluster to outside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway;

[0113] If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports traffic distribution from outside the cluster to outside the cluster, then select any gateway from any cluster that supports the istio function as the detection gateway, and select any gateway from any cluster in a different computer room area from the detection gateway as the test gateway.

[0114] In some feasible implementations, the gateway selection module 602 is specifically configured to:

[0115] If the gateway type is an intranet gateway in a cluster, and the traffic carrying capacity is that the gateway supports access within the cluster, then any gateway in each cluster in each first computer room area is selected as a detection gateway, and any gateway in each cluster in each second computer room area is selected as a test gateway;

[0116] If the gateway type is an intranet gateway in a cluster, and the traffic carrying capacity is that the gateway supports traffic distribution within the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway.

[0117] In some feasible implementations, the device further includes:

[0118] An information acquisition module, used to acquire the first gateway information of the detection gateway and the second gateway information of the test gateway;

[0119] The task generation module is used to construct a task according to the first gateway information and the second gateway information to obtain a detection task for the detection gateway and the test gateway.

[0120] In some feasible implementations, the task generation module is specifically used to:

[0121] Extracting at least one of the IP type, detection mode, network type, and transmission protocol between the detection gateway and the test gateway from the first gateway information and the second gateway information;

[0122] At least one of the IP type, the detection method, the network type and the transmission protocol is adopted to construct a detection task for the detection gateway and the test gateway.

[0123] In some feasible implementations, the traffic acquisition module 603 is specifically used to:

[0124] A communication link is established between the detection gateway and the test gateway based on the IP type and the network type, and the detection gateway is controlled to send a packet to the test gateway according to the detection mode and the transmission protocol.

[0125] Some possible implementations also include:

[0126] The data deletion module is used to delete the test tasks corresponding to the detection gateway and / or the test gateway in response to a deletion instruction for the detection gateway and / or the test gateway.

[0127] In some feasible implementations, the traffic data includes at least one of a packet loss rate, a link availability rate, an average delay of a request response time, a statistical percentile of a request response time, and a standard deviation of a request response time, and the detection module 604 is specifically used to:

[0128] Based on at least one of the packet loss rate, the link availability rate, the average delay of the request response time, the statistical percentile of the request response time, and the standard deviation of the request response time, the communication link between the detection gateway and the test gateway is detected to generate a gateway detection result for the test gateway.

[0129] Some possible implementations also include:

[0130] The prompt module is used to output an alarm prompt message for the test gateway if the gateway detection result indicates that the communication link is abnormal.

[0131] In some feasible implementations, the parameter acquisition module 601 is specifically used to:

[0132] In response to detecting a change in the state of the cloud service cluster, generating a detection instruction for the cloud service cluster;

[0133] The detecting of a cloud service cluster status change at least includes:

[0134] Detecting that a new gateway is added to the cloud service cluster, or detecting that the state of a gateway changes;

[0135] The state change of the gateway includes at least one of a connection state change, an operation state change, a performance state change, a security state change, a configuration state change and a version state change.

[0136] In some feasible implementations, the parameter acquisition module 601 is specifically used to:

[0137] Periodically generate detection instructions for the cloud service cluster.

[0138] As for the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0139] In addition, an embodiment of the present invention further provides an electronic device, including: a processor, a memory, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the various processes of the above-mentioned cloud service cluster detection method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0140] The embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, each process of the above-mentioned cloud service cluster detection method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it is not repeated here. The computer-readable storage medium is, for example, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

[0141] Figure 7 A schematic diagram of the hardware structure of an electronic device for implementing various embodiments of the present invention.

[0142] The electronic device 700 includes but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, and a power supply 711. Those skilled in the art will appreciate that the electronic device structure involved in the embodiments of the present invention does not constitute a limitation on the electronic device, and the electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently. In the embodiments of the present invention, the electronic device includes but is not limited to a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted terminal, a wearable device, and a pedometer.

[0143] It should be understood that in the embodiment of the present invention, the radio frequency unit 701 can be used for receiving and sending signals during information transmission or communication. Specifically, after receiving downlink data from the base station, it is sent to the processor 710 for processing; in addition, uplink data is sent to the base station. Generally, the radio frequency unit 701 includes but is not limited to an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, etc. In addition, the radio frequency unit 701 can also communicate with the network and other devices through a wireless communication system.

[0144] The electronic device provides users with wireless broadband Internet access through the network module 702, such as helping users to send and receive emails, browse web pages, and access streaming media.

[0145] The audio output unit 703 can convert the audio data received by the RF unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output it as sound. Moreover, the audio output unit 703 can also provide audio output related to a specific function performed by the electronic device 700 (for example, a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, etc.

[0146] The input unit 704 is used to receive audio or video signals. The input unit 704 may include a graphics processor (GPU) 7041 and a microphone 7042, and the graphics processor 7041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The processed image frame can be displayed on the display unit 706. The image frame processed by the graphics processor 7041 can be stored in the memory 709 (or other storage medium) or sent via the radio frequency unit 701 or the network module 702. The microphone 7042 can receive sound and can process such sound into audio data. The processed audio data can be converted into a format output that can be sent to a mobile communication base station via the radio frequency unit 701 in the case of a telephone call mode.

[0147] The electronic device 700 also includes at least one sensor 705, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor and a proximity sensor, wherein the ambient light sensor can adjust the brightness of the display panel 7061 according to the brightness of the ambient light, and the proximity sensor can turn off the display panel 7061 and / or the backlight when the electronic device 700 is moved to the ear. As a kind of motion sensor, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), and can detect the magnitude and direction of gravity when stationary, which can be used to identify the posture of the electronic device (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer, tapping), etc.; the sensor 705 can also include a fingerprint sensor, a pressure sensor, an iris sensor, a molecular sensor, a gyroscope, a barometer, a hygrometer, a thermometer, an infrared sensor, etc., which will not be repeated here.

[0148] The display unit 706 is used to display information input by the user or information provided to the user. The display unit 706 may include a display panel 7061, which may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.

[0149] The user input unit 707 can be used to receive input digital or character information, and to generate key signal input related to user settings and function control of the electronic device. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also known as a touch screen, can collect the user's touch operation on or near it (such as the user's operation on the touch panel 7071 or near the touch panel 7071 using any suitable object or accessory such as a finger, stylus, etc.). The touch panel 7071 may include two parts: a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into the contact point coordinates, and then sends it to the processor 710, receives the command sent by the processor 710 and executes it. In addition, the touch panel 7071 can be implemented using multiple types such as resistive, capacitive, infrared and surface acoustic waves. In addition to the touch panel 7071, the user input unit 707 may also include other input devices 7072. Specifically, other input devices 7072 may include but are not limited to a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail here.

[0150] Further, the touch panel 7071 may be covered on the display panel 7061. When the touch panel 7071 detects a touch operation on or near it, it is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. It can be understood that in one embodiment, the touch panel 7071 and the display panel 7061 are used as two independent components to implement the input and output functions of the electronic device, but in some embodiments, the touch panel 7071 and the display panel 7061 can be integrated to implement the input and output functions of the electronic device, which is not limited here.

[0151] The interface unit 708 is an interface for connecting an external device to the electronic device 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, an audio input / output (I / O) port, a video I / O port, a headphone port, etc. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the electronic device 700 or may be used to transmit data between the electronic device 700 and an external device.

[0152] The memory 709 can be used to store software programs and various data. The memory 709 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 709 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0153] The processor 710 is the control center of the electronic device. It uses various interfaces and lines to connect various parts of the entire electronic device. It executes various functions of the electronic device and processes data by running or executing software programs and / or modules stored in the memory 709, and calling data stored in the memory 709, so as to monitor the electronic device as a whole. The processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, user interface, and application programs, and the modem processor mainly processes wireless communications. It is understandable that the above-mentioned modem processor may not be integrated into the processor 710.

[0154] The electronic device 700 may also include a power supply 711 (such as a battery) for supplying power to each component. Preferably, the power supply 711 may be logically connected to the processor 710 through a power management system, thereby implementing functions such as charging, discharging, and power consumption management through the power management system.

[0155] In addition, the electronic device 700 includes some functional modules not shown, which will not be described in detail here.

[0156] It should be noted that, in this article, the terms "include", "comprises" or any other variations 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, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.

[0157] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0158] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation modes, which are merely illustrative rather than restrictive. Under the guidance of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the present invention and the claims, all of which are within the protection of the present invention.

[0159] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0160] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0161] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

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

[0163] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0164] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0165] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed by the present invention, which should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims

1. A cloud service cluster detection method, characterized in that: include: In response to a detection instruction for a cloud service cluster, obtaining a gateway parameter of the cloud service cluster; Determine a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters; Sending a packet to the test gateway through the detection gateway, obtaining the flow data between the detection gateway and the test gateway during the packet sending process, and visually displaying the flow data; The test gateway is detected according to the traffic data to generate a gateway detection result for the test gateway, where the gateway detection result is used to characterize whether there is a communication anomaly in the test gateway.

2. The method according to claim 1, characterized in that The gateway parameters include at least a gateway type and a traffic carrying capacity, and determining a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters includes: A detection gateway and a test gateway are determined from the cloud service cluster according to the gateway type and the traffic carrying capacity, wherein the traffic carrying capacity is the ability of a gateway to access different networks or distribute traffic between different networks.

3. The method according to claim 2, characterized in that The determining a detection gateway and a test gateway from the cloud service cluster according to the gateway type and the traffic carrying capacity includes: If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports access from within the cluster to outside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway, or, a website with an IP address in the first geographical area is used as the second test gateway, and a website with an IP address in the second geographical area is used as the third test gateway; If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports access from outside the cluster to inside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway; If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports the distribution of traffic from within the cluster to outside the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway; If the gateway type belongs to the external network gateway in the cluster, and the traffic carrying capacity is that the gateway supports traffic distribution from outside the cluster to outside the cluster, then select any gateway from any cluster that supports the istio function as the detection gateway, and select any gateway from any cluster in a different computer room area from the detection gateway as the test gateway.

4. The method according to claim 2, characterized in that: The determining a detection gateway and a test gateway from the cloud service cluster according to the gateway type and the traffic carrying capacity includes: If the gateway type is an intranet gateway in a cluster, and the traffic carrying capacity is that the gateway supports access within the cluster, then any gateway in each cluster in each first computer room area is selected as a detection gateway, and any gateway in each cluster in each second computer room area is selected as a test gateway; If the gateway type is an intranet gateway in a cluster, and the traffic carrying capacity is that the gateway supports traffic distribution within the cluster, then any gateway in any cluster in the first computer room area is selected as the detection gateway, and any gateway in any cluster in the second computer room area is selected as the first test gateway.

5. The method according to claim 1, characterized in that After determining the detection gateway and the test gateway from the cloud service cluster according to the gateway parameters, the method further includes: Obtaining first gateway information of the detection gateway and second gateway information of the test gateway; Task construction is performed according to the first gateway information and the second gateway information to obtain detection tasks for the detection gateway and the test gateway.

6. The method according to claim 5, characterized in that The step of constructing a task according to the first gateway information and the second gateway information to obtain a detection task for the detection gateway and the test gateway includes: Extracting at least one of the IP type, detection mode, network type, and transmission protocol between the detection gateway and the test gateway from the first gateway information and the second gateway information; At least one of the IP type, the detection method, the network type and the transmission protocol is adopted to construct a detection task for the detection gateway and the test gateway.

7. The method according to claim 6, characterized in that The sending of a packet to the test gateway through the detection gateway includes: A communication link is established between the detection gateway and the test gateway based on the IP type and the network type, and the detection gateway is controlled to send a packet to the test gateway according to the detection mode and the transmission protocol.

8. The method according to any one of claims 1 to 7, characterized in that: Also includes: In response to a deletion instruction for the detection gateway and / or the test gateway, the test task corresponding to the detection gateway and / or the test gateway is deleted.

9. The method according to claim 1, characterized in that: The traffic data includes at least one of a packet loss rate, a link availability rate, an average delay of a request response time, a statistical percentile of a request response time, and a standard deviation of a request response time. The testing gateway is tested according to the traffic data to generate a gateway test result for the testing gateway, including: Based on at least one of the packet loss rate, the link availability rate, the average delay of the request response time, the statistical percentile of the request response time, and the standard deviation of the request response time, the communication link between the detection gateway and the test gateway is detected to generate a gateway detection result for the test gateway.

10. The method according to claim 9, characterized in that Also includes: If the gateway detection result indicates that the communication link is abnormal, an alarm prompt message for the test gateway is output.

11. The method according to claim 1, characterized in that: The response to the detection instruction for the cloud service cluster includes: In response to detecting a change in the state of the cloud service cluster, generating a detection instruction for the cloud service cluster; The detecting of a cloud service cluster status change at least includes: Detecting that a new gateway is added to the cloud service cluster, or detecting that the state of a gateway changes; The state change of the gateway includes at least one of a connection state change, an operation state change, a performance state change, a security state change, a configuration state change and a version state change.

12. The method according to claim 1, characterized in that The response to the detection instruction for the cloud service cluster includes: Periodically generate detection instructions for the cloud service cluster.

13. A cloud service cluster detection device, characterized in that: include: A parameter acquisition module, configured to acquire gateway parameters of the cloud service cluster in response to a detection instruction for the cloud service cluster; A gateway selection module, used to determine a detection gateway and a test gateway from the cloud service cluster according to the gateway parameters; A traffic acquisition module, used to send packets to the test gateway through the detection gateway, obtain traffic data between the detection gateway and the test gateway during the packet sending process, and visualize the traffic data; The detection module is used to detect the test gateway according to the traffic data and generate a gateway detection result for the test gateway, wherein the gateway detection result is used to characterize whether there is a communication anomaly in the test gateway.

14. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other through the communication bus; The memory is used to store computer programs; The processor is used to implement the method according to any one of claims 1 to 12 when executing the program stored in the memory.

15. A computer-readable storage medium having instructions stored thereon, which, when executed by one or more processors, cause the processors to perform the method according to any one of claims 1 to 12.

Citation Information

Patent Citations

  • Gateway equipment testing method and device, electronic equipment and storage medium

    CN115996182A

  • Traffic scheduling method and device for cloud gateway, computer equipment and medium

    CN116155816A

  • Network detection method and device, electronic equipment, storage medium and program product

    CN116319420A

  • Gateway fault detection method, device and equipment and readable storage medium

    CN116962246A

  • Method and apparatus for monitoring global failure in virtual gateway cluster

    US20210281640A1