An alarm processing method, centralized management device and server cluster

By obtaining the network disconnection statistical parameters of the service equipment, determining whether the suppression conditions are met, suppressing or performing alarm processing, the problem of channel congestion under data center network disconnection is solved and the efficiency of alarm processing is improved.

CN116319250BActive Publication Date: 2025-10-24HENAN KUNLUN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310135110.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-02-17
Publication Date
2025-10-24
Estimated Expiration
2043-02-17

AI Technical Summary

Technical Problem

In the data center network disconnection scenario, disconnection alarm messages from service equipment can easily cause channel congestion, resulting in failure to report in a timely manner and affecting alarm processing efficiency.

Method used

By obtaining the network disconnection statistics parameters of the service device, it is determined whether the suppression conditions are met. If so, the alarm is suppressed; otherwise, a network disconnection alarm is issued to avoid channel congestion.

Benefits of technology

In the event of network disconnection, congestion of the alarm channel is avoided, and the efficiency and real-time performance of alarm processing are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116319250B_ABST
    Figure CN116319250B_ABST
Patent Text Reader

Abstract

Embodiments of the present application disclose a kind of alarm processing method, centralized management device and server cluster, the method comprises: obtaining the network disconnection of service equipment in service equipment set appears, determine the target subnet of network disconnection of service equipment belongs to;Obtain the statistical parameter of network disconnection of service equipment in target subnet appears;In the case where the statistical parameter of network disconnection of service equipment in target subnet appears satisfies suppression condition, suppression alarm processing is carried out to target subnet, wherein, the network disconnection alarm of service equipment in target subnet is used to indicate that suppression produces;In the case where the statistical parameter of network disconnection of service equipment in target subnet appears does not satisfy suppression condition, network disconnection alarm is carried out to network disconnection of service equipment in target subnet.It is helpful to avoid alarm channel congestion and improve the efficiency of alarm processing in network disconnection scenario in this way.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the field of information technology, and in particular to an alarm processing method, a centralized management device and a server cluster. BACKGROUND

[0002] Under the background of digital transformation of various enterprises, the construction of data centers is showing explosive growth. With the explosive growth of data center scale, the number of service devices in data centers also increases rapidly. The number of service devices in a single data center can reach tens of thousands, and even hundreds of thousands are also common.

[0003] However, in the network disconnection scene, a large number of service devices are prone to disconnection alarm messages, and the alarm channel is congested, which causes the disconnection alarm messages to be unable to be reported in time. SUMMARY

[0004] The embodiments of the present application provide an alarm processing method, a centralized management device and a server cluster, which can help to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scene.

[0005] In a first aspect, the embodiments of the present application provide an alarm processing method for network disconnection, comprising:

[0006] Obtaining a service device in a service device set that appears network disconnection, and determining a target subnet to which the service device that appears network disconnection belongs;

[0007] Obtaining a statistical parameter of the service device that appears network disconnection in the target subnet;

[0008] In the case that the statistical parameter of the service device that appears network disconnection in the target subnet meets an inhibition condition, performing inhibition alarm processing on the target subnet, wherein the inhibition alarm processing is used to represent inhibition of network disconnection alarm of the service device in the target subnet;

[0009] In the case that the statistical parameter of the service device that appears network disconnection in the target subnet does not meet the inhibition condition, performing network disconnection alarm on the service device that appears network disconnection in the target subnet.

[0010] Further, the determination of the target subnet to which the service device that appears network disconnection belongs comprises:

[0011] Obtaining network address information of the service device that appears network disconnection;

[0012] Obtaining a target address field in a plurality of address fields in the network address information, and determining the target subnet to which the service device that appears network disconnection belongs according to the target address field.

[0013] Further, the statistical parameter comprises a device quantity, the suppression condition comprises that the device quantity is greater than or equal to a device quantity threshold of the target subnet, and the suppression alarm processing is performed on the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet meets the suppression condition.

[0014] The suppression alarm processing is performed on the target subnet in a case where the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet.

[0015] In a case where the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet when the statistical parameter is the device quantity, the statistical parameter is determined to meet the suppression condition, and the suppression alarm processing is performed on the target subnet, which helps to avoid alarm channel congestion in a case where the device quantity with network disconnection is too large.

[0016] Further, the method further comprises:

[0017] The network disconnection alarm is performed on the service device with network disconnection in the target subnet in a case where the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet.

[0018] In a case where the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet when the statistical parameter is the device quantity, the statistical parameter is determined to not meet the suppression condition, and the network disconnection alarm is performed on the service device with network disconnection in the target subnet, which helps to improve the alarm processing efficiency.

[0019] Further, the method further comprises:

[0020] If there is no network disconnection alarm, the suppression alarm processing on the target subnet is cancelled, and the network disconnection alarm is performed on the service device with network disconnection in the target subnet.

[0021] The suppression alarm processing on the target subnet is cancelled in a case where there is no network disconnection alarm, which can further improve the alarm processing efficiency.

[0022] Further, the method further comprises:

[0023] In a case where the suppression alarm processing is performed on the target subnet, a suppression alarm message is sent, and the suppression alarm message is used to indicate that the target subnet is subjected to the suppression alarm;

[0024] In a case where the suppression alarm processing on the target subnet is cancelled, the suppression alarm message is deleted.

[0025] The application can timely inform the user of the service device with network disconnection by sending the suppression alarm message, and help to handle the network disconnection of the service device in time.

[0026] Further, the method further comprises:

[0027] In a case where the suppression alarm processing on the target subnet is performed, if the suppression alarm message has been sent, the number of the sent suppression alarm message is increased.

[0028] The application can avoid generating repeated suppression alarm messages by increasing the number of the suppression alarm message in a case where the suppression alarm message already exists.

[0029] Further, the method further comprises:

[0030] In a case where the network of the service device is reconnected, the network disconnection alarm on the service device is cancelled.

[0031] The application can suppress the network disconnection alarm of the service device with network disconnection in the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet meets the suppression condition, and help to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario.

[0032] In a second aspect, an alarm processing apparatus is provided in the embodiments of the application, and comprises:

[0033] A determination unit is configured to acquire a service device with network disconnection in a service device set, and determine a target subnet to which the service device with network disconnection belongs.

[0034] An acquisition unit is configured to acquire a statistical parameter of the service device with network disconnection in the target subnet.

[0035] A first processing unit is configured to perform suppression alarm processing on the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet meets a suppression condition, wherein the suppression alarm processing is used to represent suppression of network disconnection alarm of the service device in the target subnet.

[0036] A second processing unit is configured to perform network disconnection alarm on the service device with network disconnection in the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet does not meet the suppression condition.

[0037] Further, the determining unit is configured to determine a target subnet to which the service device with network disconnection belongs, and specifically configured to:

[0038] obtain network address information of the service device with network disconnection;

[0039] obtain a target address field in a plurality of address fields in the network address information, and determine a target subnet to which the service device with network disconnection belongs according to the target address field.

[0040] Further, the statistical parameter includes a device quantity, the suppression condition includes that the device quantity is greater than or equal to a device quantity threshold of the target subnet, and the first processing unit is configured to perform suppression alarm processing on the target subnet when the statistical parameter of the service device with network disconnection in the target subnet meets the suppression condition, and specifically configured to:

[0041] perform suppression alarm processing on the target subnet when the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet.

[0042] Further, the first processing unit is further configured to:

[0043] perform network disconnection alarm on the service device with network disconnection in the target subnet when the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet.

[0044] Further, the first processing unit is further configured to:

[0045] cancel the suppression alarm processing on the target subnet and perform network disconnection alarm on the service device with network disconnection in the target subnet if there is no network disconnection alarm.

[0046] Further, the first processing unit is further configured to:

[0047] issue a suppression alarm message indicating that the target subnet is suppressed from alarm if the suppression alarm processing on the target subnet is performed.

[0048] delete the suppression alarm message if the suppression alarm processing on the target subnet is cancelled.

[0049] Further, the first processing unit is further configured to:

[0050] increase the number of the issued suppression alarm message if the suppression alarm processing on the target subnet is performed and the suppression alarm message has been issued.

[0051] Further, the first processing unit is further configured to:

[0052] In the case of network reconnection of the service device, cancel the network disconnection alarm of the service device.

[0053] In a third aspect, an embodiment of the present application provides a centralized management device, including a processor and a memory, the processor and the memory are connected with each other, wherein the memory is configured to store a computer program, the computer program includes program instructions, and the processor is configured to invoke the program instructions to execute the method in the first aspect.

[0054] In a fourth aspect, an embodiment of the present application provides a server cluster, including the centralized management device in the third aspect and a plurality of service devices, and the centralized management device is connected with the plurality of service devices.

[0055] The present application helps to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario by suppressing the network disconnection alarm of the service device in the target subnet in the case that the statistical parameters of the service device in the target subnet with network disconnection meet the suppression condition. BRIEF DESCRIPTION OF DRAWINGS

[0056] Figure 1 FIG. 1 is a schematic diagram of a device of a data center;

[0057] Figure 2 FIG. 2 is a system architecture diagram of a business scenario;

[0058] Figure 3 FIG. 3 is a structural schematic diagram of a centralized management device provided by an embodiment of the present application;

[0059] Figure 4 FIG. 4 is a flowchart of an alarm processing method provided by an embodiment of the present application;

[0060] Figure 5 FIG. 5 is a flowchart of another alarm processing method provided by an embodiment of the present application;

[0061] Figure 6 FIG. 6 is a flowchart of still another alarm processing method provided by an embodiment of the present application;

[0062] Figure 7 FIG. 7 is a structural schematic diagram of an alarm processing device provided by an embodiment of the present application;

[0063] Figure 8 FIG. 8 is a structural schematic diagram of a centralized management device provided by an embodiment of the present application. DETAILED DESCRIPTION

[0064] Clearly, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts fall within the protection scope of the present application.

[0065] Before the technical solutions proposed in the present application are described below, the accompanying drawings in the embodiments of the present application will be described first Figure 1 -Appendix Figure 2 The existing network disconnection alarm situation is described.

[0066] With the explosive growth of data centers, the number of servers in the data center also increases. In order to uniformly and efficiently manage these service devices (i.e. servers), the data center introduces a centralized management device of servers, such as a server management system. Figure 1 As shown in Figure 1 is a schematic diagram of a device in a data center. The centralized management device of servers is used to manage multiple service devices in the data center. The centralized management device of servers can store each service device to different subnets for management, such as Figure 1 The centralized management device of servers includes three subnets: subnet 1, subnet 2 and subnet 3. Each subnet includes multiple service devices. The number of service devices in each subnet can be the same or different. The Internet Protocol (IP) address is used to represent the host on the network with a network number and a host number. The IP network allows to be divided into smaller networks, called subnets.

[0067] In the case of managing service device switching, service device restart or unstable network signal, network disconnection may occur for a period of time (i.e. network flash disconnection), resulting in network disconnection alarm messages generated by service devices with network disconnection. When the number of devices with network disconnection is too large, the alarm channel may be congested due to too many network disconnection alarm messages generated, resulting in network disconnection alarm messages not being reported in time. The network flash disconnection is a period of network disconnection, and the period of time is a shorter period of time within a time period threshold, such as 4s. Taking Figure 1 For example, subnet 1 has network disconnection for a period of time. Assuming that all service devices in subnet 1 detect network disconnection and perform network disconnection alarm, the network disconnection alarm messages generated are added to the alarm processing list. The time required to process the batch of network disconnection alarm messages is: number of subnet devices / alarm processing efficiency (for example, 5000 devices, it is expected to take at least 50 minutes). If the service devices in subnet 2 subsequently have serious fault alarms, the centralized management device of servers needs at least 50 minutes to detect and notify the user.

[0068] The current alarm processing scheme for the above situation is a delay processing, that is, the network disconnection alarm is sent only when the service device is detected to have network disconnection for N cycles. If the network disconnection duration does not exceed N cycles, the disconnection alarm impact problem will not occur. In an alternative technical solution, the network disconnection of each service device is detected in a cycle, however, this way will affect the timeliness of alarm processing, and cannot detect the network disconnection alarm message of the service device in time.

[0069] For the above situation, the present application proposes an alarm processing method, which suppresses the network disconnection alarm of the service device in the target subnet when the statistical parameters of the service device in the target subnet meet the suppression condition, which helps to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario.

[0070] The alarm processing method proposed in the present application can be applied to business scenarios involving large-scale device management, such as public cloud, private cloud, traditional data center, NFVI, enterprise customer, etc. Figure 2 As shown in Figure 2 is a system architecture diagram of a business scenario, which includes device management (including multiple service devices), centralized management device and multiple terminal devices (public cloud, private cloud, traditional data center, network function virtualization infrastructure (NFV Infrastructure, NFVI), enterprise customer), each service device reports a network disconnection alarm message to the centralized management device, and the centralized management device sends the network disconnection alarm message of each service device to the corresponding terminal device.

[0071] The alarm processing method proposed in the present application embodiment can be applied to a server cluster, which includes a centralized management device and multiple service devices, the centralized management device is connected with the multiple service devices, the centralized management device can be set in a terminal device or a server, and the service device can be a server. The centralized management device includes an alarm processing apparatus, which includes an acquisition module and a processing module, the acquisition module includes a determination unit and an acquisition unit, the processing module includes a first processing unit and a second processing unit, and details are described in Figure 3 , Figure 3 is a structural schematic diagram of a centralized management device provided in the present application embodiment, which includes an acquisition module 31 and a processing module 32, wherein the processing module 32 includes a data driving module 321, an alarm detection module 322 and an alarm processing module 323.

[0072] The data driving module 321 comprises an alarm processing queue and a plurality of data interfaces map. The alarm processing queue is used to store network disconnection alarm messages to be processed. The map is a key-value pair data interface, wherein the key in each key-value pair is subnetwork information used to indicate a subnetwork, and the value is device information in the corresponding subnetwork, which comprises network disconnection device quantity information value1 in the corresponding subnetwork, total device quantity value2 of service devices in the corresponding subnetwork, and device quantity threshold value3 in the corresponding subnetwork.

[0073] In one embodiment, the device quantity threshold value3 can be determined by the total device quantity value2 and a preset proportion. For example, assuming that the total device quantity value2 is 100 and the preset proportion is 5%, the device quantity threshold value3 can be determined as 100*5%=5.

[0074] In one embodiment, the alarm detection module 322 is used to detect whether a service device generates a network disconnection alarm message of network disconnection, and output the network disconnection alarm message of network disconnection generated to the alarm processing queue for waiting for processing.

[0075] In one embodiment, the alarm processing module 323 is used to perform suppression alarm processing on a target subnetwork when the device quantity of the service devices of network disconnection in the target subnetwork is greater than or equal to the device quantity threshold value of the target subnetwork, and perform network disconnection alarm on the service devices of network disconnection in the target subnetwork when the device quantity of the service devices of network disconnection in the target subnetwork is less than the device quantity threshold value of the target subnetwork.

[0076] The suppression alarm processing on the target subnetwork is used to represent that the network disconnection alarm of the service devices in the target subnetwork is suppressed. The network disconnection alarm on the service devices of network disconnection in the target subnetwork is used to indicate that the network disconnection alarm of the service devices in the target subnetwork is generated. The network disconnection alarm of the service devices in the target subnetwork is used to represent that a network disconnection alarm message is generated, and the network disconnection alarm message is added to the alarm processing queue.

[0077] Further, if there is no network disconnection alarm, the suppression alarm processing on the target subnetwork is cancelled, and the network disconnection alarm on the service devices of network disconnection in the target subnetwork is performed.

[0078] In order to better understand the embodiments of the present application, the following will be combined with the accompanying drawings to describe the embodiments of the present application. Figure 4 -Appendix Figure 6 The network disconnection alarm processing method proposed in the embodiments of the present application is described schematically.

[0079] For details, please refer to Figure 4 ,Figure 4 is a flowchart of an alarm processing method provided by an embodiment of the present application. The alarm processing method provided by the embodiment of the present application is applied to an alarm processing device, and the alarm processing device is arranged in a centralized management equipment. Specifically, the method provided by the embodiment of the present application includes the following steps.

[0080] S401: Obtain a service device in a service device set that has network disconnection, and determine a target subnet to which the service device with network disconnection belongs.

[0081] In the embodiment of the present application, the centralized management equipment can obtain a service device in a service device set that has network disconnection, and determine a target subnet to which the service device with network disconnection belongs. The service device set includes a plurality of service devices, and the subnets to which the service devices belong can be the same or different. The IP address is used to represent a host on a network by a network number and a host number. The IP network allows to be divided into smaller networks, which are called subnets. In some embodiments, the target subnet to which the service device belongs can be a minimum subnet. In an example, the minimum subnet can be a subnet with a network number of 24 bits and a host number of 8 bits, that is, a subnet with a subnet mask of 255.255.255.0 is called a minimum subnet, and the minimum subnet is a subset of the subnet.

[0082] In an embodiment, when determining the target subnet to which the service device with network disconnection belongs, the centralized management equipment can obtain network address information of the service device with network disconnection, obtain a target address field in a plurality of address fields in the network address information, and determine the target subnet to which the service device with network disconnection belongs according to the target address field. The network address information can be an IP address, and the target address field can be an IP address field used to indicate the target subnet. For example, the target address field can be the first three fields of the IP address, such as "192.168.101.".

[0083] S402: Obtain a statistical parameter of the service device in the target subnet that has network disconnection.

[0084] In the embodiment of the present application, the centralized management equipment can obtain a statistical parameter of the service device in the target subnet that has network disconnection. The statistical parameter includes a device number, and the statistical parameter includes but is not limited to any one or more of numbers, characters, letters, etc. For example, the statistical parameter can be 10, indicating that the number of service devices in the target subnet that have network disconnection is 10.

[0085] Further, the centralized management device can obtain the number of service devices in the target subnet that have network disconnection when obtaining the statistical parameter of the service devices in the target subnet that have network disconnection. The map is a key-value data interface, where the key in each key-value pair is subnet information indicating a subnet, and the value is device information in the corresponding subnet, including the number of devices in the corresponding subnet that have network disconnection, the total number of service devices in the corresponding subnet, and a device quantity threshold in the corresponding subnet, which is used to determine whether the number of service devices in the corresponding subnet that have network disconnection meets the suppression condition.

[0086] S403: In a case where the statistical parameter of the service devices in the target subnet that have network disconnection meets the suppression condition, performing suppression alarm processing on the target subnet.

[0087] In the embodiments of the present application, the centralized management device can perform suppression alarm processing on the target subnet in a case where the statistical parameter of the service devices in the target subnet that have network disconnection meets the suppression condition, where the suppression alarm processing is used to indicate that the network disconnection alarm of the service devices in the target subnet is suppressed.

[0088] In one embodiment, the statistical parameter includes the number of devices, the suppression condition includes that the number of devices is greater than or equal to a device quantity threshold of the target subnet, and when the number of service devices in the target subnet that have network disconnection is greater than or equal to the device quantity threshold of the target subnet, it is determined that the statistical parameter of the service devices in the target subnet that have network disconnection meets the suppression condition, and the suppression alarm processing is performed on the target subnet.

[0089] S404: In a case where the statistical parameter of the service devices in the target subnet that have network disconnection does not meet the suppression condition, performing network disconnection alarm on the service devices in the target subnet that have network disconnection.

[0090] In the embodiments of the present application, the centralized management device can perform network disconnection alarm on the service devices in the target subnet that have network disconnection in a case where the statistical parameter of the service devices in the target subnet that have network disconnection does not meet the suppression condition.

[0091] In one embodiment, the statistical parameter includes the number of devices, the suppression condition includes that the number of devices is greater than or equal to a device quantity threshold of the target subnet, and when the number of service devices in the target subnet that have network disconnection is less than the device quantity threshold of the target subnet, the network disconnection alarm is performed on the service devices in the target subnet that have network disconnection.

[0092] The application embodiment can help avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario by performing the suppression alarm processing on the target subnet when the number of service devices with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet, or performing the network disconnection alarm on the service devices with network disconnection in the target subnet when the number of service devices with network disconnection in the target subnet is less than the device quantity threshold of the target subnet.

[0093] For details, please refer to Figure 5 , Figure 5 is a flowchart of another alarm processing method provided by the application embodiment. The alarm processing method provided by the application embodiment is applied to a centralized management device. Specifically, the application embodiment mainly describes how to perform the alarm processing. The method comprises the following steps.

[0094] S501: Obtain a service device with network disconnection in a service device set, and determine a target subnet to which the service device with network disconnection belongs.

[0095] S502: Obtain a statistical parameter of the service device with network disconnection in the target subnet, wherein the statistical parameter comprises a device quantity.

[0096] S503: When the device quantity of the service device with network disconnection in the target subnet is greater than or equal to a device quantity threshold of the target subnet, perform the suppression alarm processing on the target subnet.

[0097] In the application embodiment, when the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet, the centralized management device can perform the suppression alarm processing on the target subnet. Further, the centralized management device can obtain the device quantity of the service device with network disconnection in the target subnet from a map. When the device quantity of the service device with network disconnection in the target subnet obtained from the map is greater than or equal to the device quantity threshold of the target subnet, it can be determined that the statistical parameter of the service device with network disconnection in the target subnet satisfies the suppression condition, and the suppression alarm processing is performed on the target subnet, that is, the network disconnection alarm of the service device in the target subnet is suppressed.

[0098] Further, the centralized management device can send a suppression alarm message when the suppression alarm processing is performed on the target subnet. The suppression alarm message is used to indicate that the target subnet is suppressed. The centralized management device sending the suppression alarm message can help send the suppression alarm message to the service device, so that the user of the service device can timely process the network disconnection of the service device.

[0099] In one embodiment, before obtaining the number of service devices in the target subnet from the map, the centralized management device can traverse all service devices in the service device set, extract the target address field (such as the first three fields in the IP address) in the network address information of each service device, and store the extracted target address field of each service device in the key of the corresponding map. During the traversal, the number of devices in the value of the corresponding map of each service device is increased by 1 each time a service device is added, and the number of disconnected devices in the corresponding map of each service device is initialized to 0.

[0100] Further, after traversing all service devices in the service device set, it can be detected whether each service device can be pinged. If it can be pinged, it is determined that the network of the service device is not disconnected, and the next service device is detected. If it cannot be pinged, it is determined that the network of the service device is disconnected, for example, service device 192.168.101.121 cannot be pinged, and it is determined that the network of the service device is disconnected.

[0101] In one embodiment, in the case of suppressing alarm processing for the target subnet, if there is an issued suppression alarm message, the number of issued suppression alarm messages is increased. Further, the centralized management device can record the number of generated suppression alarm messages for each subnet, and can detect the number of generated suppression alarm messages recorded for the target subnet. If it is detected that the number of generated suppression alarm messages meets the notification condition, the suppression alarm message can be sent to the corresponding service device, and the number of generated suppression alarm messages recorded for the target subnet is increased by 1. If the number of generated suppression alarm messages does not meet the notification condition, the suppression alarm message is deleted. According to the number of generated suppression alarm messages recorded for the target subnet, if it is greater than or equal to 1, no repeated suppression alarm message is generated, which helps to improve the efficiency of generating suppression alarm messages.

[0102] Further, the number of generated suppression alarm messages meeting the notification condition means that the number of generated suppression alarm messages is 0. The number of generated suppression alarm messages not meeting the notification condition means that the number of generated suppression alarm messages is greater than or equal to 1.

[0103] In one embodiment, if there is no network disconnection alarm, the centralized management device can cancel the suppression alarm processing for the target subnet, and perform network disconnection alarm for the service device in the target subnet that has network disconnection. Further, in the case of canceling the suppression alarm processing for the target subnet, the centralized management device can delete the suppression alarm message.

[0104] S504: When the number of network disconnected service devices in the target subnet is less than the device quantity threshold of the target subnet, the network disconnection alarm is performed on the network disconnected service devices in the target subnet.

[0105] In the embodiment of the present application, when the number of network disconnected service devices in the target subnet is less than the device quantity threshold of the target subnet, the centralized management device can perform the network disconnection alarm on the network disconnected service devices in the target subnet. Further, the centralized management device can obtain the number of network disconnected service devices in the target subnet from the map, and when the number of network disconnected service devices in the target subnet obtained from the map is less than the device quantity threshold of the target subnet, the network disconnection alarm can be performed on the network disconnected service devices in the target subnet, and the network disconnection alarm message for each network disconnected service device in the target subnet is generated; the generated network disconnection alarm message is added to the alarm processing queue, and in the process of network disconnection alarm processing, each network disconnection alarm message can be processed in turn according to the alarm processing queue, and the number of network disconnected devices in the target subnet in the map is updated after the network disconnection alarm processing.

[0106] For example, when the number of network disconnected service devices in the target subnet obtained from the map is 2, which is less than the device quantity threshold of the target subnet 5, it is determined that the statistical parameters of the network disconnected service devices in the target subnet satisfy the suppression condition, the suppression alarm processing is performed on the target subnet, and the network disconnection alarm message for each network disconnected service device in the target subnet is generated; the generated network disconnection alarm message is added to the alarm processing queue, and the number of network disconnected devices in the target subnet in the map is updated after each disconnection alarm processing is processed, and the number of network disconnected devices in the target subnet in the map is reduced by 1 after each network disconnection alarm is processed.

[0107] Further, when the centralized management device performs the suppression alarm processing on the target subnet, it can also query the number of network disconnected devices in the target subnet and the device quantity threshold in the target subnet in the map when it is detected that the alarm processing queue is empty; when it is determined that the number of network disconnected devices in the target subnet is less than the device quantity threshold in the target subnet, it is determined that the network disconnection alarm message of each service device in the target subnet has been processed, and the subnet information of the target subnet in the map is deleted; when it is determined that the number of network disconnected devices in the target subnet is greater than or equal to the device quantity threshold in the target subnet, it is determined that the target subnet is in the state of being suppressed alarm processing, and the suppression alarm processing on the target subnet is cancelled, so as to perform the network disconnection alarm on the network disconnected service devices in the target subnet.

[0108] Further, in the case of network reconnection of the service device, the centralized management device can cancel the network disconnection alarm of the service device.

[0109] The application can avoid the problem of congestion of the alarm processing channel caused by too many network disconnection alarm messages by performing the suppression alarm processing on the target subnetwork when the number of service devices with network disconnection in the target subnetwork is greater than or equal to the device number threshold, and issuing the suppression alarm message. Further, when the number of service devices with network disconnection in the target subnetwork is less than the device number threshold, the centralized management device performs network disconnection alarm on the service devices with network disconnection in the target subnetwork, and generates network disconnection alarm messages for each service device with network disconnection in the target subnetwork; and adds the generated network disconnection alarm messages to the alarm processing queue, so as to process the network disconnection alarm messages in turn according to the alarm processing queue, realize the real-time network disconnection alarm processing, and improve the efficiency of the alarm processing.

[0110] Further please refer to Figure 6 , Figure 6 is a flowchart of another alarm processing method provided by an embodiment of the application, and the alarm processing method provided by the embodiment of the application is applied to a centralized management device.

[0111] S601: initializing each key-value pair in the target data interface map and initializing the alarm queue.

[0112] In the embodiment of the application, the centralized management device can first initialize each key-value pair in the target data interface map through the data driving module, and in the process of initializing each key-value pair, the subnetwork information of each service device can be stored in the key key corresponding to each service device by traversing each service device, the number of disconnected devices is initialized to 0, and in the process of traversing the service devices, the total number of devices in the map is increased by 1 each time a service device is traversed. Then, the alarm processing queue is initialized, that is, the data in the alarm processing queue is initialized to 0.

[0113] S602: starting device disconnection detection.

[0114] In the embodiment of the application, the centralized management device can start device disconnection detection through the alarm detection module.

[0115] S603: detecting whether the service device has network disconnection, if the detection result is yes, performing step S604, and if the detection result is no, performing step S602.

[0116] In the embodiments of the present application, the centralized management device can detect whether the service device is disconnected from the network. When detecting the service device disconnected from the network, the centralized management device can obtain the target subnet to which the service device belongs from the key of the map, and obtain the number of service devices disconnected from the network in the target subnet from the map.

[0117] S604: Inquiring from the map whether the number of service devices disconnected from the network in the target subnet is greater than or equal to the device number threshold. If the detection result is yes, step S605 is performed; if the detection result is no, step S606 is performed.

[0118] S605: Performing the suppression alarm processing on the target subnet.

[0119] In the embodiments of the present application, the centralized management device can perform the suppression alarm processing on the target subnet when detecting that the number of service devices disconnected from the network in the target subnet is greater than or equal to the device number threshold.

[0120] S606: Performing the network disconnection alarm on the service device disconnected from the network in the target subnet, updating the alarm processing queue, updating the number of devices disconnected from the network in the target subnet in the map, and performing step S607.

[0121] In the embodiments of the present application, the centralized management device can perform the network disconnection alarm on the service device disconnected from the network in the target subnet, and update the alarm processing queue and the number of devices disconnected from the network in the target subnet in the map when detecting that the number of service devices disconnected from the network in the target subnet is less than the device number threshold.

[0122] Further, when performing the network disconnection alarm on the service device disconnected from the network in the target subnet, the network disconnection alarm message corresponding to each service device disconnected from the network can be generated, and the network disconnection alarm message is stored in the alarm processing queue.

[0123] S607: Starting the alarm processing queue, and performing step S608.

[0124] S608: Detecting whether the alarm processing queue is empty. If the detection result is no, step S609 is performed; if the detection result is yes, step S610 is performed.

[0125] In the embodiments of the present application, the centralized management device can call the alarm processing module to detect whether the alarm processing queue is empty.

[0126] S609: Performing the alarm processing on the network disconnection alarm message in the alarm processing queue.

[0127] S610: querying the number of service devices with network disconnection in the target subnet from the map to determine whether the number is greater than or equal to the device quantity threshold value, if the result is yes, executing step S611, if the result is no, executing step S612.

[0128] S611: determining that the target subnet is still in the state of being suppressed from alarm processing, detecting the service devices with network disconnection in the target subnet, canceling the suppression of alarm processing for the target subnet, and performing network disconnection alarm for the service devices with network disconnection in the target subnet, and executing step S612.

[0129] S612: determining that the network disconnection alarm messages of all the service devices with network disconnection in the target subnet have been processed, and deleting the subnet information of the target subnet in the map.

[0130] In the embodiments of the present application, when the centralized management device queries the number of service devices with network disconnection in the target subnet from the map and determines that the number is less than the device quantity threshold value in the target subnet, it is determined that the network disconnection alarm messages of all the service devices in the target subnet have been processed, and the subnet information of the target subnet in the map is deleted; when it is determined that the number of devices with network disconnection in the target subnet is greater than or equal to the device quantity threshold value in the target subnet, it is determined that the target subnet is still in the state of being suppressed from alarm processing, so as to further detect the service devices with network disconnection in the target subnet, cancel the suppression of alarm processing for the target subnet, and perform network disconnection alarm for the service devices with network disconnection in the target subnet; further, after the network disconnection alarm processing, it is determined that the network disconnection alarm messages of all the service devices with network disconnection in the target subnet have been processed, and the subnet information of the target subnet stored in the key in the map is deleted.

[0131] The embodiments of the present application suppress the alarm processing for the target subnet when the number of devices with network disconnection in the target subnet exceeds the device quantity threshold value, and cancel the suppression of alarm processing for the target subnet when the number of service devices with network disconnection in the target subnet is less than the device quantity threshold value or there is no network disconnection alarm, which not only ensures the real-time performance of alarm processing, but also improves the efficiency of alarm processing.

[0132] Please refer to Figure 7 , Figure 7 is a structural schematic diagram of an alarm processing device provided by the embodiments of the present application. Specifically, the device includes a determination unit 701, an acquisition unit 702, a first processing unit 703, and a second processing unit 704.

[0133] The determination unit 701 is configured to acquire a service device that has network disconnection in a service device set, and determine a target subnet to which the service device with network disconnection belongs.

[0134] The acquisition unit 702 is configured to acquire a statistical parameter of the service device with network disconnection in the target subnet.

[0135] The first processing unit 703 is configured to perform suppression alarm processing on the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet meets a suppression condition, where the suppression alarm processing is used to indicate suppression of generation of network disconnection alarm of the service device in the target subnet.

[0136] The second processing unit 704 is configured to perform network disconnection alarm on the service device with network disconnection in the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet does not meet the suppression condition.

[0137] Further, the determination unit 701 determines the target subnet to which the service device with network disconnection belongs, and is specifically configured to:

[0138] Acquire network address information of the service device with network disconnection.

[0139] Acquire a target address field in a plurality of address fields in the network address information, and determine the target subnet to which the service device with network disconnection belongs according to the target address field.

[0140] Further, the statistical parameter includes a device quantity, the suppression condition includes that the device quantity is greater than or equal to a device quantity threshold of the target subnet, and the first processing unit 703 performs suppression alarm processing on the target subnet in a case where the statistical parameter of the service device with network disconnection in the target subnet meets the suppression condition, and is specifically configured to:

[0141] When the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet, perform suppression alarm processing on the target subnet.

[0142] Further, the first processing unit 703 is further configured to:

[0143] When the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet, perform network disconnection alarm on the service device with network disconnection in the target subnet.

[0144] Further, the first processing unit 703 is further configured to:

[0145] If there is no network disconnection alarm, cancel the suppression alarm processing on the target subnet, and perform network disconnection alarm on the service device in the target subnet that has network disconnection.

[0146] Further, the first processing unit 703 is further configured to:

[0147] If the target subnet is subjected to the suppression alarm processing, send a suppression alarm message, where the suppression alarm message is used to indicate that the target subnet is subjected to the suppression alarm.

[0148] If the target subnet is not subjected to the suppression alarm processing, delete the suppression alarm message.

[0149] Further, the first processing unit 703 is further configured to:

[0150] If the target subnet is subjected to the suppression alarm processing, if there is the sent suppression alarm message, increase the number of the sent suppression alarm message.

[0151] Further, the first processing unit 703 is further configured to:

[0152] If the service device is reconnected to the network, cancel the network disconnection alarm on the service device.

[0153] The present application performs suppression alarm processing on the target subnet if the number of service devices in the target subnet that have network disconnection is greater than or equal to the device number threshold of the target subnet, or performs network disconnection alarm on the service device in the target subnet that has network disconnection if the number of service devices in the target subnet that have network disconnection is less than the device number threshold of the target subnet, which helps to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario.

[0154] Please refer to Figure 8 , Figure 8 is a structural schematic diagram of a centralized management device provided by an embodiment of the present application. Specifically, the computer device comprises a memory 801 and a processor 802.

[0155] In an embodiment, the computer device further comprises a data interface 803, which is configured to transmit data information between the computer device and other devices.

[0156] The memory 801 can include a volatile memory; the memory 801 can also include a non-volatile memory; the memory 801 can also include a combination of the above-mentioned memories. The processor 802 can be a central processing unit (CPU). The processor 802 can further include a hardware chip. The hardware chip can be an application-specific integrated circuit (ASIC), a programmable logic device (PLD) or a combination thereof. The PLD can be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA) or any combination thereof.

[0157] The memory 801 is used to store programs, and the processor 802 can call the programs stored in the memory 801 to perform the following steps:

[0158] Obtain the service device in the service device set that appears network disconnection, determine the target subnet to which the network disconnection service device belongs;

[0159] Obtain the statistical parameters of the network disconnection service device in the target subnet;

[0160] In the case that the statistical parameters of the network disconnection service device in the target subnet meet the suppression condition, the target subnet is suppressed for alarm processing, wherein the suppression alarm processing is used to indicate that the network disconnection alarm of the service device in the target subnet is suppressed;

[0161] In the case that the statistical parameters of the network disconnection service device in the target subnet do not meet the suppression condition, the network disconnection alarm of the network disconnection service device in the target subnet is performed.

[0162] Further, when the processor 802 determines the target subnet to which the network disconnection service device belongs, it is specifically used for:

[0163] Obtain the network address information of the network disconnection service device;

[0164] Obtain the target address field in the plurality of address fields in the network address information, and determine the target subnet to which the network disconnection service device belongs according to the target address field.

[0165] Further, the statistical parameter comprises a device quantity, the suppression condition comprises that the device quantity is greater than or equal to a device quantity threshold of the target subnet, and the processor 802 is specifically configured to:

[0166] perform the suppression alarm processing on the target subnet when the statistical parameter of the service device with network disconnection in the target subnet satisfies the suppression condition.

[0167] Further, the processor 802 is further configured to:

[0168] perform the network disconnection alarm on the service device with network disconnection in the target subnet when the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet.

[0169] Further, the processor 802 is further configured to:

[0170] cancel the suppression alarm processing on the target subnet and perform the network disconnection alarm on the service device with network disconnection in the target subnet if there is no network disconnection alarm.

[0171] Further, the processor 802 is further configured to:

[0172] issue a suppression alarm message indicating that the target subnet is subjected to the suppression alarm in the case of performing the suppression alarm processing on the target subnet.

[0173] delete the suppression alarm message in the case of canceling the suppression alarm processing on the target subnet.

[0174] Further, the processor 802 is further configured to:

[0175] increase the number of the issued suppression alarm message in the case of performing the suppression alarm processing on the target subnet if there is the issued suppression alarm message.

[0176] Further, the processor 802 is further configured to:

[0177] cancel the network disconnection alarm on the service device in the case of network reconnection of the service device.

[0178] The application is helpful to avoid alarm channel congestion and improve the efficiency of alarm processing in the network disconnection scenario by performing the alarm suppression processing on the target subnet when the number of service devices with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet, or performing the network disconnection alarm on the service devices with network disconnection in the target subnet when the number of service devices with network disconnection in the target subnet is less than the device quantity threshold of the target subnet.

[0179] Those skilled in the art can also understand that the various illustrative logical blocks and steps listed in the embodiments of the application can be implemented by electronic hardware, computer software, or a combination of both. Whether the function is implemented by hardware or software depends on the specific application and design requirements of the whole system. Those skilled in the art can use various methods to implement the functions for each specific application, but such implementation should not be understood as beyond the scope of protection of the embodiments of the application.

[0180] The application further provides a server cluster, comprising a centralized management device and a plurality of service devices, wherein the centralized management device is connected with the plurality of service devices.

[0181] The application further provides a computer readable storage medium, which stores a computer program, and the computer program comprises program instructions, and the program instructions are executed by a computer to realize the functions of any of the method embodiments.

[0182] The computer readable storage medium comprises, but is not limited to, a flash memory, a hard disk, and a solid state disk.

[0183] The application further provides a computer program product, which is executed by a computer to realize the functions of any of the method embodiments.

[0184] The solutions described in this application can be implemented in various ways. For example, these techniques can be implemented using hardware, software, or a combination thereof. For a hardware implementation, the processing units used to perform the methods described above can be implemented within one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), processors, controllers, micro-controllers, microprocessors, other electronic units designed to perform the functions described above, a computer, or a combination thereof. The processor can be a microprocessor, but in the alternative, the processor can be any conventional processor, controller, microcontroller, or state machine. A processor can also be implemented as a combination of computing devices, e.g., a combination of a digital signal processor and a microprocessor, a plurality of microprocessors, one or more microprocessors in conjunction with a digital signal processor core, or any other such configuration.

[0185] In the embodiments described above, all or part of the methods can be implemented by software, hardware, firmware or any combination thereof. When implemented in software, all or part of the methods can be implemented in the form of a computer program product. The computer program product includes one or more computer instructions. When loaded and executed by a computer, all or part of the methods described in the embodiments of the present application are generated. The computer instructions can be stored in a computer readable storage medium or transferred from one computer readable storage medium to another computer readable storage medium.

[0186] In this application, the use of singular terms is intended to include the "one or more" unless otherwise specifically stated. In this application, "a plurality of" is intended to mean "two or more" unless otherwise specifically stated.

[0187] In addition, the term "and / or" in this application is only a description of the association relationship of the associated objects, which means that there can be three relationships, for example, A and / or B, which can represent the three cases of A alone, A and B together, and B alone, where A can be singular or plural, and B can be singular or plural.

[0188] The specification in this application (such as the specified time threshold range) can be understood as defining, pre-defining, storing, pre-storing, pre-negotiating, pre-configuring, solidifying, or pre-burning.

[0189] Those skilled in the art can understand that, for the convenience and brevity of description, the specific working processes of the servers and units described above can refer to the corresponding processes in the foregoing method embodiments, which will not be described herein again.

[0190] The same or similar parts among various embodiments in the present application can be referred to each other. In the various embodiments in the present application, and the various implementation manners / implementation methods / realization methods in each embodiment, if there is no special description and logical conflict, the terms and / or descriptions among different embodiments, and among the various implementation manners / implementation methods / realization methods in each embodiment are consistent and can be referred to each other, and the technical features in different embodiments, and in the various implementation manners / implementation methods / realization methods in each embodiment can be combined to form new embodiments, implementation manners, implementation methods, or realization methods according to the inherent logical relationship. The above-described implementation manners of the present application do not constitute a limitation on the protection scope of the present application.

Claims

1. An alarm processing method characterized by comprising: The method comprises: acquiring a service device in a service device set that has network disconnection, determining a target subnet to which the service device with network disconnection belongs; acquiring statistical parameters of the service device with network disconnection in the target subnet; in a case where the statistical parameters of the service device with network disconnection in the target subnet meet an inhibition condition, performing inhibition alarm processing on the target subnet, wherein the inhibition alarm processing is used to indicate that network disconnection alarm of the service device in the target subnet is inhibited; in a case where the statistical parameters of the service device with network disconnection in the target subnet do not meet the inhibition condition, performing network disconnection alarm on the service device with network disconnection in the target subnet.

2. The method of claim 1, wherein, The determination of the target subnet to which the service device with network disconnection belongs comprises: acquiring network address information of the service device with network disconnection; acquiring a target address field in a plurality of address fields in the network address information, and determining the target subnet to which the service device with network disconnection belongs according to the target address field.

3. The method of claim 1, wherein, The statistical parameters comprise a device quantity, the inhibition condition comprises that the device quantity is greater than or equal to a device quantity threshold of the target subnet, and the inhibition alarm processing on the target subnet in a case where the statistical parameters of the service device with network disconnection in the target subnet meet the inhibition condition comprises: when the device quantity of the service device with network disconnection in the target subnet is greater than or equal to the device quantity threshold of the target subnet, performing the inhibition alarm processing on the target subnet.

4. The method of claim 3, wherein, The method further comprises: when the device quantity of the service device with network disconnection in the target subnet is less than the device quantity threshold of the target subnet, performing network disconnection alarm on the service device with network disconnection in the target subnet.

5. The method of claim 4, wherein, The method further comprises: if there is no network disconnection alarm, canceling the inhibition alarm processing on the target subnet, and performing network disconnection alarm on the service device with network disconnection in the target subnet.

6. The method according to any one of claims 1 to 5, characterized in that, The method further comprises: in a case where the inhibition alarm processing is performed on the target subnet, sending an inhibition alarm message, wherein the inhibition alarm message is used to indicate that the target subnet is inhibited from alarm; in a case where the inhibition alarm processing on the target subnet is canceled, deleting the inhibition alarm message.

7. The method of claim 6, wherein, The method further comprises: in a case where the inhibition alarm processing is performed on the target subnet, if there is the sent inhibition alarm message, increasing a quantity of the sent inhibition alarm message.

8. The method according to any one of claims 1 to 5, wherein The method further comprises: in a case where network of the service device is reconnected, canceling the network disconnection alarm on the service device.

9. A centralized management device, characterized by, The centralized management device comprises a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to invoke the program instructions to execute the alarm processing method according to any one of claims 1 to 8. The centralized management device comprises a processor and a memory, the processor and the memory are connected to each other, wherein the memory is used to store a computer program, the computer program comprises program instructions, and the processor is configured to invoke the program instructions to execute the alarm processing method according to any one of claims 1 to 8.

10. A server cluster, characterized by The centralized management device and the plurality of service devices as claimed in claim 9 are included, and the centralized management device is connected to the plurality of service devices.

Citation Information

Patent Citations

  • Alarmprocessing method for network elements loss and system

    CN106776690A

  • Shielding method and device for equipment warning

    CN107769954A