Professional Documents
Culture Documents
Brkipm 3114 PDF
Brkipm 3114 PDF
Troubleshooting
mLDP
#CLUS
Agenda
• Introduction
• Signaling and Forwarding
• Root and Neighbor
• Protecting mLDP
• MPLS OAM
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 3
Cisco Webex Teams
Questions?
Use Cisco Webex Teams to chat
with the speaker after the session
How
1 Find this session in the Cisco Live Mobile App
2 Click “Join the Discussion”
3 Install Webex Teams or go directly to the team space
4 Enter messages/questions in the team space
#CLUS © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 4
Introduction
Before We Start
• Only IOS-XR is covered, unless otherwise mentioned
• We will not cover mVPN Deployment models/ Profiles
• mLDP’s purpose: replication on multicast (labelled) packets on P
routers
• IOS(-XE): mLDP enabled by default
• IOS-XR: must enable mLDP
mpls ldp
mldp
!
router-id 10.100.1.1
Example of disabling mLDP on a link on IOS-XR: interface GigabitEthernet0/0/0/1
address-family ipv4
mldp disable
!
!
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 6
Recap: mLDP Basics
• mLDP is on top of LDP
• clear mpls ldp neighbor
• mLDP does not have PHP: always one MPLS label on top
• A regular label is always used; explicit null label cannot be used
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 7
Signaling and
Forwarding
Recap: mLDP Signalling
• LDP Label Mapping Message FEC Type 0x100
Label
Opaque
Label FEC FEC
Type
Root
Mapping
TLV Element TLV
Message
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 9
Recap: mLDP Signalling
• LDP Label Mapping Message FEC Type 0x100
Label
Opaque
Label FEC FEC
Type
Root
Mapping
TLV Element TLVshow
RP/0/0/CPU0:P2#
Message
mpls mldp database p2mp
mLDP database
LSM-ID: 0x00003 Type: P2MP Uptime: 00:40:29
FEC Root : 10.0.0.3
Opaque decoded : [mdt 65000:100 1]
Upstream neighbor(s) :
Is CSI accepting : N
10.0.0.3:0 [Active] Uptime: 00:40:29
Local Label (D) : 24014
Downstream client(s):
LDP 10.0.0.1:0 Uptime: 00:00:09
Next Hop : 10.1.8.1
these 3 items = uniquely Interface : GigabitEthernet0/0/0/0
Remote label (D) : 24036
identify the mLDP tree LDP 10.0.0.7:0
Next Hop
Uptime: 00:25:26
: 10.7.8.7
Interface : GigabitEthernet0/0/0/4
Remote label (D) : 24028
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 10
Recap: mLDP Signalling
Opaque Type Type Group # Bytes Supported Mcast app Spec
Global/Generic 1 mVPN Global Identifier Partitioned MDT with BGP AD RFC 6388
Identifier (4)
mVPN VPNID 2 mVPN OUI (3)
VPN Index (4) Default MDT
PMSID ID (4
Transit IPv4 3 In-band Source (4)
SSM in global RFC 6826
Source TLV signaling(global) Group (4)
Transit IPv6 4 In-band signaling Source (16)
SSM in global RFC 6826
Source TLV (global) Group (16)
Transit vpnv4 250 In-band signaling Source (4) SSM in VRF
Source TLV VPN Group (4) Partitioned MDT with no BGP AD RFC 7246
RD (8)
Transit vpnv6 251 In-band signaling Source (16)
SSM in VRF
Source TLV VPN Group (16) RFC 7246
RD (8)
Note: OUI (3) + VPN Index (4) equals vpn-id in the IOS/IOS-XR configuration
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 11
Opaque Examples
• Type 1 example:
• Opaque decoded : [global-id 2]
type 1 global-id 2
=0 : Default MDT
>0 : Data MDT type 2 vpn-id 0
65000:100
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 13
Check mLDP Capabilities
RP/0/0/CPU0:PE2# show mpls ldp capabilities
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 14
Show mpls mldp status
RP/0/0/CPU0:P2# show mpls mldp status
mLDP statistics
Process status : Active, Running and Ready mLDP running?
Logging notifications : Enabled
Label release scan in : never
LSM ID scan in : never logging of mLDP DB entry changes
RIB connection status
RIB connection open
:
:
Connected
Yes
enabled?
mpls_ldp[1185]: %ROUTING-MLDP-5-BRANCH_DELETE : 0x00009 [mdt 65000:100 8] P2MP 10.0.0.3, Delete LDP 10.0.0.1:0 branch remote label 24033
mpls_ldp[1185]: %ROUTING-MLDP-5-BRANCH_ADD : 0x00009 [mdt 65000:100 8] P2MP 10.0.0.3, Add LDP 10.0.0.1:0 branch remote label 24033
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 15
mLDP-only SAC
• RFC 7473: State Advertisement Control for Non-negotiated LDP apps
• Have an LDP peer negotiate to advertise label bindings for certain MPLS apps or not
by means of capability exchange at LDP session establishment
• Configure LDP to negotiate the label advertisement for IPv4, IPv6, FEC128, FEC129,
and mLDP
• Request: run (m)LDP for advertisement of mLDP label bindings, but not for unicast
label bindings
• Use-case: Segment Routing network (no LDP for unicast is needed)
RP/0/0/CPU0:PE3(config-ldp)# capabilities sac ?
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 16
Conventions
24010
• Labelled packet in the direction to the root
24004
• Labelled packet in the direction away from the root
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 17
Lab Used for All Examples
ROOT
6
PE6
ingress
1 3
24019
PE1 PE3
Receiver Source
2 5
PE2 PE5
Receiver Source
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 18
mLDP P2MP Signaling
P2MP P2MP
6
Opaque PE6 Opaque
Root = 3 Root = 3
ROOT
P2MP 7
RP/0/0/CPU0:P2# show mpls mldp database p2mp
4
Opaque P1 mLDP database PE4
Root = 3 LSM-ID: 0x00003 Type: P2MP Uptime: 00:40:29
FEC Root : 10.0.0.3
Label 24004 Opaque decoded : [mdt 65000:100 1]
9 Upstream neighbor(s) :
Is CSI accepting : N
P3 10.0.0.3:0 [Active] Uptime: 00:40:29
Local Label (D) : 24014
2 Downstream client(s):
5
LDP 10.0.0.1:0 Uptime: 00:00:09
PE2 Next Hop PE5
: 10.1.8.1
Receiver Interface : GigabitEthernet0/0/0/0
Remote label (D) : 24036
LDP 10.0.0.7:0 Uptime: 00:25:26
Next Hop : 10.7.8.7
Interface : GigabitEthernet0/0/0/4
Remote label (D) : 24028
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 19
mLDP P2MP Signaling
P2MP P2MP
6
Opaque PE6 Opaque
Root = 3 Root = 3
ROOT
7 4
P1 PE4
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 20
mLDP P2MP Signaling RP/0/0/CPU0:P2# show mpls mldp database p2mp
mLDP database
LSM-ID: 0x00003 Type: P2MP Uptime: 00:40:29
FEC Root : 10.0.0.3
Opaque decoded : [mdt 65000:100 1]
ROOT Upstream neighbor(s) :
Is CSI accepting : N
3 10.0.0.3:0 [Active] Uptime: 00:40:29
1 PE3
Local Label (D) : 24014
Downstream client(s):
PE1
8 LDP 10.0.0.1:0 Uptime: 00:00:09
Next Hop : 10.1.8.1
P2 Interface : GigabitEthernet0/0/0/0
Remote label (D) : 24036
7 LDP 10.0.0.7:0 Uptime: 00:25:26
Next Hop : 10.7.8.7
P1 Interface : GigabitEthernet0/0/0/4
Remote label (D) : 24028
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 21
mLDP MP2MP Signaling ROOT
6 MP2MP Down
MP2MP Up PE6
Opaque
Opaque
Root = 6
1 Root = 6 3
Label 24019
PE1 Label 24010 PE3
MP2MP Down
MP2MP Down 8 Opaque
Opaque
P2 Root = 6
show mpls mldp database Root = 6 MP2MP Up
MP2MP Up Label 24027
LSM-ID: 0x00001 Type: MP2MP Uptime: 02:51:33
Label 24004 Opaque
Opaque
Root = 6
FEC Root : 10.0.0.6 Root = 6
Opaque decoded : [mdt 65000:100 0]
Upstream neighbor(s) : Label 24004 Label 24020
Is CSI accepting : N
10.0.0.6:0 [Active] Uptime: 02:51:33
Next Hop : 10.6.8.6
Interface : GigabitEthernet0/0/0/3
Local Label (D) : 24019 Remote Label (U): 24010
Downstream client(s):
LDP 10.0.0.1:0 Uptime: 02:51:33
Next Hop : 10.1.8.1
Interface : GigabitEthernet0/0/0/0
Remote label (D) : 24004 Local label (U) : 24004
LDP 10.0.0.3:0 Uptime: 02:51:33
Next Hop
Interface
: 10.3.8.3
: GigabitEthernet0/0/0/1
root is configured on
Remote label (D) : 24027 Local label (U) : 24020
all edge/PE routers
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 22
mLDP MP2MP Signaling ROOT
6 MP2MP Down
MP2MP Up PE6
Opaque
Opaque
Root = 6
1 Root = 6 3
Label 24019
PE1 Label 24010 PE3
MP2MP Down
MP2MP Down 8 Opaque
Opaque
P2 Root = 6
Root = 6 MP2MP Up
MP2MP Up Label 24027
Label 24004 Opaque
Opaque
Root = 6
Root = 6
Label 24004 Label 24020
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 23
mLDP MP2MP Signaling show mpls database
LSM-ID: 0x00001 Type: MP2MP Uptime: 02:51:33
ROOT FEC Root : 10.0.0.6
Opaque decoded : [mdt 65000:100 0]
6 Upstream neighbor(s) :
PE6 Is CSI accepting : N
=
24019
10.0.0.6:0 [Active] Uptime: 02:51:33
1 = 3 Next Hop
Interface
: 10.6.8.6
: GigabitEthernet0/0/0/3
PE3
PE1 Local Label (D) : 24019 Remote Label (U): 24010
8 Downstream client(s):
LDP 10.0.0.1:0 Uptime: 02:51:33
show mpls forwarding P2
Next Hop : 10.1.8.1
Interface : GigabitEthernet0/0/0/0
Local Outgoing Prefix Outgoing Next Hop Bytes Remote label (D) : 24004 Local label (U) : 24004
Label Label or ID Interface Switched LDP 10.0.0.3:0 Uptime: 02:51:33
------ ----------- ------------------ ------------ --------------- -------- Next Hop : 10.3.8.3
24004 24027 = mLDP/IR: 0x00001 Gi0/0/0/1 10.3.8.3 0 Interface : GigabitEthernet0/0/0/1
24010 mLDP/IR: 0x00001 Gi0/0/0/3 10.6.8.6 0
= Remote label (D) : 24027 Local label (U) : 24020
24019
1 3
PE1 PE3
Receiver Source
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 25
MP2MP - Never U-Turning
ROOT
6
no U-turn
24018
PE6
24019
1 3
PE1 PE3
Receiver Source
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 26
Show MPLS mLDP Forwarding
Local internal label, label not used for forwarding
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 27
Ingress PE
RP/0/0/CPU0:PE3# show mrib vrf one route 232.10.1.1 10.3.12.12 detail RP/0/0/CPU0:PE3# show mrib mpls forwarding head-lsm-id 0x00005
(10.3.12.12,232.10.1.1) Ver: 0x53e6 RPF nbr: 10.3.12.12 Flags: RPF EID, FMA: 0x10000 LSP information (mLDP) :
RPF-ID: 0, Encap-ID: 4 LSM-ID: 0x00005, Role: Head, Head LSM-ID: 0x00005
Incoming Interface List Incoming Label : (24029)
GigabitEthernet0/0/0/1 Flags: A, Up: 01:10:12 Transported Protocol : <unknown>
Outgoing Interface List Explicit Null : None
Lmdtone Flags: F NS LMI MA, Up: 01:10:12, Head LSM-ID: 0x00005 IP lookup : disabled
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 28
Egress PE
RP/0/0/CPU0:PE1# show mrib vrf one route 232.10.1.1 10.3.12.12 detail
MRIB
(10.3.12.12,232.10.1.1) Ver: 0x732d RPF nbr: 10.0.0.3 Flags: RPF RPFID, FMA: 0x10000
Up: 1d19h
RPF-ID: 1, Encap-ID: 0
Incoming Interface List Outgoing label on previous hop
Lmdtone Flags: A LMI, Up: 1d19h
Outgoing Interface List
GigabitEthernet0/0/0/2 Flags: F NS, Up: 1d19h
MFIB
RP/0/0/CPU0:PE1# show mpls mldp forwarding label 24037 RP/0/0/CPU0:PE1# show mfib vrf one route 232.10.1.1 10.3.12.12 detail
mLDP MPLS forwarding database
IP Multicast Forwarding Information Base
24037 LSM-ID: 0x0000E flags: None Entry flags: C - Directly-Connected Check, S - Signal, D - Drop,
Lmdtone, RPF-ID: 1, TIDv4: E0000010, TIDv6: E0800010 IA - Inherit Accept, IF - Inherit From, EID - Encap ID,
ME - MDT Encap, MD - MDT Decap, MT - MDT Threshold Crossed,
MH - MDT interface handle, CD - Conditional Decap,
DT - MDT Decap True, EX - Extranet, RPFID - RPF ID Set,
MoFE - MoFRR Enabled, MoFS - MoFRR State, X - VXLAN
RP/0/0/CPU0:PE1# show mpls mldp database 0x0000E
Interface flags: F - Forward, A - Accept, IC - Internal Copy,
mLDP database
NS - Negate Signal, DP - Don't Preserve, SP - Signal Present,
LSM-ID: 0x0000E Type: P2MP Uptime: 00:14:24
EG - Egress, EI - Encapsulation Interface, MI - MDT Interface,
FEC Root : 10.0.0.5
Opaque decoded : [mdt 65000:100 1]
(10.3.12.12,232.10.1.1), Flags: RPFID , FMA: 0x10000 ,
Features : MoFRR
Up: 1d19h
Upstream neighbor(s) :
SW Forwarding Counts: 0/498616/13961248
Is CSI accepting : N
SW Replication Counts: 0/498616/13961248
10.0.0.7:0 [Active] Uptime: 00:14:24
SW Failure Counts: 0/0/0/0/0
Local Label (D) : 24037
MVPN Info :-
Downstream client(s):
Associated Table ID : 0xe0000000
PIM MDT Uptime: 00:14:24
MDT Handle: 0x0, MDT Probe:N [N], Rate:Y, Acc:Y
Egress intf : Lmdtone
MDT SW Ingress Encap V4/V6, Egress decap: 0 / 0, 0
Table ID : IPv4: 0xe0000010 IPv6: 0xe0800010
EG count: 1
RPF ID : 1
Encap ID: 0, RPF ID: 1
Local Receiver: True, Turnaround: False
Lmdtone Flags: A LMI, Up:1d19h
GigabitEthernet0/0/0/2 Flags: NS EG, Up:1d19h
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 29
Looking up mLDP Entry
• Look up mLDP database entry by: RP/0/0/CPU0:P2# show mpls mldp database ?
<0x1-0xffffe> LSM ID
• LSM-ID brief Brief information
details Details
• Root mp2mp Show mp2mp LSPs
opaquetype specify specific opaque value
• Type of tree: P2MP vs. MP2MP p2mp
root
Show p2mp LSPs
Show based on root address
• Opaque value |
<cr>
Output Modifiers
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 30
Root and Neighbor
Finding Root (Root Lookup)
• P2MP: automatic (BGP next-hop from RIB entry)
• MP2MP: configured
• One or more root routers are configured
• Lowest distance/metric is chosen, i.e. entry in the RIB
If ECMP: round robin for each tree
RP/0/0/CPU0:PE3# show pim rpf summary
• ISIS Mcast Topology Not configured
MoFRR Flow-based Not configured
MoFRR RIB Not configured
• SAFI 2 will be chosen if in use! RUMP MuRIB Enabled
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 32
Bound Addresses / Peer Address List
• Route to root-> next hop address in RIB
• Next hop addresses is looked up in bound addresses list of all mLDP
neighbors in order to find the mLDP neighbor
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 33
IGP Cost to Neighbor
• When looking at mLDP adjacencies, IOS-XR ignores the link cost
(towards the LDP router-ID of the neighbor)
• Reason: avoid forwarding over another path, non-connected, with lower
metric
• So, any link to the adjacent mLDP router will be used, even if there
is a different IGP cost
• This applies to the up- and downstream direction
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 34
IGP Cost to Neighbor
RP/0/0/CPU0:P2# show mpls mldp database
mLDP database
LSM-ID: 0x0000D Type: P2MP Uptime: 01:55:50 6
FEC Root : 10.0.0.3 PE6
Opaque decoded : [vpnv4 65000:3 10.3.12.12 232.11.12.1] ROOT
Upstream neighbor(s) :
Is CSI accepting : N 1 3
10.0.0.3:0 [Active] Uptime: 01:55:50
Local Label (D) : 24016 PE1 PE3
Downstream client(s): Source
LDP 10.0.0.7:0 Uptime: 01:55:50
Next Hop : 10.7.8.7
Interface : GigabitEthernet0/0/0/4
Remote label (D) : 24016
8
P2
7 parallel links, 4
any mLDP tree can pick one of P1
equal cost PE4
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 35
IGP Cost to Neighbor
6
PE6
ROOT
1 3
PE1 PE3
Source
outgoing intfs
7 IGP cost parallel links, 4
P1 100 different cost PE4
9
P3
2 5
PE2 PE5
Receiver
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 36
ECMP show mpls forwarding
RP/0/0/CPU0:P2# show mpls mldp database Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface
mLDP database Switched
LSM-ID: 0x00001 Type: MP2MP Uptime: 1d03h ------ ----------- ------------------ ------------ --------------- ------
FEC Root : 10.0.0.6 24017 24025 10.0.0.9/32 Gi0/0/0/2 10.4.8.4 0
Opaque decoded : [mdt 65000:100 0] 24016 10.0.0.9/32 Gi0/0/0/4 10.7.8.7 0
Upstream neighbor(s) : 24016 10.0.0.9/32 Gi0/0/0/5 10.107.8.7 0
Is CSI accepting : N
10.0.0.6:0 [Active] Uptime: 1d03h
Next Hop : 10.6.8.6
Interface : GigabitEthernet0/0/0/3
Local Label (D) : 24019 Remote Label (U): 24010 show mpls mldp neighbor
Downstream client(s): MLDP peer ID : 10.0.0.7:0, uptime 1d03h Up,
LDP 10.0.0.3:0 Uptime: 1d03h Capabilities : Typed Wildcard FEC, P2MP, MP2MP
Next Hop : 10.3.8.3 Target Adj : No
Interface : GigabitEthernet0/0/0/1 Upstream count : 0
Remote label (D) : 24027 Local label (U) : 24020 Branch count : 1
LDP 10.0.0.4:0 Uptime: 1d03h Label map timer : never
Next Hop : 10.4.8.4 Policy filter in :
Interface : GigabitEthernet0/0/0/2 Path count : 2
Remote label (D) : 24010 Local label (U) : 24005 Path(s) : 10.7.8.7 GigabitEthernet0/0/0/4 LDP
LDP 10.0.0.7:0 Uptime: 1d03h : 10.107.8.7 GigabitEthernet0/0/0/5 LDP
Next Hop : 10.107.8.7 Adj list : 10.107.8.7 GigabitEthernet0/0/0/5
Interface : GigabitEthernet0/0/0/5 : 10.7.8.7 GigabitEthernet0/0/0/4
Remote label (D) : 24017 Local label (U) : 24018 Peer addr list : 10.0.0.7
: 10.107.8.7
: 10.107.9.7
: 10.7.9.7
: 10.7.8.7
only one outgoing interface from two : 10.2.7.7
: 10.1.7.7
possible interfaces
Default: no ECMP for one mLDP tree
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 37
ECMP
• One mLDP tree can have one outgoing interface only, towards a down- or
upstream neighbor
• This is shown in the mLDP database, so in control plane
• Multiple mLDP trees, will statistically load balance over different outgoing
interfaces
• Hashing used: hash based on LDP Peer address and CRC32 hash from the
mLDP FEC
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 38
Root is Reachable / not Reachable
RP/0/0/CPU0:PE1# show mpls mldp root
• Check route
• Check table : SAFI 1 or SAFI 2?
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 39
MP2MP Tree and Root
• One root = single point of failure
• Multiple roots (Root Node Redundancy) → multiple trees
Anycast RNR Hot Standby RNR
Root 2 P2 P4 Root 2 P2 P4
10.1.1.1/31 10.1.1.2/32
IGP IGP
PE3 PE3
• One root address only, one tree active only • Multiple root addresses
• Longest match routing • Both trees active at the same time
• 10.1.1.1 can be phantom • PE router selects preferred root and sends onto that tree
only (no duplicate traffic), but receives from any tree
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 40
RNR
• Only for configured ROOT (i.e. Default MDT i.e. MP2MP tree)
RNR LSM ID: Identifier of the LSP, assigned to the active LSP
How is the root chosen? Closest metric and then highest IP address
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 41
RNR: Anycast
6
PE6
7 4
P1 PE4
Receiver
10.0.0.99/31 9
P3
IGP
standby 2 5
ROOT PE2 PE5
Source
S2
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 42
RNR: Anycast
6
PE6
10.0.0.99/31 9
P3
IGP
standby 2 5
ROOT PE2 PE5
Source
S2
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 43
RNR: Hot Standby
primary root = PE1
6 secondary root = PE2
PE6
7 4
P1 PE4
Receiver
primary root = PE2
9 secondary root = PE1
P3
active 2 5
ROOT PE2 PE5
MP2MP tree Source
S2
7 4
P1 PE4
Receiver
active root failure primary root = PE1
9
P3
active 2 5
ROOT failure
PE2 PE5
MP2MP tree Source
S2
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 46
mLDP MoFRR UCMP ( + variance) is possible
• Multicast Only Fast ReRoute router ospf 1
router-id 10.100.1.2
• Requirements: ucmp variance 500
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 47
mLDP MoFRR
RP/0/0/CPU0:PE2# show mpls mldp database
mLDP database
LSM-ID: 0x00002 Type: P2MP Uptime: 01:25:08
6
FEC Root : 10.0.0.3 PE6
ROOT
Opaque decoded : [vpnv4 65000:3 10.3.12.12 232.11.12.1]
Features : MoFRR 1 3
Upstream neighbor(s) :
Is CSI accepting : N PE1 PE3
10.0.0.9:0 [Active] Uptime: 01:25:08 Source
Local Label (D) : 24026
Is CSI accepting : N
10.0.0.7:0 [Inactive] Uptime: 01:11:15
Local Label (D) : 24000
8
Downstream client(s): P2
PIM MDT Uptime: 01:25:08
Egress intf : Imdtone
Table ID : IPv4: 0xe0000010 7 4
RPF ID : 1
P1 PE4
RD : 65000:3
ECMP towards
9 ingress PE
P3 ROOT
RP/0/0/CPU0:PE2# show route 10.0.0.3
2 5
Routing entry for 10.0.0.3/32
PE2 PE5metric 4, type intra area
Known via "ospf 1", distance 110,
mpls ldp Installed Apr 12 09:28:05.077 for 00:00:29
Receiver mldp Routing Descriptor Blocks
logging notifications 10.2.9.9, from 10.0.0.3, via GigabitEthernet0/0/0/0
logging internal Route metric is 4
address-family ipv4 10.2.7.7, from 10.0.0.3, via GigabitEthernet0/0/0/1
Route metric is 4
mofrr
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 48
mLDP MoFRR
primary path is down
RP/0/0/CPU0:PE2# show mpls mldp database
mLDP database 6
LSM-ID: 0x00002 Type: P2MP Uptime: 01:26:26 PE6
FEC Root : 10.0.0.3 ROOT
Opaque decoded : [vpnv4 65000:3 10.3.12.12 232.11.12.1]
Features : MoFRR 1 3
Upstream neighbor(s) : PE1 PE3
Is CSI accepting : N
10.0.0.7:0 [Active] Uptime: 01:12:33 Source
Local Label (D) : 24000
Downstream client(s):
PIM MDT Uptime: 01:26:26 8
Egress intf : Imdtone
P2
Table ID : IPv4: 0xe0000010
RPF ID : 1
RD : 65000:3
7 4
P1 PE4
9
P3
2 5
PE2 PE5
mpls ldp
Receiver mldp
logging notifications
logging internal
address-family ipv4
mofrr
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 49
Protecting mLDP
Protecting mLDP
• Two solutions
1. Unicast TE LSPs
• Requires to have MPLS Traffic Engineering
• Backup auto-tunnels can be used to protect primary onehop tunnels protecting
all links
2. LFA
• Loop Free Alternate
• Per-prefix FRR
• No signalling involved
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 52
TE Auto-Tunnels
RP/0/0/CPU0:P2# show mpls traffic-eng tunnels 2001
1 3
auto-tunnel Auto-tunnel Mesh:
Group ID: 1
PE1 PE3
Destination list: mesh-list
...
Current LSP Info:
Outgoing Interface: GigabitEthernet0/0/0/0, Outgoing Label: implicit-null
Router-IDs: local 10.0.0.8
failure downstream 10.0.0.1
8 ...
backup P2
auto-tunnel RP/0/0/CPU0:P2# show mpls traffic-eng fast-reroute database interface gig 0/0/0/0
7 4
Tunnel head FRR information:
label 24018 of backup Tunnel Out Intf : Label FRR Intf : Label
------------ ------------------ ------------------
Status
-------
PE4
P1
tunnel is pushed tt2001 Gi0/0/0/0:Pop tt3000:Pop Ready
2
Admin: up Oper: up Path: valid Signalling: connected
5
path option (autob_nhop_te3000), preference 20, type explicit (autob_nhop_te3000) (Basis for Setup, path weight 2)
PE2 Accumulative metrics: TE 2 IGP PE5
2 Delay 600000
path option (autob_nhop_srlg_te3000), preference 10, type explicit (autob_nhop_srlg_te3000) [disabled]...
Current LSP Info:
Instance: 2, Signaling Area: OSPF 1 area 0
Uptime: 15:24:38 (since Thu Apr 25 14:59:58 UTC 2019)
Outgoing Interface: GigabitEthernet0/0/0/4, Outgoing Label: 24018
...
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 53
LFIB Details
RP/0/0/CPU0:P2# show mpls forwarding labels 24014 private
Local Outgoing Prefix Outgoing Next Hop Bytes
Label Label or ID Interface Switched
------ ----------- ------------------ ------------ --------------- ------------
24014 mLDP/IR: 0x00003 (0x00003)
Updated Apr 25 14:35:40.127
mLDP/IR LSM-ID: 0x00003, MDT: 0x0
timestamps !
Flags:IP Lookup:not-set, Expnullv4:not-set, Expnullv6:not-set
Payload Type v4:not-set, Payload Type v6:not-set, l2vpn:not-set
Head:not-set, Tail:not-set, Bud:not-set, Peek:not-set, inclusive:not-set
Ingress Drop:not-set, Egress Drop:not-set
RPF-ID:0, Encap-ID:0
Disp-Tun:[ifh:0x0, label:-]
Platform Data [4]:
{ 1 0 0 0 }
mpls paths: 2, local mpls paths: 2, protected mpls paths: 2
2 outgoing interfaces are
24036 mLDP/IR: 0x00003 (0x00003) \ protected by TE LSP
}
Gi0/0/0/0 10.1.8.1 0
Updated: Apr 25 14:35:40.127
Packets Switched: 0
Event History: FIB-MPLS-MOL-EVENT-CLASS
Total entries : 6
-----------------------------------------------------------------
| Event | Time Stamp | S, M |
|---------------------------------+----------------------+------|
| object created | Apr 25 08:08:53.504 | 1, 0 |
| pd object create
| pd object unbind
| Apr 25 08:08:53.504 | 1, 0 |
| Apr 25 14:35:21.600 | 1, 1 |
event log for the mLDP entry
| object modify | Apr 25 14:35:40.160 | 1, 1 |
| pd object bind | Apr 25 14:35:40.160 | 1, 1 |
| pd object modify | Apr 25 14:35:40.160 | 1, 1 |
-----------------------------------------------------------------
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 54
Protection using LFA
• Enable LFA for the IGP
• LDP Session Protection is needed
• Forwarding recursive is needed
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 55
Recursive Forwarding
• Recursive forwarding allows to forward to neighbor IP address instead of
outgoing interface
mpls ldp
mldp
address-family ipv4
make-before-break delay 60 30
forwarding recursive
RP/0/0/CPU0:P2# show mrib mpls forwarding labels 24017 RP/0/0/CPU0:P2# show mrib mpls forwarding labels 24017
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 56
Session Protection
6
PE6
RP/0/0/CPU0:P2# show mpls ldp discovery
(m)LDP session
1 3 10.0.0.8:0
Local LDP Identifier:
Discovery Sources:
PE1 PE3
Interfaces:
GigabitEthernet0/0/0/0 : xmit/recv
VRF: 'default' (0x60000000)
failure
LDP Id: 10.0.0.1:0, Transport address: 10.0.0.1
8 Hold time: 15 sec (local:15 sec, peer:15 sec)
Established: Apr 26 11:56:19.426 (00:32:22 ago)
P2 …
Targeted Hellos:
10.0.0.8 -> 10.0.0.1 (active), xmit/recv
7 4
LDP Id: 10.0.0.1:0
Hold time:
PE490 sec (local:90 sec, peer:90 sec)
P1
Established: Apr 26 09:37:56.794 (02:50:45 ago)
9
P3
2 5
PE2
link adjacency willPE5
be protected
by targeted LDP neighbor
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 57
MPLS OAM
mLDP OAM (Operations, Administration, and
Maintenance)
• MPLS OAM
• Similar to ping and traceroute: echo request and echo reply
• UDP packets, ports 3503
• P2P
• Enhanced packets:
• More output (return codes)
• Verification (next-hop, labels, timestamps,…)
• mLDP OAM
• Works with mLDP
• P2MP and MP2MP trees
• Difference with P2P ping/traceroute: multiple replies
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 59
MPLS Echo Request/Reply
MPLS Echo
MPLS Header Msg Type (Request/Reply)
Return Code
TTL is configurable Return Subcode
Router Alert Label (optional)
Vendor Private TLV
IP Header Cisco Specific
Destination : 127.0.0.x Target FEC Stack
Router Alert Option IPv4
RSVP-TE
UDP Header PW
Source and Destination port mLDP
3503 BGP
SR
…
0 No return code
RSC = Return Subcode,
specifying stack depth
1 Malformed echo request received
4 Replying router has no mapping for the FEC at stack- depth <RSC>
7 Reserved
10 Mapping for this FEC is not the given label at stack- depth <RSC>
https://www.iana.org/assignments/mpls-lsp-ping-parameters/mpls-lsp-ping-parameters.xhtml#return-codes
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 61
Ping MPLS mLDP MP2MP
• Can be initiated from any ingress PE or the root, not a P router
RP/0/0/CPU0:PE3# ping mpls mldp mp2mp 10.0.0.6 mdt 65000:100 0 verbose
Sending 1, 100-byte MPLS Echos to mldp mp2mp 10.0.0.6 mdt (vpn-id:65000:100, mdt:0),
codes
'X' - unknown return code, 'x' - return code 0, 'd' - DDMAP
Request #1
! size 100, reply addr 10.6.8.6, return code 3
! size 100, reply addr 10.1.7.1, return code 3
!
!
size
size
100,
100,
reply
reply
addr
addr
10.2.7.2,
10.4.8.4,
return
return
code
code
3
3
egress PE routers and root (root replies,
! size 100, reply addr 10.5.9.5, return code 3 even if it is not an egress PE) reply
Round-trip min/avg/max = 40/96/140 ms
lspv_server[1114]: [1] DBG-TLV: : Echo Hdr decode: version:[1], msg type:[2], reply mode:[2],
lspv_server[1114]: [1] DBG-TLV: : return_code:[3], return_subcode:[1], sender handle:[815],
lspv_server[1114]: [1] DBG-TLV: : sequence number:[1],
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 62
Traceroute MPLS mLDP MP2MP
• Can be initiated from any ingress PE or the root, not a P router
RP/0/0/CPU0:PE3# traceroute mpls mldp mp2mp 10.0.0.6 mdt 65000:100 0 ddmap verbose
Tracing MPLS Label Switched Path to mldp mp2mp 10.0.0.6 mdt (vpn-id:65000:100, mdt:0),
timeout is 2.2 seconds, jitter value is 200 msec
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 63
mLDP Trace
RP/0/0/CPU0:PE3# show mpls mldp trace database ?
example
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : 0x00004 Branch LDP 10.0.0.8:0 binding list Remote Add
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : 0x00004 Add branch LDP 10.0.0.8:0 Label 24021
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : 0x00004 Checkpoint save lbl no_label length: 100 obj 40002f78 version 1 Success
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : 0x00004 Checkpoint save Main Entry active 0.0.0.0:0 rec_nh 0.0.0.0 rec_rd 0:0 cont...
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : 0x00004 Add LSM-ID type: Main Entry FEC length: 24
Apr 10 14:26:10.395 MLDP LSP 0/0/CPU0 t22 DB : P2MP Label mapping from 10.0.0.8:0 label 24021 root 10.0.0.3 Opaque Len 19
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 64
Additional mLDP Commands
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 65
Netflow for Troubleshooting
• Sample mLDP packets on ingress on P router
sampler-map sampler-1
random 1 out-of 1
sample map
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 66
Netflow for Troubleshooting
RP/0/RP0/CPU0:motorhead# show flow monitor MPLS cache payload mpls ipv4 format table location 0/1/CPU0
Cache summary for Flow Monitor MPLS:
Cache size: 65535
Current entries: 2
Flows added: 75
Flows not added: 0
Ager Polls:
- Active timeout
2075
0 caught PIM hello from
- Inactive timeout 73 1
- TCP FIN flag
- Emergency aged
0
0
ingress PE over mLDP tree
- Counter wrap aged 0
- Total 73
Periodic export:
- Counter wrap 0
- TCP FIN flag 0
Flows exported 0
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 67
Wireshark: Data
unicast destination MAC !
unicast and multicast use 0x8847
1 MPLS label
multicast data
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 68
Wireshark: OAM
Echo content
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 69
Complete your
online session • Please complete your session survey
evaluation after each session. Your feedback
is very important.
• Complete a minimum of 4 session
surveys and the Overall Conference
survey (starting on Thursday) to
receive your Cisco Live water bottle.
• All surveys can be taken in the Cisco Live
Mobile App or by logging in to the Session
Catalog on ciscolive.cisco.com/us.
Cisco Live sessions will be available for viewing
on demand after the event at ciscolive.cisco.com.
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 70
Continue your education
Demos in the
Walk-in labs
Cisco campus
#CLUS BRKIPM-3114 © 2019 Cisco and/or its affiliates. All rights reserved. Cisco Public 71
Thank you
#CLUS
#CLUS