Alarm method, alarm system and storage medium
By generating and transmitting alarm data by the analysis module, the alarm module performs multiple rules of alarm processing based on the network element data model and threshold parameters, solving the problem of poor accuracy of the alarm system in the prior art and realizing more efficient alarm management.
Patent Information
- Application Number
- CN202110785913.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-07-12
- Publication Date
- 2025-08-26
- Estimated Expiration
- 2041-07-12
AI Technical Summary
The existing alarm system cannot effectively collect alarm data in various situations, and the alarm rules are complex, resulting in poor alarm accuracy and it is difficult for testers to complete the test work if conditions do not allow.
The analysis module obtains the network element data model and threshold parameters, and generates alarm data including network element information and alarm rules. The alarm module performs alarm processing based on these data, and uses the first rule to judge based on one threshold value and the second rule to judge based on multiple threshold values.
It improves the accuracy and applicability of the alarm system, can accurately generate alarm results in different situations, simplifies testing work, and improves the efficiency of the alarm management system.
Smart Images

Figure CN115617621B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of alarm systems, and in particular to an alarm method, an alarm system and a storage medium. Background Art
[0002] With the rapid development of network technology, the types of network elements are increasing, and their specialization is also becoming increasingly stronger. In an application scenario, a large number of network elements are often in operation. To ensure the normal operation of network elements, an alarm management system is required to generate various alarms from different angles and statuses.
[0003] In existing technical solutions, alarm data needs to be collected periodically, and testers cannot collect all alarm data for testing when conditions do not permit. At the same time, in an application scenario, in addition to determining whether an alarm should be triggered based on a threshold, it is also necessary to determine whether an alarm should be triggered based on the results of integrating multiple event states, making the alarm rules highly complex.
[0004] In other words, common alarm methods cannot collect alarm data in various situations, and the alarm rules are highly complex, resulting in poor alarm accuracy. How to effectively improve alarm accuracy is an issue that needs to be urgently addressed. Summary of the Invention
[0005] The present application provides an alarm method, an alarm system and a storage medium, which improve the accuracy and applicability of the alarm system in issuing alarms.
[0006] The technical solution of this application is achieved as follows:
[0007] In a first aspect, the present application provides an alarm method, which is applied to an alarm system. The alarm system includes a parsing module and an alarm module. The method includes:
[0008] The parsing module obtains a network element data model and a network element threshold parameter, and generates alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information corresponding to the network element and an alarm rule; the alarm rule includes a first rule and a second rule; the first rule is used to determine whether an alarm condition is met based on a threshold, and the second rule is used to determine whether an alarm condition is met based on multiple thresholds;
[0009] The analysis module transmits the alarm data to the alarm module;
[0010] The alarm module performs alarm processing on the network element according to the alarm data and generates an alarm result of the network element.
[0011] In a second aspect, the present application provides an alarm system, the alarm system comprising a parsing module and an alarm module, the parsing module comprising an acquisition unit, a first generation unit and a transmission unit; the alarm module comprising a second generation unit,
[0012] The acquisition unit is used to acquire the network element data model and the network element threshold parameters;
[0013] The first generating unit is configured to generate alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information corresponding to the network element and an alarm rule; the alarm rule includes a first rule and a second rule; the first rule is configured to determine whether an alarm condition is satisfied based on a single threshold value, and the second rule is configured to determine whether an alarm condition is satisfied based on multiple threshold values;
[0014] The transmission unit is used to transmit the alarm data to the alarm module;
[0015] The second generating unit is configured to perform alarm processing on the network element according to the alarm data, and generate an alarm result for the network element.
[0016] In a third aspect, the present application provides an alarm system, which includes: a parsing module and an alarm module. The alarm system also includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the alarm method described above is implemented.
[0017] In a fourth aspect, the present application provides a computer-readable storage medium storing a program for use in an alarm system, wherein the alarm system includes: a parsing module and an alarm module. When the program is executed by a processor, the alarm method described above is implemented.
[0018] The present application provides an alarm method, an alarm system, and a storage medium. The alarm method is applied to an alarm system, wherein the alarm system includes a parsing module and an alarm module. The method includes the parsing module obtaining a network element data model and a network element threshold parameter, and generating alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether an alarm condition is satisfied based on a threshold, and the second rule is used to determine whether an alarm condition is satisfied based on multiple thresholds; the parsing module transmits the alarm data to the alarm module; the alarm module performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element. That is, in an embodiment of the present application, the parsing module can generate corresponding alarm data based on the network element data model and the network element threshold parameter, the alarm data including the network element information and the alarm rule corresponding to the network element; further, the alarm module performs alarm processing on the network element based on the second rule or the first rule based on the alarm data provided by the parsing module and generates an alarm result. It can be seen that the parsing module can provide a comprehensive and effective data source for the alarm module based on the network element data model, and the alarm data includes the alarm rules of the network element, so that the alarm module can use different alarm strategies to perform alarm processing for the second rule or the first rule respectively, thereby improving the alarm accuracy and applicability of the alarm system. BRIEF DESCRIPTION OF THE DRAWINGS
[0019] Figure 1 Schematic diagram of the structure of the alarm system proposed in this application Figure 1 ;
[0020] Figure 2 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 1 ;
[0021] Figure 3 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 2 ;
[0022] Figure 4 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 3 ;
[0023] Figure 5 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 4 ;
[0024] Figure 6 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 5 ;
[0025] Figure 7 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 6 ;
[0026] Figure 8 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 7 ;
[0027] Figure 9 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 8 ;
[0028] Figure 10 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 9 ;
[0029] Figure 11 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 10 ;
[0030] Figure 12 This is a schematic diagram of the event-driven directed graph proposed in this application;
[0031] Figure 13 A schematic diagram of the alarm method proposed in this application;
[0032] Figure 14 Schematic diagram of the structure of the alarm system proposed in this application Figure 2 ;
[0033] Figure 15 Schematic diagram of the composition structure of the alarm system proposed in this application Figure 3 ;
[0034] Figure 16 Schematic diagram of the composition structure of the alarm system proposed in this application Figure 4 . DETAILED DESCRIPTION
[0035] The following will be combined with the accompanying drawings to clearly and completely describe the technical solutions of this application. It should be understood that the specific embodiments described herein are only used to illustrate the related application and are not intended to limit the application. It should also be noted that for ease of description, only the portions relevant to the related application are shown in the drawings.
[0036] With the rapid development of network technology, the types of network elements (NEs) are proliferating, and their specialization is becoming increasingly complex. In a single application scenario, numerous NEs are often operational. To ensure their normal operation, an alarm management system must generate various alarms based on different perspectives and statuses. However, due to the specialized nature of NE data and its frequent inclusion of user privacy, testers struggle to obtain authentic test data. Furthermore, alarm rules often rely on a series of event states, rather than simple field thresholds, to determine whether an alarm is triggered. This complexity significantly increases the difficulty of system testing, forcing testers to devote significant effort to analyzing whether the NE data itself will trigger an alarm. Furthermore, there's no guarantee that the alarm management system will correctly manage alarm data within the limited timeframe.
[0037] Existing technical solutions do not yet offer a proposal specifically for generating test data for alarm data. Existing alarm data testing methods rely on existing data push, requiring periodic collection of alarm information. This makes it impossible to collect all alarm data for testing when conditions permit. Existing technologies typically periodically collect alarm information from each network management server and perform state transitions on the alarm information of the respective network management server based on a finite state machine model. For unavailable data, test data is manually constructed in the database, making it difficult to cover all alarm scenarios and limiting the ability to generate alarms for large amounts of data. Furthermore, when faced with certain secondary rules, testers often need to spend considerable time and effort evaluating the alarm results based on the network data before verifying the correctness of the alarm management system's alarm function. Consequently, existing technical solutions are unable to collect alarm data for all situations. Furthermore, the alarm rules are complex, resulting in poor alarm accuracy.
[0038] To address the problems existing in existing alarm systems when generating alarms, the present application provides an alarm method, an alarm system, and a storage medium. Specifically, a parsing module obtains a network element data model and network element threshold parameters, and generates alarm data based on the network element data model and the network element threshold parameters. The alarm data includes network element information and alarm rules corresponding to the network element. The alarm rules include a first rule and a second rule. The first rule is used to determine whether an alarm condition is met based on a threshold, and the second rule is used to determine whether an alarm condition is met based on multiple thresholds. The parsing module transmits the alarm data to the alarm module. The alarm module performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element. This improves the accuracy and effectiveness of the alarm system's alarms.
[0039] The technical solutions in this application will be described clearly and completely below in conjunction with the accompanying drawings in this application.
[0040] Example 1
[0041] This application provides an alarm method, which is applied to an alarm system. Figure 1 Schematic diagram of the alarm system structure Figure 1 ,like Figure 1 As shown, the alarm system 10 may include an analysis module 11 and an alarm module 12 .
[0042] In an embodiment of the present application, the analysis module in the alarm system can be used to generate alarm data, and then transmit the alarm data to the alarm module, and the alarm module performs alarm processing according to the alarm data provided by the analysis module.
[0043] Figure 2 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 1 ,like Figure 2 As shown, in an embodiment of the present application, the alarm method may include the following steps:
[0044] Step 101. The parsing module obtains the network element data model and the network element threshold parameters, and generates alarm data based on the network element data model and the network element threshold parameters; wherein the alarm data includes the network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether the alarm condition is met based on a threshold, and the second rule is used to determine whether the alarm condition is met based on multiple thresholds.
[0045] In an embodiment of the present application, when the alarm system issues an alarm, it first needs to obtain the network element data model and network element threshold parameters through the parsing module, that is, input the network element data model and network element threshold parameters into the parsing module, and then enable the parsing module to generate alarm data based on the obtained network element data model and network element threshold parameters.
[0046] It should be noted that in the embodiments of the present application, the parsing module in the alarm system obtains a network element data model according to a preset format. The network element data model is a model that includes the network element name and network element attributes. Information such as the network element name and network element attributes is written into a table in a preset format to obtain the network element data model. The network element name is the name of the network element, which is equivalent to the network element identifier; the network element attributes can include information such as the algorithm and meaning corresponding to the network element. In other words, information such as the network element name and network element attributes can all be expressed in a preset format. The network element data model is then input into the parsing module, which parses the network element data model to obtain network element information corresponding to the network element and, in combination with the network element threshold parameters, obtains alarm data.
[0047] It should be noted that, in an embodiment of the present application, the network element threshold parameter may include an alarm threshold and a number of alarms corresponding to the network element. The alarm threshold is a preset threshold for the state corresponding to the network element, and different states may correspond to different thresholds. The threshold is used to determine whether the state of the network element is abnormal; the number of alarms is the number of alarms required by the network element, which is used to indicate the number of alarm information generated by the network element. The number of alarms may correspond to the alarm threshold, for example, one alarm threshold may correspond to one alarm number.
[0048] In an embodiment of the present application, after the parsing module parses the network element data model to obtain network element information corresponding to the network element, an alarm rule is assigned to the network element based on the network element threshold parameter. The alarm rule is assigned in such a way that the parsing module receives an alarm rule write instruction, wherein the alarm rule write instruction carries the network element threshold parameter including the alarm threshold and the number of alarms corresponding to the network element. Then, the parsing module can respond to the alarm rule write instruction and write the network element threshold parameter into the network element information to generate the alarm rule.
[0049] It should be noted that, in the embodiment of the present application, the alarm data may include network element information and alarm rules corresponding to at least one network element, and the network element information and alarm rules corresponding to different network elements may be different.
[0050] Thus, based on the analysis of the network element data model by the parsing module, network element information is generated. Simultaneously, the network element threshold parameters are written into the network element information to obtain the alarm rules corresponding to the network element, thereby generating alarm data. Therefore, the alarm data can include both the network element information and the alarm rules corresponding to the network element. In other words, the parsing module generates alarm data based on the network element data model and the network element threshold parameters.
[0051] In an embodiment of the present application, the alarm rules can be divided into a first rule and a second rule. The first rule is used to determine whether the alarm condition is met based on a threshold value. For example, when a certain status data of a network element is greater than or equal to the threshold value, the alarm system determines that the alarm condition is met and generates an alarm message for this network element. The second rule is used to determine whether the alarm condition is met based on multiple threshold values. For example, when the status data of a network element in a certain period exceeds the corresponding threshold value, the alarm system does not immediately determine whether to generate an alarm message for this network element, but may obtain the status data of this network element in the previous period. The alarm system determines whether the alarm condition is met by comparing the status data of the previous period with the corresponding threshold value. Alternatively, when a certain status data of a network element exceeds the corresponding threshold value, the alarm system obtains another status data of this network element. If the other status data also exceeds the corresponding threshold value, the alarm system determines that the alarm condition is met and generates an alarm message for this network element.
[0052] Step 102: The analysis module transmits the alarm data to the alarm module.
[0053] In an embodiment of the present application, after the analysis module of the alarm system obtains the network element data model and the network element threshold parameters and generates alarm data according to the network element data model and the network element threshold parameters, the analysis module transmits the alarm data to the alarm module.
[0054] In an embodiment of the present application, the transmission method by which the analysis module transmits the alarm data to the alarm module can be selected according to the connection method. For example, if the connection method between the analysis module and the alarm module is a wireless connection, the analysis module can transmit the alarm data to the alarm module via the wireless communication function module; if the connection method between the analysis module and the alarm module is a physical connection, the alarm data can be transmitted to the alarm module via an interface transmission method.
[0055] Step 103: The alarm module performs alarm processing on the network element according to the alarm data and generates an alarm result of the network element.
[0056] In an embodiment of the present application, after the alarm module of the alarm system receives the alarm data transmitted by the analysis module, the alarm module performs alarm processing on the network element according to the alarm data and generates an alarm result of the network element.
[0057] It should be noted that in the embodiments of the present application, the alarm module can be used to perform specific alarm processing, that is, the specific alarm processing process is carried out in the alarm module of the alarm system. Therefore, after obtaining the alarm data, the alarm result corresponding to the network element can be generated according to the alarm data.
[0058] In an embodiment of the present application, the alarm result can be generating alarm information for the network element or not generating alarm information. Accordingly, if alarm information is generated, the alarm information of this network element can be viewed in the alarm system; if alarm information is not generated, the alarm information of this network element cannot be viewed in the alarm system.
[0059] In the embodiment of the present application, since different network elements correspond to different network element information and alarm rules, the alarm module adopts different alarm processing methods when performing alarm processing on different network elements.
[0060] In an embodiment of the present application, the alarm rules include the second rule and the first rule. Therefore, when the alarm module performs alarm processing on the network element, it performs alarm processing on the network element according to the processing method corresponding to the alarm rule. If the alarm rule corresponding to the network element is the second rule, then the alarm processing of the network element is performed according to the preset alarm strategy; if the alarm rule corresponding to the network element is the first rule, then the alarm processing of the network element is performed according to the threshold judgment method. Therefore, in an embodiment of the present application, the alarm module of the alarm system can adopt different processing methods for alarm processing according to different alarm rules corresponding to the network element, thereby improving the applicability of the alarm system.
[0061] Figure 3 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 2 ,like Figure 2 As shown, in an embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data, and the method for generating the alarm result of the network element may include the following steps:
[0062] Step 103a: If the alarm rule is the second rule, the alarm module performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result for the network element.
[0063] In an embodiment of the present application, when the alarm module in the alarm system performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element, if the alarm rule is the second rule, the alarm module performs alarm processing on the network element based on the alarm data and the preset alarm strategy and generates an alarm result for the network element.
[0064] It should be noted that in the embodiments of this application, the preset alarm strategy is an event-driven directed graph method, which uses a certain state of the network element as a starting point and calls and advances other states until the alarm result of the network element is obtained. Therefore, in the embodiments of this application, using the preset alarm strategy to process the second rule can make the alarm system more accurate when facing the second rule.
[0065] In the embodiment of the present application, the second rule may have multiple situations, and the following examples of the present application are only some of the situations of the second rule. Figure 4 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 3 ,like Figure 4 As shown, in an embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and the method for generating the alarm result of the network element includes the following steps:
[0066] Step 103a1. Determine the first threshold and floating threshold corresponding to the first state of the network element, and the first data corresponding to the first state of the network element in the current cycle based on the alarm data; wherein the first state is one of multiple operating states of the network element; the first data is the operating data of the network element in the first state in the current cycle.
[0067] In an embodiment of the present application, the alarm module of the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result for the network element. Specifically, the alarm module can first determine the first threshold and floating threshold corresponding to the first state of the network element, and the first data corresponding to the first state of the network element in the current cycle based on the alarm data; wherein the first state is one of the multiple operating states of the network element; the first data is the operating data of the network element in the first state in the current cycle.
[0068] It should be noted that in the embodiments of the present application, each network element can have multiple states, such as a first state, a second state, etc., and the specific state type and number are not limited in this application. The data in the network element state is updated according to a fixed period, and the data represents the specific numerical value of the state in each period. Each state of the network element has a corresponding threshold value, which is used to determine whether the state is abnormal. When the data in the state exceeds the threshold value, it means that the state of the network element is abnormal. The floating threshold value is used to determine whether the floating range of the state in the current cycle data is abnormal compared with the data in the previous cycle.
[0069] It can be understood that, in the embodiment of the present application, the first data refers to the operating data of the first state among multiple states of the network element during the operation of the current cycle.
[0070] Based on this, after obtaining the alarm data, the alarm module first determines the first threshold and floating threshold corresponding to the first state of the network element, and the first data corresponding to the first state of the network element in the current cycle based on the alarm data, and then the alarm module performs alarm processing based on the above data.
[0071] Step 103a2: If the first data is greater than or equal to the first threshold, the alarm module obtains second data corresponding to the first state of the network element in the previous cycle from the alarm data; wherein the second data is the operating data of the network element in the first state in the previous cycle.
[0072] In an embodiment of the present application, after the alarm module of the alarm system determines the first threshold and floating threshold corresponding to the first state of the network element, and the first data corresponding to the first state of the network element in the current cycle based on the alarm data, if the first data is greater than or equal to the first threshold, the alarm module obtains the second data corresponding to the first state of the network element in the previous cycle from the alarm data; wherein, the second data is the operating data of the network element in the first state in the previous cycle.
[0073] It can be understood that, in the embodiment of the present application, the second data refers to the operation data of the first state of the network element during the operation process of the previous cycle.
[0074] In an embodiment of the present application, after obtaining the first data corresponding to the first state in the current cycle, the alarm module compares the first data with the first threshold and determines that the first data is greater than or equal to the first threshold, which indicates that the first state is abnormal. However, the alarm module does not directly generate alarm information for the network element based on the first state being abnormal, but continues to combine the second data of the first state in the previous cycle to determine whether to generate alarm information for the network element, that is, the alarm module obtains the corresponding second data of the first state in the previous cycle from the network element information.
[0075] Step 103a3: perform a difference operation on the first data and the second data to obtain a floating value in a first state.
[0076] In an embodiment of the present application, if the alarm module determines that the first data is greater than or equal to the first threshold, the alarm module obtains the second data corresponding to the first state of the network element in the previous cycle from the network element information, and then the alarm module performs a difference operation on the first data and the second data to obtain the floating value of the first state.
[0077] It should be noted that in an embodiment of the present application, a difference operation is performed on the first data and the second data, and the floating value of the first state obtained represents the floating situation of the first state in the current cycle compared with the data in the previous cycle, and then it is determined whether to generate an alarm information of the network element based on the floating value.
[0078] Step 103a4: If the floating value is greater than or equal to the floating threshold, the alarm module generates alarm information for the network element.
[0079] In an embodiment of the present application, the alarm module performs a difference operation on the first data and the second data to obtain a floating value of the first state. If the floating value is greater than or equal to the floating threshold, the alarm module generates alarm information for the network element.
[0080] In an embodiment of the present application, the floating threshold is used to determine whether the data floating range of the state is within the normal range. Therefore, if the floating value is greater than or equal to the floating threshold, it means that the floating range of the first state of the network element is greater than or equal to the floating threshold, then it is determined that the first state of the network element is abnormal, and an alarm needs to be issued for the network element, so that the alarm module generates alarm information for the network element.
[0081] For example, Figure 5 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 4 ,like Figure 5As shown, in the embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result of the network element, that is, step 103a, which may include the following steps:
[0082] Step 103a5: Determine first data and a first threshold corresponding to the first state of the network element based on the alarm data.
[0083] In an embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, generates an alarm result for the network element, and can first determine the first data and the first threshold corresponding to the first state of the network element based on the alarm data.
[0084] Step 103a6: If the first data is greater than or equal to the first threshold, the alarm module obtains third data and a second threshold corresponding to the second state of the network element from the alarm data; wherein the second state is another operating state among multiple operating states of the network element that is different from the first state; and the third data is the operating data of the second state of the network element.
[0085] In an embodiment of the present application, after the alarm module in the alarm system determines the first data and the first threshold corresponding to the first state of the network element based on the alarm data, if the first data is greater than or equal to the first threshold, the alarm module obtains the third data and the second threshold corresponding to the second state of the network element from the network element information.
[0086] That is to say, in an embodiment of the present application, after the alarm module determines that the first data is greater than or equal to the first threshold, it indicates that the first state is in an abnormal state at this time, but the alarm module does not directly generate an alarm for the network element, but continues to obtain the third data and the second threshold corresponding to the second state of the network element from the alarm data, that is, comprehensively judges whether an alarm needs to be generated based on the status of the second state.
[0087] It should be noted that in the embodiments of the present application, the second state is different from the first state, but both the second state and the first state correspond to a network element. The second threshold is the threshold corresponding to the second state and is used to determine whether the second state is abnormal. Therefore, when the first state is abnormal, the second state of the network element can be further checked. If the second state is also abnormal, an alarm message can be generated for the network element.
[0088] Step 103a7: If the third data is greater than or equal to the second threshold, the alarm module generates alarm information for the network element.
[0089] In an embodiment of the present application, if the first data is greater than or equal to the first threshold, the alarm module obtains the third data and the second threshold corresponding to the second state of the network element from the network element information. If the third data is greater than or equal to the second threshold, the alarm module generates alarm information for the network element.
[0090] In an embodiment of the present application, if the second data is greater than or equal to the second threshold, it means that the second state of the network element is also in an abnormal state, and it is determined that an alarm needs to be generated for the network element, so that the alarm module generates alarm information for the network element.
[0091] For example, Figure 6 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 5 ,like Figure 6 As shown, in the embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result of the network element, that is, step 103a, which may include the following steps:
[0092] Step 103a8: Determine the first data and threshold set corresponding to the first state of the network element based on the alarm data; wherein the threshold set includes m first thresholds arranged from small to large; the m first thresholds correspond to m alarm levels; and m is an integer greater than 1.
[0093] In an embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result for the network element. Specifically, the alarm module can first determine the first data and threshold set corresponding to the first state of the network element based on the alarm data; wherein the threshold set includes m first thresholds arranged from small to large; the m first thresholds correspond to m alarm levels; and m is an integer greater than 1.
[0094] In an embodiment of the present application, unlike the first rule, under the second rule, the alarm module needs to generate alarm information of different levels. Different states can correspond to different threshold sets, and the threshold set provides the alarm module with thresholds of different levels. Exemplarily, the threshold set corresponding to the first state of the network element includes m first thresholds arranged from small to large; the m first thresholds correspond to m alarm levels; and m is an integer greater than 1.
[0095] It should be noted that, in the embodiment of the present application, the m first thresholds are arranged from small to large, and correspondingly, the m alarm levels are also arranged from low to high.
[0096] Step 103a9: Compare the first data with the m first thresholds in sequence to obtain a comparison result.
[0097] In an embodiment of the present application, after the alarm module in the alarm system determines the first data and threshold set corresponding to the first state of the network element based on the alarm data, it compares the first data with m first thresholds in sequence to obtain a comparison result.
[0098] In the embodiment of the present application, the comparison result may be used as a basis for the alarm module to generate alarm information of a certain level for the first state of the network element.
[0099] Step 103a10: If the comparison result is that the first data is greater than or equal to the nth first threshold and less than the (n+1)th first threshold, the alarm module generates an alarm message according to the alarm level corresponding to the nth first threshold; wherein (n+1) is an integer less than or equal to m.
[0100] In an embodiment of the present application, the alarm module compares the first data with m first thresholds in sequence. After obtaining the comparison result, if the comparison result is that the first data is greater than or equal to the nth first threshold and less than the (n+1)th first threshold, the alarm module generates an alarm information according to the alarm level corresponding to the nth first threshold; wherein (n+1) is an integer less than or equal to m.
[0101] It should be noted that in an embodiment of the present application, if the comparison result is that the first data is greater than or equal to the nth first threshold among the m first thresholds, and less than the (n+1)th first threshold, then it means that the first data corresponding to the first state of the network element is abnormal and meets the alarm level corresponding to the nth first threshold. It is necessary to generate alarm information of the alarm level corresponding to the nth first threshold for the network element. Therefore, the alarm module generates alarm information according to the alarm level corresponding to the nth first threshold.
[0102] Figure 7 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 6 ,like Figure 7 As shown, in the embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and generates an alarm result of the network element, that is, step 103, which may include the following steps:
[0103] Step 103b: If the alarm rule is the first rule, the alarm module obtains first data and a first threshold corresponding to the first state of the network element.
[0104] In an embodiment of the present application, the alarm module in the alarm system performs alarm processing on the network element according to the alarm data and generates an alarm result for the network element. Specifically, if the alarm rule is the first rule, the alarm module obtains the first data and the first threshold corresponding to the first state of the network element.
[0105] In the embodiment of the present application, when the alarm rule is the first rule, the alarm information can be generated by directly comparing the data of the network element status with the corresponding threshold.
[0106] Step 103c: If the first data is greater than or equal to the first threshold, the alarm module generates alarm information for the network element.
[0107] In an embodiment of the present application, if the alarm rule is the first rule, after the alarm module obtains the first data and the first threshold corresponding to the first state of the network element, if the first data is greater than or equal to the first threshold, the alarm module generates alarm information for the network element.
[0108] In an embodiment of the present application, if the first data of the network element is greater than or equal to the first threshold, it means that the first state corresponding to the network element is abnormal and an alarm is required. Therefore, the alarm module generates alarm information of the network element.
[0109] Figure 8 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 7 ,like Figure 8 As shown, in the embodiment of the present application, the parsing module generates alarm data according to the network element data model and the network element threshold parameter, that is, step 102. The alarm method may include the following steps:
[0110] Step 102a: The parsing module parses the network element data model to obtain network element information.
[0111] In an embodiment of the present application, a parsing module in the alarm system generates alarm data according to a network element data model and network element threshold parameters. Specifically, the parsing module first parses the network element data model to obtain network element information.
[0112] Step 102b: The analysis module generates alarm data according to the network element information and the network element threshold parameters.
[0113] In an embodiment of the present application, after the parsing module parses the network element data model to obtain network element information, it generates alarm data according to the network element information and network element threshold parameters.
[0114] Figure 9 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 8 ,like Figure 9 As shown, in the embodiment of the present application, after the parsing module of the alarm system obtains the network element data model and the network element threshold parameters and generates alarm data according to the network element data model and the network element threshold parameters, that is, after step 101, the alarm method may further include the following steps:
[0115] Step 104: The parsing module receives an update instruction corresponding to the network element data model.
[0116] In an embodiment of the present application, the parsing module in the alarm system may also generate updated network element information according to the updated network element data model. Specifically, the parsing module first receives an update instruction corresponding to the network element data model.
[0117] It should be noted that in the embodiments of the present application, the update instruction is used to instruct the parsing module to update the network element information. When the network element data model changes, it indicates that the corresponding network element information needs to be generated according to the new network element data model. Therefore, the parsing module receives the update instruction and then generates the updated network element information according to the update instruction.
[0118] Step 105: The parsing module updates the network element information according to the update instruction.
[0119] In an embodiment of the present application, after receiving an update instruction corresponding to the network element data model, the parsing module updates the network element information according to the update instruction.
[0120] The present application provides an alarm method, an alarm system, and a storage medium. The alarm method is applied to an alarm system, wherein the alarm system includes a parsing module and an alarm module. The method includes the parsing module obtaining a network element data model and a network element threshold parameter, and generating alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether an alarm condition is satisfied based on a threshold, and the second rule is used to determine whether an alarm condition is satisfied based on multiple thresholds; the parsing module transmits the alarm data to the alarm module; the alarm module performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element. That is, in an embodiment of the present application, the parsing module can generate corresponding alarm data based on the network element data model and the network element threshold parameter, the alarm data including the network element information and the alarm rule corresponding to the network element; further, the alarm module performs alarm processing on the network element based on the second rule or the first rule based on the alarm data provided by the parsing module and generates an alarm result. It can be seen that the parsing module can provide a comprehensive and effective data source for the alarm module based on the network element data model, and the alarm data includes the alarm rules of the network element, so that the alarm module can use different alarm strategies to perform alarm processing for the second rule or the first rule respectively, thereby improving the alarm accuracy and applicability of the alarm system.
[0121] Example 2
[0122] In another embodiment of the present application, Figure 10 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 9 ,like Figure 10 As shown, in an embodiment of the present application, the alarm method may include the following steps:
[0123] Step 201: Acquire network element data model and network element threshold parameters and generate alarm data.
[0124] In an embodiment of the present application, when implementing alarm functions, the alarm system first obtains the network element data model and network element threshold parameters through the alarm system's parsing module. The network element data model includes the network element name and network element attributes; the network element threshold parameters include the alarm threshold and the number of alarms. The parsing module then generates network element information based on the obtained network element data model, writes the network element threshold parameters into the network element attributes in the network element information, generates alarm rules corresponding to the network element, and finally generates alarm data based on the network element information and alarm rules.
[0125] Step 202: The analysis module transmits the alarm data to the alarm module.
[0126] In an embodiment of the present application, the analysis module transmits the alarm data to the alarm module, so that the alarm module performs alarm processing according to the received alarm data.
[0127] Step 203 : The alarm module determines whether to perform alarm processing on the network element based on the alarm data. If so, execute step 204 ; otherwise, execute step 205 .
[0128] In an embodiment of the present application, after obtaining the alarm data, the alarm module determines whether to generate an alarm for the network element based on the alarm rules; wherein the alarm rules can be divided into the first rule and the second rule. Furthermore, the alarm module performs alarm processing on the network element according to the alarm rule corresponding to each network element: if the alarm rule corresponding to the network element is the second rule, the preset alarm strategy is used to perform alarm processing on the network element; if the alarm rule corresponding to the network element is a simple alarm rule, the alarm is directly processed according to the threshold corresponding to the network element.
[0129] Step 204: Generate alarm information.
[0130] In an embodiment of the present application, if the alarm module determines that an alarm needs to be issued to a network element, an alarm message is generated, and the alarm message can be viewed in the alarm system.
[0131] Step 205: No alarm information is generated.
[0132] In an embodiment of the present application, if the alarm module determines that it is not necessary to issue an alarm to the network element, no alarm information is generated, and the alarm information cannot be viewed in the alarm system.
[0133] Figure 11 Schematic diagram of the implementation process of the alarm method proposed in this application Figure 10 ,like Figure 11 As shown, in an embodiment of the present application, the alarm method under the first rule may include the following steps:
[0134] Step 301: Obtain network element information from alarm data.
[0135] In an embodiment of the present application, when faced with the first rule, the alarm module first obtains network element information corresponding to the network element from the alarm data, and then determines whether to generate alarm information for the network element based on the network element information corresponding to the network element.
[0136] Step 302 : Determine whether the value is greater than or equal to the threshold value. If so, execute step 303 ; otherwise, execute step 304 .
[0137] In an embodiment of the present application, whether an alarm needs to be issued to a network element is determined based on a threshold value. If data corresponding to a certain state of the network element is greater than or equal to the threshold value, an alarm is issued to the network element.
[0138] Step 303: Generate alarm information.
[0139] In an embodiment of the present application, if the alarm module determines that the data corresponding to a certain state of the network element is greater than or equal to a threshold, an alarm message is generated for the network element, and the alarm message can be viewed in the alarm system.
[0140] Step 304: No alarm information is generated.
[0141] In an embodiment of the present application, if the alarm module determines that the data corresponding to a certain state of the network element is less than a threshold, there is no need to generate alarm information for the network element, and the alarm information cannot be viewed in the alarm system.
[0142] In an embodiment of the present application, when the alarm module performs alarm processing on the network element under the second rule, the alarm module may perform alarm processing on the network element in a manner of event-driven directed graph. Figure 12 This is a schematic diagram of the event-driven directed graph proposed in this application, such as Figure 12 As shown, in the embodiment of the present application, under the second rule,
[0143] For example, when the alarm module determines that the status 1 of the network element is abnormal, it continues to check the data of the status 1 of the network element A in the previous cycle, and determines whether the data floating range of the status 1 exceeds the floating threshold by comparing it with the data of the previous cycle. If it exceeds the floating threshold, the alarm module generates an alarm message to the network element A, and the alarm message is displayed in the alarm system.
[0144] For example, when the alarm module determines that state 1 of the network element is abnormal, it continues to check the data of state 2, and determines whether state 1 and state 2 exceed the threshold at the same time, that is, whether they are abnormal states at the same time. If state 1 and state 2 of the network element both exceed the threshold and are abnormal states at the same time, the alarm module generates an alarm message to network element A, and displays the alarm message in the alarm system.
[0145] For example, when the alarm module determines that the state 1 of the network element in the current cycle is abnormal, the alarm module determines that the data of state 1 is greater than or equal to a certain level threshold, and then based on the judgment result, the alarm module generates corresponding alarm information of different levels, thereby displaying the alarm information in the alarm system.
[0146] Figure 13 A schematic diagram of the alarm method proposed in this application, such as Figure 13 As shown, in an embodiment of the present application, after obtaining the network element data model from the client, the parsing module parses the network element data model to obtain alarm data, and then the parsing module transmits the alarm data to the alarm module, and the alarm module completes the final alarm function based on the alarm data.
[0147] The present application provides an alarm method, an alarm system, and a storage medium. The alarm method is applied to an alarm system, wherein the alarm system includes a parsing module and an alarm module. The method includes the parsing module obtaining a network element data model and a network element threshold parameter, and generating alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether an alarm condition is satisfied based on a threshold, and the second rule is used to determine whether an alarm condition is satisfied based on multiple thresholds; the parsing module transmits the alarm data to the alarm module; the alarm module performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element. That is, in an embodiment of the present application, the parsing module can generate corresponding alarm data based on the network element data model and the network element threshold parameter, the alarm data including the network element information and the alarm rule corresponding to the network element; further, the alarm module performs alarm processing on the network element based on the second rule or the first rule based on the alarm data provided by the parsing module and generates an alarm result. It can be seen that the parsing module can provide a comprehensive and effective data source for the alarm module based on the network element data model, and the alarm data includes the alarm rules of the network element, so that the alarm module can use different alarm strategies to perform alarm processing for the second rule or the first rule respectively, thereby improving the alarm accuracy and applicability of the alarm system.
[0148] Example 3
[0149] Based on the above embodiment, in another embodiment of the present application, Figure 14 Schematic diagram of the structure of the alarm system proposed in this application Figure 2 ,like Figure 14 As shown, the parsing module in the alarm system may include an acquisition unit 111, a first generation unit 112, a transmission unit 113, a receiving unit 114 and an updating unit 115; Figure 15 Schematic diagram of the structure of the alarm system proposed in this application Figure 3 ,like Figure 15 As shown, the alarm module in the alarm system may include a second generating unit 121 .
[0150] The acquisition unit 111 is configured to acquire a network element data model and a network element threshold parameter;
[0151] The generation unit 14 is used to generate alarm data based on the network element data model and the network element threshold parameters; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether the alarm condition is met based on a threshold, and the second rule is used to determine whether the alarm condition is met based on multiple thresholds.
[0152] The transmission unit 113 is configured to transmit the alarm data to the alarm module.
[0153] The second generating unit 121 is configured to perform alarm processing on the network element according to the alarm data, and generate an alarm result for the network element.
[0154] Furthermore, the second generating unit 121 is specifically configured to, if the alarm rule is the second rule, cause the alarm module to perform alarm processing on the network element according to the alarm data and a preset alarm strategy, and generate an alarm result for the network element.
[0155] Furthermore, the second generation unit 121 is also specifically used to determine the first threshold and floating threshold corresponding to the first state of the network element, and the first data corresponding to the first state of the network element in the current cycle based on the alarm data; if the first data is greater than or equal to the first threshold, the alarm module obtains the second data corresponding to the first state of the network element in the previous cycle from the alarm data; performs a difference operation on the first data and the second data to obtain the floating value of the first state; if the floating value is greater than or equal to the floating threshold, the alarm module generates alarm information for the network element.
[0156] Furthermore, the second generation unit 121 is also specifically used to determine the first data and first threshold corresponding to the first state of the network element based on the alarm data; if the first data is greater than or equal to the first threshold, the alarm module obtains the third data and second threshold corresponding to the second state of the network element from the alarm data; if the third data is greater than or equal to the second threshold, the alarm module generates alarm information for the network element.
[0157] Furthermore, the second generation unit 121 is also specifically used to determine the first data and threshold set corresponding to the first state of the network element based on the alarm data; wherein the threshold set includes m first thresholds arranged from small to large; the m first thresholds correspond to m alarm levels; m is an integer greater than 1; the first data is compared with the m first thresholds in turn to obtain a comparison result; if the comparison result is that the first data is greater than or equal to the nth first threshold and less than the (n+1)th first threshold, then the alarm module generates the alarm information according to the alarm level corresponding to the nth first threshold; wherein (n+1) is an integer less than or equal to m.
[0158] Furthermore, the second generation unit 121 is also specifically used to, if the alarm rule is the first rule, the alarm module obtains the first data and first threshold corresponding to the first state of the network element; if the first data is greater than or equal to the first threshold, the alarm module generates alarm information for the network element.
[0159] Furthermore, the first generating unit 112 is specifically configured for the parsing module to parse the network element data model to obtain the network element information; the parsing module generates the alarm data according to the network element information and the network element threshold parameter.
[0160] Furthermore, the acquisition unit 111 is further configured to acquire the network element data model according to a preset format; wherein the network element data model includes a network element name and network element attributes.
[0161] Further, the receiving unit 114 is used for the parsing module to receive the update instruction corresponding to the network element model.
[0162] The updating unit 115 is configured for the parsing module to update the network element information according to the updating instruction.
[0163] Figure 16 Schematic diagram of the composition structure of the alarm system proposed in this application Figure 4 ,like Figure 16 As shown, the alarm system 10 proposed in this application may also include a processor 13, a memory 14 storing executable instructions of the processor 13, and further, the alarm system 10 may also include a communication interface 15, and a bus 16 for connecting the processor 13, the memory 14 and the communication interface 15.
[0164] In an embodiment of the present application, the processor 13 may be at least one of an application-specific integrated circuit (ASIC), a digital signal processor (DSP), a digital signal processing device (DSPD), a programmable logic device (PLD), a field programmable gate array (FPGA), a central processing unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the functions of the processor may also be other, and this application does not specifically limit this. The processor 13 may also include a memory 14, which may be connected to the processor 13, wherein the memory 14 is used to store executable program code, the program code including computer operating instructions, and the memory 14 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.
[0165] In the embodiment of the present application, the bus 16 is used to connect the communication interface 15, the processor 13 and the memory 14, and to facilitate mutual communication between these devices.
[0166] In the embodiment of the present application, the memory 14 is used to store instructions and data.
[0167] Furthermore, in an embodiment of the present application, the above-mentioned processor 13 is used for the analysis module to obtain the network element data model and the network element threshold parameters, and generate alarm data based on the network element data model and the network element threshold parameters; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the analysis module transmits the alarm data to the alarm module; the alarm module performs alarm processing on the network element according to the alarm data, and generates an alarm result for the network element.
[0168] In practical applications, the memory 14 may be a volatile memory, such as a random-access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 13.
[0169] In addition, the functional modules in this embodiment may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware or software functional modules.
[0170] If the integrated unit is implemented in the form of a software functional module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment, or the part that contributes to the existing technology, or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes a number of instructions for causing a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the method of this embodiment. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0171] The present application provides an alarm method, an alarm system, and a storage medium. The alarm method is applied to an alarm system, wherein the alarm system includes a parsing module and an alarm module. The method includes the parsing module obtaining a network element data model and a network element threshold parameter, and generating alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether an alarm condition is satisfied based on a threshold, and the second rule is used to determine whether an alarm condition is satisfied based on multiple thresholds; the parsing module transmits the alarm data to the alarm module; the alarm module performs alarm processing on the network element based on the alarm data and generates an alarm result for the network element. That is, in an embodiment of the present application, the parsing module can generate corresponding alarm data based on the network element data model and the network element threshold parameter, the alarm data including the network element information and the alarm rule corresponding to the network element; further, the alarm module performs alarm processing on the network element based on the second rule or the first rule based on the alarm data provided by the parsing module and generates an alarm result. It can be seen that the parsing module can provide a comprehensive and effective data source for the alarm module based on the network element data model, and the alarm data includes the alarm rules of the network element, so that the alarm module can use different alarm strategies to perform alarm processing for the second rule or the first rule respectively, thereby improving the alarm accuracy and applicability of the alarm system.
[0172] The present application provides a computer-readable storage medium having a program stored thereon, which implements the alarm method described above when the program is executed by a processor.
[0173] Specifically, in this embodiment, a program instruction corresponding to a brute force crack detection may be stored on a storage medium such as a CD, a hard disk, or a USB flash drive. When the program instruction corresponding to an alarm method in the storage medium is read or executed by an electronic device, the following steps are included:
[0174] The parsing module obtains a network element data model and a network element threshold parameter, and generates alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether the alarm condition is met based on a threshold, and the second rule is used to determine whether the alarm condition is met based on multiple thresholds.
[0175] The analysis module transmits the alarm data to the alarm module;
[0176] The alarm module performs alarm processing on the network element according to the alarm data and generates an alarm result of the network element.
[0177] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of hardware embodiments, software embodiments, or embodiments combining software and hardware. Furthermore, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to magnetic disk storage and optical storage, etc.) containing computer-usable program code.
[0178] The present application is described with reference to the implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the steps in the flowchart. Figure 1 a process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0179] These computer program instructions may also be stored in a computer readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer readable memory produce an article of manufacture comprising an instruction device, which is implemented in the implementation flow diagram. Figure 1 a process or multiple processes and / or boxes Figure 1 The function specified in one or more boxes.
[0180] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process described in the flowchart. Figure 1 a process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0181] The above description is merely a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application.
Claims
1. An alarm method, characterized in that: The alarm method is applied to an alarm system, the alarm system includes an analysis module and an alarm module, and the method includes: The parsing module obtains a network element data model and a network element threshold parameter, and generates alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information and alarm rules corresponding to the network element; the alarm rules include a first rule and a second rule; the first rule is used to determine whether an alarm condition is met based on a threshold, and the second rule is used to determine whether the alarm condition is met based on multiple thresholds; The analysis module transmits the alarm data to the alarm module; If the alarm rule is the second rule, the alarm module performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result for the network element; If the alarm rule is the first rule, the alarm module obtains first data and a first threshold corresponding to the first state of the network element; if the first data is greater than or equal to the first threshold, the alarm module generates alarm information for the network element.
2. The method according to claim 1, characterized in that The alarm module performs alarm processing on the network element according to the alarm data and a preset alarm strategy, and generates an alarm result of the network element, including: Determining, based on the alarm data, a first threshold and a floating threshold corresponding to a first state of the network element, and first data corresponding to the first state of the network element in a current cycle; wherein the first state is one of multiple operating states of the network element; and the first data is operating data of the network element in the first state in the current cycle; If the first data is greater than or equal to the first threshold, the alarm module obtains second data corresponding to the first state of the network element in the previous cycle from the alarm data; wherein the second data is the operating data of the network element in the first state in the previous cycle; performing a difference operation on the first data and the second data to obtain a floating value of the first state; If the floating value is greater than or equal to the floating threshold, the alarm module generates alarm information for the network element.
3. The method according to claim 1, characterized in that The alarm module performs alarm processing on the network element according to the alarm data and a preset alarm strategy, and generates an alarm result of the network element, including: Determine first data and a first threshold corresponding to the first state of the network element based on the alarm data; If the first data is greater than or equal to the first threshold, the alarm module obtains third data and a second threshold corresponding to a second state of the network element from the alarm data; wherein the second state is another operating state different from the first state among multiple operating states of the network element; and the third data is operating data of the second state of the network element; If the third data is greater than or equal to the second threshold, the alarm module generates alarm information for the network element.
4. The method according to claim 1, wherein The alarm module performs alarm processing on the network element according to the alarm data and a preset alarm strategy, and generates an alarm result of the network element, including: Determining first data and a threshold set corresponding to the first state of the network element based on the alarm data; wherein the threshold set includes m first thresholds arranged from small to large; the m first thresholds correspond to m alarm levels; and m is an integer greater than 1; Comparing the first data with the m first thresholds in sequence to obtain a comparison result; If the comparison result is that the first data is greater than or equal to the nth first threshold and less than the (n+1)th first threshold, the alarm module generates the alarm information according to the alarm level corresponding to the nth first threshold; wherein (n+1) is an integer less than or equal to m.
5. The method according to claim 1, characterized in that The parsing module acquires a network element data model and a network element threshold parameter, and generates alarm data according to the network element data model and the network element threshold parameter, including: The parsing module parses the network element data model to obtain the network element information; The analysis module generates the alarm data according to the network element information and the network element threshold parameter.
6. The method according to claim 1, characterized in that The parsing module obtains the network element data model and the network element threshold parameters, including: The parsing module obtains the network element data model according to a preset format; wherein the network element data model includes a network element name and network element attributes.
7. The method according to claim 1, characterized in that After the parsing module acquires the network element data model and the network element threshold parameters and generates alarm data according to the network element data model and the network element threshold parameters, the method further includes: The parsing module receives an update instruction corresponding to the network element data model; The parsing module updates the network element information according to the update instruction.
8. An alarm system, characterized in that: The alarm system includes an analysis module and an alarm module. The analysis module includes an acquisition unit, a first generation unit, and a transmission unit. The alarm module includes a second generation unit. The acquisition unit is used to acquire the network element data model and the network element threshold parameters; The first generating unit is configured to generate alarm data based on the network element data model and the network element threshold parameter; wherein the alarm data includes network element information corresponding to the network element and an alarm rule; the alarm rule includes a first rule and a second rule; the first rule is configured to determine whether an alarm condition is satisfied based on a single threshold value, and the second rule is configured to determine whether an alarm condition is satisfied based on multiple threshold values; The transmission unit is used to transmit the alarm data to the alarm module; The second generation unit is used to, if the alarm rule is the second rule, the alarm module performs alarm processing on the network element according to the alarm data and the preset alarm strategy, and generates an alarm result for the network element; if the alarm rule is the first rule, the alarm module obtains the first data and first threshold corresponding to the first state of the network element; if the first data is greater than or equal to the first threshold, the alarm module generates alarm information for the network element.
9. An alarm system, characterized in that: The alarm system includes a parsing module and an alarm module. The alarm system also includes a processor and a memory storing instructions executable by the processor. When the instructions are executed by the processor, the method according to any one of claims 1 to 7 is implemented.
10. A computer-readable storage medium having a program stored thereon, applied to an alarm system, wherein the alarm system comprises an analysis module and an alarm module, characterized in that: When the program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
Citation Information
Patent Citations
Method and device for providing performance alarm services
CN102118276A
Model updating method, device and system
CN110417565A