Alarm synchronization methods, devices, electronic equipment and readable storage media
By obtaining the unsynchronized alarm count information of network element equipment in the network management device and setting synchronization trigger conditions, the alarm synchronization operation is dynamically triggered, which solves the problem of difficulty in controlling the frequency of alarm information synchronization between the network management and network elements, and achieves real-time accuracy and Performance optimization.
Patent Information
- Application Number
- CN202210334008.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-30
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2042-03-30
AI Technical Summary
The frequency of alarm information synchronization between existing network management and network elements is difficult to control, which causes a great impact on network management performance and information is not updated in a timely manner, which can easily cause alarm storms.
By obtaining the unsynchronized alarm count information reported by the network element device, setting preset synchronization trigger conditions (such as the unsynchronized number threshold and duration threshold), and sending an alarm synchronization request to the network element device when the conditions are met, to achieve dynamic trigger synchronization operations.
It reduces the frequency of synchronization operations, ensures the real-time accuracy of alarm information, reduces the impact on the performance of network management equipment, and improves the consistency and real-time nature of information between network management and network elements.
Smart Images

Figure CN114710394B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of communication technology, and in particular to an alarm synchronization method, device, electronic device and readable storage medium. Background Art
[0002] With the development of technologies such as 5G and AI and the promotion of business, edge computing has received more and more widespread attention. MEPM (Mobile edge platform manager), as a mobile edge platform manager, mainly implements application lifecycle management, MEP network element management, application rules and demand management, etc. Among them, the network element management system is a platform for managing on-line devices, referred to as network management, and different types of network devices are collectively referred to as network elements. The alarm information of the network management can reflect the operation status of the managed network elements, so that the operation and maintenance personnel can view and handle fault problems in real time through the network management side, so as to achieve the normal operation of the network elements. Therefore, the alarm information on the network management side must be completely consistent with the alarm information on the network element side.
[0003] At present, in order to maintain the consistency of alarm information between the network management and the network element, the network element actively reports its own alarm information to the network management, and the network management periodically sends alarm synchronization requests to the network element to synchronize the alarm information. However, it is difficult to control the frequency of synchronization operations in actual operation. If the number of synchronizations is too frequent, it is easy to affect the performance of the network management and increase the burden on the network management. If the number of synchronizations is too small, the alarm information on the network management side cannot be updated in time, and there will be differences with the information on the network element side. It is also easy to cause a large amount of alarm information to be reported to the network management at a certain moment, forming an alarm storm. Therefore, the efficiency of data synchronization between the network management and the network element is low, and it has a great impact on the performance of the network management. Summary of the invention
[0004] The embodiments of the present application provide an alarm synchronization method, device, electronic device and readable storage medium, which can reduce the frequency of synchronization operations and reduce the impact on the performance of network management equipment while ensuring that the alarm information is real-time and accurate.
[0005] According to one aspect of an embodiment of the present application, there is provided an alarm synchronization method for a network management device, including:
[0006] Obtaining alarm count information for previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event;
[0007] When the alarm count information meets a preset synchronization triggering condition, an alarm synchronization request is sent to the network element device, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation.
[0008] In a possible implementation, the alarm counting information includes the number of unsynchronized alarms and an unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; when the alarm counting information satisfies a preset synchronization trigger condition, sending an alarm synchronization request to the network element device includes:
[0009] When the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold, it is determined that the alarm count information meets a preset synchronization trigger condition, and an alarm synchronization request is generated;
[0010] Sending the alarm synchronization request to the network element device;
[0011] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0012] According to another aspect of an embodiment of the present application, there is provided an alarm synchronization method for a network element device, including:
[0013] Report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarms is also carried;
[0014] In response to the alarm synchronization request sent by the network management device, an alarm synchronization operation is performed; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition.
[0015] In a possible implementation, the alarm counting information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; the alarm synchronization request is sent by the network management device after determining that the alarm counting information meets the synchronization trigger condition when the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold;
[0016] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0017] In a possible implementation, the alarm event includes one of a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery. The method further includes:
[0018] In the process of reporting the current alarm event, the alarm information for the current alarm event is also carried;
[0019] Receiving alarm response information sent by the network management device, wherein the alarm response information is used to indicate that the network management device fails to respond to the alarm information or responds to a timeout;
[0020] Based on the alarm response information, the state of the alarm is marked as unsynchronized, and the number of unsynchronized alarms is updated. When the current alarm is the first unsynchronized alarm, the unsynchronized alarm time is updated with its reporting time, otherwise the unsynchronized alarm time is not updated.
[0021] In a possible implementation, the alarm information includes an instruction for instructing the network management device to write the identification information of the alarm related to the first alarm event into a first current alarm queue, or an instruction for instructing the network management device to delete the identification information of the alarm related to the second alarm event from the first current alarm queue and write it into a first historical alarm queue;
[0022] The performing of the alarm synchronization operation in response to the alarm synchronization request sent by the network management device includes:
[0023] Acquire identification information of the alarm carried in the process of the network management device sending the alarm synchronization request;
[0024] In response to the alarm synchronization request, the identification information of the existing alarm is compared with the identification information currently received, and corresponding update information is generated and returned according to the comparison result, wherein the update information is used to indicate the alarm to be updated and the corresponding update operation thereof, so that the network management device performs the alarm synchronization operation based on the update information;
[0025] The unsynchronized state of the alarm to be updated is cleared, and the number of unsynchronized alarms and the time of unsynchronized alarms are cleared.
[0026] In a possible implementation, comparing the identification information of the existing alarm with the identification information currently received, and generating and returning corresponding update information according to the comparison result, includes:
[0027] Respectively comparing the identification information of the alarms in the first current alarm queue of the network management device with the identification information of the alarms in its second current alarm queue, and the identification information of the alarms in the first historical alarm queue of the network management device with the identification information of the alarms in its second historical alarm queue;
[0028] For an alarm corresponding to identification information that exists in the network management device but does not exist in the network management device, generate an update instruction to instruct the network management device to write the identification information of the alarm into a corresponding queue; and / or,
[0029] For an alarm corresponding to identification information that does not exist in the network management device but exists in the network management device, an update instruction is generated to instruct the network management device to delete the identification information of the alarm from the corresponding queue.
[0030] According to another aspect of an embodiment of the present application, there is provided an alarm synchronization device, comprising:
[0031] A data acquisition module, used to acquire the alarm count information of the previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event;
[0032] The trigger synchronization module is used to send an alarm synchronization request to the network element device when the alarm count information meets a preset synchronization trigger condition, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation.
[0033] According to another aspect of an embodiment of the present application, there is provided an alarm synchronization device, comprising:
[0034] The data sending module is used to report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarm is also carried;
[0035] The synchronization response module is used to execute an alarm synchronization operation in response to an alarm synchronization request sent by the network management device; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition.
[0036] According to another aspect of an embodiment of the present application, an electronic device is provided, including a memory, a processor, and a computer program stored in the memory, wherein the processor executes the computer program to implement the steps of the alarm synchronization method described in the above embodiment.
[0037] According to another aspect of the embodiments of the present application, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the alarm synchronization method described in the above embodiment are implemented.
[0038] The beneficial effects of the technical solution provided by the embodiment of the present application are:
[0039] The alarm synchronization method obtains the alarm count information for previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event through the network management device, and then sends an alarm synchronization request to the network element device when the alarm count information meets the preset synchronization trigger condition, so that the network element device responds to the alarm synchronization request and performs the alarm synchronization operation. In this way, the network management device triggers the execution of the synchronization operation for the alarm information between the network management side and the network element side only when the synchronization trigger condition is met, and realizes dynamic triggering of the synchronization operation according to the actual situation, thereby reducing the frequency of synchronization operations, so as to reduce the impact on the performance of the network management device while ensuring that the alarm information is real-time and accurate. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in describing the embodiments of the present application are briefly introduced below.
[0041] Figure 1 A schematic diagram of a computer system architecture provided for an embodiment of the present application;
[0042] Figure 2 A schematic diagram of the structure of an alarm synchronization system provided for an exemplary embodiment of the present application;
[0043] Figure 3 A flowchart of an alarm synchronization method for a network management device provided in an embodiment of the present application;
[0044] Figure 4 A flowchart of an alarm synchronization method for network element equipment provided in an embodiment of the present application;
[0045] Figure 5 A schematic diagram of data interaction between a network management device and a network element device provided in an embodiment of the present application;
[0046] Figure 6 A schematic diagram of the structure of an alarm synchronization device for a network management device provided in an embodiment of the present application;
[0047] Figure 7 A schematic diagram of the structure of an alarm synchronization device for network element equipment provided in an embodiment of the present application;
[0048] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0049] The embodiments of the present application are described below in conjunction with the drawings in the present application. It should be understood that the implementation methods described below in conjunction with the drawings are exemplary descriptions for explaining the technical solutions of the embodiments of the present application and do not constitute a limitation on the technical solutions of the embodiments of the present application.
[0050] It will be understood by those skilled in the art that, unless specifically stated, the singular forms "one", "said", and "the" used herein may also include plural forms. It should be further understood that the terms "including" and "comprising" used in the embodiments of the present application refer to that the corresponding features can be implemented as the presented features, information, data, steps, operations, elements and / or components, but do not exclude the implementation as other features, information, data, steps, operations, elements, components and / or combinations thereof supported by the technical field. It should be understood that when we say that an element is "connected" or "coupled" to another element, the one element may be directly connected or coupled to the other element, or it may refer to that the one element and the other element establish a connection relationship through an intermediate element. In addition, the "connection" or "coupling" used herein may include wireless connection or wireless coupling. The term "and / or" used herein indicates at least one of the items defined by the term, for example, "A and / or B" may be implemented as "A", or as "B", or as "A and B".
[0051] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0052] Figure 1 The computer system architecture diagram provided in the embodiment of the present application is a computer system 10 including a network management device 12 and a network element device 11. Each network management device 12 is connected to one or more network element devices 11, and the network management device 12 and the network element device 11 are connected via a communication network, and the network management device 12 and the network element device 11 can be directly or indirectly connected via wired or wireless communication, which is not limited in the present application.
[0053] The network element device 11 can be a network communication product of different types. The network management device 12 is a platform for managing the network element devices 11 in the network. The network management device 12 is composed of multiple functional modules, including but not limited to a topology module, a performance module, an alarm module, a configuration module, and a security module. Among them, the alarm module is used to manage the alarm events and alarm information reported by the network element devices 11 in the specified area. The alarm events include alarm reporting, alarm recovery, and notification. In this way, the alarm information collected by the network management device 12 can reflect the operation of the managed network element devices 11, so that the operation and maintenance personnel can view and handle fault problems in real time through the network management side, and control the alarm information on the network management side to be completely consistent with the alarm information on the network element side, thereby achieving the normal operation of the network element device 11.
[0054] Therefore, the alarm synchronization system composed of the network management device 12 and the network element device 11 in the present application performs the following steps: the network element device 11 reports the current alarm event to the network management device 12, and carries the alarm count information for the previously unsynchronized alarms; the network management device 12 sends an alarm synchronization request to the network element device 11 when the alarm count information meets the preset synchronization trigger condition; the network element device 11 responds to the alarm synchronization request and performs the alarm synchronization operation. In this way, the network management device 12 triggers the synchronization operation between the network management side and the network element side for the alarm information only when the synchronization trigger condition is met, realizing the dynamic triggering synchronization operation, thereby reducing the frequency of synchronization operations, and reducing the impact on the performance of the network management device while ensuring that the alarm information is real-time and accurate.
[0055] Figure 2 A structural diagram of an alarm synchronization system provided by an exemplary embodiment of the present application, wherein a network management agent 111 is provided in a network element device 11, and the network management agent 111 is used to perform data interaction with a network management device 12, such as reporting alarm information inside the network element device 11 and responding to an alarm synchronization request issued by the network management device 12. In this embodiment, by providing a network management agent 111 in the network element device 11, the alarm information of the network element device 11 is centralized in the network management agent 111, so that the network management device 12 can directly access the network management agent 111 to obtain the alarm information and synchronously respond, thereby saving bandwidth resources and load of the network management device 12 and improving the response speed.
[0056] Optionally, the network management device 12 can be connected to the user terminal so that the operation and maintenance personnel can obtain the network element failure problems summarized on the network management side through the user terminal, so as to control the normal operation of the network element device 11. Among them, the user terminal can be an electronic device with an application installed, such as a smart phone, a tablet computer, a laptop computer, a desktop computer, a smart wearable device, etc., which is not limited to this embodiment of the present application. The application is a collection of computer programs and instructions that provide services to users, such as application apps and small programs loaded through third-party applications. In an optional embodiment, the network management device 12 carries a software application platform to provide background services for applications developed and running in the user terminal, specifically including real-time push of alarm messages, issuing control instructions, etc.
[0057] Figure 3 A flowchart of an alarm synchronization method for a network management device provided in an embodiment of the present application, wherein the alarm synchronization method is used for Figure 1 , Figure 2 Taking the network management device 12 as an example, the method includes steps S301 to S302.
[0058] S301. Acquire alarm count information for previously unsynchronized alarms carried by a network element device in the process of reporting a current alarm event.
[0059] S302: When the alarm count information meets a preset synchronization trigger condition, send an alarm synchronization request to the network element device, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation.
[0060] In the present application, the alarm event includes a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery. In an optional embodiment, when a network element device fails, the network element device generates an alarm and corresponding identification information (such as an alarm serial number), and writes the alarm and its identification information into its own second current alarm queue, and the second current alarm queue is a sequence in which the currently generated alarms are organized according to rules such as the order of alarm occurrence time. At the same time, the network element device issues the current first alarm event for the alarm, so that the network element device reports the above-mentioned current first alarm event to the network management device in real time to notify the alarm occurrence. In addition, in the process of reporting the alarm event, the network element device carries the alarm information of the relevant alarm of the current first alarm event, such as the identification information of the alarm and the instruction for instructing the network management device to write the alarm into the first current alarm queue, and the first current alarm queue is a sequence in which the currently generated alarms are organized in the network management device according to preset rules, and the preset rules include but are not limited to the order of alarm reporting time, occurrence time, etc.
[0061] In another optional embodiment, when the alarm of the network element device is restored, the network element device obtains the alarm and its identification information that need to be restored, removes the alarm from the second current alarm queue, and writes it into the second historical alarm queue. The second historical alarm queue is a sequence of alarms after the alarm is restored organized according to rules such as the order of alarm occurrence time or alarm restoration time, so as to represent the transformation of the current alarm into a historical alarm and realize alarm restoration. At the same time, the network element device publishes the current second alarm event about the alarm restoration, so that the network element device reports the above-mentioned current second alarm event to the network management device in real time to notify the alarm restoration. In addition, in the process of reporting an alarm event, the network element device carries alarm information of the related alarm of the current second alarm event, such as the alarm identification information and the instruction for instructing the network management device to delete the alarm from the first current alarm queue and write it into the first historical alarm queue. The first historical alarm queue is a sequence in which the alarms after alarm recovery are organized according to preset rules in the network management device. The preset rules include but are not limited to the sequence of alarm reporting time, alarm occurrence time, alarm recovery time, etc.
[0062] In this application, the network element device carries the alarm count information for the previously unsynchronized alarm each time it reports the current alarm event, so that the network management device determines whether to trigger the alarm synchronization operation based on the alarm count information of the previously unsynchronized alarm while responding to the current alarm event. Specifically, the network management device triggers the synchronization operation only when the alarm count information meets the preset synchronization triggering condition. In this way, this application dynamically triggers the alarm synchronization operation based on the actual situation of the current unsynchronized alarm, increases the correlation between the unsynchronized alarm situation and the triggering of the synchronization operation, avoids the situation where the synchronization frequency is difficult to control due to time triggering, and makes this application highly adaptable and targeted. It can ensure that the alarm information between the network management device and the network element device has high real-time and consistency, and reduce the frequency of synchronization operations, thereby reducing the burden on the network management device.
[0063] The alarm synchronization method provided in the embodiment of the present application obtains the alarm count information for the previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event through the network management device, and then sends an alarm synchronization request to the network element device when the alarm count information meets the preset synchronization trigger condition, so that the network element device responds to the alarm synchronization request and performs the alarm synchronization operation. In this way, the network management device triggers the execution of the synchronization operation for the alarm information between the network management side and the network element side only when the synchronization trigger condition is met, thereby realizing dynamic triggering of the synchronization operation according to the actual situation, thereby reducing the frequency of synchronization operations, and reducing the impact on the performance of the network management device while ensuring that the alarm information is real-time and accurate.
[0064] In some embodiments, the present application also includes a response process of the network management device to the alarm information of the current alarm event, which is as follows:
[0065] Acquire alarm information for the current alarm event carried in the process of reporting the current alarm event, the alarm information including an instruction for instructing to write identification information of the alarm related to the first event into a first current alarm queue, or an instruction for instructing to delete the identification information of the alarm related to the second event from the first current alarm queue and write it into a first historical alarm queue;
[0066] If the response to the alarm information fails or the response times out, generating an alarm response information;
[0067] The alarm response information is sent to the network element device, so that the network element device marks the status of the alarm as unsynchronized based on the alarm response information, and updates the alarm count information, wherein the alarm count information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm.
[0068] In the present application, the alarm counting information includes but is not limited to the number of unsynchronized alarms and the time of unsynchronized alarms. The network management device needs to respond to the alarm information of the current alarm event each time the current alarm event is reported. Optionally, if a correct response is made to the alarm information, that is, the corresponding operation of the current alarm event is completed, a response completion message is generated and returned to the network element device, waiting for the next alarm event. Exemplarily, when an alarm occurs, the network management device obtains the current first event used to indicate the alarm report and the alarm information carried for the current first event. The alarm information includes the identification information of the alarm related to the current first event and the instruction for instructing to write the alarm to the first current alarm queue. Then, when the network management device completes the relevant operations of the above instructions, a response completion message is generated. Similarly, when alarm recovery occurs, the network management device obtains the current second alarm event and the alarm information carried for the current second event. The alarm information includes identification information of the alarm related to the current second event and instructions for instructing to delete the alarm from the first current alarm queue and write it to the first historical alarm queue. When the network management device completes the relevant operations of the above instructions, response completion information is generated.
[0069] Optionally, if the response to the alarm information fails or the response times out, that is, the indication operation of the alarm information is not completed or the indication operation of the alarm information is not completed within the specified time, an alarm response message is generated and sent to the network element device. Then, the network element device marks the status of the alarm corresponding to the current alarm event as unsynchronized, so as to cumulatively add one unsynchronized alarm. At the same time, the unsynchronized alarm moment is the reporting moment of the alarm event corresponding to the first unsynchronized alarm marked as unsynchronized, which represents the longest time until the alarm synchronization is not performed. Therefore, if there is no unsynchronized alarm marked at present, the unsynchronized alarm corresponding to the current alarm event is recorded as the first unsynchronized alarm, and the reporting moment of its alarm event is determined to be the unsynchronized alarm moment. If there is an unsynchronized alarm marked at present, there is no need to update the unsynchronized alarm moment. Exemplarily, when an alarm occurs or an alarm recovery occurs, the network management device obtains the corresponding first alarm event or second alarm event and the alarm information carried for the first alarm event or the second event, the alarm information including the identification information of the alarm related to the first alarm event or the second event, and an instruction for indicating that the alarm is written to the first current alarm queue or an instruction for indicating that the alarm is deleted from the first current alarm queue and written to the first historical alarm queue. If the network management device fails to complete the relevant operations of the above instructions or the operation times out, an alarm response message is generated, so that the network element device marks the status of the alarm corresponding to the current alarm event as unsynchronized, sets the current number of unsynchronized alarms to be increased by one, and when it is detected as the first unsynchronized alarm, uses its reporting time as the unsynchronized alarm time, otherwise there is no need to update the unsynchronized alarm time.
[0070] In some embodiments, when the alarm count information satisfies a preset synchronization trigger condition, sending an alarm synchronization request to the network element device includes:
[0071] When the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold, it is determined that the alarm count information meets a preset synchronization trigger condition, and an alarm synchronization request is generated;
[0072] Sending the alarm synchronization request to the network element device;
[0073] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0074] In this embodiment, the network management device sets a plurality of judgment values for alarm count information, and the judgment values include a non-synchronization number threshold and a time interval threshold, so that the network management device performs alarm synchronization judgment for the alarm count information of the previous non-synchronization alarm while responding to the current alarm event. Specifically, when the number of previous non-synchronization alarms is not less than the set non-synchronization number threshold, and the duration from the non-synchronization alarm moment to the current moment is not less than at least one of the set time interval thresholds, the network management device triggers a synchronization operation and sends an alarm synchronization request to the network element device. Therefore, this embodiment realizes triggering and executing the synchronization operation for alarm information between the network management side and the network element side by analyzing the current number of non-synchronization alarms and the non-synchronization duration, thereby improving the suitability of actual applications, reducing the frequency of synchronization operations, saving network resources, and reducing the impact on the performance of the network management device, while ensuring the consistency and real-time nature of information between the network management device and the network element device.
[0075] Optionally, if the current alarm count information does not meet the judgment value set by the network management device, that is, the number of unsynchronized alarms does not exceed the unsynchronized number threshold, and the current longest unsynchronized duration does not exceed the time interval threshold, the alarm synchronization operation between the network management device and the network element device will not be triggered, and the next alarm event will be waited for to be reported.
[0076] It should be noted that, regarding the alarm count information for the unsynchronized alarm, this application is not limited to the reporting process of sending the alarm event, but can also compare the unsynchronized count threshold set by the network element device with the alarm count information to trigger the reporting of relevant information to the network management device, such as sending the alarm count information so that the network management device returns an alarm synchronization request when it determines that the alarm count information meets the synchronization triggering condition, or sends information characterizing the impact of the unsynchronized alarm so that the network management device determines whether to trigger the alarm synchronization operation based on the information. Therefore, this application triggers alarm synchronization through the current situation of the unsynchronized alarm, which improves the relevance and rationality with actual applications.
[0077] Figure 4 A flowchart of an alarm synchronization method for a network element device provided in an embodiment of the present application, wherein the alarm synchronization method is used for Figure 1 , Figure 2 The network element device 11 and the network management agent 111 are used as examples for description. The method includes steps S401 to S402.
[0078] S401. Report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarms is also carried.
[0079] S402: In response to the alarm synchronization request sent by the network management device, perform an alarm synchronization operation; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition.
[0080] In the present application, the alarm event includes a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery. In an optional embodiment, when a network element device fails, the network element device generates an alarm and corresponding identification information, and writes the alarm and its identification information into its own second current alarm queue. At the same time, the network element device publishes the current first alarm event to the network management device. In another optional embodiment, when the alarm of the network element device is restored, the network element device obtains the alarm and its identification information that currently need to be restored, removes the alarm from the second current alarm queue, and writes it into the second historical alarm queue to achieve alarm recovery. At the same time, the network element device publishes the current second alarm event to the network management device.
[0081] In some embodiments, the network element device carries the alarm counting information for the previous unsynchronized alarms each time it reports the current alarm event. The alarm counting information includes the number of unsynchronized alarms and the time of unsynchronized alarms. The network element device obtains the alarm counting information through the following steps:
[0082] In the process of reporting the current alarm event, alarm information for the current alarm event is also carried, and the alarm information includes an instruction for instructing the network management device to write the identification information of the alarm related to the first alarm event into the first current alarm queue, or an instruction for instructing the network management device to delete the identification information of the alarm related to the second alarm event from the first current alarm queue and write it into the first historical alarm queue;
[0083] Receiving alarm response information sent by the network management device, wherein the alarm response information is used to indicate that the network management device fails to respond to the alarm information or responds to a timeout;
[0084] Based on the alarm response information, the state of the alarm is marked as unsynchronized, and the number of unsynchronized alarms is updated. When the current alarm is the first unsynchronized alarm, the unsynchronized alarm time is updated with its reporting time, otherwise the unsynchronized alarm time is not updated.
[0085] In this embodiment, optionally, when the network element device receives the alarm response information sent by the network management device, it confirms that the response to the alarm event reported this time has failed or the response has timed out, and then the state of the alarm corresponding to the current alarm event is marked as unsynchronized, so as to cumulatively add an unsynchronized alarm, and update the unsynchronized alarm time when the current alarm is the first unsynchronized alarm. Exemplarily, after power-on, the network element device sets the current number of unsynchronized alarms to zero and the unsynchronized alarm time to empty. When the alarm recovery occurs and the current alarm event is reported to the network management device, it carries and sends an instruction to remove the alarm corresponding to the event from the first current alarm queue and write it into the first historical alarm queue. If the network management information does not complete the relevant operations of the above instructions, it returns the alarm response information to the network element device. In this way, the network element device records the alarm corresponding to this alarm event as an unsynchronized alarm, updates the number of unsynchronized alarms to 1, and the unsynchronized alarm time is the reporting time of the alarm event.
[0086] Optionally, the network element device receives response completion information sent by the network management device, and the response completion information indicates that the network management device has successfully responded to the alarm information, that is, when the corresponding operation indicated by the current alarm event is completed, the alarm event is considered to be completed and waits for the next alarm event.
[0087] In some embodiments, the alarm synchronization request is sent by the network management device after determining that the alarm count information satisfies the synchronization trigger condition when the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold;
[0088] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0089] In this embodiment, when the network element device receives the alarm synchronization request generated when the network management device determines that the number of unsynchronized alarms at this time is not less than the set unsynchronized number threshold, and the time length from the unsynchronized alarm moment to the current moment is not less than at least one of the set time interval thresholds, the alarm synchronization operation is triggered. Therefore, the present application triggers the synchronization operation between the network management side and the network element side for the alarm information only when the alarm count information meets the preset synchronization triggering condition, increases the correlation between the unsynchronized alarm situation and the triggering of the synchronization operation, avoids the situation where the synchronization frequency is difficult to control due to time triggering, can reduce the frequency of synchronization operations, and ensures the consistency and real-time nature of the information between the network management device and the network element device.
[0090] The alarm synchronization method provided in the embodiment of the present application reports the current alarm event to the network management device through the network element device, wherein in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarms is also carried, and then responds to the alarm synchronization request sent by the network management device to perform the alarm synchronization operation, wherein the alarm synchronization request is sent by the network management device after the alarm count information meets the preset synchronization trigger condition, so that the synchronization operation for the alarm information between the network management side and the network element side is triggered only when the synchronization trigger condition is met, thereby realizing dynamic triggering of the synchronization operation according to the actual situation, thereby reducing the frequency of the synchronization operation, and reducing the impact on the performance of the network management device while ensuring that the alarm information is real-time and accurate.
[0091] In some embodiments, the network management device sends an alarm synchronization request to the network element device to trigger an alarm synchronization operation between the network management device and the network element device. Therefore, the network element device performs the alarm synchronization operation in response to the alarm synchronization request sent by the network management device, including the following steps:
[0092] Acquire identification information of the alarm carried in the process of the network management device sending the alarm synchronization request;
[0093] In response to the alarm synchronization request, the identification information of the existing alarm is compared with the identification information currently received, and corresponding update information is generated and returned according to the comparison result, wherein the update information is used to indicate the alarm to be updated and the corresponding update operation thereof, so that the network management device performs the alarm synchronization operation based on the update information;
[0094] The unsynchronized state of the alarm to be updated is cleared, and the number of unsynchronized alarms and the time of unsynchronized alarms are cleared.
[0095] In an optional embodiment, regarding the response to the alarm synchronization operation, the network management device performs the following operations:
[0096] In the process of sending the alarm synchronization request to the network element device, the identification information of the alarm is carried, so that the network element device responds to the alarm synchronization request, compares the identification information of the existing alarm with the identification information currently received, and generates and returns corresponding update information according to the comparison result, wherein the update information is used to indicate the alarm to be updated and the corresponding update operation;
[0097] An alarm synchronization operation is performed based on the update information.
[0098] In the above embodiment, the identification information of the alarm is one or more identification contents, which may be an alarm serial number or an alarm identification parameter, but is not limited thereto. The network management device carries the identification information of its own existing alarms in the process of issuing the alarm synchronization request, and the alarms include the current alarms in the first current alarm queue and the historical alarms in the first historical alarm queue. Therefore, the network element device obtains the identification information in the alarm synchronization request and compares it with the identification information of its own existing alarms, wherein the alarms already in the network element device include the current alarms in the second current alarm queue and the historical alarms in the second historical alarm queue. Then, the network element device returns the update information corresponding to the comparison result to the network management device so that the network management device performs the alarm synchronization operation. Therefore, the present application determines the currently unsynchronized alarm by comparing the identification information of the alarm, and determines the update operation for the alarm according to the comparison result, so that the network management device can maintain consistency with the data of the network element device after executing the update operation, and realizes the rapid and accurate execution of the alarm synchronization operation.
[0099] Furthermore, after executing the alarm synchronization operation, the network element device compares the alarm that needs to be updated by the network management device with the unsynchronized alarm identified by the network element device, clears the unsynchronized status of the alarm with the consistent comparison result, that is, it indicates that the unsynchronized alarm has executed the synchronization operation, and correspondingly clears the current number of unsynchronized alarms and the unsynchronized alarm time, and continues to wait for the next alarm event.
[0100] Based on the above embodiment, in some embodiments, the network element device compares the identification information of the existing alarm with the identification information currently received, and generates and returns corresponding update information according to the comparison result, including the following steps:
[0101] Respectively comparing the identification information of the alarms in the first current alarm queue of the network management device with the identification information of the alarms in its second current alarm queue, and the identification information of the alarms in the first historical alarm queue of the network management device with the identification information of the alarms in its second historical alarm queue;
[0102] For an alarm corresponding to identification information that exists in the network management device but does not exist in the network management device, generate an update instruction to instruct the network management device to write the identification information of the alarm into a corresponding queue; and / or,
[0103] For an alarm corresponding to identification information that does not exist in the network management device but exists in the network management device, an update instruction is generated to instruct the network management device to delete the identification information of the alarm from the corresponding queue.
[0104] In this embodiment, in order to achieve data consistency between the network management device and the network element device, the network element device's own alarm situation is used as a reference to synchronize the existing alarm data of the network management device. In an optional embodiment, the network element device compares the identification information (such as the alarm serial number) of the alarm received in the first current alarm queue with the identification information of the alarm in its own second current alarm queue. When the network element device has the identification information of a current alarm, but the network management device does not have the identification information, it indicates that the network management device has not completed the response to the instruction to write the current alarm into the first current alarm queue, that is, the reporting operation of the current alarm has not been completed, and the alarm reporting operation needs to be performed. Then, an update instruction is generated to instruct the network management device to add the identification information of the current alarm to the first current alarm queue, and it is sent to the network management device to execute the update instruction. Optionally, when the network element device and the current alarm queue of the network management device have the same identification information of the current alarm, it indicates that the information of the current alarm is consistent between the two. Optionally, when the network management device has identification information of a current alarm, but the network element device does not have such identification information, it indicates that the network management device may not have completed the instruction to convert the current alarm into a historical alarm, that is, the alarm recovery operation of the current alarm has not been completed, and the alarm recovery operation needs to be performed. Then, an update instruction is generated to instruct the network management device to clear the identification information of the current alarm from the first current alarm queue, and it is sent to the network management device to execute the update instruction.
[0105] In another optional embodiment, the network element device compares the identification information (such as the alarm serial number) of the alarm received in the first historical alarm queue with the identification information of the alarm in its own second historical alarm queue. When the same identification information of the historical alarm exists in the historical alarm queues of the two, it indicates that the information of the historical alarm is consistent between the two. Optionally, when the network element device has the identification information of a historical alarm, but the network management device does not have the identification information, an instruction is generated to instruct the network management device to add the identification information of the historical alarm to the first historical alarm queue. In a specific embodiment, if combined with the above situation that the network management device has the identification information of a current alarm but the network element device does not have the identification information, it can be considered that the mentioned alarm has not completed the alarm recovery operation, and an update instruction is generated to instruct the network management device to clear the identification information of the alarm from the first current alarm queue and add it to the first historical alarm queue. Optionally, when the network management device has identification information of a certain historical alarm, but the network element device does not have the identification information, an update instruction is generated to instruct the network management device to clear the identification information of the historical alarm from the first historical alarm queue.
[0106] Therefore, this embodiment can intuitively identify the unsynchronized alarms in the two queues by comparing the identification information of the alarms in the current alarm queue and the historical alarm queue respectively, so as to quickly obtain the corresponding update operations based on the comparison results, thereby facilitating synchronization operations, while improving accuracy and synchronization efficiency, realizing real-time alarm synchronization, and avoiding the impact of centralized synchronization of network management equipment on the performance of the entire system.
[0107] In some embodiments, when a network element device restarts, causing all alarms reported on the network element device to be cleared, a synchronization notification is sent to the network management device, so that the network management device issues an alarm synchronization instruction after receiving the synchronization notification to centrally synchronize the alarm information of the network element device.
[0108] For example, Figure 5 The data interaction diagram between the network management device and the network element device provided in the embodiment of the present application is illustrated by taking the network management device and the network management agent in the network element device as examples. The unsynchronized number threshold used to characterize the maximum number of unsynchronized alarms allowed currently and the time interval threshold used to characterize the longest unsynchronized alarm time interval are configured in the network management device. For the network element device side, after the system is powered on, the network management agent sets the current unsynchronized alarm number to 0 and the unsynchronized alarm time to empty, and starts the following steps:
[0109] Step 101: When a network element device generates an active alarm, an alarm serial number of the current alarm and specific alarm information are generated, and the network management agent caches the current alarm and its related alarm information.
[0110] Step 102, the network management agent sends an HTTP message for the current alarm reporting event to the network management device, so as to report the current alarm to the network management device, and carry the alarm information of the current alarm, the number of unsynchronized alarms of the current network element device, and the unsynchronized alarm time.
[0111] Step 103: The network management device receives the message from the network management agent and sends an alarm response to the network management agent.
[0112] Step 104, the network management agent analyzes the alarm response from the network management device. If the network management device returns a correct response, the alarm reporting is completed and the next alarm is awaited. If the network management device fails to respond or the response times out, the network management agent sets the alarm status of this report to unsynchronized, sets the current number of unsynchronized alarms + 1, and sets the unsynchronized alarm time to the reporting time of this alarm.
[0113] In step 105, the network management continues to make an alarm synchronization judgment, specifically judging whether to trigger an alarm synchronization operation according to the number of unsynchronized alarms and the time of unsynchronized alarms. If the number of unsynchronized alarms is not less than the threshold of the number of unsynchronized alarms set by the network management device, and the time between the time of unsynchronized alarms and the current time is not less than the time interval threshold set by the network management device, then go to step 106, and the network management device sends an alarm synchronization request to the network management agent; if any of the above conditions is not met, the network management device does not need to initiate an alarm synchronization operation, and continues to repeat steps 101-105, waiting for the next alarm to be reported.
[0114] Step 106, when the network management device detects that the synchronization triggering condition is met, the network management device sends an alarm synchronization request, and sends the alarm serial numbers of the current alarm and historical alarms cached by itself to the network management agent to perform an alarm synchronization operation.
[0115] Step 107, after receiving the alarm synchronization request from the network management device, the network management agent compares the received alarm serial number with the alarm serial number cached by itself. If the network management device and the network element device both have the same current alarm and / or historical alarm, no processing is performed. For the current alarm and historical alarm, if the alarm exists in the network element device but not in the network management device, the network management device is notified to synchronize and add the alarm; if the alarm does not exist in the network element device but exists in the network management device, the network management device is notified to clear the corresponding alarm.
[0116] Step 108: The network management agent replies with an update response, carrying the alarms that need to be added and cleared by the network management device and their alarm serial numbers.
[0117] Step 109: The network management device updates the alarm information based on the update response sent by the network management agent, so as to clear the alarms that do not exist on the network management agent side and add new alarms.
[0118] Step 110, the network management agent clears the unsynchronized status of the synchronized alarms, and clears the number of unsynchronized alarms and the time of unsynchronized alarms, and the alarm synchronization process is completed.
[0119] In addition, if Figure 5 As shown, the above process has an optional process of alarm recovery in steps 101-105:
[0120] In optional step 101, when the alarm generated by the network element device is restored, the network management agent changes the current alarm of the corresponding serial number previously cached into a historical alarm.
[0121] In optional step 102, the network management agent sends an HTTP message for the current alarm recovery event to the network management device, carrying relevant alarm information of the alarm to be restored, the number of unsynchronized alarms of the current network element device, and the time of the unsynchronized alarms.
[0122] In optional step 103, the network management device receives the message from the network management agent and replies an alarm recovery response to the network management agent.
[0123] In optional step 104, the network management agent parses the alarm response from the network management device. If the network management device responds correctly, the alarm recovery is completed and the next alarm or alarm recovery is awaited. If the network management device fails to respond or the response times out, the network management agent sets the alarm status of the alarm recovery reported this time to unsynchronized, sets the current number of unsynchronized alarms + 1, and sets the unsynchronized alarm time to the reporting time of this alarm.
[0124] In optional step 105, the network management continues to make alarm synchronization judgments. If the number of unsynchronized alarms is not less than the unsynchronized number threshold set by the network management device, and the duration between the unsynchronized alarm moment and the current time is not less than the time interval threshold set by the network management device, then go to step 106, and the network management device sends an alarm synchronization request to the network management agent; if any of the above conditions is not met, the network management device does not need to initiate an alarm synchronization operation, and continues to repeat steps 101-105, waiting for the next alarm to be reported.
[0125] Figure 6 A schematic diagram of the structure of an alarm synchronization device for a network management device provided in an embodiment of the present application, the alarm synchronization device 500 includes:
[0126] The data acquisition module 501 is used to obtain the alarm count information for the previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event;
[0127] The trigger synchronization module 502 is used to send an alarm synchronization request to the network element device when the alarm count information meets a preset synchronization trigger condition, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation.
[0128] In some embodiments, the alarm counting information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; the triggering synchronization module 502 includes:
[0129] A trigger judgment unit, configured to determine that the alarm count information satisfies a preset synchronization trigger condition and generate an alarm synchronization request when the number of the non-synchronization alarms exceeds a preset non-synchronization number threshold and / or the current longest non-synchronization duration exceeds a preset time interval threshold;
[0130] An alarm synchronization request sending unit, configured to send the alarm synchronization request to the network element device;
[0131] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0132] Figure 7 A schematic diagram of the structure of an alarm synchronization device for a network element device provided in an embodiment of the present application, the alarm synchronization device 600 includes:
[0133] The data sending module 601 is used to report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarm is also carried;
[0134] The synchronization response module 602 is used to perform an alarm synchronization operation in response to the alarm synchronization request sent by the network management device; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition.
[0135] In some embodiments, the alarm count information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; the alarm synchronization request is sent by the network management device after determining that the alarm count information meets the synchronization trigger condition when the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold;
[0136] The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
[0137] In some embodiments, the alarm event includes one of a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery: the alarm synchronization device 600 further includes:
[0138] An alarm information sending unit, used to carry alarm information for the current alarm event in the process of reporting the current alarm event;
[0139] An alarm response exception unit, used to receive the alarm response information sent by the network management device, wherein the alarm response information is used to indicate that the network management device fails to respond to the alarm information or responds to the timeout;
[0140] The unsynchronized alarm updating unit is used to mark the status of the alarm as unsynchronized based on the alarm response information, and update the number of unsynchronized alarms, and when the current alarm is the first unsynchronized alarm, update the unsynchronized alarm time with its reporting time, otherwise the unsynchronized alarm time is not updated.
[0141] In some embodiments, the alarm information includes an instruction for instructing the network management device to write the identification information of the alarm related to the first alarm event into a first current alarm queue, or an instruction for instructing the network management device to delete the identification information of the alarm related to the second alarm event from the first current alarm queue and write it into a first historical alarm queue;
[0142] The synchronous response module 602 includes:
[0143] An alarm identification sending unit, used to obtain the identification information of the alarm carried in the process of the network management device sending the alarm synchronization request;
[0144] A synchronization comparison unit, configured to compare the identification information of the existing alarm with the identification information currently received in response to the alarm synchronization request, and to generate and return corresponding update information according to the comparison result, wherein the update information is used to indicate the alarm to be updated and its corresponding update operation, so that the network management device performs the alarm synchronization operation based on the update information;
[0145] The unsynchronized count clearing unit is used to clear the unsynchronized state of the alarm to be updated, and clear the number of unsynchronized alarms and the time of unsynchronized alarms.
[0146] In some embodiments, the synchronous comparison unit includes:
[0147] A comparing unit, used to compare the identification information of the alarms in the first current alarm queue of the network management device with the identification information of the alarms in its second current alarm queue, and the identification information of the alarms in the first historical alarm queue of the network management device with the identification information of the alarms in its second historical alarm queue;
[0148] a first update instruction generating unit, configured to generate, for an alarm corresponding to identification information that exists in the network management device but does not exist in the network management device, an update instruction for instructing the network management device to write the identification information of the alarm into a corresponding queue; and / or,
[0149] The second update instruction generating unit is used to generate, for an alarm corresponding to identification information that does not exist in the network management device but exists in the network management device, an update instruction for instructing the network management device to delete the identification information of the alarm from the corresponding queue.
[0150] The device of the embodiments of the present application can execute the method provided by the embodiments of the present application, and the implementation principles are similar. The actions performed by each module in the device of each embodiment of the present application correspond to the steps in the method of each embodiment of the present application. For the detailed functional description of each module of the device, please refer to the description in the corresponding method shown in the previous text, which will not be repeated here.
[0151] An electronic device is provided in an embodiment of the present application, including a memory, a processor and a computer program stored in the memory. The processor executes the above-mentioned computer program to implement the steps of the alarm synchronization method. Compared with the related art, it can be achieved that the network management device triggers the execution of the synchronization operation for the alarm information between the network management side and the network element side only when the synchronization trigger condition is met, and the synchronization operation is dynamically triggered according to the actual situation, thereby reducing the frequency of synchronization operations, so that the impact on the performance of the network management device is reduced while ensuring that the alarm information is real-time and accurate.
[0152] In an alternative embodiment, an electronic device is provided, such as Figure 8 As shown, Figure 8 The electronic device 700 shown includes: a processor 701 and a memory 703. The processor 701 and the memory 703 are connected, such as through a bus 702. Optionally, the electronic device 700 may also include a transceiver 704, which may be used for data interaction between the electronic device and other electronic devices, such as data transmission and / or data reception. It should be noted that in actual applications, the transceiver 704 is not limited to one, and the structure of the electronic device 700 does not constitute a limitation on the embodiments of the present application.
[0153] Processor 701 may be a CPU (Central Processing Unit), a general purpose processor, a DSP (Digital Signal Processor), an ASIC (Application Specific Integrated Circuit), an FPGA (Field Programmable Gate Array) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of this application. Processor 701 may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, etc.
[0154] The bus 702 may include a path to transmit information between the above components. The bus 702 may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus. The bus 702 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0155] The memory 703 can be a ROM (Read Only Memory) or other types of static storage devices that can store static information and instructions, a RAM (Random Access Memory) or other types of dynamic storage devices that can store information and instructions, or an EEPROM (Electrically Erasable Programmable Read Only Memory), a CD-ROM (Compact Disc Read Only Memory) or other optical disk storage, optical disk storage (including compressed optical disk, laser disk, optical disk, digital versatile disk, Blu-ray disk, etc.), magnetic disk storage medium, other magnetic storage devices, or any other medium that can be used to carry or store computer programs and can be read by a computer, without limitation herein.
[0156] The memory 703 is used to store the computer program for executing the embodiment of the present application, and the execution is controlled by the processor 701. The processor 701 is used to execute the computer program stored in the memory 703 to implement the steps shown in the above method embodiment.
[0157] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps and corresponding contents of the aforementioned method embodiment can be implemented.
[0158] The terms "first", "second", "third", "fourth", "1", "2", etc. (if any) in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than that shown or described in the drawings.
[0159] It should be understood that, although each operation step is indicated by arrows in the flowchart of the embodiment of the present application, the implementation order of these steps is not limited to the order indicated by the arrows. Unless clearly stated herein, in some implementation scenarios of the embodiment of the present application, the implementation steps in each flowchart can be performed in other orders according to demand. In addition, some or all of the steps in each flowchart may include multiple sub-steps or multiple stages based on actual implementation scenarios. Some or all of these sub-steps or stages may be executed at the same time, and each sub-step or stage in these sub-steps or stages may also be executed at different times respectively. In different scenarios of execution time, the execution order of these sub-steps or stages may be flexibly configured according to demand, and the embodiment of the present application does not limit this.
[0160] The above is only an optional implementation method for some implementation scenarios of the present application. It should be pointed out that for ordinary technicians in this technical field, without departing from the technical concept of the solution of the present application, other similar implementation methods based on the technical ideas of the present application are also within the protection scope of the embodiments of the present application.
Claims
1. An alarm synchronization method, It is characterized in that Used for network management equipment, including: Acquire alarm counting information for previously unsynchronized alarms carried by the network element device in the process of reporting the current alarm event; the alarm counting information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; When the alarm count information meets a preset synchronization trigger condition, sending an alarm synchronization request to the network element device, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation; Processing the alarm information response of the current alarm event, obtaining the alarm information for the current alarm event carried in the process of reporting the current alarm event, the alarm information including an instruction for indicating that the identification information of the alarm related to the first alarm event is written into the first current alarm queue, or an instruction for indicating that the identification information of the alarm related to the second alarm event is deleted from the first current alarm queue and written into the first historical alarm queue; if the response to the alarm information fails or the response times out, generating alarm response information and sending the alarm response information to the network element device, so that the network element device marks the status of the alarm as unsynchronized based on the alarm response information, and updates the alarm count information; The first alarm event is used to indicate alarm reporting, and the second alarm event is used to indicate alarm recovery.
2. The method according to claim 1, It is characterized in that When the alarm count information meets a preset synchronization trigger condition, sending an alarm synchronization request to the network element device includes: When the number of unsynchronized alarms exceeds a preset unsynchronized number threshold, and / or the current longest unsynchronized duration exceeds a preset time interval threshold, it is determined that the alarm count information meets a preset synchronization trigger condition, and an alarm synchronization request is generated; Sending the alarm synchronization request to the network element device; The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
3. An alarm synchronization method, It is characterized in that Used for network element equipment, including: Report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarms is also carried; In response to the alarm synchronization request sent by the network management device, an alarm synchronization operation is performed; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition; If an alarm response message sent by the network management device is received, the state of the alarm is marked as unsynchronized based on the alarm response message, and the alarm count information is updated, wherein the alarm response message is generated by the network management device in response to the alarm information of the current alarm event when the response to the alarm information fails or the response times out; If the alarm information sent by the network management device is received, the alarm information includes an instruction for instructing the network management device to write the identification information of the alarm related to the first alarm event into the first current alarm queue, or an instruction for instructing the network management device to delete the identification information of the alarm related to the second alarm event from the first current alarm queue and write it into the first historical alarm queue, the alarm synchronization operation is performed in response to the alarm synchronization request sent by the network management device, including: Acquire identification information of the alarm carried in the process of the network management device sending the alarm synchronization request; In response to the alarm synchronization request, the identification information of the existing alarm is compared with the identification information currently received, and corresponding update information is generated and returned according to the comparison result, wherein the update information is used to indicate the alarm to be updated and the corresponding update operation thereof, so that the network management device performs the alarm synchronization operation based on the update information; Clear the unsynchronized state of the alarm to be updated, and clear the number of unsynchronized alarms and the time of unsynchronized alarms; The alarm event includes one of a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery.
4. The method according to claim 3, It is characterized in that The alarm counting information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; the alarm synchronization request is sent by the network management device after determining that the alarm counting information meets the synchronization trigger condition when the number of unsynchronized alarms exceeds a preset unsynchronized number threshold and / or the current longest unsynchronized duration exceeds a preset time interval threshold; The current longest non-synchronization duration is the duration from the non-synchronization alarm moment to the current moment.
5. The method according to claim 4, It is characterized in that The alarm event includes one of a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery. The method further includes: In the process of reporting the current alarm event, the alarm information for the current alarm event is also carried; Receiving alarm response information sent by the network management device, wherein the alarm response information is used to indicate that the network management device fails to respond to the alarm information or responds to a timeout; Based on the alarm response information, the state of the alarm is marked as unsynchronized, and the number of unsynchronized alarms is updated. When the current alarm is the first unsynchronized alarm, the unsynchronized alarm time is updated with its reporting time, otherwise the unsynchronized alarm time is not updated.
6. The method according to claim 5, It is characterized in that The step of comparing the identification information of the existing alarm with the identification information currently received, and generating and returning corresponding update information according to the comparison result, includes: Respectively comparing the identification information of the alarms in the first current alarm queue of the network management device with the identification information of the alarms in its second current alarm queue, and the identification information of the alarms in the first historical alarm queue of the network management device with the identification information of the alarms in its second historical alarm queue; For an alarm corresponding to identification information that exists in the network management device but does not exist in the network management device, generate an update instruction to instruct the network management device to write the identification information of the alarm into a corresponding queue; and / or, For an alarm corresponding to identification information that does not exist in the network management device but exists in the network management device, an update instruction is generated to instruct the network management device to delete the identification information of the alarm from the corresponding queue.
7. An alarm synchronization device, It is characterized in that include: A data acquisition module, used to obtain the alarm counting information for the previous unsynchronized alarm carried by the network element device in the process of reporting the current alarm event; the alarm counting information includes the number of unsynchronized alarms and the unsynchronized alarm time used to characterize the reporting time of the first unsynchronized alarm; A trigger synchronization module, configured to send an alarm synchronization request to the network element device when the alarm count information meets a preset synchronization trigger condition, so that the network element device responds to the alarm synchronization request and performs an alarm synchronization operation; The alarm synchronization device processes the alarm information response of the current alarm event, obtains the alarm information for the current alarm event carried in the process of reporting the current alarm event, and the alarm information includes an instruction for indicating that the identification information of the alarm related to the first alarm event is written into the first current alarm queue, or an instruction for indicating that the identification information of the alarm related to the second alarm event is deleted from the first current alarm queue and written into the first historical alarm queue; if the response to the alarm information fails or the response times out, alarm response information is generated and sent to the network element device, so that the network element device marks the status of the alarm as unsynchronized based on the alarm response information, and updates the alarm count information; The first alarm event is used to indicate alarm reporting, and the second alarm event is used to indicate alarm recovery.
8. An alarm synchronization device, It is characterized in that include: The data sending module is used to report the current alarm event to the network management device; wherein, in the process of reporting the current alarm event, the alarm count information for the previously unsynchronized alarm is also carried; A synchronization response module, configured to execute an alarm synchronization operation in response to an alarm synchronization request sent by the network management device; the alarm synchronization request is sent by the network management device after the alarm count information meets a preset synchronization trigger condition; The alarm synchronization device further includes: if alarm response information sent by the network management device is received, marking the state of the alarm as unsynchronized based on the alarm response information, and updating the alarm count information, wherein the alarm response information is generated by the network management device in response to the alarm information of the current alarm event when the response to the alarm information fails or the response times out; If the alarm information sent by the network management device is received, the alarm information includes an instruction for instructing the network management device to write the identification information of the alarm related to the first alarm event into the first current alarm queue, or an instruction for instructing the network management device to delete the identification information of the alarm related to the second alarm event from the first current alarm queue and write it into the first historical alarm queue, the synchronous response module is specifically used to: Acquire identification information of the alarm carried in the process of the network management device sending the alarm synchronization request; In response to the alarm synchronization request, the identification information of the existing alarm is compared with the identification information currently received, and corresponding update information is generated and returned according to the comparison result, wherein the update information is used to indicate the alarm to be updated and the corresponding update operation thereof, so that the network management device performs the alarm synchronization operation based on the update information; Clear the unsynchronized state of the alarm to be updated, and clear the number of unsynchronized alarms and the time of unsynchronized alarms; The alarm event includes one of a first alarm event for indicating alarm reporting and a second alarm event for indicating alarm recovery.
9. An electronic device comprising a memory, a processor and a computer program stored in the memory, It is characterized in that The processor executes the computer program to implement the steps of the method according to any one of claims 1 to 2 or to implement the steps of the method according to any one of claims 3 to 6.
10. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 2 or the steps of the method according to any one of claims 3 to 6 are implemented.
Citation Information
Patent Citations
Alarm synchronizing method based on SNMP
CN101577646A
Warning information management method and device of network management system
CN102882700A
Data synchronization method and device, terminal and storage medium
CN113656490A
