Académique Documents
Professionnel Documents
Culture Documents
Deep Dive
Muhammad Durrani
CCIE # 12521
Technical Leader , Cisco Systems Inc.
Session Number
Presentation_ID © 2003 Cisco Systems, Inc. All rights reserved. 1
Agenda
Ethernet/ATM/FR 2 VPWS/VPLS
GRE/UTI/L2TPv3 3 IP Tunnel
IP 3 MP-BGP/RFC2547
IP 3 IPSec
Presentation_ID 4
VPN Deployments Today
Technology & VPN Diversity
FR/ATM FR/ATM
Broadband ATM Broadband
FR/ATM FR/ATM
Broadband Broadband
Ethernet Ethernet
Presentation_ID 6
Why is L2VPN needed?
• Allows SP to have a single infrastructure for both IP
and legacy services
• Migration
• Provisioning is incremental
• Network Consolidation
• Capital and Operational savings
• Customer can have their own routing, qos policies,
security mechanisms, etc
• Layer 3 (IPv4, IPX, OSPF, BGP, etc …) on CE routers is
transparent to MPLS core
• CE1 router sees CE2 router as next-hop
• No routing involved with MPLS core
• Open architecture and vendor interoperability
Presentation_ID 7
Layer 3 and Layer 2 VPN Characteristics
LAYER 3 VPNs LAYER 2 VPNs
1. Packet based forwarding 1. Frame Based forwarding e.g.
e.g. IP DLCI,VLAN, VPI/VCI
2. SP is involved (routing) 2. No SP involvement (Routing)
3. IP specific 3. Multiprotocol support
4. Example: RFC 2547bis VPNs 4. Example: FR—ATM—Ethernet
(L3 MPLS-VPN)
P2MP/
Like-to-like -or- Like-to-like -or-
MP2MP
Any-to-Any. P2P Any-to-Any. P2P
Ethernet
Ethernet Ethernet
Presentation_ID 9
Pseudo Wire Reference Model
Customer Customer
Site Site
MPLS or IP core AC2
AC1
Pseudo Wires
SJC Vegas
AC3 AC4
Customer Customer
Site Site
Emulated Service
Presentation_ID 10
L2VPN – Label Stacking
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
Presentation_ID 11
Generic Control Word:
VC Information Fields
Control Word
bits 4 4 8 16
3. Control 3. Control
3. Signaling (LDP) Primary
Primary Plane Plane
PE1 PE2
P1 P3
CE1 CE2
Site1 Primary
Primary Site2
P2 P4
3. PE2
1. Provision matches its
AC & PW VCID to one
received
Uni-directional PW LSP Established
Presentation_ID 15
L2VPN Transports Service:
Reference Model
End-to-end L2VPN VCs
Pair of Uni-directional
Bi-directional
PW LSPs Bi-directional
Ethernet Ethernet
ATM ATM
FR FR
CE-1 PPP CE-2
PPP
HDLC HDLC
PE1 PE2
Tunnel LSP
Presentation_ID 18
VPLS Standards
IETF PWE3 WG
Pseudo Wire Emulation Edge to Edge
Focused on Point-to-Point “circuit” emulation for L2 transport
over packet networks
PSN tunnel -> GRE, MPLS, L2TP
Service -> Ethernet, ATM, PPP, FR, HDLC and so forth
IETF L2VPN WG
Virtual Private LAN Services (VPLS)
Emulate a big-fat virtual Layer-2 Switch
Also builds on L2 pseudowires
Multipoint to multipoint
Source Address learning, MAC-based forwarding
Virtual Private Wire-Services (VPWS)
Collection of L2 circuits or pseudowires
Point to point service
Presentation_ID 19
VPLS Architectures
Presentation_ID 20
What’s VPLS (Virtual Private LAN Services) ?
VC (virtual circuit)
PE PE
CE CE
MPLS
PE
CE
• End-to-end architecture that allows IP/MPLS networks to provide
multipoint Ethernet services
• Virtual – multiple instances of this services share the same SP
physical infrastructure
• Private – each instance of the service is independent and isolated
from one another
• LAN service – provides a multipoint connectivity among the
participant endpoints across a MAN/WAN that looks like a LAN
Presentation_ID 21
VPLS Components (1)
Tunnel LSP PW
PW
P
Tu
LS
n-PE
nn
el
el
Red VSI Red VSI
nn
LS
Tu
P
CE
Red VSI
Legend
• CE—Customer Edge Device; used to connect to the SP’s network
• n-PE—Network facing-Provider Edge; acts as a gateway between the MPLS core and edge domain
• VSI/VFI—Virtual Switching/Forwarding Instance; describes an Ethernet bridge function within the
n-PE; the VSI/VFI terminates the Pseudowire
• PW—Pseudowire; a PW connects two VSI’s; Consists of a pair of MPLS uni-directional VC’s
• AC—Attachment Circuit; a customer connection to the service provider; may be a physical port or
Ethernet VLAN
• Tunnel LSP—Tunnel Label Switch Path is used to tunnel PW’s between VSI’s
Presentation_ID 22
VPLS Customer Perspective
CE1 CE3
CE2 CE4
• Multipoint-to-Multipoint Configuration
• Forwarding of Frames based on Learned MAC addresses
• Uses a Virtual Forwarding Instances (VFI, like VLAN) for customer
separation
Presentation_ID 23
Multipoint Bridging Requirements
Presentation_ID 24
Bridge-domain concept
Presentation_ID 25
Bridge Domain Capabilities
VPLS Emulates the Operation of an
Ethernet Switch
• Flooding/forwarding:
MAC table instances per VPLS instance at each PE
VFI will participate in learning, forwarding process
ACs to PWs (similar to AToM)
ACs to ACs (local switching)
• Address learning/aging:
MAC timers refreshed with incoming frames
• Loop prevention:
Create full-mesh of EoMPLS VCs per VPLS – VC type 5
Use “split horizon” concepts to prevent loops
Presentation_ID 26
VPLS—Flooding and Forwarding
Presentation_ID 27
VPLS: Configuration Example
PE Æ PE
Create a L2 VFI with a full mesh of participating VPLS PE nodes
MPLS
l2vpn
Network
bridge-group 1 l2vpn
bridge-domain PE1-VPLS-A bridge-group 1
interface g0/0 Å---AC bridge-domain PE2-VPLS-A
vfi 1 interface g0/0
l2vpn
neighbor 2.2.2.2 pw-id 1 Å---PW1 vfi 1
bridge-group 1 PE-3 3.3.3.3 / 32
neighbor 3.3.3.3 pw-id 1 Å---PW2 neighbor 1.1.1.1 pw-id 1
bridge-domain PE3-VPLS-A
! neighbor 3.3.3.3 pw-id 1
interface g0/0
Interface loopback 0 !
vfi 1
ip address 1.1.1.1 255.255.255.255 Interface loopback 0
neighbor 1.1.1.1 pw-id 1
ip address 2.2.2.2 255.255.255.255
neighbor 2.2.2.2 pw-id 1
!
Interface loopback 0
ip address 3.3.3.3 255.255.255.255
Presentation_ID 28
VPLS: Configuration Example
PE Æ CE
PE-1 PE-2
CE1 G0/0 G0/0 CE2
MPLS
Network
interface GigabitEthernet0/0
PE-3 interface GigabitEthernet0/0
l2transport Å---AC interface
l2transport
no ip address
no ip address
no ip directed-broadcast G0/0
no ip directed-broadcast
interface
negotiation auto
CE3 GigabitEthernet0/0 negotiation auto
no cdp enable
l2transport no cdp enable
end
no ip address end
no ip directed-broadcast
negotiation auto
no cdp enable
Presentation_ID 29
VPLS – Forwarding
N-PE B
Lo0 1.1.1.1/32
N-PE A
Lo0 6.6.6.6/32
CE-2
CE-1
N-PE C
Lo0 7.7.7.7/32
Presentation_ID 31
VPLS Forwarding/MAC Learning
VLAN 2000 CAM Table
Following Are the Steps Involved during MAC Port/
Neighbor
Learning and Forwarding of a VPLS Instance MAC (Remote VC
label)
N-PE A Gig3/1
Lo0 6.6.6.6/32 VFI VLAN
“VPLS_2000”
Gig2/1 2000 VLAN 2000
To VC label 23
VFI VC .1Q
VLAN
“VPLS_2000”
To VC label 19
label
19 VC
Trunk CE-2
VLAN 2000 2000 VC
.1Q label
label
CE-1 Trunk 23
20
smac dmac
M1 M2
To VC label 20
To VC label 23
VC VLAN 2000 CAM Table
label
24 Port/
1 MAC Neighbor
(Remote VC
label)
VLAN 2000 CAM Table
Port/
VC
Neighbor To VC label 24
MAC (Remote VC
label
23
label) VC
To VC label 24 label
24
VFI VLAN
“VPLS_2000” 2000 VLAN 2000
.1Q
Trunk
N-PE C
Lo0 7.7.7.7/32
Presentation_ID 32
VPLS Forwarding/MAC Learning
VLAN 2000 CAM Table
Step 2: N-PE A “Learns” CE-1 MAC Address Port/
Neighbor
Step 3: Since M2 Is Unknown, N-PE A MAC (Remote VC
label)
“Replicates” the Frame to All the PWs
N-PE B
Lo0 1.1.1.1/32
N-PE A Gig3/1
Lo0 6.6.6.6/32 VFI VLAN
“VPLS_2000”
Gig2/1 2000 VLAN 2000
To VC label 23
VFI VC .1Q
VLAN
“VPLS_2000”
To VC label 19
label
19 VC
Trunk CE-2
VLAN 2000 2000 VC
.1Q label
label
CE-1 Trunk 23 smac dmac
20
3 M1 M2
To VC label 20
To VC label 23
VC VLAN 2000 CAM Table
label
24 Port/
Neighbor
MAC (Remote VC
label)
VLAN 2000 CAM Table
Port/
VC
Neighbor To VC label 24
MAC (Remote VC
label
23
label) VC
To VC label 24 label
2 M1 Gig2/1 24
VFI VLAN
smac dmac 2000 VLAN 2000
“VPLS_2000”
3 M1 M2 .1Q
Trunk
N-PE C
Lo0 7.7.7.7/32
Presentation_ID 33
VPLS Forwarding/MAC Learning
Step 4: Both N-PE B and N-PE C “Learn” CE-1 VLAN 2000 CAM Table
MAC Address (Note MAC Is Associated Port/
Neighbor
to the Remote VC Label) MAC (Remote VC
4 label) smac dmac
Step 5: Since M2 Is Unknown, N-PE B/C
“Flood” the Frame to All the Local M1 6.6.6.6 (23) 5 M1 M2
N-PE B
Ports (and Not the PW) Lo0 1.1.1.1/32
N-PE A Gig3/1
Lo0 6.6.6.6/32 VFI VLAN
“VPLS_2000”
Gig2/1 2000 VLAN 2000
To VC label 23
VFI VC .1Q
VLAN
“VPLS_2000”
To VC label 19
label
19 VC
Trunk CE-2
VLAN 2000 2000 VC
.1Q label
label
CE-1 Trunk 23
20
To VC label 20
To VC label 23
VC VLAN 2000 CAM Table
label
24 Port/
Neighbor
4 MAC (Remote VC
label)
VLAN 2000 CAM Table
M1 6.6.6.6 (24)
Port/
VC
Neighbor To VC label 24
MAC (Remote VC
label
23
label) VC
To VC label 24 label
M1 Gig2/1 24
VFI VLAN
“VPLS_2000” 2000 VLAN 2000
.1Q
Trunk smac dmac
N-PE C 5 M1 M2
Lo0 7.7.7.7/32
Presentation_ID 34
VPLS Forwarding/MAC Learning
VLAN 2000 CAM Table
Step 6: CE-2 Replies back to CE-1 Port/ dmac smac
Neighbor
Step 7: N-PE B “Learns” CE-2 MAC MAC (Remote VC
7 label) M1 M2 6
Address
M1 6.6.6.6 (23)
N-PE B
M2 Gig3/1 Lo0 1.1.1.1/32
N-PE A Gig3/1
Lo0 6.6.6.6/32 VFI VLAN
“VPLS_2000”
Gig2/1 2000 VLAN 2000
To VC label 23
VFI VC .1Q
VLAN
“VPLS_2000”
To VC label 19
label
19 VC
Trunk CE-2
VLAN 2000 2000 VC
.1Q label
label
CE-1 Trunk 23
20
To VC label 20
To VC label 23
VC VLAN 2000 CAM Table
label
24 Port/
Neighbor
MAC (Remote VC
label)
VLAN 2000 CAM Table
M1 6.6.6.6 (24)
Port/
VC
Neighbor To VC label 24
MAC (Remote VC
label
23
label) VC
To VC label 24 label
M1 Gig2/1 24
VFI VLAN
“VPLS_2000” 2000 VLAN 2000
.1Q
Trunk
N-PE C
Lo0 7.7.7.7/32
Presentation_ID 35
VPLS Forwarding/MAC Learning
Step 8: N-PE B Inspects CAM and Forwards VLAN 2000 CAM Table
Frame towards N-PE A (with Remote Port/
Neighbor
Label 23—Frame Not Sent to N-PE C) MAC (Remote VC
label)
Step 9: N-PE A “Learns” CE-2 MAC Address
Step 10: N-PE A Forwards Frame to CE-1 M1 6.6.6.6 (23)
N-PE B
M2 Gig3/1 Lo0 1.1.1.1/32
dmac smac
N-PE A
Lo0 6.6.6.6/32
M1 M2 8 VFI
Gig3/1
VLAN
“VPLS_2000”
Gig2/1 2000 VLAN 2000
To VC label 23
VFI VC .1Q
VLAN
“VPLS_2000”
To VC label 19
label
19 VC
Trunk CE-2
VLAN 2000 2000 VC
.1Q label
label
CE-1 Trunk 23
20
dmac smac
M1 M2
To VC label 20
To VC label 23
VC VLAN 2000 CAM Table
label
Port/
10 24
MAC Neighbor
(Remote VC
label)
VLAN 2000 CAM Table 11
Port/
VC
Neighbor To VC label 24
MAC (Remote VC
label
23
label) VC
To VC label 24 label
M1 Gig2/1 24
9 VFI VLAN
M2 1.1.1.1 (19) “VPLS_2000” 2000 VLAN 2000
.1Q
Trunk
Step 11: N-PE C “Ages out” CAM Entry for CE-1 N-PE C
Lo0 7.7.7.7/32
Presentation_ID 36
VPLS–Loop Free L2VPN
Broadcast Frame
PE-3
192.168.11.2/24
Presentation_ID 37
Packet format in VPLS path
PRI
DA SA VLAN DATA
DA SA VLAN DATA
PE –POP
CLE
(PE-rs)
PE –POP
(PE-rs)
CE
Presentation_ID 40
IETF’s Way to Build a L2 Core:
VPLS—Virtual Private LAN Services (L2VPN WG)
Customer
Equipment N-PE 1 N-PE 3
CE
VPLS“ w/o Hierarchy CE
PW
CE
Layer 2 - 802.1ad
N-PE 2 N-PE 4
Provider Bridges
Ethernet UNI Ethernet UNI Access Network
N-PE 1 N-PE 3
U-PE A
CE
PW
CE
-“H-VPLS“ w/ MPLS to the U-PE C
PW PW –
Edge CE
U-PE B Attachment
- Core vs Access PW N-PE 2 N-PE 4 Circuit
- uPE connects nPE via Acess PW
-Acess PW connects to BD directly
-Packet from Access PW replicates to AC and Core PW in same BD domain
Presentation_ID 41
Flat VPLS – Ethernet access without QinQ
Flat
.1Q Q-in-Q
• Full Mesh – Pseudowires
Q-in-Q
.1Q
• LDP Signaling
IP / MPLS IP / MPLS
Presentation_ID 44
H-VPLS with MPLS Access Split-Horizon Rule
MPLS MPLS
MPLS
VFI VFI
Split-horizon rule
Presentation_ID 45
H-VPLS/VPLS Topology Comparison
Presentation_ID 46
Flexible Design with H-VPLS (1)
Node Redundancy
• Site-to-site L2 circuit. One side have redundant PEs, the other side has single PE
• Single PE side use H-VPLS configuration to have two active PWs going to
redundant PEs. MAC learning and forwarding are involved
• Redundant PE side use EoMPLS configuration, no MAC learning
DC
NYC
VPLS VFI
MPLS
CPE PE PE CPE
Presentation_ID 47
Flexible Design with H-VPLS (2)
VPLS-on-a-stick Design
DC
Remote
site 2
VPLS VFI
MPLS
Remote
Site N
CPE PE PE CPE
Presentation_ID 48
VPLS Auto Discovery
Presentation_ID 49
MetroEthernet/L2VPN
Case Studies
Session Number
Presentation_ID © 2003 Cisco Systems, Inc. All rights reserved. 50
Agenda
L2VPN architectures
Needs
• Application requires the
Customer1 Customer2
use of Broadcast (legacy)
and Multicast to deliver
information to customers
• Shared platform delivering
MPLS VPN. Customer3 Customer4
Distribution
Server
Presentation_ID 52
VPLS for MCAST/BCAST distribution
Solution
• Replace IP helper
Customer1 Customer2
commands with VPLS VFI MPLS
for broadcast and multicast
traffic
• Tune the recovery using
OSPF knobs to decrease to Customer3 Customer4
below original Spanning
Tree timers.
• Provide internal and
extranet VPN services on VPLS VFI
the same platform.
Distribution
Server
Presentation_ID 53
Agenda
L2VPN architectures
1Gb
Ring
Network Services
DSL Access (Voice/Video/Data-triple play services)
Ethernet direct fiber access
Layer 2 and Layer 3 VPN offering
Presentation_ID 55
Metro/DSL aggregation
Regional L3 Core Regional
Access
Distribution Network Distribution
Network
Network Network
Inter-Region EoMPLS
1Gb
Ring
DSL Services
Video using routed p2p SVI on a common VLAN per DSLAM
Sub-second convergence achieved through adjusting rpf and
backoff timers.
Data services bridge back to BRAS using l2 switching on ring
MST instance defined for DSLAM VLANs
Presentation_ID 57
Agenda
L2VPN architectures
Presentation_ID 58
Cable Network
Regional
Access Distribution National
Network Network
Backbone
1Gb
Ring
Long Haul
10Gb IP Backbone
Regional Ring
• Residential services
Internet
VOIP
• Business Services
Layer 2 E-Line, E-LAN, and bridged cable modem
Internet
VOIP
Presentation_ID 59
Agenda
L2VPN architectures
Presentation_ID 61
The Solution
Multi-segment Pseudowire (switching) with Interworking
172.16.255.1
CE1
IP/MPLS
172.16.0.0
AS65016
e0/0 e0/0
IP/MPLS
ASBR ASBR 172.17.0.0
PE1 AS65017 PE2
CE2
S0/0 S0/0
172.16.255.2 172.17.255.1
172.17.255.2
LDP BGP
Signaling is Point – Point Broadcast (via RR or full Mesh )
(uses directed LDP )
Presentation_ID 65
Signaling LDP v/s BGP
Presentation_ID 66
Signaling LDP v/s BGP
• LDP signaling provides more flexibility for VPLS because it
allows different characteristic setting per PW such as:
QoS setting – e.g., different PWs can have different reserved BW
Presentation_ID 67
Back UP
Presentation_ID 68
L2VPN EoMPLS –
draft-ietf-pwe3-ethernet-encap-xx.txt
Presentation_ID 69
H-VPLS MPLS access
Presentation_ID 70
H-VPLS MPLS access
Presentation_ID 71
H-VPLS with MPLS Access Example
show CLI
NPE3#sh mpls l2 vc 11
Presentation_ID 72
H-VPLS with MPLS Access Example
show CLI
UPE3#sh mpl l2 vc 11
Presentation_ID 73
H-VPLS with QinQ Access Example
C-tag 11 C-tag 3 9 C-tag C-tag
VFI VFI
VFI N-PE4
U-PE3 N-PE3
N-PE1
MPLS MPLS
MPLS
VFI VFI
N-PE3 Configuration
U-PE3 Configuration ! Define VPLS VFI
l2 vfi vpls11 manual
! Regular EoMPLS configuration on U-PE vpn id 11
! Use port-mode in this example neighbor 10.0.0.1 encapsulation mpls
neighbor 10.0.0.4 encapsulation mpls
interface GigabitEthernet2/13 neighbor 10.0.0.7 encapsulation mpls no-split-horizon
xconnect 10.0.0.3 11 encap mpls
! Attach VFI to VLAN interface
interface Vlan11
! Uplink is MPLS/IP to support EoMPLS xconnect vfi vpls11
interface GigabitEthernet2/47 ! Attachment circuit is spoke PW for H-VPLS MPLS access
ip address 10.0.57.2 255.255.255.252 ! Downlink is MPLS/IP configuration to support H-VPLS
mpls ip interface GigabitEthernet4/0/1
ip address 10.0.57.1 255.255.255.252
mpls ip
Presentation_ID 75