CN101316260A - Packaging conversion method and packaging conversion equipment - Google Patents

Packaging conversion method and packaging conversion equipment Download PDF

Info

Publication number
CN101316260A
CN101316260A CNA2007101058442A CN200710105844A CN101316260A CN 101316260 A CN101316260 A CN 101316260A CN A2007101058442 A CNA2007101058442 A CN A2007101058442A CN 200710105844 A CN200710105844 A CN 200710105844A CN 101316260 A CN101316260 A CN 101316260A
Authority
CN
China
Prior art keywords
encapsulation
data message
information
pseudo
line
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CNA2007101058442A
Other languages
Chinese (zh)
Other versions
CN101316260B (en
Inventor
杨欣
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN2007101058442A priority Critical patent/CN101316260B/en
Publication of CN101316260A publication Critical patent/CN101316260A/en
Application granted granted Critical
Publication of CN101316260B publication Critical patent/CN101316260B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The embodiment of the invention discloses an encapsulation conversion method, which includes the steps that: a data message is received; the information of the data message is extracted to generate an index; an encapsulation conversion table is searched according to the index to obtain the corresponding encapsulation conversion information; the data message is re-encapsulated and transmitted according to the encapsulation conversion information. The embodiment of the invention also provides encapsulation conversion equipment correspondingly, which includes: a receiving port used for receiving the data message, a control module used for configuring the encapsulation conversion table containing the encapsulation conversion information, a processing module used for extracting the information of the data message received by the receiving port to generate the index; the encapsulation conversion table configured by the control module is searched according to the index to obtain the corresponding encapsulation conversion information; the data message is re-encapsulated according to the encapsulation conversion information; the encapsulation conversion equipment also includes a transmitting port used for transmitting the re-encapsulated data message. The technical proposal provided by the embodiment of the invention can realize the conversion among different encapsulation forms.

Description

Packaging conversion method and packaging conversion equipment
Technical field
The present invention relates to communication technical field, be specifically related to a kind of packaging conversion method and packaging conversion equipment.
Background technology
Ubiquitous based on the packet switching network (PSN, Packet SwitchNetwork) of the Internet/Ethernet (IP/Ethernet) at present, and traditional time division multiplexing tdm (Time-division multiplexing) business still keeps.One " passage " built in TDM emulation on packet switching network, realize TDM circuit (as T1 or E1) therein, thereby makes the TDM equipment of the arbitrary end of network needn't be concerned about whether its network that connects is a TDM network.The pseudo wire emulation of Internet engineering duty group IETF subordinate's edge-to-edge (PWE3, Pseudo Wire Emulation Edge-to-Edge) working group is responsible to define the work of the online artificial network business of packet switching.
Present IETF PWE3 standard RFC4553 comprises unknowable structure time-division multiplex technology encapsulation header (SAToPEncapsulation Header) and packet switching and pseudo-line separating layer head (PSN and PW demultiplexinglayer headers) on TDM load (TDM Payload), the packets of information for the definition of TDM emulation encapsulation.The TDM artificial service can have four kinds of emulation packaged types at present, is respectively the pseudo-line encapsulation of Internet protocol/User Datagram Protoco (UDP) (the pseudo-line encapsulation of IP/UDP), the pseudo-line encapsulation of Level 2 Tunnel Protocol (the pseudo-line encapsulation of L2TPv3), the pseudo-line encapsulation of multiprotocol label switching (the pseudo-line encapsulation of MPLS) and the pseudo-line encapsulation of Ethernet (the pseudo-line encapsulation of ECID).First three is planted packaged type and is proposed by IETF, and the pseudo-line encapsulation of ECID is then proposed by the telecommunications Ethernet MEF of forum.The meaning of pseudo-line PW (Pseudo Wire) is that communicating pair can set up the traditional communication mechanism of point-to-point, and concrete network implementation then is transparent for communicating pair.In the present prior art, can think that PW is a kind of index, for the pseudo-line encapsulation of IP/UDP, PW information is udp port number; For the pseudo-line encapsulation of L2TPv3, PW information is L2TPv3 tunnel index and session identification (session ID); For the pseudo-line encapsulation of MPLS, PW information is the MPLS label, and the MPLS label is a double-layer label usually, and outer layer label is represented label switching path LSP (LabelSwitched Path), and vpn label is represented the circuit number index; For the pseudo-line encapsulation of ECID, PW information is artificial circuit sign ECID, and promptly ECID is as the circuit number index.
Above-mentioned these different packing forms may long-term existence, and is bringing into play effect separately in different networks.But each present gateway device is not supported the conversion between different packing forms, for example certain gateway device can be packaged into TDM source data message the pseudo-line encapsulation of MPLS, also TDM source data message can be packaged into the pseudo-line encapsulation of IP/UDP, but can not realize that the pseudo-line of IP/UDP is encapsulated into the conversion of the pseudo-line encapsulation of MPLS, and in the occasion of some convergence service, existing gateway equipment can not be realized the conversion between each packing forms, will influence further developing of TDM artificial service.
Summary of the invention
The technical problem that the embodiment of the invention will solve provides a kind of packaging conversion method and packaging conversion equipment, can realize the conversion between different packing forms.
For solving the problems of the technologies described above, the embodiment of the invention is achieved through the following technical solutions:
The embodiment of the invention provides a kind of packaging conversion method, comprising: receiving data packets; The information of extracting described data message generates index; According to described index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again and sends.
The embodiment of the invention provides a kind of packaging conversion equipment, comprising: receiving port is used for receiving data packets; Control module is used to dispose and comprises the encapsulation conversion table that encapsulates transitional information; Processing module, the information that is used to extract the data message that described receiving port receives generates index; Encapsulation conversion table according to described index search control module configuration obtains corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again; Transmit port is used to send the described data message of encapsulation again.
Above technical scheme as can be seen, existing each gateway device is not supported the conversion between different packing forms, and the scheme of the embodiment of the invention is: receiving data packets; The information of extracting described data message generates index; According to described index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again and sends.Comprise the encapsulation conversion table that encapsulates transitional information because the embodiment of the invention is pre-configured, and behind receiving data packets, can extract relevant information and generate index search encapsulation conversion table, and the data message is encapsulated again and sends, thereby realized conversion between different packing forms according to the encapsulation transitional information.
Description of drawings
Fig. 1 is the embodiment of the invention one a packaging conversion method flow chart;
Fig. 2 is the flow chart of the embodiment of the invention two packaging conversion methods;
Fig. 3 is the network organizing figure that embodiment of the invention packaging conversion method is used;
Fig. 4 is the general construction schematic diagram of embodiment of the invention packaging conversion equipment;
Fig. 5 is the concrete structure schematic diagram of embodiment of the invention packaging conversion equipment;
Fig. 6 is the structural representation of first processing module of embodiment of the invention packaging conversion equipment;
Fig. 7 is the structural representation of second processing module of embodiment of the invention packaging conversion equipment;
Fig. 8 is the structural representation of the control module of embodiment of the invention packaging conversion equipment.
Embodiment
The embodiment of the invention provides a kind of packaging conversion method, can realize the conversion between different packing forms.
Seeing also Fig. 1, is the embodiment of the invention one packaging conversion method flow chart.
This flow chart description data message encapsulates the process of conversion by gateway device IWFc.IWFc can carry out the conversion of the different packing forms of data message.The IWFc two ends all are provided with RX port and TX port, and in one direction, data message is from the RX port input of an end, after the encapsulation conversion process through first processing module, from the TX port output of the other end; In the opposite direction, data message is from the RX port input of an end, after the encapsulation conversion process through second processing module, from the TX port output of the other end.Fig. 1 is that example describes with the encapsulation flow path switch on the direction.
Comprise step among Fig. 1:
Steps A 1, receiving data packets;
Gateway device IWFc is from the RX port receiving data packets of a side.
The information of steps A 2, the described data message of extraction generates index;
First processing module is by analyzing the protocol type territory in the data message, and what draw this data message employing is any emulation encapsulated type, and extracts corresponding pseudo-line information, generates to comprise encapsulated type and pseudo-line information index.
Steps A 3, according to described index search encapsulation conversion table, obtain corresponding encapsulation transitional information;
First processing module obtains corresponding encapsulation transitional information according to the encapsulation conversion table of the pre-configured generation of described index search.
Steps A 4, the data message is encapsulated again and sends according to described encapsulation transitional information.
First processing module encapsulates again the data message and is specially according to the encapsulation transitional information: according to the translation type in the conversion encapsulation information and new encapsulation header domain information the former encapsulation header territory of data message is replaced to new encapsulation header field.After the data message encapsulated again, send by the TX port.
Need to prove that encapsulation transfer process in the opposite direction is the same with the process of Fig. 1, just encapsulating the encapsulation conversion table of changing and inquiring about by second processing module is to have mutual transformational relation with the said encapsulation conversion table of Fig. 1.
From this embodiment as can be seen, because the pre-configured encapsulation conversion table that encapsulates transitional information that comprises among this embodiment, and behind receiving data packets, can extract relevant information and generate index search encapsulation conversion table, and the data message is encapsulated again and sends, thereby realized conversion between different packing forms according to the encapsulation transitional information.
Seeing also Fig. 2, is the flow chart of the embodiment of the invention two packaging conversion methods.In one direction, data message is from the RX port input of IWFc one end, after the encapsulation conversion process through first processing module, from the TX port output of the other end; In the opposite direction, data message is from the RX port input of an end, after the encapsulation conversion process through second processing module, from the TX port output of the other end.Fig. 2 is that example describes with the encapsulation flow path switch on the direction, specifically comprises step:
Step B1, receiving data packets;
Gateway device IWFc is from the RX port receiving data packets of a side.
Step B2, analysis data message type;
For the data message that receives from the RX port, first processing module can be by analyzing the protocol type territory in the data message, and what draw this data message employing is any emulation packaged type.For example the protocol type territory in the data message is Internet protocol/User Datagram Protoco (UDP) (IP/UDP), then can analyze data message and adopt the pseudo-line encapsulation of IP/UDP.
Step B3, extract corresponding pseudo-line information according to the data message type;
First processing module adopts the pseudo-line encapsulation of IP/UDP if analyze data message, and then the pseudo-line information of Ti Quing is udp port number; Adopt the pseudo-line encapsulation of L2TPv3 if analyze data message, then the pseudo-line information of Ti Quing is tunnel index and Session ID; Adopt the pseudo-line encapsulation of MPLS if analyze data message, then the pseudo-line information of Ti Quing is the MPLS label; Adopt the pseudo-line encapsulation of ECID if analyze data message, then the pseudo-line information of Ti Quing is ECID; If what analyze the data message employing is non-emulated data encapsulation, promptly do not belong to above-mentioned any, then data message forwarding other modules in the IWFc are handled, perhaps be forwarded to opposite equip., this can be by configuration designated treatment pattern, and the present invention does not limit.
Step B4, generation table item index;
After extracting corresponding pseudo-line information, first processing module generates corresponding table item index, and table item index adopts { encapsulated type number, PW_ID} form.Wherein, encapsulated type number layout in the following manner:
The pseudo-line encapsulation of 0-IP/UDP (IETF RFC4553IPv4/IPv6and UDP (PWdemultiplexing layer) headers);
The pseudo-line encapsulation of 1-L2TPv3 (IETF RFC4553IPv4/IPv6and L2TPv3 (PWdemultiplexing layer) headers);
The pseudo-line encapsulation of 2-MPLS (IETF RFC4553MPLS Label Stack);
The pseudo-line encapsulation of 3-ECID (MEF8ECID Label).
Need to prove that encapsulated type number represented encapsulated type can have different arranged modes, specifically according to circumstances is provided with by IWFc.
Corresponding above-mentioned encapsulated type number, pseudo-line information PW_ID number is determined by following mode:
The pseudo-line encapsulation of 0-IP/UDP: PW_ID=UDP port numbers;
The pseudo-line encapsulation of 1-L2TPv3: PW_ID=L2TPV3 tunnel call number, Session ID;
The pseudo-line encapsulation of 2-MPLS: PW_ID=MPLS label;
The pseudo-line encapsulation of 3-ECID: PW_ID=ECID.
B5, close down the dress conversion table;
First processing module is closed down dress conversion table 1 according to table item index after extracting corresponding pseudo-line information generation table item index.
The encapsulation conversion table comprises encapsulation conversion table 1 and encapsulation conversion table 2 by the pre-configured generation of control module, is respectively applied for the conversion of two different directions, and the organizational form of two encapsulation conversion tables is identical, and the transformational relation that the inside is represented is mutual transformational relation.The organizational form of encapsulation conversion table is as shown in the table.
Encapsulation is described New encapsulation header The statistics maintenance information Other information
.... .... .... ....
The encapsulation conversion table can be made up of M list item, and it is fixed that M can come according to the pseudo-line conversion maximum quantity specification that the equipment needs are realized.Each list item adopts that { encapsulated type number, PW_ID} identifies.
Wherein, the territory is described in encapsulation, indicates conversion is come out on this pseudo-line encapsulated type, link layer packaging form etc.; New encapsulation header field, the encapsulation header after referring to change comprises that new pseudo-the end of a thread, network layer header, link layer are first-class, network layer header just is provided with when needed; Safeguard the statistical information territory, the information of noting behind data message of the every processing of finger equipment, actual can be the combination and the state information of some counters, for example, and the number of successful deal with data message, the number that receives the misdata message, the data flux statistics on the pseudo-line etc.The particular content in each territory can be made amendment according to actual needs in the list item.Other information fields can dispose some information, for example some match information, attribute information etc. as required.
Each list item in the encapsulation conversion table, the control information that control module receives from webmaster or order line control interface CLI writes.When control module is set up a pair of encapsulation transformational relation, respectively set up a list item in encapsulation conversion table 1 and encapsulation conversion table 2, its content relation is mutual transformational relation.
Introduce the content in the explanation encapsulation conversion table below for example.
The left side input and output of supposing IWFc are the pseudo-line encapsulation of IP/UDP, and parameter is:
The pseudo-line encapsulation of 0-IP/UDP;
Src Mac address:MACsrc;Dst Mac address:MACdst;VLAN:Vlan100;
Src IP address:IPsrc;;Dst IP adderess:Ipdst;
Src UDP:UDPsrc;Dst UDP:UDPdst。
Wherein, Src Mac address refers to medium access control mac source address, Dst Mac address refers to medium access control MAC destination address, VLAN refers to VLAN, Src IP address refers to IP source address, Dst IP adderess refers to the IP destination address, and Src UDP is meant the UDP source address, and Dst UDP is meant the UDP destination address.Src UDP and Dst UDP be udp port number just.
The right side input and output of IWFc are the pseudo-line encapsulation of MPLS, and parameter is:
The pseudo-line encapsulation of 2-MPLS;
LSP(bottom layer MPLS label):LSP1;
PW(Top layer MPLS label):PW1。
Wherein, the LSP index is signed switching path, and PW refers to pseudo-line, represents the circuit number index here.Link layer is an Ethernet, and the MAC that establishes link layer is encapsulated as MACmpls, and MACmpls comprises source MAC, purpose MAC and VLAN etc.
According to above-mentioned situation, control module is the transformation table entries of configuration from 0 type to 2 types in encapsulation conversion table 1, and dispose the transformation table entries from 2 types to 0 type in encapsulation conversion table 2.
The concrete operations of control module configuration list item are as follows: { 0, { 2, the LSP1-PW1} transformational relation is mutual transformational relation to the table item index of UDPsrc-UDPdst} and table 2 to the table item index of table 1.
The configuration of his-and-hers watches 1: table item index 0, the list item of UDPsrc-UDPdst} number correspondence, dispose following content:
The territory is described in encapsulation: illustrate that output is encapsulated as 2 types, link layer is the ethernet mac encapsulation;
New encapsulation header field: { PW1, LSP1} double-layer label stack, Ethernet encapsulation MACmpls;
Safeguard the statistical information territory: all counters are reset to 0.
The configuration of his-and-hers watches 2: table item index 2, the list item of LSP1-PW1} number correspondence, dispose following content:
The territory is described in encapsulation: illustrate that output is encapsulated as 0 type, link layer is the ethernet mac encapsulation;
New encapsulation header field: 0, UDPsrc-UDPdst}, IPsrc, IPdst, MACsrc, MACdst, VLAN100;
Safeguard the statistical information territory: all counters are reset to 0.
Step B6, judge whether list item is effective,, enter step B7,, enter step B9 if list item is invalid if list item is effective;
If webmaster or order line control interface do not require control module to set up transformation rule at this list item, represent that then this list item is invalid, enter step B9.
Step B7, inquiry contents in table obtain new packaging information;
When list item is effective, find corresponding list item according to table item index after, obtain corresponding new packaging information from this corresponding list item, also the content of territory and new encapsulation header field is described in i.e. encapsulation.
Step B8, the new packaging information of basis be the encapsulation of data message again, and the data message forwarding of encapsulation is again sent to corresponding TX port, enters step B10;
First processing module encapsulates data message again according to the specified new packaging information of the list item of finding, again in the encapsulation process, unknowable structure time-division multiplex technology encapsulation header (SAToP Encapsulation Header) is constant on TDM load (TDM Payload), the packets of information, just in packet switching and pseudo-line separating layer head (PSN and PW demultiplexing layer headers) former encapsulation header territory is replaced to new encapsulation header field.In addition, recomputate verification territory, length field and the life span ttl value etc. of each layer protocol, concrete computational process is carried out according to the corresponding algorithm of prior art, and the present invention is not limited.
Process for encapsulating again below illustrates:
For example when being encapsulated into the pseudo-line encapsulation of MPLS conversion from the pseudo-line of IP/UDP, be according to the new packaging information that obtains in the list item, packet switching and pseudo-line separating layer head at data message replace to new encapsulation header field with former encapsulation header territory, and newly encapsulating header field is the pseudo-line packaging information of MPLS MPLS Label Stack; Opposite, if when the pseudo-line of MPLS is encapsulated into the pseudo-line encapsulation of IP/UDP conversion, according to the new packaging information that obtains in the list item, former encapsulation header territory is replaced to the pseudo-line packaging information of IP/UDP IPv4/IPv6and UDP headers in data message packet switching and pseudo-line separating layer head.
When being encapsulated into the pseudo-line encapsulation of MPLS conversion from the pseudo-line of L2TPv3, be according to the new packaging information that obtains in the list item, packet switching and pseudo-line separating layer head at data message replace to new encapsulation header field with former encapsulation header territory, and newly encapsulating header field is MPLS Label Stack packaging information; Opposite, if when the pseudo-line of MPLS is encapsulated into the pseudo-line encapsulation of L2TPv3 conversion, according to the new packaging information that obtains in the list item, former encapsulation header territory is replaced to the pseudo-line packaging information of L2TPv3 IPv4/IPv6 and L2TPv3headers in data message packet switching and pseudo-line separating layer head.
When being encapsulated into the pseudo-line encapsulation of MPLS conversion from the pseudo-line of ECID, be according to the new packaging information that obtains in the list item, packet switching and pseudo-line separating layer head at data message replace to new encapsulation header field with former encapsulation header territory, and newly encapsulating header field is MPLS Label Stack packaging information; Opposite, if when the pseudo-line of MPLS is encapsulated into the pseudo-line encapsulation of ECID conversion,, former encapsulation header territory is replaced to the pseudo-line packaging information of ECID ECIDLabel in data message packet switching and pseudo-line separating layer head according to the new packaging information that obtains in the list item.
Step B9, data message is abandoned or be forwarded to key-course, enter step B10;
Step B10, add up maintenance information and handle.
First processing module is added up maintenance information and is handled, and for example, adds up the number of successful deal with data message, the number that receives the misdata message, the data message traffic statistics on the pseudo-line etc.
Need to prove that encapsulation transfer process in the opposite direction is the same with the process of Fig. 2, what just encapsulate conversion and inquiry by second processing module is encapsulation conversion table 2.
From this embodiment as can be seen, because the pre-configured encapsulation conversion table that encapsulates transitional information that comprises among this embodiment, the encapsulation conversion table comprises the first encapsulation conversion table and the second encapsulation conversion table, and these two the conversion encapsulation information that encapsulate the correspondence of each list item in the conversion table are mutual transformational relation.Behind receiving data packets, can extract relevant information and generate the index search first encapsulation conversion table or the second encapsulation conversion table, and the data message be encapsulated again and sends, thereby realize conversion between different packing forms according to encapsulation transitional information wherein.
Seeing also Fig. 3, is the network organizing figure that embodiment of the invention packaging conversion method is used;
Among Fig. 3,4 kinds of equipment are arranged, data message can be encapsulated as the pseudo-line encapsulation of IP/UDP, the pseudo-line encapsulation of ECID, the pseudo-line encapsulation of L2TPv3 and the pseudo-line encapsulation of MPLS respectively.The data message of these 4 kinds of packing forms is sent to IWFc equipment through the IP/ETH network, carry out any conversion between different packing forms by IWFc as required by the described method of Fig. 2, for example can all convert the pseudo-line encapsulation of IP/UDP, the pseudo-line encapsulation of ECID and the pseudo-line encapsulation of L2TPv3 to MPLS pseudo-line encapsulation, perhaps all convert the pseudo-line encapsulation of ECID, the pseudo-line encapsulation of L2TPv3 and the pseudo-line encapsulation of MPLS to the pseudo-line encapsulation of IP/UDP etc.Suppose all to convert the pseudo-line encapsulation of IP/UDP, the pseudo-line encapsulation of ECID and the pseudo-line encapsulation of L2TPv3 to MPLS pseudo-line encapsulation, promptly former encapsulation header territory is replaced to MPLSLabel Stack packaging information, and then be sent to common MPLS gateway IWFm and handle in packet switching of former encapsulation data message and pseudo-line separating layer head.IWFm is can't process IP/data message of the pseudo-line encapsulation of UDP, the pseudo-line encapsulation of ECID and the pseudo-line encapsulation of L2TPv3, after becoming the pseudo-line encapsulation of MPLS by the IWFc device translates now, IWFm supports the pseudo-line encapsulation of MPLS, be sent to the TDM equipment of the other end by the data message that will have now after normal flow will encapsulate again, thereby realized the TDM artificial service.
A kind of practical application of IWFc equipment is in gigabit passive optical network GPON network, optical line terminal OLT can be supported multiple business such as MPLS, and optical network unit ONU, equipment such as single domestic consumer SFU and multitenant unit MDU can not move Routing Protocol and tag distribution protocol LDP signaling, otherwise will make network complicated unusually, yet often need a concentrated jumbo router device to realize the PWE3 function at the center of MPLS network, at this time can take on GPON optical distributed network ODN, Optical Network Terminal ONT uses packing forms such as pseudo-line encapsulation of IP/UDP or the pseudo-line encapsulation of ECID, realize the encapsulation conversion and on OLT, use IWFc equipment, convert former encapsulation form to MPLS pseudo-line encapsulation by the method for foregoing description, to dock with IWFm.Need to prove that IWFc equipment can also be applied in other networks.
The above-mentioned embodiment of the invention packaging conversion method that describes in detail, corresponding, the embodiment of the invention provides a kind of packaging conversion equipment, can realize automatic identification and conversion between different emulation packing forms.This packaging conversion equipment is called gateway device IWFc herein.
Seeing also Fig. 4, is the general construction schematic diagram of embodiment of the invention packaging conversion equipment.
This packaging conversion equipment comprises receiving port 10, transmit port 20, control module 30 and processing module 40.
Receiving port 10 is used for receiving data packets.Control module 30 is used to dispose and comprises the encapsulation conversion table that encapsulates transitional information.Processing module 40, the information that is used to extract the data message that described receiving port 10 receives generates index; Encapsulation conversion table according to described index search control module 30 configurations obtains corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again.Transmit port 20 is used to send the described data message of encapsulation again.
Seeing also Fig. 5, is the concrete structure schematic diagram of embodiment of the invention packaging conversion equipment.
The receiving port 10 of IWFc comprises a RX port one 1 and the 2nd RX port one 2, and transmit port 20 comprises a TX port 21 and the 2nd TX port 22, and processing module 40 comprises first processing module 41 and second processing module 42.In one direction, data message is from a RX port one 1 input of an end, after the encapsulation conversion process through first processing module 41, from a TX port 21 outputs of the other end; In the opposite direction, data message is from the 2nd RX port one 2 inputs of an end, after the encapsulation conversion process through second processing module 42, from the 2nd TX port 22 outputs of the other end.
The one RX port one 1 receives message from the network that connects the port, for the control protocol message, for example Routing Protocol and tag distribution protocol LDP signaling protocol pass to control module 30 and handle, for data message, carry out link layer process, and pass to first processing module 41.
The one TX port 21, the data message that first processing module 41 is encapsulated after the conversion sends on the network that connects the port, can send the control protocol message of automatic control molding piece 30 simultaneously, for example Routing Protocol and tag distribution protocol LDP signaling protocol.
The 2nd RX port one 2 receives message from the network that connects the port, for the control protocol message, for example Routing Protocol and tag distribution protocol LDP signaling protocol pass to control module 30 and handle, for data message, carry out link layer process, and pass to second processing module 42.
The 2nd TX port 22, the data message that second processing module 42 is encapsulated after the conversion sends on the network that connects the port, can send the control protocol message of automatic control molding piece 30 simultaneously, for example Routing Protocol and tag distribution protocol LDP signaling protocol.
Control module 30 is mainly used in pre-configured generation encapsulation conversion table and the processing of finishing control protocol.
30 pairs of control protocol messages of control module are handled, for example, when using the pseudo-line of MPLS, need to adopt Routing Protocol set up label switching path LSP (Label Switched Path), and need to consult the encapsulated type, attribute etc. of conversion by the service edge equipment PE (Provider Edge) of tag distribution protocol LDP agreement and opposite end.Described Routing Protocol comprises routing information protocol RIP, OSPF OSPF, Border Gateway Protocol (BGP) etc.
Control module 30 pre-configured generation encapsulation conversion tables, it can accept the control information from webmaster or order line control interface, sets up the encapsulation transformational relation in the encapsulation conversion table, writes the relevant information of conversion.Control module 30 further comprises the first encapsulation conversion table dispensing unit 301 and the second encapsulation conversion table dispensing unit 302.Please consulting Fig. 8 simultaneously, is the structural representation of the control module 30 of embodiment of the invention packaging conversion equipment.
The first encapsulation conversion table dispensing unit 301 is used to dispose the encapsulation conversion table 1 that comprises translation type and new encapsulation header domain information; The second encapsulation conversion table dispensing unit 302, the translation type and the new encapsulation header domain information that are used for disposing and encapsulate conversion table 1 are the encapsulation conversion table 2 of mutual transformational relation.Encapsulation conversion table 1 is identical with the organizational form of encapsulation conversion table 2, is respectively applied for the conversion of two different directions, and the transformational relation that the inside is represented is opposite.The organizational form of encapsulation conversion table comprises that encapsulation describes the territory, newly encapsulates header field, statistics maintenance information territory and other information fields.Wherein, the territory is described in encapsulation, indicates conversion is come out on this pseudo-line encapsulated type, link layer packaging form etc.; New encapsulation header field, the encapsulation header after referring to change comprises that new pseudo-the end of a thread, network layer header, link layer are first-class, network layer header just is provided with when needed; Safeguard the statistical information territory, the information of noting behind data message of the every processing of finger equipment, actual can be the combination and the state information of some counters, for example, and the number of successful deal with data message, the number that receives the misdata message, the data flux statistics on the pseudo-line etc.; Other information fields can dispose some information, for example some match information, attribute information etc. as required.The particular content in each territory can be made amendment according to actual needs in the list item.The encapsulation conversion table can have the M item, and it is fixed that M can come according to the pseudo-line conversion maximum quantity specification that the equipment needs are realized.Each list item adopts that { encapsulated type number, PW_ID} identifies.
First processing module 41 is identical with the processing capacity of second processing module 42, all is to be used for encapsulating conversion.Seeing also Fig. 6 and Fig. 7, is respectively first processing module 41 of embodiment of the invention packaging conversion equipment and the structural representation of second processing module 42.
First processing module 41 comprises the first encapsulated type recognition unit 411, the first index generation unit 412, first query unit 413 and the first encapsulation converting unit 414.
Behind the data message that the first encapsulated type recognition unit, 411 reception RX port ones 1 forward, by analyzing the protocol type territory in the data message, what draw this data message employing is any emulation packaged type.For example the protocol type territory in the data message is Internet protocol/User Datagram Protoco (UDP) (IP/UDP), then can analyze data message and adopt the pseudo-line encapsulation of IP/UDP.
The first index generation unit 412 extracts corresponding pseudo-line information according to the first encapsulated type recognition unit, 411 recognition data type of messages, and generates table item index according to the pseudo-line information of extracting.The table item index that generates adopts { encapsulated type number, PW_ID} form.The corresponding pseudo-line information that the PW_ID number just extracts from data message adopts the pseudo-line encapsulation of IP/UDP if analyze data message, and then the pseudo-line information of Ti Quing is udp port number; Adopt the pseudo-line encapsulation of L2TPv3 if analyze data message, then the pseudo-line information of Ti Quing is tunnel index and Session ID; Adopt the pseudo-line encapsulation of MPLS if analyze data message, then the pseudo-line information of Ti Quing is the MPLS label; Adopt the pseudo-line encapsulation of ECID if analyze data message, then the pseudo-line information of Ti Quing is ECID; If what analyze the data message employing is non-emulated data encapsulation, promptly do not belong to above-mentioned any, then data message forwarding other modules in the IWFc are handled, perhaps be forwarded to opposite equip., this can be by configuration designated treatment pattern, and the present invention does not limit.
The pseudo-line encapsulation of the encapsulated type of the table item index that generates number layout in the following manner: 0-IP/UDP; The pseudo-line encapsulation of 1-L2TPv3; The pseudo-line encapsulation of 2-MPLS; The pseudo-line encapsulation of 3-ECID.Need to prove that encapsulated type number represented encapsulated type can have different arranged modes, specifically according to circumstances is provided with by IWFc.Corresponding above-mentioned encapsulated type number, pseudo-line information PW_ID number is determined by following mode: the pseudo-line encapsulation of 0-IP/UDP: PW_ID=UDP port numbers; The pseudo-line encapsulation of 1-L2TPv3: PW_ID=L2TPV3 tunnel call number, Session ID; The pseudo-line encapsulation of 2-MPLS: PW_ID=MPLS label; The pseudo-line encapsulation of 3-ECID: PW_ID=ECID.Need to prove that ECID and MPLS single layer label are compatible.
First query unit 413 is closed down the contents in table of adorning conversion table 1 according to the table item index that the first index generation unit 412 generates.If control module 30 is not set up the transformation rule of this list item, represent that this list item is invalid, then data message is abandoned or is forwarded to key-course.First query unit 413 obtains new packaging information from corresponding list item after finding corresponding list item according to table item index, and also the content of territory and new encapsulation header field is described in i.e. encapsulation.
The first encapsulation converting unit 414, the specified new packaging information of finding according to first query unit 413 of list item encapsulates data message again.Again in the encapsulation process, unknowable structure time-division multiplex technology encapsulation header (SAToP EncapsulationHeader) is constant on TDM load (TDMPayload), the packets of information, just in packet switching and pseudo-line separating layer head (PSN and PWdemultiplexing layer headers) former encapsulation header territory is replaced to new encapsulation header field.For example when being encapsulated into the pseudo-line encapsulation of MPLS conversion from the pseudo-line of IP/UDP, be according to the new packaging information that obtains in the list item, packet switching and pseudo-line separating layer head at data message replace to new encapsulation header field with former encapsulation header territory, and newly encapsulating header field is the pseudo-line packaging information of MPLS MPLS Label Stack; Opposite, when being encapsulated into the pseudo-line encapsulation of IP/UDP conversion from the pseudo-line of MPLS, according to the new packaging information that obtains in the list item, former encapsulation header territory is replaced to the pseudo-line packaging information of IP/UDP IPv4/IPv6 and U DP headers in data message packet switching and pseudo-line separating layer head.
First processing module 41 further comprises the first statistics maintenance unit 415, is used to add up the processing of maintenance information.For example, add up the number of successful deal with data message, the number that receives the misdata message, the data flux statistics on the pseudo-line etc.
Second processing module 42, comprise the second encapsulated type recognition unit 421, the second index generation unit 422, second query unit 423, the second encapsulation converting unit 424 and the second statistics maintenance unit 425, the function of each unit is identical with the function of each corresponding units in first processing module 41, just be used to realize reciprocal encapsulation transfer process, what inquired about is the content of encapsulation conversion table 2.
In sum, existing each gateway device is not supported the conversion between different packing forms, and the scheme of the embodiment of the invention is: receiving data packets; The information of extracting described data message generates index; According to described index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again and sends.Comprise the encapsulation conversion table that encapsulates transitional information because the embodiment of the invention is pre-configured, and behind receiving data packets, can extract relevant information and generate index search encapsulation conversion table, and the data message is encapsulated again and sends, thereby realized conversion between different packing forms according to the encapsulation transitional information.
More than a kind of packaging conversion method and packaging conversion equipment that the embodiment of the invention provided are described in detail, used specific case herein the principle and the execution mode of the embodiment of the invention are set forth, the explanation of above embodiment just is used to help to understand the method and the core concept thereof of the embodiment of the invention; Simultaneously, for one of ordinary skill in the art, according to the thought of the embodiment of the invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (10)

1, a kind of packaging conversion method is characterized in that, comprising:
Receiving data packets;
The information of extracting described data message generates index;
According to described index search encapsulation conversion table, obtain corresponding encapsulation transitional information;
According to described encapsulation transitional information the data message is encapsulated again and sends.
2, packaging conversion method according to claim 1 is characterized in that, the information of described extraction data message generates index and is specially:
Discern the encapsulated type of described data message, extract the pseudo-line information of described data message, generate and comprise encapsulated type and pseudo-line information index according to the encapsulated type that identifies.
3, packaging conversion method according to claim 2 is characterized in that, the encapsulated type of described recognition data message is specially:
Obtain the encapsulated type of data message by the protocol type territory in the analysis data message.
4, packaging conversion method according to claim 2 is characterized in that: the pseudo-line information of described extraction data message specifically refers to:
When the encapsulated type of the data message that identifies is the pseudo-line encapsulation of Internet protocol/User Datagram Protoco (UDP), extract the User Datagram Protoco (UDP) port numbers;
When the encapsulated type of the data message that identifies is the encapsulation of Level 2 Tunnel Protocol puppet line, extract tunnel index and session identification;
When the encapsulated type of the data message that identifies is the encapsulation of multiprotocol label switching puppet line, extract multi-protocol label switching (T-MPLS) label;
When the encapsulated type of the data message that identifies is the encapsulation of Ethernet puppet line, extract the artificial circuit sign.
5, packaging conversion method according to claim 1 is characterized in that:
Described encapsulation conversion table is pre-configured generation, comprises the first encapsulation conversion table and the second encapsulation conversion table, and the conversion encapsulation information of the correspondence of each list item is mutual transformational relation in the described first encapsulation conversion table and the second encapsulation conversion table.
6, packaging conversion method according to claim 1 is characterized in that, the described data message encapsulation again according to the encapsulation transitional information is specially:
According to the translation type in the conversion encapsulation information and new encapsulation header domain information the former encapsulation header territory of data message is replaced to new encapsulation header field.
7, a kind of packaging conversion equipment is characterized in that, comprising:
Receiving port is used for receiving data packets;
Control module is used to dispose and comprises the encapsulation conversion table that encapsulates transitional information;
Processing module, the information that is used to extract the data message that described receiving port receives generates index; Encapsulation conversion table according to described index search control module configuration obtains corresponding encapsulation transitional information; According to described encapsulation transitional information the data message is encapsulated again;
Transmit port is used to send the described data message of encapsulation again.
8, packaging conversion equipment according to claim 7 is characterized in that, described processing module further comprises:
The encapsulated type recognition unit is used for discerning according to the protocol type of data message the encapsulated type of described data message;
The index generation unit is used for extracting according to the encapsulated type that the encapsulated type recognition unit identifies the pseudo-line information of described data message, generates to comprise encapsulated type and pseudo-line information index;
Query unit is used for the described index according to described index generation unit generation, searches the encapsulation conversion table of described control module configuration, obtains corresponding encapsulation transitional information;
The encapsulation converting unit is used for according to described encapsulation transitional information the data message being encapsulated again.
9, packaging conversion equipment according to claim 8 is characterized in that:
Translation type in the encapsulation transitional information that described encapsulation converting unit obtains according to described query unit and new encapsulation header domain information replace to new encapsulation header field with the former encapsulation header territory of data message.
10, according to each described packaging conversion equipment of claim 7 to 9, it is characterized in that described control module further comprises:
The first encapsulation conversion table dispensing unit is used to dispose the first encapsulation conversion table that comprises translation type and new encapsulation header domain information;
The second encapsulation conversion table dispensing unit, the translation type and the new encapsulation header domain information that are used for disposing with the first encapsulation conversion table are that second of mutual transformational relation encapsulates conversion table.
CN2007101058442A 2007-05-30 2007-05-30 Packaging conversion method and packaging conversion equipment Expired - Fee Related CN101316260B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2007101058442A CN101316260B (en) 2007-05-30 2007-05-30 Packaging conversion method and packaging conversion equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2007101058442A CN101316260B (en) 2007-05-30 2007-05-30 Packaging conversion method and packaging conversion equipment

Publications (2)

Publication Number Publication Date
CN101316260A true CN101316260A (en) 2008-12-03
CN101316260B CN101316260B (en) 2012-04-25

Family

ID=40107102

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2007101058442A Expired - Fee Related CN101316260B (en) 2007-05-30 2007-05-30 Packaging conversion method and packaging conversion equipment

Country Status (1)

Country Link
CN (1) CN101316260B (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079717A1 (en) * 2009-12-28 2011-07-07 华为技术有限公司 Message transmitting method, equipment and system
WO2012055247A1 (en) * 2010-10-26 2012-05-03 华为技术有限公司 Pseudo-wire routing diffusion method and device
CN106385361A (en) * 2016-09-05 2017-02-08 申瓯通信设备有限公司 Circuit for realizing SATOP protocol
CN107332610A (en) * 2017-06-23 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of optical-fiber network is registered one's residence the method and apparatus of device forwards protocol massages
CN107925652A (en) * 2016-07-29 2018-04-17 深圳市赛亿科技开发有限公司 A kind of transport protocol fixed conversion method and device based on message protocol identification
CN108667679A (en) * 2017-03-30 2018-10-16 长城汽车股份有限公司 A kind of conversion method and device
CN109246012A (en) * 2017-07-10 2019-01-18 中兴通讯股份有限公司 Message forwarding method, device and computer readable storage medium
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN112039920A (en) * 2020-09-14 2020-12-04 迈普通信技术股份有限公司 Communication method, communication device, electronic device and storage medium
CN114125497A (en) * 2021-11-19 2022-03-01 中国电信集团系统集成有限责任公司 SFU architecture, media transmission method thereof and electronic equipment
WO2022262614A1 (en) * 2021-06-15 2022-12-22 华为技术有限公司 Communication method, apparatus, and system

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625176B (en) * 2003-12-03 2010-04-28 华为技术有限公司 Realization method of edge to edge pseudo-line simulation protocol
CN100391196C (en) * 2004-04-01 2008-05-28 华为技术有限公司 Data exchange method based on virtual local area network
CN100563262C (en) * 2005-07-14 2009-11-25 华为技术有限公司 The pseudo wire emulation devices and methods therefor
EP1917779B1 (en) * 2005-08-26 2012-02-22 Nortel Networks Limited Method for establishing multi segment pseudowire across domains having different pseudowire signaling protocol

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011079717A1 (en) * 2009-12-28 2011-07-07 华为技术有限公司 Message transmitting method, equipment and system
WO2012055247A1 (en) * 2010-10-26 2012-05-03 华为技术有限公司 Pseudo-wire routing diffusion method and device
CN107925652A (en) * 2016-07-29 2018-04-17 深圳市赛亿科技开发有限公司 A kind of transport protocol fixed conversion method and device based on message protocol identification
CN106385361A (en) * 2016-09-05 2017-02-08 申瓯通信设备有限公司 Circuit for realizing SATOP protocol
CN108667679A (en) * 2017-03-30 2018-10-16 长城汽车股份有限公司 A kind of conversion method and device
CN107332610A (en) * 2017-06-23 2017-11-07 青岛海信宽带多媒体技术有限公司 A kind of optical-fiber network is registered one's residence the method and apparatus of device forwards protocol massages
CN109246012A (en) * 2017-07-10 2019-01-18 中兴通讯股份有限公司 Message forwarding method, device and computer readable storage medium
CN110266592A (en) * 2019-06-21 2019-09-20 Ut斯达康通讯有限公司 The communication means and device of SRV6 network and IP MPLS network
CN110266592B (en) * 2019-06-21 2021-07-30 Ut斯达康通讯有限公司 Communication method and device for SRV6 network and IP MPLS network
CN112039920A (en) * 2020-09-14 2020-12-04 迈普通信技术股份有限公司 Communication method, communication device, electronic device and storage medium
WO2022262614A1 (en) * 2021-06-15 2022-12-22 华为技术有限公司 Communication method, apparatus, and system
CN114125497A (en) * 2021-11-19 2022-03-01 中国电信集团系统集成有限责任公司 SFU architecture, media transmission method thereof and electronic equipment

Also Published As

Publication number Publication date
CN101316260B (en) 2012-04-25

Similar Documents

Publication Publication Date Title
CN101316260B (en) Packaging conversion method and packaging conversion equipment
CN102045242B (en) Network communication method and network node equipment
US9432213B2 (en) IP forwarding across a link state protocol controlled ethernet network
CN104243270B (en) A kind of method and apparatus for establishing tunnel
CN100555999C (en) A kind of method and apparatus of realizing edge-to-edge pseudo-line simulation
EP2326059B1 (en) Mapping method, apparatus and system for data transmission
CN101155120B (en) Routing device, routing method and transmission switching network
CN108476160A (en) Based on the tunneling interchanger interconnection of layering overlay
US9444915B2 (en) Method and device for modifying and forwarding message in data communication network
EP3364613B1 (en) Method and device for transmitting traffic via specified path
JP2007201749A (en) Frame transfer device
CN101877728A (en) Method and device for converting and forwarding network addresses
CN101729384A (en) Method, device and system for switching label
CN102946349B (en) A kind of Ethernet E-Line service link discover method based on ospf protocol and device
EP2763355B1 (en) Method for transmitting data in passive optical network, user-side equipment, and system
ATE481799T1 (en) MPLS TRANSPORT NETWORK DIAGRAM
WO2008092357A1 (en) A method and device for establishing a pseudo wire tunnel and transmitting message using it
US10587508B2 (en) Ethernet frame transmission method in software defined networks (SDN)
CN102209034B (en) A kind of two layers of PMTU find method and node
CN104243362A (en) Message forwarding method and device
US8929366B2 (en) Method and apparatus for transporting packets with specific traffic flows having strict packet ordering requirements over a network using multipath techniques
CN102970224B (en) Method compatible with ATM (asynchronous transfer mode) system and based on IP (Internet protocol) switched network for realizing MPLS (multi-protocol label switching) message forwarding
CN110958502B (en) Method and system for realizing intercommunication between different ONUs in same PON
CN101754059B (en) Secondary label forwarding method hierarchically driven by multiple services in optical packet network
CN102882797A (en) VPNv4 or VPNv6 route batch deleting method and PE (Provider Edge)

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120425

Termination date: 20190530

CF01 Termination of patent right due to non-payment of annual fee