Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making all other embodiment that obtain under the creative work prerequisite.
For the advantage that makes technical solution of the present invention is clearer, below in conjunction with drawings and Examples the present invention is elaborated.
Embodiment one
Present embodiment provides the method for OAM conversion between a kind of MPLS and the MPLS-TP, and as shown in Figure 2, described method comprises:
201, receive the MPLS-TP OAM message that the MPLS-TP node sends, comprise LSP label, GAL (General Alert Label in the described MPLS-TP OAM message, general alarm label) field, ACH (Associated Channel Header, the association channel head) field and MPLS-TP OAM PDU (Packet Data Unit, Packet Data Unit) field.Wherein, described MPLS-TP OAM message can be MPLS-TP LSP Ping message or MPLS-TP BFD message etc., and described MPLS-TP OAM PDU field can be MPLS-TP LSP Ping PDU field or MPLS-TP BFD PDU field etc.
202, obtain first transitional information according to described MPLS-TP OAM message, wherein, described first transitional information comprises IP source address and UDP source port number.
Wherein, describedly obtain first transitional information according to described MPLS-TP OAM message and comprise:
According to described LSP label, in the first default administration information list, find out described first transitional information;
Perhaps
By extracting described first transitional information among the TLV (Type/Length/Value, type) of described MPLS-TP OAM message.
203, according to described first transitional information described MPLS-TP OAM message is converted to MPLS OAM message.
204, described MPLS OAM message is sent to the MPLS node.
Optionally, described method can also comprise:
Receive the MPLS OAM message that the MPLS node sends, comprise LSP label, IP/UDP heading and MPLS OAM PDU field in the described MPLS OAM message;
Obtain second transitional information according to described MPLS OAM message, wherein, described second transitional information comprises safeguards boundary point sign MEP ID;
According to described second transitional information described MPLS OAM message is converted to MPLS-TP OAM message;
Described MPLS-TP OAM message is sent to the MPLS-TP node.
Wherein, describedly obtain second transitional information according to described MPLS OAM message and comprise:
According to described LSP label, in the second default administration information list, find out described second transitional information;
Perhaps
By extracting described second transitional information among the TLV of described MPLS OAM message.
The method of OAM conversion between embodiment of the invention MPLS and the MPLS-TP, receive the MPLS-TP OAM message that the MPLS-TP node sends, obtain first transitional information according to described MPLS-TP OAM message, and according to described first transitional information described MPLS-TP OAM message is converted to MPLS OAM message, described MPLS OAM message is sent to the MPLS node.Compared with prior art, when MPLS and MPLS-TP coexisted simultaneously, the MPLS-TP OAM message that the MPLS-TP node can be sent to the MPLS node was converted to MPLS OAM message, thereby realized the OAM conversion between MPLS and the MPLS-TP.
Embodiment two
Present embodiment provides the method for OAM conversion between a kind of MPLS and the MPLS-TP, interconnected scene between MPLS and the MPLS-TP as shown in Figure 1, under this scene, need to realize the OAM conversion between MPLS and the MPLS-TP, in the present embodiment, to realize between MPLS and the MPLS-TP that LSP Ping (Packet Internet Groper, the Internet packets survey meter) is converted to example.
As shown in Figure 3, node A is the MPLS-TP node, and Node B is IWF (Inter-Working Function, interoperability function) node, and node C is the MPLS node.Node A is LSP Ping operate source end, and node C is LSPPing operation Su Duan, need the LSP 1 between node A and the node C be detected.The node that the interoperability functional node is namely changed the OAM message.
The method of OAM conversion comprises between described MPLS and the MPLS-TP:
301, node A sends MPLS-TP LSP Ping request message to Node B, comprises LSP Label (label), GAL, ACH and the MPLS-TP LSP Ping PDU of detected LSP in this MPLS-TP LSP Ping request message.
Wherein, the encapsulation format of MPLS-TP LSP Ping request message is as shown in table 1.
Table 1
In table 1, implication or value that each field is represented are exemplified below:
LSP Label (label) is detected LSP 1;
GAL field value is 13;
Version (version) field is set to 0;
Reserved is reserved field;
Channel Type (channel type) is set to LSP Ping Channel Type;
ACH (Associated Channel Header, the association channel head) the TLVs field is used for carrying expansion TLV, in MPLS-TP LSP Ping request message, ACH TLVs comprises IPv4Source Address (source address) TLV or IPv6 Source Address TLV, also comprise MEP (Maintenance End Point, safeguard boundary point) ID TLV or MIP (Maintenance Intermediate Point, Maintenance Intermediate Point) ID TLV.
Wherein, the encapsulation format of the LSP Ping PDU in the table 1 is as shown in table 2.
Table 2
In table 2, implication or value that each field is represented are exemplified below:
Version number (Version Number) field value is 1;
Global mark (Global Flags) field 1bit value is 1, and sign place end needs verification FEC (Forward Equivalence Class, forwarding equivalence class) Stack (stack);
Type of message (Message Type) field value is 1 expression request (Echo Request) message, and value is 2 expression response (Echo Reply) messages;
Response modes (Reply Mode) field value is that 1 expression does not respond, value is that 2 expressions are by IPv4UDP (User Datagram Protocol, User Datagram Protoco (UDP)) message or IPv6UDP message response, value is IPv4UDP message or the IPv6UDP message response of 3 expressions by putting Router Alert mark, and value is that 4 expressions are by the response of application layer control channel;
Return code (Return Code) with return subcode (Return Subcode) and arranged to source end announcement error message by the place end;
Send handle (Sender ' s Handle) and arranged by the source end, Su Duan does not make an amendment this field in the request message and directly copies in the response message;
Sequence number (Sequence Number) is arranged by the source end, for detection of message dropping;
Send time stamp (TimeStamp Sent) and arranged by the source end, the time that the expression request message sends, receive time stamp (TimeStamp Received) and arranged by the place end, the time that the expression request message receives;
The TLVs field can be carried other extend information, wherein, most important one is Target FEC Stack (purpose FEC stack) TLV, this TLV is used for the detected data surface type of expression, the data surface type can be LDP (Label Distribution Protocol, tag distribution protocol) LSP, RSVP-TE (Resource Reservation Protocol-Traffic Engineering is based on the RSVP of traffic engineering) LSP, " FEC 128 " PW, " FEC 129 " PW etc.
In this MPLS-TP LSP Ping request message, ACH TLVs can comprise source address (Source Address), and MEP ID TLV or MIP ID TLV.In the present embodiment, source address TLV is set to the IP address of node A, comprises MEP ID in ACH TLVs, and MEP ID is set to node C, and the response modes among the LSP Ping PDU is set to 4, and purpose FEC stack is set to static LSP FEC stack.Optionally, also can carry MIP ID in ACHTLVs, MIP ID is set to Node B.
Further, can set in advance first administration information list in the Node B, store the corresponding relation of LSP label and IP source address, UDP source port number, purpose FEC stack and response modes and other relevant information in this first administration information list.
Perhaps, can carry IP source address, UDP source port number, purpose FEC stack and response modes among the ACH TLVs of described MPLS-TP LSP Ping request message.
In the ACH TLVs of MPLS-TP LSP Ping request message, the form of IP source address TLV is as shown in table 3:
Table 3
The form of UDP source port number TLV is as shown in table 4:
Table 4
The form of response modes TLV is as shown in table 5:
Table 5
Further, after LSP between node A and node C sets up, Node B will record the relevant information of LSP chain of command signaling, for example: LSP Label, purpose FEC stack etc., after Node B receives MPLS-TP LSPPing request message, information such as the LSP Label in this PLS-TP LSP Ping request message, purpose FEC stack are compared with information such as the LSP Label that has recorded, purpose FEC stacks respectively, if the relevant information in the MPLS-TP LSP Ping request message is consistent with the relevant information that Node B has recorded, show that data surface is consistent with chain of command.
302, Node B is obtained first transitional information according to described MPLS-TP LSP Ping request message.
Particularly, Node B can adopt following dual mode to obtain first transitional information:
Mode 1: according to described LSP label, in the first default administration information list, find out described first transitional information.
Mode 2: by extracting described first transitional information among the ACH TLVs of described MPLS-TP LSP Ping request message.
Wherein, described first transitional information comprises: IP source address, UDP source port number, purpose FEC stack and response modes.
In the present embodiment, first transitional information that gets access to is: IP source address is the IP address of node A, and the UDP source port number is a preset value; Purpose FEC stack and response modes are set to a preset value, and wherein, purpose FEC stack can be set to RSVP-TE, and response modes can be set to the message response by IPv4 UDP, but is not limited only to this.
303, Node B is converted to MPLS LSP Ping request message according to described first transitional information with this MPLS-TP LSP Ping request message.
Wherein, the encapsulation format of MPLS LSP Ping request message is as shown in table 6.
LSP Label |
IP |
UDP |
LSP Ping PDU |
Table 6
As shown in table 6, LSP Ping PDU is encapsulated as the UDP/IP message, the label that adds detected LSP then can form MPLS LSP Ping request message.
Wherein, be preset with in the Node B and transmit, during transmitting, this is provided with LSP Label in the MPLS-TP LSP Ping request message and the corresponding relation of the LSP Label in the MPLS LSP Ping request message, LSP Label according in the MPLS-TP LSP Ping request message transmits the LSP Label that can find in the MPLS LSPPing request message by this.
Wherein, the encapsulation format of the LSP Ping PDU in the table 6 is as shown in table 2.
Describedly according to described first transitional information this MPLS-TP LSP Ping request message is converted to MPLS LSPPing request message and specifically can comprises:
GAL field in this MPLS-TP LSP Ping request message and ACH field are removed;
According to 302 first transitional informations that obtain, in this MPLS-TP LSP Ping request message, add the IP/UDP heading;
Wherein, described IP/UDP heading comprises IP source address, IP destination address, UDP source port number and UDP destination slogan.Wherein, IP source address and UDP source port number obtain by first transitional information, and IP destination address and UDP destination slogan are arranged automatically by Node B.Wherein, the form of IP destination address is 127/8, described 127/8 expression with 127 take the lead, three sections IP addresses that are 8, back, in the present embodiment, in IP address field 127.0.0.0-127.255.255.255, choose except 127.0.0.0 and 127.255.255.255 unappropriated IP address as the IP destination address, because message is transmitted according to LSP Label, this address can be any about definite value; UDP destination slogan is 3503.
The purpose FEC stack that encapsulates in the LSP Ping PDU field with MPLS-TP LSP Ping request message replaces with the purpose FEC stack in first transitional information, the response modes that encapsulates in the LSP Ping PDU field with MPLS-TP LSP Ping request message replaces with the response modes in first transitional information, generates MPLS LSP Ping request message.
304, Node B is sent to node C with this MPLS LSP Ping request message.
When node C receives this MPLS LSP Ping request message, can decision node A with node C between LSP be what be communicated with.
305, node C generates MPLS LSP Ping response message according to this MPLS LSP Ping request message.
Wherein, comprise LSP label, IP/UDP heading and MPLSLSP Ping PDU field in the described MPLS LSP Ping response message.
Particularly, node C is according to the correctness of the purpose FEC stack verification LSP in this MPLS LSP Ping request message, and the return code in the MPLS LSP Ping response message is set and returns subcode field according to the result of verification.
Wherein, in this MPLS LSP Ping response message, transmission handle, sequence number, transmission time stamp in the MPLS LSP Ping request message are directly copied to the respective field of MPLS LSP Ping response message; The reception time stamp of MPLSLSP Ping response message is set to the time that node C receives MPLS LSP Ping request message; The response modes of MPLS LSP Ping response message is set to the response modes in the MPLS LSP Ping request message; UDP source port number in the MPLS LSP Ping response message is set to the destination slogan in the MPLS LSP Ping request message, and the UDP destination slogan in the MPLS LSP Ping response message is set to the source port number in the MPLS LSPPing request message; The IP destination address is set to the source address in the MPLSLSP Ping request message in the MPLS LSP Ping response message, IP source address is set to the IP address of node C in the MPLS LSP Ping response message, and the LSP label is identical with LSP label in the MPLS LSP Ping request message.
Optionally, the LSP between node A and node C can dispose for example MEP ID of node A of peer node after setting up in node C, and this configuration can manually or by signaling be finished.In the MPLS LSP Ping response message that generates, this MEP ID can carry by the TLVs of MPLS LSP Ping PDU field.
306, node C is sent to Node B with this MPLS LSP Ping response message.
Further, can set in advance second administration information list in the Node B, store the corresponding relation of LSP label and MEP ID in this second administration information list.Perhaps, Node B can be when being converted to MPLS LSP Ping request message with MPLS-TP LSP Ping request message, and the corresponding relation of the MEP ID of LSP label and node A is recorded in second administration information list.
Perhaps, in node C, dispose peer node for example under the situation of the MEP ID of node A, carry MEP ID among the TLVs of the MPLS LSP Ping PDU field in the described MPLSLSP Ping response message.
307, Node B is obtained second transitional information according to this MPLS LSP Ping response message.
Particularly, Node B can adopt following dual mode to obtain second transitional information:
Mode 1: according to described LSP label, in the second default administration information list, find out described second transitional information.
Mode 2: by extracting described second transitional information among the TLVs of described MPLS LSP Ping PDU field.
Wherein, described second transitional information comprises MEP ID.
In the present embodiment, the MEP ID that gets access to is the MEP ID of node A.
308, Node B is converted to MPLS-TPLSP Ping response message according to this second transitional information with this MPLS LSP Ping response message.
Describedly according to this second transitional information this MPLS LSP Ping response message is converted to MPLS-TP LSPPing response message and specifically can comprises:
IP/UDP heading in this MPLS LSP Ping response message is removed;
In this MPLS LSP Ping response message, add the GAL field;
Wherein, the GAL field in the described GAL field and 301 in the MPLS-TP LSP Ping request message is identical, and GAL field value is 13.
In described MPLS LSP Ping message, add the ACH field according to described IP/UDP heading and described second transitional information;
Wherein, the ACH field in the described ACH field and 301 in the MPLS-TP LSP Ping request message is identical, and the ACH field is used for carrying expansion TLV.Wherein, the ACH field comprises MEP ID TLV, source IP address TLV and source udp port TLV etc., MEP ID TLV can obtain according to second transitional information, and source IP address TLV and source udp port TLV can obtain according to the IP/UDP heading of MPLS LSP Ping request message.
Purpose FEC stack in the MPLS LSP Ping response message is replaced with purpose FEC stack in the former MPLS-TP LSP Ping request message, response modes in the MPLS LSP Ping response message is replaced with response modes in the former MPLS-TP LSP Ping request message, generate MPLS-TP LSP Ping response message.Usually, the purpose FEC stack of MPLS-TP is static LSP FEC stack, and response modes is 4, and therefore, direct the replacing with of relevant field among the MPLS LSP Ping PDU: response modes is set to 4, and purpose FEC stack is set to static LSP FEC stack.Optionally, Node B also can be when being converted to MPLS LSP Ping request message with MPLS-TP LSP Ping request message, record purpose FEC stack and response modes in the former MPLS-TP LSP Ping request message, this moment namely can be according to purpose FEC stack and the response modes in the information replacement MPLS LSP Ping response message of this record.
309, Node B is sent to node A with this MPLS-TP LSP Ping response message.
The method of OAM conversion between embodiment of the invention MPLS and the MPLS-TP, receive the MPLS-TP LSP Ping request message that the MPLS-TP node sends, obtain first transitional information according to described MPLS-TP LSP Ping request message, and according to described first transitional information described MPLS-TP LSP Ping request message is converted to MPLS LSP Ping request message, described MPLS LSP Ping request message is sent to the MPLS node; Receive the MPLS LSP Ping response message that the MPLS node sends, obtain second transitional information according to described MPLS LSP Ping response message, and according to described second transitional information described MPLS LSP Ping response message is converted to MPLS-TP LSP Ping response message, described MPLS-TP LSP Ping response message is sent to the MPLS-TP node.Compared with prior art, when MPLS and MPLS-TP coexist simultaneously, can change the LSP Ping message that transmits between MPLS-TP node and the MPLS node, thereby realize LSP Ping conversion between MPLS and the MPLS-TP.
Embodiment three
Present embodiment provides the method for OAM conversion between a kind of MPLS and the MPLS-TP, interconnected scene between MPLS and the MPLS-TP as shown in Figure 1, under this scene, need to realize the OAM conversion between MPLS and the MPLS-TP, in the present embodiment, to realize between MPLS and the MPLS-TP that BFD (Bidirectional Forwarding Detection, two-way forwarding detects) is converted to example.
As shown in Figure 4, node A is the MPLS-TP node, and Node B is the IWF node, and node C is the MPLS node.Need the LSP 1 between node A and the node C be detected.At up direction, node A initiates the BFD detection of connectivity to node C; At down direction, node C initiates the BFD detection of connectivity to node A.
When carrying out the detection of connectivity of up direction, the method for OAM conversion comprises between described MPLS and the MPLS-TP:
401, node A sends MPLS-TP BFD message to Node B, comprises detected LSP 1, GAL, ACH and MPLS-TP BFD PDU in this MPLS-TP BFD message.
Wherein, the encapsulation format of MPLS-TP BFD message is as shown in table 7.
Table 7
In table 7, implication or value that each field is represented are as follows:
LSP Label is detected LSP 1;
GAL field value is 13;
The Version field is set to 0;
Reserved is reserved field;
Channel Type is a kind of among CC (Continuity Check, continuity detect), the CV (Connectivity Verification, Connectivity Verification) according to function setting, and CC, CV are used for the LSP detection of connectivity; RDI (Remote Defect Indication, far-end faulty indication) is used for announcement far-end fault, and RDI carries with CC, CV PDU;
Wherein, ACH TLVs is Optional Field, and this field not in the CC message has this field in the CV message, and particularly, the ACH TLVs in the CV message comprises MEP ID TLV at least.
Wherein, MPLS-TP BFD is operated under asynchronous (Asynchronous) pattern, and under asynchronous mode, the source end can regularly send the BFD message, and Su Duan is by receiving the connectedness of BFD message sense channel.
Wherein, the encapsulation format of the BFD PDU in the table 7 is as shown in table 8.
Table 8
In table 8, implication and value that each field is represented are as follows:
Version number (Vers) field is set to 1;
Diagnosis (Diag) field is set to the reason that BFD session (Session) produces state variation;
State (Stat) field is set to the BFD session status;
Check that (P) bit puts 1 expression verification connectedness, need put 1 by F bit in response message;
Finally (F) bit puts 1 response connectivity checking request (P bit puts 1);
Authentication (A) bit puts 1 expression and carries authentication message;
(D) bit puts 1 expression BFD and operates in pattern as required as required;
Multiple spot (M) bit is left a little to detect to multiple spot and uses;
The place end calculates failure detection time to factor detection time (Detect Mult) under the asynchronous mode for calculating;
Length (Length) field represents that BFD PDU is in byte length.
Source end sign (My Discriminator) is used for identification sources end BFD session;
Opposite end sign (Your Discriminator) is used for Su Duan and returns the source end identification field that receives;
The minimum interval that Desired Min Tx Interval (Desired Min TX Interval) expression BFD PDU sends;
Expectation Required Min Rx Interval (Required Min RX Interval) expresses support for the minimum interval that receives BFD PDU;
(Required Min Echo RX Interval) expresses support for the minimum interval that receives BFD Echo PDU to expect to receive at interval by minimum Echo.
In this MPLS-TP BFD message, MEP ID is set to node C.
Further, can set in advance first administration information list in the Node B, store the corresponding relation of LSP label and IP source address and UDP source port number in this first administration information list.
Perhaps, can carry IP source address and UDP source port number among the ACH TLVs of described MPLS-TP BFD message.
402, Node B is obtained first transitional information according to described MPLS-TP BFD message.
Particularly, Node B can adopt following dual mode to obtain first transitional information:
Mode 1: according to described LSP label, in the first default administration information list, find out described first transitional information.
Mode 2: by extracting described first transitional information among the ACH TLVs of described MPLS-TP BFD message.
Wherein, described first transitional information comprises: IP source address and UDP source port number.
In the present embodiment, first transitional information that gets access to is: IP source address is the IP address of node A, and the UDP source port number is a preset value.
Wherein, if employing mode 2 is obtained described first transitional information, at the ACH TLVs of MPLS-TP BFD message, the form of IP source address TLV is as shown in table 3; The form of UDP source port number TLV is as shown in table 4.
403, Node B is converted to MPLS BFD message according to described first transitional information with this MPLS-TP BFD message.
Wherein, the encapsulation format of MPLS BFD message is as shown in table 9.
LSP Label 10 |
IP |
UDP |
BFD PDU |
Table 9
As shown in table 9, BFD PDU is encapsulated as the UDP/IP message, the label that adds detected LSP then can form MPLS BFD message.
Wherein, the encapsulation format of the BFD PDU in the table 9 is as shown in table 8.
Describedly according to described first transitional information this MPLS-TP BFD message is converted to MPLS BFD message and specifically can comprises:
GAL field in this MPLS-TP BFD message and ACH field are removed;
According to 402 first transitional informations that obtain, in this MPLS-TP BFD message, add the IP/UDP heading, generate MPLS BFD message.
Wherein, described IP/UDP heading comprises IP source address, IP destination address, UDP source port number and UDP destination slogan.Wherein, IP source address and UDP source port number obtain by first transitional information, and IP destination address and UDP destination slogan are arranged automatically by Node B.The IP destination address is that 127/8, UDP destination slogan is 3784.
404, Node B is sent to node C with this MPLS BFD message.
405, node C judges the connectedness of up direction LSP 1 according to this MPLS BFD message.
When carrying out the detection of connectivity of down direction, the method for OAM conversion comprises between described MPLS and the MPLS-TP:
406, node C sends MPLS BFD message to Node B, and this MPLS BFD message comprises LSP label, IP/UDP heading and MPLS BFD PDU.
Further, can set in advance second administration information list in the Node B, store the corresponding relation of LSP label and MEP ID in this second administration information list.
Perhaps, the LSP between node A and node C can dispose for example MEP ID of node A of peer node after setting up in node C, and this configuration can manually or by signaling be finished.Send in the MPLSBFD message to Node B at node C, this MEP ID can carry by the TLVs of MPLS BFD message.In this case, the encapsulation format of MPLSBFD message can be as shown in table 10.
LSP Label |
IP |
UDP |
BFD PDU |
TLVs |
Table 10
407, Node B is obtained second transitional information according to this MPLS BFD message.
Particularly, Node B can adopt following dual mode to obtain second transitional information:
Mode 1: according to described LSP label, in the second default administration information list, find out described second transitional information.
Mode 2: by extracting described second transitional information among the TLVs of described MPLS BFD message.
Wherein, described second transitional information comprises MEP ID.
In the present embodiment, the MEP ID that gets access to is the MEP ID of node A.
408, Node B is converted to MPLS-TP BFD message according to this second transitional information with this MPLS BFD message.
Describedly according to this second transitional information this MPLS BFD message is converted to MPLS-TP BFD message and specifically can comprises:
IP/UDP heading in this MPLS BFD message is removed;
In this MPLS BFD message, add the GAL field;
Wherein, the GAL field in the described GAL field and 401 in the MPLS-TP BFD message is identical, and GAL field value is 13.
In described MPLS BFD message, add the ACH field according to described IP/UDP heading and described second transitional information, generate MPLS-TP BFD message.
Wherein, the ACH field in the described ACH field and 401 in the MPLS-TP BFD message is identical, and the ACH field is used for carrying expansion TLV.Wherein, the ACH field comprises MEP ID TLV, source IP address TLV and source udp port TLV etc., MEP ID TLV can obtain according to second transitional information, and source IP address TLV and source udp port TLV can obtain according to the IP/UDP heading of MPLS LSP Ping request message.
409, Node B is sent to node A with this MPLS-TP BFD message.
410, node A judges the connectedness of down direction LSP 1 according to this MPLS-TP BFD message.
One of ordinary skill in the art will appreciate that the BFD of uplink and downlink direction detects relatively independent, do not have inevitable time sequencing.
The method of OAM conversion between embodiment of the invention MPLS and the MPLS-TP, receive the MPLS-TP BFD message that the MPLS-TP node sends, obtain first transitional information according to described MPLS-TP BFD message, and according to described first transitional information described MPLS-TP BFD message is converted to MPLS BFD message, described MPLS BFD message is sent to the MPLS node; Receive the MPLS BFD message that the MPLS node sends, obtain second transitional information according to described MPLS BFD message, and according to described second transitional information described MPLS BFD message is converted to MPLS-TP BFD message, described MPLS-TP BFD message is sent to the MPLS-TP node.Compared with prior art, when MPLS and MPLS-TP coexist simultaneously, can change the BFD message that transmits between MPLS-TP node and the MPLS node, thereby realize BFD conversion between MPLS and the MPLS-TP.
Embodiment four
Present embodiment provides the device of OAM conversion between a kind of MPLS and the MPLS-TP, and as shown in Figure 5, described device comprises:
First receiver module 501 is used for receiving the MPLS-TP OAM message that the MPLS-TP node sends, and comprises LSP label, GAL field, ACH field and MPLS-TP OAM PDU field in the described MPLS-TP OAM message;
First acquisition module 502 is used for obtaining first transitional information according to described MPLS-TP OAM message, and wherein, described first transitional information comprises IP source address and UDP source port number;
First modular converter 503 is used for according to described first transitional information described MPLS-TP OAM message being converted to MPLS OAM message;
First sending module 504 is used for described MPLS OAM message is sent to the MPLS node.
Further, as Fig. 6, shown in Figure 7, described first acquisition module 502 can comprise following arbitrary unit at least:
First searches unit 5021, is used for according to described LSP label, finds out described first transitional information in the first default administration information list;
First extraction unit 5022 is used for extracting described first transitional information by the TLV of described MPLS-TP OAM message.
When described MPLS-TP OAM message is MPLS-TP LSP Ping message, described first acquisition module 502, concrete being used for obtained IP source address, UDP source port number, purpose FEC stack and response modes according to described MPLS-TP OAM message.
Further, as shown in Figure 6, described first modular converter 503 can comprise:
First removes unit 5031, is used for GAL field and the ACH field of described MPLS-TP LSP Ping message are removed;
First adding device 5032 is used for adding the IP/UDP heading according to described first transitional information at described MPLS-TP LSP Ping message;
First replaces unit 5033, be used for purpose FEC stack with described MPLS-TP LSP Ping PDU field and replace with purpose FEC stack in described first transitional information, response modes in the described MPLS-TP LSP Ping PDU field is replaced with response modes in described first transitional information, generate MPLS LSP Ping message.
When described MPLS-TP OAM message is MPLS-TP BFD message, described first acquisition module 503, concrete being used for obtained IP source address and UDP source port number according to described MPLS-TP BFD message.
Further, as shown in Figure 7, described first modular converter 503 can comprise:
Second removes unit 5034, is used for GAL field and the ACH field of described MPLS-TP BFD message are removed;
Second adding device 5035 is used for according to described first transitional information, adds the IP/UDP heading in described MPLS-TP BFD message, generates MPLS BFD message.
Further, as Fig. 6, shown in Figure 7, described device can also comprise:
Second receiver module 505 is used for receiving the MPLS OAM message that the MPLS node sends, and comprises LSP label, IP/UDP heading and MPLS OAM PDU field in the described MPLS OAM message;
Second acquisition module 506 is used for obtaining second transitional information according to described MPLS OAM message, and wherein, described second transitional information comprises MEP ID;
Second modular converter 507 is used for according to described second transitional information described MPLS OAM message being converted to MPLS-TP OAM message;
Second sending module 508 is used for described MPLS-TP OAM message is sent to the MPLS-TP node.
Further, as Fig. 6, shown in Figure 7, described second acquisition module 506 can comprise following arbitrary unit at least:
Second searches unit 5061, is used for according to described LSP label, finds out described second transitional information in the second default administration information list;
Second extraction unit 5062 is used for extracting described second transitional information by the TLV of described MPLS OAM message.
Further, when described MPLS OAM message was MPLS LSP Ping message, as shown in Figure 6, described second modular converter 507 can comprise:
The 3rd removes unit 5071, is used for described IP/UDP heading is removed;
The 3rd adding device 5072 is used for adding the GAL field at described MPLS LSP Ping message;
The 4th adding device 5073 is used for adding the ACH field according to described IP/UDP heading and described second transitional information at described MPLS LSP Ping message;
Wherein, the ACH field comprises MEP ID TLV, source IP address TLV and source udp port TLV etc., MEP IDTLV can obtain according to second transitional information, and source IP address TLV and source udp port TLV can obtain according to the IP/UDP heading of MPLSLSP Ping request message.
Second replaces unit 5074, be used for purpose FEC stack with described MPLS LSP Ping message and replace with purpose FEC stack in the described MPLS-TP LSP Ping PDU field, response modes in the described MPLS LSP Ping message is replaced with response modes in the described MPLS-TP LSP Ping PDU field, generate MPLS-TPLSP Ping message.
Further, when described MPLS OAM message was MPLS BFD message, as shown in Figure 7, described second modular converter 507 can comprise:
The 4th removes unit 5075, is used for described IP/UDP heading is removed;
The 5th adding device 5076 is used for adding the GAL field at described MPLS BFD message;
The 6th adding device 5077 is used for adding the ACH field according to described IP/UDP heading and described second transitional information at described MPLS BFD message, generates MPLS-TP BFD message.
Wherein, the ACH field comprises MEP ID TLV, source IP address TLV and source udp port TLV etc., MEP IDTLV can obtain according to second transitional information, and source IP address TLV and source udp port TLV can obtain according to the IP/UDP heading of MPLS LSP Ping request message.
In the present embodiment, described OAM can be LSP Ping or BFD, but is not limited only to this.The specific implementation form of the device of OAM conversion can be IWF between described MPLS and the MPLS-TP, but is not limited only to this.
The device of OAM conversion between embodiment of the invention MPLS and the MPLS-TP, receive the MPLS-TP OAM message that the MPLS-TP node sends, obtain first transitional information according to described MPLS-TP OAM message, and according to described first transitional information described MPLS-TP OAM message is converted to MPLS OAM message, described MPLS OAM message is sent to the MPLS node; Receive the MPLS OAM message that the MPLS node sends, obtain second transitional information according to described MPLS OAM message, and according to described second transitional information described MPLS OAM message is converted to MPLS-TP OAM message, described MPLS-TP OAM message is sent to the MPLS-TP node.Compared with prior art, when MPLS and MPLS-TP coexist simultaneously, can change the OAM message that transmits between MPLS-TP node and the MPLS node, thereby realize OAM conversion between MPLS and the MPLS-TP.
The above-mentioned method embodiment that provides can be provided the device of OAM conversion between the MPLS that the embodiment of the invention provides and the MPLS-TP.The method of OAM conversion and device go for LSP Ping conversion or BFD conversion between MPLS and the MPLS-TP between the MPLS that the embodiment of the invention provides and the MPLS-TP, but are not limited only to this.
One of ordinary skill in the art will appreciate that all or part of flow process that realizes in above-described embodiment method, be to instruct relevant hardware to finish by computer program, described program can be stored in the computer read/write memory medium, this program can comprise the flow process as the embodiment of above-mentioned each side method when carrying out.Wherein, described storage medium can be magnetic disc, CD, read-only storage memory body (Read-Only Memory, ROM) or at random store memory body (Random Access Memory, RAM) etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; the variation that can expect easily or replacement all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of claim.