MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.X
Total Page:16
File Type:pdf, Size:1020Kb
MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.x First Published: 2018-08-01 Last Modified: 2019-02-18 Americas Headquarters Cisco Systems, Inc. 170 West Tasman Drive San Jose, CA 95134-1706 USA http://www.cisco.com Tel: 408 526-4000 800 553-NETS (6387) Fax: 408 527-0883 THE SPECIFICATIONS AND INFORMATION REGARDING THE PRODUCTS IN THIS MANUAL ARE SUBJECT TO CHANGE WITHOUT NOTICE. ALL STATEMENTS, INFORMATION, AND RECOMMENDATIONS IN THIS MANUAL ARE BELIEVED TO BE ACCURATE BUT ARE PRESENTED WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED. USERS MUST TAKE FULL RESPONSIBILITY FOR THEIR APPLICATION OF ANY PRODUCTS. THE SOFTWARE LICENSE AND LIMITED WARRANTY FOR THE ACCOMPANYING PRODUCT ARE SET FORTH IN THE INFORMATION PACKET THAT SHIPPED WITH THE PRODUCT AND ARE INCORPORATED HEREIN BY THIS REFERENCE. IF YOU ARE UNABLE TO LOCATE THE SOFTWARE LICENSE OR LIMITED WARRANTY, CONTACT YOUR CISCO REPRESENTATIVE FOR A COPY. The Cisco implementation of TCP header compression is an adaptation of a program developed by the University of California, Berkeley (UCB) as part of UCB's public domain version of the UNIX operating system. All rights reserved. Copyright © 1981, Regents of the University of California. NOTWITHSTANDING ANY OTHER WARRANTY HEREIN, ALL DOCUMENT FILES AND SOFTWARE OF THESE SUPPLIERS ARE PROVIDED “AS IS" WITH ALL FAULTS. CISCO AND THE ABOVE-NAMED SUPPLIERS DISCLAIM ALL WARRANTIES, EXPRESSED OR IMPLIED, INCLUDING, WITHOUT LIMITATION, THOSE OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OR ARISING FROM A COURSE OF DEALING, USAGE, OR TRADE PRACTICE. IN NO EVENT SHALL CISCO OR ITS SUPPLIERS BE LIABLE FOR ANY INDIRECT, SPECIAL, CONSEQUENTIAL, OR INCIDENTAL DAMAGES, INCLUDING, WITHOUT LIMITATION, LOST PROFITS OR LOSS OR DAMAGE TO DATA ARISING OUT OF THE USE OR INABILITY TO USE THIS MANUAL, EVEN IF CISCO OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Any Internet Protocol (IP) addresses and phone numbers used in this document are not intended to be actual addresses and phone numbers. Any examples, command display output, network topology diagrams, and other figures included in the document are shown for illustrative purposes only. Any use of actual IP addresses or phone numbers in illustrative content is unintentional and coincidental. All printed copies and duplicate soft copies of this document are considered uncontrolled. See the current online version for the latest version. Cisco has more than 200 offices worldwide. Addresses and phone numbers are listed on the Cisco website at www.cisco.com/go/offices. Cisco and the Cisco logo are trademarks or registered trademarks of Cisco and/or its affiliates in the U.S. and other countries. To view a list of Cisco trademarks, go to this URL: https://www.cisco.com/c/en/us/about/legal/trademarks.html. Third-party trademarks mentioned are the property of their respective owners. The use of the word partner does not imply a partnership relationship between Cisco and any other company. (1721R) © 2019 Cisco Systems, Inc. All rights reserved. CONTENTS PREFACE Preface xix Changes to This Document xix Communications, Services, and Additional Information xix CHAPTER 1 New and Changed MPLS Features 1 New and Changed MPLS Feature Information 1 CHAPTER 2 Implementing MPLS Label Distribution Protocol 3 Prerequisites for Implementing Cisco MPLS LDP 4 Information About Implementing Cisco MPLS LDP 4 Overview of Label Distribution Protocol 4 Label Switched Paths 5 LDP Control Plane 5 Exchanging Label Bindings 5 LDP Forwarding 6 LDP Graceful Restart 7 Control Plane Failure 8 Phases in Graceful Restart 9 Recovery with Graceful-Restart 9 Label Advertisement Control (Outbound Filtering) 11 Label Acceptance Control (Inbound Filtering) 11 Local Label Allocation Control 11 Session Protection 12 IGP Synchronization 13 IGP Auto-configuration 13 LDP Nonstop Routing 14 MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.x iii Contents IP LDP Fast Reroute Loop Free Alternate 14 Downstream on Demand 16 Explicit-Null and Implicit-Null Labels 16 MPLS over IRB 17 MPLS LDP Carrier Supporting Carrier for Multiple VRFs 17 MPLS Carrier Supporting Carrier L3VPN: Introduction 18 Benefits of MPLS LDP CSC 18 Multiple VRF Support 19 Restrictions and Recommendations 20 IPv6 Support in MPLS LDP 21 LDP IPv6 Functionality 21 Restrictions 24 Features Supported in LDP IPv6 25 Implicit IPv4 Disable 28 IPv6 Label Bindings 28 IPv6 Address Bindings 28 Default Transport Address 29 LDP Control Plane: Bindings Advertisement 29 LSP Mapping 29 Label Policies 29 IS-IS 30 Dual-Stack Capability TLV 30 Compliance Check 31 How to Implement MPLS LDP 31 Configuring LDP Discovery Parameters 31 Configure Label Distribution Protocol Targeted Neighbor 33 Configuration Example 33 Running Configuration 33 Configuring LDP Discovery Over a Link 34 Configuring LDP Discovery for Active Targeted Hellos 36 Configuring LDP Discovery for Passive Targeted Hellos 38 Configuring Label Advertisement Control (Outbound Filtering) 40 Setting Up LDP Neighbors 41 Setting Up LDP Forwarding 44 MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.x iv Contents Configuring Global Transport Address 47 Setting Up LDP NSF Using Graceful Restart 48 Configuring Label Acceptance Control (Inbound Filtering) 51 Configuring Local Label Allocation Control 52 Configuring Session Protection 53 Configuring LDP IGP Synchronization: OSPF 54 Disabling LDP IGP Synchronization: OSPF 56 Configuring LDP IGP Synchronization: ISIS 57 Enabling LDP Auto-Configuration for a Specified OSPF Instance 58 Enabling LDP Auto-Configuration in an Area for a Specified OSPF Instance 59 Disabling LDP Auto-Configuration 61 Configuring LDP Nonstop Routing 61 Configuring LDP Downstream on Demand mode 64 Setting Up Implicit-Null-Override Label 64 Redistributing MPLS LDP Routes into BGP 65 Enabling MLDP 67 Enabling MLDP Make-Before-Break 68 Enabling MLDP MoFRR 69 Enabling MLDP Recursive FEC 71 Enabling MLDP Static Multipoint to Multipoint LSP 72 Enabling MLDP Static Point to Multipoint LSP 73 Disabling MLDP 75 LDP IPv6 Configuration 76 Enabling LDP IPv6 Native 76 Enabling LDP IPv6 Control Plane 77 Configuring IPv6-only LSR 79 Configuring Global Transport Address for IPV6 83 Disabling Implicit IPv4 85 Configuring IPv4 as Transport Preference 86 Configuring Transport Preference Maximum Wait Time 87 Configuration Examples for Implementing MPLS LDP 88 Configuring LDP with Graceful Restart: Example 88 Configuring LDP Discovery: Example 88 Configuring LDP Link: Example 89 MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.x v Contents Configuring LDP Discovery for Targeted Hellos: Example 89 Configuring Label Advertisement (Outbound Filtering): Example 89 Configuring LDP Neighbors: Example 90 Configuring LDP Forwarding: Example 90 Configuring LDP Nonstop Forwarding with Graceful Restart: Example 91 Configuring Label Acceptance (Inbound Filtering): Example 91 Configuring Local Label Allocation Control: Example 92 Configuring LDP Session Protection: Example 92 Configuring LDP IGP Synchronization—OSPF: Example 92 Configuring LDP IGP Synchronization—ISIS: Example 92 Configuring LDP Auto-Configuration: Example 93 Configure IP LDP Fast Reroute Loop Free Alternate: Examples 93 Verify IP LDP Fast Reroute Loop Free Alternate: Example 95 MPLS LDP CSC for Multiple VRFs Configuration: Examples 97 LDP IPv6 Configuration: Examples 110 Additional References 112 CHAPTER 3 Implementing MPLS Static Labeling 115 Recursive Label Statistics 116 MPLS Top Label Hash for OAM Packets 117 Forwarding Labeled Packets 117 Functional Overview: Top Label Hash 118 Enable MPLS Encapsulation on an Interface 119 Define a Range for Static MPLS Labels 120 Setup a Static LSP 121 Allocate Static MPLS Label to an IP Prefix and Configure a LSP 122 Allocate Static MPLS Label for a Specific VRF 123 Verify MPLS Static Bindings 124 Configuring Top Label Hash 125 Identify and Clear Label Discrepancy 126 Configure Top Label Hash: Example 127 CHAPTER 4 Implementing RSVP for MPLS-TE 129 Prerequisites for Implementing RSVP for MPLS-TE 129 MPLS Configuration Guide for Cisco ASR 9000 Series Routers, IOS XR Release 6.5.x vi Contents Information About Implementing RSVP for MPLS-TE 130 Overview of RSVP for MPLS-TE 130 LSP Setup 130 High Availability 131 Graceful Restart 131 Graceful Restart: Standard and Interface-Based 132 Graceful Restart: Figure 132 ACL-based Prefix Filtering 134 RSVP MIB 134 Bandwidth Reservation Percentage 134 Information About Implementing RSVP Authentication 135 RSVP Authentication Functions 135 RSVP Authentication Design 135 Global, Interface, and Neighbor Authentication Modes 136 Security Association 137 Key-source Key-chain 138 Guidelines for Window-Size and Out-of-Sequence Messages 139 Caveats for Out-of-Sequence 139 How to Implement RSVP 139 Configuring Traffic Engineering Tunnel Bandwidth 139 Confirming DiffServ-TE Bandwidth 140 Enabling Graceful Restart 141 Configuring ACL-based Prefix Filtering 142 Configuring ACLs for Prefix Filtering 142 Configuring RSVP Packet Dropping 143 Verifying RSVP Configuration 144 Enabling RSVP Traps 147 How to Implement RSVP Authentication 148 Configuring Global Configuration Mode RSVP Authentication 148 Enabling RSVP Authentication Using the Keychain in Global Configuration Mode 148 Configuring a Lifetime for RSVP Authentication in Global Configuration Mode 149 Configuring the Window Size for RSVP Authentication in Global Configuration Mode 149 Configuring