WO2021056716A1 - Cloud service quality monitoring method, and related product - Google Patents

Cloud service quality monitoring method, and related product Download PDF

Info

Publication number
WO2021056716A1
WO2021056716A1 PCT/CN2019/117007 CN2019117007W WO2021056716A1 WO 2021056716 A1 WO2021056716 A1 WO 2021056716A1 CN 2019117007 W CN2019117007 W CN 2019117007W WO 2021056716 A1 WO2021056716 A1 WO 2021056716A1
Authority
WO
WIPO (PCT)
Prior art keywords
network test
client
cloud host
server
cloud
Prior art date
Application number
PCT/CN2019/117007
Other languages
French (fr)
Chinese (zh)
Inventor
苏玉峰
康昕煜
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2021056716A1 publication Critical patent/WO2021056716A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • H04L43/55Testing of service level quality, e.g. simulating service usage
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters

Definitions

  • This application relates to the field of data processing technology, and in particular to a cloud service quality monitoring method and related products.
  • Cloud service is an added service based on the Internet, which usually involves the provision of dynamic and easy-to-expandable services through the Internet; typical application scenarios of cloud services are: cloud Internet of things, cloud security, cloud storage, etc.
  • cloud services are generally provided by servers in the cloud. Multiple virtual computers (called cloud hosts, the server referred to here can be considered as the carrier of the cloud host).
  • the servers are virtualized into multiple cloud hosts, which can be accessed through the cloud.
  • the host provides on-demand use and on-demand rental services based on the cloud computing model to realize dynamic and easy-scalable cloud services, such as assigning different cloud hosts to different users, and realizing the on-demand configuration of cloud service resources.
  • Cloud service instructions refer to the service quality of cloud services.
  • Good cloud service quality is of great significance to improving users’ experience of using cloud services. Therefore, the service quality of cloud services is monitored to provide comprehensive monitoring of cloud services when there are defects in cloud service quality. Interpretation of quality defects is particularly necessary to ensure good cloud service quality.
  • Cloud services involve servers and cloud hosts. Cloud service quality defects may appear on servers or cloud hosts. Therefore, it is difficult to pinpoint the cause of cloud service quality defects.
  • Send ping packet internet groper, Internet packet detector
  • the server will receive a large number of ping detection packets, and there is a risk of being attacked by ping detection packets, so the security is low.
  • the technical problem to be solved by the embodiments of the present application is to provide a cloud service quality monitoring method and related products, which are used to improve security on the premise of accurately locating the cause of the cloud service quality defect.
  • an embodiment of the present application provides a cloud service quality monitoring method, including:
  • the server If there is a network test packet sent by the client and other clients than the client to the server, intercept the client and other clients other than the client and send to the cloud host The network test package; the network test package sent to the cloud host is counted to obtain a statistical result, and if the statistical result belongs to a predetermined rule that the cloud host is centrally detected, the server is detected to obtain the detection result, Sending the detection result to the client.
  • the embodiments of the present application also provide a cloud service quality monitoring device, including:
  • the first receiving unit is configured to receive a network test packet sent from the client to the cloud host in the server;
  • a forwarding unit configured to send the network test packet to the cloud host
  • the second receiving unit is configured to receive the result data of the network test packet returned by the cloud host;
  • a sending unit configured to send the result data to the client
  • the statistical unit is used for network test packets sent to the server by the client and other clients other than the client, and the client and other clients other than the client are sent to all In the case that the network test packet of the cloud host is intercepted, the network test packet sent to the cloud host is counted to obtain the statistical result;
  • a detection unit configured to detect the server to obtain a detection result when the statistical result belongs to a predetermined rule that the cloud host is centrally detected
  • the sending unit is further configured to send the detection result to the client.
  • the embodiments of the present application also provide a cloud service quality monitoring device, including: a processor, a memory, and a transceiver; wherein the processor, the memory, and the transceiver are connected in a communicative manner;
  • Program code is stored in the memory
  • the processor is configured to read the program code and cooperate with the transceiver to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
  • the embodiments of the present application also provide a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores program code, the program code includes program instructions, and the program instructions When executed by the processor, the processor and the transceiver cooperate to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
  • the embodiments of the present application also provide a computer program product.
  • the computer program product includes program code.
  • the program code includes program instructions. When executed by a processor, the program instructions cause the processor to communicate with the transceiver.
  • the device cooperates to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
  • the embodiments of the present application because the detection results and result data for the server and the cloud host can be fed back to the client that has sent the network test package, the technical effects brought by the detection results and the result data can be achieved, namely:
  • the client can determine the cloud service quality detection result for the cloud host based on the above result data, and determine the cloud service quality detection result for the cloud server based on the above detection result; thus, determine the current existence based on the cloud service quality detection results of the server and the cloud host
  • After the cloud service quality defect according to the preset cause of the cloud service quality defect, analyze the corresponding operation data of the cloud service, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect ; And then obtain and implement the preset solution strategy corresponding to the above-mentioned target reason, provide a solution strategy matching the located reason, and solve the cloud service quality defects, thereby improving the cloud service quality and guaranteeing the cloud service quality.
  • the network detection packets from the client are intercepted, so it is not necessary to send all the network detection packets from the client to the server. Furthermore, the server does not need to directly receive all the network detection packets from the client, and the server does not need to send the client to the client. Publish your own address, thereby reducing the possibility of being attacked by network test packets and improving security.
  • Figure 1 is a schematic diagram of the system structure of an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the method flow of an embodiment of the present application.
  • Fig. 3 is a schematic diagram of a method flow diagram of an embodiment of the present application.
  • FIG. 4 is a schematic diagram of the structure of the device according to an embodiment of the present application.
  • FIG. 5 is a schematic diagram of the structure of the device in an embodiment of the present application.
  • the embodiment of the application provides a method for monitoring cloud service quality.
  • the method in this embodiment is applied to the cloud server side or the firewall on the cloud server side.
  • the monitoring device in the system structure shown in FIG. 1 is shown in FIG.
  • a cloud server 102 is shown.
  • the monitoring device 103 can be a component of the cloud server 102, or it can be deployed on the cloud server 102 and the client 104.
  • the client 104 is a functional object that performs the function of sending network test packets in a terminal device (referred to as a terminal or a user device).
  • the above method includes:
  • the network test packet may be used to test network information such as the amount of network connection.
  • the network test packet may be a ping detection packet.
  • the client side of the embodiment of the present application can use the ping tool to send ping detection packets to the cloud server and the cloud host in the cloud server respectively; or use the ping tool to only send the ping detection packet to the cloud server in the cloud server.
  • the ping tool can be set on the user device of the client, and the ping detection packet for the server or the cloud host in the server can be received from the server.
  • the cloud host is a virtual device that the client can directly access, and its access address is usually public; therefore, it may be accessed by different clients, so different clients can send ping detection packets to it.
  • the ping detection packet sent to the cloud host can follow the relevant regulations of the Internet Control Messages Protocol (ICMP).
  • ICMP Internet Control Messages Protocol
  • the cloud host will return an ICMP echo response as the result data according to ICMP regulations.
  • the client can determine the connection status between the client and the cloud host based on this, and determine whether the cloud host has a cloud service quality defect based on this.
  • a predetermined rule for centralized detection of cloud hosts is set.
  • the predetermined rule for centralized detection of cloud hosts can be set according to needs. The purpose is to determine whether there is a need to detect servers; for example, there are many Clients detect different cloud hosts, and there are many clients that detect the same cloud host; here it can be that the above two events have occurred within a certain period of time. Among them, the former can be used as a preferred implementation. In this case, the server itself is more likely to have cloud service quality defects.
  • the detection result and result data for the server and the cloud host can be fed back to the client that has sent the network test package, and the client can determine the cloud service quality detection result for the cloud host according to the above result data, and according to the above detection
  • the result determines the cloud service quality test results for the cloud server; thus, according to the cloud service quality test results of the server and the cloud host, after determining the current cloud service quality defect, according to the preset cause of the cloud service quality defect, the cloud service is corresponding Analyze the operating data of the company, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect; then obtain and implement the preset solution strategy corresponding to the above target cause, and provide the A solution strategy that matches the location of the cause is to solve the defects of cloud service quality, so as to improve the quality of cloud service and ensure the quality of cloud service.
  • the client does not need to send a network detection packet to the server, so for the server, it does not need to directly receive the network detection packet from the client, nor does it need to announce its address to the client, thereby reducing the possibility of network testing.
  • the possibility of packet attacks improves security.
  • the embodiment of the present application also provides an example of a predetermined rule for centralized detection of a cloud host, which is specifically as follows: the above method further includes:
  • the statistical results obtained from the above statistics of the network test packets sent to the above cloud host include:
  • the number of cached network test packets sent to the cloud host is greater than the first threshold, or the number of source clients of the cached network test packets sent to the cloud host is greater than the second threshold.
  • a receiving queue can be used to cache network test packets, where the receiving queue can be a receiving queue that caches all network test packets sent to the server; it can also be classified according to the cloud host, that is, send to different The network test packets of the cloud host are cached to different receiving queues.
  • the number of network test packets sent to the cloud host is counted, and the source client of the network test packet is not distinguished.
  • the implementation is mainly for a certain cloud In the scenario where the host is centrally probed; the number of source clients of the network test package sent to the cloud host is counted, and the source client of the network test package is distinguished, and the total network test sent to the cloud host is not limited.
  • the number of packets, this implementation is mainly for the application scenario where a certain cloud host is detected by many clients. For these two scenarios, the latter can be the preferred implementation.
  • the above source client is relative to the network test package, and the client that sends the network test package is the source client of the network test package.
  • predetermined rules for cloud hosts to be centrally detected can be set in the embodiment of the present application. For example, the number of network test packets received within a predetermined time period exceeds a certain threshold, and no distinction is made at this time. The source client of the network test package does not distinguish which cloud host the network test package is sent to. Therefore, the examples of predetermined rules for centralized detection of cloud hosts provided in the embodiments of the present application should not be construed as unique limitations to the embodiments of the present application.
  • first threshold and the second threshold in this embodiment are based on different purposes.
  • the former is to determine that a certain cloud host is centrally detected, so how much can be determined to be centrally detected is to set the first threshold Basis;
  • the latter is to determine that a certain cloud host is detected by many clients is the basis for setting the second threshold; the embodiment of the present application does not uniquely limit the specific values of the first threshold and the second threshold.
  • the embodiment of the present application also provides a caching form of the network test packet, and examples of conditions for triggering detection of the server, which are specifically as follows:
  • the foregoing caching of the network test packet includes:
  • the above-mentioned statistics cache the number of network test packets sent to the cloud host, or the statistics cache the number of source clients of the network test packets sent to the cloud host; including:
  • the former can be applied to scenarios where neither the source client of the network test packet is distinguished nor the cloud host to which the network test packet is sent.
  • the latter can be applied to application scenarios where a certain cloud host is centrally detected or a certain cloud host is detected by many clients.
  • the former can also be applied to application scenarios where a cloud host is centrally detected or a cloud host is detected by many clients.
  • Recognition is relatively slow; therefore, when it is applied to an application scenario where a cloud host is centrally detected or a cloud host is detected by many clients, the latter can speed up the detection speed.
  • the former is faster.
  • the length of the receiving queue corresponding to the cloud host may be set as the aforementioned first threshold. At this time, when the receiving queue overflows, it can be determined that the number of cached network test packets sent to the cloud host is greater than the first threshold; the step of statistics is omitted.
  • each time a network test packet is received and buffered in the receiving queue it can be determined whether the cloud host and the source client for which it is targeted are new clients, using the array array[a][ b] Storage, where array is the name of the array, which can be named using the cloud host name, a is the number of network test packets sent to the cloud host, b is the number of source clients sent to the cloud host; when it is executed, receive To the network test package, it is determined to be sent to the array cloud host, then a++, determine whether the source client of the network test package is a new client, and b++ if it is a new client.
  • the server can be detected when the array overflows, and the array can be initialized.
  • the execution side of the embodiment of this application is not on the client side, so it cannot prevent the client from sending a network test package to the server. If the network test package sent to the server is received, the solution provided by the embodiment of this application is as follows: Also includes:
  • the network test packet sent to the server is received, the network test packet sent to the server is deleted.
  • This embodiment can be compatible with the technical solution that the client sends the network test package to the server and the cloud host, so it can be compatible with application solutions of various friends.
  • the client sends network test packets to both the server and the cloud host, on the one hand, the client can receive the detection results of the necessary service area, and on the other hand, it can avoid the risk of the server being attacked.
  • the embodiment of the present application also provides specific means for detecting the server and specific means for sending the detection result to the client.
  • the detection result obtained by detecting the server and sending the detection result to the client includes:
  • Modify the destination address of the network test packet sent to the cloud host to the server send the network test packet with the modified destination address to the server, receive the detection result returned by the server, and send the detection result to the client.
  • the implementation means of the network test package can be compatible, that is, the server can still be compatible with the ping test package, and follow the relevant regulations of ICMP.
  • This embodiment also provides an application scenario for sending detection results to other clients, which is specifically as follows: the above method also includes:
  • the target client includes the client whose distance from the current time is less than the fourth threshold at the time when the network test packet was sent to the cloud host last time; or, the target client includes the client within a predetermined time period from the current time Clients whose number of network test packets sent by the cloud host exceeds a fifth threshold or, the target client includes clients whose number of network test packets sent to the cloud host exceeds the fifth threshold within a predetermined period of time away from the current time;
  • the fourth threshold is to obtain clients that may have the cloud service status of the detection server.
  • the time for these clients to send network test packets is relatively close to the current moment; or, in the most recent period of time.
  • the network test package has been sent several times. Therefore, the above fourth threshold is used to distinguish which clients are closer to the current moment, and the fifth threshold is used to distinguish how many times the network test packet is sent for multiple times.
  • the specific values are not uniquely limited in the embodiments of this application.
  • This embodiment can actively report the cloud service status of the server to a variety of clients that may need the cloud service status of the server, so as to help these clients learn the cloud service status of the server as soon as possible.
  • the foregoing sending the foregoing detection result to the foregoing client includes:
  • the foregoing sending the foregoing result data to the foregoing client includes:
  • the result data can be any data that represents the status of the server.
  • the result data is only the ICMP echo response of the same size as the ping detection packet, and the data contained in the ICMP echo response In this embodiment, it can be marked as sent to the server, and ⁇ t can also be marked. This ⁇ t is the waiting time of the ping detection packet in the queue, which is used by the client to deduct the ⁇ t when calculating the network delay.
  • these ping detection packets are still cached and waiting for the fourth threshold to determine whether to modify the detection object and then sent to the server. These ping detection packets are waiting
  • the time is relatively long. If ⁇ t is not deducted, the network delay displayed in the detection result will be greatly increased; therefore, this embodiment can deduct the time at the monitoring device, or carry ⁇ t to the client in the ICMP echo response. The client decides to deduct this part of time.
  • the embodiment of the application also provides an example of an application scenario using a ping detection package as a network test package, and an example of using a monitoring device outside the server as a hardware entity that manages the network test package, as shown in Figure 3, and can be referred to as shown in Figure 1.
  • System architecture diagram including:
  • the client sends a ping detection packet to the cloud host in the server.
  • the ping detection packet contains the address of the cloud host; the ping detection packet first reaches the monitoring device;
  • the monitoring device After receiving the ping detection packet, the monitoring device recognizes the address in the ping detection packet and forwards it to the cloud host; in addition, it can establish a receiving queue for the cloud host and store the ping detection packet in the receiving queue;
  • the monitoring device needs to identify the ping detection packet in this step, and it does not need to be stored in the receiving queue if it is not a ping detection packet.
  • the monitoring device will receive the ICMP echo response returned by the cloud host, and the ICMP echo response includes the address of the client; after the monitoring device recognizes the address, the ICMP echo response is forwarded to the client.
  • the monitoring device can count the ping detection packets in the above receiving queue to determine whether the preset rules are met, and if so, enter 305;
  • the trigger condition for the execution of statistics in this step can be periodic, triggered when the receiving queue overflows, or triggered when there are more ping detection packets in the receiving queue than a specified value.
  • the foregoing preset rule may be that a lot of ping detection packets are sent to the cloud host within a certain period of time, or the results of further detection of ICMP echo responses are normal. Of course, it can also be other preset rules that may need to detect the server.
  • the specific detection method can be: take out a ping monitoring packet arbitrarily from the receiving queue, change the receiving address to the server, and forward it to the server; then after receiving the ICMP echo response, subtract ⁇ t from the time, or mark ⁇ t ; Please refer to the previous embodiment for the description of the ⁇ t, which will not be repeated here.
  • the benefits of using the solution of this embodiment include not only the ability to determine whether the service quality impact is from the server or the cloud host, but also the following benefits:
  • the server will not directly receive the ping detection from the client, which shields the possibility of being attacked;
  • N can be the number of cloud hosts.
  • the number of cloud hosts is obviously much lower than the number of clients; therefore, the amount of detection processing can be reduced.
  • the embodiment of the application also provides a cloud service quality monitoring device, as shown in FIG. 4, including:
  • the first receiving unit 401 is configured to receive a network test packet sent from the client to the cloud host in the server;
  • the forwarding unit 402 is configured to send the aforementioned network test packet to the aforementioned cloud host;
  • the second receiving unit 403 is configured to receive the result data of the network test packet returned by the cloud host;
  • the sending unit 404 is configured to send the above result data to the above client;
  • the statistical unit 405 is configured to send network test packets sent to the server by the above-mentioned client and other clients except the above-mentioned client, and sent to the network of the above-mentioned cloud host by the above-mentioned client and other clients except the above-mentioned client When the test packet is intercepted, count the network test packets sent to the above-mentioned cloud host to obtain the statistical result;
  • the detection unit 406 is configured to detect the server to obtain a detection result when the statistical result belongs to the predetermined rule that the cloud host is centrally detected;
  • the sending unit 404 is further configured to send the detection result to the client.
  • the network test packet may be used to test network information such as the amount of network connection.
  • the network test packet may be a ping detection packet.
  • the client side of the embodiment of the present application can use the ping tool to send ping detection packets to the cloud server and the cloud host in the cloud server respectively; or use the ping tool to only send the ping detection packet to the cloud server in the cloud server.
  • the ping tool can be set on the user device of the client, and the ping detection packet for the server or the cloud host in the server can be received from the server.
  • the cloud host is a virtual device that the client can directly access, and its access address is usually public; therefore, it may be accessed by different clients, so different clients can send ping detection packets to it.
  • the ping detection packet sent to the cloud host can follow the relevant regulations of ICMP.
  • the cloud host will return an ICMP echo response as the result data according to ICMP regulations.
  • the client can determine the connection status between the client and the cloud host based on this, and determine whether the cloud host has a cloud service quality defect based on this.
  • a predetermined rule for centralized detection of cloud hosts is set.
  • the predetermined rule for centralized detection of cloud hosts can be set according to needs. The purpose is to determine whether there is a need to detect servers; for example, there are many Clients detect different cloud hosts, and there are many clients that detect the same cloud host; here it can be that the above two events have occurred within a certain period of time. Among them, the former can be used as a preferred implementation. In this case, the server itself is more likely to have cloud service quality defects.
  • the detection result and result data for the server and the cloud host can be fed back to the client that has sent the network test package, and the client can determine the cloud service quality detection result for the cloud host according to the above result data, and according to the above detection
  • the result determines the cloud service quality test results for the cloud server; thus, according to the cloud service quality test results of the server and the cloud host, after determining the current cloud service quality defect, according to the preset cause of the cloud service quality defect, the cloud service is corresponding Analyze the operating data of the company, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect; then obtain and implement the preset solution strategy corresponding to the above target cause, and provide the A solution strategy that matches the location of the cause is to solve the defects of cloud service quality, so as to improve the quality of cloud service and ensure the quality of cloud service.
  • the client does not need to send a network detection packet to the server, so for the server, it does not need to directly receive the network detection packet from the client, nor does it need to announce its address to the client, thereby reducing the possibility of network testing.
  • the possibility of packet attacks improves security.
  • the embodiment of the present application also provides an example of a predetermined rule for centralized detection of a cloud host, which is specifically as follows: the above-mentioned device further includes:
  • the storage unit 407 is configured to buffer the network test package before sending the network test package to the cloud host;
  • the statistics unit 405 is configured to count the number of cached network test packets sent to the cloud host, or count the number of source clients of the cached network test packets sent to the cloud host;
  • the detection unit 406 is configured to: when the number of cached network test packets sent to the cloud host is greater than a first threshold, or the number of source clients of the cached network test packets sent to the cloud host If it is greater than the second threshold, detect the above-mentioned server to obtain a detection result.
  • a receiving queue can be used to cache network test packets, where the receiving queue can be a receiving queue that caches all network test packets sent to the server; it can also be classified according to the cloud host, that is, send to different The network test packets of the cloud host are cached to different receiving queues.
  • the number of network test packets sent to the cloud host is counted, and the source client of the network test packet is not distinguished.
  • the implementation is mainly for a certain cloud In the scenario where the host is centrally probed; the number of source clients of the network test package sent to the cloud host is counted, and the source client of the network test package is distinguished, and the total network test sent to the cloud host is not limited.
  • the number of packets, this implementation is mainly for the application scenario where a certain cloud host is detected by many clients. For these two scenarios, the latter can be the preferred implementation.
  • the above source client is relative to the network test package, and the client that sends the network test package is the source client of the network test package.
  • predetermined rules for cloud hosts to be centrally detected can be set in the embodiment of the present application. For example, the number of network test packets received within a predetermined time period exceeds a certain threshold, and no distinction is made at this time. The source client of the network test package does not distinguish which cloud host the network test package is sent to. Therefore, the examples of predetermined rules for centralized detection of cloud hosts provided in the embodiments of the present application should not be construed as unique limitations on the embodiments of the present application.
  • first threshold and the second threshold in this embodiment are based on different purposes.
  • the former is to determine that a certain cloud host is centrally detected, so how much can be determined to be centrally detected is to set the first threshold Basis;
  • the latter is to determine that a certain cloud host is detected by many clients is the basis for setting the second threshold; the embodiment of the present application does not uniquely limit the specific values of the first threshold and the second threshold.
  • the embodiment of the present application also provides a buffering form of network test packets, and examples of conditions for triggering detection of the server, which are specifically as follows:
  • the storage unit 407 is specifically configured to buffer all received network test packets into the same receiving queue. Or, create a receiving queue for the cloud host, and buffer the above-mentioned network test packet in the receiving queue corresponding to the above-mentioned cloud host.
  • the statistical unit 405 is specifically configured to delete the network test packets in the receiving queue whose time difference between the receiving time and the current time exceeds a third threshold when the receiving queue overflows; to count the data in the receiving queue that are sent to the cloud The number of network test packets of the host, or the number of source clients of the network test packets buffered in the receiving queue corresponding to the cloud host.
  • the former can be applied to scenarios where neither the source client of the network test packet is distinguished nor the cloud host to which the network test packet is sent.
  • the latter can be applied to application scenarios where a certain cloud host is centrally detected or a certain cloud host is detected by many clients.
  • the former can also be applied to application scenarios where a cloud host is centrally detected or a cloud host is detected by many clients.
  • Recognition is relatively slow; therefore, when it is applied to an application scenario where a cloud host is centrally detected or a cloud host is detected by many clients, the latter can speed up the detection speed.
  • the former is faster.
  • the length of the receiving queue corresponding to the cloud host may be set as the aforementioned first threshold. At this time, when the receiving queue overflows, it can be determined that the number of cached network test packets sent to the cloud host is greater than the first threshold; the step of statistics is omitted.
  • each time a network test packet is received and buffered in the receiving queue it is possible to determine whether the cloud host and the source client it is aimed at are new clients, using the array array[a][ b] Storage, where array is the name of the array, which can be named using the cloud host name, a is the number of network test packets sent to the cloud host, b is the number of source clients sent to the cloud host; when it is executed, receive To the network test package, it is determined to be sent to the array cloud host, then a++, to determine whether the source client of the network test package is a new client, and b++ if it is a new client.
  • the server can be detected when the array overflows, and the array can be initialized.
  • the execution side of the embodiment of this application is not on the client side, so it cannot prevent the client from sending a network test package to the server. If the network test package sent to the server is received, the solution provided by the embodiment of this application is as follows: Also includes:
  • the packet deleting unit 408 is configured to delete the network test packet sent to the server if the network test packet sent to the server is received.
  • This embodiment can be compatible with the technical solution that the client sends the network test package to the server and the cloud host, so it can be compatible with application solutions of various friends.
  • the client sends network test packets to both the server and the cloud host, on the one hand, the client can receive the detection results of the necessary service area, and on the other hand, it can avoid the risk of the server being attacked.
  • the embodiment of the present application also provides specific means for detecting the server and specific means for sending the detection result to the client.
  • the detection unit 406 is specifically used to modify the destination address of the network test packet sent to the cloud host to The server, sending the network test packet with the modified destination address to the server, and receiving the detection result returned by the server;
  • the sending unit 404 is specifically configured to send the detection result to the client.
  • the implementation means of the network test package can be compatible, that is, the server can still be compatible with the ping test package, and follow the relevant regulations of ICMP.
  • This embodiment also provides an application scenario for sending detection results to other clients, which is specifically as follows: the above-mentioned device further includes:
  • the client acquisition unit 409 is configured to acquire a target client.
  • the target client includes a client whose distance from the current time is less than a fourth threshold at the time when the network test packet was last sent to the cloud host; or, the target client includes Clients whose number of network test packets sent to the cloud host within a predetermined period of time from the current time exceeds the fifth threshold
  • the sending unit 404 is further configured to send the detection result to the target client.
  • the fourth threshold is to obtain clients that may have the cloud service status of the detection server.
  • the time for these clients to send network test packets is relatively close to the current moment; or, in the most recent period of time.
  • the network test package has been sent several times. Therefore, the above fourth threshold is used to distinguish which clients are closer to the current moment, and the fifth threshold is used to distinguish how many times the network test packet is sent for multiple times.
  • the specific values are not uniquely limited in the embodiments of this application.
  • This embodiment can actively report the cloud service status of the server to a variety of clients that may need the cloud service status of the server, so as to help these clients learn the cloud service status of the server as soon as possible.
  • the embodiment of the present application also provides an optional implementation scheme for sending detection results, which is specifically as follows: the above-mentioned device further includes:
  • the data writing unit 410 is configured to write the above detection result into the above result data, and mark the detection object as the above server;
  • the sending unit 404 is specifically configured to send the result data added with the detection result to the client.
  • the result data can be any data that represents the status of the server.
  • the result data is only the ICMP echo response of the same size as the ping detection packet, and the data contained in the ICMP echo response In this embodiment, it can be marked as sent to the server, and ⁇ t can also be marked. This ⁇ t is the waiting time of the ping detection packet in the queue, which is used by the client to deduct the ⁇ t when calculating the network delay.
  • these ping detection packets are still cached and waiting for the fourth threshold to determine whether to modify the detection object and then sent to the server. These ping detection packets are waiting
  • the time is relatively long. If ⁇ t is not deducted, the network delay displayed in the detection result will be greatly increased; therefore, this embodiment can deduct the time at the monitoring device, or carry ⁇ t to the client in the ICMP echo response. The client decides to deduct this part of time.
  • the embodiment of the present application also provides a cloud service quality monitoring device.
  • the cloud service quality monitoring device may be a hardware entity in a cloud server, or a monitoring device outside the cloud server as shown in FIG. 1, as shown in FIG. 5. Shown, including: a processor 501, a memory 502, and a transceiver 503; wherein the processor 501, the memory 502, and the transceiver 503 are connected in a communicative manner;
  • the memory 502 includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or Portable read-only memory (compact disc read-only memory, CD-ROM), the memory 502 is used for related instructions and data.
  • the transceiver 503 is used to receive and send data.
  • the processor 501 may be one or more central processing units (CPU).
  • the CPU may be a single-core CPU or a multi-core CPU.
  • Program codes are stored in the aforementioned memory 502;
  • the above-mentioned processor 501 is configured to read the above-mentioned program code and cooperate with the above-mentioned transceiver 503 to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
  • the transceiver 503 in this embodiment can be any device that can be used for communication between devices, including radio frequency modules and wired communication modules; if the cloud service quality monitoring device can be a hardware entity in a cloud server, then the transceiver
  • the communication between the 503 and the server can also be any device including a bus that can be used for intra-device communication.
  • the embodiment of the present application also provides a computer non-volatile readable storage medium.
  • the above-mentioned computer non-volatile readable storage medium stores program code, the above-mentioned program code includes program instructions, and the above-mentioned program instructions are executed by a processor.
  • the above-mentioned processor and the transceiver cooperate to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
  • the embodiment of the present application also provides a computer program product.
  • the computer program product includes program code.
  • the program code includes program instructions. When the program instructions are executed by a processor, the processor and the transceiver cooperate to realize the application.
  • the information interaction function in any one of the methods provided in the embodiment.
  • the process can be completed by a computer program instructing relevant hardware.
  • the program can be stored in a computer nonvolatile readable storage medium.
  • the aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical discs and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Quality & Reliability (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

Embodiments of the present application can be applied to the field of cloud technology condition monitoring, and disclosed are a cloud service quality monitoring method, and a related product. The method comprises: receiving a network test packet sent from a client to a cloud host in a server, and sending the network test packet to the cloud host; receiving result data of the network test packet returned by the cloud host, and sending the result data to the client; if there are network test packets sent to the server by the client and clients other than the client, intercepting network test packets sent to the cloud host by the client and the clients other than the client; and collecting statistics about the network test packets sent to the cloud host to obtain a statistical result, in the case that the statistical result falls within a predetermined rule of detecting the cloud host in a centralized manner, detecting the server to obtain a detection result, and sending the detection result to the client. On one hand, reasons for cloud service quality defects can be accurately determined to guarantee cloud service quality, and on the other hand, the possibility of being attacked by a network test packet can be reduced and thus the security is improved.

Description

一种云服务质量监控方法及相关产品A cloud service quality monitoring method and related products
本申请要求于2019年09月26日提交中国专利局、优先权号为“201910915045.4”,申请名称为“一种云服务质量监控方法及相关产品”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of a Chinese patent application filed with the Chinese Patent Office on September 26, 2019, the priority number is "201910915045.4", and the application name is "A cloud service quality monitoring method and related products". The entire content of the application is approved The reference is incorporated in this application.
技术领域Technical field
本申请涉及数据处理技术领域,尤其涉及一种云服务质量监控方法及相关产品。This application relates to the field of data processing technology, and in particular to a cloud service quality monitoring method and related products.
背景技术Background technique
云服务是在互联网基础上的一种增加服务,通常涉及通过互联网来提供动态易扩展的服务;云服务的典型应用场景如:云物联网、云安全、云存储等。目前云服务一般由云端的服务器提供,服务器上可以设置多个虚拟计算机(称为云主机,此处所指服务器可以认为是云主机的载体),将服务器虚拟成多个云主机,可以通过云主机提供基于云计算模式的按需使用和按需付费的租用服务,实现动态易扩展的云服务,如可将不同的云主机分配给不同的用户,实现云服务资源的按需配置等。Cloud service is an added service based on the Internet, which usually involves the provision of dynamic and easy-to-expandable services through the Internet; typical application scenarios of cloud services are: cloud Internet of things, cloud security, cloud storage, etc. At present, cloud services are generally provided by servers in the cloud. Multiple virtual computers (called cloud hosts, the server referred to here can be considered as the carrier of the cloud host). The servers are virtualized into multiple cloud hosts, which can be accessed through the cloud. The host provides on-demand use and on-demand rental services based on the cloud computing model to realize dynamic and easy-scalable cloud services, such as assigning different cloud hosts to different users, and realizing the on-demand configuration of cloud service resources.
云服务指令是指云服务的服务质量,良好的云服务质量对于提升用户使用云服务的体验具有重要意义,因此对云服务的服务质量进行监控,以在存在云服务质量缺陷时,对云服务质量缺陷进行解读,保障良好的云服务质量尤为必要。云服务涉及服务器和云主机,云服务质量缺陷可能出现在服务器上,也可能出现在云主机上,因此对引起云服务质量缺陷的原因进行精确定位较为困难。Cloud service instructions refer to the service quality of cloud services. Good cloud service quality is of great significance to improving users’ experience of using cloud services. Therefore, the service quality of cloud services is monitored to provide comprehensive monitoring of cloud services when there are defects in cloud service quality. Interpretation of quality defects is particularly necessary to ensure good cloud service quality. Cloud services involve servers and cloud hosts. Cloud service quality defects may appear on servers or cloud hosts. Therefore, it is difficult to pinpoint the cause of cloud service quality defects.
目前为了区分引起云服务质量缺陷的原因在服务器或者云主机,采用的技术方案如下:At present, in order to distinguish the cause of the cloud service quality defect in the server or the cloud host, the technical solutions adopted are as follows:
分别针对服务器以及服务器中的云主机发送ping(packet internet groper,因特网包探测器)检测包;Send ping (packet internet groper, Internet packet detector) detection packets to the server and the cloud host in the server respectively;
分别根据服务器和服务器中的云主机反馈的ping反馈包确定服务器和服务器中的云主机是否故障。Determine whether the server and the cloud host in the server are faulty according to the ping feedback packet fed back by the server and the cloud host in the server respectively.
以上方案服务器会收到大量的ping检测包,存在被ping检测包攻击的风险,因此安全性较低。In the above scheme, the server will receive a large number of ping detection packets, and there is a risk of being attacked by ping detection packets, so the security is low.
申请内容Application content
本申请实施例所要解决的技术问题在于提供一种云服务质量监控方法及相关产品,用于在精确定位引起云服务质量缺陷的原因的前提下,提高安全性。The technical problem to be solved by the embodiments of the present application is to provide a cloud service quality monitoring method and related products, which are used to improve security on the premise of accurately locating the cause of the cloud service quality defect.
一方面本申请实施例提供了一种云服务质量监控方法,包括:On the one hand, an embodiment of the present application provides a cloud service quality monitoring method, including:
接收来自客户端发往服务器中的云主机的网络测试包,将所述网络测试包发往所述云主机;Receiving a network test package sent from the client to the cloud host in the server, and sending the network test package to the cloud host;
接收所述云主机返回的所述网络测试包的结果数据,将所述结果数据发往所述客户端;Receiving the result data of the network test packet returned by the cloud host, and sending the result data to the client;
若存在所述客户端以及所述客户端之外的其他客户端发往所述服务器的网络测试包,则拦截所述客户端以及所述客户端之外的其他客户端发往所述云主机的网络测试包;统计 发往所述云主机的网络测试包得到统计结果,在所述统计结果属于所述云主机被集中探测的预定规则的情况下,对所述服务器进行探测得到探测结果,向所述客户端发送所述探测结果。If there is a network test packet sent by the client and other clients than the client to the server, intercept the client and other clients other than the client and send to the cloud host The network test package; the network test package sent to the cloud host is counted to obtain a statistical result, and if the statistical result belongs to a predetermined rule that the cloud host is centrally detected, the server is detected to obtain the detection result, Sending the detection result to the client.
二方面本申请实施例还提供了一种云服务质量监控装置,包括:In two aspects, the embodiments of the present application also provide a cloud service quality monitoring device, including:
第一接收单元,用于接收来自客户端发往服务器中的云主机的网络测试包;The first receiving unit is configured to receive a network test packet sent from the client to the cloud host in the server;
转发单元,用于将所述网络测试包发往所述云主机;A forwarding unit, configured to send the network test packet to the cloud host;
第二接收单元,用于接收所述云主机返回的所述网络测试包的结果数据;The second receiving unit is configured to receive the result data of the network test packet returned by the cloud host;
发送单元,用于将所述结果数据发往所述客户端;A sending unit, configured to send the result data to the client;
统计单元,用于在存在所述客户端以及所述客户端之外的其他客户端发往所述服务器的网络测试包,所述客户端以及所述客户端之外的其他客户端发往所述云主机的网络测试包被拦截的情况下,统计发往所述云主机的网络测试包得到统计结果;The statistical unit is used for network test packets sent to the server by the client and other clients other than the client, and the client and other clients other than the client are sent to all In the case that the network test packet of the cloud host is intercepted, the network test packet sent to the cloud host is counted to obtain the statistical result;
探测单元,用于在所述统计结果属于所述云主机被集中探测的预定规则的情况下,对所述服务器进行探测得到探测结果;A detection unit, configured to detect the server to obtain a detection result when the statistical result belongs to a predetermined rule that the cloud host is centrally detected;
所述发送单元,还用于向所述客户端发送所述探测结果。The sending unit is further configured to send the detection result to the client.
三方面本申请实施例还提供了一种云服务质量监控装置,包括:处理器、存储器和收发器;其中所述处理器、所述存储器和所述收发器以可通信方式连接;In three aspects, the embodiments of the present application also provide a cloud service quality monitoring device, including: a processor, a memory, and a transceiver; wherein the processor, the memory, and the transceiver are connected in a communicative manner;
在所述存储器中存储有程序代码;Program code is stored in the memory;
所述处理器用于读取所述程序代码与所述收发器配合实现本申请实施例提供的任意一项方法中的信息交互功能。The processor is configured to read the program code and cooperate with the transceiver to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
四方面本申请实施例还提供了一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质中存储有程序代码,所述程序代码包括程序指令,所述程序指令当被处理器执行时使所述处理器与收发器配合实现本申请实施例提供的任意一项方法中的信息交互功能。In four aspects, the embodiments of the present application also provide a computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores program code, the program code includes program instructions, and the program instructions When executed by the processor, the processor and the transceiver cooperate to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
五方面本申请实施例还提供了一种计算机程序产品,在上述计算机程序产品中包含程序代码,所述程序代码包括程序指令,所述程序指令当被处理器执行时使所述处理器与收发器配合实现本申请实施例提供的任意一项方法中的信息交互功能。In five aspects, the embodiments of the present application also provide a computer program product. The computer program product includes program code. The program code includes program instructions. When executed by a processor, the program instructions cause the processor to communicate with the transceiver. The device cooperates to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
本申请实施例,一方面,因为可以向发出了网络测试包的客户端反馈针对服务器以及针对云主机的探测结果及结果数据,那么可以实现有探测结果和结果数据带来的技术效果,即:客户端可以根据上述结果数据确定针对云主机的云服务质量检测结果,根据上述探测结果确定针对云服务器的云服务质量检测结果;从而根据服务器和云主机的云服务质量的检测结果,确定当前存在云服务质量缺陷后,根据预设引起云服务质量缺陷的原因,对云服务相应的运行数据进行分析,匹配出引起当前云服务质量缺陷的目标原因,实现引起云服务质量缺陷的原因的精准定位;进而获取预设的与上述目标原因相应的解决策略并执行,提供出与所定位原因匹配的解决策略,对云服务质量缺陷进行解决,从而提升云服务质量,保障云服务质量。二方面,对来自客户端的网络检测包进行了拦截,因此不必向服务器发送来自客户端的所有网络检测包,进一步地,服务器因此不必直接接收到来自客户端的全部网络检测包,服务器也不必向客户端公布自己的地址,从而减少可能的被网络测试包攻击的可能性,提高了安全性。The embodiments of the present application, on the one hand, because the detection results and result data for the server and the cloud host can be fed back to the client that has sent the network test package, the technical effects brought by the detection results and the result data can be achieved, namely: The client can determine the cloud service quality detection result for the cloud host based on the above result data, and determine the cloud service quality detection result for the cloud server based on the above detection result; thus, determine the current existence based on the cloud service quality detection results of the server and the cloud host After the cloud service quality defect, according to the preset cause of the cloud service quality defect, analyze the corresponding operation data of the cloud service, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect ; And then obtain and implement the preset solution strategy corresponding to the above-mentioned target reason, provide a solution strategy matching the located reason, and solve the cloud service quality defects, thereby improving the cloud service quality and guaranteeing the cloud service quality. On the other hand, the network detection packets from the client are intercepted, so it is not necessary to send all the network detection packets from the client to the server. Furthermore, the server does not need to directly receive all the network detection packets from the client, and the server does not need to send the client to the client. Publish your own address, thereby reducing the possibility of being attacked by network test packets and improving security.
附图说明Description of the drawings
为了更清楚地说明本申请实施例或背景技术中的技术方案,下面将对本申请实施例或背景技术中所需要使用的附图进行说明。In order to more clearly illustrate the technical solutions in the embodiments of the present application or the background art, the following will describe the drawings that need to be used in the embodiments of the present application or the background art.
图1是本申请实施例系统结构示意图;Figure 1 is a schematic diagram of the system structure of an embodiment of the present application;
图2是本申请实施例方法流程示意图;FIG. 2 is a schematic diagram of the method flow of an embodiment of the present application;
图3是本申请实施例方法流程示意图;Fig. 3 is a schematic diagram of a method flow diagram of an embodiment of the present application;
图4是本申请实施例装置结构示意图;FIG. 4 is a schematic diagram of the structure of the device according to an embodiment of the present application;
图5是本申请实施例装置结构示意图。FIG. 5 is a schematic diagram of the structure of the device in an embodiment of the present application.
具体实施方式detailed description
为了使本申请的目的、技术方案和优点更加清楚,下面将结合附图对本申请作进一步地详细描述。In order to make the purpose, technical solutions, and advantages of the application more clear, the application will be further described in detail below with reference to the accompanying drawings.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别不同的对象,而不是用于描述特定顺序。此外,术语“包括”和“具有”以及它们任何变形,意图在于覆盖不排他的包含。例如包含了一系列步骤或单元的过程、方法、系统、产品或设备没有限定于已列出的步骤或单元,而是可选地还包括没有列出的步骤或单元,或可选地还包括对于这些过程、方法或设备固有的其他步骤或单元。The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific sequence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions. For example, a process, method, system, product, or device that includes a series of steps or units is not limited to the listed steps or units, but optionally includes unlisted steps or units, or optionally also includes Other steps or units inherent to these processes, methods or equipment.
本申请实施例提供了一种云服务质量监控方法,本实施例方法应用于云服务器一侧,或者云服务器一侧的防火墙,如图1所示的系统结构中的监控装置,如图1所示,在图1中示意了云服务器102,云服务器102内运行了众多的云主机101,其中监控设备103可以是云服务器102内的一个部件,也可以是部署在云服务器102与客户端104之间的网络中的设备;客户端104是终端设备(称为终端、用户设备)中执行网络测试包发送功能的功能对象。如图2所示,上述方法包括:The embodiment of the application provides a method for monitoring cloud service quality. The method in this embodiment is applied to the cloud server side or the firewall on the cloud server side. The monitoring device in the system structure shown in FIG. 1 is shown in FIG. As shown in FIG. 1, a cloud server 102 is shown. There are many cloud hosts 101 running in the cloud server 102. The monitoring device 103 can be a component of the cloud server 102, or it can be deployed on the cloud server 102 and the client 104. The client 104 is a functional object that performs the function of sending network test packets in a terminal device (referred to as a terminal or a user device). As shown in Figure 2, the above method includes:
201:接收来自客户端发往服务器中的云主机的网络测试包,将上述网络测试包发往上述云主机;201: Receive a network test package sent from the client to the cloud host in the server, and send the network test package to the cloud host;
在本实施例中,网络测试包可以是用于测试网络连接量等网络信息,如网络测试包可以选用ping检测包。In this embodiment, the network test packet may be used to test network information such as the amount of network connection. For example, the network test packet may be a ping detection packet.
可选地,本申请实施例的客户端一侧可以利用ping工具向云端的服务器,及云服务器中的云主机分别发送ping检测包;也可以利用ping工具仅向云端的云服务器中的云主机发送ping检测包。ping工具可以设置于客户端的用户设备上,从服务器可以接收到针对服务器或者针对服务器中的云主机的ping检测包。Optionally, the client side of the embodiment of the present application can use the ping tool to send ping detection packets to the cloud server and the cloud host in the cloud server respectively; or use the ping tool to only send the ping detection packet to the cloud server in the cloud server. Send a ping detection packet. The ping tool can be set on the user device of the client, and the ping detection packet for the server or the cloud host in the server can be received from the server.
在本实施例中,云主机是客户端可以直接访问的虚拟设备,通常其访问地址是公开的;因此可能会被不同的客户端访问,因此不同的客户端均可以向其发送ping检测包。发往云主机的ping检测包可以遵循因特网信报控制协议(Internet Control Messages Protocol,ICMP)的相关规定。In this embodiment, the cloud host is a virtual device that the client can directly access, and its access address is usually public; therefore, it may be accessed by different clients, so different clients can send ping detection packets to it. The ping detection packet sent to the cloud host can follow the relevant regulations of the Internet Control Messages Protocol (ICMP).
202:接收上述云主机返回的上述网络测试包的结果数据,将上述结果数据发往上述客户端;202: Receive the result data of the network test packet returned by the cloud host, and send the result data to the client;
在本实施例中,若网络测试包为ping检测包,那么云主机依据ICMP的规定,会返回ICMP回声应答作为结果数据。客户端可以据此判定客户端与云主机之间的连接状态,以及据此确定云主机是否存在云服务质量缺陷。In this embodiment, if the network test packet is a ping detection packet, the cloud host will return an ICMP echo response as the result data according to ICMP regulations. The client can determine the connection status between the client and the cloud host based on this, and determine whether the cloud host has a cloud service quality defect based on this.
203:若存在上述客户端以及上述客户端之外的其他客户端发往上述服务器的网络测试包,则拦截上述客户端以及上述客户端之外的其他客户端发往上述云主机的网络测试包;统计发往上述云主机的网络测试包得到统计结果,在上述统计结果属于上述云主机被集中探测的预定规则的情况下,对上述服务器进行探测得到探测结果,向上述客户端发送上述探测结果。203: If there is a network test packet sent by the client and other clients other than the client to the server, intercept the network test packet sent by the client and other clients than the client to the cloud host Count the network test packets sent to the cloud host to obtain the statistical results. In the case where the statistical results belong to the predetermined rules for the centralized detection of the cloud host, detect the server to obtain the detection result, and send the detection result to the client .
在本实施例中设置了云主机被集中探测的预定规则,该云主机被集中探测的预定规则可以根据需要进行设定,其目的在于确定是否有对服务器进行探测的需求;例如:有众多的客户端对不同的云主机进行探测,有众多的的客户端对相同的云主机进行探测;这里可以是在某个时间段内发生了上述两种事件。其中,前者可以作为优选的实现方式,这种情况下服务器本身出现云服务质量缺陷的可能性会更大。In this embodiment, a predetermined rule for centralized detection of cloud hosts is set. The predetermined rule for centralized detection of cloud hosts can be set according to needs. The purpose is to determine whether there is a need to detect servers; for example, there are many Clients detect different cloud hosts, and there are many clients that detect the same cloud host; here it can be that the above two events have occurred within a certain period of time. Among them, the former can be used as a preferred implementation. In this case, the server itself is more likely to have cloud service quality defects.
本申请实施例,可以向发出了网络测试包的客户端反馈针对服务器以及针对云主机探测结果及结果数据,那么客户端可以根据上述结果数据确定针对云主机的云服务质量检测结果,根据上述探测结果确定针对云服务器的云服务质量检测结果;从而根据服务器和云主机的云服务质量的检测结果,确定当前存在云服务质量缺陷后,根据预设引起云服务质量缺陷的原因,对云服务相应的运行数据进行分析,匹配出引起当前云服务质量缺陷的目标原因,实现引起云服务质量缺陷的原因的精准定位;进而获取预设的与上述目标原因相应的解决策略并执行,提供出与所定位原因匹配的解决策略,对云服务质量缺陷进行解决,从而提升云服务质量,保障云服务质量。在此基础上,客户端不必向服务器发送网络检测包,因此对服务器而言,可以不必直接接收到来自客户端的网络检测包,也不必向客户端公布自己的地址,从而减少可能的被网络测试包攻击的可能性,提高了安全性。In the embodiment of the present application, the detection result and result data for the server and the cloud host can be fed back to the client that has sent the network test package, and the client can determine the cloud service quality detection result for the cloud host according to the above result data, and according to the above detection The result determines the cloud service quality test results for the cloud server; thus, according to the cloud service quality test results of the server and the cloud host, after determining the current cloud service quality defect, according to the preset cause of the cloud service quality defect, the cloud service is corresponding Analyze the operating data of the company, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect; then obtain and implement the preset solution strategy corresponding to the above target cause, and provide the A solution strategy that matches the location of the cause is to solve the defects of cloud service quality, so as to improve the quality of cloud service and ensure the quality of cloud service. On this basis, the client does not need to send a network detection packet to the server, so for the server, it does not need to directly receive the network detection packet from the client, nor does it need to announce its address to the client, thereby reducing the possibility of network testing. The possibility of packet attacks improves security.
本申请实施例还提供了云主机被集中探测的预定规则的举例,具体如下:上述方法还包括:The embodiment of the present application also provides an example of a predetermined rule for centralized detection of a cloud host, which is specifically as follows: the above method further includes:
在将上述网络测试包发往上述云主机之前,缓存上述网络测试包;Before sending the above-mentioned network test package to the above-mentioned cloud host, cache the above-mentioned network test package;
上述统计发往上述云主机的网络测试包得到统计结果包括:The statistical results obtained from the above statistics of the network test packets sent to the above cloud host include:
统计缓存的发往上述云主机的网络测试包的数量,或者,统计缓存的发往上述云主机的网络测试包的源客户端数量;Count the number of cached network test packets sent to the aforementioned cloud host, or count the number of source clients of the cached network test packet sent to the aforementioned cloud host;
上述统计结果属于上述云主机被集中探测的预定规则的情况包括:The cases where the above statistical results belong to the predetermined rules for centralized detection of the above cloud hosts include:
上述缓存的发往上述云主机的网络测试包的数量大于第一阈值,或者,缓存的发往上述云主机的网络测试包的源客户端数量的数量大于第二阈值。The number of cached network test packets sent to the cloud host is greater than the first threshold, or the number of source clients of the cached network test packets sent to the cloud host is greater than the second threshold.
在本实施例中,可以使用接收队列对网络测试包进行缓存,这里的接收队列可以是一个接收队列,缓存所有发往该服务器的网络测试包;也可以按照云主机分类,即:发往不同的云主机的网络测试包缓存到不同的接收队列。In this embodiment, a receiving queue can be used to cache network test packets, where the receiving queue can be a receiving queue that caches all network test packets sent to the server; it can also be classified according to the cloud host, that is, send to different The network test packets of the cloud host are cached to different receiving queues.
在本实施例中统计值进行了两种举例,其中,统计发往上述云主机的网络测试包的数量,并未对网络测试包的源客户端进行区分,该实现方式主要是针对某个云主机被集中探 测的场景下;统计发往上述云主机的网络测试包的源客户端数量的数量,对网络测试包的源客户端进行了区分,可以不限制发往该云主机的总网络测试包数量,该实现方式主要是针对某个云主机被众多客户端探测的应用场景。这两种场景可以将后者作为优选的实现方式。In this embodiment, two examples of statistical values are given. Among them, the number of network test packets sent to the cloud host is counted, and the source client of the network test packet is not distinguished. The implementation is mainly for a certain cloud In the scenario where the host is centrally probed; the number of source clients of the network test package sent to the cloud host is counted, and the source client of the network test package is distinguished, and the total network test sent to the cloud host is not limited The number of packets, this implementation is mainly for the application scenario where a certain cloud host is detected by many clients. For these two scenarios, the latter can be the preferred implementation.
以上源客户端是相对于网络测试包而言的,发送该网络测试包的客户端即为该网络测试包的源客户端。The above source client is relative to the network test package, and the client that sends the network test package is the source client of the network test package.
另需说明的是,本申请实施例可以设定的云主机被集中探测的预定规则还可以很多,例如:在预定时间段内收到的网络测试包数量超过某一阈值,此时既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机。因此本申请实施例所提供的云主机被集中探测的预定规则的举例不应理解为对本申请实施例的唯一性限定。In addition, it should be noted that there can be many predetermined rules for cloud hosts to be centrally detected that can be set in the embodiment of the present application. For example, the number of network test packets received within a predetermined time period exceeds a certain threshold, and no distinction is made at this time. The source client of the network test package does not distinguish which cloud host the network test package is sent to. Therefore, the examples of predetermined rules for centralized detection of cloud hosts provided in the embodiments of the present application should not be construed as unique limitations to the embodiments of the present application.
另外,在本实施例中的第一阈值和第二阈值基于目的的不同,前者是为了确定针对某个云主机被集中探测,那么多大的量可以确定为被集中探测是设定第一阈值的依据;后者是为了确定针对某个云主机被众多客户端探测是设定第二阈值的依据;本申请实施例对第一阈值和第二阈值的具体取值不作唯一性限定。In addition, the first threshold and the second threshold in this embodiment are based on different purposes. The former is to determine that a certain cloud host is centrally detected, so how much can be determined to be centrally detected is to set the first threshold Basis; the latter is to determine that a certain cloud host is detected by many clients is the basis for setting the second threshold; the embodiment of the present application does not uniquely limit the specific values of the first threshold and the second threshold.
本申请实施例还提供了网络测试包的缓存形式,以及触发对服务器进行探测的条件举例,具体如下:上述缓存上述网络测试包包括:The embodiment of the present application also provides a caching form of the network test packet, and examples of conditions for triggering detection of the server, which are specifically as follows: the foregoing caching of the network test packet includes:
将所有接收到的网络测试包缓存到同一接收队列中,或者,为云主机创建接收队列,将上述网络测试包缓存到与上述云主机对应的接收队列中。Cache all received network test packets in the same receiving queue, or create a receiving queue for the cloud host, and cache the above network test packets in the receiving queue corresponding to the cloud host.
可选地,上述统计缓存的发往上述云主机的网络测试包的数量,或者,统计缓存的发往上述云主机的网络测试包的源客户端数量;包括:Optionally, the above-mentioned statistics cache the number of network test packets sent to the cloud host, or the statistics cache the number of source clients of the network test packets sent to the cloud host; including:
在上述接收队列溢出时,删除上述接收队列中接收时间与当前时刻的时间差超过第三阈值的网络测试包;When the receiving queue overflows, delete the network test packet in the receiving queue whose time difference between the receiving time and the current moment exceeds the third threshold;
统计上述接收队列中的发往上述云主机的网络测试包的数量,或者,统计上述云主机对应的接收队列中缓存的网络测试包的源客户端数量。Count the number of network test packets sent to the cloud host in the receiving queue, or count the number of source clients of the network test packets buffered in the receiving queue corresponding to the cloud host.
在本实施例中提供了使用接收队列缓存网络测试包的两种举例,其中,前者可以应用于既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机的场景,后者可以应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景。需说明的是,前者也可以应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景,此时需要在触发统计后,对队列中的网络测试包进行逐一识别,相对而言速度会较慢;因此应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景时,使用后者可以加快探测速度。相应地,如果应用于既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机的场景,前者反而速度更快。In this embodiment, two examples of using the receiving queue to cache network test packets are provided. The former can be applied to scenarios where neither the source client of the network test packet is distinguished nor the cloud host to which the network test packet is sent. The latter can be applied to application scenarios where a certain cloud host is centrally detected or a certain cloud host is detected by many clients. It should be noted that the former can also be applied to application scenarios where a cloud host is centrally detected or a cloud host is detected by many clients. In this case, it is necessary to perform statistics on the network test packets in the queue one by one after the statistics are triggered. Recognition is relatively slow; therefore, when it is applied to an application scenario where a cloud host is centrally detected or a cloud host is detected by many clients, the latter can speed up the detection speed. Correspondingly, if it is applied to a scenario where neither the source client of the network test packet nor the cloud host to which the network test packet is to be distinguished, the former is faster.
在本实施例中,使用后者创建接收队列,并且将缓存的发往上述云主机的网络测试包的数量大于第一阈值作为上述统计结果属于上述云主机被集中探测的预定规则的情况时,可以将该云主机对应的接收队列的长度设定为上述第一阈值。此时,可以在接收队列溢出时,判定缓存的发往上述云主机的网络测试包的数量大于第一阈值;省去统计的步骤。In this embodiment, when the latter is used to create a receiving queue, and the number of cached network test packets sent to the cloud host is greater than the first threshold as the statistical result belongs to the predetermined rule that the cloud host is centrally detected, The length of the receiving queue corresponding to the cloud host may be set as the aforementioned first threshold. At this time, when the receiving queue overflows, it can be determined that the number of cached network test packets sent to the cloud host is greater than the first threshold; the step of statistics is omitted.
另外,在本申请实施例中,可以每接收到一个网络测试包并将其缓存到接收队列之前, 判定其所针对的云主机以及源客户端是否为新客户端,使用数组array[a][b]存储,其中array为数组名,可以为采用云主机名命名,a为发往该云主机的网络测试包的数量,b为发往该云主机的源客户端的数量;具体执行时,接收到网络测试包,则判定发往array云主机,则a++,判定是否为该网络测试包的源客户端是否为新客户端,若为新客户端则b++。采用本实施例方案时,可以在数组溢出时探测服务器,并初始化该数组。In addition, in the embodiments of the present application, each time a network test packet is received and buffered in the receiving queue, it can be determined whether the cloud host and the source client for which it is targeted are new clients, using the array array[a][ b] Storage, where array is the name of the array, which can be named using the cloud host name, a is the number of network test packets sent to the cloud host, b is the number of source clients sent to the cloud host; when it is executed, receive To the network test package, it is determined to be sent to the array cloud host, then a++, determine whether the source client of the network test package is a new client, and b++ if it is a new client. When the solution of this embodiment is adopted, the server can be detected when the array overflows, and the array can be initialized.
以上网络测试包的缓存形式,以及触发对服务器进行探测的条件举例不应理解为对本申请实施例的唯一性限定。The above caching form of the network test packet and the examples of conditions that trigger the detection of the server should not be understood as a unique limitation to the embodiment of the present application.
本申请实施例的执行侧并不在客户端一侧,因此并不能避免客户端向服务器发送网络测试包,若接收到发往服务器的网络测试包,本申请实施例提供了解决方案如下:上述方法还包括:The execution side of the embodiment of this application is not on the client side, so it cannot prevent the client from sending a network test package to the server. If the network test package sent to the server is received, the solution provided by the embodiment of this application is as follows: Also includes:
若接收到发往上述服务器的网络测试包,则删除上述发往上述服务器的网络测试包。If the network test packet sent to the server is received, the network test packet sent to the server is deleted.
本实施例可以兼容客户端向服务器和云主机均发送网络测试包的技术方案,因此可以兼容各种友商的应用方案。另外,在客户端向服务器和云主机均发送网络测试包的场景下,可以一方面放客户端收到必要的服务区的探测结果,另一方面又可以避免服务器被攻击的风险。This embodiment can be compatible with the technical solution that the client sends the network test package to the server and the cloud host, so it can be compatible with application solutions of various friends. In addition, in a scenario where the client sends network test packets to both the server and the cloud host, on the one hand, the client can receive the detection results of the necessary service area, and on the other hand, it can avoid the risk of the server being attacked.
本申请实施例还提供了对服务器进行探测的具体手段,以及向客户端发送探测结果的具体实现手段,上述对上述服务器进行探测得到探测结果,向上述客户端发送上述探测结果包括:The embodiment of the present application also provides specific means for detecting the server and specific means for sending the detection result to the client. The detection result obtained by detecting the server and sending the detection result to the client includes:
将发往上述云主机的网络测试包的目的地址修改为上述服务器,向上述服务器发送修改目的地址后的网络测试包,接收上述服务器返回的探测结果;将上述探测结果发往上述客户端。Modify the destination address of the network test packet sent to the cloud host to the server, send the network test packet with the modified destination address to the server, receive the detection result returned by the server, and send the detection result to the client.
在本实施例中,可以兼容网络测试包的实现手段,即服务器仍然可以兼容ping检测包,遵循ICMP的相关规定。In this embodiment, the implementation means of the network test package can be compatible, that is, the server can still be compatible with the ping test package, and follow the relevant regulations of ICMP.
另外,也可以对服务器进行全面探测获得比ping检测包更多的探测结果,使用其他协议向客户端发送探测结果也可以的。In addition, it is also possible to perform comprehensive detection on the server to obtain more detection results than the ping detection packet, and it is also possible to use other protocols to send detection results to the client.
本实施例还提供了向其他客户端发送探测结果的应用场景,具体如下:上述方法还包括:This embodiment also provides an application scenario for sending detection results to other clients, which is specifically as follows: the above method also includes:
获取目标客户端,上述目标客户端包含向上述云主机最近一次发送网络测试包的时刻在与当前时刻距离小于第四阈值的客户端;或者,上述目标客户端包括在与当前时刻距离预定时段内向上述云主机发送网络测试包的个数超过第五阈值的客户端或者,上述目标客户端包括在与当前时刻距离预定时段内向上述云主机发送网络测试包的个数超过第五阈值的客户端;Obtain the target client, the target client includes the client whose distance from the current time is less than the fourth threshold at the time when the network test packet was sent to the cloud host last time; or, the target client includes the client within a predetermined time period from the current time Clients whose number of network test packets sent by the cloud host exceeds a fifth threshold or, the target client includes clients whose number of network test packets sent to the cloud host exceeds the fifth threshold within a predetermined period of time away from the current time;
向上述目标客户端发送上述探测结果。Send the detection result to the target client.
在本实施例中,第四阈值是为了获得可能有探测服务器的云服务状态的客户端,通常来说这些客户端发送网络测试包的时间会离当前时刻比较近;或者,在最近一段时间内多 次发送了网络测试包。因此以上第四阈值用来区分哪些客户端属于离当前时刻比较近,第五阈值用来区分发送多少次网络测试包属于多次发送。具体数值本申请实施例不作唯一性限定。In this embodiment, the fourth threshold is to obtain clients that may have the cloud service status of the detection server. Generally speaking, the time for these clients to send network test packets is relatively close to the current moment; or, in the most recent period of time. The network test package has been sent several times. Therefore, the above fourth threshold is used to distinguish which clients are closer to the current moment, and the fifth threshold is used to distinguish how many times the network test packet is sent for multiple times. The specific values are not uniquely limited in the embodiments of this application.
本实施例可以实现对多种可能需要服务器的云服务状态的客户端主动报告服务器的云服务状态,帮助这些客户端及早获知服务器的云服务状态。This embodiment can actively report the cloud service status of the server to a variety of clients that may need the cloud service status of the server, so as to help these clients learn the cloud service status of the server as soon as possible.
本申请实施例还提供了一种可选的发送探测结果的实现方案,具体如下:上述向上述客户端发送上述探测结果包括:The embodiment of the present application also provides an optional implementation solution for sending the detection result, which is specifically as follows: the foregoing sending the foregoing detection result to the foregoing client includes:
将上述探测结果写入上述结果数据,标注探测对象为上述服务器;Write the above detection result into the above result data, and mark the detection object as the above server;
上述将上述结果数据发往上述客户端包括:The foregoing sending the foregoing result data to the foregoing client includes:
将添加了上述探测结果的结果数据发往上述客户端。Send the result data with the above detection results to the above client.
在本实施例中,结果数据可以是代表服务器状态的任意数据,以ping检测包为例,其结果数据仅是回复的与ping检测包同样大小的ICMP回声应答,该ICMP回声应答中包含的数据,在本实施例中可以标明发送给了服务器,另外还可以标明△t,该△t是ping检测包在队列中等待的时间,用于客户端在计算网络延迟时扣除该△t。In this embodiment, the result data can be any data that represents the status of the server. Taking the ping detection packet as an example, the result data is only the ICMP echo response of the same size as the ping detection packet, and the data contained in the ICMP echo response In this embodiment, it can be marked as sent to the server, and Δt can also be marked. This Δt is the waiting time of the ping detection packet in the queue, which is used by the client to deduct the Δt when calculating the network delay.
尤其对于目标客户端而言,其发送的ping检测包发送给云主机以后,这些ping检测包仍然被缓存等待第四阈值的时间来判定是否修改探测对象后发给服务器,这些ping检测包的等待时间比较长,如果不扣除△t会大大的增加探测结果中显示的网络延迟;因此本实施例可以在监测装置处对该时间进行扣除,或者在ICMP回声应答中携带△t给客户端,由客户端判定扣除该部分时间。Especially for the target client, after sending the ping detection packets to the cloud host, these ping detection packets are still cached and waiting for the fourth threshold to determine whether to modify the detection object and then sent to the server. These ping detection packets are waiting The time is relatively long. If Δt is not deducted, the network delay displayed in the detection result will be greatly increased; therefore, this embodiment can deduct the time at the monitoring device, or carry Δt to the client in the ICMP echo response. The client decides to deduct this part of time.
本申请实施例还提供了以ping检测包作为网络测试包的应用场景举例,使用服务器外的监控装置作为管理网络测试包的硬件实体举例,如图3所示,可以一并参考图1所示的系统架构图,包括:The embodiment of the application also provides an example of an application scenario using a ping detection package as a network test package, and an example of using a monitoring device outside the server as a hardware entity that manages the network test package, as shown in Figure 3, and can be referred to as shown in Figure 1. System architecture diagram, including:
301、客户端向服务器中的云主机发送ping检测包,该ping检测包包含云主机的地址;该ping检测包首先到达监控设备;301. The client sends a ping detection packet to the cloud host in the server. The ping detection packet contains the address of the cloud host; the ping detection packet first reaches the monitoring device;
302:监控设备在收到ping检测包以后,识别ping检测包中的地址后转发给上述云主机;另外,可以为该云主机建立接收队列,将该ping检测包存入该接收队列;302: After receiving the ping detection packet, the monitoring device recognizes the address in the ping detection packet and forwards it to the cloud host; in addition, it can establish a receiving queue for the cloud host and store the ping detection packet in the receiving queue;
另外,由于客户端发往云主机的数据包很多,并不仅仅只有ping检测包,因此本步骤中监控设备需要识别出ping检测包,不是ping检测包则不需存入该接收队列。In addition, because there are many data packets sent by the client to the cloud host, not only the ping detection packet, the monitoring device needs to identify the ping detection packet in this step, and it does not need to be stored in the receiving queue if it is not a ping detection packet.
另外,在本步骤中,也不将ping检测包的全部信息存入接收队列,仅存入其来源、接收到的时间等信息。In addition, in this step, all the information of the ping detection packet is not stored in the receiving queue, and only information such as its source and received time is stored.
303:监控设备会接收到云主机返回的ICMP回声应答,在该ICMP回声应答中包含上述客户端的地址;监控设备识别该地址后将该ICMP回声应答转发给上述客户端。303: The monitoring device will receive the ICMP echo response returned by the cloud host, and the ICMP echo response includes the address of the client; after the monitoring device recognizes the address, the ICMP echo response is forwarded to the client.
304:监控设备可以统计上述接收队列中的ping检测包,确定是否满足预设的规则,如果是,进入305;304: The monitoring device can count the ping detection packets in the above receiving queue to determine whether the preset rules are met, and if so, enter 305;
本步骤统计执行的触发条件可以是周期性的,也可以是当接收队列溢出时触发的,还可以是接收队列中的ping检测包多于指定值时触发的。The trigger condition for the execution of statistics in this step can be periodic, triggered when the receiving queue overflows, or triggered when there are more ping detection packets in the receiving queue than a specified value.
在304判定结果为否的情况下可以继续执行304,也可以清空统计数据以后等待下一次被触发执行304。If the result of the 304 determination is no, you can continue to execute 304, or you can clear the statistical data and wait for the next trigger to execute 304.
上述预设的规则,可以是在某一段时间内发给该云主机的ping检测包很多,或者,进一步检测到ICMP回声应答的结果均为正常的。当然,还可以是其他预设的可能要探测服务器的规则。The foregoing preset rule may be that a lot of ping detection packets are sent to the cloud host within a certain period of time, or the results of further detection of ICMP echo responses are normal. Of course, it can also be other preset rules that may need to detect the server.
305:读取接收队列中ping检测包的所有源客户端;探测服务器,以ICMP回声应答的方式将探测结果返回给上述源客户端。具体的探测手段可以是:从接收队列中任意取出一个ping监测包,将接收地址改为服务器,向服务器转发;然后在接收到ICMP回声应答后将其中的时间减去△t,或者标明△t;该△t的说明请参阅前一实施例,在此不再赘述。305: Read all source clients of the ping detection packet in the receiving queue; the detection server returns the detection result to the aforementioned source client in the form of an ICMP echo response. The specific detection method can be: take out a ping monitoring packet arbitrarily from the receiving queue, change the receiving address to the server, and forward it to the server; then after receiving the ICMP echo response, subtract △t from the time, or mark △t ; Please refer to the previous embodiment for the description of the Δt, which will not be repeated here.
采用本实施例方案的好处,除了达到能够确定服务质量影响是源自服务器还是云主机外,还包含如下好处:The benefits of using the solution of this embodiment include not only the ability to determine whether the service quality impact is from the server or the cloud host, but also the following benefits:
第一,服务器不会直接收到来自客户端的ping检测,屏蔽了被攻击可能性;First, the server will not directly receive the ping detection from the client, which shields the possibility of being attacked;
第二,极端情况下也只会有N次对服务器的检测,N可以为云主机数量,云主机数量显然要远低于客户端数量;因此可以减少检测处理量。Second, in extreme cases, there will only be N detections of the server. N can be the number of cloud hosts. The number of cloud hosts is obviously much lower than the number of clients; therefore, the amount of detection processing can be reduced.
本申请实施例还提供了一种云服务质量监控装置,如图4所示,包括:The embodiment of the application also provides a cloud service quality monitoring device, as shown in FIG. 4, including:
第一接收单元401,用于接收来自客户端发往服务器中的云主机的网络测试包;The first receiving unit 401 is configured to receive a network test packet sent from the client to the cloud host in the server;
转发单元402,用于将上述网络测试包发往上述云主机;The forwarding unit 402 is configured to send the aforementioned network test packet to the aforementioned cloud host;
第二接收单元403,用于接收上述云主机返回的上述网络测试包的结果数据;The second receiving unit 403 is configured to receive the result data of the network test packet returned by the cloud host;
发送单元404,用于将上述结果数据发往上述客户端;The sending unit 404 is configured to send the above result data to the above client;
统计单元405,用于在存在上述客户端以及上述客户端之外的其他客户端发往上述服务器的网络测试包,上述客户端以及上述客户端之外的其他客户端发往上述云主机的网络测试包被拦截的情况下,统计发往上述云主机的网络测试包得到统计结果;The statistical unit 405 is configured to send network test packets sent to the server by the above-mentioned client and other clients except the above-mentioned client, and sent to the network of the above-mentioned cloud host by the above-mentioned client and other clients except the above-mentioned client When the test packet is intercepted, count the network test packets sent to the above-mentioned cloud host to obtain the statistical result;
探测单元406,用于在上述统计结果属于上述云主机被集中探测的预定规则的情况下,对上述服务器进行探测得到探测结果;The detection unit 406 is configured to detect the server to obtain a detection result when the statistical result belongs to the predetermined rule that the cloud host is centrally detected;
上述发送单元404,还用于向上述客户端发送上述探测结果。The sending unit 404 is further configured to send the detection result to the client.
在本实施例中,网络测试包可以是用于测试网络连接量等网络信息,如网络测试包可以选用ping检测包。In this embodiment, the network test packet may be used to test network information such as the amount of network connection. For example, the network test packet may be a ping detection packet.
可选地,本申请实施例的客户端一侧可以利用ping工具向云端的服务器,及云服务器中的云主机分别发送ping检测包;也可以利用ping工具仅向云端的云服务器中的云主机发送ping检测包。ping工具可以设置于客户端的用户设备上,从服务器可以接收到针对服务器或者针对服务器中的云主机的ping检测包。Optionally, the client side of the embodiment of the present application can use the ping tool to send ping detection packets to the cloud server and the cloud host in the cloud server respectively; or use the ping tool to only send the ping detection packet to the cloud server in the cloud server. Send a ping detection packet. The ping tool can be set on the user device of the client, and the ping detection packet for the server or the cloud host in the server can be received from the server.
在本实施例中,云主机是客户端可以直接访问的虚拟设备,通常其访问地址是公开的;因此可能会被不同的客户端访问,因此不同的客户端均可以向其发送ping检测包。发往云主机的ping检测包可以遵循ICMP的相关规定。In this embodiment, the cloud host is a virtual device that the client can directly access, and its access address is usually public; therefore, it may be accessed by different clients, so different clients can send ping detection packets to it. The ping detection packet sent to the cloud host can follow the relevant regulations of ICMP.
在本实施例中,若网络测试包为ping检测包,那么云主机依据ICMP的规定,会返回ICMP回声应答作为结果数据。客户端可以据此判定客户端与云主机之间的连接状态,以及据此确定云主机是否存在云服务质量缺陷。In this embodiment, if the network test packet is a ping detection packet, the cloud host will return an ICMP echo response as the result data according to ICMP regulations. The client can determine the connection status between the client and the cloud host based on this, and determine whether the cloud host has a cloud service quality defect based on this.
在本实施例中设置了云主机被集中探测的预定规则,该云主机被集中探测的预定规则可以根据需要进行设定,其目的在于确定是否有对服务器进行探测的需求;例如:有众多的客户端对不同的云主机进行探测,有众多的的客户端对相同的云主机进行探测;这里可以是在某个时间段内发生了上述两种事件。其中,前者可以作为优选的实现方式,这种情况下服务器本身出现云服务质量缺陷的可能性会更大。In this embodiment, a predetermined rule for centralized detection of cloud hosts is set. The predetermined rule for centralized detection of cloud hosts can be set according to needs. The purpose is to determine whether there is a need to detect servers; for example, there are many Clients detect different cloud hosts, and there are many clients that detect the same cloud host; here it can be that the above two events have occurred within a certain period of time. Among them, the former can be used as a preferred implementation. In this case, the server itself is more likely to have cloud service quality defects.
本申请实施例,可以向发出了网络测试包的客户端反馈针对服务器以及针对云主机探测结果及结果数据,那么客户端可以根据上述结果数据确定针对云主机的云服务质量检测结果,根据上述探测结果确定针对云服务器的云服务质量检测结果;从而根据服务器和云主机的云服务质量的检测结果,确定当前存在云服务质量缺陷后,根据预设引起云服务质量缺陷的原因,对云服务相应的运行数据进行分析,匹配出引起当前云服务质量缺陷的目标原因,实现引起云服务质量缺陷的原因的精准定位;进而获取预设的与上述目标原因相应的解决策略并执行,提供出与所定位原因匹配的解决策略,对云服务质量缺陷进行解决,从而提升云服务质量,保障云服务质量。在此基础上,客户端不必向服务器发送网络检测包,因此对服务器而言,可以不必直接接收到来自客户端的网络检测包,也不必向客户端公布自己的地址,从而减少可能的被网络测试包攻击的可能性,提高了安全性。In the embodiment of the present application, the detection result and result data for the server and the cloud host can be fed back to the client that has sent the network test package, and the client can determine the cloud service quality detection result for the cloud host according to the above result data, and according to the above detection The result determines the cloud service quality test results for the cloud server; thus, according to the cloud service quality test results of the server and the cloud host, after determining the current cloud service quality defect, according to the preset cause of the cloud service quality defect, the cloud service is corresponding Analyze the operating data of the company, match the target cause of the current cloud service quality defect, and realize the precise location of the cause of the cloud service quality defect; then obtain and implement the preset solution strategy corresponding to the above target cause, and provide the A solution strategy that matches the location of the cause is to solve the defects of cloud service quality, so as to improve the quality of cloud service and ensure the quality of cloud service. On this basis, the client does not need to send a network detection packet to the server, so for the server, it does not need to directly receive the network detection packet from the client, nor does it need to announce its address to the client, thereby reducing the possibility of network testing. The possibility of packet attacks improves security.
本申请实施例还提供了云主机被集中探测的预定规则的举例,具体如下:上述装置还包括:The embodiment of the present application also provides an example of a predetermined rule for centralized detection of a cloud host, which is specifically as follows: the above-mentioned device further includes:
存储单元407,用于在将上述网络测试包发往上述云主机之前,缓存上述网络测试包;The storage unit 407 is configured to buffer the network test package before sending the network test package to the cloud host;
上述统计单元405,用于统计缓存的发往上述云主机的网络测试包的数量,或者,统计缓存的发往上述云主机的网络测试包的源客户端数量;The statistics unit 405 is configured to count the number of cached network test packets sent to the cloud host, or count the number of source clients of the cached network test packets sent to the cloud host;
上述探测单元406,用于在上述缓存的发往上述云主机的网络测试包的数量大于第一阈值的情况下,或者,缓存的发往上述云主机的网络测试包的源客户端数量的数量大于第二阈值的情况下,对上述服务器进行探测得到探测结果。The detection unit 406 is configured to: when the number of cached network test packets sent to the cloud host is greater than a first threshold, or the number of source clients of the cached network test packets sent to the cloud host If it is greater than the second threshold, detect the above-mentioned server to obtain a detection result.
在本实施例中,可以使用接收队列对网络测试包进行缓存,这里的接收队列可以是一个接收队列,缓存所有发往该服务器的网络测试包;也可以按照云主机分类,即:发往不同的云主机的网络测试包缓存到不同的接收队列。In this embodiment, a receiving queue can be used to cache network test packets, where the receiving queue can be a receiving queue that caches all network test packets sent to the server; it can also be classified according to the cloud host, that is, send to different The network test packets of the cloud host are cached to different receiving queues.
在本实施例中统计值进行了两种举例,其中,统计发往上述云主机的网络测试包的数量,并未对网络测试包的源客户端进行区分,该实现方式主要是针对某个云主机被集中探测的场景下;统计发往上述云主机的网络测试包的源客户端数量的数量,对网络测试包的源客户端进行了区分,可以不限制发往该云主机的总网络测试包数量,该实现方式主要是针对某个云主机被众多客户端探测的应用场景。这两种场景可以将后者作为优选的实现方式。In this embodiment, two examples of statistical values are given. Among them, the number of network test packets sent to the cloud host is counted, and the source client of the network test packet is not distinguished. The implementation is mainly for a certain cloud In the scenario where the host is centrally probed; the number of source clients of the network test package sent to the cloud host is counted, and the source client of the network test package is distinguished, and the total network test sent to the cloud host is not limited The number of packets, this implementation is mainly for the application scenario where a certain cloud host is detected by many clients. For these two scenarios, the latter can be the preferred implementation.
以上源客户端是相对于网络测试包而言的,发送该网络测试包的客户端即为该网络测试包的源客户端。The above source client is relative to the network test package, and the client that sends the network test package is the source client of the network test package.
另需说明的是,本申请实施例可以设定的云主机被集中探测的预定规则还可以很多,例如:在预定时间段内收到的网络测试包数量超过某一阈值,此时既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机。因此本申请实施例所提供的云主机被 集中探测的预定规则的举例不应理解为对本申请实施例的唯一性限定。In addition, it should be noted that there can be many predetermined rules for cloud hosts to be centrally detected that can be set in the embodiment of the present application. For example, the number of network test packets received within a predetermined time period exceeds a certain threshold, and no distinction is made at this time. The source client of the network test package does not distinguish which cloud host the network test package is sent to. Therefore, the examples of predetermined rules for centralized detection of cloud hosts provided in the embodiments of the present application should not be construed as unique limitations on the embodiments of the present application.
另外,在本实施例中的第一阈值和第二阈值基于目的的不同,前者是为了确定针对某个云主机被集中探测,那么多大的量可以确定为被集中探测是设定第一阈值的依据;后者是为了确定针对某个云主机被众多客户端探测是设定第二阈值的依据;本申请实施例对第一阈值和第二阈值的具体取值不作唯一性限定。In addition, the first threshold and the second threshold in this embodiment are based on different purposes. The former is to determine that a certain cloud host is centrally detected, so how much can be determined to be centrally detected is to set the first threshold Basis; the latter is to determine that a certain cloud host is detected by many clients is the basis for setting the second threshold; the embodiment of the present application does not uniquely limit the specific values of the first threshold and the second threshold.
本申请实施例还提供了网络测试包的缓存形式,以及触发对服务器进行探测的条件举例,具体如下:上述存储单元407,具体用于将所有接收到的网络测试包缓存到同一接收队列中,或者,为云主机创建接收队列,将上述网络测试包缓存到与上述云主机对应的接收队列中。The embodiment of the present application also provides a buffering form of network test packets, and examples of conditions for triggering detection of the server, which are specifically as follows: The storage unit 407 is specifically configured to buffer all received network test packets into the same receiving queue. Or, create a receiving queue for the cloud host, and buffer the above-mentioned network test packet in the receiving queue corresponding to the above-mentioned cloud host.
可选地,上述统计单元405,具体用于在上述接收队列溢出时,删除上述接收队列中接收时间与当前时刻的时间差超过第三阈值的网络测试包;统计上述接收队列中的发往上述云主机的网络测试包的数量,或者,统计上述云主机对应的接收队列中缓存的网络测试包的源客户端数量。Optionally, the statistical unit 405 is specifically configured to delete the network test packets in the receiving queue whose time difference between the receiving time and the current time exceeds a third threshold when the receiving queue overflows; to count the data in the receiving queue that are sent to the cloud The number of network test packets of the host, or the number of source clients of the network test packets buffered in the receiving queue corresponding to the cloud host.
在本实施例中提供了使用接收队列缓存网络测试包的两种举例,其中,前者可以应用于既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机的场景,后者可以应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景。需说明的是,前者也可以应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景,此时需要在触发统计后,对队列中的网络测试包进行逐一识别,相对而言速度会较慢;因此应用于针对某个云主机被集中探测或者针对某个云主机被众多客户端探测的应用场景时,使用后者可以加快探测速度。相应地,如果应用于既不区分网络测试包的源客户端,也不区分网络测试包发往哪一个云主机的场景,前者反而速度更快。In this embodiment, two examples of using the receiving queue to cache network test packets are provided. The former can be applied to scenarios where neither the source client of the network test packet is distinguished nor the cloud host to which the network test packet is sent. The latter can be applied to application scenarios where a certain cloud host is centrally detected or a certain cloud host is detected by many clients. It should be noted that the former can also be applied to application scenarios where a cloud host is centrally detected or a cloud host is detected by many clients. In this case, it is necessary to perform statistics on the network test packets in the queue one by one after the statistics are triggered. Recognition is relatively slow; therefore, when it is applied to an application scenario where a cloud host is centrally detected or a cloud host is detected by many clients, the latter can speed up the detection speed. Correspondingly, if it is applied to a scenario where neither the source client of the network test packet nor the cloud host to which the network test packet is to be distinguished, the former is faster.
在本实施例中,使用后者创建接收队列,并且将缓存的发往上述云主机的网络测试包的数量大于第一阈值作为上述统计结果属于上述云主机被集中探测的预定规则的情况时,可以将该云主机对应的接收队列的长度设定为上述第一阈值。此时,可以在接收队列溢出时,判定缓存的发往上述云主机的网络测试包的数量大于第一阈值;省去统计的步骤。In this embodiment, when the latter is used to create a receiving queue, and the number of cached network test packets sent to the cloud host is greater than the first threshold as the statistical result belongs to the predetermined rule that the cloud host is centrally detected, The length of the receiving queue corresponding to the cloud host may be set as the aforementioned first threshold. At this time, when the receiving queue overflows, it can be determined that the number of cached network test packets sent to the cloud host is greater than the first threshold; the step of statistics is omitted.
另外,在本申请实施例中,可以每接收到一个网络测试包并将其缓存到接收队列之前,判定其所针对的云主机以及源客户端是否为新客户端,使用数组array[a][b]存储,其中array为数组名,可以为采用云主机名命名,a为发往该云主机的网络测试包的数量,b为发往该云主机的源客户端的数量;具体执行时,接收到网络测试包,则判定发往array云主机,则a++,判定是否为该网络测试包的源客户端是否为新客户端,若为新客户端则b++。采用本实施例方案时,可以在数组溢出时探测服务器,并初始化该数组。In addition, in the embodiment of the present application, each time a network test packet is received and buffered in the receiving queue, it is possible to determine whether the cloud host and the source client it is aimed at are new clients, using the array array[a][ b] Storage, where array is the name of the array, which can be named using the cloud host name, a is the number of network test packets sent to the cloud host, b is the number of source clients sent to the cloud host; when it is executed, receive To the network test package, it is determined to be sent to the array cloud host, then a++, to determine whether the source client of the network test package is a new client, and b++ if it is a new client. When the solution of this embodiment is adopted, the server can be detected when the array overflows, and the array can be initialized.
以上网络测试包的缓存形式,以及触发对服务器进行探测的条件举例不应理解为对本申请实施例的唯一性限定。The above caching form of the network test packet and the examples of conditions that trigger the detection of the server should not be understood as a unique limitation to the embodiment of the present application.
本申请实施例的执行侧并不在客户端一侧,因此并不能避免客户端向服务器发送网络测试包,若接收到发往服务器的网络测试包,本申请实施例提供了解决方案如下:上述装置还包括:The execution side of the embodiment of this application is not on the client side, so it cannot prevent the client from sending a network test package to the server. If the network test package sent to the server is received, the solution provided by the embodiment of this application is as follows: Also includes:
包删除单元408,用于若接收到发往上述服务器的网络测试包,则删除上述发往上述服务器的网络测试包。The packet deleting unit 408 is configured to delete the network test packet sent to the server if the network test packet sent to the server is received.
本实施例可以兼容客户端向服务器和云主机均发送网络测试包的技术方案,因此可以兼容各种友商的应用方案。另外,在客户端向服务器和云主机均发送网络测试包的场景下,可以一方面放客户端收到必要的服务区的探测结果,另一方面又可以避免服务器被攻击的风险。This embodiment can be compatible with the technical solution that the client sends the network test package to the server and the cloud host, so it can be compatible with application solutions of various friends. In addition, in a scenario where the client sends network test packets to both the server and the cloud host, on the one hand, the client can receive the detection results of the necessary service area, and on the other hand, it can avoid the risk of the server being attacked.
本申请实施例还提供了对服务器进行探测的具体手段,以及向客户端发送探测结果的具体实现手段,上述探测单元406,具体用于将发往上述云主机的网络测试包的目的地址修改为上述服务器,向上述服务器发送修改目的地址后的网络测试包,接收上述服务器返回的探测结果;The embodiment of the present application also provides specific means for detecting the server and specific means for sending the detection result to the client. The detection unit 406 is specifically used to modify the destination address of the network test packet sent to the cloud host to The server, sending the network test packet with the modified destination address to the server, and receiving the detection result returned by the server;
上述发送单元404,具体用于将上述探测结果发往上述客户端。The sending unit 404 is specifically configured to send the detection result to the client.
在本实施例中,可以兼容网络测试包的实现手段,即服务器仍然可以兼容ping检测包,遵循ICMP的相关规定。In this embodiment, the implementation means of the network test package can be compatible, that is, the server can still be compatible with the ping test package, and follow the relevant regulations of ICMP.
另外,也可以对服务器进行全面探测获得比ping检测包更多的探测结果,使用其他协议向客户端发送探测结果也可以的。In addition, it is also possible to perform comprehensive detection on the server to obtain more detection results than the ping detection packet, and it is also possible to use other protocols to send detection results to the client.
本实施例还提供了向其他客户端发送探测结果的应用场景,具体如下:上述装置还包括:This embodiment also provides an application scenario for sending detection results to other clients, which is specifically as follows: the above-mentioned device further includes:
客户端获取单元409,用于获取目标客户端,上述目标客户端包含向上述云主机最近一次发送网络测试包的时刻在与当前时刻距离小于第四阈值的客户端;或者,上述目标客户端包括在与当前时刻距离预定时段内向上述云主机发送网络测试包的个数超过第五阈值的客户端The client acquisition unit 409 is configured to acquire a target client. The target client includes a client whose distance from the current time is less than a fourth threshold at the time when the network test packet was last sent to the cloud host; or, the target client includes Clients whose number of network test packets sent to the cloud host within a predetermined period of time from the current time exceeds the fifth threshold
上述发送单元404,还用于向上述目标客户端发送上述探测结果。The sending unit 404 is further configured to send the detection result to the target client.
在本实施例中,第四阈值是为了获得可能有探测服务器的云服务状态的客户端,通常来说这些客户端发送网络测试包的时间会离当前时刻比较近;或者,在最近一段时间内多次发送了网络测试包。因此以上第四阈值用来区分哪些客户端属于离当前时刻比较近,第五阈值用来区分发送多少次网络测试包属于多次发送。具体数值本申请实施例不作唯一性限定。In this embodiment, the fourth threshold is to obtain clients that may have the cloud service status of the detection server. Generally speaking, the time for these clients to send network test packets is relatively close to the current moment; or, in the most recent period of time. The network test package has been sent several times. Therefore, the above fourth threshold is used to distinguish which clients are closer to the current moment, and the fifth threshold is used to distinguish how many times the network test packet is sent for multiple times. The specific values are not uniquely limited in the embodiments of this application.
本实施例可以实现对多种可能需要服务器的云服务状态的客户端主动报告服务器的云服务状态,帮助这些客户端及早获知服务器的云服务状态。This embodiment can actively report the cloud service status of the server to a variety of clients that may need the cloud service status of the server, so as to help these clients learn the cloud service status of the server as soon as possible.
本申请实施例还提供了一种可选的发送探测结果的实现方案,具体如下:上述装置还包括:The embodiment of the present application also provides an optional implementation scheme for sending detection results, which is specifically as follows: the above-mentioned device further includes:
数据写入单元410,用于将上述探测结果写入上述结果数据,标注探测对象为上述服务器;The data writing unit 410 is configured to write the above detection result into the above result data, and mark the detection object as the above server;
上述发送单元404,具体用于将添加了上述探测结果的结果数据发往上述客户端。The sending unit 404 is specifically configured to send the result data added with the detection result to the client.
在本实施例中,结果数据可以是代表服务器状态的任意数据,以ping检测包为例,其 结果数据仅是回复的与ping检测包同样大小的ICMP回声应答,该ICMP回声应答中包含的数据,在本实施例中可以标明发送给了服务器,另外还可以标明△t,该△t是ping检测包在队列中等待的时间,用于客户端在计算网络延迟时扣除该△t。In this embodiment, the result data can be any data that represents the status of the server. Taking the ping detection packet as an example, the result data is only the ICMP echo response of the same size as the ping detection packet, and the data contained in the ICMP echo response In this embodiment, it can be marked as sent to the server, and Δt can also be marked. This Δt is the waiting time of the ping detection packet in the queue, which is used by the client to deduct the Δt when calculating the network delay.
尤其对于目标客户端而言,其发送的ping检测包发送给云主机以后,这些ping检测包仍然被缓存等待第四阈值的时间来判定是否修改探测对象后发给服务器,这些ping检测包的等待时间比较长,如果不扣除△t会大大的增加探测结果中显示的网络延迟;因此本实施例可以在监测装置处对该时间进行扣除,或者在ICMP回声应答中携带△t给客户端,由客户端判定扣除该部分时间。Especially for the target client, after sending the ping detection packets to the cloud host, these ping detection packets are still cached and waiting for the fourth threshold to determine whether to modify the detection object and then sent to the server. These ping detection packets are waiting The time is relatively long. If Δt is not deducted, the network delay displayed in the detection result will be greatly increased; therefore, this embodiment can deduct the time at the monitoring device, or carry Δt to the client in the ICMP echo response. The client decides to deduct this part of time.
本申请实施例还提供了一种云服务质量监控装置,该云服务质量监控装置可以是云服务器内的硬件实体,也可以是如图1所示在云服务器外的监控装置,如图5所示,包括:处理器501、存储器502和收发器503;其中上述处理器501、上述存储器502和上述收发器503以可通信方式连接;The embodiment of the present application also provides a cloud service quality monitoring device. The cloud service quality monitoring device may be a hardware entity in a cloud server, or a monitoring device outside the cloud server as shown in FIG. 1, as shown in FIG. 5. Shown, including: a processor 501, a memory 502, and a transceiver 503; wherein the processor 501, the memory 502, and the transceiver 503 are connected in a communicative manner;
存储器502包括但不限于是随机存储记忆体(random access memory,RAM)、只读存储器(read-only memory,ROM)、可擦除可编程只读存储器(erasable programmable read only memory,EPROM)、或便携式只读存储器(compact disc read-only memory,CD-ROM),该存储器502用于相关指令及数据。收发器503用于接收和发送数据。The memory 502 includes but is not limited to random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or Portable read-only memory (compact disc read-only memory, CD-ROM), the memory 502 is used for related instructions and data. The transceiver 503 is used to receive and send data.
处理器501可以是一个或多个中央处理器(central processing unit,CPU),在处理器501是一个CPU的情况下,该CPU可以是单核CPU,也可以是多核CPU。The processor 501 may be one or more central processing units (CPU). In the case where the processor 501 is a CPU, the CPU may be a single-core CPU or a multi-core CPU.
在上述存储器502中存储有程序代码;Program codes are stored in the aforementioned memory 502;
上述处理器501用于读取上述程序代码与上述收发器503配合实现本申请实施例提供的任意一项方法中的信息交互功能。The above-mentioned processor 501 is configured to read the above-mentioned program code and cooperate with the above-mentioned transceiver 503 to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
在本实施例中的收发器503可以是包含射频模块、有线通信模块在内的任何可用于设备间通信的器件;若该云服务质量监控装置可以是云服务器内的硬件实体,那么该收发器503与服务器的通信还可以是包含总线在内的任何可用于设备内通信的器件。The transceiver 503 in this embodiment can be any device that can be used for communication between devices, including radio frequency modules and wired communication modules; if the cloud service quality monitoring device can be a hardware entity in a cloud server, then the transceiver The communication between the 503 and the server can also be any device including a bus that can be used for intra-device communication.
本申请实施例还提供了一种计算机非易失性可读存储介质,上述计算机非易失性可读存储介质中存储有程序代码,上述程序代码包括程序指令,上述程序指令当被处理器执行时使上述处理器与收发器配合实现本申请实施例提供的任意一项方法中的信息交互功能。The embodiment of the present application also provides a computer non-volatile readable storage medium. The above-mentioned computer non-volatile readable storage medium stores program code, the above-mentioned program code includes program instructions, and the above-mentioned program instructions are executed by a processor. When the above-mentioned processor and the transceiver cooperate to realize the information interaction function in any one of the methods provided in the embodiments of the present application.
本申请实施例还提供了一种计算机程序产品,在上述计算机程序产品中包含程序代码,上述程序代码包括程序指令,上述程序指令当被处理器执行时使上述处理器与收发器配合实现本申请实施例提供的任意一项方法中的信息交互功能。The embodiment of the present application also provides a computer program product. The computer program product includes program code. The program code includes program instructions. When the program instructions are executed by a processor, the processor and the transceiver cooperate to realize the application. The information interaction function in any one of the methods provided in the embodiment.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机非易失性可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。A person of ordinary skill in the art can understand that all or part of the process in the above-mentioned embodiment method can be realized. The process can be completed by a computer program instructing relevant hardware. The program can be stored in a computer nonvolatile readable storage medium. When the program is executed, it may include the processes of the foregoing method embodiments. The aforementioned storage media include: ROM or random storage RAM, magnetic disks or optical discs and other media that can store program codes.

Claims (20)

  1. 一种云服务质量监控方法,其特征在于,包括:A cloud service quality monitoring method, which is characterized in that it includes:
    接收来自客户端发往服务器中的云主机的网络测试包,将所述网络测试包发往所述云主机;Receiving a network test package sent from the client to the cloud host in the server, and sending the network test package to the cloud host;
    接收所述云主机返回的所述网络测试包的结果数据,将所述结果数据发往所述客户端;Receiving the result data of the network test packet returned by the cloud host, and sending the result data to the client;
    若存在所述客户端以及所述客户端之外的其他客户端发往所述服务器的网络测试包,则拦截所述客户端以及所述客户端之外的其他客户端发往所述云主机的网络测试包;统计发往所述云主机的网络测试包得到统计结果,在所述统计结果属于所述云主机被集中探测的预定规则的情况下,对所述服务器进行探测得到探测结果,向所述客户端发送所述探测结果。If there is a network test packet sent by the client and other clients than the client to the server, intercept the client and other clients other than the client and send to the cloud host The network test package; the network test package sent to the cloud host is counted to obtain a statistical result, and if the statistical result belongs to a predetermined rule that the cloud host is centrally detected, the server is detected to obtain the detection result, Sending the detection result to the client.
  2. 根据权利要求1所述方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    在将所述网络测试包发往所述云主机之前,缓存所述网络测试包;Before sending the network test package to the cloud host, buffer the network test package;
    所述统计发往所述云主机的网络测试包得到统计结果包括:The statistical result obtained by counting the network test packets sent to the cloud host includes:
    统计缓存的发往所述云主机的网络测试包的数量,或者,统计缓存的发往所述云主机的网络测试包的源客户端数量;Count the number of cached network test packets sent to the cloud host, or count the number of source clients of the cached network test packets sent to the cloud host;
    所述统计结果属于所述云主机被集中探测的预定规则的情况包括:The cases where the statistical result belongs to the predetermined rule that the cloud host is centrally detected include:
    所述缓存的发往所述云主机的网络测试包的数量大于第一阈值,或者,缓存的发往所述云主机的网络测试包的源客户端数量的数量大于第二阈值。The number of cached network test packets sent to the cloud host is greater than a first threshold, or the number of source clients of the cached network test packets sent to the cloud host is greater than a second threshold.
  3. 根据权利要求2所述方法,其特征在于,所述缓存所述网络测试包包括:The method according to claim 2, wherein said caching said network test packet comprises:
    将所有接收到的网络测试包缓存到同一接收队列中,或者,为所述云主机创建接收队列,将所述网络测试包缓存到与所述云主机对应的接收队列中。Buffer all received network test packets in the same receiving queue, or create a receiving queue for the cloud host, and buffer the network test packets in a receiving queue corresponding to the cloud host.
  4. 根据权利要求3所述方法,其特征在于,所述统计缓存的发往所述云主机的网络测试包的数量,或者,统计缓存的发往所述云主机的网络测试包的源客户端数量;包括:The method according to claim 3, wherein the statistically cached number of network test packets sent to the cloud host, or the statistically cached number of source clients of the network test packets sent to the cloud host ;include:
    在所述接收队列溢出时,删除所述接收队列中接收时间与当前时刻的时间差超过第三阈值的网络测试包;When the receiving queue overflows, delete the network test packet in the receiving queue whose time difference between the receiving time and the current moment exceeds a third threshold;
    统计所述接收队列中的发往所述云主机的网络测试包的数量,或者,统计所述云主机对应的接收队列中缓存的网络测试包的源客户端数量。Count the number of network test packets sent to the cloud host in the receiving queue, or count the number of source clients of the network test packets buffered in the receiving queue corresponding to the cloud host.
  5. 根据权利要求3所述方法,其特征在于,所述方法还包括:The method according to claim 3, wherein the method further comprises:
    计算所述接收队列中的网络测试包的缓存时间△t,在所述探测结果中添加述接收队列中的网络测试包的缓存时间△t,所述△t用于在所述客户端计算网络延迟时扣除所述缓存时间△t;Calculate the buffer time Δt of the network test packet in the receiving queue, add the buffer time Δt of the network test packet in the receiving queue to the detection result, and the Δt is used to calculate the network at the client The buffer time Δt is deducted when delaying;
    或者,在所述探测结果的计时中扣除所述第二网络测试包的缓存时间△t。Alternatively, the buffering time Δt of the second network test packet is deducted from the timing of the detection result.
  6. 根据权利要求1所述方法,其特征在于,所述方法还包括:The method according to claim 1, wherein the method further comprises:
    若接收到发往所述服务器的网络测试包,则删除所述发往所述服务器的网络测试包。If the network test packet sent to the server is received, the network test packet sent to the server is deleted.
  7. 根据权利要求1至6任意一项所述方法,其特征在于,所述对所述服务器进行探测得到探测结果,向所述客户端发送所述探测结果包括:The method according to any one of claims 1 to 6, wherein the detecting the server to obtain a detection result, and sending the detection result to the client comprises:
    将发往所述云主机的网络测试包的目的地址修改为所述服务器,向所述服务器发送修改目的地址后的网络测试包,接收所述服务器返回的探测结果;将所述探测结果发往所述客户端。Modify the destination address of the network test packet sent to the cloud host to the server, send the network test packet with the modified destination address to the server, receive the detection result returned by the server; send the detection result to The client.
  8. 根据权利要求7所述方法,其特征在于,所述方法还包括:The method according to claim 7, wherein the method further comprises:
    获取目标客户端,所述目标客户端包含向所述云主机最近一次发送网络测试包的时刻在与当前时刻距离小于第四阈值的客户端;或者,所述目标客户端包括在与当前时刻距离预定时段内向所述云主机发送网络测试包的个数超过第五阈值的客户端Acquire the target client, the target client includes the client whose distance from the current time is less than the fourth threshold at the time when the network test packet was sent to the cloud host last time; or, the target client includes the client at the distance from the current time Clients whose number of network test packets sent to the cloud host within a predetermined time period exceeds the fifth threshold
    向所述目标客户端发送所述探测结果。Sending the detection result to the target client.
  9. 根据权利要求1所述方法,其特征在于,The method of claim 1, wherein:
    所述向所述客户端发送所述探测结果包括:将所述探测结果写入所述结果数据,标注探测对象为所述服务器;The sending the detection result to the client includes: writing the detection result into the result data, and marking the detection object as the server;
    所述将所述结果数据发往所述客户端包括:将添加了所述探测结果的结果数据发往所述客户端。The sending the result data to the client includes: sending the result data with the detection result added to the client.
  10. 一种云服务质量监控装置,其特征在于,包括:A cloud service quality monitoring device, characterized by comprising:
    第一接收单元,用于接收来自客户端发往服务器中的云主机的网络测试包;The first receiving unit is configured to receive a network test packet sent from the client to the cloud host in the server;
    转发单元,用于将所述网络测试包发往所述云主机;A forwarding unit, configured to send the network test packet to the cloud host;
    第二接收单元,用于接收所述云主机返回的所述网络测试包的结果数据;The second receiving unit is configured to receive the result data of the network test packet returned by the cloud host;
    发送单元,用于将所述结果数据发往所述客户端;A sending unit, configured to send the result data to the client;
    统计单元,用于在存在所述客户端以及所述客户端之外的其他客户端发往所述服务器的网络测试包,所述客户端以及所述客户端之外的其他客户端发往所述云主机的网络测试包被拦截的情况下,统计发往所述云主机的网络测试包得到统计结果;The statistical unit is used for network test packets sent to the server by the client and other clients other than the client, and the client and other clients other than the client are sent to all In the case that the network test packet of the cloud host is intercepted, the network test packet sent to the cloud host is counted to obtain the statistical result;
    探测单元,用于在所述统计结果属于所述云主机被集中探测的预定规则的情况下,对所述服务器进行探测得到探测结果;A detection unit, configured to detect the server to obtain a detection result when the statistical result belongs to a predetermined rule that the cloud host is centrally detected;
    所述发送单元,还用于向所述客户端发送所述探测结果。The sending unit is further configured to send the detection result to the client.
  11. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    存储单元,用于在将所述网络测试包发往所述云主机之前,缓存所述网络测试包;A storage unit, configured to buffer the network test package before sending the network test package to the cloud host;
    所述统计单元,用于统计缓存的发往所述云主机的网络测试包的数量,或者,统计缓存的发往所述云主机的网络测试包的源客户端数量;The statistics unit is configured to count the number of cached network test packets sent to the cloud host, or count the number of source clients of the cached network test packets sent to the cloud host;
    所述探测单元,用于在所述缓存的发往所述云主机的网络测试包的数量大于第一阈值的情况下,或者,缓存的发往所述云主机的网络测试包的源客户端数量的数量大于第二阈值的情况下,对所述服务器进行探测得到探测结果。The detection unit is configured to: when the number of cached network test packets sent to the cloud host is greater than a first threshold, or the source client of the cached network test packets sent to the cloud host In the case where the quantity is greater than the second threshold, the server is detected to obtain a detection result.
  12. 根据权利要求11所述的装置,其特征在于,The device according to claim 11, wherein:
    所述存储单元,具体用于将所有接收到的网络测试包缓存到同一接收队列中,或者,为云主机创建接收队列,将所述网络测试包缓存到与所述云主机对应的接收队列中。The storage unit is specifically configured to buffer all received network test packets in the same receiving queue, or create a receiving queue for the cloud host, and buffer the network test packets in the receiving queue corresponding to the cloud host .
  13. 根据权利要求12所述的装置,其特征在于,The device of claim 12, wherein:
    所述统计单元,具体用于在所述接收队列溢出时,删除所述接收队列中接收时间与当前时刻的时间差超过第三阈值的网络测试包;统计所述接收队列中的发往所述云主机的网络测试包的数量,或者,统计所述云主机对应的接收队列中缓存的网络测试包的源客户端 数量。The statistical unit is specifically configured to delete the network test packets in the receiving queue whose time difference between the receiving time and the current moment exceeds a third threshold when the receiving queue overflows; and to count the network test packets in the receiving queue that are sent to the cloud The number of network test packets of the host, or the number of source clients of the network test packets buffered in the receiving queue corresponding to the cloud host.
  14. 根据权利要求12所述的装置,其特征在于,所述装置还包括:The device according to claim 12, wherein the device further comprises:
    用于计算所述接收队列中的网络测试包的缓存时间△t,在所述探测结果中添加述接收队列中的网络测试包的缓存时间△t的单元,所述△t用于在所述客户端计算网络延迟时扣除所述缓存时间△t;或者,用于在所述探测结果的计时中扣除所述第二网络测试包的缓存时间△t的单元。It is used to calculate the buffer time Δt of the network test packet in the receiving queue, and the unit of the buffer time Δt of the network test packet in the receiving queue is added to the detection result, and the Δt is used in the When the client calculates the network delay, the cache time Δt is deducted; or, a unit used to deduct the cache time Δt of the second network test packet from the timing of the detection result.
  15. 根据权利要求10所述的装置,其特征在于,所述装置还包括:The device according to claim 10, wherein the device further comprises:
    包删除单元,用于若接收到发往所述服务器的网络测试包,则删除所述发往所述服务器的网络测试包。The packet deletion unit is configured to delete the network test packet sent to the server if the network test packet sent to the server is received.
  16. 根据权利要求10至15任意一项所述的装置,其特征在于,The device according to any one of claims 10 to 15, characterized in that:
    所述探测单元,具体用于将发往所述云主机的网络测试包的目的地址修改为所述服务器,向所述服务器发送修改目的地址后的网络测试包,接收所述服务器返回的探测结果;The detection unit is specifically configured to modify the destination address of the network test packet sent to the cloud host to the server, send the network test packet with the modified destination address to the server, and receive the detection result returned by the server ;
    所述发送单元,具体用于将所述探测结果发往所述客户端。The sending unit is specifically configured to send the detection result to the client.
  17. 根据权利要求16所述的装置,其特征在于,所述装置还包括:The device according to claim 16, wherein the device further comprises:
    客户端获取单元,用于获取目标客户端,所述目标客户端包含向所述云主机最近一次发送网络测试包的时刻在与当前时刻距离小于第四阈值的客户端;或者,所述目标客户端包括在与当前时刻距离预定时段内向所述云主机发送网络测试包的个数超过第五阈值的客户端The client acquisition unit is configured to acquire a target client, the target client including the client whose distance from the current time is less than a fourth threshold at the time when the network test packet was last sent to the cloud host; or, the target client The client includes a client whose number of network test packets sent to the cloud host within a predetermined period of time from the current time exceeds the fifth threshold
    所述发送单元,还用于向所述目标客户端发送所述探测结果。The sending unit is further configured to send the detection result to the target client.
  18. 根据权利要求10所述方法,其特征在于,The method of claim 10, wherein:
    所述发送单元,具体用于将所述探测结果写入所述结果数据,标注探测对象为所述服务器;The sending unit is specifically configured to write the detection result into the result data, and mark the detection object as the server;
    所述发送单元,还用于将添加了所述探测结果的结果数据发往所述客户端。The sending unit is further configured to send the result data with the detection result added to the client.
  19. 一种云服务质量监控装置,包括:处理器、存储器和收发器;其中所述处理器、所述存储器和所述收发器以可通信方式连接;A cloud service quality monitoring device, comprising: a processor, a memory, and a transceiver; wherein the processor, the memory, and the transceiver are connected in a communicative manner;
    在所述存储器中存储有程序代码;Program code is stored in the memory;
    所述处理器用于读取所述程序代码与所述收发器配合实现权利要求1至9任意一项方法中的信息交互功能。The processor is configured to read the program code and cooperate with the transceiver to realize the information interaction function in any one of the methods of claims 1-9.
  20. 一种计算机非易失性可读存储介质,所述计算机非易失性可读存储介质中存储有程序代码,所述程序代码包括程序指令,所述程序指令当被处理器执行时使所述处理器与收发器配合实现权利要求1至9任意一项方法中的信息交互功能。A computer non-volatile readable storage medium, the computer non-volatile readable storage medium stores program code, the program code includes program instructions, the program instructions, when executed by a processor, cause the The processor cooperates with the transceiver to realize the information interaction function in any one of the methods of claims 1-9.
PCT/CN2019/117007 2019-09-26 2019-11-11 Cloud service quality monitoring method, and related product WO2021056716A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201910915045.4A CN110784337B (en) 2019-09-26 2019-09-26 Cloud service quality monitoring method and related products
CN201910915045.4 2019-09-26

Publications (1)

Publication Number Publication Date
WO2021056716A1 true WO2021056716A1 (en) 2021-04-01

Family

ID=69384506

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/117007 WO2021056716A1 (en) 2019-09-26 2019-11-11 Cloud service quality monitoring method, and related product

Country Status (2)

Country Link
CN (1) CN110784337B (en)
WO (1) WO2021056716A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111541583B (en) * 2020-04-20 2022-01-04 杭州迪普信息技术有限公司 System, method and device for testing fragment message cache
CN114553867A (en) * 2022-01-21 2022-05-27 北京云思智学科技有限公司 Cloud-native cross-cloud network monitoring method and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437030A (en) * 2008-11-29 2009-05-20 成都市华为赛门铁克科技有限公司 Method for preventing server from being attacked, detection device and monitoring device
CN108777640A (en) * 2018-06-04 2018-11-09 腾讯科技(深圳)有限公司 A kind of server detection method, device, system and storage medium
US20190245746A1 (en) * 2017-05-03 2019-08-08 International Business Machines Corporation Filesystem share auto-detect

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5317010B2 (en) * 2006-11-24 2013-10-16 日本電気株式会社 Virtual machine placement system, virtual machine placement method, program, virtual machine management device, and server device
TW201413467A (en) * 2012-09-28 2014-04-01 Delta Electronics Inc System for managing and monitoring cloud hosts, and method for managing and monitoring cloud hosts used by the system
CN104657250B (en) * 2014-12-16 2018-07-06 无锡华云数据技术服务有限公司 A kind of monitoring system and its monitoring method that performance monitoring is carried out to cloud host
CN105955798A (en) * 2016-04-29 2016-09-21 北京奇虎科技有限公司 Method, device and system for detecting abnormal state of virtual machine in cloud platform
CN108512673B (en) * 2017-02-24 2021-08-03 腾讯科技(深圳)有限公司 Cloud service quality monitoring method and device and server
CN109802985B (en) * 2017-11-17 2021-01-29 北京金山云网络技术有限公司 Data transmission method, device, equipment and readable storage medium
CN108958884B (en) * 2018-06-22 2022-02-18 郑州云海信息技术有限公司 Virtual machine management method and related device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101437030A (en) * 2008-11-29 2009-05-20 成都市华为赛门铁克科技有限公司 Method for preventing server from being attacked, detection device and monitoring device
US20190245746A1 (en) * 2017-05-03 2019-08-08 International Business Machines Corporation Filesystem share auto-detect
CN108777640A (en) * 2018-06-04 2018-11-09 腾讯科技(深圳)有限公司 A kind of server detection method, device, system and storage medium

Also Published As

Publication number Publication date
CN110784337A (en) 2020-02-11
CN110784337B (en) 2023-08-22

Similar Documents

Publication Publication Date Title
US11411825B2 (en) In intelligent autoscale of services
US11902096B2 (en) Collection of error packet information for network policy enforcement
Dou et al. A confidence-based filtering method for DDoS attack defense in cloud environment
US11924168B2 (en) Firewall rules intelligence
US9426072B2 (en) Traffic flow classification
Sun et al. Identifying performance bottlenecks in CDNs through TCP-level monitoring
US8745204B2 (en) Minimizing latency in live virtual server migration
WO2021088484A1 (en) Network delay detection method and related device
US10097464B1 (en) Sampling based on large flow detection for network visibility monitoring
US10135708B2 (en) Technologies for performance inspection at an endpoint node
CN111181798B (en) Network delay measuring method, device, electronic equipment and storage medium
CN108259425A (en) The determining method, apparatus and server of query-attack
WO2021056716A1 (en) Cloud service quality monitoring method, and related product
CN112995046B (en) Content distribution network traffic management method and device
CN113472900A (en) Message processing method, device, storage medium and computer program product
WO2019137208A1 (en) Underlying data monitoring method, medium, device and apparatus
WO2021056715A1 (en) Server proxy monitoring method and related product
US9935886B2 (en) Packet extracting apparatus and method
TWI748989B (en) Data aggregation method and device
CN111526064A (en) Data stream processing method and device, electronic equipment and storage medium
CN111865716B (en) Port congestion detection method, device, equipment and machine-readable storage medium
CN107438268B (en) Method and device for accelerating wireless network for mobile device
Tekeoglu et al. Approximating the number of active nodes behind a NAT device
CN114070633A (en) Address scanning behavior detection method and device
CN112333061A (en) Shared internet access detection method and device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 19947128

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 19947128

Country of ref document: EP

Kind code of ref document: A1