A service monitoring method and device, electronic equipment and storage medium
Patent Information
- Application Number
- CN202310363301.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-30
- Publication Date
- 2026-10-09
- Estimated Expiration
- 2043-03-30
AI Technical Summary
[0003]在无线网络中,尤其是接入控制器(Access Controller,AC)与接入点(AP)之间,一旦某项业务的流量数据在短时间内出现暴增,很容易导致AC因无法及时处理这些暴增的流量数据,而影响处理其他业务的流量数据,进而影响整个无线网络的稳定性,大大降低了用户体验
[0020] In this embodiment of the application, for the services running on each AP in the wireless network, the monitoring device monitors the traffic data of these services, and through a series of evaluations such as the corresponding service status, traffic alarm level, and number of traffic alarms, it can promptly apply the corresponding backpressure strategy to handle the surge in services, so as to reduce the impact on the traffic data of other services, thereby improving the stability of the entire wireless network and improving the user experience.
Smart Images

Figure CN116390153B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a service monitoring method, apparatus, electronic device, and storage medium. Background Technology
[0002] With the widespread application of wireless technology, the scale of wireless device networks is increasing day by day. At the same time, in order to provide users with a better Internet experience and meet more value-added needs that keep pace with the times, more and more new services have been launched on the wireless device side. Many of these services are achieved through the interaction and collaboration of different wireless devices in the wireless network. As a result, the traffic data of various services relying on this network is also increasing.
[0003] In wireless networks, especially between the Access Controller (AC) and Access Points (APs), if the traffic data of a certain service suddenly surges in a short period of time, the AC may be unable to process this surge of traffic data in time, which will affect the processing of traffic data of other services, thereby affecting the stability of the entire wireless network and greatly reducing the user experience. Summary of the Invention
[0004] To overcome the problems existing in related technologies, this application provides a business monitoring method, apparatus, electronic device, and storage medium.
[0005] According to a first aspect of the embodiments of this application, a service monitoring method is provided, the method being applied to a monitoring device, the method comprising:
[0006] Obtain the target traffic data of each service running on each AP in the current round;
[0007] For each service, if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, then based on the previously recorded traffic alarm level and the current traffic alarm level, update the locally recorded traffic alarm level and its corresponding number of traffic alarms, and record the current round of the traffic alarm level.
[0008] If the updated traffic alarm count contains a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is non-backpressure state, then obtain the backpressure policy corresponding to the traffic alarm level, perform backpressure processing on the service according to the obtained backpressure policy, clear the updated traffic alarm count, and change the service status from non-backpressure state to backpressure state.
[0009] Initially, the traffic alarm level recorded last time is empty, and the service status is non-backpressure state.
[0010] The higher the traffic alarm level, the higher the corresponding data volume threshold and the lower the number of traffic alarms. Furthermore, different traffic alarm levels correspond to different data volume thresholds and different numbers of traffic alarms.
[0011] According to a second aspect of the embodiments of this application, a business monitoring device is provided, the device being applied to a monitoring equipment, the device comprising:
[0012] The acquisition module is used to acquire the target traffic data of each service running on each AP in the current round;
[0013] The update module is used to update the locally recorded traffic alarm level and its corresponding number of traffic alarms for each service if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels. The update module also records the traffic alarm level for the current round.
[0014] The first backpressure module is used to obtain the backpressure strategy corresponding to the traffic alarm level if the updated traffic alarm count contains a first traffic alarm count that has reached the traffic alarm count threshold value corresponding to the corresponding traffic alarm level, and the service status of the service is non-backpressure state. According to the obtained backpressure strategy, the service is subjected to backpressure processing, the updated traffic alarm count is cleared, and the service status of the service is changed from non-backpressure state to backpressure state.
[0015] Initially, the traffic alarm level recorded last time is empty, and the service status is non-backpressure state.
[0016] The higher the traffic alarm level, the higher the corresponding data volume threshold and the lower the number of traffic alarms. Furthermore, different traffic alarm levels correspond to different data volume thresholds and different numbers of traffic alarms.
[0017] According to a third aspect of the present application, an electronic device is provided, including a processor and a machine-readable storage medium, the machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being prompted by the machine-executable instructions to implement the method steps of the above-described business monitoring method.
[0018] According to a fourth aspect of the embodiments of this application, a computer-readable storage medium is provided, wherein a computer program is stored therein, and when the computer program is executed by a processor, it implements the method steps of the above-described business monitoring method.
[0019] The technical solutions provided by the embodiments of this application may include the following beneficial effects:
[0020] In this embodiment of the application, for the services running on each AP in the wireless network, the monitoring device monitors the traffic data of these services, and through a series of evaluations such as the corresponding service status, traffic alarm level, and number of traffic alarms, it can promptly apply the corresponding backpressure strategy to handle the surge in services, so as to reduce the impact on the traffic data of other services, thereby improving the stability of the entire wireless network and improving the user experience.
[0021] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and do not limit this application. Attached Figure Description
[0022] The accompanying drawings, which are incorporated in and form part of this application, illustrate embodiments consistent with this application and, together with the description, serve to explain the principles of this application.
[0023] Figure 1 A flowchart illustrating a business monitoring method provided in an embodiment of this application;
[0024] Figure 2 This is a schematic diagram of the structure of a business monitoring device provided in an embodiment of this application;
[0025] Figure 3 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation
[0026] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numbers in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this application. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this application as detailed in the appended claims.
[0027] The terminology used in this application is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. The singular forms “a,” “the,” and “the” used in this application and the appended claims are also intended to include the plural forms unless the context clearly indicates otherwise. It should also be understood that the term “and / or” as used herein refers to and includes any or all possible combinations of one or more of the associated listed items.
[0028] It should be understood that although the terms first, second, third, etc., may be used in this application to describe various information, such information should not be limited to these terms. These terms are only used to distinguish information of the same type from one another. For example, without departing from the scope of this application, first information may also be referred to as second information, and similarly, second information may also be referred to as first information. Depending on the context, the words “if” or “suppose” as used herein may be interpreted as “when…” or “when…”.
[0029] The embodiments of this application will now be described in detail.
[0030] This application provides a service monitoring method, which is applied to a monitoring device, which can be a cloud platform or an AC (Access Controller), such as... Figure 1 As shown, the method may include the following steps:
[0031] S11. Obtain the target traffic data of each service running on each AP in the current round.
[0032] S12. For each service, if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, then based on the traffic alarm level recorded last time and the current traffic alarm level, update the locally recorded traffic alarm level and its corresponding number of traffic alarms, and record the current round of the traffic alarm level.
[0033] In this step, initially, the previously recorded traffic alarm level is empty, and the service status is non-backpressure state.
[0034] The higher the traffic alarm level, the higher the corresponding data volume threshold and the lower the number of traffic alarms. Furthermore, different traffic alarm levels correspond to different data volume thresholds and different numbers of traffic alarms.
[0035] S13. If the updated traffic alarm count contains a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is non-backpressure state, then obtain the backpressure policy corresponding to the traffic alarm level, perform backpressure processing on the service according to the obtained backpressure policy, clear the updated traffic alarm count, and change the service status from non-backpressure state to backpressure state.
[0036] It should be noted that, in this embodiment of the application, the multiple traffic alarm levels, the data volume thresholds corresponding to the multiple traffic alarm levels, the number of traffic alarms corresponding to the multiple traffic alarm levels, and the backpressure strategies corresponding to the multiple traffic alarm levels can all be pre-set and configured on the monitoring device by the administrator based on network experience.
[0037] In one example, multiple traffic alarm levels may include a first traffic alarm level, a second traffic alarm level, a third traffic alarm level, and a fourth traffic alarm level. The first traffic alarm level is higher than the second traffic alarm level, the second traffic alarm level is higher than the third traffic alarm level, and the third traffic alarm level is higher than the fourth traffic alarm level.
[0038] For example, the data volume threshold for the first traffic alarm level is 1000 records, and the corresponding number of traffic alarms is 1.
[0039] The data volume threshold for the second traffic alarm level is 500 records, and the corresponding number of traffic alarms is 3.
[0040] The data volume threshold for the third traffic alarm level is 300 records, and the corresponding number of traffic alarms is 5.
[0041] The data volume threshold for the fourth traffic alarm level is 100 records, and the corresponding number of traffic alarms is 10.
[0042] In this situation, when the traffic alarm level in step S13 above is the first traffic alarm level, the monitoring device can perform backpressure processing on the service in the following way:
[0043] Notify the first set number of APs running this service to shut down the service.
[0044] When the traffic alarm level in step S13 above is the second traffic alarm level, the monitoring device can perform backpressure processing on the service in the following way:
[0045] Discard the traffic data for this service sent by a second set number of APs out of all APs running this service.
[0046] When the traffic alarm level in step S13 above is the third traffic alarm level, the monitoring device can perform backpressure processing on the service in the following ways:
[0047] The notification instructs all APs running the service to send the traffic data of the service at a specified sending interval. The specified sending interval is greater than the original sending interval of any AP running the service. For example, the specified sending interval may be a multiple of the original sending interval.
[0048] When the traffic alarm level in step S13 above is the fourth traffic alarm level, the monitoring device can perform backpressure processing on the service in the following ways:
[0049] A hash reporting request is sent to all APs running the service, so that each AP, after receiving the hash reporting request, randomly generates a delay duration and reports the traffic data of each service on the AP after the current sending interval is reached, with a delay duration.
[0050] Here, the first and second preset quantities can be the same or different. Both can be preset and configured by the administrator on the monitoring device.
[0051] In addition, the first set number of APs or the second set number of APs can be randomly selected by the monitoring device, or they can be selected by the monitoring device according to the pre-set selection rules. For example, the selection rules can be to select the first set number of APs or the second set number of APs whose load exceeds a set threshold, etc.
[0052] Of course, in the embodiments of this application, any traffic alarm level can correspond to one or more backpressure policies. In the case where the traffic alarm level corresponds to multiple backpressure policies, when the monitoring device obtains the backpressure policy corresponding to the traffic alarm level, it can decide which backpressure policy corresponding to the traffic alarm level to obtain according to the pre-set acquisition rules, so as to subsequently execute the backpressure operation corresponding to the obtained backpressure policy.
[0053] For example, the aforementioned second traffic alarm level can correspond to three backpressure strategies: discarding traffic data sent by 20% of all APs running the service, discarding traffic data sent by 50% of all APs running the service, and discarding traffic data sent by all APs running the service; the corresponding pre-set acquisition rules can be based on a polling method, etc.
[0054] Specifically, in step S12 above, the monitoring device can obtain the target traffic data of the corresponding service from the traffic data of each service running on each AP reported by each AP. Here, the target traffic data of any service running on any AP can be the unread traffic data of that service in the traffic data received by the monitoring device on that AP.
[0055] Specifically, in step S12 above, the monitoring device can update the locally recorded traffic alarm level and its corresponding number of traffic alarms in the following ways:
[0056] If the traffic alarm level is the same as the previously recorded traffic alarm level or the traffic alarm level is higher than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to the locally recorded traffic alarm level will be incremented by 1.
[0057] If the current traffic alarm level is lower than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to other traffic alarm levels that are higher than the current traffic alarm level recorded locally will be added to the current traffic alarm level. The accumulated number of traffic alarms will be added once more, and other traffic alarm levels and their corresponding number of traffic alarms will be cleared.
[0058] Taking multiple traffic alarm levels, including the first, second, third, and fourth traffic alarm levels mentioned above, as an example, assuming the monitoring device locally records the third and fourth traffic alarm levels, as well as the corresponding number of traffic alarms, and assuming the previously recorded traffic alarm level was the fourth traffic alarm level, meaning the current traffic alarm level is the same as the previously recorded traffic alarm level, then in this case, the monitoring device will increment the number of traffic alarms corresponding to the locally recorded fourth traffic alarm level by 1.
[0059] Assume the monitoring device locally records a second, third, and fourth traffic alarm level, as well as the corresponding number of traffic alarms for each level. If the previously recorded traffic alarm level was the third level and this alarm level is the fourth level (meaning the current alarm level is lower than the third level), then in this case, the monitoring device will add the number of traffic alarms corresponding to the second and third levels to the fourth level. After adding the number of traffic alarms, it will add one more to the total number of traffic alarms and then clear the second and third levels, as well as the corresponding number of traffic alarms.
[0060] Furthermore, in this embodiment of the application, the monitoring device may also perform the following operations:
[0061] After acquiring the traffic data for each service, if the traffic data volume of that service does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is non-backpressure state, then no operation is performed.
[0062] If the data volume of the service traffic data does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is back pressure state, then if the number of back pressure recovery times for the service is not recorded locally, the number of back pressure recovery times for the service is recorded as 1 time; or, if the number of back pressure recovery times for the service is recorded locally, the number of back pressure recovery times for the service recorded locally is incremented by 1 time.
[0063] If the number of backpressure recovery attempts recorded for this service is different from the traffic alarm count thresholds corresponding to multiple traffic alarm levels, then the service will continue to be backpressure processed according to the currently used backpressure strategy.
[0064] If the number of backpressure recovery attempts recorded for this service is the same as the threshold value for the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among multiple traffic alarm levels, and no traffic alarm attempts corresponding to that other traffic alarm level are recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy;
[0065] If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms for any other traffic alarm level (excluding the lowest traffic alarm level) among multiple traffic alarm levels, the number of traffic alarms for that other traffic alarm level is not recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then backpressure processing will be performed on this service according to the current backpressure strategy.
[0066] If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value for the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among multiple traffic alarm levels, the local record contains the number of traffic alarms corresponding to that other traffic alarm level, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then clear the number of traffic alarms corresponding to that other traffic alarm level and the current recorded number of backpressure recovery attempts for this service, obtain the backpressure strategy corresponding to a traffic alarm level one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on this service according to the obtained backpressure strategy;
[0067] If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value for the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among multiple traffic alarm levels, the local record contains the number of traffic alarms corresponding to that other traffic alarm level, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then clear the number of traffic alarms corresponding to that other traffic alarm level, and perform backpressure processing on the service according to the current backpressure strategy.
[0068] If the currently recorded number of backpressure recovery attempts for this service is the same as the traffic alarm count threshold corresponding to the lowest traffic alarm level among multiple traffic alarm levels, then if no traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the currently recorded number of backpressure recovery attempts for this service will be cleared, backpressure processing for this service will be stopped, and the service status of this service will be changed from backpressure state to non-backpressure state; or, if a traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the traffic alarm count corresponding to the lowest traffic alarm level and the currently recorded number of backpressure recovery attempts for this service will be cleared, backpressure processing for this service will be stopped, and the service status of this service will be changed from backpressure state to non-backpressure state.
[0069] It should be noted that the above operation procedure describes how the monitoring device monitors the service based on its service status, the traffic alarm level corresponding to the current backpressure strategy, and the number of backpressure recovery attempts when the data volume of the service traffic data does not reach the data volume threshold corresponding to any of the multiple traffic alarm levels.
[0070] In this operation process, if the data volume of the service traffic data does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is in the backpressure state, and the monitoring device does not record the number of backpressure recovery times for the service, it means that the current round is the first time that the data volume of the service traffic data has not reached the data volume threshold value corresponding to any of the multiple traffic alarm levels after the monitoring device has performed backpressure processing on the service. In this case, the monitoring device will record the number of backpressure recovery times for the service as 1, so that the subsequent monitoring device can decide whether to stop performing backpressure processing on the service based on the number of backpressure recovery times for the service.
[0071] If the monitoring device records the number of backpressure recovery attempts for this service, it means that in the previous N consecutive rounds (where N is the same as the number of backpressure recovery attempts recorded locally), there has been a situation where the data volume of the service traffic did not reach the data volume threshold corresponding to any of the multiple traffic alarm levels after backpressure processing. The monitoring device has recorded the number of backpressure recovery attempts for this service. In this case, the monitoring device can simply increment the number of backpressure recovery attempts for this service recorded locally by 1.
[0072] Furthermore, in this operational process, if the number of backpressure recovery attempts recorded for the current service is the same as the traffic alarm count threshold for any other traffic alarm level (excluding the lowest traffic alarm level) among multiple traffic alarm levels, and the traffic alarm level corresponding to the currently used backpressure strategy is the same as that other traffic alarm level, it indicates that the surge in traffic data for the service has been suppressed to a certain extent, achieving a certain backpressure effect. At this time, regardless of whether the monitoring device records the number of traffic alarms corresponding to that other traffic alarm level, the monitoring device will obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the currently used backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy to minimize the impact on the service.
[0073] If the number of backpressure recovery attempts recorded for this service is the same as the threshold value for the number of traffic alarms corresponding to the lowest traffic alarm level among multiple traffic alarm levels, it means that the surge in traffic data for this service has been suppressed and the backpressure effect is significant. At this time, regardless of whether the number of traffic alarms corresponding to the lowest traffic alarm level is recorded locally, the monitoring device will stop backpressure processing for this service and change the service status from backpressure state to non-backpressure state, that is, process the traffic data of this service normally.
[0074] Furthermore, in this embodiment of the application, the monitoring device may also perform the following operations:
[0075] After updating the locally recorded traffic alarm levels and their corresponding traffic alarm counts, if the updated traffic alarm counts include a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is in backpressure mode, then if the traffic alarm level corresponding to the first traffic alarm count is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is the backpressure strategy corresponding to the highest traffic alarm level among multiple traffic alarm levels, then the service will continue to be processed under backpressure according to the currently used backpressure strategy; or...
[0076] If the traffic alarm level corresponding to the first traffic alarm is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is not the backpressure strategy corresponding to the highest traffic alarm level among multiple traffic alarm levels, then obtain the backpressure strategy corresponding to a traffic alarm level one traffic alarm level higher than the currently used backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy; or,
[0077] When the traffic alarm level corresponding to the first traffic alarm count is different from the traffic alarm level recorded previously, the anti-pressure policy corresponding to the traffic alarm level corresponding to the first traffic alarm count is obtained, and the service is subjected to anti-pressure processing according to the obtained anti-pressure policy.
[0078] It should be noted that the above operation procedure describes how the monitoring device monitors the service based on the traffic alarm level corresponding to the first traffic alarm, the previously recorded traffic alarm level, and the currently used anti-pressure strategy when the data volume of the service traffic data reaches the data volume threshold corresponding to any of the multiple traffic alarm levels, and the service status is in a backpressure state.
[0079] In this operation process, if the traffic alarm level corresponding to the first traffic alarm is the same as the previously recorded traffic alarm level, and the current backpressure strategy is not the backpressure strategy corresponding to the highest traffic alarm level among multiple traffic alarm levels, it indicates that the current backpressure effect is not obvious. At this time, the monitoring device will obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level higher than the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy to suppress the sudden increase in traffic data of the service as soon as possible.
[0080] Once the traffic alarm level corresponding to the first traffic alarm occurrence is different from the previously recorded traffic alarm level, regardless of whether the traffic alarm level corresponding to the first traffic alarm occurrence is higher or lower than the previously recorded traffic alarm level, the monitoring device directly obtains the backpressure policy corresponding to the traffic alarm level corresponding to the first traffic alarm occurrence, and performs backpressure processing on the service according to the obtained backpressure policy.
[0081] In addition, in this embodiment of the application, the monitoring device may also perform the following operations:
[0082] If the target traffic data volume of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the backpressure recovery count of the service has been accumulated in the previous round, then the backpressure recovery count of the service is cleared, and backpressure processing is performed on the service according to the currently used backpressure strategy.
[0083] By executing this procedure, monitoring equipment can more reliably adjust the corresponding back pressure strategy.
[0084] As can be seen from the above technical solutions, for the services running on each AP in the wireless network, the monitoring device monitors the traffic data of these services, and through a series of assessments such as the corresponding service status, traffic alarm level, and number of traffic alarms, it can promptly apply the corresponding backpressure strategy to handle the surge in traffic data, thereby reducing the impact on the traffic data of other services, thus improving the stability of the entire wireless network and enhancing the user experience.
[0085] Based on the same inventive concept, this application also provides a business monitoring device, which is applied to a monitoring equipment, which can be an AC (Access Control Unit) or a cloud platform, and its structural schematic diagram is shown below. Figure 2 As shown, it specifically includes:
[0086] The acquisition module 21 is used to acquire the target traffic data of each service running on each access point AP in the current round;
[0087] The update module 22 is used to update the locally recorded traffic alarm level and its corresponding number of traffic alarms based on the traffic alarm level recorded in the previous record and the traffic alarm level, and record the traffic alarm level of the current round for each service if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any traffic alarm level among multiple traffic alarm levels.
[0088] The first backpressure module 23 is used to obtain the backpressure strategy corresponding to the traffic alarm level if the updated traffic alarm count of the update module 22 contains a first traffic alarm count that has reached the traffic alarm count threshold value corresponding to the corresponding traffic alarm level and the service status of the service is non-backpressure state, and then perform backpressure processing on the service according to the obtained backpressure strategy, clear the updated traffic alarm count, and change the service status of the service from non-backpressure state to backpressure state.
[0089] Initially, the traffic alarm level recorded last time is empty, and the service status is non-backpressure state.
[0090] The higher the traffic alarm level, the higher the corresponding data volume threshold and the lower the number of traffic alarms. Furthermore, different traffic alarm levels correspond to different data volume thresholds and different numbers of traffic alarms.
[0091] Preferably, the update module 22 is specifically used for:
[0092] If the traffic alarm level is the same as the previously recorded traffic alarm level or the traffic alarm level is higher than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to the locally recorded traffic alarm level will be incremented by 1.
[0093] If the current traffic alarm level is lower than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to other traffic alarm levels that are higher than the current traffic alarm level recorded locally will be added to the current traffic alarm level. The accumulated number of traffic alarms will be added once more, and the other traffic alarm levels and their corresponding number of traffic alarms will be cleared.
[0094] Preferably, the device further includes:
[0095] Second reverse pressure module ( Figure 2 (not shown in the image) is used to perform no operation for each service after the acquisition module 21 acquires the traffic data of each service, if the amount of traffic data of the service does not reach the data amount threshold value corresponding to any of the multiple traffic alarm levels and the service status of the service is non-backpressure state.
[0096] If the data volume of the service traffic data does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is back pressure state, then if the number of back pressure recovery times for the service is not recorded locally, the number of back pressure recovery times for the service is recorded as 1 time; or, if the number of back pressure recovery times for the service is recorded locally, the number of back pressure recovery times for the service recorded locally is incremented by 1 time.
[0097] If the number of backpressure recovery attempts recorded for this service is different from the threshold values for the number of traffic alarms corresponding to the multiple traffic alarm levels, then the service will continue to be processed under backpressure according to the currently used backpressure strategy.
[0098] If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level among the multiple traffic alarm levels except the lowest traffic alarm level, and no traffic alarm count corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy;
[0099] If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, no traffic alarm attempts corresponding to that other traffic alarm level are recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then backpressure processing is performed on this service according to the current backpressure strategy.
[0100] If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then clear the number of traffic alarms corresponding to that other traffic alarm level and the current recorded number of backpressure recovery attempts for this service, obtain the backpressure strategy corresponding to a traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy;
[0101] If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then the number of traffic alarms corresponding to that other traffic alarm level is cleared, and backpressure processing is performed on the service according to the current backpressure strategy.
[0102] If the currently recorded number of backpressure recovery attempts for this service is the same as the traffic alarm count threshold corresponding to the lowest traffic alarm level among the multiple traffic alarm levels, then if no traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the currently recorded number of backpressure recovery attempts for this service is cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state; or, if a traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the traffic alarm count corresponding to the lowest traffic alarm level and the currently recorded number of backpressure recovery attempts for this service are cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state.
[0103] Preferably, the device further includes:
[0104] Third back pressure module ( Figure 2 (Not shown in the image), used after the first update module 22 updates the locally recorded traffic alarm levels and their corresponding traffic alarm counts, if the updated traffic alarm counts include a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is in a backpressure state, then if the traffic alarm level corresponding to the first traffic alarm count is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, then the service continues to be backpressure processed according to the currently used backpressure strategy; or,
[0105] When the traffic alarm level corresponding to the first traffic alarm is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is not the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, a backpressure strategy corresponding to a traffic alarm level one traffic alarm level higher than the currently used backpressure strategy is obtained, and backpressure processing is performed on the service according to the obtained backpressure strategy; or,
[0106] When the traffic alarm level corresponding to the first traffic alarm count is different from the traffic alarm level recorded previously, the anti-pressure policy corresponding to the traffic alarm level corresponding to the first traffic alarm count is obtained, and the service is subjected to anti-pressure processing according to the obtained anti-pressure policy.
[0107] Preferably, the device further includes:
[0108] Fourth back pressure module ( Figure 2 (Not shown in the image) is used to clear the backpressure recovery count of a service if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the backpressure recovery count of the service has been accumulated in the previous round, and backpressure processing is performed on the service according to the currently used backpressure strategy.
[0109] Preferably, the plurality of traffic alarm levels include a first traffic alarm level, a second traffic alarm level, a third traffic alarm level, and a fourth traffic alarm level, wherein the first traffic alarm level is higher than the second traffic alarm level, the second traffic alarm level is higher than the third traffic alarm level, and the third traffic alarm level is higher than the fourth traffic alarm level.
[0110] When the traffic alarm level is the first traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including:
[0111] Notify a set number of APs running the service to shut down the service; or,
[0112] When the traffic alarm level is the second traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including:
[0113] Discard the traffic data for this service sent by a second predetermined number of APs out of all APs running this service; or,
[0114] When the traffic alarm level is the third traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including:
[0115] The system notifies all access points (APs) running the service to send the service's traffic data at specified intervals, where the specified interval is greater than the original interval of any AP sending the service; or,
[0116] When the traffic alarm level is the fourth traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including:
[0117] A hash reporting request is sent to all APs running the service, so that each AP, after receiving the hash reporting request, randomly generates a delay duration and, when the current sending interval arrives, delays the delay duration before reporting the traffic data of each service on the AP.
[0118] As can be seen from the above technical solutions, for the services running on each AP in the wireless network, the monitoring device monitors the traffic data of these services, and through a series of assessments such as the corresponding service status, traffic alarm level, and number of traffic alarms, it can promptly apply the corresponding backpressure strategy to handle the surge in traffic data, thereby reducing the impact on the traffic data of other services, thus improving the stability of the entire wireless network and enhancing the user experience.
[0119] This application also provides an electronic device, such as... Figure 3 As shown, it includes a processor 31 and a machine-readable storage medium 32, the machine-readable storage medium 32 storing machine-executable instructions that can be executed by the processor 31, the processor 31 being prompted by the machine-executable instructions to implement the steps of the above-described business monitoring method.
[0120] The aforementioned machine-readable storage medium may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage device. Optionally, the machine-readable storage medium may also be at least one storage device located remotely from the aforementioned processor.
[0121] The processors mentioned above can be general-purpose processors, including central processing units (CPUs), network processors (NPs), etc.; they can also be digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.
[0122] In another embodiment provided in this application, a computer-readable storage medium is also provided, which stores a computer program that, when executed by a processor, implements the steps of the above-described business monitoring method.
[0123] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the scope of protection of this application.
Claims
1. A business monitoring method, characterized in that, The method is applied to a monitoring device, and the method includes: Obtain the target traffic data of each service running on each access point (AP) in the current round; For each service, if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, then based on the previously recorded traffic alarm level and the current traffic alarm level, update the locally recorded traffic alarm level and its corresponding number of traffic alarms, and record the current round of the traffic alarm level. If the updated traffic alarm count contains a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is non-backpressure state, then obtain the backpressure policy corresponding to the traffic alarm level, perform backpressure processing on the service according to the obtained backpressure policy, clear the updated traffic alarm count, and change the service status from non-backpressure state to backpressure state. Initially, the traffic alarm level recorded last time is empty, and the service status is non-backpressure state. The higher the traffic alarm level, the higher the data volume threshold corresponding to the traffic alarm level, and the lower the number of traffic alarms corresponding to the traffic alarm level. In addition, different traffic alarm levels correspond to different data volume thresholds and different traffic alarm levels correspond to different numbers of traffic alarms. When the business is in a backpressure state, the backpressure strategy is adjusted according to the changes in the amount of traffic data for that business.
2. The method according to claim 1, characterized in that, Based on the previously recorded traffic alert level and the current traffic alert level, update the locally recorded traffic alert level and its corresponding number of traffic alerts, specifically including: If the traffic alarm level is the same as the previously recorded traffic alarm level or the traffic alarm level is higher than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to the locally recorded traffic alarm level will be incremented by 1. If the current traffic alarm level is lower than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to other traffic alarm levels that are higher than the current traffic alarm level recorded locally will be added to the current traffic alarm level. The accumulated number of traffic alarms will be added once more, and the other traffic alarm levels and their corresponding number of traffic alarms will be cleared.
3. The method according to claim 1, characterized in that, The method further includes: After acquiring the traffic data for each service, if the traffic data volume of that service does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is non-backpressure state, then no operation is performed. The adjustment of the backpressure strategy based on changes in the volume of the service traffic data includes: If the data volume of the service traffic data does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is backpressure state, then if the number of backpressure recovery times for the service is not recorded locally, the number of backpressure recovery times for the service is recorded as 1 time; or, if the number of backpressure recovery times for the service is recorded locally, the number of backpressure recovery times for the service recorded locally is incremented by 1 time. The number of backpressure recovery times for the service recorded locally is the sum of the monitoring device over N consecutive rounds, and the value of N is the same as the value of the number of backpressure recovery times for the service recorded locally. If the number of backpressure recovery attempts recorded for this service is different from the threshold values for the number of traffic alarms corresponding to the multiple traffic alarm levels, then the service will continue to be processed under backpressure according to the currently used backpressure strategy. If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level among the multiple traffic alarm levels except the lowest traffic alarm level, and no traffic alarm count corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy; If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, no traffic alarm attempts corresponding to that other traffic alarm level are recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then backpressure processing is performed on this service according to the current backpressure strategy. If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then clear the number of traffic alarms corresponding to that other traffic alarm level and the current recorded number of backpressure recovery attempts for this service, obtain the backpressure strategy corresponding to a traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy; If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then the number of traffic alarms corresponding to that other traffic alarm level is cleared, and backpressure processing is performed on the service according to the current backpressure strategy. If the currently recorded number of backpressure recovery attempts for this service is the same as the traffic alarm count threshold corresponding to the lowest traffic alarm level among the multiple traffic alarm levels, then if no traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the currently recorded number of backpressure recovery attempts for this service is cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state; or, if a traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the traffic alarm count corresponding to the lowest traffic alarm level and the currently recorded number of backpressure recovery attempts for this service are cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state.
4. The method according to claim 1, characterized in that, The method further includes: After updating the locally recorded traffic alarm levels and their corresponding traffic alarm counts, if the updated traffic alarm counts include a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is in a backpressure state, then if the traffic alarm level corresponding to the first traffic alarm count is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, then the service will continue to be processed under backpressure according to the currently used backpressure strategy; or... When the traffic alarm level corresponding to the first traffic alarm is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is not the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, a backpressure strategy corresponding to a traffic alarm level one traffic alarm level higher than the currently used backpressure strategy is obtained, and backpressure processing is performed on the service according to the obtained backpressure strategy; or, When the traffic alarm level corresponding to the first traffic alarm count is different from the traffic alarm level recorded previously, the anti-pressure policy corresponding to the traffic alarm level corresponding to the first traffic alarm count is obtained, and the service is subjected to anti-pressure processing according to the obtained anti-pressure policy.
5. The method according to claim 1, characterized in that, The method further includes: If the target traffic data volume of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the backpressure recovery count of the service has been accumulated in the previous round, then the backpressure recovery count of the service is cleared, and backpressure processing is performed on the service according to the currently used backpressure strategy.
6. The method according to claim 1, characterized in that, The multiple traffic alarm levels include a first traffic alarm level, a second traffic alarm level, a third traffic alarm level, and a fourth traffic alarm level, wherein the first traffic alarm level is higher than the second traffic alarm level, the second traffic alarm level is higher than the third traffic alarm level, and the third traffic alarm level is higher than the fourth traffic alarm level. When the traffic alarm level is the first traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: Notify a set number of APs running the service to shut down the service; or, When the traffic alarm level is the second traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: Discard the traffic data for this service sent by a second predetermined number of APs out of all APs running this service; or, When the traffic alarm level is the third traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: The system notifies all access points (APs) running the service to send the service's traffic data at specified intervals, where the specified interval is greater than the original interval of any AP sending the service; or, When the traffic alarm level is the fourth traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: A hash reporting request is sent to all APs running the service, so that each AP, after receiving the hash reporting request, randomly generates a delay duration and, when the current sending interval arrives, delays the delay duration before reporting the traffic data of each service on the AP.
7. A business monitoring device, characterized in that, The device is used in monitoring equipment, and the device includes: The acquisition module is used to acquire the target traffic data of each service running on each access point (AP) in the current round; The update module is used to update the locally recorded traffic alarm level and its corresponding number of traffic alarms for each service if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels. The update module also records the traffic alarm level for the current round. The first backpressure module is used to obtain the backpressure strategy corresponding to the traffic alarm level if the updated traffic alarm count contains a first traffic alarm count that has reached the traffic alarm count threshold value corresponding to the corresponding traffic alarm level, and the service status of the service is non-backpressure state. According to the obtained backpressure strategy, the service is subjected to backpressure processing, the updated traffic alarm count is cleared, and the service status of the service is changed from non-backpressure state to backpressure state. Initially, the traffic alarm level recorded last time is empty, and the service status is non-backpressure state. The higher the traffic alarm level, the higher the data volume threshold corresponding to the traffic alarm level, and the lower the number of traffic alarms corresponding to the traffic alarm level. In addition, different traffic alarm levels correspond to different data volume thresholds and different traffic alarm levels correspond to different numbers of traffic alarms. The second backpressure module is used to adjust the backpressure strategy based on the changes in the amount of traffic data of the service when the service status is in backpressure state.
8. The apparatus according to claim 7, characterized in that, The update module is specifically used for: If the traffic alarm level is the same as the previously recorded traffic alarm level or the traffic alarm level is higher than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to the locally recorded traffic alarm level will be incremented by 1. If the current traffic alarm level is lower than the previously recorded traffic alarm level, then the number of traffic alarms corresponding to other traffic alarm levels that are higher than the current traffic alarm level recorded locally will be added to the current traffic alarm level. The accumulated number of traffic alarms will be added once more, and the other traffic alarm levels and their corresponding number of traffic alarms will be cleared.
9. The apparatus according to claim 7, characterized in that, The second backpressure module is specifically used to, after acquiring the traffic data of each service, perform no operation if the data volume of the traffic data of each service does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels and the service status of the service is non-backpressure state. If the data volume of the service traffic data does not reach the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the service status is back pressure state, then if the number of back pressure recovery times for the service is not recorded locally, the number of back pressure recovery times for the service is recorded as 1 time; or, if the number of back pressure recovery times for the service is recorded locally, the number of back pressure recovery times for the service recorded locally is incremented by 1 time. If the number of backpressure recovery attempts recorded for this service is different from the threshold values for the number of traffic alarms corresponding to the multiple traffic alarm levels, then the service will continue to be processed under backpressure according to the currently used backpressure strategy. If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level among the multiple traffic alarm levels except the lowest traffic alarm level, and no traffic alarm count corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then obtain the backpressure strategy corresponding to the traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy; If the number of backpressure recovery attempts recorded for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, no traffic alarm attempts corresponding to that other traffic alarm level are recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then backpressure processing is performed on this service according to the current backpressure strategy. If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is the same as that other traffic alarm level, then clear the number of traffic alarms corresponding to that other traffic alarm level and the current recorded number of backpressure recovery attempts for this service, obtain the backpressure strategy corresponding to a traffic alarm level that is one traffic alarm level lower than the traffic alarm level corresponding to the current backpressure strategy, and perform backpressure processing on the service according to the obtained backpressure strategy; If the current recorded number of backpressure recovery attempts for this service is the same as the threshold value of the number of traffic alarms corresponding to any other traffic alarm level (excluding the lowest traffic alarm level) among the multiple traffic alarm levels, the number of traffic alarms corresponding to that other traffic alarm level is recorded locally, and the traffic alarm level corresponding to the current backpressure strategy is different from that other traffic alarm level, then the number of traffic alarms corresponding to that other traffic alarm level is cleared, and backpressure processing is performed on the service according to the current backpressure strategy. If the currently recorded number of backpressure recovery attempts for this service is the same as the traffic alarm count threshold corresponding to the lowest traffic alarm level among the multiple traffic alarm levels, then if no traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the currently recorded number of backpressure recovery attempts for this service is cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state; or, if a traffic alarm count corresponding to the lowest traffic alarm level is recorded locally, the traffic alarm count corresponding to the lowest traffic alarm level and the currently recorded number of backpressure recovery attempts for this service are cleared, backpressure processing for this service is stopped, and the service status of this service is changed from backpressure state to non-backpressure state.
10. The apparatus according to claim 7, characterized in that, The device further includes: The third backpressure module is used to, after the update module updates the locally recorded traffic alarm levels and their corresponding traffic alarm counts, if the updated traffic alarm counts include a first traffic alarm count that has reached the traffic alarm count threshold corresponding to the corresponding traffic alarm level, and the service status is backpressure state, then if the traffic alarm level corresponding to the first traffic alarm count is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, then the service will continue to be backpressure processed according to the currently used backpressure strategy; or... When the traffic alarm level corresponding to the first traffic alarm is the same as the previously recorded traffic alarm level, and the currently used backpressure strategy is not the backpressure strategy corresponding to the highest traffic alarm level among the multiple traffic alarm levels, a backpressure strategy corresponding to a traffic alarm level one traffic alarm level higher than the currently used backpressure strategy is obtained, and backpressure processing is performed on the service according to the obtained backpressure strategy; or, When the traffic alarm level corresponding to the first traffic alarm count is different from the traffic alarm level recorded previously, the anti-pressure policy corresponding to the traffic alarm level corresponding to the first traffic alarm count is obtained, and the service is subjected to anti-pressure processing according to the obtained anti-pressure policy.
11. The apparatus according to claim 7, characterized in that, The device further includes: The fourth backpressure module is used to clear the backpressure recovery count of the service if the data volume of the target traffic data of the service reaches the data volume threshold value corresponding to any of the multiple traffic alarm levels, and the backpressure recovery count of the service has been accumulated in the previous round, and to perform backpressure processing on the service according to the currently used backpressure strategy.
12. The apparatus according to claim 7, characterized in that, The multiple traffic alarm levels include a first traffic alarm level, a second traffic alarm level, a third traffic alarm level, and a fourth traffic alarm level, wherein the first traffic alarm level is higher than the second traffic alarm level, the second traffic alarm level is higher than the third traffic alarm level, and the third traffic alarm level is higher than the fourth traffic alarm level. When the traffic alarm level is the first traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: Notify a set number of APs running the service to shut down the service; or, When the traffic alarm level is the second traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: Discard the traffic data for this service sent by a second predetermined number of APs out of all APs running this service; or, When the traffic alarm level is the third traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: The system notifies all access points (APs) running the service to send the service's traffic data at specified intervals, where the specified interval is greater than the original interval of any AP sending the service; or, When the traffic alarm level is the fourth traffic alarm level, the service is subjected to backpressure processing according to the obtained backpressure strategy, specifically including: A hash reporting request is sent to all APs running the service, so that each AP, after receiving the hash reporting request, randomly generates a delay duration and, when the current sending interval arrives, delays the delay duration before reporting the traffic data of each service on the AP.
13. An electronic device, characterized in that, The method includes a processor and a machine-readable storage medium storing machine-executable instructions that can be executed by the processor, which are prompted by the machine-executable instructions to perform the method steps of any one of claims 1-6.
14. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores a computer program that, when executed by a processor, implements the method steps of any one of claims 1-6.
Citation Information
Patent Citations
Traffic alarm processing method and device and storage medium
CN110650060A
Service processing method and device based on back pressure
CN112398945A