Specific embodiment
As shown in Figure 1, a kind of Down MEP message processing method, comprising steps of
S200: parsing OAM message in exchange chip, obtains necessary OAM Information.
Specifically, in the Parser of exchange chip (parsing) module, OAM message is parsed, and obtain necessityOAM Information, which is transmitted to IGP (Ingress Process, entrance process), EGP (Egress Process, outlet streamJourney) module.OAM message mainly may include BFD message and CCM message there are many type, different types of OAM message itsNecessary OAM Information is not identical.Specifically, when OAM message is BFD message, yourDiscrimination information is obtained,When OAM message is CCM message, mel, megId and mepId information are obtained.
S400: according to necessary OAM Information, the quick OAM message in OAM message is identified.
IGP module increases OAM message type classification, distinguishes quick OAM message according to type of message and OAM is reported at a slow speedText.Message send association's processing to carry out corresponding operating in subsequent processing at a slow speed, and rapid message increases Down MEP look up table operations.
S600: Down MEP look up table operations are carried out to quick OAM message, obtain the address of Down MEP.
For quick OAM message, then using the data in OAM message, Down is carried out in the MEP configuration of exchange chipMEP look up table operations get the address of Down MEP.
S800: according to the address of Down MEP, corresponding data in presetting database are read, and MEP state is combined to carry outOAM operation.
In the quick OAM message that exchange chip is handled, OAM engine reads respective counts according to the address of Down MEPAccording to library data, OAM operation is carried out in conjunction with MEP state.
Down MEP message processing method of the present invention, parses OAM message in exchange chip, obtains necessaryOAM Information identifies the quick OAM message in OAM message according to necessary OAM Information, carries out Down to quick OAM messageMEP look up table operations obtain the address of Down MEP, according to the address of Down MEP, read in presetting database and count accordinglyAccording to, and MEP state is combined to carry out OAM operation.In whole process, the quick OAM message in OAM message is identified, quick OAM is reportedText carries out look up table operations, and the lookup of Down MEP is placed in the treatment process of packet switch, and the look-up table for mitigating OAM engine is negativeLoad improves processing speed, realizes Down MEP message efficient process.
As shown in Fig. 2, step S800 includes: in one of the embodiments,
S820: according to the address of Down MEP, the OAM message head of quick OAM message is edited.
The OAM Information that EGP module is passed over IGP is quick OAM message editor OAM message head.Specifically, OAMThe header information of message includes: the key messages such as mepIdx, oamOffset and oamType.
S840: according to edited OAM message head, reading corresponding data in presetting database, and combine MEP state intoRow OAM operation.
Edited OAM message head carries the address of Down MEP, and edited quick OAM message is sent to OAMEngine, OAM engine read corresponding data in presetting database according to edited OAM message head, and combine MEP state intoRow OAM operation.
As shown in Fig. 2, in one of the embodiments, after step S820 further include:
S832: edited OAM message head is added to default original message head, acquisition is edited to preset original reportText.
The OAM Information that EGP module is passed over IGP is quick OAM message editor OAM message head, and is assembled into defaultBefore original message head.
S834: quick OAM message and edited default original message are put into different queue, pass through hiberarchy schedulingAfterwards, it is respectively fed to corresponding processing module or network interface.
Common message is put into different queues from OAM message by Scheduler (scheduling) module, and passes through hiberarchy schedulingAfterwards, corresponding processing module or network interface are sent into.
OAM message is parsed in exchange chip in one of the embodiments, obtains necessary OAM InformationStep includes:
Step 1: obtaining OAM message in exchange chip, and identifies OAM message type, and OAM message type includes BFD reportText and CCM message.
Step 2: parsing OAM message obtains yourDiscrimination information when OAM message is BFD message, whenWhen OAM message is CCM message, mel, megId and mepId information are obtained.
Step 3: OAM offset is obtained.
Specifically, when OAM message type is BFD message, necessary OAM Information includes yourDiscriminationInformation and OAM offset;When OAM message type be CCM message when, necessary OAM Information include mel information, megId information,MepId information and OAM offset.
Down MEP look up table operations are carried out to quick OAM message in one of the embodiments, obtain Down MEP'sThe step of address includes:
Step 1: identify that quick OAM message type, quick OAM message type include BFD message and CCM message.
Step 2: when quick OAM message is BFD message, search key portId and mepId, or, search keyPortId, vlanId and mepId.
Step 3: when quick OAM message is CCM message, search key yourDescrimination.
Step 4: Down MEP look up table operations are carried out to quick OAM message according to the keyword found, obtain DownThe address of MEP.
In simple terms, Down MEP message processing method of the present invention has the advantage that
1, judgement positioning Down MEP carries out corresponding entry lookup in IGP packet processing stage, mitigates looking into for OAM engineTable burden.
2, OAM engine can be absorbed in the realization of OAM correlation function, improve the treatment effeciency of OAM message, and reduceDesign difficulty, and reduce the use of memory.
As shown in figure 3, a kind of Down MEP message handling system, comprising:
Parsing module 200 obtains necessary OAM Information for parsing in exchange chip to OAM message.
Identification module 400, for identifying the quick OAM message in OAM message according to necessary OAM Information.
Look-up table means 600 obtain Down MEP's for carrying out Down MEP look up table operations to quick OAM messageAddress.
Operation module 800 reads corresponding data in presetting database for the address according to Down MEP, and combinesMEP state carries out OAM operation.
Down MEP message handling system of the present invention, parsing module 200 parse OAM message in exchange chip,Necessary OAM Information is obtained, identification module 400 identifies the quick OAM message in OAM message, look into according to necessary OAM InformationIt looks for table module 600 to carry out Down MEP look up table operations to quick OAM message, obtains the address of Down MEP, operation module 800According to the address of Down MEP, corresponding data in presetting database are read, and MEP state is combined to carry out OAM operation.Entire mistakeCheng Zhong identifies the quick OAM message in OAM message, look up table operations is carried out to quick OAM message, by the lookup of Down MEPIt is placed in the treatment process of packet switch, mitigates the look-up table burden of OAM engine, improve processing speed, realize Down MEP messageEfficient process.
As shown in figure 4, operation module 800 includes: in one of the embodiments,
Heading edit cell 820 edits the OAM message head of quick OAM message for the address according to Down MEP.
Operating unit 840 for reading corresponding data in presetting database according to edited OAM message head, and is tiedIt closes MEP state and carries out OAM operation.
As shown in Fig. 2, operation module 800 in one of the embodiments, further include:
Original message edit cell 832 is obtained for edited OAM message head to be added to default original message headEdited default original message.
Hierarchical Components 834 lead to for quick OAM message and edited default original message to be put into different queueAfter crossing hiberarchy scheduling, it is respectively fed to corresponding processing module or network interface.
Parsing module 200 includes: in one of the embodiments,
Type of message recognition unit for obtaining OAM message in exchange chip, and identifies OAM message type, OAM reportLiterary type includes BFD message and CCM message.
Resolution unit, when OAM message is BFD message, obtains yourDiscrimination for parsing OAM messageInformation obtains mel, megId and mepId information when OAM message is CCM message.
OAM offset acquiring unit, for obtaining OAM offset.
Look-up table means 600 include: in one of the embodiments,
Recognition unit, quick OAM message type, quick OAM message type include BFD message and CCM message for identification.
First keyword searching unit, for when quick OAM message be BFD message when, search key portId withMepId, or, search key portId, vlanId and mepId.
Second keyword searching unit is used for when quick OAM message is CCM message, search keyyourDescrimination。
Look-up table unit, for carrying out Down MEP look up table operations to quick OAM message according to the keyword found,Obtain the address of Down MEP.
In order to further explain in detail the technical solution of Down MEP message processing method of the present invention and system with it is beneficialEffect will be explained below using specific example.
In exchange chip, when receiving OAM message on port, it is sent to inside exchange chip by RxTdm.In chipIn Parser module, parsed according to OAM message encapsulation format that may be present, and obtain key message, as oamType,YourDiscrimination (if it is BFD message), mepId (if it is CCM message), oamOffset etc., search these passesThe keyword of key information.After message enters IGP, exchange chip can obtain portId information according to the entrance of message first, according toFor portId read port with postponing, whether the vlanId information and the port, vlanId for obtaining port are configured with MEP.IfIt is configured with MEP, explanation is that Down MEP will be handled message, will search Key and assembles.After obtaining Key, read correspondingList item, searched in list item according to certain lookup algorithm, so that it is determined that the corresponding Down MEP of the quick OAM messageAddress.If finding effective MEP, Down MEP information is packaged, forms the head OAM according to certain rule.ByMessage into cross scheduling resume module after, message can affix OAM header information, including mepIndex, oamType,The information such as oamOffset.The message that OAM engine is received carries out information fractionation, is split as info and two parts packet, andParse the information such as mepIndex, oamType, oamOffset in info.If message is BFD, from packet'sOamOffset byte starts, and carries out the parsing of BFD message, corresponding MEP list item is read using mepIndex field, to list itemState machine be updated.If message is CCM, since the oamOffset byte of packet, the parsing of CCM message is carried out,Corresponding MEP list item is read using mepIndex field, the state machine of list item is updated.
Only several embodiments of the present invention are expressed for above embodiments, and the description thereof is more specific and detailed, but can notTherefore it is construed as limiting the scope of the patent.It should be pointed out that for those of ordinary skill in the art,Under the premise of not departing from present inventive concept, various modifications and improvements can be made, and these are all within the scope of protection of the present invention.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.