CN101316260B - Package conversion method and package conversion equipment - Google Patents
Package conversion method and package conversion equipment Download PDFInfo
- Publication number
- CN101316260B CN101316260B CN2007101058442A CN200710105844A CN101316260B CN 101316260 B CN101316260 B CN 101316260B CN 2007101058442 A CN2007101058442 A CN 2007101058442A CN 200710105844 A CN200710105844 A CN 200710105844A CN 101316260 B CN101316260 B CN 101316260B
- 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.)
- Expired - Fee Related
Links
- 238000006243 chemical reaction Methods 0.000 title claims abstract description 166
- 238000000034 method Methods 0.000 title claims abstract description 40
- 238000005538 encapsulation Methods 0.000 claims abstract description 279
- 238000004806 packaging method and process Methods 0.000 claims abstract description 69
- 238000012545 processing Methods 0.000 claims abstract description 47
- 239000000284 extract Substances 0.000 claims description 22
- 238000013519 translation Methods 0.000 claims description 8
- 230000003287 optical effect Effects 0.000 claims description 7
- 238000000605 extraction Methods 0.000 claims description 2
- 239000010410 layer Substances 0.000 description 37
- 230000008569 process Effects 0.000 description 19
- 238000012856 packing Methods 0.000 description 16
- 238000012423 maintenance Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 5
- 230000011664 signaling Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 230000009466 transformation Effects 0.000 description 4
- 230000004907 flux Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 101000984710 Homo sapiens Lymphocyte-specific protein 1 Proteins 0.000 description 2
- 102100027105 Lymphocyte-specific protein 1 Human genes 0.000 description 2
- 238000004891 communication Methods 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000011269 treatment regimen Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000007774 longterm Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 239000002356 single layer Substances 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a packaging conversion method, which comprises the following steps: receiving a data message; extracting information of the data message to generate an index; searching an encapsulation conversion table according to the index to obtain corresponding encapsulation conversion information; and repackaging and sending the data message according to the packaging conversion information. The embodiment of the present invention further provides a package conversion device, including: a receiving port for receiving data messages; the control module is used for configuring an encapsulation conversion table containing encapsulation conversion information; the processing module is used for extracting the information of the data message received by the receiving port to generate an index; searching a packaging conversion table configured by the control module according to the index to obtain corresponding packaging conversion information; repackaging the data message according to the encapsulation conversion information; and the sending port is used for sending the repackaged data message. The technical scheme provided by the embodiment of the invention can realize conversion among different packaging forms.
Description
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 Switch Network) 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 (like 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 professional work of the online artificial network of packet switching.
The definition that present IETF PWE3 standard RFC4553 encapsulates for TDM emulation comprises can not know structure time-division multiplex technology encapsulation header (SAToPEncapsulation Header) and packet switching and pseudo-line separating layer head (PSN and PW demultiplexing layer headers) on TDM load (TDM Payload), the packets of information.The TDM artificial service can have four kinds of emulation packaged types at present, is respectively the pseudo-line encapsulation of Internet protocol/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).The first three packaged type 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 (Label Switched 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 in various network, is bringing into play effect separately.But each present gateway device is not supported the conversion between different packing forms; For example certain gateway device can be packaged into the pseudo-line encapsulation of MPLS with TDM source data message; Also can TDM source data message 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, with influencing 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 realizes through following technical scheme:
The embodiment of the invention provides a kind of packaging conversion method, comprising: receiving data packets; The information of extracting said data message generates index; According to said index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to said 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 said receiving port receives generates index; According to said index search control module package configured conversion table, obtain corresponding encapsulation transitional information; According to said encapsulation transitional information the data message is encapsulated again; Transmit port is used to send the said data message of encapsulation again.
The embodiment of the invention provides a kind of gigabit passive optical network GPON network, and said GPON network comprises a packaging conversion equipment; Said packaging conversion equipment comprises: 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 said receiving port receives generates index; According to said index search control module package configured conversion table, obtain corresponding encapsulation transitional information; According to said encapsulation transitional information the data message is encapsulated again; Transmit port is used to send the said data message of encapsulation again.
Above technical scheme can find out that 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 said data message generates index; According to said index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to said 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 according to the encapsulation transitional information data message is encapsulated again and sends, thereby realized the conversion between different packing forms.
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 sketch map of embodiment of the invention packaging conversion equipment;
Fig. 5 is the concrete structure sketch map 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 through 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 said data message of extraction generates index;
First processing module is through 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 said 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 said index search.
Steps A 4, the data message is encapsulated again and sends according to said 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 encapsulation transitional information and new encapsulation header domain information the former encapsulation header field of data message is replaced to new encapsulation header field.After the data message encapsulated again, send through 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.
Can find out from this embodiment; 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 according to the encapsulation transitional information data message is encapsulated again and sends, thereby realized the conversion between different packing forms.
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 through 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/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 the pseudo-line information of then extracting is udp port number; Adopt the pseudo-line encapsulation of L2TPv3 if analyze data message, the pseudo-line information of then extracting is tunnel index and Session ID; Adopt the pseudo-line encapsulation of MPLS if analyze data message, the pseudo-line information of then extracting is the MPLS label; Adopt the pseudo-line encapsulation of ECID if analyze data message, the pseudo-line information of then extracting 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 through 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 can be according to following mode layout:
The pseudo-line encapsulation of 0-IP/UDP (IETF RFC4553 IPv4/IPv6 and UDP (PWdemultiplexing layer) headers);
The pseudo-line encapsulation of 1-L2TPv3 (IETF RFC4553 IPv4/IPv6 and L2TPv3 (PWdemultiplexing layer) headers);
The pseudo-line encapsulation of 2-MPLS (IETF RFC4553 MPLS Label Stack);
The pseudo-line encapsulation of 3-ECID (MEF8 ECID 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 confirmed 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.
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, in encapsulation conversion table 1 and encapsulation conversion table 2, respectively set up a list item, 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, and Dst Mac address refers to medium access control MAC destination address, and 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 in encapsulation conversion table 2, dispose the transformation table entries from 2 types to 0 type.
The concrete operations of control module configuration list item are following: { 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 that the UDPsrc-UDPdst} number is corresponding, dispose following content:
The territory is described in encapsulation: explain 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: reset to 0 to all counters.
The configuration of his-and-hers watches 2: table item index 2, the list item that the LSP1-PW1} number is corresponding, dispose following content:
The territory is described in encapsulation: explain 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: reset to 0 to all counters.
Step B6, judge whether list item is effective,, get into step B7,, get into 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, get into 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 sends the data message forwarding of encapsulation again to corresponding TX port, gets into step B10;
First processing module encapsulates data message according to the specified new packaging information of the list item of finding again; Again in the encapsulation process; Can not know on TDM load (TDM Payload), the packets of information that structure time-division multiplex technology encapsulation header (SAToP Encapsulation Header) is constant, just former encapsulation header field replaced to new encapsulation header field in packet switching and pseudo-line separating layer head (PSN and PW demultiplexing layer headers).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 does not limit.
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 field, 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 field 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 field, 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 field is replaced to the pseudo-line packaging information of L2TPv3 IPv4/IPv6 and L2TPv3 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 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 field, 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 field 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, get into 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.
Can find out from this embodiment; 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 encapsulation transitional informations 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 encapsulated again and sends, thereby realize the 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, can data message 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 field 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; Data message by having now after normal flow will encapsulate again is sent to the TDM equipment of the other end, thereby has 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 equipment such as optical network unit ONU, 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 this time can take on GPON optical distributed network ODN at the center of MPLS network; ONT Optical Network Terminal ONT uses packing forms such as pseudo-line encapsulation of IP/UDP or the pseudo-line encapsulation of ECID; And Application of I WFc equipment is realized the encapsulation conversion on OLT, converts 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 detailed embodiment of the invention packaging conversion method of having introduced, corresponding, the embodiment of the invention provides a kind of packaging conversion equipment, can realize automatic identification and conversion between different emulation packing forms.Among this paper this packaging conversion equipment is called gateway device IWFc.
Seeing also Fig. 4, is the general construction sketch map 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 said receiving port 10 receives generates index; According to said index search control module 30 package configured conversion tables, obtain corresponding encapsulation transitional information; According to said encapsulation transitional information the data message is encapsulated again.Transmit port 20 is used to send the said data message of encapsulation again.
Seeing also Fig. 5, is the concrete structure sketch map 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 encapsulates first processing module 41 after the conversion sends on the network that connects the port, can send the control protocol message of Self Control module 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 encapsulates second processing module 42 after the conversion sends on the network that connects the port, can send the control protocol message of Self Control module 30 simultaneously, for example Routing Protocol and tag distribution protocol LDP signaling 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 the encapsulated type that need change through service edge equipment PE (Provider Edge) negotiations of tag distribution protocol LDP agreement and opposite end, attribute etc.Described Routing Protocol comprises routing information protocol RIP, OSPF OSPF, Border Gateway Protocol (BGP) etc.
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 that is used for disposing and encapsulate conversion table 1 is the encapsulation conversion table 2 of mutual transformational relation with new encapsulation header domain information.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.
Behind the data message that the first encapsulated type recognition unit, 411 reception RX port ones 1 forward, through 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/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 the pseudo-line information of then extracting is udp port number; Adopt the pseudo-line encapsulation of L2TPv3 if analyze data message, the pseudo-line information of then extracting is tunnel index and Session ID; Adopt the pseudo-line encapsulation of MPLS if analyze data message, the pseudo-line information of then extracting is the MPLS label; Adopt the pseudo-line encapsulation of ECID if analyze data message, the pseudo-line information of then extracting 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 through configuration designated treatment pattern, and the present invention does not limit.
The encapsulated type of the table item index that generates number can be according to the pseudo-line encapsulation of following mode layout: 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 confirmed 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.
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; Can not know on TDM load (TDMPayload), the packets of information that structure time-division multiplex technology encapsulation header (SAToP Encapsulation Header) is constant, just former encapsulation header field replaced to new encapsulation header field in packet switching and pseudo-line separating layer head (PSN and PW demultiplexing layer headers).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 field, 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 field is replaced to the pseudo-line packaging information of IP/UDP IPv4/IPv6 and UDP headers in data message packet switching and pseudo-line separating layer head.
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 said data message generates index; According to said index search encapsulation conversion table, obtain corresponding encapsulation transitional information; According to said 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 according to the encapsulation transitional information data message is encapsulated again and sends, thereby realized the conversion between different packing forms.
More than a kind of packaging conversion method and packaging conversion equipment that the embodiment of the invention provided have been carried out detailed introduction; Used concrete example among this paper 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 on embodiment and range of application, all can change, in sum, this description should not be construed as limitation of the present invention.
Claims (6)
1. a packaging conversion method is characterized in that, comprising:
Receiving data packets;
The information of extracting said data message generates index; Specifically comprise: the encapsulated type of discerning said data message; Extract the pseudo-line information of said data message according to the encapsulated type that identifies, generate and comprise encapsulated type and pseudo-line information index, wherein; The pseudo-line information of said extraction data message comprises: when the encapsulated type of the data message that identifies is the pseudo-line encapsulation of Internet protocol/UDP, extract the 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;
According to said index search encapsulation conversion table, obtain corresponding encapsulation transitional information;
According to said encapsulation transitional information the data message is encapsulated again and sends; Wherein, saidly the data message is encapsulated again be specially: the former encapsulation header field of data message is replaced to new encapsulation header field according to the translation type in the encapsulation transitional information and new encapsulation header domain information according to the encapsulation transitional information.
2. packaging conversion method according to claim 1 is characterized in that, the encapsulated type of said recognition data message is specially:
Obtain the encapsulated type of data message through the protocol type territory in the analysis data message.
3. packaging conversion method according to claim 1 is characterized in that:
Said encapsulation conversion table is pre-configured generation, comprises the first encapsulation conversion table and the second encapsulation conversion table, and the encapsulation transitional information of the correspondence of each list item is mutual transformational relation in the said first encapsulation conversion table and the second encapsulation conversion table.
4. a 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 said receiving port receives generates index; According to said index search control module package configured conversion table, obtain corresponding encapsulation transitional information; According to said encapsulation transitional information the data message is encapsulated again;
Transmit port is used to send the said data message of encapsulation again;
Wherein, said 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 said data message;
The index generation unit; Be used for extracting the pseudo-line information of said data message according to the encapsulated type that the encapsulated type recognition unit identifies; Generation comprises encapsulated type and pseudo-line information index; Wherein, the pseudo-line information of extracting data message comprises: when the encapsulated type of the data message that identifies is the pseudo-line encapsulation of Internet protocol/UDP, extract the 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;
Query unit is used for the said index according to said index generation unit generation, searches said control module package configured conversion table, obtains corresponding encapsulation transitional information;
The encapsulation converting unit, the translation type of the encapsulation transitional information that is used for obtaining according to said query unit and new encapsulation header domain information replace to new encapsulation header field with the former encapsulation header field of data message.
5. packaging conversion equipment according to claim 4 is characterized in that, said 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 that is used for disposing with the first encapsulation conversion table is the second encapsulation conversion table of mutual transformational relation with new encapsulation header domain information.
6. a gigabit passive optical network GPON network is characterized in that, said GPON network comprises a packaging conversion equipment; Said packaging conversion equipment comprises:
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 said receiving port receives generates index; According to said index search control module package configured conversion table, obtain corresponding encapsulation transitional information; According to said encapsulation transitional information the data message is encapsulated again; Wherein, The information of extracting said data message generates index and specifically comprises: the encapsulated type of discerning said data message; Extract the pseudo-line information of said data message according to the encapsulated type that identifies, generate and comprise encapsulated type and pseudo-line information index, wherein; The pseudo-line information of extracting data message comprises: when the encapsulated type of the data message that identifies is the pseudo-line encapsulation of Internet protocol/UDP, extract the 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; Wherein, saidly the data message is encapsulated again be specially: the former encapsulation header field of data message is replaced to new encapsulation header field according to the translation type in the encapsulation transitional information and new encapsulation header domain information according to the encapsulation transitional information;
Transmit port is used to send the said data message of encapsulation again.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101058442A CN101316260B (en) | 2007-05-30 | 2007-05-30 | Package conversion method and package conversion equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101058442A CN101316260B (en) | 2007-05-30 | 2007-05-30 | Package conversion method and package conversion equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101316260A CN101316260A (en) | 2008-12-03 |
CN101316260B true 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 | Package conversion method and package conversion equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101316260B (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101741552A (en) * | 2009-12-28 | 2010-06-16 | 华为技术有限公司 | Message transmitting method, equipment and system |
CN102148748B (en) * | 2010-10-26 | 2014-05-21 | 华为技术有限公司 | Method and system for spreading pseudowire routing and sink node equipment |
CN107925652B (en) * | 2016-07-29 | 2021-01-12 | 深圳市赛亿科技开发有限公司 | Fixed conversion method and device of transmission protocol based on message protocol identification |
CN106385361A (en) * | 2016-09-05 | 2017-02-08 | 申瓯通信设备有限公司 | Circuit for realizing SATOP protocol |
CN108667679B (en) * | 2017-03-30 | 2023-05-26 | 长城汽车股份有限公司 | 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 |
CN110266592B (en) * | 2019-06-21 | 2021-07-30 | Ut斯达康通讯有限公司 | Communication method and device for SRV6 network and IP MPLS network |
CN112039920B (en) * | 2020-09-14 | 2022-02-22 | 迈普通信技术股份有限公司 | Communication method, communication device, electronic device and storage medium |
CN115484207A (en) * | 2021-06-15 | 2022-12-16 | 华为技术有限公司 | Communication method, device and system |
CN114125497B (en) * | 2021-11-19 | 2024-05-07 | 中电信数智科技有限公司 | SFU architecture, media transmission method thereof and electronic equipment |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1625176A (en) * | 2003-12-03 | 2005-06-08 | 华为技术有限公司 | Realization method of edge to edge pseudo-line simulation protocol |
CN1677951A (en) * | 2004-04-01 | 2005-10-05 | 华为技术有限公司 | Data exchange method based on virtual local area network |
CN1897592A (en) * | 2005-07-14 | 2007-01-17 | 华为技术有限公司 | Pseudo-line simulator and simulating method |
WO2007022640A1 (en) * | 2005-08-26 | 2007-03-01 | Nortel Networks Limited | Method for establishing multi segment pseudowire across domains having different pseudowire signaling protocol |
-
2007
- 2007-05-30 CN CN2007101058442A patent/CN101316260B/en not_active Expired - Fee Related
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1625176A (en) * | 2003-12-03 | 2005-06-08 | 华为技术有限公司 | Realization method of edge to edge pseudo-line simulation protocol |
CN1677951A (en) * | 2004-04-01 | 2005-10-05 | 华为技术有限公司 | Data exchange method based on virtual local area network |
CN1897592A (en) * | 2005-07-14 | 2007-01-17 | 华为技术有限公司 | Pseudo-line simulator and simulating method |
WO2007022640A1 (en) * | 2005-08-26 | 2007-03-01 | Nortel Networks Limited | Method for establishing multi segment pseudowire across domains having different pseudowire signaling protocol |
Also Published As
Publication number | Publication date |
---|---|
CN101316260A (en) | 2008-12-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101316260B (en) | Package conversion method and package conversion equipment | |
US10243847B2 (en) | Forwarding packets with encapsulated service chain headers | |
CN108702331B (en) | Integration of SR application segments with Service Function Chaining (SFC) header metadata | |
CN102045242B (en) | Network communication method and network node equipment | |
CN104243270B (en) | A kind of method and apparatus for establishing tunnel | |
CN101729384B (en) | Method, device and system for switching label | |
US9432213B2 (en) | IP forwarding across a link state protocol controlled ethernet network | |
CN111713079A (en) | Packet network interworking including segment routing | |
US20150326473A1 (en) | Service Chain Path Route Reservations | |
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 | |
EP3364613B1 (en) | Method and device for transmitting traffic via specified path | |
CN101155120B (en) | Routing device, routing method and transmission switching network | |
WO2008092357A1 (en) | A method and device for establishing a pseudo wire tunnel and transmitting message using it | |
CN101877677B (en) | Tunnel switching method and system for multi-protocol label switching services | |
CN102946349B (en) | A kind of Ethernet E-Line service link discover method based on ospf protocol and device | |
CN102209034B (en) | A kind of two layers of PMTU find method and node | |
EP2763355B1 (en) | Method for transmitting data in passive optical network, user-side equipment, and system | |
ES2825061T3 (en) | Package processing method and package device and system | |
US10587508B2 (en) | Ethernet frame transmission method in software defined networks (SDN) | |
CN102546433A (en) | Data forwarding method based on MPLS (Multi Protocol Label Switching) VPN (Virtual Private Network) and PEs (Provider Edges) | |
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 |
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 |