CN103560940B - Data message transmitting method and equipment - Google Patents
Data message transmitting method and equipment Download PDFInfo
- Publication number
- CN103560940B CN103560940B CN201310533086.XA CN201310533086A CN103560940B CN 103560940 B CN103560940 B CN 103560940B CN 201310533086 A CN201310533086 A CN 201310533086A CN 103560940 B CN103560940 B CN 103560940B
- Authority
- CN
- China
- Prior art keywords
- spe
- label
- data message
- upe
- data
- 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.)
- Active
Links
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The embodiment of the invention discloses a data message transmitting method and device. The data message transmitting method comprises the steps that SPE receives a data message; the SPE extracts first data from the received data message; the SPE inquires a corresponding relation table between VLAN labels and PWs according to the extracted first data, and second data are obtained; the SPE determines PWs between target equipment and the SPE according to the obtained target equipment address and PW labels between the SPE and the target equipment; the SPE transmits the received data message to the SPE of the target equipment according to the determined PWs between the target equipment and the SPE. Thus, the data message transmitting method and device can reduce the limitation on the number of PWs from UPE to the SPE from the number of PWs from the SPE to NPE.
Description
Technical field
The present invention relates to the communications field, more particularly, to data message forwarding method and equipment.
Background technology
Multistage virtual link (multiple segment pseudo wire, ms-pw) characteristic is widely used in mobile carrying
In network, in the mobile office carrying and merging (fixed mobile convergence, fmc) evolution to fixed network and mobile network
In point, ms-pw is also continued to use.
As shown in figure 1, being a kind of current fmc networking topological diagram, in FIG, backbone network edge device (ultimate
Provider edge, upe) under hang switch or pass through Metropolitan Area Network (MAN) and be concurrently accessed multiple business, mobile bearer network is originally only
There is wireless traffic, but to after fmc evolution, comprise G mobile communication (3rd-generation, 3g), Long Term Evolution
Multiple business such as (long term evolution, lte), home business, enterprise etc.;Message increases by one after switch again
Layer VLAN (virtual local area network, vlan) label, adds the internal layer of original identification service
Vlan-label, message synteny two-layer vlan-label enters upe and does virtual link (pseudo wire, pw) forwarding, turns through Tag switching
Send out edge device (switching provider edge, spe) and pass to far-end network lateral edges equipment (network
Provider edge, npe) or spe under hang user equipment (customer edge, ce) equipment.
At present, as a kind of implementation, upe deployment virtual leased link (virtual leased line, vll), adopts
With multiple two layers of vlan-label nested two layers of vlan-label (802.1q-in-802.1q) termination sub-interface binding vll, different
Sub-interface termination internal layer difference vlan-label, is bound different vll respectively, disposes ms-pw scheme, set up the pw of vpls with spe,
And the one-to-one relationship of the pw of the pw between upe to the spe that spe sets up and spe to npe.Using after this technology so that
The flow that prior art enters upe carries two-layer vlan-label and can be correctly processed, and is forwarded on corresponding upe, turns from upe simultaneously
To Downlink Switch or the flow that passes through Metropolitan Area Network (MAN), correct two-layer vlan-label can encapsulated when upe goes out vll.But,
The pw quantity leading to upe to spe need to be kept the quantity of the pw of spe to npe consistent by such deployment, leads to deployment in network
The pw quantity of upe to spe is too many, wastes system resource.
Content of the invention
The embodiment of the present invention provides data message forwarding method and equipment, and the quantity of pw that can reduce spe to npe is to upe
Restriction to the pw quantity of spe.
First aspect present invention provides a kind of data message forwarding method, and it mays include:
Tag switching forwards edge device spe receiving data message;
Described Tag switching forwards edge device spe to extract the first data, institute from the described data message of described reception
State the first data to include: the virtual link pw label between source device address, described spe and described source device, and internal layer is virtual
LAN vlan-label;
Described Tag switching forwards edge device spe according to the described first data query vlan-label of described extraction and pw
Mapping table, obtains the second data, described second data include the destination device address of described data message and described spe with
Pw label between described target device;Wherein, described source device is backbone network edge device upe, and described target device is
Far-end network lateral edges equipment npe;Or, described source device is described npe, and described target device is described upe;
Described Tag switching forward edge device spe according to the described destination device address of described acquisition and described spe with
Pw label between described target device, determines the pw between described target device and described spe;
Described Tag switching forwards edge device spe by between the described target device of described determination and described spe
Pw is by the data message forwarding of described reception to described target device.
In conjunction with a first aspect, in the first feasible embodiment, described Tag switching forwards edge device spe to receive
Before data message, also include:
Between described spe and described upe, a pw is set up by virtual leased link vll;
Described spe sets up a pw by virtual leased link vll respectively and each described npe between.
In conjunction with the first feasible embodiment of first aspect or first aspect, in the feasible embodiment of second
In, before described Tag switching forwards edge device spe receiving data message, also include:
It is pre-configured with described vlan-label and pw mapping table, described vlan-label and pw mapping table include described
First data and the mapping relations of described second data and described first data and described second data.
In conjunction with the first feasible embodiment of first aspect or first aspect, in the third feasible embodiment
In, when described source device is backbone network edge device upe, and described target device is far-end network lateral edges equipment npe, institute
Stating Tag switching forwards edge device spe receiving data message to include:
Described spe by described upe between set up pw receive described data message, described data message is through described
The data message of the sub-interface peeling outer layer vlan-label of upe;
Described Tag switching forwards edge device spe by between the described target device of described determination and described spe
When pw is by the data message forwarding of described reception extremely described npe, also include:
Judge whether described internal layer vlan-label need to be pass-through to described npe, if the judgment is Yes, then in described forwarding
Carry described internal layer vlan-label in data message, if the judgment is No, then remove described in the data message of described forwarding
Internal layer vlan-label.
In conjunction with the first feasible embodiment of first aspect or first aspect, in the 4th kind of feasible embodiment
In, when described source device is described npe, and described target device is described upe, described Tag switching forwards edge device spe
Receiving data message includes:
Described spe by described npe between set up pw receive described data message;
Described Tag switching forwards edge device spe by between the described target device of described determination and described spe
Pw by the data message forwarding of described reception to described upe when, judge whether described internal layer vlan-label need to be pass-through to described
Upe, if the judgment is Yes, then carries described internal layer vlan-label, if the judgment is No, then in the data message of described forwarding
Add new internal layer vlan-label in the data message of described forwarding.
Second aspect present invention provides a kind of Tag switching to forward edge device spe, and it mays include:
Receiver module, for receiving data message;
Extraction module, for extracting the first data from the described data message that described receiver module receives, described first
Data includes: the virtual link pw label between source device address, described spe and described source device, and internal layer VLAN
Vlan-label;
Enquiry module, the described first data query vlan-label for being extracted according to described extraction module is corresponding with pw to close
It is table, obtains the second data, described second data includes destination device address and described spe and the described mesh of described data message
Pw label between marking device;Wherein, described source device is backbone network edge device upe, and described target device is far-end net
Network lateral edges equipment npe;Or, described source device is described npe, and described target device is described upe;
Determining module, for the described destination device address that obtained according to described enquiry module and described spe and described mesh
Pw label between marking device, determines the pw between described target device and described spe;
Sending module, for the pw between the described target device that determined by described determining module and described spe by institute
The data message forwarding stating reception is to described target device.
In conjunction with second aspect, in the first feasible embodiment, described equipment also includes:
Set up module, for a pw being set up by virtual leased link vll between described upe, and respectively with often
Between individual described npe, a pw is set up by virtual leased link vll.
In conjunction with the first feasible embodiment of second aspect or second aspect, in the feasible embodiment of second
In, configuration module, it is used for being pre-configured with described vlan-label and pw mapping table, described vlan-label and pw mapping table
Mapping relations including described first data and described second data and described first data and described second data.
In conjunction with the first feasible embodiment of second aspect or second aspect, in the third feasible embodiment
In, when described source device is backbone network edge device upe, and described target device is far-end network lateral edges equipment npe, institute
State receiver module and receive described data message specifically for the pw setting up between by described upe, described data message is through institute
State the data message of the sub-interface peeling outer layer vlan-label of upe;
Described spe also includes:
Judge module, is used for judging whether described internal layer vlan-label to be pass-through to described npe, if the judgment is Yes,
Then pw between the described target device by described determination and described spe for the described sending module is by the datagram of described reception
When literary composition is forwarded to described npe, carry described internal layer vlan-label, if the judgment is No, then described sending module is by described
When pw between the described target device determining and described spe is by the data message forwarding of described reception extremely described npe, remove institute
State internal layer vlan-label.
In conjunction with the first feasible embodiment of second aspect or second aspect, in the 4th kind of feasible embodiment
In, when described source device be described npe, described target device be described upe when, described receiver module specifically for by with institute
State the pw setting up between npe and receive described data message;
Described spe also includes:
Judge module, is used for judging whether described internal layer vlan-label to be pass-through to described upe, if the judgment is Yes,
Then pw between the described target device by described determination and described spe for the described sending module is by the datagram of described reception
When literary composition is forwarded to described upe, the data message of described forwarding carries described internal layer vlan-label, if the judgment is No, institute
State pw between the described target device by described determination and described spe for the sending module to turn the data message of described reception
When being sent to described upe, the data message of described forwarding adds new internal layer vlan-label.
Therefore, in some feasible embodiments of the present invention, Tag switching forward edge device spe according to
Vlan-label and pw mapping table obtain reflecting of the pw between pw and spe and target device between described spe and source device
Penetrate relation, due to introduce vlan-label and pw corresponding relation so that the application spe and upe between pw and spe and npe
Between pw corresponding relation can be no longer necessary in quantity correspond (such as, the pw between identical spe and upe can basis
The difference of vlan-label and be mapped on the pw between different spe and npe), therefore, the embodiment of the present invention can reduce spe and arrive
The restriction of the pw quantity to upe to spe for the quantity of the pw of npe, and then the quantity of the pw between spe to upe can be reduced, save
Network system resources.
Brief description
Fig. 1 is a kind of current fmc networking topological diagram;
Fig. 2 is the schematic flow sheet of an embodiment of data message forwarding method of the present invention;
Fig. 3 is the structural representation of an embodiment of Tag switching forwarding edge device spe of the present invention;
Fig. 4 is the structural representation of another embodiment of Tag switching forwarding edge device spe of the present invention;
Fig. 5 is the structural representation of another embodiment of Tag switching forwarding edge device spe of the present invention;
Fig. 6 is the structural representation of another embodiment of Tag switching forwarding edge device spe of the present invention.
Specific embodiment
For making the object, technical solutions and advantages of the present invention clearer, below in conjunction with accompanying drawing, the present invention is made into one
Step ground describes in detail.
Fig. 2 is the schematic flow sheet of an embodiment of data message forwarding method of the present invention.As shown in Fig. 2 the present invention
Method may include:
Step s110, Tag switching forwards edge device spe receiving data message.
In implementing, in step s110, the step of spe receiving data message can be at uplink data messages repeating process
In, now, spe can by upe between set up pw receive uplink data messages, described data message can be through described upe
The data message of sub-interface peeling outer layer vlan-label.Certainly, the step of spe receiving data message can be at downlink data message
In repeating process, now, spe can by npe between set up pw receive described data message.
In implementing, the structure deployment of upe and npe of the embodiment of the present invention can be with the deployment phase in mobile based Carrying Scheme
With that is, upe sets up pw using vll and spe, and upe adopts a sub-interface (two layers of vlan-label two layers of vlan (802.1q- of nesting
In-802.1q, qinq) terminate sub-interface or common sub-interface, and wherein said qinq termination sub-interface can be symmetric pattern
The qinq termination sub-interface of qinq termination sub-interface or asymmetric mode) bind described vll, when upe receives band from switch
Have inside and outside two-layer vlan-label data message when, outer layer vlan-label is peeled off by described sub-interface, retains internal layer vlan
Label is transparent to spe.Accordingly, when npe needs forwarding data packets, can be according to the interface type of the locally configured vll of npe
Do data forwarding, detailed process is identical with the data message forwarding of npe in mobile based Carrying Scheme, and here is not repeated.
Step s111, described Tag switching forwards edge device spe to extract the from the described data message of described reception
One data, described first data includes: the virtual link pw label between source device address, described spe and described source device, and
Internal layer VLAN vlan-label.
Step s112, described Tag switching forwards edge device spe according to described first data query of described extraction
Vlan-label and pw mapping table, obtain the second data, and described second data includes the target device ground of described data message
Pw label between location and described spe and described target device;Wherein, described source device is backbone network edge device upe, institute
Stating target device is far-end network lateral edges equipment npe;Or, described source device is described npe, and described target device is described
upe.
In implementing, spe can be pre-configured with described vlan-label and pw mapping table, institute before step s110
State vlan-label and pw relation table includes described first data and described second data and described first data and described second
The mapping relations of data.Such as, spe can configure following corresponding relation:
List item 1:mpls switch-l2vc 1.1.1.9 100between 3.3.3.9 100encapsulation
vlan lining-vlan 20;
List item 2:mpls switch-l2vc 1.1.1.9 100between 4.4.4.9 200encapsulation
vlan lining-vlan 30reserve;
Wherein, the implication of list item 1 is: the pw label between upe and spe that source device address is 1.1.1.9 is 100
The internal layer vlan-label carrying on pw is 20 data message, is the pw between npe and spe of 3.3.3.9 by destination address
Label be 100 pw be forwarded to destination address be 3.3.3.9 npe.First data of list item 1 includes: source device address is
1.1.1.9 upe, the pw label 100 between upe and spe, vpn label 20;Include with the second data of the first data mapping:
Destination address is the npe of 3.3.3.9, and the pw label between npe and spe is 100.The implication of list item 2 is: source device address is
1.1.1.9 the pw label between upe and spe be 100 pw on the internal layer vlan-label that carries be 30 data message, pass through
Destination address be 4.4.4.9 npe and spe between pw label be 200 pw be forwarded to destination address be 4.4.4.9 npe.
First data of list item 2 includes: source device address is the upe of 1.1.1.9, the pw label 100 between upe and spe, vpn label
30;Include with the second data of the first data mapping: destination address is the npe of 4.4.4.9, the pw label between npe and spe is
200.From list item 1 and list item 2, after the vlan-label using the embodiment of the present invention and pw relation table, according to the first number
According to the difference of the vlan-label including, between embodiment of the present invention source device and spe, identical pw maps to different mesh
On pw between marking device and spe.
Therefore, when embodiment of the present invention introducing vlan-label is as the mapping foundation between pw, the present invention is implemented
The quantity of the pw between upe and spe of example can not need the quantity of the pw and npe and spe between again to keep one-to-one pass
It is.In fact, the pw quantity between upe and spe can be only one in the embodiment of the present invention.Such as, as a kind of feasible
Embodiment, before step s110, is built by virtual leased link vll between spe described in the embodiment of the present invention and described upe
A vertical pw;Described spe sets up a pw by virtual leased link vll respectively and each described npe between.So, this
In bright embodiment, the corresponding relation of the pw between pw and spe between spe and upe and npe can be one-to-many.
The embodiment of the present invention after pre-configured described vlan-label and pw mapping table, in step s112, then
Can according to described vlan-label and pw mapping table obtain the destination device address of described data message and described spe with described
Pw label between target device.Such as it is assumed that in step s110, the pw label that spe passes through to set up between spe and upe is 100
Pw receive source device address be 1.1.1.9 upe send uplink data messages, the internal layer vlan-label of described data message
When (usually service label) is 20, in step s112, by the above-mentioned list item 1 of inquiring about vlan-label and pw mapping table just
The destination device address that described data message can be got is 3.3.3.9, described spe and described address be 3.3.3.9 npe it
Between forward described data message pw pw label be 100.There are these information, spe just can smoothly forward the packet to correct
Target device.
Step s113, described Tag switching forward edge device spe according to the described destination device address of described acquisition and
Pw label between described spe and described target device, determines the pw between described target device and described spe.
Step s114, described Tag switching forward edge device spe by the described target device of described determination with described
Pw between spe is by the data message forwarding of described reception to described target device.
Description with reference to step s112 understands, when the destination device address getting described data message and described spe with
Pw label between described target device, just can determine that the pw between target device and described spe in step s113, and in step
Rapid s114 just can smoothly complete the forwarding of data message.
In implementing, according to the difference of source device and target device, the data message forwarding slightly difference of step s114,
Such as, when described source device is backbone network edge device upe, and described target device is far-end network lateral edges equipment npe,
In step s114, described Tag switching forwards edge device spe by between the described target device of described determination and described spe
Pw by the data message forwarding of described reception to described npe when, judge whether described internal layer vlan-label need to be pass-through to institute
State npe, if the judgment is Yes, then carry described internal layer vlan-label in the data message of described forwarding, if the judgment is No,
In the data message of described forwarding, then remove described internal layer vlan-label.In implementing, the internal layer vlan that upe forwards
The basis for estimation whether label also needs to be transparent to npe can determine according to the configuration of npe, if npe configuration needs in transparent transmission
Then in step s114, spe carries described content vlan-label in the data message forwarding to layer vlan-label, conversely, then spe exists
Described internal layer vlan-label is not carried in the data message forwarding.For another example, when described source device is described npe, described target sets
For during for described upe, in step s114, described Tag switching forwards edge device spe to set by the described target of described determination
When pw between standby and described spe is by the data message forwarding of described reception extremely described upe, judging whether need to be by described internal layer
Vlan-label is pass-through to described upe, if the judgment is Yes, then carries described internal layer vlan mark in the data message of described forwarding
Sign, if the judgment is No, then add new internal layer vlan-label in the data message of described forwarding.
Therefore, in some feasible embodiments of the present invention, Tag switching forward edge device spe according to
Vlan-label and pw mapping table obtain reflecting of the pw between pw and spe and target device between described spe and source device
Penetrate relation, due to introduce vlan-label and pw corresponding relation so that the application spe and upe between pw and spe and npe
Between pw corresponding relation can be no longer necessary in quantity correspond (such as, the pw between identical spe and upe can basis
The difference of vlan-label and be mapped on the pw between different spe and npe), therefore, the embodiment of the present invention can reduce spe and arrive
The restriction of the pw quantity to upe to spe for the quantity of the pw of npe, and then the quantity of the pw between spe to upe can be reduced, save
Network design cost.
Fig. 3 is the structural representation of an embodiment of Tag switching forwarding edge device spe of the present invention.As shown in figure 3,
The spe of the present invention at least may include receiver module 31, extraction module 32, enquiry module 33, determining module 34 and sending module
35, wherein:
Receiver module 31, for receiving data message.
In implementing, receiver module 31 receiving data message can be at, in uplink data messages repeating process, now, connecing
Receive module 31 can by upe between set up pw receive uplink data messages, described data message can be that the son through described upe connects
The data message of mouth peeling outer layer vlan-label.Certainly, receiver module 31 receiving data message can be at downlink data message
In repeating process, now, receiver module 31 can by npe between set up pw receive described data message.
In implementing, the structure deployment of upe and npe of the embodiment of the present invention can be with the deployment phase in mobile based Carrying Scheme
With, that is, upe sets up pw using vll and spe, upe adopt a sub-interface (qinq termination sub-interface or common sub-interface, wherein
Described qinq terminate sub-interface can be symmetric pattern qinq termination combine or asymmetric mode qinq termination sub-interface) tie up
Fixed described vll, when upe receives the data message with inside and outside two-layer vlan-label from switch, by described sub-interface
Peel off outer layer vlan-label, retain internal layer vlan-label and be transparent to spe.Accordingly, when npe needs forwarding data packets,
Data forwarding, detailed process and the data moving npe in based Carrying Scheme can be done according to the interface type of the locally configured vll of npe
Message forwarding is identical, and here is not repeated.
Extraction module 32, for extracting the first data from the described data message that described receiver module receives, described
One data includes: the virtual link pw label between source device address, described spe and described source device, and internal layer virtual local area
Net vlan-label.
Enquiry module 33, for the described first data query vlan-label that extracted according to described extraction module 32 and pw pair
Answer relation table, obtain the second data, described second data includes destination device address and described spe and the institute of described data message
State the pw label between target device;Wherein, described source device is backbone network edge device upe, and described target device is remote
End network side edge device npe;Or, described source device is described npe, and described target device is described upe.
In implementing, as shown in figure 4, the spe of the embodiment of the present invention may also include that configuration module 30, for joining in advance
Put described vlan-label and pw mapping table, described vlan-label and pw relation table include described first data and described second
Data and the mapping relations of described first data and described second data.Such as, spe can configure following corresponding relation list item:
List item 1:mpls switch-l2vc 1.1.1.9 100between 3.3.3.9 100encapsulation
vlan lining-vlan 20;
List item 2:mpls switch-l2vc 1.1.1.9 100between 4.4.4.9 200encapsulation
vlan lining-vlan 30reserve;
Wherein, the implication of list item 1 is: the pw label between upe and spe that source device address is 1.1.1.9 is 100
The internal layer vlan-label carrying on pw is 20 data message, is the pw between npe and spe of 3.3.3.9 by destination address
Label be 100 pw be forwarded to destination address be 3.3.3.9 npe.First data of list item 1 includes: source device address is
1.1.1.9 upe, the pw label 100 between upe and spe, vpn label 20;Include with the second data of the first data mapping:
Destination address is the npe of 3.3.3.9, and the pw label between npe and spe is 100.The implication of list item 2 is: source device address is
1.1.1.9 the pw label between upe and spe be 100 pw on the internal layer vlan-label that carries be 30 data message, pass through
Destination address be 4.4.4.9 npe and spe between pw label be 200 pw be forwarded to destination address be 4.4.4.9 npe.
First data of list item 2 includes: source device address is the upe of 1.1.1.9, the pw label 100 between upe and spe, vpn label
30;Include with the second data of the first data mapping: destination address is the npe of 4.4.4.9, the pw label between npe and spe is
200.From list item 1 and list item 2, after the vlan-label using the embodiment of the present invention and pw relation table, according to the first number
According to the difference of the vlan-label including, between embodiment of the present invention source device and spe, identical pw maps to different mesh
On pw between marking device and spe.Therefore, when the embodiment of the present invention introduces vlan-label as the mapping foundation between pw
When, the quantity of the pw between upe and spe of the embodiment of the present invention can not need the quantity of the pw and npe and spe between again to keep
One-to-one relation.In fact, the pw quantity between upe and spe can be only one in the embodiment of the present invention.Such as, make
For a kind of feasible embodiment, the spe of the embodiment of the present invention may also include that
Set up module (not shown), for a pw being set up by virtual leased link vll between described upe, and
For a pw being set up by virtual leased link vll and each described npe between respectively.So, spe in the embodiment of the present invention
The corresponding relation of the pw between pw and spe and upe between and npe can be one-to-many.
The embodiment of the present invention after pre-configured described vlan-label and pw mapping table, then may be used by enquiry module 33
Obtained between destination device address and described spe and the described target device of described data message according to described vlan-label and pw
Pw label.Such as it is assumed that receiver module 31 receives source device ground by the pw that the pw label set up between spe and upe is 100
Location is the uplink data messages of the upe transmission of 1.1.1.9, the internal layer vlan-label (usually service label) of described data message
During for 20, enquiry module 33 just can get described number by inquiring about the above-mentioned list item 1 of vlan-label and pw mapping table
Destination device address according to message is 3.3.3.9, forwards described data between described spe and the npe that described address is 3.3.3.9
The pw label of the pw of message is 100.There are these information, spe just can smoothly forward the packet to correct target device.
Determining module 34, for the described destination device address that obtained according to described enquiry module 33 and described spe and institute
State the pw label between target device, determine the pw between described target device and described spe.
Sending module 35, for by determined by described determining module 34 between described target device and described spe
Pw is by the data message forwarding of described reception to described target device.
The description of reference pair enquiry module 33 understands, when the destination device address getting described data message and described
Pw label between spe and described target device, determining module 34 just can determine that the pw between target device and described spe, with
And sending module 35 just can smoothly complete the forwarding of data message.
In implementing, according to the difference of source device and target device, the data message forwarding that sending module 35 sends is slightly
Variant, such as, when described source device is backbone network edge device upe, described target device sets for far-end network lateral edges
During standby npe, as shown in figure 5, the spe of the embodiment of the present invention may also include that judge module 36, being used for judging whether need to will be described interior
Layer vlan-label is pass-through to described npe, and if the judgment is Yes, then described sending module 35 is being determined by described determining module 34
Described target device and described spe between pw by the data message forwarding of described reception to described npe when, carry described interior
Layer vlan-label, if the judgment is No, then described sending module 35 is set in the described target being determined by described determining module 34
When pw between standby and described spe is by the data message forwarding of described reception extremely described npe, remove described internal layer vlan-label.
When described source device is described npe, and described target device is described upe, described judge module 36 is specifically for judging whether
Described internal layer vlan-label need to be pass-through to described upe, if the judgment is Yes, then described sending module 35 is by described determination
When pw between the described target device of module 34 determination and described spe is by the data message forwarding of described reception extremely described upe,
Carry described internal layer vlan-label in the data message of described forwarding, if the judgment is No, described sending module 35 is passing through
Pw between the described target device of described determining module 34 determination and described spe is by the data message forwarding of described reception to institute
When stating upe, the data message of described forwarding adds new internal layer vlan-label.
Therefore, in some feasible embodiments of the present invention, Tag switching forward edge device spe according to
Vlan-label and pw mapping table obtain reflecting of the pw between pw and spe and target device between described spe and source device
Penetrate relation, due to introduce vlan-label and pw corresponding relation so that the application spe and upe between pw and spe and npe
Between pw corresponding relation can be no longer necessary in quantity correspond (such as, the pw between identical spe and upe can basis
The difference of vlan-label and be mapped on the pw between different spe and npe), therefore, the embodiment of the present invention can reduce spe and arrive
The restriction of the pw quantity to upe to spe for the quantity of the pw of npe, and then the quantity of the pw between spe to upe can be reduced, save
Network design cost.
Fig. 6 is the structural representation of an embodiment of Tag switching forwarding edge device spe of the present invention.The present embodiment with
In Fig. 3-Fig. 5, the difference of any one described embodiment is that show is the hardware module composition structure of equipment.As Fig. 6
Shown, the Tag switching of the present invention forwards edge device spe to may include: reception device 61, dispensing device 62 on hardware composition
With processor 63, wherein: the function achieved by reception device 61 is basically identical with aforesaid receiver module 31, dispensing device 62
Achieved function is basically identical with aforesaid sending module 33, and processor 63 is used for implementing to remove receiver module in aforementioned means
The function of being completed with other modules outside sending module, therefore, herein no longer to reception device 61, dispensing device 62 and
The functional realiey details of processor 63 is repeated.
Enumerated above be only present pre-ferred embodiments, certainly the right model of the present invention can not be limited with this
Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is covered.
Claims (10)
1. a kind of data message forwarding method is it is characterised in that include:
Tag switching forwards edge device spe receiving data message;
Described Tag switching forwards edge device spe to extract the first data from the described data message of described reception, and described the
One data includes: the virtual link pw label between source device address, described spe and described source device, and internal layer virtual local area
Net vlan-label;
Described Tag switching forwards edge device spe corresponding with pw according to the described first data query vlan-label of described extraction
Relation table, obtains the second data, described second data include the destination device address of described data message and described spe with described
Pw label between target device;Wherein, described source device is backbone network edge device upe, and described target device is far-end
Network side edge device npe;Or, described source device is described npe, and described target device is described upe;
Described Tag switching forward edge device spe according to the described destination device address of described acquisition and described spe with described
Pw label between target device, determines the pw between described target device and described spe;
Described Tag switching forwards edge device spe to pass through the pw general between the described target device of described determination and described spe
The data message forwarding of described reception is to described target device.
2. data message forwarding method as claimed in claim 1 is it is characterised in that described Tag switching forwards edge device
Before spe receiving data message, also include:
Between described spe and described upe, a pw is set up by virtual leased link vll;
Described spe sets up a pw by virtual leased link vll respectively and each described npe between.
3. data message forwarding method as claimed in claim 1 or 2 it is characterised in that
Before described Tag switching forwards edge device spe receiving data message, also include:
It is pre-configured with described vlan-label and pw mapping table, described vlan-label and pw mapping table include described first
Data and the mapping relations of described second data and described first data and described second data.
4. data message forwarding method as claimed in claim 1 or 2 is it is characterised in that working as described source device is backbone network
Edge device upe, when described target device is far-end network lateral edges equipment npe, described Tag switching forwards edge device spe
Receiving data message includes:
Described spe by described upe between set up pw receive described data message, described data message is through described upe
The data message of sub-interface peeling outer layer vlan-label;
Described Tag switching forwards edge device spe to pass through the pw general between the described target device of described determination and described spe
When the data message forwarding of described reception is to described npe, also include:
Judge whether described internal layer vlan-label need to be pass-through to described npe, if the judgment is Yes, then in the data of described forwarding
Carry described internal layer vlan-label in message, if the judgment is No, then remove described internal layer in the data message of described forwarding
Vlan-label.
5. data message forwarding method as claimed in claim 1 or 2 it is characterised in that when described source device be described npe,
When described target device is described upe, described Tag switching forwards edge device spe receiving data message to include:
Described spe by described npe between set up pw receive described data message;
Described Tag switching forwards edge device spe to pass through the pw general between the described target device of described determination and described spe
When the data message forwarding of described reception is to described upe, judge whether described internal layer vlan-label need to be pass-through to described upe,
If the judgment is Yes, then carry described internal layer vlan-label in the data message of described forwarding, if the judgment is No, then in institute
Add new internal layer vlan-label in the data message stating forwarding.
6. a kind of Tag switching forwards edge device spe it is characterised in that including:
Receiver module, for receiving data message;
Extraction module, for extracting the first data, described first data from the described data message that described receiver module receives
Including: the virtual link pw label between source device address, described spe and described source device, and internal layer VLAN vlan
Label;
Enquiry module, for the described first data query vlan-label that extracted according to described extraction module and pw corresponding relation
Table, obtains the second data, and described second data includes destination device address and described spe and the described target of described data message
Pw label between equipment;Wherein, described source device is backbone network edge device upe, and described target device is far-end network
Lateral edges equipment npe;Or, described source device is described npe, and described target device is described upe;
Determining module, described destination device address and described spe for being obtained according to described enquiry module are set with described target
Pw label between standby, determines the pw between described target device and described spe;
Sending module, is connect described for the pw between the described target device that determined by described determining module and described spe
The data message forwarding received is to described target device.
7. Tag switching as claimed in claim 6 forwards edge device spe it is characterised in that also including:
Set up module, for a pw being set up by virtual leased link vll between described upe, and respectively with each institute
State, between npe, a pw is set up by virtual leased link vll.
8. Tag switching as claimed in claims 6 or 7 forward edge device spe it is characterised in that
Configuration module, is used for being pre-configured with described vlan-label and pw mapping table, described vlan-label and pw corresponding relation
Table includes described first data and the mapping relations of described second data and described first data and described second data.
9. Tag switching as claimed in claims 6 or 7 forwards edge device spe it is characterised in that working as described source device is bone
Dry network edge device upe, described target device be far-end network lateral edges equipment npe when, described receiver module specifically for
The pw setting up between by described upe receives described data message, and described data message is that the sub-interface stripping through described upe is outer
The data message of layer vlan-label;
Described spe also includes:
Judge module, is used for judging whether described internal layer vlan-label to be pass-through to described npe, if the judgment is Yes, then institute
State pw between the described target device by described determination and described spe for the sending module to turn the data message of described reception
When being sent to described npe, carry described internal layer vlan-label, if the judgment is No, then described sending module is by described determination
Described target device and described spe between pw by the data message forwarding of described reception to described npe when, remove described interior
Layer vlan-label.
10. Tag switching as claimed in claims 6 or 7 forwards edge device spe it is characterised in that when described source device is
Described npe, when described target device is described upe, described receiver module connects specifically for the pw setting up between by described npe
Receive described data message;
Described spe also includes:
Judge module, is used for judging whether described internal layer vlan-label to be pass-through to described upe, if the judgment is Yes, then institute
State pw between the described target device by described determination and described spe for the sending module to turn the data message of described reception
When being sent to described upe, the data message of described forwarding carries described internal layer vlan-label, if the judgment is No, described
Send pw between the described target device by described determination and described spe for the module by the data message forwarding of described reception extremely
During described upe, the data message of described forwarding adds new internal layer vlan-label.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310533086.XA CN103560940B (en) | 2013-10-31 | 2013-10-31 | Data message transmitting method and equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201310533086.XA CN103560940B (en) | 2013-10-31 | 2013-10-31 | Data message transmitting method and equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103560940A CN103560940A (en) | 2014-02-05 |
CN103560940B true CN103560940B (en) | 2017-01-18 |
Family
ID=50015093
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201310533086.XA Active CN103560940B (en) | 2013-10-31 | 2013-10-31 | Data message transmitting method and equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN103560940B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112769669B (en) * | 2020-12-23 | 2022-02-22 | 迈普通信技术股份有限公司 | Message forwarding method and network equipment |
CN113904927A (en) * | 2021-09-18 | 2022-01-07 | 中盈优创资讯科技有限公司 | Method and device for optimizing issuing efficiency of IPRAN (internet protocol radio Access network) private line service configuration |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1905509A (en) * | 2006-08-03 | 2007-01-31 | 华为技术有限公司 | Method and system of user access virtual special LAN service |
CN101227409A (en) * | 2008-02-03 | 2008-07-23 | 华为技术有限公司 | System, equipment and method for forwarding message |
CN101335708A (en) * | 2008-08-06 | 2008-12-31 | 杭州华三通信技术有限公司 | Packet forwarding method and operator edge converging equipment |
CN101505227A (en) * | 2009-03-11 | 2009-08-12 | 华为技术有限公司 | Method, device and system for implementing point to multi-point pseudowire |
CN101719857A (en) * | 2009-12-16 | 2010-06-02 | 中兴通讯股份有限公司 | Asymmetric PW-based VPLS network access method and asymmetric PW-based VPLS network access system |
CN102025586A (en) * | 2009-09-09 | 2011-04-20 | 华为技术有限公司 | Intercommunicating method, device and system for multiple protocol label switching network and Ethernet |
CN102833084A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method and system for realizing circuit emulation service in passive optical network |
CN103326918A (en) * | 2013-05-17 | 2013-09-25 | 杭州华三通信技术有限公司 | Message forwarding method and message forwarding equipment |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8213435B2 (en) * | 2005-04-28 | 2012-07-03 | Cisco Technology, Inc. | Comprehensive model for VPLS |
-
2013
- 2013-10-31 CN CN201310533086.XA patent/CN103560940B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1905509A (en) * | 2006-08-03 | 2007-01-31 | 华为技术有限公司 | Method and system of user access virtual special LAN service |
CN101227409A (en) * | 2008-02-03 | 2008-07-23 | 华为技术有限公司 | System, equipment and method for forwarding message |
CN101335708A (en) * | 2008-08-06 | 2008-12-31 | 杭州华三通信技术有限公司 | Packet forwarding method and operator edge converging equipment |
CN101505227A (en) * | 2009-03-11 | 2009-08-12 | 华为技术有限公司 | Method, device and system for implementing point to multi-point pseudowire |
CN102025586A (en) * | 2009-09-09 | 2011-04-20 | 华为技术有限公司 | Intercommunicating method, device and system for multiple protocol label switching network and Ethernet |
CN101719857A (en) * | 2009-12-16 | 2010-06-02 | 中兴通讯股份有限公司 | Asymmetric PW-based VPLS network access method and asymmetric PW-based VPLS network access system |
CN102833084A (en) * | 2011-06-15 | 2012-12-19 | 中兴通讯股份有限公司 | Method and system for realizing circuit emulation service in passive optical network |
CN103326918A (en) * | 2013-05-17 | 2013-09-25 | 杭州华三通信技术有限公司 | Message forwarding method and message forwarding equipment |
Also Published As
Publication number | Publication date |
---|---|
CN103560940A (en) | 2014-02-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101667969B (en) | Method of accessing IP/L3VPN network of L2VPN network and device thereof | |
CN102347889B (en) | Message forwarding method, system and device in H-VPLS (Hierarchical Virtual Private local area network service) | |
CN103490967A (en) | Alias and TRILL message processing method and device | |
CN204652411U (en) | A kind of coupling networking based on smart machine | |
CN103731349B (en) | Message forwarding method and edge device between a kind of Ethernet virtualization interconnection neighbours | |
CN106559302A (en) | Single tunnel method for building up, device and system | |
CN100393062C (en) | Method for core network access to multi-protocol sign exchange virtual special network | |
US8964749B2 (en) | Method, device and system for establishing a pseudo wire | |
CN103067278B (en) | A kind of method for transmission processing of Frame, equipment and system | |
CN102571375B (en) | Multicast forwarding method and device as well as network device | |
CN106941437A (en) | A kind of information transferring method and device | |
CN103973569A (en) | Data message forwarding method, customer premises equipment and system | |
CN110198229A (en) | Network collocating method and device, storage medium and electronic device | |
CN103209125B (en) | A kind of transmission method of label information and equipment | |
JP2017532875A (en) | Data exchange method, baseband processing unit, wireless remote unit and relay unit | |
CN103560940B (en) | Data message transmitting method and equipment | |
CN103269300B (en) | A kind of method and apparatus of realizing heterogeneous network internetworking | |
CN102136981A (en) | Method for realizing E-Tree (Ethernet tree) service in Ethernet and related device | |
CN103796191A (en) | Method, device and terminal for sending data to user terminal | |
CN104639442A (en) | Message processing method and message processing device | |
CN104079485B (en) | It is a kind of to transmit the method and device specified and turn originator information | |
CN102742317B (en) | Communication system, communication method and communication apparatus | |
CN101355514B (en) | Method for transmitting data packet with VLAN label in two-layer VPN | |
CN103491103B (en) | The method for building up of multi-segment pseudo-wires and system and device | |
WO2012000436A1 (en) | Method and system for managing protocol connection in pbb network and beb node |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |