Based on OAM processing method and the device of stream index
Technical field
The present invention relates to the communications field, particularly relate to a kind of OAM based on stream index (OperationAdministrationandMaintenance, operation, management, maintenance) processing method and device.
Background technology
According to the actual needs of carrier network operation, usually the management work of network is divided into 3 large classes: operate (Operation), management (Administration), safeguard (Maintenance), i.e. OAM, mainly complete commodity network and business are carried out prediction, planning and configuration effort, and to the regular job activity that the test and fault management etc. of network and business thereof are carried out.
PTN (PacketTransportNetwork, Packet Transport Network) transmit network as a kind of, support the multiple two-way point-to-point interface channel based on packet switching service, there is applicable various large or fine granule business, networking capability end to end, provide and be more suitable for IP (InternetProtocol, Internet protocol) " flexibility " transmission pipeline of traffic performance, and various bottom transmission channel can be utilized, such as SDH (SynchronousDigitalHierarchy, synchronous digital hierarchy)/Ethernet (Ethernet)/OTN (OpticalTransportNetwork, optical transfer network).
PTN has perfect OAM mechanism, there is the multiple OAM agreement for different application scene simultaneously.Such as IEEE802.3ah is used for the maintenance of ethernet port aspect, ITU-T (InternationalTelecommunicationUnionTelecommunicationStan dardizationSector, standardization department of international telecommunication union telecommunication) IETF (InternetEngineeringTaskForce, Internet engineering duty group) RFC (RequestForComments, request comment) the 5880 BFD (BidirectionalForwardingDetection defined, two-way converting detects) be generally used for the maintenance of IP operation, IEEE (InstituteofElectricalandElectronicsEngineers, IEEE-USA) OAM of 802.1ag and ITU-TY.1731 definition is used for the maintenance of Ethernet service, BFDCC (the ContinuityCheck of IETFRFC6428 definition, connectivity checks) function be used for MPLS-TP (Multi-ProtocolLabelSwitching-TransportProfile, multiprotocol label label switched) maintenance of network.
Different OAM agreements both defines same or similar function, and these OAM(Operation Administration Maintenance)s include detection of connectivity, Connectivity Verification, link tracing, performance monitoring etc.Such as, function for carrying out detection of connectivity between distinct device is defined as: if do not receive the OAM protocol frame with the other side's identification information within a period of time, then think and occurred interruption with the connection of the other side, now should provide corresponding indication information to opposite end or network management system; If receive correct OAM protocol frame, then remove aforementioned alarm.This function is at Layer2 switching, and the definition in the OAM agreement in three layers of route and MPLS-TP is substantially similar.
The several frequently seen OAM frame format of OAM protocol definition, wherein CCM (ContinuityCheckMessage, connectivity checks information) MEP (MaintenanceassociationEndPoint, the Maintenance Point) id field of frame and ' MyDiscriminator ' field of BFDCC frame be OAM frame identification information.
Be in demand the there are differences property of equipment to OAM of the different levels of transport network, so device interior generally exists multiple OAM processing unit.Such as, there is different processing unit in device interior, be respectively used to IEEE802.1ag definition CCM frame process, IETFRFC6428 definition the process of MPLS-TPBFDCC frame and the process of IETFRFC5880BFD protocol frame.
In addition, under different application scenarioss, the degree of support of equipment to various OAM agreement is differentiated.Such as, as the equipment of the access point of PTN network, then may need the MA (MaintenanceAssociation of support 512 802.1ag definition, maintenance field) and the reciprocity Maintenance Point (MEP of IETFRFC5317 definition) of 2048 reciprocity MEP and a small amount of MPLS-TP, but the equipment of the main switching node as PTN network, then need the reciprocity Maintenance Point supporting 4K MPLS-TP, and a small amount of support is only needed to the OAM(Operation Administration Maintenance) of IEEE802.1ag protocol definition.If will meet above-mentioned requirements simultaneously, then tackle various agreement and all design according to the highest support, this processing mode wastes the resource of OAM processing unit very much, and flexibility is poor.
Summary of the invention
The object of the invention is the deficiency in order to overcome above-mentioned background technology, a kind of OAM processing method based on stream index and device being provided, the resource of OAM processing unit can be saved, improve the flexibility of Resourse Distribute 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-TPOAM frame, IPBFD frame;
The stream index allocation table of S2, configuration ethernet OAM frame, MPLS-TPOAM frame, IPBFD frame, the feature field based on various OAM frame searches corresponding stream index allocation table, obtains corresponding stream index numbering;
S3: configuration OAM process index assignment table, the stream index numbering inquiry OAM process index assignment table corresponding according to various OAM frame, obtains OAM process index number;
S4, configuration OAM processing configuration table, OAM processing configuration table comprises the processing configuration of the processing configuration of connectivity checks frame, the processing configuration of loopback frame, the processing configuration of link tracing frame, the processing configuration of performance measurement frame and the frame of other types;
The processing configuration of described connectivity checks frame is defined as following 4 types:
(1) when user is not enable or equipment does not support connectivity checks function, type 0 is defined as: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize connectivity checks function, Class1 is defined as: forward this connectivity checks frame to designated port;
(3) when equipment supports connectivity checks function, be defined as type 2: hardware handles, forward step S5 to;
(4) when user is configured to MIP, be defined as type 3: normally forward, this connectivity checks frame do not processed;
The processing configuration of described loopback frame is for defining the process type of loopback message and response OAM frame, the processing configuration of link tracing frame is for defining the process type of path trace message and response OAM frame, the processing configuration of performance measurement frame is for defining the process type measuring class OAM frame, and the processing configuration of the frame of other types is used for the process behavior of the OAM frame outside the aforementioned function of definite division;
S5, hardware handles is carried out to connectivity checks frame: the local configuration of stream index numbering inquiry obtained according to step S2, and whether the information that more local configuration and frame carry is consistent, if inconsistent, illustrating that this connectivity checks frame is not the transmit leg from presetting, abandoning this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from the transmit leg preset, preserve timestamp when receiving this connectivity checks frame, this timestamp is used for detecting " losing connectivity alarm ", if the detection time of setting does not receive the connectivity checks frame preset after section again, then think to connect and 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 mark and this Ethernet OAM frame; The feature field of MPLS-TPOAM frame is the input port of MPLS-TP label and this MPLS-TPOAM frame; The feature field of IPBFD frame is the opposite end identification field that BFD protocol frame carries.
On the basis of technique scheme, described connectivity checks frame comprise IEEE802.1ag and ITU-TY.1731 definition Ethernet OAM in CCM frame, IETFRFC6428 definition MPLS-TPOAM in CC frame and IETFRFC5881 and 5883 definition IPBFD frame.
On the basis of technique scheme, when described OAM processing method is used in the PTNCE equipment of 24 ports, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) the one OAM frame is the IPBFD frame from No. 1 port input, carries the first frame identification, according to the stream index allocation table of the first frame identification inquiry IPBFD frame, obtains first-class index number;
(2) the 2nd OAM frames are the IEEE802.1agCCM frame from No. 1 port input, carry a VLAN label, by the first port and VLAN label composition keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain second index number;
(3) the 3rd OAM frames are the MPLS-TPCC frame of the IETFRFC6428 definition from No. 1 port input, carry the first MPLS label, by the first MPLS label or the first MPLS label+the first port composition keyword, according to the stream index allocation table of keyword query MPLS-TPOAM frame, obtain the 3rd stream index numbering;
The Time delay measurement message frame of the ITU-TY.1731 protocol definition that (4) the 4th OAM frames input from No. 1 port, carry a VLAN label, by the first port and VLAN label composition keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain second index number;
(5) the 5th OAM frames are the ITU-TY.1731CCM frame from No. 2 port inputs, carry the 2nd VLAN label, by the second port 2 and the 2nd VLAN label composition 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-TPCC frame of the IETFRFC6428 definition from No. 2 port inputs, carry the second MPLS label, by the second MPLS label or the second MPLS label+the second port composition keyword, according to the stream index allocation table of keyword query MPLS-TPOAM frame, do not inquire any stream index information, this MPLS-TPCC frame is used as common Frame and forwards;
(7) the 7th OAM frames are the IPBFD frame from No. 1 port input, carry the second frame identification, according to the stream index allocation table of the second frame identification inquiry IPBFD frame, do not inquire stream index configuration information, if this IPBFD frame is single-hop BFD frame, then abandon this IPBFD frame; If this IPBFD frame is multi-hop BFD frame, then this IPBFD frame is used as common Frame and forwards;
There is following configuration in OAM processing configuration table:
First configuration entry: CCM/CC/BFD frame is configured to Second Type: hardware handles, other types frame is all configured to the first kind: be forwarded to designated port;
Second configuration entry: all types frame is all configured to the first kind: be forwarded to designated port;
3rd configuration entry: loopback frame and link tracing frame are configured to the first kind: be forwarded to designated port, other types frame are configured to the 3rd type: normally forward;
First configuration entry and the second configuration entry are that typical MEP configures, and the 3rd configuration entry is that typical IEEE802.1agMIP configures;
To first-class index number, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding second configuration entry, be then forwarded to designated port by an OAM frame;
To second index number, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 2nd OAM frame; 4th OAM frame is forwarded to designated port;
To the 3rd stream index numbering, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 3rd OAM frame;
To the 4th stream index numbering, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 5th OAM frame;
Need the OAM frame carrying out hardware handles in corresponding second index number, the 3rd stream index numbering, the 4th stream index numbering, carry out unifying process in OAM frame hardware processing module, and according to stream index numbering, report and alarm information or specimens preserving state information.
The present invention also provides a kind of OAM processing unit based on stream index for above-mentioned OAM processing method, comprises OAM frame identification module, OAM frame forwards behavior enquiry module, OAM frame process behavior enquiry module, OAM frame hardware processing module, wherein:
Described OAM frame identification module, for: identify the OAM frame that various agreement specifies, extract the feature field of Ethernet OAM frame, MPLS-TPOAM frame, IPBFD frame, various OAM frame is sent to OAM frame and forwards behavior enquiry module;
Described OAM frame forwards behavior enquiry module, for: the OAM frame of reception is used as common Frame, determines its forwarding behavior, OAM frame is forwarded to OAM frame process behavior enquiry module;
Described OAM frame process behavior enquiry module: for: configuration flow index assignment table, OAM process index assignment table, OAM processing configuration table, according to the feature field of various OAM frame, in described stream index allocation table, OAM process index assignment table, OAM processing configuration table, search the process behavior of various OAM frame;
Described OAM frame hardware processing module, for: hardware handles is carried out to connectivity checks frame: according to the local configuration of stream index numbering inquiry, and whether the information that more local configuration and frame carry is consistent, if inconsistent, illustrating that this connectivity checks frame is not the transmit leg from presetting, abandoning this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from the transmit leg preset, preserve timestamp when receiving this connectivity checks frame, this timestamp is used for detecting " losing connectivity alarm ", if the detection time of setting does not receive the connectivity checks frame preset after section again, then think to connect and occur interrupting, report and alarm information is to CPU.
On the basis of technique scheme, described OAM frame process behavior enquiry module comprises Ethernet OAM stream index configuration submodule, MPLSOAM stream index configuration submodule, IPBFD 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, for: the feature field extracting Ethernet OAM frame, and form keyword KEY, the stream index allocation table of configuration ethernet OAM frame, the stream index allocation table of Ethernet OAM frame is searched by keyword KEY, obtain OAM stream index numbering, and be sent to OAM frame processing configuration search index submodule;
Described MPLSOAM stream index configuration submodule, for: the feature field extracting MPLS-TPOAM frame, and form keyword KEY, the stream index allocation table of configuration MPLS-TPOAM frame, the stream index allocation table of MPLS-TPOAM frame is searched by keyword KEY, obtain MPLSOAM stream index numbering, and be sent to OAM frame processing configuration search index submodule;
Described IPBFD stream index configuration submodule, for: the feature field extracting IPBFD frame, and form keyword KEY, the stream index allocation table of configuration of IP BFD frame, the stream index allocation table of IPBFD frame is searched by keyword KEY, obtain IPBFD stream index numbering, and be sent to OAM frame processing configuration search index submodule;
Described OAM frame processing configuration search index submodule, for: configuration OAM process index assignment table, according to the OAM stream index numbering received, inquiry OAM process index assignment table, obtain OAM process index number, OAM process index number is sent to OAM frame processing configuration inquiry submodule;
Described OAM frame processing configuration inquiry submodule, for configuration OAM processing configuration table, OAM processing configuration table comprises the processing configuration of the processing configuration of connectivity checks frame, the processing configuration of loopback frame, the processing configuration of link tracing frame, the processing configuration of performance measurement frame and the frame of other types; According to the OAM processing configuration index number received, inquiry OAM processing configuration table, obtains corresponding OAM processing configuration, and according to this OAM processing configuration, OAM frame is forwarded, hardware handles or by plug-in FPGA process.
On the basis of technique scheme, described connectivity checks frame comprise IEEE802.1ag and ITU-TY.1731 definition Ethernet OAM in CCM frame, IETFRFC6428 definition MPLS-TPOAM in CC frame and IETFRFC5881 and 5883 definition IPBFD frame.
On the basis of technique scheme, the processing configuration of described connectivity checks frame is defined as following 4 types:
(1) when user is not enable or equipment does not support connectivity checks function, type 0 is defined as: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize connectivity checks function, Class1 is defined as: forward this connectivity checks frame to designated port;
(3) when equipment supports connectivity checks function, type 2 is defined as: hardware handles;
(4) when user is configured to MIP, be defined as type 3: normally forward, this connectivity checks frame do not processed;
The processing configuration of described loopback frame is for defining the process type of loopback message and response OAM frame, the processing configuration of link tracing frame is for defining the process type of path trace message and response OAM frame, the processing configuration of performance measurement frame is for defining the process type measuring class OAM frame, and the processing configuration of the frame of other types is then for the process behavior of the OAM frame outside the aforementioned function of definite division.
On the basis of technique scheme, the feature field of described Ethernet OAM frame is the input port of virtual LAN VLAN mark and this Ethernet OAM frame; The feature field of MPLS-TPOAM frame is the input port of MPLS-TP label and this MPLS-TPOAM frame; The feature field of IPBFD frame is the opposite end identification field that BFD protocol frame carries.
On the basis of technique scheme, when described OAM processing unit is used in the PTNCE equipment of 24 ports, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) the one OAM frame is the IPBFD frame from No. 1 port input, carries the first frame identification, according to the stream index allocation table of the first frame identification inquiry IPBFD frame, obtains first-class index number;
(2) the 2nd OAM frames are the IEEE802.1agCCM frame from No. 1 port input, carry a VLAN label, by the first port and VLAN label composition keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain second index number;
(3) the 3rd OAM frames are the MPLS-TPCC frame of the IETFRFC6428 definition from No. 1 port input, carry the first MPLS label, by the first MPLS label or the first MPLS label+the first port composition keyword, according to the stream index allocation table of keyword query MPLS-TPOAM frame, obtain the 3rd stream index numbering;
The Time delay measurement message frame of the ITU-TY.1731 protocol definition that (4) the 4th OAM frames input from No. 1 port, carry a VLAN label, by the first port and VLAN label composition keyword, according to the stream index allocation table of keyword query Ethernet OAM frame, obtain second index number;
(5) the 5th OAM frames are the ITU-TY.1731CCM frame from No. 2 port inputs, carry the 2nd VLAN label, by the second port 2 and the 2nd VLAN label composition 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-TPCC frame of the IETFRFC6428 definition from No. 2 port inputs, carry the second MPLS label, by the second MPLS label or the second MPLS label+the second port composition keyword, according to the stream index allocation table of keyword query MPLS-TPOAM frame, do not inquire any stream index information, this MPLS-TPCC frame is used as common Frame and forwards;
(7) the 7th OAM frames are the IPBFD frame from No. 1 port input, carry the second frame identification, according to the stream index allocation table of the second frame identification inquiry IPBFD frame, do not inquire stream index configuration information, if this IPBFD frame is single-hop BFD frame, then abandon this IPBFD frame; If this IPBFD frame is multi-hop BFD frame, then this IPBFD frame is used as common Frame and forwards;
There is following configuration in OAM processing configuration table:
First configuration entry: CCM/CC/BFD frame is configured to Second Type: hardware handles, other types frame is all configured to the first kind: be forwarded to designated port;
Second configuration entry: all types frame is all configured to the first kind: be forwarded to designated port;
3rd configuration entry: loopback frame and link tracing frame are configured to the first kind: be forwarded to designated port, other types frame are configured to the 3rd type: normally forward;
First configuration entry and the second configuration entry are that typical MEP configures, and the 3rd configuration entry is that typical IEEE802.1agMIP configures;
To first-class index number, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding second configuration entry, be then forwarded to designated port by an OAM frame;
To second index number, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 2nd OAM frame; 4th OAM frame is forwarded to designated port;
To the 3rd stream index numbering, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 3rd OAM frame;
To the 4th stream index numbering, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding first configuration entry, then carry out hardware handles to the 5th OAM frame;
Need the OAM frame carrying out hardware handles in corresponding second index number, the 3rd stream index numbering, the 4th stream index numbering, carry out unifying process in OAM frame hardware processing module, and according to stream index numbering, report and alarm information or specimens preserving state information.
Compared with prior art, advantage of the present invention is as follows:
The present invention is based on OAM stream index and come allocation process logical resource and storage resources, the resource of OAM processing unit can be saved, improve the flexibility of Resourse Distribute and the flexibility of software code realization.
Accompanying drawing explanation
Fig. 1 is the structured flowchart based on the OAM processing unit of stream index in the embodiment of the present invention.
Embodiment
Below in conjunction with drawings and the specific embodiments, the present invention is described in further detail.
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.
Stream index is numbered: OAM frame searches the stream index the obtained 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, stream index numbering 1, stream index numbering 2, stream index numbering 3 etc. can be expressed as.
The identification field of the IPBFD protocol frame that frame identification: IETFRFC5880 defines, according to the difference of identification field numerical value, can be expressed as frame identification 1, frame identification 2, frame identification 3 etc.
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-TPOAM frame, IPBFD frame: such as, the feature field of Ethernet OAM frame is the input port of VLAN (VirtualLocalAreaNetwork, VLAN) mark and this Ethernet OAM frame; The feature field of MPLS-TPOAM frame is the input port of MPLS-TP label and this MPLS-TPOAM frame; The feature field of IPBFD frame is the opposite end identification field that BFD protocol frame carries.
The stream index allocation table of the various OAM frames such as S2, configuration ethernet OAM frame, MPLS-TPOAM frame, IPBFD frame, the feature field based on various OAM frame searches corresponding stream index allocation table, obtains corresponding stream index numbering;
S3: configuration OAM process index assignment table, the stream index numbering inquiry OAM process index assignment table corresponding according to various OAM frame, obtains OAM process index number;
S4, configuration OAM processing configuration table, OAM processing configuration table comprises the processing configuration etc. of the processing configuration of connectivity checks frame, the processing configuration of loopback frame, the processing configuration of link tracing frame, the processing configuration of performance measurement frame and the frame of other types.
Connectivity checks frame comprise IEEE802.1ag and ITU-TY.1731 definition Ethernet OAM in CCM frame, IETFRFC6428 definition MPLS-TPOAM in CC frame and IETFRFC5881 and 5883 definition IPBFD frame.
The processing configuration of connectivity checks frame is defined as following 4 types:
(1) when user is not enable or equipment does not support connectivity checks function, type 0 is defined as: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize connectivity checks function, Class1 is defined as: forward this connectivity checks frame to designated port;
(3) when equipment supports connectivity checks function, type 2 can be defined as: hardware handles, forward step S5 to;
(4) when user is configured to MIP, be defined as type 3: normally forward, this connectivity checks frame do not processed.
The processing configuration of loopback frame is for defining the process type of loopback message and response OAM frame, the processing configuration of link tracing frame is for defining the process type of path trace message and response OAM frame, the processing configuration of performance measurement frame is for defining the process type measuring class OAM frame, and the processing configuration of the frame of other types is then for the process behavior of the OAM frame outside the aforementioned function of definite division.The definition of above-mentioned processing configuration and the processing configuration of connectivity checks frame similar, there is very large flexibility, and this configuration may be used for distinguishing MEP, MIP (MaintenancedomainIntermediatePoint, the Maintenance Intermediate Point) different disposal to OAM frame.
S5, hardware handles is carried out to connectivity checks frame: the local configuration of stream index numbering inquiry obtained according to step S2, and whether the information that more local configuration and frame carry is consistent, if inconsistent, illustrating that this connectivity checks frame is not the transmit leg from presetting, abandoning this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from the transmit leg preset, preserve timestamp when receiving this connectivity checks frame, this timestamp is used for detecting " losing connectivity alarm ", if the detection time of setting does not receive the connectivity checks frame preset after section again, then think to connect and occur interrupting, report and alarm information is to CPU.
When above-mentioned OAM processing method is used in PTNCE (CustomEdge, the user's incoming end) equipment of 24 ports, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) from the IPBFD frame (OAM frame 1) of No. 1 port input, carry frame identification 1, inquire about the stream index allocation table of IPBFD frame according to frame identification 1, obtain stream index numbering 1;
(2) from the IEEE802.1agCCM frame (OAM frame 2) of No. 1 port input, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, according to the stream index allocation table that keyword KEY inquires about Ethernet OAM frame, obtains stream index numbering 2;
(3) from the MPLS-TPCC frame (OAM frame 3) of the IETFRFC6428 definition of No. 1 port input, carry MPLS label 1, by MPLS label 1 or MPLS label 1+ port one composition keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS-TPOAM frame, obtains stream index numbering 3;
(4) from the Time delay measurement message frame (OAM frame 4) of the ITU-TY.1731 protocol definition of No. 1 port input, 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-TY.1731CCM frame (OAM frame 5) of No. 2 port inputs, 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-TPCC frame (OAM frame 6) of the IETFRFC6428 definition of No. 2 port inputs, 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-TPOAM frame, do not inquire any stream index information, this MPLS-TPCC frame is used as common Frame and forwards;
(7) from the IPBFD frame (OAM frame 7) of No. 1 port input, carry frame identification 2, inquire about the stream index allocation table of IPBFD frame according to frame identification 2, do not inquire stream index configuration information, if this IPBFD frame is single-hop BFD frame, then abandon this IPBFD frame; If this IPBFD frame is multi-hop BFD frame, then this IPBFD frame is used as common Frame and forwards.
There is following configuration in OAM processing configuration table:
Configuration entry 1: CCM/CC/BFD frame is configured to ' type 2 (hardware handles) ', is all configured to other types frame ' Class1 (being forwarded to designated port) ';
Configuration entry 2: all types frame is all 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) ', be configured to by other types frame ' type 3: normally forward ';
Configuration entry 1 and configuration entry 2 are that typical MEP configures, and configuration entry 3 is that typical IEEE802.1agMIP configures.
Convection current index number 1, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 2, be then forwarded to designated port by OAM frame 1;
Convection current index number 2, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 2; OAM frame 4 is forwarded to designated port;
Convection current index number 3, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 3;
Convection current index number 4, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 5;
Corresponding stream index is numbered in 2,3,4 the OAM frame needing to carry out hardware handles, carries out unifying process in OAM frame hardware processing module, and according to stream index numbering, report and alarm information or specimens preserving state information.
The OAM frame definition of separate sources and encapsulation can be OAM stream by the embodiment of the present invention, and adopt unified stream index to distinguish these OAM frames, and then be configured to OAM frame allocation process resource based on what flow OAM, and change the processing mode to OAM frame by the configuration changing stream index.
Shown in Figure 1, the embodiment of the present invention provides a kind of OAM processing unit based on stream index for realizing above-mentioned OAM processing method, comprise OAM frame identification module, OAM frame forwards behavior enquiry module, OAM frame process behavior enquiry module, OAM frame hardware processing module, wherein:
OAM frame identification module, for: identify the OAM frame that various agreement specifies, extract the feature field of the various OAM frames such as Ethernet OAM frame, MPLS-TPOAM frame, IPBFD frame, various OAM frame is sent to OAM frame and forwards behavior enquiry module; The feature field of Ethernet OAM frame is the input port of VLAN (VirtualLocalAreaNetwork, VLAN) mark and this Ethernet OAM frame; The feature field of MPLS-TPOAM frame is the input port of MPLS-TP label and this MPLS-TPOAM frame; The feature field of IPBFD frame is the opposite end identification field that BFD protocol frame carries;
OAM frame forwards behavior enquiry module, for: the OAM frame of reception is used as common Frame, determines its forwarding behavior, OAM frame is forwarded to OAM frame process behavior enquiry module;
OAM frame process behavior enquiry module: for: configuration flow index assignment table, OAM process index assignment table, OAM processing configuration table, according to the feature field of various OAM frame, in stream index allocation table, OAM process index assignment table, OAM processing configuration table, search the process behavior of various OAM frame;
OAM frame hardware processing module, for: hardware handles is carried out to connectivity checks frame: the local configuration of stream index numbering inquiry obtained according to step S2, and whether the information that more local configuration and frame carry is consistent, if inconsistent, illustrating that this connectivity checks frame is not the transmit leg from presetting, abandoning this connectivity checks frame or report and alarm information to CPU; If consistent, illustrate that this connectivity checks frame is from the transmit leg preset, preserve timestamp when receiving this connectivity checks frame, this timestamp is used for detecting " losing connectivity alarm ", if the detection time of setting does not receive the connectivity checks frame preset after section again, then think to connect and occur interrupting, report and alarm information is to CPU.
OAM frame process behavior enquiry module comprises Ethernet OAM stream index configuration submodule, MPLSOAM stream index configuration submodule, IPBFD stream index configuration submodule, OAM frame processing configuration search index submodule, OAM frame processing configuration inquiry submodule, wherein:
Ethernet OAM stream index configuration submodule, for: the feature field extracting Ethernet OAM frame, and form keyword KEY, the stream index allocation table of configuration ethernet OAM frame, the stream index allocation table of Ethernet OAM frame is searched by keyword KEY, obtain OAM stream index numbering, and be sent to OAM frame processing configuration search index submodule;
MPLSOAM stream index configuration submodule, for: the feature field extracting MPLS-TPOAM frame, and form keyword KEY, the stream index allocation table of configuration MPLS-TPOAM frame, the stream index allocation table of MPLS-TPOAM frame is searched by keyword KEY, obtain MPLSOAM stream index numbering, and be sent to OAM frame processing configuration search index submodule;
IPBFD stream index configuration submodule, for: the feature field extracting IPBFD frame, and form keyword KEY, the stream index allocation table of configuration of IP BFD frame, the stream index allocation table of IPBFD frame is searched by keyword KEY, obtain IPBFD stream index numbering, and be sent to OAM frame processing configuration search index submodule;
OAM frame processing configuration search index submodule, for: configuration OAM process index assignment table, according to the OAM stream index numbering received, inquiry OAM process index assignment table, obtain OAM process index number, OAM process index number is sent to OAM frame processing configuration inquiry submodule;
OAM frame processing configuration inquiry submodule, for configuration OAM processing configuration table, OAM processing configuration table comprises the processing configuration etc. of the processing configuration of connectivity checks frame, the processing configuration of loopback frame, the processing configuration of link tracing frame, the processing configuration of performance measurement frame and the frame of other types; According to the OAM processing configuration index number received, inquiry OAM processing configuration table, obtains corresponding OAM processing configuration, and according to this OAM processing configuration, OAM frame is forwarded, hardware handles or by plug-in FPGA process.
Connectivity checks frame comprise IEEE802.1ag and ITU-TY.1731 definition Ethernet OAM in CCM frame, IETFRFC6428 definition MPLS-TPOAM in CC frame and IETFRFC5881 and 5883 definition IPBFD frame.
The processing configuration of connectivity checks frame is defined as following 4 types:
(1) when user is not enable or equipment does not support connectivity checks function, type 0 is defined as: directly abandon this connectivity checks frame;
(2) when using plug-in FPGA to realize connectivity checks function, Class1 is defined as: forward this connectivity checks frame to designated port;
(3) when equipment supports connectivity checks function, type 2 can be defined as: hardware handles;
(4) when user is configured to MIP, be defined as type 3: normally forward, this connectivity checks frame do not processed.
The processing configuration of loopback frame is for defining the process type of loopback message and response OAM frame, the processing configuration of link tracing frame is for defining the process type of path trace message and response OAM frame, the processing configuration of performance measurement frame is for defining the process type measuring class OAM frame, and the processing configuration of the frame of other types is then for the process behavior of the OAM frame outside the aforementioned function of definite division.The definition of above-mentioned processing configuration and the processing configuration of connectivity checks frame similar, there is very large flexibility, and this configuration may be used for distinguish MEP, MIP to the different disposal of OAM frame.
When above-mentioned OAM processing method is used in PTNCE (CustomEdge, the user's incoming end) equipment of 24 ports, the numbering of 24 ports is followed successively by 1,2 ... 24, OAM processing procedure is as follows:
(1) from the IPBFD frame (OAM frame 1) of No. 1 port input, carry frame identification 1, inquire about the stream index allocation table of IPBFD frame according to frame identification 1, obtain stream index numbering 1;
(2) from the IEEE802.1agCCM frame (OAM frame 2) of No. 1 port input, carry VLAN label 1, port one and VLAN label 1 are formed keyword KEY, according to the stream index allocation table that keyword KEY inquires about Ethernet OAM frame, obtains stream index numbering 2;
(3) from the MPLS-TPCC frame (OAM frame 3) of the IETFRFC6428 definition of No. 1 port input, carry MPLS label 1, by MPLS label 1 or MPLS label 1+ port one composition keyword KEY, according to keyword KEY, the stream index allocation table of inquiry MPLS-TPOAM frame, obtains stream index numbering 3;
(4) from the Time delay measurement message frame (OAM frame 4) of the ITU-TY.1731 protocol definition of No. 1 port input, 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-TY.1731CCM frame (OAM frame 5) of No. 2 port inputs, 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-TPCC frame (OAM frame 6) of the IETFRFC6428 definition of No. 2 port inputs, 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-TPOAM frame, do not inquire any stream index information, this MPLS-TPCC frame is used as common Frame and forwards;
(7) from the IPBFD frame (OAM frame 7) of No. 1 port input, carry frame identification 2, inquire about the stream index allocation table of IPBFD frame according to frame identification 2, do not inquire stream index configuration information, if this IPBFD frame is single-hop BFD frame, then abandon this IPBFD frame; If this IPBFD frame is multi-hop BFD frame, then this IPBFD frame is used as common Frame and forwards.
There is following configuration in OAM processing configuration table:
Configuration entry 1: CCM/CC/BFD frame is configured to ' type 2 (hardware handles) ', is all configured to other types frame ' Class1 (being forwarded to designated port) ';
Configuration entry 2: all types frame is all 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) ', be configured to by other types frame ' type 3: normally forward ';
Configuration entry 1 and configuration entry 2 are that typical MEP configures, and configuration entry 3 is that typical IEEE802.1agMIP configures.
Convection current index number 1, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 2, be then forwarded to designated port by OAM frame 1;
Convection current index number 2, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 2; OAM frame 4 is forwarded to designated port;
Convection current index number 3, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 3;
Convection current index number 4, by inquiry OAM process index assignment table and OAM processing configuration table, corresponding configuration entry 1, then carry out hardware handles to OAM frame 5;
Corresponding stream index is numbered in 2,3,4 the OAM frame needing to carry out hardware handles, carries out unifying process in OAM frame hardware processing module, and according to stream index numbering, report and alarm information or specimens preserving state information.
According to application scenarios, if need to provide more support to the OAM frame of IEEE802.1ag and ITU-TY.1731 definition, then can distribute more stream index numbering for Ethernet OAM, namely in Ethernet OAM stream index allocation table, retain more stream index number entry.If need to provide more support to MPLS-TPBFDCC, then in MPLSOAM stream index allocation table, retain more correspondence banish and put entry.
In addition, the process of MPLS-TPBFDCC frame and the process of IPBFD frame similar, both difference can be shielded by stream index mechanism, unified process.Identification, the MPLS of various OAM frame forward, IP layer route, and two layers of bridge joint and the forwarding to the OAM frame not inquiring stream index are prior art.
Those skilled in the art can carry out various modifications and variations to the embodiment of the present invention, if these amendments and modification belong within the scope of the claims in the present invention and equivalent technologies thereof, then these revise and modification also within protection scope of the present invention.
The prior art that the content do not described in detail in specification is known to the skilled person.