Cisco IOS XR Software (End-of-Sale) Configuration Guide

Category
Networking
Type
Configuration Guide

This manual is also suitable for

Segment Routing Configuration Guide for Cisco NCS 5500 Series
Routers, IOS XR 6.2.x
First Published: 2017-04-28
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)
©2017 Cisco Systems, Inc. All rights reserved.
CONTENTS
Preface vii
PREFACE
Changes to This Document vii
Communications, Services, and Additional Information vii
New and Changed Information for Segment Routing Features 1
CHAPTER 1
New and Changed Information 1
About Segment Routing 3
CHAPTER 2
Scope 3
Need 4
Benefits 4
Workflow for Deploying Segment Routing 5
Configure Segment Routing Global Block 7
CHAPTER 3
About the Segment Routing Global Block 7
Setup a Non-Default Segment Routing Global Block Range 8
Configure Segment Routing for IS-IS Protocol 11
CHAPTER 4
Enabling Segment Routing for IS-IS Protocol 11
Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface 14
IS-IS Multi-Domain Prefix SID and Domain Stitching: Example 16
Configure IS-IS Multi-Domain Prefix SID 17
Configure Common Router ID 17
Distribute IS-IS Link-State Data 18
Configure Segment Routing for OSPF Protocol 19
CHAPTER 5
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
iii
Enabling Segment Routing for OSPF Protocol 19
Configuring a Prefix-SID on the OSPF-Enabled Loopback Interface 21
Configure Segment Routing for BGP 25
CHAPTER 6
Segment Routing for BGP 25
Configure BGP Prefix Segment Identifiers 26
Segment Routing Egress Peer Engineering 27
Configure Segment Routing Egress Peer Engineering 27
Configure BGP Link-State 28
Example: Configuring SR-EPE and BGP-LS 29
Configure SR-TE Policies 33
CHAPTER 7
About SR-TE Policies 33
How to Configure SR-TE Policies 34
Configure Local Dynamic SR-TE Policy 34
Configure Explicit SR-TE Policy 35
Steering Traffic into an SR-TE Policy 37
Configure Static Routes 37
Configure Autoroute Announce 39
Configure Autoroute Destination 40
BGP SR-TE 42
Configure Explicit BGP SR-TE 42
Using Binding Segments 44
Stitching SR-TE Polices Using Binding SID: Example 45
Configure Segment Routing Path Computation Element 49
CHAPTER 8
About SR-PCE 49
Configure SR-PCE 50
Configure the Disjoint Policy (Optional) 52
Configure Topology-Independent Loop-Free Alternate (TI-LFA) 55
CHAPTER 9
Behaviors and Limitations of TI-LFA 56
Configuring TI-LFA for IS-IS 57
Configuring TI-LFA for OSPF 58
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
iv
Contents
Using Segment Routing OAM 61
CHAPTER 10
MPLS LSP Ping and Traceroute Nil FEC Target 61
Examples: LSP Ping and Traceroute for Nil_FEC Target 62
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
v
Contents
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
vi
Contents
Preface
This product has reached end-of-life status. For more information, see the End-of-Life and End-of-Sale Notices.
Note
The Segment Routing Configuration Guide for for Cisco NCS 5500 Series Routers preface contains these
sections:
Changes to This Document, on page vii
Communications, Services, and Additional Information, on page vii
Changes to This Document
This table lists the changes made to this document since it was first printed.
Change SummaryDate
Initial release of this documentMarch 2017
Communications, Services, and Additional Information
To receive timely, relevant information from Cisco, sign up at Cisco Profile Manager.
To get the business impact you’re looking for with the technologies that matter, visit Cisco Services.
To submit a service request, visit Cisco Support.
To discover and browse secure, validated enterprise-class apps, products, solutions and services, visit
Cisco Marketplace.
To obtain general networking, training, and certification titles, visit Cisco Press.
To find warranty information for a specific product or product family, access Cisco Warranty Finder.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
vii
Cisco Bug Search Tool
Cisco Bug Search Tool (BST) is a web-based tool that acts as a gateway to the Cisco bug tracking system
that maintains a comprehensive list of defects and vulnerabilities in Cisco products and software. BST provides
you with detailed defect information about your products and software.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
viii
Preface
Preface
CHAPTER 1
New and Changed Information for Segment
Routing Features
This table summarizes the new and changed feature information for the Segment Routing Configuration Guide
for Cisco NCS 5500 Series Routers, and lists where they are documented.
New and Changed Information, on page 1
New and Changed Information
Table 1: New and Changed Features
Where DocumentedIntroduced/Changed in
Release
DescriptionFeature
Configure Segment
Routing for IS-IS Protocol
Release 6.2.2This feature was
introduced.
IS-IS Multi-Domain
Prefix SID and Domain
Stitching
Configure IOS XR Traffic
Controller (XTC)
Release 6.2.2This feature was
introduced.
IOS XR Traffic Controller
(XTC)
Using Segment Routing
OAM
Release 6.2.2This feature was
introduced.
MPLS Ping and
Traceroute for Prefix-SID
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
1
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
2
New and Changed Information for Segment Routing Features
New and Changed Information
CHAPTER 2
About Segment Routing
This chapter introduces the concept of segment routing and provides a workflow for configuring segment
routing.
Scope, on page 3
Need, on page 4
Benefits, on page 4
Workflow for Deploying Segment Routing, on page 5
Scope
Segment routing is a method of forwarding packets on the network based on the source routing paradigm.
The source chooses a path and encodes it in the packet header as an ordered list of segments. Segments are
an identifier for any type of instruction. For example, topology segments identify the next hop toward a
destination. Each segment is identified by the segment ID (SID) consisting of a flat unsigned 20-bit integer.
Segments
Interior gateway protocol (IGP) distributes two types of segments: prefix segments and adjacency segments.
Each router (node) and each link (adjacency) has an associated segment identifier (SID).
A prefix SID is associated with an IP prefix. The prefix SID is manually configured from the segment
routing global block (SRGB) range of labels, and is distributed by IS-IS or OSPF. The prefix segment
steers the traffic along the shortest path to its destination. A node SID is a special type of prefix SID that
identifies a specific node. It is configured under the loopback interface with the loopback address of the
node as the prefix.
A prefix segment is a global segment, so a prefix SID is globally unique within the segment routing
domain.
An adjacency segment is identified by a label called an adjacency SID, which represents a specific
adjacency, such as egress interface, to a neighboring router. The adjacency SID is distributed by IS-IS
or OSPF. The adjacency segment steers the traffic to a specific adjacency.
An adjacency segment is a local segment, so the adjacency SID is locally unique relative to a specific
router.
By combining prefix (node) and adjacency segment IDs in an ordered list, any path within a network can be
constructed. At each hop, the top segment is used to identify the next hop. Segments are stacked in order at
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
3
the top of the packet header. When the top segment contains the identity of another node, the receiving node
uses equal cost multipaths (ECMP) to move the packet to the next hop. When the identity is that of the receiving
node, the node pops the top segment and performs the task required by the next segment.
Dataplane
Segment routing can be directly applied to the Multiprotocol Label Switching (MPLS) architecture with no
change in the forwarding plane. A segment is encoded as an MPLS label. An ordered list of segments is
encoded as a stack of labels. The segment to process is on the top of the stack. The related label is popped
from the stack, after the completion of a segment.
Services
Segment Routing integrates with the rich multi-service capabilities of MPLS, including Layer 3 VPN (L3VPN),
Virtual Private Wire Service (VPWS), Virtual Private LAN Service (VPLS), and Ethernet VPN (EVPN).
Segment Routing for Traffic Engineering
Segment routing for traffic engineering (SR-TE) takes place through a tunnel between a source and destination
pair. Segment routing for traffic engineering uses the concept of source routing, where the source calculates
the path and encodes it in the packet header as a segment. Each segment is an end-to-end path from the source
to the destination, and instructs the routers in the provider core network to follow the specified path instead
of the shortest path calculated by the IGP. The destination is unaware of the presence of the tunnel.
Need
With segment routing for traffic engineering (SR-TE), the network no longer needs to maintain a per-application
and per-flow state. Instead, it simply obeys the forwarding instructions provided in the packet.
SR-TE utilizes network bandwidth more effectively than traditional MPLS-TE networks by using ECMP at
every segment level. It uses a single intelligent source and relieves remaining routers from the task of calculating
the required path through the network.
Benefits
Ready for SDN: Segment routing was built for SDN and is the foundation for Application Engineered
Routing (AER). SR prepares networks for business models, where applications can direct network
behavior. SR provides the right balance between distributed intelligence and centralized optimization
and programming.
Minimal configuration: Segment routing for TE requires minimal configuration on the source router.
Load balancing: Unlike in RSVP-TE, load balancing for segment routing can take place in the presence
of equal cost multiple paths (ECMPs).
Supports Fast Reroute (FRR): Fast reroute enables the activation of a pre-configured backup path
within 50 milliseconds of path failure.
Plug-and-Play deployment: Segment routing tunnels are interoperable with existing MPLS control and
data planes and can be implemented in an existing deployment.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
4
About Segment Routing
Need
Workflow for Deploying Segment Routing
Follow this workflow to deploy segment routing.
1. Configure the Segment Routing Global Block (SRGB)
2. Enable Segment Routing and Node SID for the IGP
3. Configure Segment Routing for BGP
4. Configure the SR-TE Policy
5. Configure the SR-PCE
6. Configure TI-LFA and Microloop Avoidance
7. Configure the Segment Routing Mapping Server
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
5
About Segment Routing
Workflow for Deploying Segment Routing
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
6
About Segment Routing
Workflow for Deploying Segment Routing
CHAPTER 3
Configure Segment Routing Global Block
Local label allocation is managed by the label switching database (LSD). The Segment Routing Global Block
(SRGB) is the range of label values preserved for segment routing in the LSD.
About the Segment Routing Global Block, on page 7
Setup a Non-Default Segment Routing Global Block Range, on page 8
About the Segment Routing Global Block
The SRGB label values are assigned as prefix segment identifiers (SIDs) to SR-enabled nodes and have global
significance throughout the domain.
Because the values assigned from the range have domain-wide significance, we recommend that all routers
within the domain be configured with the same range of values.
Note
On SR-capable routers, the default starting value of the dynamic label range is changed from 16000 to 24000,
so that the default SRGB label values (16000 to 23999) are available when SR is enabled on a running system.
If a dynamic label range has been configured with a starting value of 16000, then the default SRGB label
values may already be in use when SR is enabled on a running system. Therefore, you must reload the router
after enabling SR to release the currently allocated labels and allocate the SRGB.
Also, if you need to increase the SRGB range after you have enabled SR, you must reload the router to release
the currently allocated labels and allocate the new SRGB.
To keep the segment routing configuration simple and to make it easier to troubleshoot segment routing issues,
we recommend that you use the default SRGB range on each node in the domain. However, there are instances
when you might need to define a different range. For example:
The nodes of another vendor support a label range that is different from the default SRGB, and you want
to use the same SRGB on all nodes.
The default range is too small.
To specify separate SRGBs for IS-IS and OSPF protocols, as long as the ranges do not overlap.
The SRGB can be disabled if SR is not used.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
7
Behaviors and Limitations
The default SRGB has a size of 8000 starting from label value 16000; therefore, the default SRGB range
goes from 16000 to 23,999.
Label values that are not previously reserved are available for dynamic assignment.
Note
Setup a Non-Default Segment Routing Global Block Range
This task explains how to configure a non-default SRGB range.
SUMMARY STEPS
1. configure
2. [router {isis instance-id |ospf process_name} ]
3. segment-routing global-block starting_value ending_value
4. Use the commit or end command.
DETAILED STEPS
PurposeCommand or Action
Enters mode.configure
Example:
Step 1
RP/0/RP0/CPU0:router# configure
(Optional) Enter the router isis instance-id or router ospf
process_name commands if you want to configure separate
SRGBs for IS-IS and OSPF protocols.
[router {isis instance-id |ospf process_name} ]
Example:
RP/0/RP0/CPU0:router(config)# router isis 1
Step 2
Enter the lowest value that you want the SRGB range to
include as the starting value. Enter the highest value that
you want the SRGB range to include as the ending value.
segment-routingglobal-block starting_value ending_value
Example:
RP/0/RP0/CPU0:router(config-isis)# segment-routing
Step 3
global-block 18000 19999
commit —Saves the configuration changes and remains
within the configuration session.
Use the commit or end command.
Step 4
end —Prompts user to take one of these actions:
Yes — Saves configuration changes and exits the
configuration session.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
8
Configure Segment Routing Global Block
Setup a Non-Default Segment Routing Global Block Range
PurposeCommand or Action
No —Exits the configuration session without
committing the configuration changes.
Cancel —Remains in the configuration session,
without committing the configuration changes.
Verify the SRGB configuration:
RP/0/RP0/CPU0:router# show mpls label table detail
Table Label Owner State Rewrite
----- ------- ------------------------------- ------ -------
<...snip...>
0 18000 ISIS(A):1 InUse No
Lbl-blk SRGB, vers:0, (start_label=18000,size=2000)
0 24000 ISIS(A):1 InUse Yes
(SR Adj Segment IPv4, vers:0, index=1, type=0, intf=Gi0/0/0/0, nh=10.0.0.2)
What to do next
Configure prefix SIDs and enable segment routing.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
9
Configure Segment Routing Global Block
Setup a Non-Default Segment Routing Global Block Range
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
10
Configure Segment Routing Global Block
Setup a Non-Default Segment Routing Global Block Range
CHAPTER 4
Configure Segment Routing for IS-IS Protocol
Integrated Intermediate System-to-Intermediate System (IS-IS), Internet Protocol Version 4 (IPv4), is a
standards-based Interior Gateway Protocol (IGP). The Cisco IOS XR software implements the IP routing
capabilities described in International Organization for Standardization (ISO)/International Engineering
Consortium (IEC) 10589 and RFC 1995, and adds the standard extensions for single topology and multitopology
IS-IS for IP Version 6 (IPv6).
This module provides the configuration information used to enable segment routing for IS-IS.
For additional information on implementing IS-IS on your Cisco NCS 5500 Series Router, see the Implementing
IS-IS module in the Routing Configuration Guide for Cisco NCS 5500 Series Routers.
Note
Enabling Segment Routing for IS-IS Protocol, on page 11
Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface, on page 14
IS-IS Multi-Domain Prefix SID and Domain Stitching: Example, on page 16
Enabling Segment Routing for IS-IS Protocol
Segment routing on the IS-IS control plane supports the following:
IPv4 and IPv6 control plane
Level 1, level 2, and multi-level routing
Prefix SIDs for host prefixes on loopback interfaces
Adjacency SIDs for adjacencies
MPLS penultimate hop popping (PHP) and explicit-null signaling
This task explains how to enable segment routing for IS-IS.
Before you begin
Your network must support the MPLS Cisco IOS XR software feature before you enable segment routing for
IS-IS on your router.
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
11
You must enter the commands in the following task list on every IS-IS router in the traffic-engineered portion
of your network.
Note
SUMMARY STEPS
1. configure
2. router isis instance-id
3. address-family {ipv4 |ipv6 } [ unicast ]
4. metric-style wide [level {1|2}]
5. mpls traffic-eng level
6. mpls traffic-eng router-id interface
7. router-id loopback loopback interface used for prefix-sid
8. segment-routing mpls
9. exit
10. mpls traffic-eng
11. Use the commit or end command.
DETAILED STEPS
PurposeCommand or Action
Enters mode.configure
Example:
Step 1
RP/0/RP0/CPU0:router# configure
Enables IS-IS routing for the specified routing instance,
and places the router in router configuration mode.
router isis instance-id
Example:
Step 2
You can change the level of routing to be
performed by a particular routing instance by
using the is-typerouter configuration command.
Note
RP/0/RP0/CPU0:router(config)# router isis isp
Specifies the IPv4 or IPv6 address family, and enters router
address family configuration mode.
address-family {ipv4 |ipv6 } [ unicast ]
Example:
Step 3
RP/0/RP0/CPU0:router(config-isis)# address-family
ipv4 unicast
Configures a router to generate and accept only wide link
metrics in the Level 1 area.
metric-style wide [level {1|2}]
Example:
Step 4
RP/0/RP0/CPU0:router(config-isis-af)# metric-style
wide level 1
Enables RSVP traffic engineering funtionality.mpls traffic-eng level
Example:
Step 5
Segment Routing Configuration Guide for Cisco NCS 5500 Series Routers, IOS XR 6.2.x
12
Configure Segment Routing for IS-IS Protocol
Enabling Segment Routing for IS-IS Protocol
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72

Cisco IOS XR Software (End-of-Sale) Configuration Guide

Category
Networking
Type
Configuration Guide
This manual is also suitable for

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI