Detailed description of the invention
As it is shown in figure 1, a kind of Down MEP message processing method, including step:
S200: resolve OAM message in exchange chip, obtains necessary OAM Information.
Specifically, in Parser (parsing) module of exchange chip, OAM message is resolved, and obtains necessityOAM Information, this information is passed to IGP (Ingress Process, entrance flow process), EGP (Egress Process, outlet streamJourney) module.OAM message has polytype, and it mainly can include BFD message and CCM message, different types of OAM message itsNecessary OAM Information differs.Specifically, when OAM message is BFD message, obtain yourDiscrimination information,When OAM message is CCM message, obtain mel, megId and mepId information.
S400: according to necessary OAM Information, identify the quick OAM message in OAM message.
IGP module increase OAM message type classification, according to type of message distinguish quick OAM message and at a slow speed OAM reportLiterary composition.Message send association's process to carry out corresponding operating in subsequent treatment at a slow speed, and rapid message increases Down MEP look up table operations.
S600: quick OAM message carries out Down MEP look up table operations, obtains the address of Down MEP.
For quick OAM message, then use the data in OAM message, in the MEP of exchange chip configures, carry out DownMEP look up table operations, gets the address of Down MEP.
S800: according to the address of Down MEP, reads corresponding data in presetting database, and combines MEP state and carry outOAM operates.
Carry out the quick OAM message processed at exchange chip, OAM engine, according to the address of Down MEP, reads respective countsAccording to database data, carry out OAM operation in conjunction with MEP state.
Down MEP message processing method of the present invention, resolves OAM message in exchange chip, obtains necessityOAM Information, according to necessary OAM Information, identifies the quick OAM message in OAM message, quick OAM message is carried out DownMEP look up table operations, obtains the address of Down MEP, according to the address of Down MEP, reads in presetting database and counts accordinglyAccording to, and combine MEP state and carry out OAM operation.During whole, identify the quick OAM message in OAM message, quick OAM is reportedLiterary composition makes a look up table handling, the lookup of Down MEP is placed in the processing procedure of packet switch, and the look-up table alleviating OAM engine is bornLoad, improves processing speed, it is achieved Down MEP message efficiently processes.
As in figure 2 it is shown, wherein in an embodiment, step S800 includes:
S820: according to the address of Down MEP, edit the OAM message head of quick OAM message.
The OAM Information that EGP module IGP passes over, for quick OAM message editor's OAM message head.Specifically, OAMThe header information of message includes: the key messages such as mepIdx, oamOffset and oamType.
S840: according to the OAM message head after editor, reads corresponding data in presetting database, and combines MEP state and enterRow OAM operates.
OAM message head after editor carries the address of Down MEP, sends the quick OAM message after editor to OAMEngine, OAM engine, according to the OAM message head after editor, reads corresponding data in presetting database, and combines MEP state and enterRow OAM operates.
As in figure 2 it is shown, wherein in an embodiment, also include after step S820:
S832: be added to preset original message head by the OAM message head after editor, it is thus achieved that the default original report after editorLiterary composition.
The OAM Information that EGP module IGP passes over, for quick OAM message editor's OAM message head, and is assembled into defaultBefore original message head.
S834: the default original message after quick OAM message and editor is put into different queue, passes through hiberarchy schedulingAfter, it is respectively fed to corresponding processing module or network interface.
Common message is put into different queues by Scheduler (scheduling) module from OAM message, and passes through hiberarchy schedulingAfter, send into corresponding processing module or network interface.
Wherein in an embodiment, in exchange chip, OAM message is resolved, obtain necessary OAM InformationStep includes:
Step one: obtain OAM message in exchange chip, and identify that OAM message type, OAM message type include that BFD reportsLiterary composition and CCM message.
Step 2: resolve OAM message, when OAM message is BFD message, obtains yourDiscrimination information, whenWhen OAM message is CCM message, obtain mel, megId and mepId information.
Step 3: obtain OAM side-play amount.
Specifically, when OAM message type is BFD message, necessary OAM Information includes yourDiscriminationInformation and OAM side-play amount;When OAM message type is CCM message, necessary OAM Information include mel information, megId information,MepId information and OAM side-play amount.
Wherein in an embodiment, quick OAM message is carried out Down MEP look up table operations, obtain Down MEP'sThe step of address includes:
Step one: 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: according to the keyword found, quick OAM message is carried out Down MEP look up table operations, obtain DownThe address of MEP.
In simple terms, Down MEP message processing method of the present invention has the advantage that
1, judge location Down MEP, IGP bag processing stage, carry out corresponding entry lookup, alleviate looking into of OAM engineTable is born.
2, OAM engine can be absorbed in the realization of OAM correlation function, improves the treatment effeciency of OAM message, and reducesDesign difficulty, and decrease the use of internal memory.
As it is shown on figure 3, a kind of Down MEP message handling system, including:
Parsing module 200, for resolving OAM message in exchange chip, obtains necessary OAM Information.
Identification module 400, for according to necessary OAM Information, identifying the quick OAM message in OAM message.
Look-up table means 600, for quick OAM message carries out Down MEP look up table operations, obtains Down MEP'sAddress.
Operation module 800, for the address according to Down MEP, reads corresponding data in presetting database, and combinesMEP state carries out OAM operation.
Down MEP message handling system of the present invention, OAM message is resolved in exchange chip by parsing module 200,Obtaining necessary OAM Information, identification module 400, according to necessary OAM Information, identifies the quick OAM message in OAM message, looks intoLook for table module 600 that quick OAM message carries out Down MEP look up table operations, obtain the address of Down MEP, operation module 800According to the address of Down MEP, read corresponding data in presetting database, and combine MEP state and carry out OAM operation.Whole mistakeCheng Zhong, identifies the quick OAM message in OAM message, quick OAM message is made a look up table handling, by the lookup of Down MEPIt is placed in the processing procedure of packet switch, alleviates the look-up table burden of OAM engine, improve processing speed, it is achieved Down MEP messageEfficiently process.
As shown in Figure 4, wherein in an embodiment, operation module 800 includes:
Heading edit cell 820, for the address according to Down MEP, edits the OAM message head of quick OAM message.
Operating unit 840, for according to the OAM message head after editor, reads corresponding data in presetting database, and tiesClose MEP state and carry out OAM operation.
As in figure 2 it is shown, wherein in an embodiment, operation module 800 also includes:
Original message edit cell 832, for being added to preset original message head by the OAM message head after editor, it is thus achieved thatDefault original message after editor.
Hierarchical Components 834 is for the default original message after quick OAM message and editor is put into different queue, logicalAfter crossing hiberarchy scheduling, it is respectively fed to corresponding processing module or network interface.
Wherein in an embodiment, parsing module 200 includes:
Type of message recognition unit, for obtaining OAM message in exchange chip, and identifies OAM message type, and OAM reportsLiterary composition type includes BFD message and CCM message.
Resolution unit, is used for resolving OAM message, when OAM message is BFD message, obtains yourDiscriminationInformation, when OAM message is CCM message, obtains mel, megId and mepId information.
OAM side-play amount acquiring unit, is used for obtaining OAM side-play amount.
Wherein in an embodiment, look-up table means 600 includes:
Recognition unit, is used for identifying that quick OAM message type, quick OAM message type include BFD message and CCM message.
First keyword search unit, for when quick OAM message is BFD message, search key portId withMepId, or, search key portId, vlanId and mepId.
Second keyword search unit, is used for when quick OAM message is CCM message, search keyyourDescrimination。
Look-up table unit, for quick OAM message being carried out Down MEP look up table operations according to the keyword found,Obtain the address of Down MEP.
In order to further explain in detail Down MEP message processing method of the present invention with the technical scheme of system with usefulEmploying instantiation is explained by effect below.
In exchange chip, when receiving OAM message on port, delivered to inside exchange chip by RxTdm.At chipIn Parser module, resolve according to OAM message encapsulation format that may be present, and obtain key message, as oamType,YourDiscrimination (if BFD message), mepId (if CCM message), oamOffset etc., search these and closeThe keyword of key information.After message enters IGP, first exchange chip can obtain portId information according to the entrance of message, according toAfter the configuration of portId read port, obtain the vlanId information of port and this port, whether vlanId is configured with MEP.IfBeing configured with MEP, explanation is that message to be processed by Down MEP, is assembled by lookup Key.After obtaining Key, read correspondingList item, make a look up in list item according to certain lookup algorithm, so that it is determined that the Down MEP that this quick OAM message is correspondingAddress.If finding effective MEP, Down MEP information is packaged, according to certain rule composition OAM head.Pass throughAfter message entered scheduling resume module, message can affix OAM header information, including mepIndex, oamType,The information such as oamOffset.The message received by OAM engine carries out information fractionation, is split as two parts of info Yu 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, uses mepIndex field to read corresponding MEP list item, to list itemState machine be updated.If message is CCM, from the beginning of the oamOffset byte of packet, carry out the parsing of CCM message,Use mepIndex field to read corresponding MEP list item, the state machine of list item is updated.
Above example only have expressed the several embodiments of the present invention, and it describes more concrete and detailed, but can notTherefore it is construed as limiting the scope of the patent.It should be pointed out that, for the person of ordinary skill of the art,On the premise of present inventive concept, it is also possible to make some deformation and improvement, these broadly fall into protection scope of the present invention.Therefore, the protection domain of patent of the present invention should be as the criterion with claims.