Bng Training Mpls At
Bng Training Mpls At
Aachen 03.2016
practical introduction
into IP/MPLS
Valery Soshnikov
Agenda – MPLS theory and practice
› IP/MPLS Overview
› Part 1: Transport IGP
– MPLS Lab overview
– Exercice 1: Links and transport IGP configuration
› Part 2: Label switching and distribution
– Exercice 2: MPLS and LDP configuration
› Part 3: L3 VPN
– Exercice 3: L3VPN and CE connectivity
› Part 4: L2 VPNs: T-LDP, VPLS and VPWS
– Exercice 4: L2VPN
IP/MPLS technology
overview
Why MPLS?
› MPLS is important for telecommunication networks
IP-PABX IP TV
PSTN MPLS
Internet
AXE Internet
Mobile Networks
IP-PABX
Mobile Networks
What is MPLs?
label IP Packet
IP packet IP packet
label IP Packet
MPLS/IP Network
MPLS challenges IP
VPN
QoS– Virtual
– Quality
Private
of Service
Network
40.1.1.1
VPN-A MPLS/IP 40.1.2.1
VPN-A
o l l e H
o l l e H
VPN-b
40.1.2.1
40.1.1.1
VPN-b
MPLS/IP Network
MPLS and the OSI Model
Layer 7 - Application
Layer 6 - Presentation
Layer 5 - Session
Layer 4 - Transport
Layer 1 - Physical
Part 1: network
components and
backbone IGP
MPLS network topology and roles
Label Switch
Router (LSR)
Customer
P – provider (router)
CE – customer edge
(router or host)
MPLS Operation
1a. Existing routing protocols (e.g. OSPF, IS-IS) 4. Edge LSR at egress
establish reachability to destination networks. removes(POP) label
and delivers packet.
1b. Label Distribution Protocol (LDP)
establishes label to destination
network mappings.
› Node Protecting
– Cost(N,D) < Cost(N,E) + Cost
(E,D)
e.g 10 < 10+10
› Downstream
− Cost(N,D) < Cost(S,D)
e.g 10 < 20
backbone IGP decisions for lab
Tasks:
– Configure IP links in the backbone according to network diagram
– Configure loopback interfaces used later for MP-BGP and T-LDP
– Configure IGP in the backbone
– Tune IGP for fast convergence and Fast reroute LFA
– Test IP connectivity between all PEs/loopbacks
Hello Hello
o l l e H
Mpls functions and roles
› MPLS Header
Layer 2 MPLS
IP packet
Header Header
32 Bits
Mpls functions and roles
› MPLS Header
label IP Packet
label IP Packet
IP packet IP packet
label IP Packet
MPLS/IP Network
Mpls functions and roles
› FEC – Forward Equivalence Class
label IP Packet
label IP Packet
IP packet IP packet
label IP Packet
MPLS/IP Network
MPLS functions and roles
CE MPLS CE
LER LSR LSR LER
(PE) (P) (P) (PE)
CE CE
LSP VPN
CE MPLS CE
LER1300 LSR1
888 LSR2
IP packet LER2
1 2 3
IP packet IP packet
Label 14
OAM label alert
-Operation & Maintenance
Label switching
INTer In
Out Action InINTer
Action
Out Inter Out
FEC face Label
Label Label face Labelface Label
CE
1 1 400
300
MPLS
swap 400 2 php 400 3 none
CE
10.1.1.1 10.1.2.1
300 IP packet 400 IP packet IP packet
IP packet IP packet
? ?
LSR1 LSR2
LDP RSVP
LDP Introduction
Label Distribution with LDP
500 IP Packet
IP packet IP packet
400 IP Packet
› LDP has no direct control over LSP path and does not
support sophisticated traffic engineering as RSVP.
LDP ID
LSP VPN
4 Bytes
Hello 2 Bytes
UDP port 646
Hello
UDP port 646
Label
LSR Label•Timer Values
TCP port 646 300 888 IP packet
Negotiation •Label Distrib.
Method
6 Bytes
•Other
TCP port 646
Advertisement
LDP tLDP TCP port 646
CE CE
200 300MP-BGP 400 500
PE1 P1 P2 PE2
CE CE
300 888 IP packet
400 888 IP packet888 IP packet
IP packet IP packet
BGP
ISIS IP
Forwarding plane LDP
RSVP
IP
OSPF
MPLS
MPLS
MP-BGP for MPLS VPNs
definition of VPN and VRF
VPN 2 CE 2
› IPv4 routes from VPN clients (CEs) are converted into VPNv4
routes by pre-pending a unique Route Distinguisher (RD).
SRC: 10.1.1.1
DST: 10.1.2.1
2.1.1.0/30
CE .2 .1
10.1.1.0/24
Ingress PE
Prefix Next-Hop
o.o.o.o/o 2.1.1.1
End-to-End Packet walk
through: PE to P
Interface 1
Ingress PE P1
Outer Inter Next-
LSP Destination Label Face Hop
1 egress PE 646 1 P1
End-to-End Packet walk
through: P to P
Interface 2 Interface 3
P1 P2
In Action INTer Out In Action Inter Out
Label face Label Label face Label
646 swap 2 749 749 php 3 none
End-to-End Packet walk
through: P to Egress PE
VRF 100 (Pink)
Type Network Next-hop
>B 10.1.2.0/24 3.1.1.2
P2 Egress PE
Inner
VRF Label
Pink 111
Yellow 222
Green 333
CE
End-to-End Packet walk
through: Egress CE to Host
SRC: 10.1.1.1
DST: 10.1.2.1
CE 10.1.2.1
Prefix Next-Hop
Egress PE
10.1.2.0/o Interface a
PE-CE Connectivity
terminology
› PE – Provider Edge
› CE – Customer Edge
› UNI – User Network Interface
› SIP – Service IP address
Tasks:
– Create MP-BGP router instance in “local” context with AS 65000
– Configure all other PEs as neighbors
– Create VRF “VPN1” on PE in full-mesh mode
– Create VRF “VPN2” in hub-and-spoke mode (hub at PE1)
– Configure CE to PE interfaces (VPN1 with static, VPN2 with OSPF)
– Test route import and connectivity between sites in both VPNs
– Optional: use P1 and P2 as route reflectors for MP-BGP instead of
direct peerings to other PEs
Ethernet
VPLS
Customer
Site B
Ethernet
Customer Emulate
Site A LAN
Customer
Site C
Customer
Site A
Switch Customer
Site C
LSP
PW1
IP/MPLS
CE1 PW2 CE2
Switch PE1 PE2 Switch
Ethernet / Forwarder Forwarder Ethernet /
TDM / TDM /
ATM / FR Edge to Edge Emulated Service: PWE3 ATM / FR
IP/MPLS
Control Word
PE
Emulated Service
(ATM, TDM, Ethernet)
With Control
Control Word 4 1 2 5 3
5 Word Rx
Tx (Optional)
4 3 2 1 P
IP/MPLS
Rx Tx
PW Label
CE1 CE2
PE1 P PE2
MPLS
P
Ethernet over PWE3
PE PE
Emulated Ethernet
Ethernet
Emulated Ethernet ATM
Emulated Service
(Including VLAN)
(Including VLAN) SONET / SDH
Services
Services
PWE3
PPP / HDLC
MPLS TDM – E1/T1 MPLS
LSP / MPLS Tunnel
Physical Physical
Ethernet over PWE3 -Raw& Tagged
Emulated Service
VLANPseudo Wire
LSP/MPLS Tunnel
TAG
VLAN|FrameMPLS/PW VLAN|Frame
MPLS/PWFrame
Frame Tx MPLS/PW
VLAN|Frame VLAN|Frame VLAN|Frame
VLAN|Frame
Frame
VLAN|Frame Rx
MPLS/PW VLAN|Frame
Rx Tx
CE1 AC AC CE2
PE1 PE2
l2VPNs
control plane
Tasks:
Part I - VPWS
– Configure T-LDP peerings to other PEs
– Configure one VPWS pseudowire to a remote PEs
– Configure connection to your CE as attachment circuit
– Test connectivity to the remote CE
Part II - VPLS
– Create set of psedowires to all other PE routers
– Create VPLS bridge and attach pseudowires to it
– Configure connection to your CE as attachment circuit
– Test connectivity to all remote CEs
SSR SSR
VPLS
Configure VPLS in four steps:
SSR SSR
1 Create the PW peer profile
2 Create VPLS PW Instance
3 Create a new VPLS service instance
4 Bind the VPLS PW with the bridge instance
(Qualified or Unqualified)
pseudowire instance 1
pw-id 100
peer-profile PE1
VPLS Service Instance
Configuration
3
Create the bridge and associate the service instance and the pseudowire
bridge bridge1
port ethernet 1/15 service-instance 1
vpls
pseudowire vlan 10
pseudowire instance 1
VPLS Flat Mesh Configuration
PE1 1.1.1.1 PE2 2.2.2.2
P1 P1
PWID
100
SSR PE 1 SSR PE 2 pseudowire peer-profile
PE1
Peer 1.1.1.1
pseudowire peer-profile PE2 PE3 3.3.3.3 pseudowire peer-profile
peer 2.2.2.2 PWID PWID PE3
pseudowire peer-profile PE3 100 100 Peer 3.3.3.3
Peer 3.3.3.3
pseudowire instance 1
pseudowire instance 1
pw-id 100
pw-id 100 SSR PE 2 peer-profile PE1
peer-profile PE2 pseudowire peer-profile PE1
pseudowire instance 2
pseudowire instance 2 Peer 1.1.1.1
pw-id 100
pw-id 100 pseudowire
P1 peer-profile PE2
peer-profile PE3
peer-profile PE3 Peer 2.2.2.2
bridge profile profile1
bridge profile profile1 pseudowire instance 1
bridge b1
bridge b1 pw-id 100
profile profile1
profile profile1 peer-profile PE1
port 1/1 service instance
port 1/1 service instance 1 pseudowire instance 2
vpls
vpls pw-id 100
pseudowire instance 1
pseudowire instance 1 peer-profile PE2
pseudowire instance 2
pseudowire instance 2 bridge profile profile1
bridge b1
profile profile1
port 1/1 service instance
vpls
pseudowire instance 1
pseudowire instance 2
Q&A?