A kind of implementation method of loopback
Technical field
The present invention relates to the network test technical field, be specifically related to a kind of implementation method of loopback.
Background technology
At present, ITU-T (standardization department of international telecommunication union telecommunication) and two groups of IEEE (IEEE) at the same time to Ethernet end to end OAM (operation management maintain) function study, wherein ITU-T in two pieces of documents Y.1730 and Y.71ehtoam to Ethernet end to end OAM(Operation Administration Maintenance) be described, IEEE in the 802.1ag document to Ethernet end to end OAM(Operation Administration Maintenance) be described.In the above-mentioned document, the thinking of two tissues is identical substantially, and the solution of OAM(Operation Administration Maintenance) is also very similar, has wherein comprised in the document of ITU-T alarm and performance part making the OAM system more perfect.
Industry is reached common understanding to basic OAM(Operation Administration Maintenance) at present, and promptly OAM(Operation Administration Maintenance) should comprise three parts: fault discovery automatically, failure proof and fault location.Here " fault " may be caused by link failure, loop and software misconfiguration etc.
LB (Loopback loopback) provides a kind of failure proof method.LB can realize the Connectivity Verification of point-to-point.When network breaks down, fault is further located by LB.
At present, the implementation method of the LB of industry definition mainly comprises following three steps:
Step 1, MEP (Maintenance End Point maintaining end point) send LB message.
MEP can send the packet of LB message by order line transmitting order to lower levels or MEP control MIB (management information bank).The LB message frame adopts through specifically defined multicast MAC (medium access control) address.This sequence number that sends bag keeps 5s at least after this bag sends, MEP waits for the response message of opposite end, i.e. LBR (LB response) message in this gap.
The every other MEP that is in same MEG (Maintenance Entity) on step 2, the network receives LB message, structure LBR message, and send.
MEP receives LB message, and check whether the validity of this message and the MEGIDTLV (maintenance entity group id TLV) in this message packets mate with the Configuration Values that receives bridge port, if this message is effective and MEGID TLV and the Configuration Values coupling that receives bridge port, then each territory in the LB message all is copied in the LBR message, and source MAC in the LBR message and target MAC (Media Access Control) address are exchanged, operation code field is become LBR from LBM.
All TLV in the LB message comprise the TLV that identifies the LB sender of the message like this, have all been suffered by the complete LBR message that is mapped to, and except source MAC, the MEP that sends LBR message does not need to provide any other information to the MEP that sends LB message.
The MEP of step 3, transmission LB message receives LBR message.
The MEP that sends LB message judges whether to receive the LBR message of normally returning in the sequence number retention time of appointment, if received the LBR message of normally returning, then the information of each the far-end MEP that stores in the MIB storehouse according to this MEP again judges whether that all far-end MEP have sent LBR message, if, then this LB success; All send LBR message if not all far-end MEP, determined this LB failure; In the sequence number retention time of appointment, do not receive the LBR message of normally returning if send the MEP of LB message, determine this LB failure.After determining this LB failure, the MEP that sends LB message can re-construct LB message and test, or directly there is fault in report network.
Because MIP (Maintenance Intermediate Point Maintenance Intermediate Point) does not have MIPID (MIP identifier) in the prior art, so, in above-mentioned LB method, the loopback for specifying MIP to order is merely able to realize by the MAC Address of loopback source MAC and loopback point of destination.Therefore, send the MEP of LB message need be in LB message the direct MAC Address of appointment LB purpose maintenance point, or obtain the MAC Address of LB purpose maintenance point by additive method, be filled up to then in the LB message.
Because the OAM(Operation Administration Maintenance) of Ethernet is separate, the MAC Address that obtains loopback purpose maintenance point by CC (continuity detection) and LT methods such as (link tracings) can make the OAM(Operation Administration Maintenance) generation interdepend, so, can not obtain the MAC Address of LB purpose maintenance point by methods such as CC, LT, and also not have definition to make each MEP can learn the method for the MAC Address of all MIP on the network in the prior art.Therefore, the implementation method of LB can not realize the LB function at all MP in the network in the prior art, has the realization limitation.
Summary of the invention
The objective of the invention is to, a kind of implementation method of loopback is provided,,, improve the purpose of loop back method practicality to realize improving the loop fuction of Ethernet OAM solution by the identification information of each maintenance point in the network is set.
For achieving the above object, the implementation method of a kind of loopback provided by the invention is used for Ethernet, comprising:
A, the identification information of each maintenance point in the network is set;
B, maintaining end point are carried on the identification information of loopback purpose maintenance point in the multicast loopback message, send;
C, receive each maintenance point of described loopback message, if with described loopback message in the Maintenance Point Identification information of carrying send loopback response message coupling, then with the source address of described loopback message as destination address, send the loopback response message.Described maintenance point is: Maintenance Intermediate Point, or maintaining end point and Maintenance Intermediate Point.
The identification information of described each maintenance point has nothing in common with each other.
Described step b specifically comprises:
In loopback message, increase the TLV field;
Described maintaining end point is carried on the identification information of loopback purpose maintenance point in the TLV field of described increase, and sends described multicast loopback message.
Described step c specifically comprises:
When the Maintenance Point Identification information that the maintenance point that receives described multicast loopback message carries is identical, determine that it is loopback purpose maintenance point in the Maintenance Point Identification information of determining himself and described multicast loopback message;
Described loopback purpose maintenance point produces the loopback response message, and its address information is carried in the described loopback response message is sent to described maintaining end point.
Described step c also comprises:
When inequality the and maintenance point that receive described multicast loopback message of the Maintenance Point Identification information that the maintenance point that receives described multicast loopback message carries is Maintenance Intermediate Point, continue to transmit its described multicast loopback message that receives in the Maintenance Point Identification information of determining himself and described multicast loopback message.
Described step c also comprises:
When the source address information that the maintenance point that receives described multicast loopback message carries is identical, determine that it is the maintaining end point of the described loopback message of transmission in the address information of determining himself and described multicast loopback message, abandon described multicast loopback message.
Described method also comprises:
The maintaining end point of described transmission multicast loopback message judges whether to receive the loopback response message in the interval at the fixed time;
If described maintaining end point receives the loopback response message in the interval at the fixed time, determine this loopback success;
If described maintaining end point does not receive the loopback response message in the interval at the fixed time, determine this loopback failure.
Described maintaining end point reports fault message or resends described loopback message when determining this loopback failure.
Described address information comprises: Media Access Control address information.
Description by technique scheme as can be known, the invention provides a kind of new mechanism of loopback, by the identification information of each maintenance point in the network is set, MEP is when sending the multicast loopback message, the identification information of loopback purpose maintenance point is carried in the multicast loopback message, avoided MEP when sending loopback message, need in this message, write the process of loopback purpose maintenance point address information, make loop back method provided by the invention have practicality, make the present invention realize loopback to certain scheduled maintenance point targetedly, and method is simple, easily realization; Thereby realized improving the loop fuction of Ethernet OAM solution by technical scheme provided by the invention, improved the purpose of loop back method practicality.
Embodiment
Core of the present invention is: the identification information of each maintenance point in the network is set, and maintaining end point is carried on the identification information of loopback purpose maintenance point in the multicast loopback message, sends; Each maintenance point that receives described loopback message sends the loopback response message according to the Maintenance Point Identification information of carrying in the described loopback message.
Based on core concept of the present invention technical scheme provided by the invention is further described below.
The present invention at first needs to be provided with the identification information of each maintenance point in the network, as be that each MIP in the network distributes MPID (Maintenance Point Identification information), or be that all MP in the network such as MIP, MEP distribute a MPID, and the same the whole network with MEPID of this MPID is unique.
After the MPID of each MP was set, MEP need be carried on the MPID of loopback destination node in this multicast LB message, and send this multicast LB message when sending multicast LB message.
MEP with the MPID of loopback purpose maintenance point be carried in the LB message method can for: in LB message, add a TLV field, the MPID of loopback purpose maintenance point be carried in the TLV field of adding in LB message.
MEP is sequence number of each multicast LB distribution of messages, and this sequence number is as the sign of identification LBR message, and MEP is when sending multicast LB message, and correspondence starts a timer, and the timing length of this timer is configurable, as is set to 5s (second) etc.MEP waits in the timing length of timer and receives the LBR message that loopback purpose maintenance point returns.
MEP is after sending multicast LB message, whether the MPID of the loopback purpose maintenance point that each maintenance point that receives this multicast LB message all relatively carries in this multicast LB message in the network is identical with the MPID of himself, if it is identical, then this maintenance point is a loopback purpose maintenance point, loopback purpose maintenance point checks whether the validity of this multicast LB message and the MEG ID TLV in this multicast LB message mate with the Configuration Values that receives bridge port, if this LB message is effective and MEG ID TLV and the Configuration Values coupling that receives bridge port, generate a LBR message according to loaded information in the multicast LB message, and be sent to the MEP that sends this multicast LB message.
Loopback purpose maintenance point generate LBR message process can for: loopback purpose maintenance point all is copied into each territory in its multicast LB message that receives in the LBR message, and source MAC in the LBR message and target MAC (Media Access Control) address exchanged, the mac address information of this maintenance point is write source MAC in the LBR frame, and operation code field becomes LBR from LBM.
All TLV in the LB message packets comprise that the TLV of this multicast of sign LB sender of the message MEP has been suffered by the complete LBR message that is mapped to like this, and except source MAC, the maintenance point that sends LBR message does not need to provide any other information to MEP.
If the MPID of the loopback purpose maintenance point that the maintenance point that receives this multicast LB message carries in determining this multicast LB message is inequality with the MPID that himself disposes, determine that then this maintenance point is not a loopback purpose maintenance point, need to continue to judge whether the mac address information of the source MAC address information and this maintenance point self of carrying in this multicast LB message is identical, if it is identical, then determine this maintenance point for sending the MEP of this multicast LB message, this maintenance point abandons this multicast LB message; If source MAC address information of carrying in the multicast LB message and the mac address information of this maintenance point self are inequality, determine that then this maintenance point is not for sending the MEP of multicast LB message, be MIP, this MIP does not receive multicast LB message to it and carries out any processing, and continues to transmit this multicast LB message.
In the sequence number retention time of appointment, receive the LBR message of normally returning if send the MEP of this multicast LB message, this MEP checks whether the validity of LBR message and the MEG IDTLV in this LBR packet mate with the Configuration Values that receives bridge port, if this LBR is effective and MEG ID TLV and the Configuration Values coupling that receives bridge port, then this LB success; If timer expiry up to the sequence number retention time of this appointment, the MEP that sends LB message does not still receive the LBR message of normally returning, then determine this LB failure, MEP can re-construct multicast LB message and carry out loopback test, or directly there is fault in report network.
Though described the present invention by embodiment, those of ordinary skills know, the present invention has many distortion and variation and do not break away from spirit of the present invention, and the claim of application documents of the present invention comprises these distortion and variation.