The merging method of accusing history alarm amount is dodged in concussion
Technical field
The present invention relates to the history alarm management of network management system, be specifically related to shake the merging method of dodging and accusing history alarm amount.
Background technology
In the last few years, network environment and networking structure become increasingly complex, also more and more higher to the requirement of network management system, the Real-time Collection of alarm, the promptness of response and high reliability are the basic demands to warning system, and communication network warning system is common carrier requisite instrument in operation support management.
In general, the alarm reception of alarming processing unit and disposal ability can tackle the alarm information of normal condition, but in particular cases can produce alarm windstorm at some, cause the alarm transmission of network element and the alarm of alarming processing unit to receive and process seriously asymmetric, thus there will be following problem:
(1) dodge accuse because some network reason inevitably produces a large amount of concussion, this can cause history alarm Data Analysis Data amount large, alarm data analysis work load is increased the weight of and efficiency is low;
(2) conference of history alarm data volume causes huge government pressure to the database of webmaster, alarm related Data Services, northbound interface and united net management, considerably increases the workload of alarm management, reduces the efficiency of alarm management simultaneously.
In view of this, be badly in need of providing a kind of method and system reducing history alarm Data Analysis Data amount, improve the efficiency of alert analysis efficiency and alarm management.
Summary of the invention
Technical problem to be solved by this invention how to reduce history alarm Data Analysis Data amount, to improve the problem of the efficiency of alert analysis efficiency and alarm management.
In order to solve the problems of the technologies described above, the technical solution adopted in the present invention is that the merging method of accusing history alarm amount is dodged in concussion, comprises the following steps:
S1, determine and arrange dodge accuse the duration and concussion the time interval;
S2, initialization are dodged to accuse table and dodge and are accused buffer queue;
S3, network management alarm module judge described sudden strain of a muscle announcement according to described S1 parameters, and merge concussion sudden strain of a muscle announcement;
S4, network management interface dodge announcement to described concussion and carry out merging display;
Described concussion after merging is dodged announcement and is reported by S5, webmaster northbound interface.
In the above-mentioned methods, dodge described in described S1 and accuse the duration and comprise and be less than or equal to 10 seconds, be less than or equal to 30 seconds two grades.
In the above-mentioned methods, shaking the time interval described in described S1 comprises: be less than or equal to 1 minute, be less than or equal to 2 minutes, be less than or equal to 3 minutes, be less than or equal to 4 minutes, be less than or equal to 5 minutes five grades.
In the above-mentioned methods, described sudden strain of a muscle announcement table comprises dodging accuses buffer memory index and warning information, is empty queue when described sudden strain of a muscle announcement buffer queue is initial; Described sudden strain of a muscle is accused each entry of buffer queue and is comprised: the field such as alarm source object, alarm locating information, warning code, raising Time, alarm up-to-date end time, warning count.
In the above-mentioned methods, described S3 comprises following concrete steps:
S31, according to described sudden strain of a muscle accused the duration to the alarm terminated received determine whether to dodge and accuse, accuse if dodge, turn S32; Otherwise turn S35;
S32, judge that described sudden strain of a muscle is accused alarm and whether is present in dodge and accuses in buffer queue, if not in described sudden strains of a muscle announcement buffer queue, turn S33; If accuse in buffer queue in described sudden strain of a muscle, and interval is less than or equal to the described concussion time interval, then turn S34, if interval is more than or equal to the described concussion time interval, entry in described buffer queue is turned S33 after transferring to history alarm table;
S33, accuse buffer queue in described sudden strain of a muscle this alarm is increased as new entry;
S34, increase described sudden strain of a muscle and accuse same item counting in buffer queue and add 1, and refresh the up-to-date end time, and this warning information and corresponding sudden strain of a muscle are accused buffer memory index and accuse stored in described sudden strains of a muscle and show;
S35, enter described history alarm table by normal alarm.
In the above-mentioned methods, judge in described S31 that dodging the condition of accusing is exactly be less than or equal to described sudden strain of a muscle the alarm duration to accuse the duration.
In the above-mentioned methods, described S4 specifically comprises the following steps:
The sudden strain of a muscle shown during the inquiry of S41, webmaster history alarm in described history alarm table is accused and is merged entry and count information;
S42, when needing the original record checking described merging entry, webmaster launches the described merging entry of display and accuses alarm entry corresponding in table described sudden strain of a muscle.
The information that the present invention accuses buffer queue by the information and sudden strain of a muscle of the sudden strain of a muscle received being accused alarm contrasts, see whether there is the warning information got corresponding with it, if existed, merged, if there is no, then this warning message is increased as new entry, represent and occurred new fault between network, by such scheme in reduction history alarm Data Analysis Data amount, while improving alert analysis efficiency, alleviate the database of history alarm data volume to webmaster, alarm related Data Services, producer's webmaster northbound interface and comprehensive network management cause huge government pressure.
Accompanying drawing explanation
Fig. 1 is workflow diagram of the present invention;
Fig. 2 dodges announcement table and alarm buffer queue information table in the present invention.
Embodiment
Below in conjunction with embodiment and Figure of description, the present invention is described in detail.
As shown in Figure 1, the merging method of accusing history alarm amount is dodged in concussion provided by the invention, comprises the following steps:
S1, determine and arrange dodge accuse the duration and concussion the time interval;
Wherein dodge and accuse the duration and comprise and be less than or equal to 10 seconds, be less than or equal to 30 seconds two grades;
The concussion time interval comprises: be less than or equal to 1 minute, be less than or equal to 2 minutes, be less than or equal to 3 minutes, be less than or equal to 4 minutes, be less than or equal to 5 minutes five grades.
Dodge the announcement duration and can carry out selection setting with the concussion time interval on webmaster; Alarm duration=alarm end time-alarm time of origin, concussion the time interval=same alarm object alarm next time time of origin-alarm end time last time, these two parameters are used to judge that new concussion is dodged to accuse and whether existed in sudden strain of a muscle announcement buffer queue.
S2, initialization are dodged to accuse table and dodge and are accused buffer queue;
Dodge announcement table and comprise sudden strain of a muscle announcement buffer memory index and warning information.It is empty queue that buffer queue is accused in initial sudden strain of a muscle, dodges to accuse each entry of buffer queue and comprise dodging and accuse buffer memory index, warning information and sudden strain of a muscle and accuse counting, dodges and accuses table and alarm buffer queue main information as shown in Figure 2.
S3, network management alarm module judge sudden strain of a muscle announcement according to S1 parameters, and merge concussion sudden strain of a muscle announcement;
Above-mentioned S3 concrete steps are:
S31, to the alarm terminated received according to sudden strain of a muscle accuse the duration determine whether dodge accuse, if dodge accuse, turn S32; Otherwise turn S35;
S32, judge that this sudden strain of a muscle is accused alarm and whether is present in dodge and accuses in buffer queue, if do not accused in buffer queue in sudden strain of a muscle, turn S33; If accused in buffer queue in sudden strain of a muscle, and interval is less than or equal to the concussion time interval, then turn S34, if interval is more than or equal to the concussion time interval, turns S33 after entry in buffer queue is transferred to history alarm table;
S33, sudden strain of a muscle accuse buffer queue this alarm is increased as new entry;
S34, increase sudden strain of a muscle are accused same item counting in buffer queue and are added 1, and refresh the up-to-date end time, and the sudden strain of a muscle announcement buffer memory index of this warning information and correspondence is accused table stored in sudden strain of a muscle;
S35, enter history alarm table by normal alarm.
S4, network management interface dodge announcement to concussion and carry out merging display;
The concrete steps of above-mentioned S4 are:
The sudden strain of a muscle shown during the inquiry of S41, webmaster history alarm in history alarm table is accused and is merged rear entry and count information;
S42, when need to check merge the original record of entry time, webmaster launches this entry of display dodging and accuses alarm entry corresponding in table.
Concussion after merging is dodged announcement and is reported by S5, webmaster northbound interface.
Specific works flow process of the present invention is: first carry out determining on webmaster and arrange to dodge accusing duration and the concussion time interval, initialization is simultaneously dodged to accuse table and dodge and is accused buffer queue, the information of then sudden strain of a muscle that receives being accused to alarm with dodge the information of accusing buffer queue and contrast, see whether there is the warning information got corresponding with it, if there is no corresponding information, then will perform S33, and represent and occurred new fault between network.If the information that alarm is accused in the sudden strain of a muscle received exists, but the concussion time interval that the concussion that alarm is accused in this sudden strain of a muscle sets in S1, so perform S33.
Exist if the warning information got accuses buffer queue in sudden strain of a muscle, and the concussion time interval that alarm is accused in this sudden strain of a muscle is less than or equal to the concussion time interval set in S1, then increase the data entries counting dodging correspondence in announcement buffer queue and add 1, and refresh the up-to-date end time, achieve the merging of identical concussion alarm information, and this warning information and corresponding sudden strain of a muscle are accused buffer memory index stored in sudden strain of a muscle announcement table, network management interface carries out merging display to concussion sudden strain of a muscle announcement afterwards, when webmaster history alarm is inquired about, entry and count information are accused in the sudden strain of a muscle after the merging of display history alarm table, when if desired checking the original record merging entry, webmaster launches this entry of display and is dodging alarm entry corresponding in announcement table, concussion after merging is dodged announcement and is reported by last webmaster northbound interface, so just only reports the sudden strain of a muscle after merging to accuse, greatly reduces the data volume of history alarm information reporting.
The present invention is not limited to above-mentioned preferred forms, and anyone should learn the structural change made under enlightenment of the present invention, and every have identical or close technical scheme with the present invention, all falls within protection scope of the present invention.