CN105227356B - The method and device of OLT system shield alarm - Google Patents

The method and device of OLT system shield alarm Download PDF

Info

Publication number
CN105227356B
CN105227356B CN201510587093.7A CN201510587093A CN105227356B CN 105227356 B CN105227356 B CN 105227356B CN 201510587093 A CN201510587093 A CN 201510587093A CN 105227356 B CN105227356 B CN 105227356B
Authority
CN
China
Prior art keywords
alarm
vif
shield
0xff
warning information
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.)
Active
Application number
CN201510587093.7A
Other languages
Chinese (zh)
Other versions
CN105227356A (en
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.)
Huzhou Yinglie Intellectual Property Operation Co ltd
Original Assignee
Shanghai Feixun Data Communication 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 Shanghai Feixun Data Communication Technology Co Ltd filed Critical Shanghai Feixun Data Communication Technology Co Ltd
Priority to CN201510587093.7A priority Critical patent/CN105227356B/en
Publication of CN105227356A publication Critical patent/CN105227356A/en
Application granted granted Critical
Publication of CN105227356B publication Critical patent/CN105227356B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The present invention discloses a kind of method of OLT system shield alarm, including:Receive the warning information of resource object;Alarm source is extracted from the warning information and is translated into the integer variable vif of four bytes;Calculate in the integer variable vif of the alarm source since the 4th byte be not 0xff number Count;Alarm shield entry is extracted from alarm shield table;Extract the alarm source in the alarm shield entry and be translated into the integer variable vif of four bytes;Compare the alarm source vif of the warning information and the alarm source vif of the alarm shield entry preceding Count positions;And if both are equal, then shield the warning information.Technical solution of the present invention accurately masks the warning information for meeting default alarm shielding rules, solving existing OLT system can not judge whether to shield warning information caused by the resource object that inclusion relation be present and influence the technical problem of the stability of alarm shield, alleviate the burden of system processing warning information.

Description

The method and device of OLT system shield alarm
Technical field
The present invention relates to technical field of photo communication, more particularly to a kind of method and device of OLT system shield alarm.
Background technology
OLT (Optical Line Terminal, optical line terminal) system by way of alarm to system manager and When reponse system failure or exception, system manager can pass through the running status that warning information controls system hardware and software.But It is the warning information that can emerge in large numbers magnanimity in actual applications, partial information is to repeat to frequently occur or ignored among these, Really important warning information is caused to be ignored because being submerged, and the warning information of magnanimity also causes greatly to press to system Power, influence the stability of system normal operation.For these invalid or insignificant warning information, system manager, which passes through, to be configured Shielding rules optionally filter can be with ignored warning information.
But in the particularly distributed OLT system of existing OLT system, it may be present and include between multiple resources object Relation, as OLT system includes multiple business boards, business board includes multiple ports, and port includes multiple ONU (Optical Network Unit, optical network unit), and ONU includes multiple user ports.Inclusion relation between this multiple resources object Influence the configuration of alarm shielding rules.Such as when configuration shielding rule setting for all business boards of shielding and shields some industry In the presence of board rule be engaged in simultaneously, the feelings that mutex relation possibly even be present for inclusion relation between this resource object be present Condition, existing OLT system are difficult to judge whether to shield caused warning information, influence the stability of alarm shield.
The content of the invention
In order to solve the above-mentioned technical problem, the present invention provides a kind of method and device of OLT system shield alarm.
In one embodiment of the invention, there is provided a kind of method of OLT system shield alarm, including:Receive resource The warning information of object;Alarm source is extracted from the warning information, and is translated into the integer variable vif of four bytes, Wherein:When all business boards, the 4th byte of the vif is 0xff;When business board all of the port, the vif The 3rd byte be 0xff;As all ONU under port, second byte of the vif is 0xff;When lower of ONU is useful During the interface of family, the first character section of the vif is 0xff;Calculate in the integer variable vif of the alarm source from the 4th byte Start not as 0xff number Count;Alarm shield entry is extracted from alarm shield table;Extract in the alarm shield entry Alarm source, and be translated into the integer variable vif of four bytes, wherein:When all business boards, the of the vif Four bytes are 0xff;When business board all of the port, the 3rd byte of the vif is 0xff;As all ONU under port When, second byte of the vif is 0xff;When all user interfaces under ONU, the first character section of the vif is 0xff; Compare the alarm source vif of the warning information and the alarm source vif of the alarm shield entry preceding Count positions;And if Both are equal, then shield the warning information.
Preferably, before the alarm source vif of the warning information and the alarm source vif of the alarm shield entry Also include step after the step of Count positions:If both are unequal, the warning information is not shielded.
Preferably, the alarm source is converted into the integer variable of four bytes as follows:Vif=(ulslotno< <24)|(ulponno<<16)|(ulonuno<<8) | (ulunino), wherein the ulslotno compiles for storage service board Number, the port numbering that the ulponno is used on storage service board, the ulonuno is used for the numbering for storing ONU, described The user interface numbering that ulunino is used to store on ONU.
Preferably, it is not 0xff since the 4th byte in the integer variable vif for calculating the alarm source Count passes through calculated as below described in number Count steps:For (ul_src_count=0;(vif[ul_src_ count]!=0xff) && (ul_src_count<4);Ul_src_count++), wherein the ul_src_count is described It is not 0xff number in vif.
Preferably, the alarm shield table is configured to when shielding all resource objects, while shields all resources All resource objects that object is included.
In another embodiment of the present invention, there is provided a kind of device of OLT system shield alarm, it includes:Alarm Information receiving module, for receiving the warning information of resource object;Alarm source extracts conversion module, for from the warning information With alarm source is extracted in alarm shield table, and be translated into the integer variable vif of four bytes, when all business boards, The 4th byte of the vif is 0xff;When business board all of the port, the 3rd byte of the vif is 0xff;Work as end Under mouthful during all ONU, second byte of the vif is 0xff;When all user interfaces under ONU, first of the vif Byte is 0xff;Computing module, since the 4th byte it is not 0xff in the integer variable vif for calculating the alarm source Number Count;Alarm shield entry extraction module, for therefrom extracting alarm shield entry;Comparison module, for comparing State the alarm source vif of warning information and the alarm source vif of the alarm shield entry preceding Count positions;And control module, use In if comparison module result of the comparison is equal control flow covert state warning information.
Preferably, the control module be additionally operable to control if comparison module result of the comparison is unequal do not shield it is described Warning information.
Preferably, the alarm source is converted into the integer variable of four bytes as follows:Vif=(ulslotno< <24)|(ulponno<<16)|(ulonuno<<8) | (ulunino), wherein the ulslotno compiles for storage service board Number, the port numbering that the ulponno is used on storage service board, the ulonuno is used for the numbering for storing ONU, described The user interface numbering that ulunino is used to store on ONU.
Preferably, the computing module is by being calculated as below the Count:For (ul_src_count=0;(vif[ul_ src_count]!=0xff) && (ul_src_count<4);Ul_src_count++), wherein the ul_src_count is institute It is not 0xff number to state in vif.
Preferably, the alarm shield table is configured to when shielding all resource objects, while shields all resources All resource objects that object is included.
The method and device of OLT system shield alarm provided by the invention, by extracting warning information and alarm shield table The alarm source of middle alarm shield entry is simultaneously converted into the integer variable of four bytes, and the integer for calculating the alarm source of warning information becomes Four bytes of flow control start be not 0fxx number Count, and compare alarm shield entry in warning information and alarm shield table Alarm source integer variable preceding Count positions to judge whether shield alarm information, default alarm shielding rules will be met Warning information accurately masks, and solving existing OLT system can not judge whether to the production of the resource object of inclusion relation be present The technical problem for the stability that raw warning information is shielded and influences alarm shield, while shield insignificant alarm letter Breath, alleviate the burden that system handles invalid warning information.
Brief description of the drawings
Technical scheme in order to illustrate the embodiments of the present invention more clearly, make required in being described below to embodiment Accompanying drawing is briefly described.It should be evident that drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, on the premise of not paying creative work, other can also be obtained according to these accompanying drawings Accompanying drawing.
Fig. 1 is the schematic flow sheet of the method for OLT system shield alarm in one embodiment of the invention.
Fig. 2 is the schematic flow sheet of the method for OLT system shield alarm in another embodiment of the present invention.
Fig. 3 is the structural representation of the device of OLT system shield alarm in further embodiment of this invention.
Embodiment
Make further more detailed description to technical scheme with reference to the accompanying drawings and detailed description.It is aobvious So, described embodiment is only the part of the embodiment of the present invention, rather than whole embodiments.Based in the present invention Embodiment, the every other embodiment that those of ordinary skill in the art are obtained on the premise of creative work is not made, The scope of protection of the invention should all be belonged to.
Fig. 1 is the schematic flow sheet of the method for the OLT system shield alarm of first embodiment of the invention.As illustrated, In the embodiment of the present invention, the method for the OLT system shield alarm includes step S10 to S70.
Step S10:Receive the warning information of resource object.
In embodiments of the present invention, OLT (Optical Line Terminal, the optical line terminal) system is distribution Formula OLT system, including multiple resource objects:12 pieces of business boards (slot), each business board have 8 ports (port), every Individual port hangs 256 ONU (Optical Network Unit, optical network unit), and each ONU supports 24 user ports (uni), inclusion relation be present between these resource objects.The OLT system is timely to system manager by way of alarm Reponse system failure or exception, system manager can control system hardware and soft by receiving the warning information of these resource objects The running status of part.
Step S20:Alarm source is extracted from the warning information, and is translated into the integer variable vif of four bytes, Wherein:When all business boards, the 4th byte of the vif is 0xff;When business board all of the port, the vif The 3rd byte be 0xff;As all ONU under port, second byte of the vif is 0xff;When lower of ONU is useful During the interface of family, the first character section of the vif is 0xff.
Wherein, the alarm source includes business board numbering slot, port numbering port, ONU numbering and user interface volume Number uni information.When it is integer variable vif to convert the alarm source, the integer variable of nybble is defined as follows:
Port numbering port, the ONU of unsigned intvif on storage service board numbering slot, business board Numbering and ONU on user interface numbering
Unsigned char ulslotno number for storage service board
The port numbering that unsigned char ulponno are used on storage service board
Unsigned char ulonuno are used for the numbering for storing ONU
The user interface numbering that unsigned char ulunino are used to store on ONU
The integer variable vif can be converted by equation below:
Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)|(ulunino)
In conversion process, asterisk wildcard " all " is represented using hexadecimal number 0xff
When all business boards, vif the 4th byte is 0xff
When business board all of the port, vif the 3rd byte is 0xff
As all ONU under port, vif second byte is 0xff
When all user interfaces under ONU, vif first character section is 0xff
Step S30:Calculate in the integer variable vif of the alarm source since the 4th byte be not 0xff number Count。
In embodiments of the present invention, it is not 0xff number Count since the 4th byte in the integer variable vif It is calculated as below:
For (ul_src_count=0;(vif[ul_src_count]!=0xff) && (ul_src_count<4);ul_ src_count++);
It is not 0xff number in vif that wherein ul_src_count, which is,.
Step S40:Alarm shield entry is extracted from alarm shield table.
In embodiments of the present invention, the OLT system is pre-configured with alarm shield table, and ignored warning information is entered Row shielding, its shielding rules are configured to according to following table in advance:
alarm-mask alarm-id(WORD|all)slot<1-12>port<1-8>onu<1-256>uni(<1-24>|all)
alarm-mask alarm-id(WORD|all)slot<1-12>port<1-8>onu(<1-256>|all)uni all
alarm-mask alarm-id(WORD|all)slot<1-12>port(<1-8>|all)onu all uni all
alarm-mask alarm-id(WORD|all)slot(<1-12>|all)port all onu all uni all
Wherein, the shielding rules are:When resource object is configured to all, all resources that the resource object is included Object is also all, i.e.,:When there is ONU configuration screen covert, it is necessary to shield all user interfaces on each ONU;Configuration screen covert When having PORT, it is necessary to shield all ONU on each PORT;When there is business board configuration screen covert, it is necessary to shield each board All PORT.
In addition, it may include one, two or more alarm shield entries in the alarm shield table.When the alarm shield When table includes two or more alarm shield entries, all alarm shield entries are correspondingly extracted in step s 40.
Step S50:The alarm source in the alarm shield entry is extracted, and is translated into the integer variable of four bytes Vif, wherein:When all business boards, the 4th byte of the vif is 0xff;It is described when business board all of the port Vif the 3rd byte is 0xff;As all ONU under port, second byte of the vif is 0xff;When all under ONU During user interface, the first character section of the vif is 0xff.
In embodiments of the present invention, the alarm source in the shielding entry can also pass through above-mentioned steps S20 same side Formula is extracted and conversion.
Equally, the alarm source in the alarm shield entry includes business board numbering slot, port numbering port, ONU The information of numbering and user interface numbering uni.When it is integer variable vif to convert the alarm source, the integer variable of nybble It is defined as follows:
Port numbering port, the ONU of unsigned intvif on storage service board numbering slot, business board Numbering and ONU on user interface numbering
Unsigned char ulslotno number for storage service board
The port numbering that unsigned char ulponno are used on storage service board
Unsigned char ulonuno are used for the numbering for storing ONU
The user interface numbering that unsigned char ulunino are used to store on ONU
The integer variable vif can be converted by equation below:
Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)|(ulunino)
In conversion process, asterisk wildcard " all " is represented using hexadecimal number 0xff
When all business boards, vif the 4th byte is 0xff
When business board all of the port, vif the 3rd byte is 0xff
As all ONU under port, vif second byte is 0xff
When all user interfaces under ONU, vif first character section is 0xff
In embodiments of the present invention, when the alarm shield table includes two or more alarm shield entries, correspondingly Extract and convert in step s 50 the alarm source vif in all alarm shield entries.
Step S60:Before comparing the alarm source vif of the warning information and alarm source vif of the alarm shield entry Count positions.
In embodiments of the present invention, the alarm source vif of the warning information is designated as alarm_info.vif, the alarm screen The alarm source vif for covering entry is designated as alarm_mask.vif, compares both preceding Count positions in the following way.
Memcmp (alarm_info.vif, alarm_mask.vif, ul_src_count)==0
In embodiments of the present invention, when the alarm shield table includes two or more alarm shield entries, correspondingly The alarm source of the warning information and the alarm source in the alarm shield entry of whole are compared one by one in step S60 Compared with.
Step S70:If both are equal, the warning information is shielded.
Wherein, if both are more equal, then it represents that the warning information and the alarm shield entries match, the announcement Police will be shielded.When the alarm shield table includes two or more alarm shield entries, if the announcement of the warning information When alert source matches with the preceding Count positions of the alarm source in any alarm shield entry, the warning information is shielded.So, The warning information for meeting alarm shielding rules is accurately masked, solving existing OLT system can not judge whether to existing Warning information caused by the resource object of inclusion relation is shielded and influences the technical problem of the stability of alarm shield, simultaneously Insignificant warning information is effectively shielded, alleviates the burden that system handles invalid warning information.
Referring to Fig. 2, the method for OLT system shield alarm includes step S10 to S80 in another embodiment of the present invention.
S10:Receive the warning information of resource object.
S20:Alarm source is extracted from the warning information, and is translated into the integer variable vif of four bytes, its In:When all business boards, the 4th byte of the vif is 0xff;When business board all of the port, the vif's 3rd byte is 0xff;As all ONU under port, second byte of the vif is 0xff;As all users under ONU During interface, the first character section of the vif is 0xff.
S30:Calculate in the integer variable vif of the alarm source since the 4th byte be not 0xff number Count.
S40:Alarm shield entry is extracted from alarm shield table.
S50:The alarm source in the alarm shield entry is extracted, and is translated into the integer variable vif of four bytes, Wherein:When all business boards, the 4th byte of the vif is 0xff;When business board all of the port, the vif The 3rd byte be 0xff;As all ONU under port, second byte of the vif is 0xff;When lower of ONU is useful During the interface of family, the first character section of the vif is 0xff.
S60:Compare the alarm source vif of the warning information and the alarm source vif of the alarm shield entry preceding Count Position.
S70:If both are equal, the warning information is shielded.
S80:If both are unequal, the warning information is not shielded.
In embodiments of the present invention, show the warning information with the alarm shield entry not if both are unequal Matching, the alarm will not be shielded.When the alarm shield table includes two or more alarm shield entries, if described When the preceding Count positions of the alarm source of warning information and the alarm source in all alarm shield entries mismatch, do not shield The warning information.
Fig. 3 is the structural representation of the device 100 of OLT system shield alarm in further embodiment of this invention.As illustrated, The device 100 of the OLT system shield alarm includes:Warning information receiving module 200, the alarm for receiving resource object are believed Breath;Alarm source extracts conversion module 300, for extracting alarm source from the warning information and alarm shield table, and by its turn The integer variable vif of four bytes is turned to, when all business boards, the 4th byte of the vif is 0xff;Work as business board During card all of the port, the 3rd byte of the vif is 0xff;As all ONU under port, second byte of the vif For 0xff;When all user interfaces under ONU, the first character section of the vif is 0xff;Computing module 400, for calculating State in the integer variable vif of alarm source since the 4th byte be not 0xff number Count;Alarm shield entry extracts mould Block 500, for therefrom extracting alarm shield entry;Comparison module 600, for the warning information alarm source vif and The alarm source vif of the alarm shield entry preceding Count positions;And control module 700, if compare for comparison module As a result equal, control flow covert states warning information.
In embodiments of the present invention, OLT (Optical Line Terminal, the optical line terminal) system is distribution Formula OLT system, including multiple resource objects:12 pieces of business boards (slot), each business board have 8 ports (port), every Individual port hangs 256 ONU (Optical Network Unit, optical network unit), and each ONU supports 24 user ports (uni), inclusion relation be present between these resource objects.The OLT system is timely to system manager by way of alarm Reponse system failure or exception, system manager can receive these resource objects by the warning information receiving module 200 Warning information controls the running status of system hardware and software.
Wherein, the alarm source extraction conversion module 300 extracts alarm source and is translated into from the warning information The integer variable vif of four bytes, when all business boards, the 4th byte of the vif is 0xff;When business board institute When having port, the 3rd byte of the vif is 0xff;As all ONU under port, second byte of the vif is 0xff;When all user interfaces under ONU, the first character section of the vif is 0xff.
Wherein, the alarm source includes business board numbering slot, port numbering port, ONU numbering and user interface volume Number uni information.When it is integer variable vif to convert the alarm source, the integer variable of nybble is defined as follows:
Port numbering port, the ONU of unsigned intvif on storage service board numbering slot, business board Numbering and ONU on user interface numbering
Unsigned char ulslotno number for storage service board
The port numbering that unsigned char ulponno are used on storage service board
Unsigned char ulonuno are used for the numbering for storing ONU
The user interface numbering that unsigned char ulunino are used to store on ONU
The integer variable vif can be converted by equation below:
Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)|(ulunino)
In conversion process, asterisk wildcard " all " is represented using hexadecimal number 0xff
When all business boards, vif the 4th byte is 0xff
When business board all of the port, vif the 3rd byte is 0xff
As all ONU under port, vif second byte is 0xff
When all user interfaces under ONU, vif first character section is 0xff
In embodiments of the present invention, the computing module 400 is calculated in the integer variable vif since the 4th byte It is not 0xff number Count:
For (ul_src_count=0;(vif[ul_src_count]!=0xff) && (ul_src_count<4);ul_ src_count++);
It is not 0xff number in vif that wherein ul_src_count, which is,.
The alarm shield entry extraction module 500 extracts alarm shield entry from alarm shield table.
In embodiments of the present invention, the OLT system is pre-configured with alarm shield table, and ignored warning information is entered Row shielding, its shielding rules are configured to according to following table in advance:
alarm-mask alarm-id(WORD|all)slot<1-12>port<1-8>onu<1-256>uni(<1-24>|all)
alarm-mask alarm-id(WORD|all)slot<1-12>port<1-8>onu(<1-256>|all)uni all
alarm-mask alarm-id(WORD|all)slot<1-12>port(<1-8>|all)onu all uni all
alarm-mask alarm-id(WORD|all)slot(<1-12>|all)port all onu all uni all
Wherein, the shielding rules are:When resource object is configured to all, all resources that the resource object is included Object is also all, i.e.,:When there is ONU configuration screen covert, it is necessary to shield all user interfaces on each ONU;Configuration screen covert When having PORT, it is necessary to shield all ONU on each PORT;When there is business board configuration screen covert, it is necessary to shield each board All PORT.
In addition, it may include one, two or more alarm shield entries in the alarm shield table.When the alarm shield When table includes two or more alarm shield entries, correspondingly the alarm shield entry extraction module 500 is extracted described in whole Alarm shield entry.
In embodiments of the present invention, the alarm source in the shielding entry extracts conversion module again by the alarm source 300 are extracted and are converted into vif.
Equally, the alarm source in the alarm shield entry includes business board numbering slot, port numbering port, ONU The information of numbering and user interface numbering uni.When it is integer variable vif to convert the alarm source, the integer variable of nybble It is defined as follows:
Port numbering port, the ONU of unsigned intvif on storage service board numbering slot, business board Numbering and ONU on user interface numbering
Unsigned char ulslotno number for storage service board
The port numbering that unsigned char ulponno are used on storage service board
Unsigned char ulonuno are used for the numbering for storing ONU
The user interface numbering that unsigned char ulunino are used to store on ONU
The integer variable vif can be converted by equation below:
Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)|(ulunino)
In conversion process, asterisk wildcard " all " is represented using hexadecimal number 0xff
When all business boards, vif the 4th byte is 0xff
When business board all of the port, vif the 3rd byte is 0xff
As all ONU under port, vif second byte is 0xff
When all user interfaces under ONU, vif first character section is 0xff
In embodiments of the present invention, when the alarm shield table includes two or more alarm shield entries, correspondingly The alarm source extraction conversion module 300 extracts and converted the alarm source vif in all alarm shield entries.
The alarm source vif of 600 warning information of comparison module and the alarm source of the alarm shield entry Vif preceding Count positions.
In embodiments of the present invention, the alarm source vif of the warning information is designated as alarm_info.vif, the alarm screen The alarm source vif for covering entry is designated as alarm_mask.vif, compares both preceding Count positions in the following way.
Memcmp (alarm_info.vif, alarm_mask.vif, ul_src_count)==0
In embodiments of the present invention, when the alarm shield table includes two or more alarm shield entries, correspondingly The comparison module 600 enters the alarm source of the warning information and the alarm source in the alarm shield entry of whole one by one Row compares.
If both are equal, the control flow covert of control module 700 states warning information.If both are more equal, The warning information and the alarm shield entries match are represented, the alarm will be shielded.When the alarm shield table includes During two or more alarm shield entries, if the alarm source of the warning information and the announcement in any alarm shield entry During the preceding Count positions matching in alert source, the warning information is shielded.So, OLT system shield alarm provided in an embodiment of the present invention Device 100, the warning information for meeting default alarm shielding rules is accurately masked, solving existing OLT system can not Judge whether to shield warning information caused by the resource object that inclusion relation be present and influence the stability of alarm shield Technical problem, while effectively shield insignificant warning information, alleviate the burden that system handles invalid warning information.
Show that the warning information mismatches with the alarm shield entry if both are unequal, the control module 700 controls will not shield the alarm.When the alarm shield table includes two or more alarm shield entries, if described When the preceding Count positions of the alarm source of warning information and the alarm source in all alarm shield entries mismatch, do not shield The warning information.
In summary, the method and device of OLT system shield alarm provided by the invention, by extracting warning information and announcement Warn the alarm source of alarm shield entry in shielding table and be converted into the integer variable of four bytes, calculate the alarm source of warning information The 4th byte of integer variable start be not 0fxx number Count, and compare and alerted in warning information and alarm shield table The preceding Count positions of the integer variable of shielding strip purpose alarm source will meet default alarm screen to judge whether shield alarm information The warning information for covering rule accurately masks, and solving existing OLT system can not judge whether to the money of inclusion relation be present Warning information caused by source object is shielded and influences the technical problem of the stability of alarm shield, while effective shield can The warning information ignored, alleviate the burden that system handles invalid warning information.
Above disclosed is only the preferred embodiment in the embodiment of the present invention, can not limit this hair with this certainly Bright interest field, therefore the equivalent variations made according to the claims in the present invention, still belong to the scope that the present invention is covered.

Claims (10)

  1. A kind of 1. method of OLT system shield alarm, it is characterised in that including:
    Receive the warning information of resource object;
    Alarm source is extracted from the warning information, and is translated into the integer variable vif of four bytes, wherein:When described When resource object is all business boards, the 4th byte of the vif is 0xff;When the resource object is business board institute When having port, the 3rd byte of the vif is 0xff;When the resource object is all ONU under port, the vif's Second byte is 0xff;When the resource object is all user interfaces under ONU, the first character section of the vif is 0xff;
    Calculate in the integer variable vif of the alarm source of the warning information since the 4th byte be not 0xff number Count;
    Alarm shield entry is extracted from alarm shield table;
    The alarm source in the warning information and the alarm shield entry is extracted, and the integer for being translated into four bytes becomes Vif is measured, wherein:When the resource object is all business boards, the 4th byte of the vif is 0xff;When the money When source object is business board all of the port, the 3rd byte of the vif is 0xff;The institute under the resource object is port When having ONU, second byte of the vif is 0xff;When the resource object is all user interfaces under ONU, the vif First character section be 0xff;
    Compare the alarm source vif of the warning information and the alarm source vif of the alarm shield entry preceding Count positions;And
    If both are equal, the warning information is shielded.
  2. 2. the method for OLT system shield alarm as claimed in claim 1, it is characterised in that in the warning information Also include step after the alarm source vif and alarm source vif of the alarm shield entry preceding Count positions step:If both are not It is equal, then the warning information is not shielded.
  3. 3. the method for OLT system shield alarm as claimed in claim 1, it is characterised in that the alarm source is according to such as lower section Formula is converted into the integer variable of four bytes:Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)| (ulunino), wherein the ulslotno numbers for storage service board, the ulponno is used for storage service board Port numbering, the ulonuno is used to store ONU numbering, and the user interface that the ulunino is used to store on ONU is compiled Number.
  4. 4. the method for OLT system shield alarm as claimed in claim 1, it is characterised in that the calculating alarm source Count is counted by being carried out as follows described in the number Count steps for 0xff since the 4th byte in integer variable vif Calculate:For (ul_src_count=0;(vif[ul_src_count]!=0xff) && (ul_src_count<4);ul_src_ Count++), wherein the ul_src_count be not 0xff in the vif number.
  5. 5. the method for OLT system shield alarm as claimed in claim 1, it is characterised in that the alarm shield table is configured to: When shielding all resource objects, while shield all resource objects that all resource objects are included.
  6. 6. a kind of device of OLT system shield alarm, it is characterised in that it includes:Warning information receiving module, provided for receiving The warning information of source object;Alarm source extracts conversion module, is accused for being extracted from the warning information and alarm shield entry Alert source, and the integer variable vif of four bytes is translated into, wherein:When the resource object is all business boards, institute The 4th byte for stating vif is 0xff;When the resource object is business board all of the port, the 3rd word of the vif Save as 0xff;When the resource object is all ONU under port, second byte of the vif is 0xff;When the resource When object is all user interfaces under ONU, the first character section of the vif is 0xff;Computing module, for calculating the alarm In the integer variable vif of the alarm source of information since the 4th byte be 0xff number Count;Alarm shield entry carries Modulus block, for extracting alarm shield entry from alarm shield table;Comparison module, the alarm for the warning information The source vif and alarm source vif of the alarm shield entry preceding Count positions;And control module, if for comparison module ratio Compared with result it is equal, control flow covert states warning information.
  7. 7. the device of OLT system shield alarm as claimed in claim 6, it is characterised in that the control module be additionally operable to as Fruit comparison module result of the comparison is unequal, controls and does not shield the warning information.
  8. 8. the device of OLT system shield alarm as claimed in claim 6, it is characterised in that the alarm source is according to such as lower section Formula is converted into the integer variable of four bytes:Vif=(ulslotno<<24)|(ulponno<<16)|(ulonuno<<8)| (ulunino), wherein the ulslotno numbers for storage service board, the ulponno is used for storage service board Port numbering, the ulonuno is used to store ONU numbering, and the user interface that the ulunino is used to store on ONU is compiled Number.
  9. 9. the device of OLT system shield alarm as claimed in claim 6, it is characterised in that the computing module passes through as follows Calculate the Count:For (ul_src_count=0;(vif[ul_src_count]!=0xff) && (ul_src_count< 4);Ul_src_count++), wherein the ul_src_count be not 0xff in the vif number.
  10. 10. the device of OLT system shield alarm as claimed in claim 6, it is characterised in that the alarm shield table configuration For:When shielding all resource objects, while shield all resource objects that all resource objects are included.
CN201510587093.7A 2015-09-15 2015-09-15 The method and device of OLT system shield alarm Active CN105227356B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510587093.7A CN105227356B (en) 2015-09-15 2015-09-15 The method and device of OLT system shield alarm

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510587093.7A CN105227356B (en) 2015-09-15 2015-09-15 The method and device of OLT system shield alarm

Publications (2)

Publication Number Publication Date
CN105227356A CN105227356A (en) 2016-01-06
CN105227356B true CN105227356B (en) 2018-04-06

Family

ID=54996067

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510587093.7A Active CN105227356B (en) 2015-09-15 2015-09-15 The method and device of OLT system shield alarm

Country Status (1)

Country Link
CN (1) CN105227356B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005055580A1 (en) * 2003-12-01 2005-06-16 Siemens Aktiengesellschaft Passive optical network unit management and control interface support for a digital subscriber line network
WO2006071641A2 (en) * 2004-12-28 2006-07-06 Optical Solutions, Inc. Network interface device communication via power line
CN101022366A (en) * 2007-03-21 2007-08-22 Ut斯达康通讯有限公司 Trouble correlation analytic system and method
CN101908981A (en) * 2010-09-03 2010-12-08 烽火通信科技股份有限公司 Method for shielding and uniformly processing alarm and performance data
CN102832998A (en) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 Alarm shielding configuration method
CN104038378A (en) * 2014-07-01 2014-09-10 上海斐讯数据通信技术有限公司 Alarm management system and method of access network device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2005055580A1 (en) * 2003-12-01 2005-06-16 Siemens Aktiengesellschaft Passive optical network unit management and control interface support for a digital subscriber line network
WO2006071641A2 (en) * 2004-12-28 2006-07-06 Optical Solutions, Inc. Network interface device communication via power line
CN101022366A (en) * 2007-03-21 2007-08-22 Ut斯达康通讯有限公司 Trouble correlation analytic system and method
CN101908981A (en) * 2010-09-03 2010-12-08 烽火通信科技股份有限公司 Method for shielding and uniformly processing alarm and performance data
CN102832998A (en) * 2012-09-12 2012-12-19 上海斐讯数据通信技术有限公司 Alarm shielding configuration method
CN104038378A (en) * 2014-07-01 2014-09-10 上海斐讯数据通信技术有限公司 Alarm management system and method of access network device

Also Published As

Publication number Publication date
CN105227356A (en) 2016-01-06

Similar Documents

Publication Publication Date Title
CN105656699B (en) The alarm management method and system of content distributing network
CN109119009A (en) Screen defect inspection method, detection device, system and storage medium
CN104657468B (en) The rapid classification method of video based on image and text
CN103414596A (en) Method for recognizing and processing all manufacturer Traps based on simple network management protocol
CN106528619B (en) Switch log rapid aggregation method based on key fields
CN108600003B (en) Intrusion detection method, device and system for video monitoring network
DE112015005025B4 (en) METHODS AND SYSTEMS FOR IDENTIFYING AND REDUCING LTE SYSTEM COVERAGE HOLES DUE TO EXTERNAL INTERFERENCE
CN103530334A (en) System and method for data matching based on comparison module
CN111078455A (en) Abnormal behavior sequence correlation processing method and device based on time axis, equipment and storage medium
CN108399203A (en) Data screening system based on big data platform
CN109241014A (en) Data processing method, device and server
CN107395588A (en) Video monitoring accesses safe blocking-up method and system
CN111162950A (en) Fault event processing method, device and system
CN104363131A (en) Electric power communication protocol exception detection method based on dynamic extensible finite state
CN105227356B (en) The method and device of OLT system shield alarm
CN105488820B (en) Color comparison method and device
CN110597861A (en) Real-time alarm method, device and equipment and computer readable storage medium
CN111508521A (en) Security method, terminal device and storage medium
CN110597687B (en) Log processing method and device
CN106682508B (en) The checking and killing method and device of virus
US20210250356A1 (en) Whitelist self-learning method and device based on machine learning technology
CN103685257A (en) DHCP network protection system and method
CN115544065B (en) Data blood relationship discovery method, system, equipment and storage medium
DE202017007362U1 (en) Systems and devices for the secure management of network connections
CN104933161B (en) A kind of method and device for obtaining the input data from input equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20201118

Address after: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

Address before: 201616 Shanghai city Songjiang District Sixian Road No. 3666

Patentee before: Phicomm (Shanghai) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20201211

Address after: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee after: Bengbu Lichao Information Technology Co.,Ltd.

Address before: Room 10242, No. 260, Jiangshu Road, Xixing street, Binjiang District, Hangzhou City, Zhejiang Province

Patentee before: Hangzhou Jiji Intellectual Property Operation Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210308

Address after: 313000 room 1019, Xintiandi commercial office, Yishan street, Wuxing District, Huzhou, Zhejiang, China

Patentee after: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Address before: 8319 Yanshan Road, Bengbu City, Anhui Province

Patentee before: Bengbu Lichao Information Technology Co.,Ltd.

TR01 Transfer of patent right
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Method and device for shielding alarm of OLT system

Effective date of registration: 20221204

Granted publication date: 20180406

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403

PE01 Entry into force of the registration of the contract for pledge of patent right
PC01 Cancellation of the registration of the contract for pledge of patent right

Date of cancellation: 20231205

Granted publication date: 20180406

Pledgee: Huzhou Wuxing Rural Commercial Bank Co.,Ltd. high tech Zone Green sub branch

Pledgor: Huzhou YingLie Intellectual Property Operation Co.,Ltd.

Registration number: Y2022330003403

PC01 Cancellation of the registration of the contract for pledge of patent right