• On egress, the label is removed and a routing lookup is used to forward the packet... Label Distribution and Advertisement: Interim Packet Propagation Forwarded IP packets are labeled
Trang 1MPLS Concepts
Introducing Basic MPLS Concepts
Trang 3Foundations of Traditional IP Routing
• Routing protocols are used to distribute Layer 3
routing information
• Forwarding decision is made based on:
– Packet header
– Local routing table
• Routing lookups are independently performed at
every hop
Trang 5• Typically, MPLS labels correspond to destination
networks (equivalent to traditional IP forwarding)
Trang 6MPLS Architecture: Control Plane
Trang 7MPLS Architecture: Data Plane
Trang 8MPLS Devices: LSRs
• The LSR forwards labeled packets in the MPLS domain
• The edge LSR forwards labeled packets in the MPLS domain,
and it forwards IP packets into and out of the MPLS domain
Trang 9Label Switch Routers:
Architecture of LSRs
Trang 10LSR Architecture Example
MPLS router functionality is divided into two major
parts: the control plane and the data plane
Trang 11LSRs:
Architecture of Edge LSRs
Trang 13MPLS Labels
• Are 4 byte identifiers used for forwarding
decisions
• Define the destination and services for a packet
• Identify a forwarding equivalence class ( FEC )
• Have local significance
– Each LSR independently maps a label to an FEC
in a label binding.
– Label bindings are exchanged between LSRs
Trang 14MPLS Labels: Frame-Mode MPLS
Trang 15MPLS Label Operations: Frame Mode
• On ingress, a label is assigned and imposed
• LSRs in the core swap labels based on the contents of the label forwarding table
• On egress, the label is removed and a routing lookup is used to forward the packet
Trang 16MPLS Unicast IP Routing
Architecture (Cont.)
Trang 17MPLS Unicast IP Routing
Architecture (Cont.)
Trang 18MPLS Unicast IP Routing
Architecture (Cont.)
Trang 19LSP Building
The IP routing protocol determines the path
Trang 20LSP Building (Cont.)
LDP propagates labels to convert the path to an LSP
Trang 21PHP: Before
• Double lookup is not an optimal way of
forwarding labeled packets
• A label can be removed one
hop earlier
Trang 22PHP: After
A label is removed on the router before the last
hop within an MPLS domain
Trang 23Label Distribution and Advertisement
The allocated label is advertised to all neighbor LSRs, regardless
of whether the neighbors are upstream or downstream LSRs for the destination
Trang 24Label Distribution and Advertisement:
Receiving Label Advertisement
• Every LSR stores the received label in its LIB
• Edge LSRs that receive the label from their next hop also store the label information in the FIB
Trang 25Label Distribution and Advertisement:
Interim Packet Propagation
Forwarded IP packets are labeled only on the path segments
where the labels have already been assigned
Trang 26Label Distribution and Advertisement:
Further Label Allocation
Every LSR will eventually assign a label for every
destination
Trang 27Label Distribution and Advertisement:
Receiving Label Advertisement
• Every LSR stores received information in its LIB
• LSRs that receive their label from their next-hop LSR will also populate the IP forwarding table
Trang 28Populating the LFIB
• Router B has already assigned a label to network X and created an
entry in the LFIB
• The outgoing label is inserted in the LFIB after the label is received
from the next-hop LSR
Trang 29Packet Propagation Across
an MPLS Network
Trang 30Extranet VPNs:
Peer-to-Peer VPN Implementation
Trang 31MPLS VPN Architecture
An MPLS VPN combines the best features of
an overlay VPN and a peer-to-peer VPN:
• PE routers participate in customer routing,
guaranteeing optimum routing between sites and
easy provisioning
• PE routers carry a separate set of routes for each
customer (similar to the dedicated PE router
approach)
• Customers can use overlapping addresses
Trang 33PE Router Architecture
• PE router in an MPLS VPN uses virtual routing tables to implement the functionality of customer
Trang 34Propagation of Routing Information
Across the P-Network
Question: How will PE routers exchange customer routing information?
Option #1: Run a dedicated IGP for each customer across the P-network
This is the wrong answer for these reasons:
• The solution does not scale
• P routers carry all customer routes
Trang 35Propagation of Routing Information
Across the P-Network (Cont.)
Question: How will PE routers exchange customer routing information?
Option #2: Run a single routing protocol that will carry all customer routes
inside the provider backbone
Better answer, but still not good enough:
• P routers carry all customer routes
Trang 36Propagation of Routing Information
Across the P-Network (Cont.)
Question: How will PE routers exchange customer routing information?
Option #3: Run a single routing protocol that will carry all customer routes between PE routers Use MPLS labels to exchange
packets between PE routers
The best answer:
• P routers do not carry customer routes; the solution is scalable
Trang 37Propagation of Routing Information
Across the P-Network (Cont.)
Question: Which protocol can be used to carry customer routes between
PE routers?
Answer: The number of customer routes can be very large BGP is the only
routing protocol that can scale to a very large number of routes
Conclusion:
BGP is used to exchange customer routes directly between PE routers
Trang 38Propagation of Routing Information
Across the P-Network (Cont.)
Question: How will information about the overlapping subnetworks of two customers be propagated
via a single routing protocol?
Answer: Extend the customer addresses to make them unique
Trang 39Route Distinguishers
• The 64-bit route distinguisher is prepended to an IPv4
address to make it globally unique
• The resulting address is a VPNv4 address
via BGP
– BGP that supports address families other than IPv4
addresses is called MP-BGP
• A similar process is used in IPv6:
– 64-bit route distinguisher is prepended to a 16-byte IPv6
address
– The resulting 24-byte address is a unique VPNv6 address
Trang 40Route Distinguishers (Cont.)
Trang 41Route Distinguishers (Cont.)
Trang 42RDs: Usage in an MPLS VPN
• The RD has no special meaning
• The RD is used only to make potentially overlapping IPv4
addresses globally unique
• The RD is used as a VPN identifier, but this design could not support all topologies required by the customers
Trang 43Requirements:
• All sites of one customer need to communicate
• Central sites of both customers need to communicate with VoIP
gateways and other central sites
• Other sites from different customers do not communicate with each other
Is the RD Enough?
VoIP Service Sample
Trang 44Example: Connectivity Requirements
Trang 45RTs: Why Are They Needed?
• Some sites have to participate in more than
one VPN
• The RD cannot identify participation in more than one VPN
support complex VPN topologies
– A different method is needed in which a set of identifiers
can be attached to a route
Trang 46RTs: What Are They?
• RTs are additional attributes attached to VPNv4 BGP routes
to indicate VPN membership
attributes
– Extended communities carry the meaning of the attribute
together with its value
• Any number of RTs can be attached to a single route
Trang 47RTs: How Do They Work?
– Associated with each virtual routing table
– Select routes to be inserted into the virtual routing table
Trang 48VPNs Redefined
With the introduction of complex VPN topologies,
VPNs have had to be redefined:
• A VPN is a collection of sites sharing common routing
information
• A site can be part of different VPNs
(closed user group)
routing tables on the PE routers
Trang 49Impact of Complex VPN Topologies on
Virtual Routing Tables
• A virtual routing table in a PE router can be used only for
sites with identical connectivity requirements
routing table per VPN
• As each virtual routing table requires a distinct RD value, the number of RDs in the MPLS VPN network increases
Trang 50Impact of Complex VPN Topologies on
Virtual Routing Tables (Cont.)
Trang 51MPLS VPN Technology
Introducing the MPLS VPN Routing Model
Trang 52MPLS VPN Routing:
Overall Customer Perspective
connected via a BGP backbone
Trang 53MPLS VPN Routing:
P Router Perspective
• P routers do not participate in MPLS VPN routing and do not carry VPN
routes
• P routers run backbone IGP with the PE routers and exchange information
about global subnetworks (core links and loopbacks)
Trang 54MPLS VPN Routing:
PE Router Perspective
PE routers:
• Exchange VPN routes with CE routers via per-VPN routing protocols
• Exchange core routes with P routers and PE routers via core IGP
• Exchange VPNv4 routes with other PE routers via MP-IBGP sessions
Trang 55Support for Existing Internet Routing
PE routers can run standard IPv4 BGP in the global routing table:
• PE routers exchange Internet routes with other PE routers
• CE routers do not participate in Internet routing
• P routers do not need to participate in Internet routing
Trang 56Routing Tables on PE Routers
PE routers contain a number of routing tables:
Internet routes (filled with IPv4 BGP)
requirements from local (IPv4 VPN) and remote
(VPNv4 via MP-BGP) CE routers
Trang 57End-to-End Routing Update Flow
PE routers receive IPv4 routing updates from CE routers and
install them in the appropriate VRF table
Trang 58PE routers export VPN routes from VRF tables into MP-BGP and propagate them as VPNv4 routes to other PE routers
End-to-End Routing Update Flow (Cont.)
Trang 59End-to-End Routing Update Flow:
MP-BGP Update
An MP-BGP update contains these elements:
(route targets, optionally SOO)
• Label used for VPN packet forwarding
• Any other BGP attribute (for example, AS path, local
preference, MED, standard community)
Trang 60• The receiving PE router imports the incoming VPNv4 routes into the appropriate VRF based on route targets attached to the
Trang 61Route Distribution to CE Routers
• A route is installed in the site VRF if it matches the import route target attribute
• Route distribution to CE sites is driven by the
following:
– Route targets
– SOO attribute if defined
Trang 62What Is Multi-VRF CE (VRF-Lite)?
• Multi-VRF CE (VRF-lite) is an application based on VRF
• There is no MPLS functionality on the CE router
– No labeled packet flow between the CE and PE router
in a Multi-VRF CE implementation
Trang 63VPN Packet Forwarding Across an MPLS
VPN Backbone: Approach 1
Approach 1: The PE routers will label the VPN packets with an LDP label for the egress PE router, and forward the
labeled packets across the MPLS backbone
Trang 64VPN Packet Forwarding Across an MPLS
VPN Backbone: Approach 2
Result:
• The P routers perform label switching using the top label, and the packet reaches the egress PE router The top
label is removed
• The egress PE router performs a lookup on the VPN label and forwards the packet toward the CE router
Approach 2: The PE routers will label the VPN packets with a label stack, using the LDP label for the
egress PE router as the top label, and the VPN label assigned by the egress PE router as the second label in the stack
Trang 65VPN PHP
• Penultimate hop popping on the LDP label can be
performed on the last P router
• The egress PE router performs label lookup only on the
VPN label, resulting in faster and simpler label lookup
• IP lookup is performed only once—in the ingress PE router
Trang 66VPN Label Propagation
Question: How will the ingress PE router get the second label in the
label stack from the egress PE router?
Answer: Labels are propagated in MP-BGP VPNv4 routing updates
Trang 67Step 1: A VPN label is assigned to every VPN route by the egress
PE router
VPN Label Propagation (Cont.)
Step 2: The VPN label is advertised to all other PE routers in an MP-BGP
update
Step 3: A label stack is built in the VRF table
Trang 68MPLS VPNs and Label Propagation
MP-IBGP update propagation
– Do not use the next-hop-self command on confederation
boundaries
• The PE router must be the BGP next hop
– Use the next-hop-self command on the PE router
• The label must be reoriginated if the next hop is changed
– A new label is assigned every time that the MP-BGP
update crosses the AS boundary where the next hop is changed
Trang 69MPLS VPNs and Packet Forwarding
• The VPN label of the BGP route is understood only by the
egress PE router
• An end-to-end LSP tunnel is required between the ingress
and egress PE routers
– LDP labels will be assigned to addresses in the global
routing table
– LDP labels are not assigned to BGP routes
(BGP routes receive VPN labels)
the core network
Trang 70MPLS VPNs and Packet Forwarding:
Summarization in the Core