Fiber@Home LTD.: Md. Arafat Nazmul
Fiber@Home LTD.: Md. Arafat Nazmul
Multi
MPLS has the ability to carry Any PayLoad
Protocol
IPv4, IPv6, Frame Relay, ATM, Ethernet
Label
MPLS uses label to forward packets
Switching
Packets are switched from ingress to egress instead of routing lookups
for IPv4 and IPv6
Why MPLS ???
Limitation of Traditional IP Routing
IP over ATM
• Layer 2 devices have no
knowledge of Layer 3 routing
information—virtual circuits must
be manually established.
• Layer 2 topology may be different
from Layer 3 topology, resulting in
suboptimal paths and link use.
• Even if the two topologies overlap,
the hub-and-spoke topology is
usually used because of easier
management.
Limitation of Traditional IP Routing
Traffic Engineering
• Most traffic goes between large
sites A and B, and uses only the
primary link.
• Destination-based routing does
not provide any mechanism for
load balancing across unequal
paths.
• Policy-based routing can be
used to forward packets based
on other parameters, but this is
not a scalable solution.
How MPLS Enhanced Traditional IP Routing Limitation?
>> Each router assigns a locally significant label for each IP route, and
advertises these labels to neighbors. (Labels are assigned only to IGP
learn routes).
>> Uses the IP routing information to determine the direction and next
hop to forward a labeled packet
1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
2013 2014
Market Segments
Business Drivers Business Goals MPLS Capabilities
• The chain of labels that are swapped at each hop to get from one LSR to another
LSR
Label Edge Router(LER)
LSR or
LER LER
Provider Edge Router (PE)
IP
Ingress LER
MPLS
Domain Domain
Table of Forwarding
Equivalence Class
IP Header Info Label
xxx.xxx.xxx.xxx 17
yyy.yyy.yyy.yyy 18
zzz.zzz.zzz.zzz 19
The Ingress Label Edge Router :: Adding a label
2
17
Table of Forwarding
Equivalence Class
IP Header Info Label
xxx.xxx.xxx.xxx 17
yyy.yyy.yyy.yyy 18
zzz.zzz.zzz.zzz 19
The Label Switch Router :: Swapping a label
MPLS
LSR
MPLS
Domain Domain
2
17
MPLS
LSR
MPLS
Domain Domain
3
27
MPLS
Egress LER
IP
Domain Domain
3
27
Label Switched Path
LER
LSR Label Switched Path (LSP)
LSR established by LDP (Label
Distribution Protocol or RSVP-
LSR TE (Resource Reservation
LSR Protocol – Traffic Engineering)
LER LER
LSPs are Uni-Directional.
LSR LSR MPLS The return path is a
separated path.
Networ
k
LER
Label Operations (PUSH, SWAP, POP)
LSR
MPLS
Networ
Dat I k
a P
LER
Egress
CPE CPE
LER
Ingress
• destination IP address,
• source IP address,
• TCP/UDP port,
• application used,
• …
Time-to-Live
Label Value Exp. S
(TTL)
20-bits: Label value used by LSR to lookup 3-bits: Reserved 1-bits: 8-bits:TTL
either next-hop, operation to perform, or for experimental Bottom decremented
Outgoing data-link encapsulation use of label by each LSR
stack Flag
MPLS Reference Architecture
P-1
CE-B1
CE-A2
PE-1 PE-2
CE-A1 CE-B2
IP/VPN Technology Overview
MPLS VPN functionality is enabled at the edge of an MPLS network. The provider
edge (PE) device performs the following
MP-iBGP Session
PE Routers P Routers
Sit at the Edge Sit inside the network
Use MPLS with P routers Forward packets by looking
Uses IP with CE routers at labels
Distributes VPN information through P and PE routers share a
MP-BGP to other PE routers common IGP
IP/VPN Technology Overview
• Separate Routing Tables at PE
CE2
VPN 2
PE
CE1 MPLS Network IGP (OSPF, ISIS)
VPN 1
CE2
VPN 2 VRF Green
PE
CE1 MPLS Network IGP (OSPF, ISIS)
VPN 1 Ser0/0
VRF Blue
• BGP plays a key role. Let’s understand few BGP specific details..…
IP/VPN Technology Overview
• Control Plane = Multi-Protocol BGP (MP-BGP)
MP-BGP Customizes the VPN Customer Routing Information as per the Locally Configured VRF Information at the PE using:
Label
IP/VPN Technology Overview: Control Plane
• Route-Distinguisher (rd)
8 Bytes 4 Bytes 8 Bytes 3 Bytes MP-BGP UPDATE Message
Showing VPNv4 Address,
1:1 200.1.64.0
RT, Label only
RD IPv4 Route-Target Label
VPNv4
VPN customer IPv4 prefix is converted into a VPNv4 prefix by appending the RD (1:1, say) to the
IPv4 address (200.1.64.0, say) => 1:1:200.1.64.0
• Makes the customer’s IPv4 address unique inside the SP MPLS network.
Route-target (rt) identifies which VRF(s) keep which VPN prefixes IOS_PE#
!
• rt is an 8-byte extended community attribute.
ip vrf green
Each VRF is configured with a set of route-targets at PE
route-target import 3:3
route-target export 3:3
• Export and Import route-targets must be the same for any-to-any IP/VPN route-target export 10:3
!
Export route-target values are attached to VPN routes in PE->PE MP-iBGP advertisements
IP/VPN Technology Overview: Control Plane
• Label
8 Bytes 4 Bytes 8 Bytes 3 Bytes
• Next-hop-self towards MP-iBGP neighbors by default i.e. PE sets the NEXT-HOP attribute to its own address (loopback)
MPLS Backbone
PE1 translates it into VPNv4 address and constructs the MP-iBGP UPDATE message
MPLS Backbone
PE2 receives and checks whether the RT=1:2 is locally configured as ‘import RT’ within any VRF, if
yes, then
PE2 advertises this IPv4 prefix to CE2 (using whatever routing protocol)
IP/VPN Technology Overview
Forwarding Plane
Site 1 Site 2
10.1.1.0/24 CE1
P P
CE2
P P
PE1 PE2
MPLS Backbone
• Stores VPN routes with associated • Stores next-hop i.e. PE routes with
labels associated labels
• VPN routes learned via BGP • Next-hop i.e. PE routes learned through IGP
• Labels learned via BGP • Label learned through LDP or RSVP
IOS:show ip cef vrf <name>
IOS:show ip cef
NX-OS: show forwarding vrf <name> NX-OS: show forwarding ipv4
IOS-XR: show cef vrf <name> ipv4 IOS-XR: show cef ipv4
IP/VPN Technology Overview: Forwarding Plane
Packet Forwarding
Site 1 Site 2
CE1
10.1.1.0/24 CE2
P3 P4
PE1 PE2 10.1.1.1
10.1.1.1 IP Packet
100 10.1.1.1 P1 P2
IP Packet
PE2 imposes two labels (MPLS headers) for each IP packet going to site2
• Outer label is learned via LDP; Corresponds to PE1 address (e.g. IGP route)
• Inner label is learned via BGP; corresponds to the VPN address (BGP route)
PE1 retrieves IP packet (from received MPLS packet) and forwards it to CE1.
IP/VPN Technology: Forwarding Plane
Reference
MPLS IP/VPN Packet Capture
Ethernet Header
Outer Label
Inner Label
IP Packet
IP/VPN Services:
Hub and Spoke Service