CN106789247A - A kind of warning information mapping method and device - Google Patents

A kind of warning information mapping method and device Download PDF

Info

Publication number
CN106789247A
CN106789247A CN201611200156.XA CN201611200156A CN106789247A CN 106789247 A CN106789247 A CN 106789247A CN 201611200156 A CN201611200156 A CN 201611200156A CN 106789247 A CN106789247 A CN 106789247A
Authority
CN
China
Prior art keywords
warning information
network element
resource
mapping table
mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201611200156.XA
Other languages
Chinese (zh)
Inventor
李会
易怀勋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raisecom Technology Co Ltd
Original Assignee
Raisecom Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Raisecom Technology Co Ltd filed Critical Raisecom Technology Co Ltd
Priority to CN201611200156.XA priority Critical patent/CN106789247A/en
Publication of CN106789247A publication Critical patent/CN106789247A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a kind of warning information mapping method and device, to realize the effective management to a series of warning information of resources of each reported by network elements in network management system, the warning information of each network element and the resources at different levels of each network element is intuitively presented in the client of NM server.The method includes:NM server sets up each network element and the resource alarm information MAP tables at different levels of each network element, wherein, the network element that the network element is managed by the NM server, the warning information mapping table includes the network element and is under the jurisdiction of the warning information of the resources at different levels of the network element;The NM server obtains the warning information of the warning information of the network element and/or the resource of the network element, and acquired warning information is updated in the warning information mapping table according to the warning message of the reported by network elements.

Description

A kind of warning information mapping method and device
Technical field
The present invention relates to communication technical field, more particularly to a kind of warning information mapping method and device.
Background technology
At present, in existing network management system, NM server is realized typically by the message interaction between network element Configuration, management and control to network element.When the resource of network element or network element occurs emergency case, network element can give birth to for the situation Into corresponding warning message, and the warning message is reported into NM server, such as port occurs link failure.Network manager service Device obtains the warning information of the network element or the resource of the network element, such as alarm source mark, alarm type, announcement according to the warning message Alert rank etc..Wherein, alarm level is used for representing the order of severity of network element failure, is generally divided into level Four, is followed successively by from high to low: Critical alarm, main alarm, minor alarm, prompt alarm.
But, a kind of mechanism is lacked at present to realize alarm of the NM server to a series of resources of each reported by network elements Effective management of information, so that enough information to be intuitively presented in the client of NM server.
The content of the invention
The embodiment of the present invention provides a kind of warning information mapping method and device, to realize on each network element in network management system Report a series of resources warning information effective management, intuitively presented in the client of NM server each network element and The warning information of the resources at different levels of each network element.
Concrete technical scheme provided in an embodiment of the present invention is as follows:
In a first aspect, a kind of warning information mapping method is the embodiment of the invention provides, including:
NM server sets up the warning information mapping table of each network element and the resources at different levels of each network element, wherein, institute State the network element that network element is managed by the NM server, the warning information mapping includes the network element and the network element The warning information of resources at different levels;
The NM server according to the warning message of the reported by network elements, obtain the network element warning information and/or The warning information of the resource of the network element, and the warning information that will be obtained updated in the warning information mapping table.
Second aspect, the embodiment of the invention provides a kind of warning information mapping device, including:
Unit is set up, the warning information mapping table of each network element and the resources at different levels of each network element is set up, wherein, it is described Network element is the network element that the NM server comprising described device is managed, the warning information mapping table include the network element and The warning information of the resources at different levels of the network element;
Processing unit, according to the warning message of the reported by network elements, obtains the warning information and/or the net of the network element The warning information of the resource of unit, and the warning information that will be obtained updated in the warning information mapping table.
Based on above-mentioned technical proposal, in the embodiment of the present invention, it is every that NM server sets up that the NM server managed The warning information mapping table of the resources at different levels of individual network element and each network element, wherein, the warning information mapping table includes each net The warning information of the resources at different levels of unit and each network element;, according to the warning message of the reported by network elements, obtaining should for NM server The warning information of the resource of the warning information of network element and/or the network element, and the warning information of acquisition is stored in the warning information In mapping table so that NM server can intuitively be presented what the NM server was managed by the warning information mapping table The warning information of the resources at different levels of each network element and each network element, facilitates management and control of the administrative staff to each network element.
Brief description of the drawings
Fig. 1 is that NM server sets up the schematic flow sheet of warning information mapping table in first embodiment of the invention;
Fig. 2 is the membership schematic diagram of network element and the resources at different levels of network element;
Fig. 3 is warning information mapping table schematic diagram in first embodiment of the invention;
Fig. 4 is warning information mapping table schematic diagram after newly-increased network element in the first specific embodiment of the invention;
Fig. 5 is warning information mapping table schematic diagram after deletion network element in the first specific embodiment of the invention;
Fig. 6 is the structural representation of warning information mapping device in second embodiment of the invention;
Fig. 7 be second embodiment of the invention in NM server keep internal memory it is consistent with warning information mapping table in database Schematic diagram.
Specific embodiment
In order that the object, technical solutions and advantages of the present invention are clearer, below in conjunction with accompanying drawing the present invention is made into One step ground is described in detail, it is clear that described embodiment is only a part of embodiment of the invention, rather than whole implementation Example.Based on the embodiment in the present invention, what those of ordinary skill in the art were obtained under the premise of creative work is not made All other embodiment, belongs to the scope of protection of the invention.
In order to realize the effective management to a series of warning information of resources of each reported by network elements in network management system, in webmaster The warning information of each network element and the resources at different levels of each network element, the embodiment of the present invention are intuitively presented in the client of server A kind of warning information mapping method and device are provided.
First embodiment, NM server sets up the flow of warning information mapping table as shown in figure 1, specifically including following step Suddenly:
Step 101:NM server sets up the warning information mapping table of each network element and the resources at different levels of each network element, Wherein, the network element is the network element that the NM server is managed, and the warning information mapping table includes each of network element and the network element The warning information of level resource.
Specifically, network management system is made up of multiple network elements that NM server and the NM server are managed, wherein, one Individual network element is a communication equipment.One network element includes at least one cabinet, and a cabinet includes at least one board, one Board includes at least one port.The cabinet of network element, board, the resource that port is the network element, exist between these resources and are subordinate to Relation as shown in Fig. 2 for a network element, in the membership between each resource that network element and the network element are included, from low Level is followed successively by senior order:Port, board, cabinet, network element.
Specifically, warning information includes the one kind or many in alarm source mark, alarm type, alarm level and alarm quantity Kind.For example, the corresponding warning information of mark of each network element is the number of each grade alarm of the network element in warning information mapping table Amount, the corresponding warning information of mark of the resources at different levels of each network element is the quantity of each grade alarm of the resource, wherein, it is each etc. The quantity of level alarm is the quantity of critical alarm, the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm.
Preferably, NM server uses hash algorithm successively, and the at different levels of each network element and each network element are set up respectively The warning information mapping table of warning information, wherein, the |input paramete key (key) of hash algorithm is followed successively by the mark of network element and is subordinate to In the mark of every one-level resource of the network element, the mark of resource carries the resource and the resource to the every one-level money between the network element Source and the membership of the network element.The preferred embodiment enables NM server by the warning information mapping table intuitively Each network element is presented and is under the jurisdiction of the warning information of the resources at different levels of each network element, and can be according to the mark of network element, soon The warning information of the network element is found in quick checking, to obtain or update the warning information of the network element, and/or the resource according to network element mark Know, the warning information of the resource is quickly found, to obtain or update the warning information of the resource.The mark of network element is the network element Unique mark in network management system, the mark of the resource of network element is unique mark of the resource in network management system.
In implementation, the descriptor for being designated the network element of network element, the mark of the resource of network element by the network element descriptor, should Resource is constituted to the descriptor of every one-level resource between the network element and the descriptor of the resource according to the order of setting, wherein, The descriptor for being directly under the jurisdiction of each resource of same resource is different, is directly under the jurisdiction of the descriptor of each resource of same network element Difference, the descriptor for being under the jurisdiction of each resource of different resource or network element can be with identical, it is also possible to different.For example, a network element Including two cabinets, each cabinet includes two boards, and each board includes two ports, wherein, cabinet is directly under the jurisdiction of net Unit, board is directly under the jurisdiction of cabinet, and port is directly under the jurisdiction of board, therefore, the descriptor of each cabinet of the network element is different, and two The descriptor of individual cabinet is respectively " shelf=1 " and " shelf=2 ", and the descriptor of each board of the network element is different, two The descriptor of board is respectively " card=1 " and " card=2 ", and the descriptor of each port of the network element is also different, two ends The descriptor of mouth is respectively " port=1 " and " port=2 ".
Preferably, descriptor, the resource to the every one-level money the network element of the mark of the resource of network element by the network element The descriptor in source and the descriptor of the resource, according to the resource and the resource to the every one-level resource and the net between the network element Order composition of the membership of unit from senior to rudimentary.For example, a network element includes a cabinet, the cabinet includes a plate Card, the board includes two ports, if the descriptor of the network element is " ne=1 " (mark of the network element is also " ne=1 "), the machine The descriptor of case is " shelf=1 ", and the descriptor of the board is " card=1 ", and the descriptor of two ports is respectively " port=1 " and " port=2 ", then the cabinet of the network element be designated " ne=1/shelf=1 ", the mark of the board of the network element It is " ne=1/shelf=1/card=1 " to know, and the mark of two ports of the network element is respectively " ne=1/shelf=1/card =1/port=1 " and " ne=1/shelf=1/card=1/port=2 ".
Preferably, network element be designated the network element URL (Uniform Resource Locator, URL), the URL for being designated the resource of the resource of the network element.Wherein, if the resource is directly under the jurisdiction of the network element, the URL bags The descriptor of the network element and the descriptor of the resource are included, if the resource is not directly to be under the jurisdiction of the network element, the URL of the resource includes The descriptor of the network element, the resource to the every one-level resource between the network element descriptor and the descriptor of the resource, and the URL In the descriptor of the network element, the descriptor of every one-level resource between the resource and the network element and the resource descriptor according to person in servitude Order arrangement of the category relation from senior to rudimentary.For example, a network element includes a cabinet, the cabinet includes a board, should Board includes port 1 and port 2, wherein, the URL of the network element is "/ne=1 ", and the URL of the cabinet is "/ne=1/shelf= 1 ", the URL of the board is "/ne=1/shelf=1/card=1 ", and the URL of port 1 is "/ne=1/shelf=1/card= 1/port=1 ", the URL of port 2 is "/ne=1/shelf=1/card=1/port=2 ".
One specifically in implementation, NM server is successively by the mark and the moneys at different levels of each network element of each network element The mark in source as hash data structure key (key), will be used for preserve the network element warning information object and for preserving the net The object of the warning information of the resource of unit sets up the mark of network element and the announcement of the network element as the value (value) of the hash data structure Corresponding relation between alert information, and network element resource mark and the warning information of the resource between corresponding relation, root Warning information mapping table is obtained according to the corresponding relation set up, wherein, the hash data structure is used to set up configuration by hash algorithm The corresponding relation of key and the value of configuration.
Step 102:NM server obtains the warning information of the network element and/or is somebody's turn to do according to the warning message of reported by network elements The warning information of the resource of network element, and the warning information is updated in warning information mapping table.
In implementation, NM server receives the warning message of reported by network elements, the warning information of the network element is obtained, according to the announcement The mark of the network element carried in warning message, the warning information to the network element of warning information mapping table is updated by the warning information In list item.
In implementation, NM server receives the warning message of reported by network elements, after the warning information of the resource for obtaining the network element, The mark of the resource carried in the warning message is parsed, determine to include in the membership entrained by the mark of the resource is each The mark and the mark of the network element of level resource, and mark, the mark and the network element per one-level resource respectively according to the resource Mark, the warning information that will be obtained updated in the warning information mapping table.Because warning information mapping table is according to network element And the warning information of the membership hierarchical statistics of each resource, so when the alarm of the resource that low one-level occurs, not only will be more The warning information list item of the new resource, but also to update the warning information of all premium resources that the resource is subordinate to and network element List item.Specifically, above-mentioned implementation method provided in an embodiment of the present invention so that NM server carries network element receiving After the warning message of the mark of resource, parsing directly can be subject to the mark of the resource of network element in warning message and obtain the resource The resources at different levels and the mark of network element being subordinate to, such that it is able to be based on these mark concomitantly more new resources and its be subordinate to it is each Level resource and the corresponding warning information mapping item of network element.Compared to the membership table for pre-building network element and each resource, and For obtaining the scheme of mark of resources at different levels that the resource that alerts is subordinate to and network element by lookup table mode afterwards, this implementation Mode enables NM server while the warning information of the resource of any network element in updating warning information mapping table, soon The resource to the warning information and the warning information of the network element of the resources at different levels of the network element is updated fastly.For example, network manager service The warning information mapping table that device is obtained using hash algorithm is as shown in figure 3, wherein, the left side of warning information mapping table is network element The URL of the resources at different levels of URL and the network element, right side is the number of the critical alarm of the network element and the resources at different levels of the network element The quantity of amount, the quantity, the quantity of minor alarm and prompt alarm of main alarm.
Specifically, the description of first resource is deleted in the mark of the first resource that NM server is carried from warning message Symbol, obtains the mark of the Secondary resource that first resource is directly subordinate to, and the description of Secondary resource is deleted from the mark of Secondary resource Symbol, obtains the mark of the information resources that Secondary resource is directly subordinate to, the like obtain first resource to every between the network element The mark of one-level resource and the mark of the network element.
Specifically, NM server is according to the mark of first resource, finds first resource in warning information mapping table Warning information, and according to the warning information of the first resource carried in the warning message of reported by network elements to the alarm of first resource letter Breath is updated;NM server according to first resource to the mark of the every one-level resource between the network element, finds this respectively In warning information mapping table first resource to the every one-level resource between the network element warning information, and according to the announcement of first resource Alert information is updated to first resource to the warning information of the every one-level resource between the network element respectively;NM server according to The mark of the network element, finds the warning information of the network element in the warning information mapping table, and believe according to the alarm of first resource Cease and the warning information of the network element is updated.For example, NM server receives the warning message of reported by network elements, wherein, should The warning information carried in warning message is that the port of the network element occurs link failure (link down), is taken in the warning message The port of band is designated "/ne=1/shelf=1/card=1/port=1 ", and link down belong to critical alarm, webmaster The process of server update alarm mapping table is as follows:1st, NM server finds the warning information according to the mark of the port The warning information of mapping table middle port, adds 1 by the number of critical alarm in the warning information of the port;2nd, NM server according to The mark of the port, determine the board that the port is directly subordinate to is designated "/ne=1/shelf=1/card=1 ", according to this The mark of board, finds the warning information of the board in the warning information mapping table, will be urgent in the warning information of the board The number of alarm adds 1;3rd, NM server is according to the mark of the port, determine being designated of the cabinet that the board is directly subordinate to "/ Ne=1/shelf=1 ", according to the mark of the cabinet, finds the warning information of the cabinet in the warning information mapping table, will The number of critical alarm adds 1 in the warning information of the cabinet;4th, NM server determines that the cabinet is straight according to the mark of the port Connect the network element that is subordinate to is designated "/ne=1 ", according to the mark of the network element, finds the network element in the warning information mapping table Warning information, the number of critical alarm in the warning information of the network element is added 1.
In implementation, be stored in warning information mapping table in internal memory by NM server, and the warning information mapping table is standby Part in database, wherein, the warning information mapping table in internal memory is used to update or inquire about network element and/or the warning information of resource When use, the warning information mapping table in database is used to be used during the warning information mapping table for reducing in internal memory.Network manager service Be stored in warning information mapping table in internal memory by device, it is possible to increase the performance of the mapping of warning information, prevents warning information from processing There is obstruction.Meanwhile, NM server backups to warning information mapping table firing table in database so that NM server is restarted When, the warning information mapping table can be directly loaded from database, and when causing the client terminal start-up of NM server, energy Enough warning information that the warning information of each network element and all resources of each network element are directly obtained from database.Specifically, When the client terminal start-up of NM server, the client connects (Java Data Base by Java databases Connectivity, JDBC) alarm of the warning information of each network element and all resources of each network element is obtained from database Information.
In implementation, NM server is then preserved in internal memory and database if it is determined that increase new network element in network management system Warning information mapping table in increase the network element and the network element warning information corresponding relation, and the network element resources at different levels With the corresponding relation of the warning information of the resource;NM server if it is determined that increase new resource on any network element, then in alarm Increase the corresponding relation of the resource and the warning information of the resource in information MAP table.
Specifically, NM server is if it is determined that increase new network element in network management system, then using hash algorithm, in internal memory and Increase the mark of the network element and the corresponding relation of the warning information of the network element in the warning information mapping table preserved in database, with And the corresponding relation of the warning information of the mark and the resource of the resources at different levels of the network element, for example, because business scale expands, needing To increase one or more new network elements in network management system.
In one concrete implementation mode, NM server if it is determined that increase new network element in network management system, then by the net The mark of unit as hash data structure key, the object of the warning information that will be used to preserving the network element is used as the hash data structure Value, increases the mark of the network element and the alarm of the network element in the warning information mapping table preserved in internal memory and/or database The corresponding relation of information, and will be used to preserve the money using the mark of the resources at different levels of the network element as the key of hash data structure respectively The object of the warning information in source as the hash data structure value, in internal memory and database preserve warning information mapping table The mark of the middle resource for increasing the network element and the corresponding relation of the warning information of the resource of the network element.
In implementation, NM server is protected during internal memory and database are deleted if it is determined that there is network element to be removed in network management system, then The corresponding relation of the warning information of the network element and the network element in the warning information mapping table deposited, and the network element resources at different levels with The corresponding relation of the warning information of the resource.For example due to business change, it is necessary to a network element in removing network management system.
In implementation, before NM server updates in warning information mapping table acquired warning information, by internal memory The warning information mapping table of middle preservation is saved in temporary file.NM server updates to internal memory acquired warning information After in the warning information mapping table of middle preservation, however, it is determined that warning information of the acquired warning information of use to preservation in database Mapping table updates failure, then according to the warning information mapping table preserved in temporary file, update the warning information preserved in internal memory Mapping table, and delete the temporary file;Otherwise, the temporary file is directly deleted.The way of example causes what is preserved in internal memory Warning information mapping table is always consistent with the warning information mapping table of preservation in database.Because NM server is connected with Multiple client, wherein, part client is in presence, and part client is in not presence, the announcement in internal memory After alert information MAP table updates, the announcement of the client in presence is updated using the warning information mapping table after renewal It is the acquisition warning information mapping table from database when alert information MAP table, client terminal start-up in not presence.If Warning information mapping table in internal memory in a renewal process is updated successfully, and the warning information mapping table in database updates Failure, so as to the warning information mapping table preserved in causing internal memory and database is inconsistent, then the client that can cause presence The warning information shown by client started after the shown warning information in end, with the renewal process is inconsistent.Therefore, net After the warning information mapping table preserved in pipe server update internal memory, however, it is determined that the warning information mapping table preserved in database is more New failure, according to the warning information mapping table before the renewal preserved in temporary file, updates the warning information preserved in internal memory and reflects Firing table so that the warning information of each network element that each client of NM server is obtained and all resources of each network element Warning information it is identical.
In implementation, NM server updates acquired warning information in the warning information mapping table preserved in internal memory Afterwards, in the warning information mapping table after renewal being copied into database so that the warning information mapping table and number preserved in internal memory It is always consistent according to the warning information mapping table preserved in storehouse.
In implementation, NM server determines the warning information mapping table preserved in internal memory and the alarm letter preserved in database After breath mapping table is updated successfully, broadcasted to all clients of NM server by message queue (Message Quene, MQ) The warning information updated in internal memory.
Warning information mapping method provided in an embodiment of the present invention is carried out specifically below by way of three specific embodiments It is bright.
First specific embodiment, when NM server determines to increase in network management system new network element, it is necessary in internal memory and/or Increase the corresponding relation of the network element and the warning information of the network element in the warning information mapping table preserved in database, and increase The corresponding relation of the warning information of all resources of the network element and the resource of the network element.
Assuming that increased new network element includes a cabinet in network management system, the cabinet includes a board, the board bag Two ports are included, the URL of the network element is "/ne=2 ", and the URL of the cabinet is "/ne=2/shelf=1 ", and the URL of the board is "/ne=2/shelf=1/card=1 ", the URL of two ports is respectively "/ne=2/shelf=1/card=1/port =1 " and "/ne=2/shelf=1/card=1/port=2 ", and the resource of the network element and the network element does not have warning information, When not increasing the network element in network management system, the warning information mapping table preserved in internal memory and/or database is as shown in Figure 3.Webmaster Server increases the corresponding relation of the network element and the warning information of the network element in warning information mapping table as shown in Figure 3, with And all resources of the network element are as follows with the process of the corresponding relation of the warning information of the resource of the network element:
1st, the URL of the network element as the key of hash data structure will be used to preserve the critical alarm of the network element by NM server Quantity, the object of the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm as the hash data structure Value, increases the network element with the warning information of the network element in the warning information mapping table preserved in internal memory and/or database Corresponding relation;
2nd, the URL of the cabinet of the network element as the key of the hash data structure will be used to preserve the network element by NM server The object conduct of the quantity of the critical alarm of cabinet, the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm The value of the hash data structure, increases the cabinet of the network element and is somebody's turn to do in the warning information mapping table preserved in internal memory and database The corresponding relation of the warning information of the cabinet of network element;
3rd, the URL of the board of the network element as the key of the hash data structure will be used to preserve the network element by NM server The object conduct of the quantity of the critical alarm of board, the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm The value of the hash data structure, increases the board of the network element and is somebody's turn to do in the warning information mapping table preserved in internal memory and database The corresponding relation of the warning information of the board of network element;
4th, the URL of the port 1 of the network element as the key of the hash data structure will be used to preserve the network element by NM server The quantity of critical alarm of port 1, the object of the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm makees Be the value of the hash data structure, increase in the warning information mapping table preserved in the internal memory and database the port 1 of the network element with The corresponding relation of the warning information of the port 1 of the network element;
5th, the URL of the port 2 of the network element as the key of the hash data structure will be used to preserve the network element by NM server The quantity of critical alarm of port 2, the object of the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm makees Be the value of the hash data structure, increase in the warning information mapping table preserved in the internal memory and database the port 2 of the network element with The corresponding relation of the warning information of the port 2 of the network element, wherein, the number of the critical alarm of the resource of newly-increased network element and the network element Amount, the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm are 0.Now, preserved in internal memory and database Warning information mapping table it is as shown in Figure 4.
It should be noted that the embodiment of the present invention increases NM server network element and the net in warning information mapping table The corresponding relation of the warning information of unit, and the network element all resources and the network element resource warning information corresponding relation Order be not construed as limiting.
In one concrete implementation mode, due to business change, URL is "/ne=during NM server determines network management system 1 " network element is removed, and deletes the URL of the network element in the warning information mapping table as shown in Figure 4 preserved in internal memory and database Quantity with the critical alarm of the network element, the quantity of the quantity, the quantity of minor alarm and prompt alarm of main alarm it is corresponding Relation, and the network element resource URL and the network element resource critical alarm quantity, quantity, the secondary announcement of main alarm Alert quantity and the corresponding relation of the quantity of prompt alarm, now, warning information mapping table is as shown in Figure 5.
Second specific embodiment, NM server determines that the resource of network element breaks down, and updates guarantor in internal memory and database The warning information mapping table deposited, specifically includes following steps:
1st, NM server determines that the port 1 of the network element there occurs link failure according to the warning message of reported by network elements (linkdown) this critical alarm, wherein, the warning message is based on UDP (UserDatagram Protocol, UDP) trap (Trap) message, the URL of port 1 is "/ne=2/shelf=1/card=1/port=1 ";
2nd, the warning information mapping table that NM server will be preserved in internal memory is saved in temporary file;
3rd, the port is found in the warning information mapping table that NM server is preserved according to the URL of port 1 in internal memory Corresponding warning information, adds 1 by the quantity of the critical alarm in warning information;
4th, the URL of board of the NM server according to where the URL of port 1 determines port 1 is "/ne=2/shelf=1/ Card=1 ", finds the warning information of the board in the warning information mapping table that the URL according to the board is preserved in internal memory, The quantity of the critical alarm in the warning information is added 1;
5th, the URL of cabinet of the NM server according to where the URL of port 1 determines port 1 is "/ne=2/shelf= 1 ", the warning information of the cabinet is found in the warning information mapping table that the URL according to the cabinet is preserved in internal memory, this is accused The quantity of the critical alarm in alert information adds 1;
6th, the URL of network element of the NM server according to where the URL of port 1 determines port 1 is "/ne=2 ", according to the net The warning information of the network element is found in the warning information mapping table that the URL of unit is preserved in internal memory, will be tight in the warning information The quantity of anxious alarm adds 1;
7th, NM server updates the data the warning information mapping table middle port preserved in storehouse according to the warning information of port 1 Promptly accused in the warning information of the network element that the cabinet and port 1 that board that the 1, port 1 is subordinate to, port 1 are subordinate to are subordinate to Alert quantity.
In implementation, NM server updates the data the warning information and the resource related to port 1 and net of storehouse middle port 1 The method of the warning information of unit and the warning information for updating internal memory middle port 1 and the announcement of the resource related with port 1 and network element The method of alert information is identical, referring specifically to the description of step 3-6.
8th, NM server is if it is determined that the plate that the warning information mapping table middle port 1, port 1 of preservation is subordinate in database The quantity of critical alarm is updated in the warning information of the network element that the cabinet and port 1 that card, port 1 are subordinate to are subordinate to Work(, the then temporary file for being preserved in direct delete step 2 otherwise, the alarm letter preserved in internal memory is updated according to the temporary file Breath mapping table, and delete the temporary file.
3rd specific embodiment, NM server determines that the faulty resource of network element recovers, and updates guarantor in internal memory and database The warning information mapping table deposited, specifically includes following steps:
1st, the fault recovery message that NM server sends according to network element determines the linkdown failures of the port 1 of the network element Recover, wherein, the fault recovery message is that the URL of port 1 is "/ne=2/shelf=1/ based on udp protocol Trap messages Card=1/port=1 ";
2nd, the warning information mapping table that NM server will be preserved in internal memory is saved in temporary file;
3rd, the port is found in the warning information mapping table that NM server is preserved according to the URL of port 1 in internal memory Corresponding warning information, subtracts 1 by the quantity of the critical alarm in warning information;
4th, the URL of board of the NM server according to where the URL of port 1 determines port 1 is "/ne=2/shelf=1/ Card=1 ", finds the warning information of the board in the warning information mapping table that the URL according to the board is preserved in internal memory, The quantity of the critical alarm in the warning information is subtracted 1;
5th, the URL of cabinet of the NM server according to where the URL of port 1 determines port 1 is "/ne=2/shelf= 1 ", the warning information of the cabinet is found in the warning information mapping table that the URL according to the cabinet is preserved in internal memory, this is accused The quantity of the critical alarm in alert information subtracts 1;
6th, the URL of network element of the NM server according to where the URL of port 1 determines port 1 is "/ne=2 ", according to the net The warning information of the network element is found in the warning information mapping table that the URL of unit is preserved in internal memory, will be tight in the warning information The quantity of anxious alarm subtracts 1;
7th, NM server updates the data the plate that the warning information mapping table middle port 1, port 1 preserved in storehouse is subordinate to The quantity of critical alarm in the warning information of the network element that the cabinet and port 1 that card, port 1 are subordinate to are subordinate to.
8th, NM server is if it is determined that the plate that the warning information mapping table middle port 1, port 1 of preservation is subordinate in database The quantity of critical alarm is updated in the warning information of the network element that the cabinet and port 1 that card, port 1 are subordinate to are subordinate to Work(, the then temporary file for being preserved in direct delete step 2 otherwise, the alarm letter preserved in internal memory is updated according to the temporary file Breath mapping table, and delete the temporary file.
Based on same inventive concept, the embodiment of the invention provides a kind of warning information mapping device, the device it is specific Implement the description reference can be made to first embodiment part, repeat part and repeat no more, as shown in fig. 6, the equipment mainly includes:
Unit 601 is set up, the warning information mapping table of each network element and the resources at different levels of each network element is set up, wherein, The network element is the network element that the NM server comprising described device is managed, and the warning information mapping table includes the network element And it is under the jurisdiction of the corresponding relation of the warning information of the resources at different levels of the network element;
Processing unit 602, according to the warning message of the reported by network elements, obtains warning information and/or the institute of the network element The warning information of the resource of network element is stated, and acquired warning information is updated in the warning information mapping table.
In possible implementation method, it is described set up unit 601 specifically for:Hash algorithm is used successively, sets up the net The warning information mapping table of the first and network element resources at different levels, wherein, the |input paramete key key of the hash algorithm according to Secondary is the mark and the mark of the every one-level resource for being under the jurisdiction of the network element of the network element, and the mark of the resource carries the money Source and the resource are to the every one-level resource and the membership of the network element between the network element;
The processing unit specifically for:The mark of the resource carried in the warning message is parsed, the resource is determined Mark entrained by the membership in the mark and the mark of the network element of every one-level resource that include, and basis respectively The mark of the resource, the mark and the mark of the network element per one-level resource, the warning information is updated described in In warning information mapping table.
In possible implementation method, the processing unit 602 is additionally operable to:The warning information mapping table is stored in internal memory In, and the warning information mapping table is backuped into database, wherein, warning information mapping table in internal memory be used to updating or Used during the warning information for inquiring about the network element and/or the resource, the warning information mapping table in database is used to reduce institute Used when stating the warning information mapping table in internal memory.
In possible implementation method, descriptor, the resource to the network element of the mark of the resource by the network element Between the descriptor of every one-level resource and the descriptor of the resource according to setting order constitute, wherein, be directly under the jurisdiction of The descriptor of each resource of same resource is different, and the descriptor for being directly under the jurisdiction of each resource of same network element is different.
In possible implementation method, the processing unit 602 is additionally operable to:
Before acquired warning information is updated in the warning information mapping table, the institute that will be preserved in the internal memory Warning information mapping table is stated to be saved in temporary file;
After in the warning information mapping table that will be preserved in acquired warning information renewal to internal memory, however, it is determined that use The warning information updates failure to the warning information mapping table preserved in database, then protected according in the temporary file The warning information mapping table deposited, updates the warning information mapping table preserved in the internal memory, and delete the temporary file;It is no Then, the temporary file is directly deleted.
For example, as shown in fig. 7, the warning information mapping device is built in NM server, warning information mapping dress Put after the warning information mapping table for updating and being preserved in internal memory, update the data the warning information mapping table preserved in storehouse.Alarm letter Breath mapping device determines that the warning information mapping table preserved in internal memory and the warning information mapping table preserved in database are updated to After work(, the warning information updated in internal memory is broadcasted to all clients of NM server by MQ.When NM server When the graphic user interface (Graphical User Interface, GUI) of client starts, the client is by JDBC from number According to warning information and all resource alarm information of each network element that each network element is obtained in storehouse.Also, warning information mapping dress Put before the warning information mapping table preserved in updating internal memory, the warning information mapping table that will be preserved in current memory is saved in In temporary file, however, it is determined that the warning information mapping table preserved in database updates failure, then alerted according in the temporary file Information MAP table updates the warning information mapping table preserved in internal memory, and deletes the temporary file so that the announcement preserved in internal memory Alert information MAP table is consistent with the warning information mapping table of preservation in database, and then causes all visitors of NM server The warning information of each network element that family end obtains is identical with the warning information of all resources of each network element.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.And, the present invention can be used and wherein include the computer of computer usable program code at one or more The shape of the computer program product implemented in usable storage medium (including but not limited to magnetic disk storage and optical memory etc.) Formula.
The present invention is the flow with reference to method according to embodiments of the present invention, equipment (system) and computer program product Figure and/or block diagram are described.It should be understood that every first-class during flow chart and/or block diagram can be realized by computer program instructions The combination of flow and/or square frame in journey and/or square frame and flow chart and/or block diagram.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced for reality by the instruction of computer or the computing device of other programmable data processing devices The device of the function of being specified in present one flow of flow chart or multiple one square frame of flow and/or block diagram or multiple square frames.
These computer program instructions may be alternatively stored in can guide computer or other programmable data processing devices with spy In determining the computer-readable memory that mode works so that instruction of the storage in the computer-readable memory is produced and include finger Make the manufacture of device, the command device realize in one flow of flow chart or multiple one square frame of flow and/or block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented treatment, so as in computer or The instruction performed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in individual square frame or multiple square frames.
Obviously, those skilled in the art can carry out various changes and modification without deviating from essence of the invention to the present invention God and scope.So, if these modifications of the invention and modification belong to the scope of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to comprising these changes and modification.

Claims (10)

1. a kind of warning information mapping method, it is characterised in that methods described includes:
NM server sets up the warning information mapping table of each network element and the resources at different levels of each network element, wherein, the net The network element that unit is managed by the NM server, the warning information mapping table includes the network element and is under the jurisdiction of the net The warning information of the resources at different levels of unit;
The NM server obtains the warning information of the network element and/or described according to the warning message of the reported by network elements The warning information of the resource of network element, and acquired warning information is updated in the warning information mapping table.
2. the method for claim 1, it is characterised in that the NM server sets up each network element and each network element Resources at different levels warning information mapping table, specifically include:
The NM server uses hash algorithm successively, sets up the announcement of the resources at different levels of the network element and the network element Alert information MAP table, wherein, the |input paramete key key of the hash algorithm is followed successively by the mark of the network element and is under the jurisdiction of described The mark of every one-level resource of network element, the mark of the resource carries the resource and the resource to every between the network element The membership of one-level resource and the network element;
The NM server obtains the warning information of the resource of the network element according to the warning message of the reported by network elements, and Acquired warning information is updated in the warning information mapping table, including:
The NM server parses the mark of the resource carried in the warning message, determines entrained by the mark of the resource The membership in the mark and the mark of the network element of every one-level resource that include, and respectively according to the mark of the resource Knowledge, the mark and the mark of the network element per one-level resource, the warning information is updated to warning information mapping In table.
3. method as claimed in claim 2, it is characterised in that the mark of the resource by the network element descriptor, described Resource is constituted to the descriptor of every one-level resource and the descriptor of the resource between the network element according to the order of setting, its In, the descriptor for being directly under the jurisdiction of each resource of same resource is different, and each resource for being directly under the jurisdiction of same network element is retouched State symbol different.
4. the method as described in claim 1-3 any one, it is characterised in that methods described also includes:
Be stored in the warning information mapping table in internal memory by the NM server, and the warning information mapping table is backed up To in database, wherein, the warning information mapping table in internal memory is used to update or inquire about the announcement of the network element and/or the resource Used during alert information, the warning information mapping table in database is used to make when reducing the warning information mapping table in the internal memory With.
5. method as claimed in claim 4, it is characterised in that acquired warning information is updated and arrived by the NM server Before in the warning information mapping table, methods described also includes:
Be saved in the warning information mapping table preserved in the internal memory in temporary file by the NM server;
After in the warning information mapping table that the NM server will be preserved in acquired warning information renewal to internal memory, Methods described also includes:
The NM server using the warning information if it is determined that mapped the warning information preserved in the database Table updates failure, then according to the warning information mapping table preserved in the temporary file, update the alarm preserved in the internal memory Information MAP table, and delete the temporary file;
Otherwise, the temporary file is directly deleted.
6. a kind of warning information mapping device, it is characterised in that described device includes:
Unit is set up, the warning information mapping table of each network element and the resources at different levels of each network element is set up, wherein, the network element It is network element that the NM server comprising described device is managed, the warning information mapping table includes the network element and is subordinate to In the warning information of the resources at different levels of the network element;
Processing unit, according to the warning message of the reported by network elements, obtains the warning information and/or the network element of the network element The warning information of resource, and the warning information that will be obtained updated in the warning information mapping table.
7. device as claimed in claim 6, it is characterised in that it is described set up unit specifically for:
Hash algorithm is used successively, sets up the alarm letter of the warning information of the resources at different levels of the network element and the network element Breath mapping table, wherein, the |input paramete key key of the hash algorithm is followed successively by the mark of the network element and is under the jurisdiction of the network element Every one-level resource mark, the mark of the resource carries the resource and the resource to the every one-level between the network element The membership of resource and the network element;
The processing unit specifically for:The mark of the resource carried in the warning message is parsed, the mark of the resource is determined Know the mark and the mark of the network element of the every one-level resource included in the entrained membership, and respectively according to described The mark of resource, the mark and the mark of the network element per one-level resource, the warning information is updated to the alarm In information MAP table.
8. device as claimed in claim 7, it is characterised in that the mark of the resource by the network element descriptor, described Resource is constituted to the descriptor of every one-level resource and the descriptor of the resource between the network element according to the order of setting, its In, the descriptor for being directly under the jurisdiction of each resource of same resource is different, and each resource for being directly under the jurisdiction of same network element is retouched State symbol different.
9. the device as described in claim 6-8 any one, it is characterised in that the processing unit is additionally operable to:
The warning information mapping table is stored in internal memory, and the warning information mapping table backuped into database, its In, warning information mapping table in internal memory is used to updating or inquires about the network element and/or use during the warning information of the resource, Warning information mapping table in database is used to be used when reducing the warning information mapping table in the internal memory.
10. device as claimed in claim 9, it is characterised in that the processing unit is additionally operable to:
Before acquired warning information is updated in the warning information mapping table, the announcement that will be preserved in the internal memory Alert information MAP table is saved in temporary file;
After in the warning information mapping table that will be preserved in acquired warning information renewal to internal memory, however, it is determined that using described Warning information updates failure to the warning information mapping table preserved in database, then according to preservation in the temporary file Warning information mapping table, updates the warning information mapping table preserved in the internal memory, and delete the temporary file;Otherwise, directly Connect the deletion temporary file.
CN201611200156.XA 2016-12-22 2016-12-22 A kind of warning information mapping method and device Pending CN106789247A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611200156.XA CN106789247A (en) 2016-12-22 2016-12-22 A kind of warning information mapping method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611200156.XA CN106789247A (en) 2016-12-22 2016-12-22 A kind of warning information mapping method and device

Publications (1)

Publication Number Publication Date
CN106789247A true CN106789247A (en) 2017-05-31

Family

ID=58899564

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611200156.XA Pending CN106789247A (en) 2016-12-22 2016-12-22 A kind of warning information mapping method and device

Country Status (1)

Country Link
CN (1) CN106789247A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN111221818A (en) * 2019-12-27 2020-06-02 特瓦特能源科技有限公司 Alarm information analysis method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645819A (en) * 2005-01-18 2005-07-27 武汉市中光通信公司 Rapid and convenient communication network managing method
CN101908981A (en) * 2010-09-03 2010-12-08 烽火通信科技股份有限公司 Method for shielding and uniformly processing alarm and performance data
CN102136949A (en) * 2011-03-24 2011-07-27 国网电力科学研究院 Method and system for analyzing alarm correlation based on network and time
CN103441885A (en) * 2013-09-10 2013-12-11 大唐移动通信设备有限公司 Activity alarm processing method and equipment
CN106209431A (en) * 2016-06-29 2016-12-07 瑞斯康达科技发展股份有限公司 A kind of Approaches of Alarm Correlation and network management system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1645819A (en) * 2005-01-18 2005-07-27 武汉市中光通信公司 Rapid and convenient communication network managing method
CN101908981A (en) * 2010-09-03 2010-12-08 烽火通信科技股份有限公司 Method for shielding and uniformly processing alarm and performance data
CN102136949A (en) * 2011-03-24 2011-07-27 国网电力科学研究院 Method and system for analyzing alarm correlation based on network and time
CN103441885A (en) * 2013-09-10 2013-12-11 大唐移动通信设备有限公司 Activity alarm processing method and equipment
CN106209431A (en) * 2016-06-29 2016-12-07 瑞斯康达科技发展股份有限公司 A kind of Approaches of Alarm Correlation and network management system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109582458A (en) * 2017-09-28 2019-04-05 北京国双科技有限公司 Resource information loading method, device, storage medium and processor
CN111221818A (en) * 2019-12-27 2020-06-02 特瓦特能源科技有限公司 Alarm information analysis method and device

Similar Documents

Publication Publication Date Title
CN104199957B (en) A kind of implementation method of Redis general-purpose proxies
US10853731B2 (en) Rule based consistency management for complex systems
WO2022083540A1 (en) Method, apparatus, and system for determining fault recovery plan, and computer storage medium
CN106878262B (en) Message detection method and device, and method and device for establishing local threat information library
US9372995B2 (en) Vulnerability countermeasure device and vulnerability countermeasure method
US20150363600A1 (en) Method, Apparatus, and System for Data Protection
CN106445644A (en) Distributed transaction processing method and device based on improved one-phase commit
CN103366117B (en) A kind of viral restorative procedure of infection type and system
CN104636437B (en) A kind of processing method and processing device of event notification method, monitor
CN108769112A (en) A kind of non-intrusion type RPC interface monitoring method and system
CN113225194B (en) Route abnormality detection method, device and system, and computer storage medium
CN101150433A (en) A method for setting alarm filtering rule
US11218357B1 (en) Aggregation of incident data for correlated incidents
CN106789247A (en) A kind of warning information mapping method and device
CN113852476A (en) Method, device and system for determining abnormal event associated object
CN103024094B (en) Safe and reliable DNS zone file information issuing updating method and system
CN107357557A (en) A kind of information updating method and device
JP6517468B2 (en) INFORMATION PROCESSING SYSTEM, INFORMATION PROCESSING APPARATUS, MONITORING APPARATUS, MONITORING METHOD, AND PROGRAM
CN108809680B (en) Equipment management method and equipment
US9275252B2 (en) Enhanced view compliance tool
CN112769923A (en) Method, device and storage medium for monitoring network equipment performance index in big data scene
CN110851186A (en) Network equipment restarting method and device, electronic equipment and readable storage medium
WO2021250873A1 (en) Rule generation device, rule generation method, and program
CN113553492A (en) Account processing method, device, equipment and storage medium
CN113114588A (en) Data processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 100094 First to Fifth Floors of Building 11, East Yard, No. 10 Wangdong Road, Northwest Haidian District, Beijing

Applicant after: Raisecom Technology Inc.

Address before: 100085 No. 2 Building, No. 28 Shangdi Sixth Street, Haidian District, Beijing

Applicant before: Raisecom Technology Inc.

CB02 Change of applicant information
RJ01 Rejection of invention patent application after publication

Application publication date: 20170531

RJ01 Rejection of invention patent application after publication