0019 20-MPLS+VPN PDF
0019 20-MPLS+VPN PDF
Source 1
Lecture 20:
Destination
MPLS, and VPN
Source 2
• each MPLS router uses a different label to identify a flow • replace incoming label with neighbor’s label for the flow
• “downstream” MPLS router tells upstream neighbor its label • MPLS forwarding table distinct from IP forwarding tables
for each flow A D
2
1
3
Tag Out New
A 2 D
Label Distribution MPLS Encapsulation
Signaling protocol needed to set up forwarding Put an MPLS header in front of IP packet
Network (layer 3): IP
• responsible for disseminating signaling information
MPLS header layer 2.5?: MPLS
• Label Distribution Protocol (LDP)
• RSVP for Traffic Engineering (RSVP-TE) Data Link (layer 2):
IP packet
Ethernet, Frame Relay,
• allows for forwarding along paths not otherwise ATM, PPP, etc.
obtained from IP routing (e.g., source-specific routing) • MPLS header includes a label Physical (layer 1)
• must co-exist with IP-only routers
PPP or Ethernet
header MPLS header IP header remainder of link-layer frame
Source 1
20 bits 3 1 5
Site Site PE PE
ISP
CE CE
Internet PE
PE
CE CE
CE CE
Site Site Site Site
• speak eBGP with MPLS routers on provider network • forward IP packets to/from customer routers
to advertise APs • core (P) : routers B, C, and D
• or statically configured with allocated APs • swap (pop+push) label on top of stack
• doesn’t interact with customer routers
CE CE CE CE
A B C D A B C D
reachability of advertises reachability of advertises
12.11.1.0/24 12.11.1.0/24 12.11.1.0/24 12.11.1.0/24
advertised using eBGP using eBGP advertised using eBGP using eBGP
inner
label
Provider-based VPN High-Level Overview of Operation
Layer 3 BGP/MPLS VPNs (RFC2547)
• provides isola,on: mul,ple logical networks over a single, IP packets arrive at provider
shared physical infrastructure edge (PE) router
PE edge
• uses BGP to router
exchange routes Destination IP looked up in
• eBGP to
announce APs
“virtual” forwarding table
to PE routers • there are multiple such tables,
CE customer CE customer
router router
one per customer
• MPLS to forward
traffic P core
• tunneling: P core
router
Datagram sent to customer’s network using
routers don’t have tunneling (i.e., an MPLS label-switched path)
to do routing, just
PE edge
label switching router
VRF ID: C2
VRF ID: C2
10.0.1.0/24
10.0.1.0/24
Customer 2
10.0.1.0/24
Customer 2
VPN ID (RD): Salmon 10.0.1.0/24
VPN ID (RD): Salmon
22
inner
label
Forwarding in BGP/MPLS VPNs Forwarding
Ingress PE router encapsulates IP packet in MPLS with
Step 1: packet arrives from CE router at PE router’s outer and inner labels
incoming interface
• look up customer’s VRF to determine egress PE and inner Two-label stack is used for packet forwarding
label (Label I) • top label indicates next-hop P router (outer label)
Label IP Datagram • second label indicates outgoing CE interface / VRF (inner label)
I
Step 2: egress PE lookup, add corresponding outer Corresponds to label of Corresponds to VRF/
next-hop (P) interface at exit
label (Label O, also at customer’s VRF)
Layer 2 Label Label IP Datagram
Label Label IP Datagram Header O I
O I