Professional Documents
Culture Documents
www.huawei.com
MPLS L2VPN provides layer 2 VPN services on the MPLS network. It allows the establishment of L2VPNs on different media including ATM, FR, VLAN, Ethernet and PPP. For users, the MPLS network is a layer 2 switching network and can be used to establish layer 2 connections between nodes. At the same time, the MPLS network can provide traditional IP services, MPLS L3VPN, traffic engineering and QoS.
Page 1
References
l draft-kompella-l2vpn-l2vpn-01 l draft-martini-l2circuit-encap-mpls-10 l draft-martini-l2circuit-trans-mpls-17
Page 2
Upon completion of this course, you will be able to: [ Providing a architectural overview to MPLS L2 VPN [ Giving a rough discussion to data flow of general MPLS L2 VPN [ Providing a general discussion to Martini and Kompella signaling method
Page 3
Page 4
Traditional L2 VPN
l Leased Line
[ Comparing with LL !lower time construction "lower price [ Providing service on ATM or FR network !while the network need to be set up and maintained separately [ Low speed [ Complicated configuration
Page 5
l MPLS L2 VPN
Tunnel Label
VC Label
Layer2 Header
Data
Customer Site
Tunnel
Customer Site
Pseudo Wires
PE
Customer Site
PE
Customer Site
l The basic principle of all MPLS L2VPN modes, except CCC, is the same as
services to the customer. It seems that CEs are connected directly or connected through layer2 switch networks, such as ATM, FR, Ethernet switch networks.
Page 8
Page 9
Page 10
VLL
l VLL=Virtual Leased Line l VLL provides layer 2 P2P connection between CEs. l Implementation method includes:
Page 11
[ LDP
!
BGP
STATIC-LSP and so on
demultiplexer
Field L2 PDU (Emulated)
[VC Label
!Identify different VC in the same tunnel
Page 12
PDU Structure
0 7 Tunnel Label(LDP or RSVP) VC Label(VC) Rsvd Flags 0 0 Length Layer-2 PDU Tunnel Label /VC Label Control Word Layer-2 Protocol Data Unit 15 EXP EXP 0 1 23 TTL TTL(Set to 2) 31
Sequence Number
Control Word Y N Y N N
All rights reserved Page 13
Sequence Number
Relay frame forwarded without Frame Relay header and FCS ! then control word is necessary.
lFrame
useful information as BECN"FECN" DE and C/R bits are carried through control flags
lThe
Page 14
Chapter 2 VLL
Section 1 CCC Section 2 Martini Section 3 SVC Section 4 Kompella
Page 15
PE
Branch Office A
PE MPLS Network
Headquarter A
Remote Connection
PE
Branch Office A Branch Office A
Local Connection
Page 16
Questions
l When local connection, there use Tunnel label or not?
Page 17
Chapter 2 VLL
Section 1 CCC Section 2 Martini Section 3 SVC Section 4 Kompella
Page 18
Branch Office A
P LS
Branch Office B
PE
MP LS
MPLS Network
Tun
Branch Office A
n el
(L S
P)
PE
Branch Office B
Page 19
[ draft-martini-l2circuit-trans-mpls ! VC label distribution, uses extended LDP [ draft-martini-l2circuit-encap-mpls ! Different encapsulation mechanism for different L2 circuit.
Page 20
Martini Characters
l VC ID is used to identify a VC,VC Type indicates the
encapsulation type.
l Martini Protocol extends LDP by adding VC FEC type including
VC ID and VC Type. One label is allocated for per VC FEC.VC label has only local meanings.
l VC FEC and VC label is exchanged through targeted LDP
Page 21
VC FEC Format
0 0 Label Message(0x0400) Message ID 0 0 FEC TLV(0x0010) VC TLV(0x80) c VC Type Group ID VC ID Interface Parameters 0 0 Generic Label(0x0200) Label Optional Parameters Length Length VC Info Length 15 Message Length 31
Page 22
VC Status
l An In Label is allocated when a LDP VC is configured. l If the Local State is up i.e. l if the interface is up l LDP Session is established l at least one tunnel to destination exists l then a mapping containing L2VPN Info like VC-ID, Interface
Page 23
Label Mapping
PE2 repeats steps 1-5 so that bi-directional label/VCID mappings are established
CE1
2. PE1 starts LDP session with PE2 if one does not already exist
CE2
3. PE1 allocates VC label For new interface & binds To configured VCID
PE1
4. PE1 sends label mapping Message containing VC FEC TLV & VC label TLV
PE2
5. PE2 receives VC FEC TLV & VC label TLV that Matches local VCID
Page 24
Label Withdrawing
l If a PE route detects a condition that affects normal service, it
CE1
CE2
CE port/VC failure triggers Label withdraw Msg
PE1
LDP label withdraw VCID 20 VC label 100
PE2
Page 25
Martini Summary
Page 26
Questions
l
As we know, two CEs which can set up the VPN connection need to be the same encapsulation type and CE ID, then on PE the in and out VC label is the same?
Page 27
Chapter 2 VLL
Section 1 CCC Section 2 Martini Section 3 SVC Section 4 Kompella
Page 28
SVC
l SVC=Static Virtual Circuit l Similar with Martini MPLS L2VPN, the only difference is In and
Out VC Label is allocated manually. Targeted LDP session between two PEs is not needed for VC info exchange.
l VC state only depends on the local state and the tunnel state
PEs.
Page 29
SVC Summary
difference is In and Out VC Label is allocated manually. l Advantages: [ no signaling required. l Disadvantages: [ can not provide local cross function ; the number of SVC is strictly constrained by static label numbers.
Page 30
Chapter 2 VLL
Section 1 CCC Section 2 Martini Section 3 SVC Section 4 Kompella
Page 31
Brach Office A
Headquarter A
PE
Headquarter B
P)
T P LS
un n
S e l (L
PE
MP LS
MPLS Network
Tun
n el
Brach Office A
(L S
P)
PE
Brach Office B l2VPN Instance info distributed by BGP Brach Office B
Page 32
[ draft-martini-l2circuit-encap-mpls
Page 33
CE1 CE2
PE2 receives the Information and checks it and calculate the VC label with it
PE1
PE1 sends out the configured VPN info to neighbors with MP-BGP
PE2 MP-BGP
Page 34
VPN Information
Label Block
PE Label Block 1000 CE1 Label Block1 LB=1000 LR=3 LO=0 1001 1002 1003 CE2 Label Block1 LB=1003 LR=3 LO=0 1004 1005
Block
l Range : number of labels of the
block
l Offset: the sum of all the previous
connect to this CE with a label CE1 Label Block2 LB=1006 selected from one of the label LR=3 LO=3 blocks. block offset <= m < block Means m should be lower than the offset + label-range
total label range counts
Page 35
l Circuit State Vector (CSV): variable TLV, used to identify the status of
circuit.
Page 36
information in a VPN. This extended community must be carried as part of path attribute in all BGP update messages carrying L2VPN NLRIs.
Page 37
VC Label Calculation-1
CE m CE k
L2VPNA (RD RT) CE m label-block : Lm Lm's block offset : LOm label-base : LBm label-range : LRm
PE1 MP-BGP
PE2
L2VPNA (RD RT) CE k label-block : Lk Lk's block offset : LOk label-base : LBk label-range : LRk
Page 38
VC Label Calculation-2
l Check the encapsulation type for VPN A, if does not match stop. (Note
<= k < LOm + LRm. If none found, stop. Otherwise let Lm be the label-block found.
l Search among all the label-blocks of k for one which satisfies LOk <=
m < LOk + LRk. If none found, stop. Otherwise let Lk be the labelblock found.
l The Interface bound with remote CE-m is identified based on the
configuration in remote CE. Then VC label for sending packets to CEm is (LBm + k - LOm) and The VC label on which to expect packets from CE-m is (LBk + m - LOk).
Page 39
VC Calculation Example
II have: have: VPN VPN :: red red CE-id: CE-id: 2 2 Label Label Base: Base: 2000 2000 Label Range: Label Range: 10 10 CE2
201
203 PE2
Tunnel
1002
Payload
Tunnel
3002
Payload
Tunnel
2001 102
Payload
Tunnel
2003 302
Payload
CE1 103 PE1 Tunnel II have: have: VPN VPN :: red red CE-id: CE-id: 1 1 Label Base: Label Base: 1000 1000 Label Label Range: Range: 10 10 3001 Payload Tunnel 1003 PE3 Payload II have: have: VPN VPN :: red red CE-id: CE-id: 3 3 Label Label Base: Base: 3000 3000 Label Range: Label Range: 10 10 301
CE3
Page 40
Kompella Summary
l MP-BGP is used for signaling to transfer layer
Range.
l Advantages:
[ Implementation is complex; Venders who support this are less; Label Wastage.
Page 41
Questions
l
Does the static LSP used by CCC is the same with ordinary static LSP #
Page 42
Scalability
High
High
Page 43
Page 44
Layer 2 Interworking
l As defined so far, all CE-PE connections for a given Layer 2
VPN must use the same layer 2 encapsulation, e.g., they must all be Frame Relay. This is often a burdensome restriction.
CE1 FR Link
ATM Link
CE2
PE1
Outer Label HUAWEI TECHNOLOGIES CO., LTD. VC Label
PE2
Layer3 Header
Data Page 45
Summary
l The function of MPLS L2 VPN l Basic principles of MPLS L2 VPN l Signaling Method
Page 46
Thank You
www.huawei.com