OAM processing method and device based on stream index
Technical field
The present invention relates to the communications field, particularly relate to a kind of OAM(Operation Administration and Maintenance based on stream index, operation, management, maintenance) processing method and device.
Background technology
Actual needs according to the carrier network operation, usually the management work with network is divided into 3 large classes: operate (Operation), management (Administration), safeguard (Maintenance), be OAM, mainly complete prediction, planning and configuration effort that daily network and business are carried out, and the regular job activity that the test of network and business thereof and fault management etc. are carried out.
PTN(Packet Transport Network, Packet Transport Network) as a kind of transmission network, support the two-way point-to-point interface channel of the multiple group-based reciprocal exchange of business, have the various large or fine granule business of being fit to, networking capability end to end, provide and be more suitable for IP(Internet Protocol, Internet protocol) " flexibility " transmission pipeline of traffic performance, and can utilize various bottom transmission channels, SDH(Synchronous Digital Hierarchy for example, synchronous digital hierarchy)/Ethernet(Ethernet)/OTN(Optical Transport Network, optical transfer network).
PTN has perfect OAM mechanism, has simultaneously multiple OAM agreement for the different application scene.for example IEEE802.3ah is used for the maintenance of ethernet port aspect, ITU-T(International Telecommunication Union Telecommunication Standardization Sector, standardization department of international telecommunication union telecommunication) IETF(Internet Engineering Task Force, Internet engineering duty group) RFC(Request For Comments, the request comment) the BFD(Bidirectional Forwarding Detection of 5880 definition, the two-way converting detection) generally be used for the maintenance of IP operation, IEEE(Institute of Electrical and Electronics Engineers, IEEE-USA) OAM that Y.1731 defines of 802.1ag and ITU-T is used for the maintenance of Ethernet service, the BFD CC(Continuity Check of IETF RFC6428 definition, connectivity checks) function is used for MPLS-TP(Multi-Protocol Label Switching-Transport Profile, the multiprotocol label label switched) maintenance of network.
Different OAM agreements has all defined same or similar function, and these OAM(Operation Administration Maintenance)s include detection of connectivity, Connectivity Verification, link tracing, performance monitoring etc.For example, the function that is used for carrying out between distinct device detection of connectivity is defined as: if do not receive OAM protocol frame with the other side's identification information within a period of time, think interruption to have occurred with being connected of the other side, should provide corresponding indication information to opposite end or network management system this moment; If receive correct OAM protocol frame, remove aforementioned alarm.This function is two layers of exchange, and the definition in the OAM agreement in three layers of route and MPLS-TP is substantially similar.
The OAM protocol definition several frequently seen OAM frame format, CCM(Continuity Check Message wherein, connectivity checks information) the MEP(Maintenance association End Point of frame, Maintenance Point) id field and BFD CC frame ' My Discriminator ' field is OAM frame identification information.
Be in the equipment of different levels of transport network to the demand property of there are differences of OAM, so generally there are a plurality of OAM processing unit in device interior.For example, there is different processing unit in device interior, is respectively used to the processing of MPLS-TP BFD CC frame of processing, IETF RFC6428 definition of the CCM frame of IEEE802.1ag definition and the processing of IETF RFC5880BFD protocol frame.
In addition, under different application scenarioss, equipment is differentiated to the degree of support of various OAM agreements.For example, equipment as the access point of PTN network, may need to support the MA(Maintenance Association of 512 802.1ag definition, maintenance field) the reciprocity Maintenance Point of and 2048 reciprocity MEP and a small amount of MPLS-TP (MEP of IETF RFC5317 definition), but the equipment as the main switching node of PTN network, need to support the reciprocity Maintenance Point of 4K MPLS-TP, and the OAM(Operation Administration Maintenance) of IEEE802.1ag protocol definition is only needed a small amount of support.If satisfy simultaneously above-mentioned requirements, to tackle variety of protocol and all design according to the highest support, this processing mode is wasted the resource of OAM processing unit very much, and flexibility is relatively poor.
Summary of the invention
The objective of the invention is in order to overcome the deficiency of above-mentioned background technology, a kind of OAM processing method and device based on stream index is provided, the resource that can save the OAM processing unit improves the flexibility of resource distribution and the flexibility of software code realization.
OAM processing method based on stream index provided by the invention comprises the following steps:
The feature field of S1, extraction Ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame;
The stream index allocation table of S2, configuration ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame is searched corresponding stream index allocation table based on the feature field of various OAM frames, obtains corresponding stream index numbering;
S3: configuration OAM processes the index assignment table, and the stream index numbering inquiry OAM corresponding according to various OAM frames processes the index assignment table, obtains OAM and processes index number;
S4, configuration OAM processing configuration table, OAM processing list comprise the processing configuration of the frame of the processing configuration of processing configuration, performance measurement frame of processing configuration, the link tracing frame of processing configuration, the loopback frame of connectivity checks frame and other types;
The processing configuration of described connectivity checks frame is defined as following 4 types:
(1) do not enable or equipment when not supporting the connectivity checks function as the user, be defined as type 0: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize the connectivity checks function, be defined as Class1: forward this connectivity checks frame to designated port;
(3) when equipment was supported the connectivity checks function, be defined as type 2: hardware handles forwarded step S5 to;
(4) when the user is configured to MIP, be defined as type 3: the normal forwarding, this connectivity checks frame is not processed;
The processing configuration of described loopback frame is used for defining the processing type of loopback message and response OAM frame, the processing configuration of link tracing frame is used for defining the processing type of path trace message and response OAM frame, the processing configuration of performance measurement frame is used for defining the processing type of measuring class OAM frame, and the processing configuration of the frame of other types is used for the processing behavior of the OAM frame outside the definite division aforementioned functional;
S5, the connectivity checks frame is carried out hardware handles: the local configuration of stream index numbering inquiry that obtains according to step S2, and whether more local configuration is consistent with the information that frame carries, if inconsistent, illustrate that this connectivity checks frame is not from predefined transmit leg, abandon this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from predefined transmit leg, preserve the timestamp when receiving this connectivity checks frame, this timestamp is for detection of " losing the connectivity alarm ", if do not receive again predefined connectivity checks frame the detection time of setting after section, think to connect to occur interrupting, report and alarm information is to CPU.
On the basis of technique scheme, the feature field of the frame of Ethernet OAM described in step S1 is the input port of virtual LAN VLAN sign and this Ethernet OAM frame; The feature field of MPLS-TP OAM frame is the input port of MPLS-TP label and this MPLS-TP OAM frame; The feature field of IP BFD frame is the opposite end identification field that the BFD protocol frame carries.
On the basis of technique scheme, described connectivity checks frame comprises CC frame in the MPLS-TP OAM of CCM frame in the Ethernet OAM that Y.1731 IEEE802.1ag and ITU-T define, IETF RFC6428 definition and the IP BFD frames of IETF RFC5881 and 5883 definition.
On the basis of technique scheme, when described OAM processing method was used in the PTN CE equipment of 24 ports, the numbering of 24 ports was followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) the one OAM frame is from the IP BFD frame of No. 1 port input, carries the first frame identification, and the stream index allocation table according to the first frame identification inquiry IP BFD frame obtains first-class index number;
(2) the 2nd OAM frames are the IEEE802.1ag CCM frame from No. 1 port input, carry a VLAN label, the first port and a VLAN label are formed keyword, and the stream index allocation table according to keyword query Ethernet OAM frame obtains the second index number;
(3) the 3rd OAM frames are the MPLS-TP CC frame from the IETF RFC6428 definition of No. 1 port input, carry a MPLS label, the one MPLS label or a MPLS label+first port are formed keyword, according to the stream index allocation table of keyword query MPLS OAM frame, obtain the 3rd stream index numbering;
(4) the 4th OAM frames are from the ITU-T of No. 1 port input Time delay measurement message frame of protocol definition Y.1731, carry a VLAN label, the first port and a VLAN label are formed keyword, and the stream index allocation table according to keyword query Ethernet OAM frame obtains the second index number;
(5) the 5th OAM frames are from the ITU-T of No. 2 ports input frame Y.1731CCM, carry the 2nd VLAN label, the second port 2 and the 2nd VLAN label are formed keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain the 4th stream index numbering;
(6) the 6th OAM frames are the MPLS-TP CC frame from the IETF RFC6428 definition of No. 2 port inputs, carry the 2nd MPLS label, the 2nd MPLS label or the 2nd MPLS label+second port are formed keyword, stream index allocation table according to keyword query MPLS OAM frame, do not inquire any stream index information, this MPLS-TP CC frame is used as common Frame forwards;
(7) the 7th OAM frames are the IP BFD frame from No. 1 port input, carry the second frame identification, the stream index allocation table according to the second frame identification inquiry IP BFD frame does not inquire the stream index configuration information, if this IP BFD frame is single-hop BFD frame, abandon this IP BFD frame; If this IP BFD frame is multi-hop BFD frame, this IP BFD frame is used as common Frame and forwards;
There is following configuration in OAM processing configuration table:
The first configuration entry: the CCM/CC/BFD frame is configured to Second Type: hardware handles all is configured to the first kind with the other types frame: be forwarded to designated port;
The second configuration entry: all types frame all is configured to the first kind: be forwarded to designated port;
The 3rd configuration entry: loopback frame and link tracing frame are configured to the first kind: be forwarded to designated port, the other types frame is configured to the 3rd type: the normal forwarding;
The first configuration entry and the second configuration entry are typical MEP configuration, and the 3rd configuration entry is typical IEEE802.1ag MIP configuration;
To first-class index number, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the second configuration entry is forwarded to designated port with an OAM frame;
To the second index number, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 2nd OAM frame; The 4th OAM frame is forwarded to designated port;
To the 3rd stream index numbering, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 3rd OAM frame;
To the 4th stream index numbering, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 5th OAM frame;
Need to carry out the OAM frame of hardware handles in correspondence second index number, the 3rd stream index numbering, the 4th stream index numbering, unify to process in OAM frame hardware processing module, and according to the stream index numbering, report and alarm information or preservation process state information.
The present invention also provides a kind of OAM processing unit based on stream index for above-mentioned OAM processing method, comprises that OAM frame identification module, OAM frame forward the behavior enquiry module, the OAM frame is processed behavior enquiry module, OAM frame hardware processing module, wherein:
Described OAM frame identification module is used for: the OAM frame of identification variety of protocol regulation, and the feature field of extraction Ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame sends to the OAM frame with various OAM frames and forwards the behavior enquiry module;
Described OAM frame forwards the behavior enquiry module, is used for: the OAM frame that receives is used as common Frame, determines its forwarding behavior, the OAM frame is forwarded to the OAM frame processes the behavior enquiry module;
Described OAM frame is processed the behavior enquiry module: be used for: configuration flow index assignment table, OAM process index assignment table, OAM processing configuration table, according to the feature field of various OAM frames, the processing behavior of searching various OAM frames in described stream index allocation table, OAM processing index assignment table, OAM processing configuration table;
Described OAM frame hardware processing module, be used for: the connectivity checks frame is carried out hardware handles: according to the local configuration of stream index numbering inquiry, and whether more local configuration is consistent with the information that frame carries, if inconsistent, illustrate that this connectivity checks frame is not from predefined transmit leg, abandon this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from predefined transmit leg, preserve the timestamp when receiving this connectivity checks frame, this timestamp is for detection of " losing the connectivity alarm ", if do not receive again predefined connectivity checks frame the detection time of setting after section, think to connect to occur interrupting, report and alarm information is to CPU.
On the basis of technique scheme, described OAM frame is processed the behavior enquiry module and is comprised Ethernet OAM stream index configuration submodule, MPLS OAM stream index configuration submodule, IP BFD stream index configuration submodule, OAM frame processing configuration search index submodule, OAM frame processing configuration inquiry submodule, wherein:
Described Ethernet OAM stream index configuration submodule, be used for: the feature field that extracts the Ethernet OAM frame, and composition keyword KEY, the stream index allocation table of configuration ethernet OAM frame, searched the stream index allocation table of Ethernet OAM frame by keyword KEY, obtain OAM stream index numbering, and send to OAM frame processing configuration search index submodule;
Described MPLS OAM stream index configuration submodule, be used for: the feature field that extracts MPLS OAM frame, and composition keyword KEY, the stream index allocation table of configuration MPLS OAM frame, searched the stream index allocation table of MPLS OAM frame by keyword KEY, obtain MPLSOAM stream index numbering, and send to OAM frame processing configuration search index submodule;
Described IP BFD stream index configuration submodule, be used for: the feature field that extracts IP BFD frame, and composition keyword KEY, the stream index allocation table of configuration of IP BFD frame, searched the stream index allocation table of IP BFD frame by keyword KEY, obtain IP BFD stream index numbering, and send to OAM frame processing configuration search index submodule;
Described OAM frame processing configuration search index submodule, be used for: configuration OAM processes the index assignment table, and according to the OAM stream index numbering that receives, inquiry OAM processes the index assignment table, obtain OAM and process index number, OAM is processed index number send to OAM frame processing configuration inquiry submodule;
Described OAM frame processing configuration inquiry submodule, be used for: configuration OAM processing configuration table, OAM processing list comprise the processing configuration of the frame of the processing configuration of processing configuration, performance measurement frame of processing configuration, the link tracing frame of processing configuration, the loopback frame of connectivity checks frame and other types; According to the OAM processing configuration index number that receives, inquiry OAM processing configuration table obtains corresponding OAM processing configuration, and according to this OAM processing configuration, to the OAM frame forward, hardware handles or processed by plug-in FPGA.
On the basis of technique scheme, described connectivity checks frame comprises CC frame in the MPLS-TP OAM of CCM frame in the Ethernet OAM that Y.1731 IEEE802.1ag and ITU-T define, IETF RFC6428 definition and the IP BFD frames of IETF RFC5881 and 5883 definition.
On the basis of technique scheme, the processing configuration of described connectivity checks frame is defined as following 4 types:
(1) do not enable or equipment when not supporting the connectivity checks function as the user, be defined as type 0: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize the connectivity checks function, be defined as Class1: forward this connectivity checks frame to designated port;
(3) when equipment is supported the connectivity checks function, be defined as type 2: hardware handles;
(4) when the user is configured to MIP, be defined as type 3: the normal forwarding, this connectivity checks frame is not processed;
The processing configuration of described loopback frame is used for defining the processing type of loopback message and response OAM frame, the processing configuration of link tracing frame is used for defining the processing type of path trace message and response OAM frame, the processing configuration of performance measurement frame is used for defining the processing type of measuring class OAM frame, and the processing configuration of the frame of other types is used for the processing behavior of the OAM frame outside the definite division aforementioned functional.
On the basis of technique scheme, the feature field of described Ethernet OAM frame is the input port of virtual LAN VLAN sign and this Ethernet OAM frame; The feature field of MPLS-TP OAM frame is the input port of MPLS-TP label and this MPLS-TP OAM frame; The feature field of IP BFD frame is the opposite end identification field that the BFD protocol frame carries.
On the basis of technique scheme, when described OAM processing unit was used in the PTN CE equipment of 24 ports, the numbering of 24 ports was followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) the one OAM frame is from the IP BFD frame of No. 1 port input, carries the first frame identification, and the stream index allocation table according to the first frame identification inquiry IP BFD frame obtains first-class index number;
(2) the 2nd OAM frames are the IEEE802.1ag CCM frame from No. 1 port input, carry a VLAN label, the first port and a VLAN label are formed keyword, and the stream index allocation table according to keyword query Ethernet OAM frame obtains the second index number;
(3) the 3rd OAM frames are the MPLS-TP CC frame from the IETF RFC6428 definition of No. 1 port input, carry a MPLS label, the one MPLS label or a MPLS label+first port are formed keyword, according to the stream index allocation table of keyword query MPLS OAM frame, obtain the 3rd stream index numbering;
(4) the 4th OAM frames are from the ITU-T of No. 1 port input Time delay measurement message frame of protocol definition Y.1731, carry a VLAN label, the first port and a VLAN label are formed keyword, and the stream index allocation table according to keyword query Ethernet OAM frame obtains the second index number;
(5) the 5th OAM frames are from the ITU-T of No. 2 ports input frame Y.1731CCM, carry the 2nd VLAN label, the second port 2 and the 2nd VLAN label are formed keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain the 4th stream index numbering;
(6) the 6th OAM frames are the MPLS-TP CC frame from the IETF RFC6428 definition of No. 2 port inputs, carry the 2nd MPLS label, the 2nd MPLS label or the 2nd MPLS label+second port are formed keyword, stream index allocation table according to keyword query MPLS OAM frame, do not inquire any stream index information, this MPLS-TP CC frame is used as common Frame forwards;
(7) the 7th OAM frames are the IP BFD frame from No. 1 port input, carry the second frame identification, the stream index allocation table according to the second frame identification inquiry IP BFD frame does not inquire the stream index configuration information, if this IP BFD frame is single-hop BFD frame, abandon this IP BFD frame; If this IP BFD frame is multi-hop BFD frame, this IP BFD frame is used as common Frame and forwards;
There is following configuration in OAM processing configuration table:
The first configuration entry: the CCM/CC/BFD frame is configured to Second Type: hardware handles all is configured to the first kind with the other types frame: be forwarded to designated port;
The second configuration entry: all types frame all is configured to the first kind: be forwarded to designated port;
The 3rd configuration entry: loopback frame and link tracing frame are configured to the first kind: be forwarded to designated port, the other types frame is configured to the 3rd type: the normal forwarding;
The first configuration entry and the second configuration entry are typical MEP configuration, and the 3rd configuration entry is typical IEEE802.1ag MIP configuration;
To first-class index number, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the second configuration entry is forwarded to designated port with an OAM frame;
To the second index number, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 2nd OAM frame; The 4th OAM frame is forwarded to designated port;
To the 3rd stream index numbering, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 3rd OAM frame;
To the 4th stream index numbering, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding the first configuration entry is carried out hardware handles to the 5th OAM frame;
Need to carry out the OAM frame of hardware handles in correspondence second index number, the 3rd stream index numbering, the 4th stream index numbering, unify to process in OAM frame hardware processing module, and according to the stream index numbering, report and alarm information or preservation process state information.
Compared with prior art, advantage of the present invention is as follows:
The present invention is based on the OAM stream index and come allocation process logical resource and storage resources, can save the resource of OAM processing unit, improve the flexibility of resource distribution and the flexibility of software code realization.
Description of drawings
Fig. 1 is based on the structured flowchart of the OAM processing unit of stream index in the embodiment of the present invention.
Embodiment
The present invention is described in further detail below in conjunction with drawings and the specific embodiments.
Part technical term in the embodiment of the present invention is defined as follows:
The maintaining end point of MEP:OAM protocol definition.
The Maintenance Intermediate Point of MIP:OAM protocol definition.
The stream index numbering: the OAM frame is searched the stream index that the obtains numbering of stream index allocation list according to feature field, each stream index numbering is inner unique at device, according to the difference of stream index numbering numerical value, can be expressed as stream index numbering 1, stream index numbering 2, stream index numbering 3 etc.
Frame identification: the identification field of the IP BFD protocol frame of IETF RFC5880 definition according to the difference of identification field numerical value, can be expressed as frame identification 1, frame identification 2, frame identification 3 etc.
The MPLS label: the forwarding label of MPLS/MPLS-TP data or OAM frame according to the difference of MPLS label numerical value, can be expressed as MPLS label 1, MPLS label 2, MPLS label 3 etc.
The embodiment of the present invention provides a kind of OAM processing method based on stream index, comprises the following steps:
The feature field of the various OAM frames such as S1, extraction Ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame: for example, the feature field of Ethernet OAM frame is VLAN(Virtual Local Area Network, VLAN) sign and the input port of this Ethernet OAM frame; The feature field of MPLS-TP OAM frame is the input port of MPLS-TP label and this MPLS-TP OAM frame; The feature field of IP BFD frame is the opposite end identification field that the BFD protocol frame carries.
The stream index allocation table of the various OAM frames such as S2, configuration ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame is searched corresponding stream index allocation table based on the feature field of various OAM frames, obtains corresponding stream index numbering;
S3: configuration OAM processes the index assignment table, and the stream index numbering inquiry OAM corresponding according to various OAM frames processes the index assignment table, obtains OAM and processes index number;
S4, configuration OAM processing configuration table, OAM processing list comprise the processing configuration etc. of the frame of the processing configuration of processing configuration, performance measurement frame of processing configuration, the link tracing frame of processing configuration, the loopback frame of connectivity checks frame and other types.
The connectivity checks frame comprises CC frame in the MPLS-TP OAM of CCM frame in the Ethernet OAM that Y.1731 IEEE802.1ag and ITU-T define, IETF RFC6428 definition and the IP BFD frames of IETF RFC5881 and 5883 definition.
The processing configuration of connectivity checks frame is defined as following 4 types:
(1) do not enable or equipment when not supporting the connectivity checks function as the user, be defined as type 0: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize the connectivity checks function, be defined as Class1: forward this connectivity checks frame to designated port;
(3) when equipment was supported the connectivity checks function, can be defined as type 2: hardware handles forwarded step S5 to;
(4) when the user is configured to MIP, be defined as type 3: the normal forwarding, this connectivity checks frame is not processed.
The processing configuration of loopback frame is used for defining the processing type of loopback message and response OAM frame, the processing configuration of link tracing frame is used for defining the processing type of path trace message and response OAM frame, the processing configuration of performance measurement frame is used for defining the processing type of measuring class OAM frame, and the processing configuration of the frame of other types is used for the processing behavior of the OAM frame outside the definite division aforementioned functional.The processing configuration of the definition of above-mentioned processing configuration and connectivity checks frame is similar, has very large flexibility, and MEP, MIP(Maintenance domain Intermediate Point, Maintenance Intermediate Point can be used for be distinguished in this configuration) to the different disposal of OAM frame.
S5, the connectivity checks frame is carried out hardware handles: the local configuration of stream index numbering inquiry that obtains according to step S2, and whether more local configuration is consistent with the information that frame carries, if inconsistent, illustrate that this connectivity checks frame is not from predefined transmit leg, abandon this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from predefined transmit leg, preserve the timestamp when receiving this connectivity checks frame, this timestamp is for detection of " losing the connectivity alarm ", if do not receive again predefined connectivity checks frame the detection time of setting after section, think to connect to occur interrupting, report and alarm information is to CPU.
Above-mentioned OAM processing method is used in the PTN CE(Custom Edge of 24 ports, user's incoming end) in equipment the time, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) from the IP BFD frame (OAM frame 1) of No. 1 port input, carry frame identification 1, the stream index allocation table according to frame identification 1 inquiry IP BFD frame obtains stream index numbering 1;
(2) from the IEEE802.1ag CCM frame (OAM frame 2) of No. 1 port input, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, the stream index allocation table according to keyword KEY inquiry Ethernet OAM frame obtains stream index numbering 2;
(3) from the MPLS-TP CC frame (OAM frame 3) of the IETF RFC6428 definition of No. 1 port input, carry MPLS label 1, MPLS label 1 or MPLS label 1+ port one are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS OAM frame obtains stream index numbering 3;
(4) from the ITU-T of No. 1 port input Time delay measurement message frame of protocol definition (OAM frame 4) Y.1731, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry Ethernet OAM frame obtains stream index numbering 2;
(5) from the ITU-T of No. 2 ports input frame (OAM frame 5) Y.1731CCM, carry VLAN label 2, port 2 and VLAN label 2 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry Ethernet OAM frame obtains stream index numbering 4;
(6) from the MPLS-TP CC frame (OAM frame 6) of the IETF RFC6428 definition of No. 2 ports input, carry MPLS label 2, MPLS label 2 or MPLS label 2+ port 2 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS OAM frame, do not inquire any stream index information, this MPLS-TP CC frame is used as common Frame forwards;
(7) from the IP BFD frame (OAM frame 7) of No. 1 port input, carry frame identification 2, the stream index allocation table according to frame identification 2 inquiry IP BFD frames does not inquire the stream index configuration information, if this IP BFD frame is single-hop BFD frame, abandons this IP BFD frame; If this IP BFD frame is multi-hop BFD frame, this IP BFD frame is used as common Frame and forwards.
There is following configuration in OAM processing configuration table:
Configuration entry 1: the CCM/CC/BFD frame is configured to ' type 2(hardware handles) ', the other types frame all is configured to ' Class1 (being forwarded to designated port) ';
Configuration entry 2: all types frame all is configured to ' Class1 (being forwarded to designated port) ';
Configuration entry 3: loopback frame and link tracing frame are configured to ' Class1 (being forwarded to designated port) ', the other types frame are configured to ' type 3: the normal forwarding ';
Configuration entry 1 and configuration entry 2 are typical MEP configuration, and configuration entry 3 is typical IEEE802.1ag MIP configuration.
Convection current index number 1, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 2 is forwarded to designated port with OAM frame 1;
Convection current index number 2, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 2; OAM frame 4 is forwarded to designated port;
Convection current index number 3, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 3;
Convection current index number 4, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 5;
Corresponding stream index is numbered the OAM frame that needs to carry out hardware handles in 2,3,4, unifies to process in OAM frame hardware processing module, and according to the stream index numbering, report and alarm information or preservation process state information.
The embodiment of the present invention can be OAM stream with the OAM frame definition of separate sources and encapsulation, and adopt unified stream index to distinguish these OAM frames, and then based on to OAM stream be configured to OAM frame allocation process resource, and change processing mode to the OAM frame by the configuration that changes stream index.
Shown in Figure 1, the embodiment of the present invention provides a kind of OAM processing unit based on stream index be used to realizing above-mentioned OAM processing method, comprise that OAM frame identification module, OAM frame forward the behavior enquiry module, the OAM frame is processed behavior enquiry module, OAM frame hardware processing module, wherein:
OAM frame identification module is used for: the OAM frame of identification variety of protocol regulation, and the feature field of the various OAM frames such as extraction Ethernet OAM frame, MPLS-TP OAM frame, IP BFD frame sends to the OAM frame with various OAM frames and forwards the behavior enquiry module; The feature field of Ethernet OAM frame is VLAN(Virtual Local Area Network, VLAN) sign and the input port of this Ethernet OAM frame; The feature field of MPLS-TP OAM frame is the input port of MPLS-TP label and this MPLS-TP OAM frame; The feature field of IP BFD frame is the opposite end identification field that the BFD protocol frame carries;
The OAM frame forwards the behavior enquiry module, is used for: the OAM frame that receives is used as common Frame, determines its forwarding behavior, the OAM frame is forwarded to the OAM frame processes the behavior enquiry module;
The OAM frame is processed the behavior enquiry module: be used for: configuration flow index assignment table, OAM process index assignment table, OAM processing configuration table, according to the feature field of various OAM frames, the processing behavior of searching various OAM frames in stream index allocation table, OAM processing index assignment table, OAM processing configuration table;
OAM frame hardware processing module, be used for: the connectivity checks frame is carried out hardware handles: inquire about local configuration according to the stream index numbering that step S2 obtains, and whether more local configuration is consistent with the information that frame carries, if inconsistent, illustrate that this connectivity checks frame is not from predefined transmit leg, abandon this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from predefined transmit leg, preserve the timestamp when receiving this connectivity checks frame, this timestamp is for detection of " losing the connectivity alarm ", if do not receive again predefined connectivity checks frame the detection time of setting after section, think to connect to occur interrupting, report and alarm information is to CPU.
The OAM frame is processed the behavior enquiry module and is comprised Ethernet OAM stream index configuration submodule, MPLS OAM stream index configuration submodule, IP BFD stream index configuration submodule, OAM frame processing configuration search index submodule, OAM frame processing configuration inquiry submodule, wherein:
Ethernet OAM stream index configuration submodule, be used for: the feature field that extracts the Ethernet OAM frame, and composition keyword KEY, the stream index allocation table of configuration ethernet OAM frame, searched the stream index allocation table of Ethernet OAM frame by keyword KEY, obtain OAM stream index numbering, and send to OAM frame processing configuration search index submodule;
MPLS OAM stream index configuration submodule, be used for: the feature field that extracts MPLS OAM frame, and composition keyword KEY, the stream index allocation table of configuration MPLS OAM frame, searched the stream index allocation table of MPLS OAM frame by keyword KEY, obtain MPLS OAM stream index numbering, and send to OAM frame processing configuration search index submodule;
IP BFD stream index configuration submodule, be used for: the feature field that extracts IP BFD frame, and composition keyword KEY, the stream index allocation table of configuration of IP BFD frame, searched the stream index allocation table of IP BFD frame by keyword KEY, obtain IP BFD stream index numbering, and send to OAM frame processing configuration search index submodule;
OAM frame processing configuration search index submodule, be used for: configuration OAM processes the index assignment table, and according to the OAM stream index numbering that receives, inquiry OAM processes the index assignment table, obtain OAM and process index number, OAM is processed index number send to OAM frame processing configuration inquiry submodule;
OAM frame processing configuration inquiry submodule, be used for: configuration OAM processing configuration table, OAM processing list comprise the processing configuration etc. of the frame of the processing configuration of processing configuration, performance measurement frame of processing configuration, the link tracing frame of processing configuration, the loopback frame of connectivity checks frame and other types; According to the OAM processing configuration index number that receives, inquiry OAM processing configuration table obtains corresponding OAM processing configuration, and according to this OAM processing configuration, to the OAM frame forward, hardware handles or processed by plug-in FPGA.
The connectivity checks frame comprises CC frame in the MPLS-TP OAM of CCM frame in the Ethernet OAM that Y.1731 IEEE802.1ag and ITU-T define, IETF RFC6428 definition and the IP BFD frames of IETF RFC5881 and 5883 definition.
The processing configuration of connectivity checks frame is defined as following 4 types:
(1) do not enable or equipment when not supporting the connectivity checks function as the user, be defined as type 0: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize the connectivity checks function, be defined as Class1: forward this connectivity checks frame to designated port;
(3) when equipment is supported the connectivity checks function, can be defined as type 2: hardware handles;
(4) when the user is configured to MIP, be defined as type 3: the normal forwarding, this connectivity checks frame is not processed.
The processing configuration of loopback frame is used for defining the processing type of loopback message and response OAM frame, the processing configuration of link tracing frame is used for defining the processing type of path trace message and response OAM frame, the processing configuration of performance measurement frame is used for defining the processing type of measuring class OAM frame, and the processing configuration of the frame of other types is used for the processing behavior of the OAM frame outside the definite division aforementioned functional.The processing configuration of the definition of above-mentioned processing configuration and connectivity checks frame is similar, has very large flexibility, and this configuration can be used for distinguishing MEP, MIP to the different disposal of OAM frame.
Above-mentioned OAM processing method is used in the PTN CE(Custom Edge of 24 ports, user's incoming end) in equipment the time, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) from the IP BFD frame (OAM frame 1) of No. 1 port input, carry frame identification 1, the stream index allocation table according to frame identification 1 inquiry IP BFD frame obtains stream index numbering 1;
(2) from the IEEE802.1ag CCM frame (OAM frame 2) of No. 1 port input, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, the stream index allocation table according to keyword KEY inquiry Ethernet OAM frame obtains stream index numbering 2;
(3) from the MPLS-TP CC frame (OAM frame 3) of the IETF RFC6428 definition of No. 1 port input, carry MPLS label 1, MPLS label 1 or MPLS label 1+ port one are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS OAM frame obtains stream index numbering 3;
(4) from the ITU-T of No. 1 port input Time delay measurement message frame of protocol definition (OAM frame 4) Y.1731, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry Ethernet OAM frame obtains stream index numbering 2;
(5) from the ITU-T of No. 2 ports input frame (OAM frame 5) Y.1731CCM, carry VLAN label 2, port 2 and VLAN label 2 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry Ethernet OAM frame obtains stream index numbering 4;
(6) from the MPLS-TP CC frame (OAM frame 6) of the IETF RFC6428 definition of No. 2 ports input, carry MPLS label 2, MPLS label 2 or MPLS label 2+ port 2 are formed keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS OAM frame, do not inquire any stream index information, this MPLS-TP CC frame is used as common Frame forwards;
(7) from the IP BFD frame (OAM frame 7) of No. 1 port input, carry frame identification 2, the stream index allocation table according to frame identification 2 inquiry IP BFD frames does not inquire the stream index configuration information, if this IP BFD frame is single-hop BFD frame, abandons this IP BFD frame; If this IP BFD frame is multi-hop BFD frame, this IP BFD frame is used as common Frame and forwards.
There is following configuration in OAM processing configuration table:
Configuration entry 1: the CCM/CC/BFD frame is configured to ' type 2(hardware handles) ', the other types frame all is configured to ' Class1 (being forwarded to designated port) ';
Configuration entry 2: all types frame all is configured to ' Class1 (being forwarded to designated port) ';
Configuration entry 3: loopback frame and link tracing frame are configured to ' Class1 (being forwarded to designated port) ', the other types frame are configured to ' type 3: the normal forwarding ';
Configuration entry 1 and configuration entry 2 are typical MEP configuration, and configuration entry 3 is typical IEEE802.1ag MIP configuration.
Convection current index number 1, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 2 is forwarded to designated port with OAM frame 1;
Convection current index number 2, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 2; OAM frame 4 is forwarded to designated port;
Convection current index number 3, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 3;
Convection current index number 4, OAM processes index assignment table and OAM processing configuration table by inquiry, and corresponding configuration entry 1 is carried out hardware handles to OAM frame 5;
Corresponding stream index is numbered the OAM frame that needs to carry out hardware handles in 2,3,4, unifies to process in OAM frame hardware processing module, and according to the stream index numbering, report and alarm information or preservation process state information.
According to application scenarios, if need to provide more support to the OAM frame that Y.1731 IEEE802.1ag and ITU-T define, can distribute more stream index numbering for Ethernet OAM, namely keep more stream index number entry in Ethernet OAM stream index allocation table.If need to provide more support to MPLS-TP BFD CC, the more correspondence of reservation is banishd and is put entry in MPLS OAM stream index allocation table.
In addition, the processing of MPLS-TP BFD CC frame and the processing of IP BFD frame are similar, can shield both difference by stream index mechanism, the unified processing.The identification of various OAM frames, MPLS forward, IP layer route, two layers of bridge joint and the forwarding of the OAM frame that do not inquire stream index is prior art.
Those skilled in the art can carry out various modifications and variations to the embodiment of the present invention, if these are revised and modification belongs within the scope of claim of the present invention and equivalent technologies thereof, these modifications and modification are also within protection scope of the present invention.
The prior art that the content of not describing in detail in specification is known to the skilled person.