Background technology
Maintenance field MD (Maintenance Domain) is the involved network of 802.1ag fault management capability or certain part in the network, define by a series of territory Service Access Point DSAP (Domain ServiceAccess Point), maintenance field MD distinguishes by the MD name.Wherein Service Access Point DSAP in territory is the boundary point (as certain port of bridge device) of maintenance field, outside to the territory provides connectivity services, also may there be intermediary service access point ISAP (Intermediate Service AccessPoint) in maintenance field inside, and it is the intermediate node from a DSAP to another DSAP.
As shown in Figure 1, provided the example of a maintenance field, wherein had 5 bridge devices, the zone (grey color part) that 6 DSAP (a, b, c, d, e, f) cover is exactly a maintenance field, and there are a plurality of ISAP in the centre.
Can configure a plurality of Service Instances (as professional available DSAP) in the maintenance field as required at a certain user, a Service Instance is made up of a plurality of DSAP, and can identify by an ID, a Service Instance has total some attributes (as bandwidth).
The connectionless alliance that specifies a Service Instance also just to set up between those DSAP concerns, this relation is called Maintenance Association MA (Maintenance Association), the end points of Maintenance Association is called MEP (Maintenance Association End Point), the intermediate node of the Maintenance Association that relates to is called MIP (Maintenance Association Intermediate Point), MEP is positioned at corresponding D SAP place, and MIP is positioned at corresponding ISAP place.MA distinguishes by unique MA name in whole maintenance field, and the MA name is with safeguarding that domain name has formed the unique sign of Service Instance, and this sign need be carried in related news, to distinguish other Service Instance.
As shown in Figure 2, DSAP point a, c, e, f are configured to the DSAP that user C1 can use, thereby have set up a relevant Service Instance and the corresponding Maintenance Association MA of user C1, and two other DSAP b and d do not use, and do not belong to this Service Instance and MA.
As shown in Figure 3, the Maintenance Association MA from user C1 angle is seen is made of four DSAP nodes that belong to a Service Instance.
As shown in Figure 4,802.1ag ETHOAM (Operations, Administration andMaintenance of Ethernet, the Operations, Administration and Maintenance of Ethernet) fault recognition function (MacPing, carry out fault recognition according to the Mac address) realize by loopback message LBM (Loopback Message) message, LBM message is initiated by the MEP node, and the destination is exactly MEP or MIP.Middle MIP node just continues to transmit this message in network when confirming that purpose Mac is not oneself, if purpose MP (MEP or MIP) confirms that the purpose Mac of LBM message is oneself, this LBM message and structure loopback response LBR (Loopback Response) message then terminate.The MEP node of initiating the LBM message is received the flow process of finishing a whole fault recognition behind the legal LBR message.
Initiate the MEP node of Mac Ping, calculate parameters such as packet loss, time delay, delay variation according to the additional parameter that carries in the LBR message.
Based on the fault recognition function (Mac Ping) of IEEE 802.1AG, it mainly is to be limited in the scope of Maintenance Association to carry out Mac Ping, has only the MEP point can initiate Mac Ping, and the destination can be MIP or other MEP in same MA.
Existing Mac Ping function based on IEEE 802.1AG has limited the use of user for Mac Ping.
If operator for a double layer network, the attendant need be to initiating the other equipment of MacPing from an equipment, to confirm whether there is fault between the two or looks over current network state, when learning about parameters such as packet loss, time delay, delay variation, it need on every equipment all dispose MD, MA, the information such as MEP, MIP of IEEE 802.1AG protocol definition, relative complex and be inconvenient to use.
And, in the above-mentioned various management information of configuration, the situation that the user very likely mismatches, consequently connectedness is good between the in-house facility, on the contrary because the reason of configuration causes obstructed situation to occur.
Embodiment
For making the purpose, technical solutions and advantages of the present invention clearer, the present invention is described in detail below in conjunction with accompanying drawing.
Embodiments of the invention are two-layer network device to be utilized in same virtual LAN VLAN by message can reach two layers of paths initiation Mac Ping.In same virtual LAN VLAN,, just can use Mac Ping function as long as there are two layers of path that can reach.Two layers of forwarding based on VLAN, use is more in Metro Ethernet (Metro Ethernet) network at present, and its advantage is that forwarding speed is fast, does not need the processing by upper-layer protocol.
Embodiments of the invention can reach two layers of paths initiation Mac Ping by utilizing in same virtual LAN VLAN, the Mac Ping function that breaks away from IEEE 802.1ag agreement is provided, the equipment of transmitting the degree of convenience of the fault location of user in double layer network will be greatly facilitated, as long as can use in same VLAN.
Describe specific embodiments of the invention below in detail.
The function of initiating Mac Ping in same VLAN of the present invention can realize based on LBM and the LBR message of IEEE 802.1ag.Its message format as shown in Figure 5.
Because adopted LBM and the LBR message format of IEEE802.1AG, can pass through the maintenance field MD of IEEE802.1AG smoothly in order to make message, then adopt limit priority for filling out 7 at the MD of message Level.
One, can carry out following handling process for the two-layer network device of initiating Mac Ping:
(1) at first construct the LBM message on port, the mode of filling in of corresponding each field domain is as follows during structure LBM:
1) Destination MAC address: the Mac address of filling in Mac Ping destination interface;
2) Source MAC address: fill in and initiate Mac Ping port Mac address;
3) 802.1Q or 802.1ad tag EtherType: Connectivity Fault Management (ConnectivityFault Management, CFM) the EthType type of message (comprising LBM and LBR message), not definition of temporary transient Draft;
4)802.1Q?or?802.1ad?tag:Vlan?ID;
5) MD Level: fill in 7;
6) Version: fill out 0, version is not checked in expression;
7) OpCode: fill in 3, expression LBM message;
8) Flags: fill out 0, this field is not checked in expression;
9) First TLV Offset: the deviant of filling in actual type lengths values (tlv);
10) Transaction Identifier/Sequence Number: initiate Mac Ping end since 1, LBM message of every transmission adds 1;
11) Optional LBM/LBR TLVs: carry Data TLV.
(2) after message is constructed, transmit according to Mac and to transmit,, then this LBM message is broadcasted in this VLAN if the Mac forwarding-table item does not exist.Initiate the network equipment of Mac Ping and when sending the LBM message, in the LBM message, stamp timestamp (timestamp 1).The form of LBM message and LBR message are roughly the same, and this timestamp can be beaten on the position of the timestamp 1 of as shown in Figure 7 message.
Two, carry out following handling process for the two-layer equipment that receives the LBM message:
(1) the purpose Mac address field of taking-up message, compare with the Mac address of the port, if it is inequality, then continue to walk original two layers of forwarding process, identical if (being the purpose network equipment) then take out the EthType (ethernet type) of message, if not the CFM message, then message is continued to walk original three layers of forwarding process, if CFM message, the expression message is legal, then stamp timestamp (being timestamp 2), and structure LBR message is responded in the position of the timestamp as shown in Figure 72 of the LBM message that receives.
Being constructed as follows of LBR message:
1) Destination MAC address: the Mac address, source (Source MACaddress) of inserting the LBM message;
2) Source MAC address: fill in the port Mac address;
3) the EthType type of 802.1Q or 802.1ad tag EtherType:CFM message, not definition of temporary transient Draft;
4)802.1Q?or?802.1ad?tag:Vlan?ID;
5) MD Level: fill in 7;
6) Version: fill out 0;
7) OpCode: fill in 3;
8) Flags: fill out 0;
9) First TLV Offset: the deviant of filling in actual TLV;
10) Transaction Ident ifier/Sequence Number: the Transact ion Identifier/Sequence Number territory of inserting the LBM message;
11) Optional LBM/LBR TLVs: the TLV exact copy of LBM message is arrived this.
(2) after message is constructed, transmit according to Mac and to transmit,, then this LBR message is broadcasted in this VLAN if the Mac forwarding-table item does not exist.Timestamp (timestamp 3) is stamped in purpose network equipment position at as shown in Figure 7 timestamp 3 when sending the LBR message.
Three, the two-layer equipment that receives the LBR message can carry out following processing:
(1) the purpose Mac address field of taking-up message, compare with the Mac address of the port, if it is inequality, then continue to walk original two layers of forwarding process, if it is identical then take out the EthType of message, if not the CFM message, then message is continued to walk original three layers of forwarding process, if CFM message, then this equipment that receives the initiation Mac Ping of LBR message is stamped timestamp (timestamp 4) on the position of the timestamp as shown in Figure 74 of the LBR message that receives, and proceeds the judgement of Mac Ping.
(2) take out the LBR sequence number of message and local LBM sequence number of message of preserving compares, if identical then represent legal message, if inequality then represent invalid packet.Stamp timestamp 4 on the position of the timestamp 4 of the LBR message that also can after the judgement message is legal, receive again in the present embodiment.
(3) if the legal LBR message of identical expression, then take-off time stabs, and calculates parameters such as frame loss rate, time delay, shake according to computing formula.
The form that has the LBR message of timestamp 1, timestamp 2, timestamp 3 and 4 four timestamps of timestamp can be referring to Fig. 7.The time that the corresponding time-write interval stabs: when initiating Ping bridge device end (can be described as the A end) transmission LBM message, stamp timestamp in the position of timestamp 1.Ping purpose bridge device end (can claim the B end) receives the legal back of LBM judgement and stamps timestamp in the position of timestamp 2, respond the LBR message, above-mentioned two field exact copy of LBM message in the LBR message, are sent the LBR message and go out equipment, stamp timestamp in the position of timestamp 3.After receiving the LBR message, the A end stamps timestamp in the position of timestamp 4.According to above-mentioned 4 timestamps that contain in the LBR message shown in Figure 7 that obtains at last, just can calculation delay, parameter such as shake.
LOF (Frame Loss:FL): refer to up UNI (User Network Interface: User to NetworkInterface) send the different of number of frames and descending UNI received frame quantity;
Frame time delay (Frame Delay:FD): comprise loopback delay and One Way Delay, loopback delay refers to that transmitting terminal sends first bit of Frame and time interval of receiving last bit of looping back data frame, and One Way Delay refers to that the transmitting terminal data send the interval of time and receiving terminal Data Receiving time;
Frame delay variation parameter (FDV): with a kind of time delay situation of change of COS business data frame.
Present embodiment utilizes following formula to calculate parameters such as frame loss rate, time delay, shake:
1) frame loss rate=| CT2-CT1|-|CR2-CR1|, wherein CT represents the correct OAM (Operations that sends of up UNI, Administration and Maintenance: frame number Operations, Administration and Maintenance), CR are represented the OAM frame number that descending UNI correctly receives; | CT2-CT1| represents the Operations, Administration and Maintenance OAM frame number that up User Network Interface sends in a period of time; | CR2-CR1| represents the Operations, Administration and Maintenance OAM frame number that the downlink user network interface is received in this section period.This Several Parameters is the data of taking out from driving.
2) time delay=(| timestamp 4-timestamp 1|-| timestamp 3-timestamp 2|)/2.Wherein timestamp 1 expression is the timestamp that the equipment of initiating Mac Ping is stamped when sending message; The timestamp 2 expression purpose network equipments receive the timestamp of stamping behind the message that Mac Ping initiating equipment sends; The timestamp of stamping when the timestamp 3 expression purpose network equipments send back message using; The equipment that Mac Ping is initiated in timestamp 4 expressions receives the timestamp of stamping behind the back message using.
3) Dou Dong computational methods: calculate one group of time delay, the difference according to a back time delay and previous time delay draws jitter parameter.Such as: time delay 1, time delay 2, time delay 3, time delay 4 expressions are by one group of continuous before and after time time delay;
Average jitter=[(time delay 2-time delay 1)+(time delay 3-time delay 2)+(time delay 4-time delay 3)]/3 then.
Also there are other modification that is easy to realize and equivalents in the computing formula of the frame loss rate that the present invention is not limited to as above provide, time delay, jitter parameter.
As above as seen, the method for the initiation Mac Ping of present embodiment has been simplified the configuration of Mac Ping, does not need to dispose complicated MD, MA, information such as MEP, MIP and can use two layers of Mac Ping.
The present invention that above embodiment is based on the LBM of IEEE 802.1ag and LBR message initiates the realization of Mac Ping function in same VLAN, but the present invention is to message format and unrestricted, can also adopt other multiple message formats, it is the message that the present invention can adopt extended formatting fully, as long as in message, put down in writing timestamp 1 as above, timestamp 2, timestamp 3 and timestamp 4, just can be implemented in the Mac Ping that can reach two layers of path in the same VLAN equally, thereby can check network state, realize the affirmation of network failure.
Realize as above system's (see figure 6) of the initiation Mac Ping of embodiment, comprising:
Initiate the equipment (or claiming to initiate Ping bridge device end) of Mac Ping, be used in same virtual LAN VLAN, utilizing to reach two layers of paths initiation Mac Ping by message;
Destination device (or claiming Ping purpose bridge device end) is used to receive the message that the equipment of initiating Mac Ping sends, and structure back message using and transmit or broadcast.
The equipment of described initiation Mac Ping also comprises: receiver module is used to receive described back message using; The fault recognition module is used to calculate frame loss rate, and utilizes parameters such as the timestamp information computing network time delay of carrying in the back message using of this reception, shake, to carry out the fault recognition of network.
Above embodiment only is used to illustrate the present invention, but not is used to limit the present invention.Within the spirit and principles in the present invention all, any modification of being made, be equal to replacement, improvement etc., all should be included within protection scope of the present invention.