MPLS Introduction
MPLS Introduction
MPLS Introduction
Agenda
Introduction to MPLS
LDP
MPLS VPN
Monitoring MPLS
Presentation_ID
MPLS Concept
At Edge:
Classify packets Label them
In Core:
Forward using labels (as opposed to IP addr) Label indicates service class and destination
Presentation_ID
MPLS concept
MPLS: Multi Protocol Label Switching Packet forwarding is done based on Labels. Labels are assigned when the packet enters into the network. Labels are on top of the packet. MPLS nodes forward packets/cells based on the label value (not on the IP information).
Presentation_ID
MPLS concept
MPLS allows:
Packet classification only where the packet enters the network. The packet classification is encoded as a label. In the core, packets are forwarded without having to re-classify them.
- No further packet analysis - Label swapping
Presentation_ID
MPLS Operation
1a. Existing routing protocols (e.g. OSPF, IS-IS) establish reachability to destination networks. 1b. Label Distribution Protocol (LDP) establishes label to destination network mappings. 4. Edge LSR at egress removes(POP) label and delivers packet.
2. Ingress Edge LSR receives packet, performs Layer 3 value-added services, and labels(PUSH) packets.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
Encapsulations
ATM Cell Header
GFC
VPI
VCI
PTI
CLP HEC
DATA
Label
PPP Header
Label Header
Layer 3 Header
MAC Header
Label Header
Layer 3 Header
Presentation_ID
Label Header
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
Label
EXP S
TTL
Header= 4 bytes, Label = 20 bits. Can be used over Ethernet, 802.3, or PPP links Contains everything needed at forwarding time
Presentation_ID
Presentation_ID
10
IP packet TTL = 6
Egress
11
Presentation_ID
12
Rtr-C is the downstream neighbor of Rtr-B for destination 171.68.10/24 Rtr-B is the downstream neighbor of Rtr-A for destination 171.68.10/24 LSRs know their downstream neighbors through the IP routing protocol Next-hop address is the downstream neighbor
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
13
Rtr-A
In I/F In Lab Address Prefix Out I/F Out Lab In I/F
Rtr-B
In Lab Address Prefix Out I/F Out Lab In I/F
171.68.10
...
...
30 171.68.10
...
...
40 171.68.10
...
IGP derived routes
...
Next-Hop... ...
...
14
Rtr-C
Request label for destination 171.68.10/24
Upstream LSRs request labels to downstream neighbors Downstream LSRs distribute labels upon request
Presentation_ID
15
Presentation_ID
16
Presentation_ID
17
Address Prefix
I/F 0
128.89
171.69
128.89
171.69
128.89
0 1 0
128.89
128.89.25.4 Data
0 128.89.25.4 Data 1
128.89.25.4 Data
128.89.25.4 Data
171.69
18
128.89 171.69
1 1
128.89 171.69
0 1
128.89
0 1 0
128.89
You Can Reach 128.89 Thru Me You Can Reach 128.89 and 171.69 Thru Me
1
171.69
19
128.89 171.69
1 1
4 5
4 5
128.89 171.69
0 1
9 7
128.89
0 1 0
128.89
Use Label 9 for 128.89 Use Label 4 for 128.89 and Use Label 5 for 171.69
1
171.69
20
128.89
171.69
1 1
4 5
4
5
128.89 171.69
0 1
9 7
128.89
0 1 0
128.89 Data
128.89.25.4
9
1
128.89.25.4
Data
128.89.25.4 Data
128.89.25.4
Data
21
Agenda
Introduction to MPLS
LDP
MPLS VPN
Monitoring MPLS
Presentation_ID
22
The second option has been used because there are too many existing IP routing protocols that would have to be modified to carry labels.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
23
Neighbor discovery
Basic and extended discovery
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
24
Control plane
Routing protocol IP routing table
Exchange of labels
Incoming IP packets
Incoming labeled packets
Data plane
IP forwarding table Label forwarding table
Outgoing IP packets
Outgoing labeled packets
Presentation_ID
25
RT:
LIB:
Data plane
10.1.1.1 L=5 10.1.1.1 FIB: LFIB: 10.0.0.0/8 1.2.3.4 10.1.1.1
Presentation_ID
26
RT:
10.0.0.0/8 1.2.3.4
LIB:
Data plane
10.1.1.1 L=5 10.1.1.1 FIB: LFIB: 10.0.0.0/8 1.2.3.4 , L=3 L=5 L=3 L=3 10.1.1.1 L=3 10.1.1.1
Presentation_ID
27
4. Every LSR builds its LIB, LFIB data structures based on received labels.
Presentation_ID
28
Netw ork X
IP routing protocols are used to build IP routing tables on all LSRs. Forwarding tables (FIB) are built based on IP routing tables with no labeling information.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
29
Allocating Labels
Routing table of B Network Next-hop X C
Netw ork X E
Every LSR allocates a label for every destination in the IP routing table. Labels have local significance. Label allocations are asynchronous.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
30
Label 25
LIB and LFIB structures have to be initialized on the LSR allocating the label.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
31
Label Distribution
LIB on B Network LSR label X local 25
X = 25
A B
X = 25
C D
Netw ork X E
The allocated label is advertised to all neighbor LSRs, regardless of whether the neighbors are upstream or downstream LSRs for the destination.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
32
X = 25
A B
X = 25
C D
Netw ork X E
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.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
33
Label 25
IP: X
Lab: 25
IP: X
Forwarded IP packets are labeled only on the path segments where the labels have already been assigned.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
34
X = 47
A B C D
35
X = 47
A B C D
Netw ork X E
Label 47
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 (FIB).
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
36
Populating LFIB
FIB on B Network Next hop X C Label 47
X = 47
A B C D
Label 25
Netw ork X E
Router B has already assigned label to X and created an entry in LFIB. Outgoing label is inserted in LFIB after the label is received from the next-hop LSR.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
37
Label 25
Lab: 25
Lab: 47
Label 47 E
IP lookup is performed in FIB, packet is labeled. Label lookup is performed in LFIB, label is removed.
Presentation_ID
38
Label 47
Netw ork X E
After the LSRs have exchanged the labels, LIB, LFIB and FIB data structures are completely populated.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
39
Label 47
Netw ork X
Routing protocol neighbors and LDP neighbors are lost after a link failure. Entries are removed from various data structures.
40
Presentation_ID
Label
Netw ork X
Routing protocols rebuild the IP routing table and the IP forwarding table.
Presentation_ID
41
MPLS Convergence
Routing table of B Network Next-hop X E
FIB on B Network Next hop X E
Label 75
Netw ork X
LFIB and labeling information in FIB are rebuilt immediately after the routing protocol convergence, based on labels stored in LIB.
Presentation_ID
42
MPLS convergence in packet-mode MPLS does not impact the overall convergence time. MPLS convergence occurs immediately after the routing protocol convergence, based on labels already stored in LIB.
Presentation_ID
43
Label 75
Netw ork X E
Presentation_ID
44
Label 75
Netw ork X E
IP routing protocols rebuild the IP routing table. FIB and LFIB are also rebuilt, but the label information might be lacking.
45
Presentation_ID
Presentation_ID
46
UDP is used for hello messages. It is targeted at all routers on this subnet multicast address (224.0.0.2). TCP is used to establish the session. Both TCP and UDP use well-known LDP port number 646 (711 for TDP).
Presentation_ID
47
1.0.0.2
MPLS_A
UDP: Hello UDP: Hello UDP: Hello (1.0.0.1:1050 224.0.0.2:646) (1.0.0.1:1051 224.0.0.2:646) (1.0.0.1:1052 224.0.0.2:646)
NO_MPLS_C
1.0.0.1
1.0.0.3
UDP: Hello UDP: Hello UDP: Hello (1.0.0.4:1033 224.0.0.2:646) (1.0.0.4:1034 224.0.0.2:646) (1.0.0.4:1035 224.0.0.2:646)
MPLS_D
1.0.0.4
48
1.0.0.1
1.0.0.2
Peers first exchange initialization messages. The session is ready to exchange label mappings after receiving the first keepalive.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
49
10.1.1.1
Double lookup is needed: 1. LFIB: remove the label. 2. FIB: forward the IP packet based on IP nexthop address.
50
10.1.1.1
A label is removed on the router before the last hop within an MPLS domain.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
51
Penultimate hop popping optimizes MPLS performace (one less LFIB lookup). PHP does not work on ATM (VPI/VCI cannot be removed).
Pop or implicit null label uses value 3 when being advertised to a neighbor.
Presentation_ID
52
LDP Messages
Discovery messages
Used to discover and maintain the presence of new peers Hello packets (UDP) sent to all-routers multicast address Once neighbor is discovered, the LDP session is established over TCP
Presentation_ID
53
LDP Messages
Session messages
Establish, maintain and terminate LDP sessions
Advertisement messages
Create, modify, delete label mappings
Notification messages
Error signalling
Presentation_ID
54
Agenda
Introduction to MPLS
LDP
MPLS VPN
Monitoring MPLS
Presentation_ID
55
What Is a VPN?
VPN is a set of sites which are allowed to communicate with each other. VPN is defined by a set of administrative policies
Policies determine both connectivity and QoS among sites. Policies established by VPN customers. Policies could be implemented completely by VPN service providers.
Presentation_ID
56
Presentation_ID
57
IP VPN Taxonomy
IP VPNs DIAL
ClientInitiated NASInitiated
Security Appliance
DEDICATED
IP Tunnel
Router FR
Virtual Circuit
ATM
NetworkBased VPNs
RFC 2547 Virtual Router
Presentation_ID
58
MPLS-VPN Terminology
Provider Network (P-Network)
The backbone under control of a Service Provider
CE router
Customer Edge router. Part of the C-network and interfaces to a PE router
Presentation_ID
59
MPLS-VPN Terminology
Site
Set of (sub)networks part of the C-network and colocated A site is connected to the VPN backbone through one or more PE/CE links
PE router
Provider Edge router. Part of the P-Network and interfaces to CE routers
P router
Provider (core) router, without knowledge of VPN
Presentation_ID
60
MPLS-VPN Terminology
Route-Target
64 bits identifying routers that should receive the route
Route Distinguisher
Attributes of each route used to uniquely identify prefixes among VPNs (64 bits) VRF based (not VPN based)
VPN-IPv4 addresses
Address including the 64 bits Route Distinguisher and the 32 bits IP address
Presentation_ID
61
MPLS-VPN Terminology
VRF
VPN Routing and Forwarding Instance Routing table and FIB table
VPN-Aware network
A provider backbone where MPLS-VPN is deployed
Presentation_ID
62
Presentation_ID
63
VPN-C
VPN-A
Site-2 Site-3
VPN-B
A site belonging to different VPNs may or MAY NOT be used as a transit point between VPNs
If two or more VPNs have a common site, address space must be unique among these VPNs
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
64
65
10.2.0.0
CE
VPN_B
iBGP sessions
CE P P PE CE
VPN_A
11.5.0.0
VPN_A
10.2.0.0 CE
VPN_A
PE
10.1.0.0
11.6.0.0
VPN_B
CE PE
P
PE CE
VPN_B
10.3.0.0
10.1.0.0 CE
P routers (LSRs) are in the core of the MPLS cloud PE routers use MPLS with the core and plain IP with CE routers P and PE routers share a common IGP PE router are MP-iBGP fully meshed
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
66
PE
CE
Site-2
PE and CE routers exchange routing information through: EBGP, OSPF , RIPv2, Static routing
Presentation_ID
67
PE
VPN Backbone IGP (OSPF, ISIS)
Site-2
Routing and Forwarding table associated with one or more directly connected sites (CEs)
VRF are associated to (sub/virtual/tunnel)interfaces Interfaces may share the same VRF if the connected sites may share the same routing information
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
68
PE
VPN Backbone IGP
CE
Site-2
The routes the PE receives from CE routers are installed in the appropriate VRF The routes the PE receives through the backbone IGP are installed in the global routing table By using separate VRFs, addresses need NOT to be unique among VPNs
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
69
Presentation_ID
70
P PE
iBGP session
PE and P routers share a common IGP (ISIS or OSPF) PEs establish MP-iBGP sessions between them
PEs use MP-BGP to exchange routing information related to the connected sites and VPNs
VPN-IPv4 addresses, Extended Community, Label
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
71
P PE-2
VPN-IPv4 update is translated into IPv4 address (Net1) put into VRF green since RT=Green and advertised to CE-2
CE-2
Site-2
Site-1
CE-1
PE routers receive IPv4 updates (EBGP, RIPv2, Static) PE routers translate into VPN-IPv4 Assign a SOO and RT based on configuration Re-write Next-Hop attribute Assign a label based on VRF and/or interface Send MP-iBGP update to all PE neighbors
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
72
P PE-2
VPN-IPv4 update is translated into IPv4 address (Net1) put into VRF green since RT=Green and advertised to CE-2
CE-2
Site-2
Site-1
CE-1
Receiving PEs translate to IPv4 Insert the route into the VRF identified by the RT attribute (based on PE configuration) The label associated to the VPN-IPv4 address will be set on packet forwarded towards the destination
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
73
Driven by PE configuration
A PE which connects sites belonging to multiple VPNs will install the route into the site VRF if the Route-target attribute contains one or more VPNs to which the site is associated
Presentation_ID
74
Route Distinguisher
64 bits Makes the IPv4 route globally unique RD is configured in the PE for each VRF RD may or may not be related to a site or a VPN IPv4 address (32bits) Extended Community attribute (64 bits) Site of Origin (SOO): identifies the originating site Route-target (RT): identifies the set of sites the route has to be advertised to
Presentation_ID
75
76
General form
<16bits type>:<ASN>:<32 bit number> Registered AS number <16bits type>:<IP address>:<16 bit number> Registered IP address
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
77
Presentation_ID
78
PE routers re-write the Next-Hop with their own address (loopback interface address)
Next-Hop-Self BGP command towards iBGP neighbors Loopback addresses are advertised into the backbone IGP PE addresses used as BGP Next-Hop must be uniquely known in the backbone IGP No summarisation of loopback addresses in the core
Presentation_ID
79
MPLS Forwarding Packet forwarding PE and P routers have BGP next-hop reachability through the backbone IGP
Presentation_ID
80
IP packet
PE1
CE2
IP packet
VPN Label
packet
PE1 receives IP packet Lookup is done on site VRF BGP route with Next-Hop and Label is found BGP next-hop (PE2) is reachable through IGP route with associated label
P1
P2
IP packet
PE2
packet
CE3
Presentation_ID
81
10.2.0.0 CE
VPN_B
CE PE2 P P PE1 P P PE
T8T2Data
11.5.0.0
VPN_A
10.2.0.0 CE
VPN_A
CE
Data
10.1.0.0
11.6.0.0
VPN_B
CE
CE
VPN_B
10.3.0.0
10.1.0.0 CE
<RD_B,10.1> iBGP NH= PE2 T2 <RD_B,10.2> ,,iBGPnext hop PE1,T1 T7 T8
<RD_B,10.2> , iBGP next hop PE2T2 <RD_B,10.3> , iBGP next hop PE3T3 <RD_A,11.6> , iBGP next hop PE1T4 <RD_A,10.1> , iBGP next hop PE4T5 <RD_A,10.4> , iBGP next hop PE4T6 T7 <RD_A,10.2> , iBGP next hop PE2
PE router does IP Longest Match from VPN_B FIB , find iBGP next hop PE2 and impose a stack of labels: exterior Label T2 + Interior Label T8
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
T8 T9 T7 TB TB T8
82
10.2.0.0 CE Data
VPN_B T2 Data
TB T2 Data
VPN_A
CE
P P P
TAT2 Data
11.5.0.0
VPN_A
10.2.0.0 CE
VPN_A
PE2
PE
T8 Data T2
CE
10.1.0.0
11.6.0.0
VPN_B
CE PE1
CE
VPN_B
10.3.0.0
10.1.0.0 CE
in / out
T8, TA T8 Tw
T7 Tu T9 Tx Ta Ty Tb Tz
All Subsequent P routers do switch the packet Solely on Interior Label Egress PE router, removes Interior Label Egress PE uses Exterior Label to select which VPN/CE to forward the packet to.
Presentation_ID
83
A 12
130.130.10.1
B 12
130.130.11.3
In VPN 12, host 130.130.10.1 sends a packet with destination 130.130.11.3 Customer sites are attached to Provider Edge (PE) routers A & B.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
84
2. PE router A selects the correct VPN forwarding table based on the links VPN ID (12).
VPN-ID 12 12
PE Label 42 101
...
Presentation_ID
...
...
...
...
85
3. PE router A matches the incoming packets destination address with VPN 12s forwarding table. 4. PE router A adds two labels to the packet: one identifying the destination PE, and one identifying the destination VPN site.
Presentation_ID
...
101
989
130.130.11.3
Rest of IP packet
86
5. Packet is label-switched from PE router A to PE B based on the top label, using normal MPLS. The network core knows nothing about VPNs and sites: it only knows how to get packets from A to B using MPLS.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
87
12
130.130.11.3 6. PE router B identifies the correct site in VPN 12 from the inner label. 7. PE router B removes the labels and forwards the IP packet to the correct VPN 12 site.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
88
Presentation_ID
89
VRF Routing table contains routes which should be available to a particular set of sites Analogous to standard IOS routing table, supports the same set of mechanisms Interfaces (sites) are assigned to VRFs
One VRF per interface (sub-interface, tunnel or virtualtemplate)
Possible many interfaces per VRF
Presentation_ID
90
Routing processe s
BGP
RIP
Static
Routing contexts
Presentation_ID
91
Logical view
Site-1
VPN-C
VPN-A
Site-2 Site-3
Multihop MP-iBGP
P P PE
VRF for site-2 Site-1 routes Site-2 routes Site-3 routes
VPN-B
PE
VRF for site-1 Site-1 routes Site-2 routes
Routing view
Site-1
Site-2
Site-3
Site-4
Presentation_ID
92
iBGP sessions
CE CE P P PE P P PE PE CE
VPN_A
10.2.0.0
VPN_B
11.5.0.0
VPN_A
10.2.0.0 CE
VPN_A
PE
10.1.0.0
11.6.0.0
VPN_B
CE
CE
VPN_B
10.3.0.0
10.1.0.0 CE
VPN-IPv4 address are propagated together with the associated label in BGP Multiprotocol extension Extended Community attribute (route-target) is associated to each VPN-IPv4 address, to populate the site VRF
Presentation_ID
93
Each site has full routing knowledge of all other sites (of same VPN) Each CE announces his own address space MP-BGP VPN-IPv4 updates are propagated between PEs Routing is optimal in the backbone Each route has the BGP Next-Hop closest to the destination No site is used as central point for connectivity
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
94
IntCE3
PE3
PE1
VPN-IPv4 updates exchanged between PEs RD:N1, NH=PE1,Label=IntCE1, RT=Blue RD:N2, NH=PE2,Label=IntCE2, RT=Blue RD:N3, NH=PE3,Label=IntCE3, RT=Blue
EBGP/RIP/Static N2,NH=CE2
IntCE 1
PE2
EBGP/RIP/Static
Site-2
N2 Routing Table on CE2 N1,NH=PE2 N2,Local N3,NH=PE2
N1 NH=CE1
Site-1
N1
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
95
One central site has full routing knowledge of all other sites (of same VPN) Hub-Site Other sites will send traffic to Hub-Site for any destination Spoke-Sites Hub-Site is the central transit point between Spoke-Sites Use of central services at Hub-Site
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
96
BGP/RIPv2
CE1
PE1
Site-2
N2
PE3 PE2
CE2
IntCE3-Hub VRF (Import RT=Hub) Site-3 CE3-Hub N1,NH=PE1 N2,NH=PE2 IntCE3-Spoke VRF N3 (Export CE3-Spoke RT=Spoke) N1,NH=CE3Spoke BGP/RIPv2 N2,NH=CE3Spoke N3,NH=CE3VPN-IPv4 updates advertised by PE3 Spoke
Routes are imported/exported into VRFs based on RT value of the VPN-IPv4 updates
97
Site-1
N1
CE1
PE1
Site-2
N2
PE3
CE2
CE3-Spoke BGP/RIPv2
PE2
IntCE2 VRF (Import RT=Spoke) (Export RT=Hub) N1,NH=PE3 (imported) N2,NH=CE2 (exported) N3,NH=PE3 (imported)
Traffic from one spoke to another will travel across the hub site Hub site may host central services Security, NAT, centralised Internet access
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
98
The Internet routing table is treated separately In the VPN backbone the Internet routes are in the Global routing table of PE routers Labels are not assigned to external (BGP) routes
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
99
A default route is installed into the site VRF and pointing to a Internet Gateway
The label is the IGP label corresponding to the IP address of the Internet gateway
Known in the IGP
Presentation_ID
100
101
The Internet Gateway specified in the default route (into the VRF) need NOT to be directly connected
Presentation_ID
102
Internet PE-IG
MP-BGP 192.168.1.2
PE
Serial0
PE
ip vrf VPN-A rd 100:1 route-target both 100:1 ! Interface Serial0 ip address 192.168.10.1 255.255.255.0 ip vrf forwarding VPN-A ! Router bgp 100 no bgp default ipv4-unicast network 171.68.0.0 mask 255.255.0.0 neighbor 192.168.1.1 remote 100 neighbor 192.168.1.1 activate neighbor 192.168.1.1 next-hop-self neighbor 192.168.1.1 update-source loopback0 ! address-family ipv4 vrf VPN-A neighbor 192.168.10.2 remote-as 65502 neighbor 192.168.10.2 activate exit-address-family ! address-family vpnv4 neighbor 192.168.1.2 activate exit-address-family ! ip route 171.68.0.0 255.255.0.0 Serial0 ip route vrf VPN-A 0.0.0.0 0.0.0.0 192.168.1.1 glob
Presentation_ID
103
192.168.1.1
Internet
PE-IG
192.168.1.2
PE
Serial0
IP packet D=cisco.co m
Global Table and LFIB 192.168.1.1/32 Label=3 192.168.1.2/32 Label=5 ... Site-2 VRF 0.0.0.0/0 192.168.1.1 (global) Site-1 routes Site-2 routes
PE
Presentation_ID
104
PE routers need not to hold the Internet table PE routers will use BGP-4 sessions to originate customer routes Packet forwarding is done with a single label identifying the Internet Gateway IP address
More labels if Traffic Engineering is used
Presentation_ID
105
Presentation_ID
106
Presentation_ID
107
Internet PE-IG
MP-BGP 192.168.1.2
PE
PE
Serial0.1
Serial0.2
ip vrf VPN-A rd 100:1 route-target both 100:1 ! Interface Serial0 no ip address ! Interface Serial0.1 ip address 192.168.10.1 255.255.255.0 ip vrf forwarding VPN-A ! Interface Serial0.2 ip address 171.68.10.1 255.255.255.0 ! Router bgp 100 no bgp default ipv4-unicast neighbor 192.168.1.1 remote 100 neighbor 192.168.1.1 activate neighbor 192.168.1.1 next-hop-self neighbor 192.168.1.1 update-source loopback0 neighbor 171.68.10.2 remote 502 ! address-family ipv4 vrf VPN-A neighbor 192.168.10.2 remote-as 502 neighbor 192.168.10.2 activate exit-address-family ! address-family vpnv4 neighbor 192.168.1.2 activate exit-address-family
108
Presentation_ID
192.168.1.1
Internet
PE-IG
192.168.1.2
PE
Serial0.1
PE
Serial0.2
IP packet D=cisco.co m
Serial0.1 Site-1
CE routing table Site-2 routes ----> Serial0.1 Network 171.68.0.0/16 Internet routes ---> Serial0.2 Site-2
Serial0.2
Presentation_ID
109
Scaling
Existing BGP techniques can be used to scale the route distribution: route reflectors
Each edge router needs only the information for the VPNs it supports
Directly connected VPNs
Presentation_ID
110
Route Reflectors
RR CE P PE2 P CE PE1 P PE RR P PE
10.2.0.0
VPN_B VPN_A
CE 11.5.0.0 CE 10.1.0.0
VPN_A
VPN_A
10.2.0.0 CE
11.6.0.0
VPN_B
CE VPN_B 10.3.0.0
10.1.0.0 CE
Route Reflectors may be partitioned Each RR store routes for a set of VPNs Thus, no BGP router needs to store ALL VPNs information PEs will peer to RRs according to the VPNs they directly connect
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
111
Presentation_ID
112
PE
MP-iBGP sessions
Each VRF has an import and export policy configured Policies use route-target attribute (extended community) PE receives MP-iBGP updates for VPN-IPv4 routes If route-target is equal to any of the import values configured in the PE, the update is accepted Otherwise it is silently discarded
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
113
PE
Policy may change in the PE if VRF modifications are done New VRFs, removal of VRFs However, the PE may not have stored routing information which become useful after a change
114
PE
Import RT=green
1. PE doesnt need red routes
PE router will discard update with unused route-target Optimization requires these updates NOT to be sent Outbound Route Filter (ORF) allows a router to tell its neighbors which filter to use prior to propagate BGP updates
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
115
Presentation_ID
116
RD is configured on PE routers (for each VRF) VRFs are associated to RDs in each PE Common (good) practice is to use the same RD for the same VPN in all PEs But not mandatory VRF configuration command
Presentation_ID
117
VPN-C
Site-3
VPN-A
Site-2
VPN-B
ip vrf site3 rd 100:3 route-target export 100:2 route-target import 100:2 route-target import 100:3 route-target export 100:3 ip vrf site-4 rd 100:4 route-target export 100:3 route-target import 100:3
VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes
VRF for site-3 (100:3) Site-2 routes Site-3 routes Site-4 routes
Site-1
Presentation_ID
Site-2
Site-3
Site-4
118
119
Presentation_ID
120
121
Site-4 Site-1
VPN-C
Site-3
VPN-A
Site-2
VPN-B
Multihop MP-iBGP
P P PE2
VRF for site-3 (100:3) Site-2 routes Site-3 routes Site-4 routes
PE1
VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes
ip vrf site3 rd 100:3 route-target export 100:23 route-target import 100:23 route-target import 100:34 route-target export 100:34 ip vrf site-4 rd 100:4 route-target export 100:34 route-target import 100:34 ! interface Serial4/6 ip vrf forwarding site3 ip address 192.168.73.7 255.255.255.0 encapsulation ppp ! interface Serial4/7 ip vrf forwarding site4 ip address 192.168.74.7 255.255.255.0 encapsulation ppp
Site-1
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
Site-2
Site-3
Site-4
122
Site-4 Site-1
VPN-C
Site-3
VPN-A
Site-2
VPN-B
router bgp 100 no bgp default ipv4-unicast neighbor 6.6.6.6 remote-as 100 neighbor 6.6.6.6 update-source Loop0 ! address-family ipv4 vrf site4 neighbor 192.168.74.4 remote-as 65504 neighbor 192.168.74.4 activate exit-address-family ! address-family ipv4 vrf site3 neighbor 192.168.73.3 remote-as 65503 neighbor 192.168.73.3 activate exit-address-family ! address-family vpnv4 neighbor 6.6.6.6 activate neighbor 6.6.6.6 next-hop-self exit-address-family
VRF for site-2 (100:2) Site-1 routes Site-2 routes Site-3 routes
Site-1
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
Site-2
Site-3
Site-4
123
Summary
Presentation_ID
124
Site
Routing peering
Mesh of point-to-point connections requires each (virtual) router to maintain O(n) peering (where n is the number of sites) does not scale to VPNs with large number of sites (due to the properties of existing routing protocols)
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
Amount of routing peering maintained by CE is O(1) - CE peers only with directly attached PE
125
New Site
Config change
Mesh of point-to-point connections requires O(n) configuration changes (where n is the number of sites) when adding a new site
Amount of configuration changes needed to add a new site (new CE) is O(1): need to configure only the directly attached PE
Agenda
Introduction to MPLS
LDP
MPLS VPN
Monitoring MPLS
Presentation_ID
127
12.1(3)T
128
Router#show tag-switching tdp parameters Protocol version: 1 No tag pool for downstream tag distribution Session hold time: 180 sec; keep alive interval: 60 sec Discovery hello: holdtime: 15 sec; interval: 5 sec Discovery directed hello: holdtime: 180 sec; interval: 5 sec
Presentation_ID
129
Router#show tag-switching interface detail Interface Serial1/0.1: IP tagging enabled TSP Tunnel tagging not enabled Tagging operational MTU = 1500 Interface Serial1/0.2: IP tagging enabled TSP Tunnel tagging not enabled Tagging operational MTU = 1500
Presentation_ID
130
Router#show tag-switching tdp discovery Local TDP Identifier: 192.168.3.102:0 TDP Discovery Sources: Interfaces: Serial1/0.1: xmit/recv TDP Id: 192.168.3.101:0 Serial1/0.2: xmit/recv TDP Id: 192.168.3.100:0
Presentation_ID
131
router(config)#
router(config)#
132
Router#show tag-switching tdp neighbors Peer TDP Ident: 192.168.3.100:0; Local TDP Ident 192.168.3.102:0 TCP connection: 192.168.3.100.711 - 192.168.3.102.11000 State: Oper; PIEs sent/rcvd: 55/53; ; Downstream Up time: 00:43:26 TDP discovery sources: Serial1/0.2 Addresses bound to peer TDP Ident: 192.168.3.10 192.168.3.14 192.168.3.100
Presentation_ID
133
Router#show tag-switching tdp neighbors detail Peer TDP Ident: 192.168.3.100:0; Local TDP Ident 192.168.3.102:0 TCP connection: 192.168.3.100.711 - 192.168.3.102.11000 State: Oper; PIEs sent/rcvd: 55/54; ; Downstream; Last TIB rev sent 26 UID: 1; Up time: 00:44:01 TDP discovery sources: Serial1/0.2; holdtime: 15000 ms, hello interval: 5000 ms Addresses bound to peer TDP Ident: 192.168.3.10 192.168.3.14 192.168.3.100 Peer holdtime: 180000 ms; KA interval: 60000 ms; Peer state: estab
Presentation_ID
134
Router#show tag tdp bindings tib entry: 192.168.3.1/32, rev 9 local binding: tag: 28 remote binding: tsr: 19.16.3.3:0, tib entry: 192.168.3.2/32, rev 8 local binding: tag: 27 remote binding: tsr: 19.16.3.3:0, tib entry: 192.168.3.3/32, rev 7 local binding: tag: 26 remote binding: tsr: 19.16.3.3:0, tib entry: 192.168.3.10/32, rev 6 local binding: tag: imp-null(1) remote binding: tsr: 19.16.3.3:0,
tag: 28
tag: 27
tag: imp-null(1)
tag: 26
Presentation_ID
135
Presentation_ID
136
Router#show tag-switching forwarding-table ? A.B.C.D Destination prefix detail Detailed information interface Match outgoing interface next-hop Match next hop neighbor tags Match tag values tsp-tunnel TSP Tunnel id | Output modifiers <cr>
Presentation_ID
137
Router#show tag-switching forwarding-table detail Local Outgoing Prefix Bytes tag Outgoing tag tag or VC or Tunnel Id switched interface 26 Untagged 192.168.3.3/32 0 Se1/0.3 MAC/Encaps=0/0, MTU=1504, Tag Stack{} 27 Pop tag 192.168.3.4/32 0 Se0/0.4 MAC/Encaps=4/4, MTU=1504, Tag Stack{} 20618847 28 29 192.168.3.4/32 0 Se1/0.3 MAC/Encaps=4/8, MTU=1500, Tag Stack{29} 18718847 0001D000
Next Hop
point2point point2point
point2point
Presentation_ID
138
Router#show ip cef 192.168.20.0 detail 192.168.20.0/24, version 23, cached adjacency to Serial1/0.2 0 packets, 0 bytes tag information set local tag: 33 fast tag rewrite with Se1/0.2, point2point, tags imposed: {32} via 192.168.3.10, Serial1/0.2, 0 dependencies next hop 192.168.3.10, Serial1/0.2 valid cached adjacency tag rewrite with Se1/0.2, point2point, tags imposed: {32}
Presentation_ID
139
12.1(3)T
Debugs Tag Forwarding Information Base events: label creations, removals, rewrites.
router(config)#
12.1(3)T
Debugs labeled packets switched by the router. Disables fast or distributed tag switching.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
140
Presentation_ID
141
Diagnosis
MPLS is not enabled on adjacent router.
Verification
Verify with show tag interface on the adjacent router.
Presentation_ID
142
Diagnosis
Label distribution protocol mismatch - TDP on one end, LDP on the other end.
Verification
Verify with show tag interface detail on both routers.
Presentation_ID
143
Diagnosis
Packet filter drops TDP/LDP neighbor discovery packets.
Verification
Verify access-list presence with show ip interface. Verify access-list contents with show access-list.
Presentation_ID
144
Diagnosis
Connectivity between loopback interfaces is broken - TDP session is usually established between loopback interfaces of adjacent LSRs.
Verification
Verify connectivity with extended ping command.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
145
Diagnosis
CEF is not enabled.
Verification
Verify with show ip cef.
Presentation_ID
146
Diagnosis
Problems with conditional label distribution.
Verification
Debug label distribution with debug tag tdp advertisement.
Examine the neighbor TDP router IDP with show tag tdp discovery. Verify that the neighbor TDP router ID is matched by the access list specified in tag advertise command.
Presentation_ID
2001, Cisco Systems, Inc. All rights reserved.
147
Packet Labeling
Symptom
Labels are distributed, packets are not labeled.
show interface statistic does not labeled packets being sent
Diagnosis
CEF is not enabled on input interface (potentially due to conflicting feature being configured).
Verification
Verify with show cef interface.
Presentation_ID
148
Presentation_ID
149
Symptom
Overall MPLS connectivity in a router intermittently breaks after an interface failure.
Diagnosis
IP address of a physical interface is used for TDP/LDP identifier. Configure a loopback interface on the router.
Verification
Verify local TDP identifier with show tag-switching tdp neighbors.
Presentation_ID
150
Packet Propagation
Symptom
Large packets are not propagated across the network.
Extended ping with varying packet sizes fails for packet sizes close to 1500
Diagnosis
Tag MTU issues or switches with no support for jumbo frames in the forwarding path.
Verification
Trace the forwarding path; identify all LAN segments in the path. Verify Tag MTU setting on routers attached to LAN segments. Check for low-end switches in the transit path.
Presentation_ID
151
Summary
After completing this lesson, you will be able to perform the following tasks:
Describe procedures for monitoring MPLS on IOS platforms.
List the debugging commands associated with label switching, LDP and TDP.
Identify common configuration or design errors.
152
Customer Reference
153
Presentation_ID
154
Thank you.
155