Segment Routing Configuration Guide for Cisco 8000 Series Routers, IOS XR Release 7.10.x - Configure SR-TE Policies [Cisco 8000 Series Routers] - Cisco Skip to content Skip to search Skip to footer Products and Services Back Products and Services Close Products and Services Home Save on Cisco products Future-proof your network with our full-stack offer. Buy more and save up to 25% on eligible Cisco switching, routing, wireless, and software products. Get started today Cisco Security free trials Get started with the right security solution for you. Try out our security solutions before you buy them. Start a free trial Discover Cisco IQ See more, move faster, go farther. Human expertise meets agentic intelligence in every Cisco Services engagement. Read the blog Networking Security Collaboration Computing Observability Software Services (CX) Back Networking Close Products Switches Routers Wireless Optics and transceivers Silicon Networking software Explore Networking Use cases Access networking Campus and branch networking Data center and cloud networking Industrial IoT Internet, cloud, and endpoint visibility Network security Service provider networking Wide-area networking (WAN) Unified network management Manage your entire network from a single, intuitive cloud interface with the Meraki and Catalyst Center Global Overview. Explore Networking Platform Back Security Close Featured products AI Defense Cisco Duo Email Threat Defense Firewall Hypershield Identity Services Engine (ISE) Secure Access (SSE) Splunk Enterprise Security XDR Explore Security Use cases Agentic SOC AI Security Hybrid Mesh Firewall Industrial security Physical security Secure Access Service Edge (SASE) Threat intelligence (Talos) Zero Trust Access Zero trust for agentic AI Cisco Secure Access live demo Join us live to experience Cisco Secure Access—the smarter way to secure access to the internet, SaaS, and private apps. Choose an upcoming slot Back Collaboration Close Products Phones, headsets, and collaboration devices Webex Customer Experience Webex Suite Explore Collaboration Use cases Workspaces Return to the office Camera intelligence Workspace management Devices for Microsoft Teams Webex AI Control Hub Webex Suite Everything your business needs to collaborate—in the world's first unified, purpose-built suite for hybrid work. Explore Webex Suite View the Webex site Back Computing Close Converged infrastructure Fabric and adapters Hybrid cloud operations Hyperconverged infrastructure Servers Unified Edge View all computing products Cisco Intersight free trial Get simplified IT operations with infrastructure lifecycle management as a service to easily manage your Cisco UCS, converged, and hyperconverged infrastructure. Get started Learn more about Intersight Back Observability Close Products Cloud application security Splunk Observability Cloud Splunk IT Service Intelligence ThousandEyes Explore Observability Use cases Alert noise reduction Cloud monitoring optimization End-user experiences Microservices troubleshooting Splunk Observability Get complete business visibility and real-time troubleshooting across any environment. Explore Splunk Observability Back Software Close Networking Catalyst Center Catalyst SD-WAN Manager IoT Operations Dashboard Meraki Platform Mobility Services Platform Nexus Dashboard All networking software Security Cyber Vision Secure Equipment Access Security Cloud Observability Splunk Observability ThousandEyes Collaboration Webex by Cisco Computing Intersight Explore Cisco buying programs Download software and manage licenses View all software Free trials and demos View and sign up for over 100 products and portfolio solutions for free. Explore trials and demos Back Services (CX) Close Cisco Support Cisco Professional Services Learn with Cisco View all Cisco services Discover Cisco IQ See more, move faster, go farther. Human expertise meets agentic intelligence in every Cisco Services engagement. Read the blog Get expert guidance Cisco Services can help you build the right solution for your needs with the combined power of AI, automation, and human expertise. Transform your data center Build a better workplace Close Solutions Back Solutions Close Solutions Home Artificial intelligence Cisco has the infrastructure to power AI, unmatched breadth and scale of data to feed it, and a portfolio optimized to secure it. Explore Cisco AI Campus and branch Cisco brings together Al, automation, and security into one unified architecture—built to simplify operations, scale intelligently, and protect every connection. Explore campus and branch Small and medium business Protect, connect, and empower your business with Cisco's portfolio tailored to small and medium businesses. Experience simplified IT management, efficiency, cloud-driven flexibility, and 24/7 support. Explore SMB solutions Artificial Intelligence Industries Technologies Campus and Branch Service Providers Small and Medium Business Back Artificial Intelligence Close AI-enhanced security AI-native networking operations AI-ready data centers AI at the edge AI networking in data centers Mass-scale AI infrastructure Secure AI Factory Splunk AI Webex AI Cisco AI hub Cisco AI Assistant Cisco AI Assistant combines the latest generative AI technology with our expertise to responsibly guide and inform the decisions you make every day. Explore Cisco AI Assistant Cisco AI Readiness Assessment AI readiness comprises six pillars: Strategy, Infrastructure, Data, Governance, Talent, and Culture. Is your organization AI ready? Take assessment Browse AI Readiness Index Back Industries Close Cities and Communities Education Financial Services Government Healthcare Manufacturing Mining Oil and Gas Retail Smart Buildings Sports, Media, and Entertainment Transportation Utilities View all industries Industry design guides Discover the portfolio explorer Build the bridge between business outcomes and technology with our new interactive tool. Start exploring Back Technologies Close Networking Cloud and data center networking Cloud-managed networking (Meraki) Industrial IoT Networking App Marketplace SD-WAN Smart buildings All networking solutions Computing Converged infrastructure Hybrid cloud Hyperconverged Virtual desktop infrastructure Security AI for security Data center security Hybrid Mesh Firewall Industrial security Network security Secure Access Service Edge (SASE) Secure Hybrid Work Zero trust Zero trust for agentic AI Collaboration (Webex) Camera intelligence Customer experience Event management Intelligent workspaces Interoperability IT administration Remote work Workspace designer Workspace management Back Campus and Branch Close Secure network architecture Secure campus Unified branch Industrial IoT Campus and branch design guides Back Service Providers Close Empowering your infrastructure 5G network architecture Agile Services Networking Broadband solutions Cable solutions Routed optical networking Routed PON View all service provider solutions Managed services Edge Cloud for Content Delivery IoT Control Center Mobility Services Platform Private 5G Secure access service edge (SASE) Software-defined access Secure Hybrid Work SD-WAN security Accelerate services offerings Provide outsourced IT and consulting services with a broad technology portfolio and robust partner support programs. See services options Back Small and Medium Business Close Products and solutions Networking Security Collaboration Product selector View all small and medium business solutions Buy small and medium business products online Offers and free trials Find the best solutions for your needs and try them before you buy. See all offers and free trials Close Support Back Support Close Support Home Support home Access documentation, security notices, and support tools for Cisco products. View Cisco Support Software downloads Download and manage new software, get updates or patches, or upgrade your current software to the latest release. View Software Central Licensing support Troubleshoot common licensing issues and leverage easy-to-follow documentation for both PAK-based or Smart Licenses. Get licensing support Products and Downloads Documentation Contact Support Licenses and Contracts Tools and Resources Cisco Community Back Products and Downloads Close Find products and downloads Search field edit, type in text Clear Product Support Switches Security Routers Wireless Unified Communications Collaboration endpoints and phones Networking software (IOS and NX-OS) Servers - Unified Computing (UCS) All products Downloads Secure Client 5 Identity Services Engine Software Secure Firewall Management Center Virtual Smart Software Manager Jabber for Windows Modeling Labs Catalyst 9300 Series Switches All downloads Back Documentation Close Technical documentation Configure, operate, and troubleshoot your Cisco products with configuration guides, installation guides, release notes, and more. Trust Portal Get self-service access to security, data privacy, and compliance documents. Product documentation Explore Cisco products and features to empower your purchase with data sheets, white papers, end-of-life notices, and more. Back Contact Support Close Product technical support (TAC) Open a new case (Requires a product or software support contract) Manage support cases Returns Portal (RMAs) Enterprise and Service Provider products 1-800-553-2447 US and Canada Worldwide phone numbers Small and medium business products 1-866-606-1866 US and Canada Worldwide phone numbers Back Licenses and Contracts Close Software licenses Explore key licensing resources Download and manage licenses Manage assets and entitlements Troubleshoot license issues Cisco Enterprise Agreement (EA) Manage Cisco EA licenses Learn about Cisco EA Product support contracts Manage and renew service contracts (CCW-R) Cisco Licensing Hub Enhance your Cisco licensing experience. Access now Back Tools and Resources Close Tools Bug Search Tool My Devices My Saved Content Software Research Device Coverage Checker All Support tools Notifications and advisories My Notifications Security Advisories Field Notices Cisco Cloud Status Services All Cisco Services Technology adoption Cisco Customer Success Back Cisco Community Close Community forums Technology and Support Small Business Support Developers Partners Project Gallery Cisco Insider User Group Explore Cisco Community Community events and webinars Learn from Cisco experts and engage with peers in webinars and live events. View all events and webinars Close Learn Back Learn Close Learn Home Cisco U. Access training tailored to your needs. Work toward a specific role or certification, deploy or support a technology solution, or enhance your career progress. Learn more about Cisco U. Cisco Networking Academy If you're a student, start at Cisco Networking Academy. With free courses and career guidance, your next IT job is closer than you think. Join now Events Join us to take advantage of the latest networking opportunities with Cisco customers, partners, employees, and subject-matter experts. Explore now Training and Certifications Events Webinars Technology Learning Topics Learning Resources and Assets Back Training and Certifications Close Learning Cisco Networking Academy Cisco U. Instructor-led training Cisco Modeling Labs Cisco Packet Tracer Join our community Learn with Cisco blog Learn with Cisco overview Certifications Career certifications Learn about exams Continuing Education (CE credits) Recertification Schedule an exam Track my certifications Training for organizations Enterprise Cisco Learning Credits Training catalog Partners Support Learn with Cisco support bot Back Events Close Cisco Live Partner events calendar View all events Cisco Live 2026 Melbourne Experience the education, inspiration, and fun of Cisco Live 2026 Melbourne. Register now Watch Cisco Live sessions on demand View sessions from Las Vegas in our On-Demand Library. Keynotes, Deep Dives, and Center Stage sessions are available now, with the remaining sessions added by June 19. Watch now Back Webinars Close Trending webinars AI readiness for data centers Simplify IT with SD-WAN Security transformation with Cisco XDR View all webinars McLaren Racing + Cisco Carrie Palin joins McLaren Racing F1 team CEO Zak Brown and driver Oscar Piastri as they unveil the high-tech secrets behind their team's successful 2024 season. Watch on demand Cisco webinars Discover insights that shape the future of technology. Our webinars feature experts and leaders sharing how organizations transform to connect, grow, and succeed. Explore webinars Back Technology Learning Topics Close How to set up a router What is cybersecurity? What is a firewall? What is Industry 4.0? What is IoT (Internet of Things)? What is Wi-Fi 7? What is AIOps? What is cloud security? What is hybrid cloud? What is SASE? What is software as a service (SaaS)? View all technology learning topics 2024 State of Industrial Networking Cisco's survey of more than 1000 professionals reveals how cybersecurity, IT/OT collaboration, and AI are transforming industrial networks. Get report Back Learning Resources and Assets Close Sandboxes and simulators Cisco Packet Tracer DevNet Sandbox Cisco Modeling Labs Cisco Learning Labs News and insights Blogs Cisco Community Executive perspectives Newsroom Developer resources Getting started with DevNet DevNet Tracks Python training Code exchange Developer community Videos and live streams Cisco Video Portal Architecture and design resources Cisco Validated Visio stencils Additional resources Cisco Learning Credits Cisco Multicloud training Black Belt Academy (for partners) Close Why Cisco Back Why Cisco Close Why Cisco Why Cisco Cisco creates the infrastructure you need to transform how you connect, protect, and innovate in the AI era. See the Cisco advantage Our Purpose We Power an Inclusive Future for All. Explore our Purpose Read FY25 Purpose Report Success stories Discover how Cisco technologies drive real-world success for our customers and power Cisco's own operations and innovation. Explore customer stories How we use our technology Outcomes We Deliver Working with Partners About Us Back Outcomes We Deliver Close AI-ready data centers Unleash the power of AI with data centers designed for speed, scale, and agility. Future-proofed workplaces Elevate employee and customer experiences with agile, resilient workplaces. Digital resilience Achieve always-on resilience with trusted security, observability, and assurance. Why Cisco Cisco creates the infrastructure you need to transform how you connect, protect, and innovate in the AI era. See the Cisco advantage Back Working with Partners Close Why choose Cisco partners Learn how our partner ecosystem makes it easier than ever to identify the partners to best meet your needs. Frequently asked questions (PDF) Access answers to your questions about the evolution of Cisco's partner ecosystem and new partner designations. Find a partner Explore our partner ecosystem today. A new way to find partners The Cisco Partner Locator tool has been transformed into an AI-driven hub to match, recommend, and activate partners for every customer outcome. Explore what's new Back About Us Close Overview Newsroom Leadership Purpose and sustainability Career opportunities The Trust Center Investor relations Contact us How to buy Browse options to purchase Cisco products, services, and software offerings. Visit how-to-buy hub Close Partners Close Trials and demos How to buy Partners EN US Log in Trials and demos MENU CLOSE How to buy Partners Log in EN US Search field edit, type in text Clear Speech-to-Text Search Speech-to-Text Powered By Google Speech API We didn't hear that. Try again. Speech-to-Text Search is currently unavailable Downloads Certifications Cisco Validated Training Community Support Close For Partners Partners Home Partner Program Support Tools Already a Partner? Log in Find a Cisco Partner Learn about Partners Become a Cisco Partner Close Log in Don't have an account? Sign up Close Back Country | Language Close Selected country/region: United States English All Countries / Regions North America Africa Asia Pacific Europe Greater China Latin America Middle East United States English English Africa English Français Português عربي English Français Português عربي Argentina Español Español Australia & New Zealand English English Austria Deutsch Deutsch Belgium & Luxembourg English Français Nederlands English Français Nederlands Brazil Português Português Canada English Français English Français Caribbean Español Español Chile Español Español Colombia Español Español Costa Rica Español Español Czech Republic Čeština Čeština Denmark Dansk Dansk Ecuador Español Español Egypt English عربي English عربي France Français Français Germany Deutsch Deutsch Hong Kong English 繁體中文 English 繁體中文 Hungary Magyar Magyar India English English Indonesia English English Israel English English Italy Italiano Italiano Japan 日本語 日本語 Korea 한국어 한국어 Mainland China 简体中文 简体中文 Malaysia English English Mexico Español Español Middle East English عربي English عربي Netherlands Nederlands Nederlands Norway Norsk Norsk Panama Español Español Peru Español Español Philippines English English Poland Polski Polski Portugal Português Português Romania Română Română Singapore English English South Africa English English Spain Español Español Sweden Svenska Svenska Switzerland Français Deutsch Français Deutsch Taiwan 繁體中文 繁體中文 Thailand ภาษาไทย ภาษาไทย Turkey Türkçe Türkçe Ukraine Українська Русский Українська Русский United Kingdom & Ireland English English Vietnam Việt Việt Canada English Français English Français United States English English Africa English Français Português عربي English Français Português عربي Egypt English عربي English عربي South Africa English English Australia & New Zealand English English India English English Indonesia English English Japan 日本語 日本語 Korea 한국어 한국어 Malaysia English English Philippines English English Singapore English English Thailand ภาษาไทย ภาษาไทย Vietnam Việt Việt Austria Deutsch Deutsch Belgium & Luxembourg English Français Nederlands English Français Nederlands Czech Republic Čeština Čeština Denmark Dansk Dansk France Français Français Germany Deutsch Deutsch Hungary Magyar Magyar Israel English English Italy Italiano Italiano Netherlands Nederlands Nederlands Norway Norsk Norsk Poland Polski Polski Portugal Português Português Romania Română Română Spain Español Español Sweden Svenska Svenska Switzerland Français Deutsch Français Deutsch Turkey Türkçe Türkçe Ukraine Українська Русский Українська Русский United Kingdom & Ireland English English Hong Kong English 繁體中文 English 繁體中文 Mainland China 简体中文 简体中文 Taiwan 繁體中文 繁體中文 Argentina Español Español Brazil Português Português Caribbean Español Español Chile Español Español Colombia Español Español Costa Rica Español Español Ecuador Español Español Mexico Español Español Panama Español Español Peru Español Español Middle East English عربي English عربي Close Close Cisco.com Worldwide Products and Services Solutions Support Learn Explore Cisco How to Buy Partners Home Partner Program Support Tools Find a Cisco Partner Meet our Partners Become a Cisco Partner ... Show All Breadcrumbs Home Support Product Support Routers Cisco 8000 Series Routers Configuration Guides Segment Routing Configuration Guide for Cisco 8000 Series Routers, IOS XR Release 7.10.x Bias-Free Language Bias-Free Language The documentation set for this product strives to use bias-free language. For the purposes of this documentation set, bias-free is defined as language that does not imply discrimination based on age, disability, gender, racial identity, ethnic identity, sexual orientation, socioeconomic status, and intersectionality. Exceptions may be present in the documentation due to language that is hardcoded in the user interfaces of the product software, language used based on RFP documentation, or language that is used by a referenced third-party product. Learn more about how Cisco is using Inclusive Language. Book Contents Book Contents Book Title Page Preface New and Changed Information for Segment Routing Features YANG Data Models for Segment Routing Features Configure Segment Routing Global Block and Segment Routing Local Block Configure Segment Routing for IS-IS Protocol Configure Segment Routing for OSPF Protocol Configure Segment Routing for BGP Configure SR-TE Policies Segment Routing Tree Segment Identifier Enabling Segment Routing Flexible Algorithm Configure Segment Routing Path Computation Element Configure Performance Measurement Configure Topology-Independent Loop-Free Alternate (TI-LFA) Configure Segment Routing Microloop Avoidance Configure Segment Routing Mapping Server Using Segment Routing OAM Configure SRv6 Traffic Engineering Configure Segment Routing over IPv6 (SRv6) with Full-Length SIDs Index 7.10.x 26.1.x, 26.2.x 25.1.x, 25.2.x, 25.3.x, 25.4.x 24.1.x, 24.2.x, 24.3.x, 24.4.x 7.11.x 7.10.x 7.9.x Search Find Matches in This Book Save Log in to Save Content Available Languages Download Download Options Book Title Segment Routing Configuration Guide for Cisco 8000 Series Routers, IOS XR Release 7.10.x Chapter Title Configure SR-TE Policies PDF - Complete Book (9.69 MB) PDF - This Chapter (3.29 MB) View with Adobe Reader on a variety of devices Print Results Updated: August 18, 2023 Chapter: Configure SR-TE Policies Chapter Contents Configure SR-TE Policies SR-TE Policy Overview Usage Guidelines and Limitations Instantiation of an SR Policy On-Demand SR Policy – SR On-Demand Next-Hop SR-ODN Configuration Steps Configuring SR-ODN: Examples Configuring SR-ODN: Layer-3 Services Examples Manually Provisioned SR Policy PCE-Initiated SR Policy Cumulative Metric Bounds (Delay-Bound Use-Case) On-Demand SR Policy – SR On-Demand Next-Hop SR-ODN Configuration Steps Configuring SR-ODN: Examples Configuring SR-ODN: Layer-3 Services Examples SR-ODN Configuration Steps Configuring SR-ODN: Examples Configuring SR-ODN: Layer-3 Services Examples Configuring SR-ODN: Layer-3 Services Examples Manually Provisioned SR Policy PCE-Initiated SR Policy Cumulative Metric Bounds (Delay-Bound Use-Case) SR-TE Policy Path Types Dynamic Paths Optimization Objectives Configure Interface TE Metrics Constraints Named Interface Link Admin Groups and SR-TE Affinity Maps Configure Named Interface Link Admin Groups and SR-TE Affinity Maps Configure SR Policy with Dynamic Path Anycast SID-Aware Path Computation Explicit Path with Affinity Constraint Validation for Anycast SIDs Explicit Paths SR-TE Policy with Explicit Path Configuring Explicit Path with Affinity Constraint Validation Dynamic Paths Optimization Objectives Configure Interface TE Metrics Constraints Named Interface Link Admin Groups and SR-TE Affinity Maps Configure Named Interface Link Admin Groups and SR-TE Affinity Maps Configure SR Policy with Dynamic Path Anycast SID-Aware Path Computation Explicit Path with Affinity Constraint Validation for Anycast SIDs Optimization Objectives Configure Interface TE Metrics Configure Interface TE Metrics Constraints Named Interface Link Admin Groups and SR-TE Affinity Maps Configure Named Interface Link Admin Groups and SR-TE Affinity Maps Named Interface Link Admin Groups and SR-TE Affinity Maps Configure Named Interface Link Admin Groups and SR-TE Affinity Maps Configure Named Interface Link Admin Groups and SR-TE Affinity Maps Configure SR Policy with Dynamic Path Anycast SID-Aware Path Computation Explicit Path with Affinity Constraint Validation for Anycast SIDs Explicit Path with Affinity Constraint Validation for Anycast SIDs Explicit Paths SR-TE Policy with Explicit Path Configuring Explicit Path with Affinity Constraint Validation SR-TE Policy with Explicit Path Configuring Explicit Path with Affinity Constraint Validation Protocols Path Computation Element Protocol Configure the Head-End Router as PCEP PCC BGP SR-TE Configure BGP SR Policy Address Family at SR-TE Head-End Path Computation Element Protocol Configure the Head-End Router as PCEP PCC Configure the Head-End Router as PCEP PCC BGP SR-TE Configure BGP SR Policy Address Family at SR-TE Head-End Configure BGP SR Policy Address Family at SR-TE Head-End Traffic Steering Automated Steering Color-Only Automated Steering Setting the Color-Only Flag Address-Family Agnostic Automated Steering Using Binding Segments Stitching SR-TE Polices Using Binding SID: Example Static Route Traffic-Steering using SR-TE Policy Label Distribution Protocol (LDP) over Segment Routing Traffic Engineering (SR-TE) Policy Autoroute Include SR-TE Automated Steering Without BGP Prefix Path Label Use Case: Centralized BGP EPE for 6PE in an SR-MPLS Network Automated Steering Color-Only Automated Steering Setting the Color-Only Flag Setting the Color-Only Flag Address-Family Agnostic Automated Steering Using Binding Segments Stitching SR-TE Polices Using Binding SID: Example Stitching SR-TE Polices Using Binding SID: Example Static Route Traffic-Steering using SR-TE Policy Label Distribution Protocol (LDP) over Segment Routing Traffic Engineering (SR-TE) Policy Autoroute Include SR-TE Automated Steering Without BGP Prefix Path Label Use Case: Centralized BGP EPE for 6PE in an SR-MPLS Network Use Case: Centralized BGP EPE for 6PE in an SR-MPLS Network Enabling SR-TE with Next-Hop Independent Scaling Optimization Usage Guidelines and Limitations for Next-Hop Independent Scaling Optimization Usage Guidelines and Limitations for Next-Hop Independent Scaling Optimization Miscellaneous Segment Routing Encapsulation Object Optimization SR-TE Reoptimization Timers Circuit-Style SR-TE Policies SR Policy Path Computation for IPv6 Usage Guidelines and Limitations Segment Routing Encapsulation Object Optimization SR-TE Reoptimization Timers Circuit-Style SR-TE Policies SR Policy Path Computation for IPv6 Usage Guidelines and Limitations Usage Guidelines and Limitations Close Configure SR-TE Policies This module provides information about segment routing for traffic engineering (SR-TE) policies, how to configure SR-TE policies, and how to steer traffic into an SR-TE policy. Table 1. Feature History Table Feature Name Release Information Feature Description Local ECMP Support on SRTE Release 25.4.1 Introduced in this release on: Fixed Systems (8010 [ASIC: A100])(select variants only*) *This feature is supported on: 8011-32Y8L2H2FH 8011-12G12X4Y-A/D Local ECMP Support on SRTE Release 7.10.1 This feature supports the top security identifier (SID) resolved route interior gateway protocol (IGP) path's weight to be used in relative weight computation of outgoing paths of the SRTE policy. Now ECMP supports SRTE and computes per-egress-path relative weight using underlay (IGP) weight from Forwarding Information Base (FIB) / Routing Information Base (RIB) in addition to Segment List (SL) weight and number of primary egress paths for SL. Thus, IGP load balancing required at individual paths is also maintained. This feature is enabled by default and no configuration changes are required. Segment Routing Traffic Engineering (SR-TE) Release 7.5.2 You create a policy to steer traffic between a source-and-destination pair using the concept of source routing, where the source calculates the path and encodes it in the packet header as a segment. This functionality uses a single intelligent source and does not rely on the remaining nodes to compute a path through the network. This feature utilizes network bandwidth more effectively than traditional MPLS-TE networks by using ECMP at every segment level. Cisco 8000 series routers support the imposition of up to 8 MPLS transport labels, including TI-LFA backup labels for the protection of the top SID of an SR policy. SR-TE Policy Overview Usage Guidelines and Limitations Instantiation of an SR Policy SR-TE Policy Path Types Protocols Traffic Steering Enabling SR-TE with Next-Hop Independent Scaling Optimization Miscellaneous SR-TE Policy Overview Segment routing for traffic engineering (SR-TE) uses a “policy” to steer traffic through the network. An SR-TE policy path is expressed as a list of segments that specifies the path, called a segment ID (SID) list. Each segment is an end-to-end path from the source to the destination, and instructs the routers in the network to follow the specified path instead of following the shortest path calculated by the IGP. If a packet is steered into an SR-TE policy, the SID list is pushed on the packet by the head-end. The rest of the network executes the instructions embedded in the SID list. An SR-TE policy is identified as an ordered list (head-end, color, end-point): Head-end – Where the SR-TE policy is instantiated Color – A numerical value that distinguishes between two or more policies to the same node pairs (Head-end – End point) End-point – The destination of the SR-TE policy Every SR-TE policy has a color value. Every policy between the same node pairs requires a unique color value. An SR-TE policy uses one or more candidate paths. A candidate path is a single segment list (SID-list) or a set of weighted SID-lists (for weighted equal cost multi-path [WECMP]). A candidate path is either dynamic or explicit. See SR-TE Policy Path Types section for more information. Usage Guidelines and Limitations Observe the following guidelines and limitations for the platform. Broadcast links are not supported, configure IGP's interface as P2P (point-to-point). Before configuring SR-TE policies, use the distribute link-state command under IS-IS or OSPF to distribute the link-state database to external services. GRE tunnel as primary interface for an SR policy is not supported. GRE tunnel as backup interface for an SR policy with TI-LFA protection is not supported. Head-end computed inter-domain SR policy with Flex Algo constraint and IGP redistribution is not supported. The number of segment-lists (SLs) per SR policy is limited to a maximum of seven. If you need a policy with more than seven segment-lists, perform the following. Delete the existing SR policies. Configure the following command: Delete the existing SR policies. Configure the following command: For SR over SR policy traffic, the hardware can manage traffic accounting either for the SR label or SR policy but not for both. By default, the accounting of SR over SRTE traffic happens on SR policy. Perform the following steps to manage traffic using SR label accounting instead of SR policy accounting: Configure the following command: Configure the following command: The following features are supported for SR-TE: You can use the SR-TE On-Demand Next Hop/Automated Steering (ODN/AS) to apply color-based policies to global IPv4 and IPv6 BGP prefixes. Starting from Release 25.3.1, you can also apply color-based policies to VPNv4 and VPNv6 prefixes. L3VPN BGP PIC is supported over SR-TE paths. SR-TE BSID-based AS SR-TE head-end path computation LFA at SR-TE head-end Per-SR policy BSID label counters Per-SR policy aggregate counters Per-SR policy, per-segment list aggregate counters Per-SR policy, per-segment list, per-protocol aggregate counters: Unlabeled IP – Unlabeled IPv4 and IPv6 traffic steered over SR policy Labeled MPLS – Labeled traffic with BSID as top of label stack steered over SR policy Unlabeled IP – Unlabeled IPv4 and IPv6 traffic steered over SR policy Labeled MPLS – Labeled traffic with BSID as top of label stack steered over SR policy Supports PCEP at SR-TE head-end Supports TI-LFA at SR-TE head-end Supports a maximum SID Depth (MSD) of 8 MPLS labels. In case it exceeds 8 MPLS labels, backup path is not created. SR-TE policy with autoroute-include based steering. The following features are not supported: SR-TE ODN/AS for 6PE and EVPN SR-TE per-flow policy (PFP) Static Route Traffic-Steering using SR-TE Policy LDP over SR-TE Policy Mix of BSID and native paths with protection IPv6 IGP Routes over SRTE Policy Instantiation of an SR Policy An SR policy is instantiated, or implemented, at the head-end router. The following sections provide details on the SR policy instantiation methods: On-Demand SR Policy – SR On-Demand Next-Hop Manually Provisioned SR Policy On-Demand SR Policy – SR On-Demand Next-Hop Manually Provisioned SR Policy PCE-Initiated SR Policy Cumulative Metric Bounds (Delay-Bound Use-Case) On-Demand SR Policy – SR On-Demand Next-Hop Segment Routing On-Demand Next Hop allows a service head-end router to automatically instantiate an SR policy to a BGP next-hop when required (on-demand). Its key benefits include: SLA-aware BGP service – Provides per-destination steering behaviors where a prefix, a set of prefixes, or all prefixes from a service can be associated with a desired underlay SLA. The functionality applies equally to single-domain and multi-domain networks. Simplicity – No prior SR Policy configuration needs to be configured and maintained. Instead, operator simply configures a small set of common intent-based optimization templates throughout the network. Scalability – Device resources at the head-end router are used only when required, based on service or SLA connectivity needs. The following example shows how SR-ODN works: An egress PE (node H) advertises a BGP route for prefix T/t. This advertisement includes an SLA intent encoded with a BGP color extended community. In this example, the operator assigns color purple (example value = 100) to prefixes that should traverse the network over the delay-optimized path. The route reflector receives the advertised route and advertises it to other PE nodes. Ingress PEs in the network (such as node F) are pre-configured with an ODN template for color purple that provides the node with the steps to follow in case a route with the intended color appears, for example: Contact SR-PCE and request computation for a path toward node H that does not share any nodes with another LSP in the same disjointness group. At the head-end router, compute a path towards node H that minimizes cumulative delay. At the head-end router, compute a path towards node H that minimizes cumulative delay. In this example, the head-end router contacts the SR-PCE and requests computation for a path toward node H that minimizes cumulative delay. After SR-PCE provides the compute path, an intent-driven SR policy is instantiated at the head-end router. Other prefixes with the same intent (color) and destined to the same egress PE can share the same on-demand SR policy. When the last prefix associated with a given [intent, egress PE] pair is withdrawn, the on-demand SR policy is deleted, and resources are freed from the head-end router. An on-demand SR policy is created dynamically for BGP global or VPN (service) routes. The following services are supported with SR-ODN: IPv4 BGP global routes IPv6 BGP global routes (6PE) VPNv4 VPNv6 (6vPE) SR-ODN Configuration Steps Configuring SR-ODN: Examples SR-ODN Configuration Steps Note In Cisco IOS XR release 7.5.2, SR-ODN configurations with Flexible Algorithm constraints can be configured using either of the following commands: segment-routing traffic-eng on-demand color color dynamic sid-algorithm algorithm-number segment-routing traffic-eng on-demand color color constraints segments sid-algorithm algorithm-number Starting with Cisco IOS XR release 7.9.1, the dynamic sid-algorithm algorithm-number command has been deprecated. Only the constraints segments sid-algorithm algorithm-number command is supported. Configurations stored in NVRAM using the dynamic sid-algorithm algorithm-number command will be rejected at boot-up. As a result, SR-ODN configurations with Flexible Algorithm constraints using the dynamic sid-algorithm algorithm-number CLI must be re-configured using the constraints segments sid-algorithm algorithm-number CLI. To configure SR-ODN, complete the following configurations: Define the SR-ODN template on the SR-TE head-end router. (Optional) If using Segment Routing Path Computation Element (SR-PCE) for path computation: Configure SR-PCE. For detailed SR-PCE configuration information, see Configure SR-PCE. Configure the head-end router as Path Computation Element Protocol (PCEP) Path Computation Client (PCC). For detailed PCEP PCC configuration information, see Configure the Head-End Router as PCEP PCC. Configure SR-PCE. For detailed SR-PCE configuration information, see Configure SR-PCE. Configure the head-end router as Path Computation Element Protocol (PCEP) Path Computation Client (PCC). For detailed PCEP PCC configuration information, see Configure the Head-End Router as PCEP PCC. Define BGP color extended communities. Refer to the "Implementing BGP" chapter in the BGP Configuration Guide for Cisco 8000 Series Routers. Define routing policies (using routing policy language [RPL]) to set BGP color extended communities. Refer to the "Implementing Routing Policy" chapter in the Routing Configuration Guide for Cisco 8000 Series Routers. The following RPL attach-points for setting/matching BGP color extended communities are supported: Note The following table shows the supported RPL match operations; however, routing policies are required primarily to set BGP color extended community. Matching based on BGP color extended communities is performed automatically by ODN's on-demand color template. Attach Point Set Match VRF export X X VRF import – X EVI export X – EVI import X X Neighbor-in X X Neighbor-out X X Inter-AFI export – X Inter-AFI import – X Default-originate X – Apply routing policies to a service. Refer to the "Implementing Routing Policy" chapter in the Routing Configuration Guide for Cisco 8000 Series Routers. Configure On-Demand Color Template Use the on-demand color color command to create an ODN template for the specified color value. The head-end router automatically follows the actions defined in the template upon arrival of BGP global or VPN routes with a BGP color extended community that matches the color value specified in the template. The color range is from 1 to 4294967295. Note Matching based on BGP color extended communities is performed automatically via ODN's on-demand color template. RPL routing policies are not required. Use the on-demand color color dynamic command to associate the template with on-demand SR policies with a locally computed dynamic path (by SR-TE head-end router utilizing its TE topology database) or centrally (by SR-PCE). The head-end router will first attempt to install the locally computed path; otherwise, it will use the path computed by the SR-PCE. Use the on-demand color color dynamic pcep command to indicate that only the path computed by SR-PCE should be associated with the on-demand SR policy. With this configuration, local path computation is not attempted; instead the head-end router will only instantiate the path computed by the SR-PCE. Configure Dynamic Path Optimization Objectives Use the metric type { igp | te | latency} command to configure the metric for use in path computation. Use the metric margin { absolute value| relative percent} command to configure the On-Demand dynamic path metric margin. The range for value and percent is from 0 to 2147483647. Configure Dynamic Path Constraints Use the disjoint-path group-id group-id type { link | node | srlg | srlg-node} [ sub-id sub-id] command to configure the disjoint-path constraints. The group-id and sub-id range is from 1 to 65535. Use the affinity { include-any | include-all | exclude-any} { name WORD} command to configure the affinity constraints. Use the constraints segments sid-algorithm algorithm-number command to configure the SR Flexible Algorithm constraints. The algorithm-number range is from 128 to 255. Configuring SR-ODN: Examples Configuring SR-ODN: Layer-3 Services Examples Configuring SR-ODN: Layer-3 Services Examples Table 2. Feature History Table Feature Name Release Information Feature Description SR-ODN: Layer 3 IPv6 BGP Services Release 7.9.1 Segment Routing On-Demand Next Hop (SR-ODN) allows a service head-end router to automatically instantiate an SR policy to a BGP next-hop when required (on-demand). This feature introduces support for Layer 3 IPv6 BGP services (VPNv4/VPNv6) over SR-ODN. The following examples show end-to-end configurations used in implementing SR-ODN on the head-end router. CONFIGURING ODN COLOR TEMPLATES: EXAMPLE Configure ODN color templates on routers acting as SR-TE head-end nodes. The following example shows various ODN color templates: color 10: minimization objective = te-metric color 20: minimization objective = igp-metric color 21: minimization objective = igp-metric; constraints = affinity color 22: minimization objective = te-metric; path computation at SR-PCE; constraints = affinity color 30: minimization objective = delay-metric color 128: constraints = flex-algo CONFIGURING BGP COLOR EXTENDED COMMUNITY SET: EXAMPLE The following example shows how to configure BGP color extended communities that are later applied to BGP service routes via route-policies. Note In most common scenarios, egress PE routers that advertise BGP service routes apply (set) BGP color extended communities. However, color can also be set at the ingress PE router. CONFIGURING RPL TO SET BGP COLOR (LAYER-3 SERVICES): EXAMPLES The following example shows various representative RPL definitions that set BGP color community. The first four RPL examples include the set color action only. The last RPL example performs the set color action for selected destinations based on a prefix-set. APPLYING RPL TO BGP SERVICES (LAYER-3 SERVICES): EXAMPLE The following example shows various RPLs that set BGP color community being applied to BGP Layer-3 VPN services (VPNv4/VPNv6) and BGP global. The L3VPN examples show the RPL applied at the VRF export attach-point. The BGP global example shows the RPL applied at the BGP neighbor-out attach-point. L3VPN IPV4 SERVICES: VERIFYING BGP VRF INFORMATION Use the show bgp vrf command to display BGP prefix information for VRF instances. The following output shows the BGP VRF table including a prefix (88.1.1.0/24) with color 10 advertised by router 1.1.1.8. The following output displays the details for prefix 88.1.1.0/24. Note the presence of BGP extended color community 10, and that the prefix is associated with an SR policy with color 10 and BSID value of 24036. L3VPN IPV4 SERVICES: VERIFYING FORWARDING (CEF) TABLE Use the show cef vrf command to display the contents of the CEF table for the VRF instance. Note that prefix 198.51.100.1/24 points to the BSID label corresponding to an SR policy. Other non-colored prefixes, such as 192.0.2.2/24, point to BGP next-hop. The following output displays CEF details for prefix 198.51.100.1/24. Note that the prefix is associated with an SR policy with BSID value of 24036. L3VPN IPV4 SERVICES: VERIFYING SR POLICY Use the show segment-routing traffic-eng policy command to display SR policy information. The following outputs show the details of an on-demand SR policy that was triggered by prefixes with color 10 advertised by node 10.0.0.8. The following outputs show the details of the on-demand SR policy for BSID 24036. Note There are 2 candidate paths associated with this SR policy: the path that is computed by the head-end router (with preference 200), and the path that is computed by the SR-PCE (with preference 100). The candidate path with the highest preference is the active candidate path (highlighted below) and is installed in forwarding. L3VPN IPV4 SERVICES: VERIFYING SR POLICY FORWARDING Use the show segment-routing traffic-eng forwarding policy command to display the SR policy forwarding information. The following outputs show the forwarding details for an on-demand SR policy that was triggered by prefixes with color 10 advertised by node 10.0.0.8. L3VPN IPV6 SERVICES: VERIFYING BGP VRF INFORMATION Use the show bgp vrf command to display BGP prefix information for VRF instances. The following output displays the details for prefix 2020:0:0:1::. Note the presence of BGP extended color community 10, and that the prefix is associated with an SR policy with color 10 and BSID value of 51006. L3VPN IPV6 SERVICES: VERIFYING FORWARDING (CEF) TABLE Use the show cef vrf command to display the contents of the CEF table for the VRF instance. The following output displays CEF details for prefix 2020:0:0:1::/64. Note that the prefix is associated with an SR policy with BSID value of 51006. L3VPN IPV6 SERVICES: VERIFYING SR POLICY Use the show segment-routing traffic-eng policy command to display SR policy information. Manually Provisioned SR Policy Manually provisioned SR policies are configured on the head-end router. These policies can use dynamic paths or explicit paths. See the SR-TE Policy Path Types section for information on manually provisioning an SR policy using dynamic or explicit paths. PCE-Initiated SR Policy An SR-TE policy can be configured on the path computation element (PCE) to reduce link congestion or to minimize the number of network touch points. The PCE collects network information, such as traffic demand and link utilization. When the PCE determines that a link is congested, it identifies one or more flows that are causing the congestion. The PCE finds a suitable path and deploys an SR-TE policy to divert those flows, without moving the congestion to another part of the network. When there is no more link congestion, the policy is removed. To minimize the number of network touch points, an application, such as a Network Services Orchestrator (NSO), can request the PCE to create an SR-TE policy. PCE deploys the SR-TE policy using PCC-PCE communication protocol (PCEP). For more information, see the PCE-initiated SR Policies for Traffic Management section in the Configure Segment Routing Path Computation Element chapter. Cumulative Metric Bounds (Delay-Bound Use-Case) SRTE can calculate a shortest path with cumulative metric bounds. For example, consider these metric bounds: IGP metric <= 10 TE metric <= 60 Hop count <= 4 Latency <= 55 When an SR policy is configured on a head-end node with these metric bounds, a path is finalized towards the specified destination only if it meets each of these criteria. You can set the maximum number of attempts for computing a shortest path that satisfies the cumulative metric bounds criteria, by using the kshortest-paths command in SR-TE configuration mode. Restrictions PCE-based cumulative metric bounds computations are not supported. You must use non-PCE (SR-TE topology) based configuration for path calculation, for cumulative bounds. If you use PCE dynamic computation configuration with cumulative bounds, the PCE computes a path and validates against cumulative bounds. If it is valid, then the policy is created with this path on PCC. If the initial path doesn't respect the bounds, then the path is not considered, and no further K-shortest path algorithm is executed to find the path. Configuring SRTE Shortest Path Calculation For Cumulative Metric Bounds You can enable this feature for SR, and ODN SR policy configurations, as shown below. SR Policy SR Policy - A policy called fromAtoB_XTC is created towards destination IP address 192.168.0.2. Also, the candidate-paths preference, and other attributes are enabled. Cumulative Metric bounds – IGP, TE, hop count, and latency metric bounds are set. SRTE calculates paths only when each criterion is satisfied. ODN SR Policy SR ODN Policy – An SR ODN policy with color 1000 is created. Also, the candidate-paths value is on-demand. Cumulative Metric bounds – IGP, TE, hop count, and latency metric bounds are set for the policy. SRTE calculates paths, only when each criterion is satisfied. To set the maximum number of attempts for computing paths that satisfy the cumulative metric bounds criteria, use the kshortest-paths command. Verification Use this command to view SR policy configuration details. Pointers: The Number of K-shortest-paths field displays 4. It means that the K-shortest path algorithm took 4 computations to find the right path. The 4 shortest paths that are computed using K-shortest path algorithm did not respect the cumulative bounds. The fifth shortest path is valid against the bounds. The values for the metrics of the actual path ( TE, IGP, Cumulative Latency and Hop count values in the Dynamic section) are within the configured cumulative metric bounds. SR-TE Policy Path Types A dynamic path is based on an optimization objective and a set of constraints. The head-end computes a solution, resulting in a SID-list or a set of SID-lists. When the topology changes, a new path is computed. If the head-end does not have enough information about the topology, the head-end might delegate the computation to a Segment Routing Path Computation Element (SR-PCE). An explicit path is a specified SID-list or set of SID-lists. An SR-TE policy initiates a single (selected) path in RIB/FIB. This is the preferred valid candidate path. A path is selected when the path is valid and its preference is the best among all candidate paths for that policy. Note The protocol of the source is not relevant in the path selection logic. A candidate path has the following characteristics: It has a preference – If two policies have the same {color, endpoint} but different preferences, the policy with the highest preference is selected. It is associated with a single binding SID (BSID) – A BSID conflict occurs when there are different SR policies with the same BSID. In this case, the policy that is installed first gets the BSID and is selected. It is valid if it is usable. Dynamic Paths Explicit Paths Dynamic Paths Optimization Objectives Constraints Configure SR Policy with Dynamic Path Anycast SID-Aware Path Computation Optimization Objectives Optimization objectives allow the head-end router to compute a SID-list that expresses the shortest dynamic path according to the selected metric type: IGP metric — Refer to the "Implementing IS-IS" and "Implementing OSPF" chapters in the Routing Configuration Guide for Cisco 8000 Series Routers. TE metric — See the Configure Interface TE Metrics section for information about configuring TE metrics. Delay — See the Configure Performance Measurement chapter for information about measuring delay for links or SR policies. This example shows a dynamic path from head-end router 1 to end-point router 3 that minimizes IGP or TE metric: The blue path uses the minimum IGP metric: Min-Metric (1 → 3, IGP) = SID-list <16003>; cumulative IGP metric: 20 The green path uses the minimum TE metric: Min-Metric (1 → 3, TE) = SID-list <16005, 16004, 16003>; cumulative TE metric: 23 Configure Interface TE Metrics Configure Interface TE Metrics Use the metric value command in SR-TE interface submode to configure the TE metric for interfaces. The value range is from 0 to 2147483647. CONFIGURING TE METRIC: EXAMPLE The following configuration example shows how to set the TE metric for various interfaces: Constraints Constraints allow the head-end router to compute a dynamic path according to the selected metric type: TE affinity — You can apply a color or name to links or interfaces by assigning affinity bit-maps to them. You can then specify an affinity (or relationship) between an SR policy path and link colors. SR-TE computes a path that includes or excludes links that have specific colors,or combinations of colors. See the Named Interface Link Admin Groups and SR-TE Affinity Maps section for information on named interface link admin groups and SR-TE Affinity Maps. Disjoint — SR-TE computes a path that is disjoint from another path in the same disjoint-group. Disjoint paths do not share network resources. Path disjointness may be required for paths between the same pair of nodes, between different pairs of nodes, or a combination (only same head-end or only same end-point). Flexible Algorithm — Flexible Algorithm allows for user-defined algorithms where the IGP computes paths based on a user-defined combination of metric type and constraint. Named Interface Link Admin Groups and SR-TE Affinity Maps Named Interface Link Admin Groups and SR-TE Affinity Maps Named Interface Link Admin Groups and SR-TE Affinity Maps provide a simplified and more flexible means of configuring link attributes and path affinities to compute paths for SR-TE policies. In the traditional TE scheme, links are configured with attribute-flags that are flooded with TE link-state parameters using Interior Gateway Protocols (IGPs), such as Open Shortest Path First (OSPF). Named Interface Link Admin Groups and SR-TE Affinity Maps let you assign, or map, up to 32 256 color names for affinity and attribute-flag attributes instead of 32-bit hexadecimal numbers. After mappings are defined, the attributes can be referred to by the corresponding color name in the CLI. Furthermore, you can define constraints using include-any, include-all, and exclude-any arguments, where each statement can contain up to 10 colors. Note You can configure affinity constraints using attribute flags or the Flexible Name Based Policy Constraints scheme; however, when configurations for both schemes exist, only the configuration pertaining to the new scheme is applied. Configure Named Interface Link Admin Groups and SR-TE Affinity Maps CONFIGURE NAMED INTERFACE LINK ADMIN GROUPS AND SR-TE AFFINITY MAPS Use the affinity name NAME command in SR-TE interface submode to assign affinity to interfaces. Configure this on routers with interfaces that have an associated admin group attribute. Use the affinity-map name NAME bit-position bit-position command in SR-TE sub-mode to define affinity maps. The bit-position range is from 0 to 255. Configure affinity maps on the following routers: Routers with interfaces that have an associated admin group attribute. Routers that act as SR-TE head-ends for SR policies that include affinity constraints. CONFIGURING LINK ADMIN GROUP: EXAMPLE The following example shows how to assign affinity to interfaces and to define affinity maps. This configuration is applicable to any router (SR-TE head-end or transit node) with colored interfaces. Configure SR Policy with Dynamic Path To configure a SR-TE policy with a dynamic path, optimization objectives, and affinity constraints, complete the following configurations: Define the optimization objectives. See the Optimization Objectives section. Define the constraints. See the Constraints section. Create the policy. The following example shows a configuration of an SR policy at an SR-TE head-end router. The policy has a dynamic path with optimization objectives and affinity constraints computed by the head-end router. The following example shows a configuration of an SR policy at an SR-TE head-end router. The policy has a dynamic path with optimization objectives and affinity constraints computed by the SR-PCE. Anycast SID-Aware Path Computation An Anycast SID is a type of prefix SID that identifies a set of nodes and is configured with n-flag clear. The set of nodes (Anycast group) is configured to advertise a shared prefix address and prefix SID. Anycast routing enables the steering of traffic toward multiple advertising nodes, providing load-balancing and redundancy. Packets addressed to an Anycast address are forwarded to the topologically nearest nodes. Note For information on configuring Anycast SID, see Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface and Configuring a Prefix-SID on the OSPF-Enabled Loopback Interface. This example shows how Anycast SIDs are inserted into a computed SID list. The following figure shows 3 isolated IGP domains without redistribution and without BGP 3107. Each Area Border Router (ABR) 1 through 4 is configured with a node SID. ABRs 1 and 2 share Anycast SID 16012 and ABRs 3 and 4 share Anycast SID 16034. Consider the case where routers A and Z are provider edge (PE) routers in the same VPN. Router A receives a VPN route with BGP next-hop to router Z. Router A resolves the SR path to router Z using SR-ODN or SR-PCE. Before considering Anycast SIDs, the head-end router or SR-PCE computes the SID list. In this case, the optimized computed path from router A to router Z is 16002 > 16004 > 1600Z The path computation process reiterates the original SID-list and replaces node SIDs with Anycast SIDs (when possible). SR-TE verifies that the Anycast-encoded SID list maintains an optimum path and does not violate any path constraints (link affinity, metric bounds). If the SID list is verified, then the Anycast-encoded SID list is signaled and instantiated in the forwarding. Using the Anycast-encoded SID list, the optimized computed path from router A to router Z is 16012 > 16034 > 1600Z. The Anycast SID-aware path computation provides load-balancing. The Anycast SID aware path computation also provides resiliency. For example, if one of the ABRs (in this case, ABR 1) becomes unavailable or unreachable, the path from router A to router Z (16012 > 16034 > 1600Z) will still be valid and usable. Configuration Examples Configure Prefix SIDs on the ABR nodes. Configure each node with a node SID. Configure each group of nodes with a shared Anycast SID. See Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface and Configuring a Prefix-SID on the OSPF-Enabled Loopback Interface. Configure each node with a node SID. Configure each group of nodes with a shared Anycast SID. See Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface and Configuring a Prefix-SID on the OSPF-Enabled Loopback Interface. Configure SR policies to include Anycast SIDs for path computation using the anycast-sid-inclusion command. This example shows how to configure a local SR policy to include Anycast SIDs for PCC-initiated path computation at the head-end router: Running Configuration Use the anycast-sid-inclusion command to include Anycast SIDs into the computed paths of the following policy types: Local SR policy with PCC-initiated path computation at the head-end router: Local SR policy with PCC-initiated/PCE-delegated path computation at the SR-PCE: On-demand SR policies with a locally computed dynamic path at the head-end, or centrally computed dynamic path at the SR-PCE: On-demand SR policies with centrally computed dynamic path at the SR-PCE: Explicit Path with Affinity Constraint Validation for Anycast SIDs Explicit Path with Affinity Constraint Validation for Anycast SIDs Note For information about configuring Anycast SIDs, see Configuring a Prefix-SID on the IS-IS Enabled Loopback Interface or Configuring a Prefix-SID on the OSPF-Enabled Loopback Interface. Routers that are configured with the same Anycast SID, on the same Loopback address and with the same SRGB, advertise the same prefix SID (Anycast). The shortest path with the lowest IGP metric is then verified against the affinity constraints. If multiple nodes have the same shortest-path metric, all their paths are validated against the affinity constraints. A path that is not the shortest path is not validated against the affinity constraints. AFFINITY SUPPORT FOR ANYCAST SIDS: EXAMPLES In the following examples, nodes 3 and 5 advertise the same Anycast prefix (10.1.1.8) and assign the same prefix SID (16100). Node 1 uses the following SR-TE policy: AFFINITY CONSTRAINT VALIDATION WITH ECMP ANYCAST SID: EXAMPLE In this example, the shortest path to both node 3 and node 5 has an equal accumulative IGP metric of 20. Both paths are validated against affinity constraints. AFFINITY CONSTRAINT VALIDATION WITH NON-ECMP ANYCAST SID: EXAMPLE In this example, the shortest path to node 5 has an accumulative IGP metric of 20, and the shortest path to node 3 has an accumulative IGP metric of 30. Only the shortest path to node 5 is validated against affinity constraints. Note Even though parallel link (23) is marked with red, it is still considered valid since anycast traffic flows only on the path to node 5. INVALID PATH BASED ON AFFINITY CONSTRAINT: EXAMPLE In this example, parallel link (23) is marked as red, so the path to anycast node 3 is invalidated. Explicit Paths SR-TE Policy with Explicit Path Configuring Explicit Path with Affinity Constraint Validation SR-TE Policy with Explicit Path Table 3. Feature History Table Feature Name Release Information Feature Description SR-TE Explicit Segment Lists with Mix of IPv4 and IPv6 Segments Release 7.9.1 This feature allows you to configure an explicit segment list with IPv4 addresses and include an IPv6 address as a non-first SID. This feature allows you to deploy a centralized BGP EPE solution for 6PE in an SR-MPLS network where the last segment is associated with a EPE-enabled BGPv6 neighbor. An explicit segment list is defined as a sequence of one or more segments. A segment can be configured as an IP address or an MPLS label representing a node or a link. An explicit segment list can be configured with the following: IP-defined segments MPLS label-defined segments A combination of IP-defined segments and MPLS label-defined segments Behaviors and Limitations An IP-defined segment can be associated with an IPv4 or IPv6 address (for example, a link or a Loopback address). An IPv6 address cannot be the first segment of the segment list. A segment defined with an IPv6 address (for example, IPv6 EPE SID) enables use-cases such as centralized BGP EPE solution for 6PE in an SR-MPLS network where the last segment of the explicit segment list is associated with an EPE-enabled BGPv6 neighbor. A segment defined with an IPv6 address (for example, IPv6 EPE SID) enables use-cases such as centralized BGP EPE solution for 6PE in an SR-MPLS network where the last segment of the explicit segment list is associated with an EPE-enabled BGPv6 neighbor. When a segment of the segment list is defined as an MPLS label, subsequent segments can only be configured as MPLS labels. Configure Local SR-TE Policy Using Explicit Paths To configure an SR-TE policy with an explicit path, complete the following configurations: Create the segment list. Create the SR-TE policy. Create a segment list with IP addresses: Create a segment list with MPLS labels: Create a segment list with IP addresses and MPLS labels: Create a segment list with IPv4 and IPv6 addresses: Create the SR-TE policy: Running Configuration Verification This feature provides for displaying detailed segment list information. This is in addition to the current behavior of displaying segment list information from active policies. For active candidate paths, the status of segment list will either be valid or invalid. If the segment list is invalid, the reason for its invalidity along with the entire label/IP stack of segment list is displayed. For inactive candidate paths, the status of segment list will always be inactive. Since the validity of segment list under inactive path is not checked, it is always displayed inactive. Verify the SR-TE policy configuration using: Configuring Explicit Path with Affinity Constraint Validation To fully configure SR-TE flexible name-based policy constraints, you must complete these high-level tasks in order: Assign Color Names to Numeric Values Associate Affinity-Names with SR-TE Links Associate Affinity Constraints for SR-TE Policies Running Configuration Verification Note Use the auto-generated SR policy name assigned by the router. Auto-generated SR policy names use the following naming convention: srte_c_color*-value_ep_endpoint******-address*. For example, srte_c_20_ep_10.1.1.4. Protocols Path Computation Element Protocol BGP SR-TE Path Computation Element Protocol The path computation element protocol (PCEP) describes a set of procedures by which a path computation client (PCC) can report and delegate control of head-end label switched paths (LSPs) sourced from the PCC to a PCE peer. The PCE can request the PCC to update and modify parameters of LSPs it controls. The stateful model also enables a PCC to allow the PCE to initiate computations allowing the PCE to perform network-wide orchestration. Configure the Head-End Router as PCEP PCC Configure the Head-End Router as PCEP PCC Configure the head-end router as PCEP Path Computation Client (PCC) to establish a connection to the PCE. The PCC and PCE addresses must be routable so that TCP connection (to exchange PCEP messages) can be established between PCC and PCE. Configure the PCC to Establish a Connection to the PCE Use the segment-routing traffic-eng pcc command to configure the PCC source address, the SR-PCE address, and SR-PCE options. A PCE can be given an optional precedence. If a PCC is connected to multiple PCEs, the PCC selects a PCE with the lowest precedence value. If there is a tie, a PCE with the highest IP address is chosen for computing path. The precedence value range is from 0 to 255. Configure PCEP-Related Timers Use the timers keepalive command to specify how often keepalive messages are sent from PCC to its peers. The range is from 0 to 255 seconds; the default value is 30. Use the timers deadtimer command to specify how long the remote peers wait before bringing down the PCEP session if no PCEP messages are received from this PCC. The range is from 1 to 255 seconds; the default value is 120. Use the timers delegation-timeout command to specify how long a delegated SR policy can remain up without an active connection to a PCE. The range is from 0 to 3600 seconds; the default value is 60. PCE-Initiated SR Policy Timers Use the timers initiated orphans command to specify the amount of time that a PCE-initiated SR policy will remain delegated to a PCE peer that is no longer reachable by the PCC. The range is from 10 to 180 seconds; the default value is 180. Use the timers initiated state command to specify the amount of time that a PCE-initiated SR policy will remain programmed while not being delegated to any PCE. The range is from 15 to 14440 seconds (24 hours); the default value is 600. To better understand how the PCE-initiated SR policy timers operate, consider the following example: PCE A instantiates SR policy P at head-end N. Head-end N delegates SR policy P to PCE A and programs it in forwarding. If head-end N detects that PCE A is no longer reachable, then head-end N starts the PCE-initiated orphan and state timers for SR policy P. If PCE A reconnects before the orphan timer expires, then SR policy P is automatically delegated back to its original PCE (PCE A). After the orphan timer expires, SR policy P will be eligible for delegation to any other surviving PCE(s). If SR policy P is not delegated to another PCE before the state timer expires, then head-end N will remove SR policy P from its forwarding. Enable SR-TE SYSLOG Alarms Use the logging policy status command to enable SR-TE related SYSLOG alarms. Enable PCEP Reports to SR-PCE Use the report-all command to enable the PCC to report all SR policies in its database to the PCE. Customize MSD Value at PCC Use the maximum-sid-depth value command to customize the Maximum SID Depth (MSD) signaled by PCC during PCEP session establishment. The default MSD value is equal to the maximum MSD supported by the platform ( 5). Note The platform's SR-TE label imposition capabilities are as follows: Up to 5 transport labels when no service labels are imposed Up to 3 transport labels when service labels are imposed For cases with path computation at PCE, a PCC can signal its MSD to the PCE in the following ways: During PCEP session establishment – The signaled MSD is treated as a node-wide property. MSD is configured under segment-routing traffic-eng maximum-sid-depth value command MSD is configured under segment-routing traffic-eng maximum-sid-depth value command During PCEP LSP path request – The signaled MSD is treated as an LSP property. On-demand (ODN) SR Policy: MSD is configured using the segment-routing traffic-eng on-demand color color maximum-sid-depth value command Local SR Policy: MSD is configured using the segment-routing traffic-eng policy WORD candidate-paths preference preference dynamic metric sid-limit value command. Note If the configured MSD values are different, the per-LSP MSD takes precedence over the per-node MSD. On-demand (ODN) SR Policy: MSD is configured using the segment-routing traffic-eng on-demand color color maximum-sid-depth value command Local SR Policy: MSD is configured using the segment-routing traffic-eng policy WORD candidate-paths preference preference dynamic metric sid-limit value command. Note If the configured MSD values are different, the per-LSP MSD takes precedence over the per-node MSD. After path computation, the resulting label stack size is verified against the MSD requirement. If the label stack size is larger than the MSD and path computation is performed by PCE, then the PCE returns a "no path" response to the PCC. If the label stack size is larger than the MSD and path computation is performed by PCC, then the PCC will not install the path. Note A sub-optimal path (if one exists) that satisfies the MSD constraint could be computed in the following cases: For a dynamic path with TE metric, when the PCE is configured with the pce segment-routing te-latency command or the PCC is configured with the segment-routing traffic-eng te-latency command. For a dynamic path with LATENCY metric For a dynamic path with affinity constraints For example, if the PCC MSD is 4 and the optimal path (with an accumulated metric of 100) requires 5 labels, but a sub-optimal path exists (with accumulated metric of 110) requiring 4 labels, then the sub-optimal path is installed. Customize the SR-TE Path Calculation Use the te-latency command to enable ECMP-aware path computation for TE metric. Note ECMP-aware path computation is enabled by default for IGP and LATENCY metrics. Configure PCEP Redundancy Type Use the redundancy pcc-centric command to enable PCC-centric high-availability model, where the PCC allows only the PCE with the lowest precedence to initiate policies. Configuring Head-End Router as PCEP PCC and Customizing SR-TE Related Options: Example The following example shows how to configure an SR-TE head-end router with the following functionality: Enable the SR-TE head-end router as a PCEP client (PCC) with 3 PCEP servers (PCE) with different precedence values. The PCE with IP address 10.1.1.57 is selected as BEST. Enable SR-TE related syslogs. Set the Maximum SID Depth (MSD) signaled during PCEP session establishment to 5. Enable PCEP reporting for all policies in the node. Verification BGP SR-TE BGP may be used to distribute SR Policy candidate paths to an SR-TE head-end. Dedicated BGP SAFI and NLRI have been defined to advertise a candidate path of an SR Policy. The advertisement of Segment Routing policies in BGP is documented in the IETF draft https://datatracker.ietf.org/doc/draft-ietf-idr-segment-routing-te-policy/ SR policies with IPv4 and IPv6 end-points can be advertised over BGPv4 or BGPv6 sessions between the SR-TE controller and the SR-TE headend. The Cisco IOS-XR implementation supports the following combinations: IPv4 SR policy advertised over BGPv4 session IPv6 SR policy advertised over BGPv4 session IPv4 SR policy advertised over BGPv6 session IPv6 SR policy advertised over BGPv6 session Configure BGP SR Policy Address Family at SR-TE Head-End Configure BGP SR Policy Address Family at SR-TE Head-End Perform this task to configure BGP SR policy address family at SR-TE head-end: SUMMARY STEPS configure router bgp as-number bgp router-id ip-address address-family { ipv4 | ipv6} sr-policy exit neighbor ip-address remote-as as-number address-family { ipv4 | ipv6} sr-policy route-policy route-policy-name { in | out } DETAILED STEPS Command or Action Purpose Step 1 configure Step 2 router bgp as-number ##### Example: ``` RP/0/RSP0/CPU0:router(config)# router bgp 65000 router bgp 65000 bgp router-id 10.1.1.1 ! address-family ipv4 sr-policy ! address-family ipv6 sr-policy ! neighbor 10.1.3.1 remote-as 10 description *** eBGP session to BGP SRTE controller *** address-family ipv4 sr-policy route-policy pass in route-policy pass out ! address-family ipv6 sr-policy route-policy pass in route-policy pass out ! ! ! router bgp 65000 bgp router-id 10.1.1.1 address-family ipv4 sr-policy ! address-family ipv6 sr-policy ! neighbor 3001::10:1:3:1 remote-as 10 description *** eBGP session to BGP SRTE controller *** address-family ipv4 sr-policy route-policy pass in route-policy pass out ! address-family ipv6 sr-policy route-policy pass in route-policy pass out ! ! ! Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# policy P1 Router(config-sr-te-policy)# color 1 end-point ipv4 0.0.0.0 Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# policy P2 Router(config-sr-te-policy)# color 2 end-point ipv6 ::0 Router# show running-configuration segment-routing traffic-eng policy P1 color 1 end-point ipv4 0.0.0.0 ! policy P2 color 2 end-point ipv6 :: ! ! ! end Router(config)# extcommunity-set opaque overlay-color Router(config-ext)# 1 co-flag 01 Router(config-ext)# end-set Router(config)# Router(config)# route-policy color Router(config-rpl)# if destination in (10.5.5.1/32) then Router(config-rpl-if)# set extcommunity color overlay-color Router(config-rpl-if)# endif Router(config-rpl)# pass Router(config-rpl)# end-policy Router(config)# Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# policy P1 Router(config-sr-te-policy)# color 1 end-point ipv4 0.0.0.0 Router(config-sr-te-policy)# ipv6 disable Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# binding-sid explicit fallback-dynamic Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# binding-sid explicit enforce-srlb segment-routing traffic-eng binding-sid explicit fallback-dynamic policy goo binding-sid mpls 1000 ! ! ! segment-routing traffic-eng segment-list PATH-9_10 index 10 address ipv4 10.1.1.9 index 20 address ipv4 10.1.1.10 ! policy foo binding-sid mpls 15888 color 777 end-point ipv4 10.1.1.10 candidate-paths preference 100 explicit segment-list PATH5-9_10 ! ! ! ! ! ! RP/0/RSP0/CPU0:Node-5# show segment-routing traffic-eng policy color 777 SR-TE policy database Color: 777, End-point: 10.1.1.10 Name: srte_c_777_ep_10.1.1.10 Status: Admin: up Operational: up for 00:00:52 (since Aug 19 07:40:12.662) Candidate-paths: Preference: 100 (configuration) (active) Name: foo Requested BSID: 15888 PCC info: Symbolic name: cfg_foo_discr_100 PLSP-ID: 70 Explicit: segment-list PATH-9_10 (valid) Weight: 1, Metric Type: TE 16009 [Prefix-SID, 10.1.1.9] 16010 [Prefix-SID, 10.1.1.10] Attributes: Binding SID: 15888 (SRLB) Forward Class: 0 Steering BGP disabled: no IPv6 caps enable: yes segment-routing traffic-eng segment-list PATH-4_4-6_5_BSID index 10 address ipv4 10.1.1.4 index 20 address ipv4 10.4.6.6 index 30 address ipv4 10.1.1.5 index 40 mpls label 15888 ! policy baa binding-sid mpls 15900 color 777 end-point ipv4 10.1.1.5 candidate-paths preference 100 explicit segment-list PATH-4_4-6_5_BSID ! ! ! ! ! ! RP/0/RSP0/CPU0:Node-3# show segment-routing traffic-eng policy color 777 SR-TE policy database Color: 777, End-point: 10.1.1.5 Name: srte_c_777_ep_10.1.1.5 Status: Admin: up Operational: up for 00:00:32 (since Aug 19 07:40:32.662) Candidate-paths: Preference: 100 (configuration) (active) Name: baa Requested BSID: 15900 PCC info: Symbolic name: cfg_baa_discr_100 PLSP-ID: 70 Explicit: segment-list PATH-4_4-6_5_BSID (valid) Weight: 1, Metric Type: TE 16004 [Prefix-SID, 10.1.1.4] 80005 [Adjacency-SID, 10.4.6.4 - 10.4.6.6] 16005 [Prefix-SID, 10.1.1.5] 15888 Attributes: Binding SID: 15900 (SRLB) Forward Class: 0 Steering BGP disabled: no IPv6 caps enable: yes segment-routing traffic-eng segment-list PATH-3_BSID index 10 address ipv4 10.1.1.3 index 20 mpls label 15900 ! policy bar color 777 end-point ipv4 10.1.1.3 candidate-paths preference 100 explicit segment-list PATH-3_BSID ! ! ! ! ! ! RP/0/RSP0/CPU0:Node-1# show segment-routing traffic-eng policy color 777 SR-TE policy database Color: 777, End-point: 10.1.1.3 Name: srte_c_777_ep_10.1.1.3 Status: Admin: up Operational: up for 00:00:12 (since Aug 19 07:40:52.662) Candidate-paths: Preference: 100 (configuration) (active) Name: bar Requested BSID: dynamic PCC info: Symbolic name: cfg_bar_discr_100 PLSP-ID: 70 Explicit: segment-list PATH-3_BSID (valid) Weight: 1, Metric Type: TE 16003 [Prefix-SID, 10.1.1.3] 15900 Attributes: Binding SID: 80021 Forward Class: 0 Steering BGP disabled: no IPv6 caps enable: yes Router(config)# router static Router (config-static)# address-family ipv4 unicast //configure administrative distance Router (config-static-afi)# 192.2.0.0/24 sr-policy sample-policy 110 //Configure load metric Router (config-static-afi)# 192.2.0.0/24 sr-policy sample-policy metric 50 //Install the route in RIB regardless of reachability Router (config-static-afi)# 192.2.0.0/24 sr-policy sample-policy permanent Router# show running-configuration router static address-family ipv4 unicast 192.2.0.1/24 sr-policy sample-policy 110 192.2.0.1/24 sr-policy sample-policy metric 50 192.2.0.1/24 sr-policy sample-policy permanent ! ! ! Router# show route 192.2.0.0/24 Routing entry for 192.2.0.0/24 Known via "static", distance 1, metric 0 Installed Jul 28 09:18:25.639 for 00:00:09 Routing Descriptor Blocks directly connected, via srte_c_2_ep_10.3.3.10, permanent Route distance is 110, metric is 0, Wt is 50 /* Enter the SR-TE configuration mode and create the SR policy. This example corresponds to a local SR policy with an explicit path. */ Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# segment-list sample-sid-list Router(config-sr-te-sl)# index 10 address ipv4 10.1.1.7 Router(config-sr-te-sl)# index 20 address ipv4 10.1.1.2 Router(config-sr-te-sl)# exit Router(config-sr-te)# policy sample_policy Router(config-sr-te-policy)# color 1000 end-point ipv4 10.1.1.2 Router(config-sr-te-policy)# candidate-paths Router(config-sr-te-policy-path)# preference 100 Router(config-sr-te-policy-path-pref)# explicit segment-list sample-sid-list Router(config-sr-te-pp-info)# end /* Configure LDP over an SR policy */ Router(config)# mpls ldp Router(config-ldp)# address-family ipv4 Router(config-ldp-af)# neighbor sr-policy srte_c_1000_ep_10.1.1.2 targeted Router(config-ldp-af)# mpls ldp interface GigabitEthernet0/0/0/0 ! ! mpls ldp address-family ipv4 discovery targeted-hello accept ! ! segment-routing traffic-eng segment-list sample-sid-list index 10 address ipv4 10.1.1.7 index 20 address ipv4 10.1.1.2 ! policy sample_policy color 1000 end-point ipv4 10.1.1.2 candidate-paths preference 100 explicit segment-list sample-sid-list ! ! ! ! ! ! mpls ldp address-family ipv4 neighbor sr-policy srte_c_1000_ep_10.1.1.2 targeted discovery targeted-hello accept ! ! Router# show mpls ldp interface brief Interface VRF Name Config Enabled IGP-Auto-Cfg TE-Mesh-Grp cfg Te0/3/0/0/3 default Y Y 0 N/A Te0/3/0/0/6 default Y Y 0 N/A Te0/3/0/0/7 default Y Y 0 N/A Te0/3/0/0/8 default N N 0 N/A Te0/3/0/0/9 default N N 0 N/A srte_c_1000_ default Y Y 0 N/A Router# show mpls ldp interface Interface TenGigE0/3/0/0/3 (0xa000340) VRF: 'default' (0x60000000) Enabled via config: LDP interface Interface TenGigE0/3/0/0/6 (0xa000400) VRF: 'default' (0x60000000) Enabled via config: LDP interface Interface TenGigE0/3/0/0/7 (0xa000440) VRF: 'default' (0x60000000) Enabled via config: LDP interface Interface TenGigE0/3/0/0/8 (0xa000480) VRF: 'default' (0x60000000) Disabled: Interface TenGigE0/3/0/0/9 (0xa0004c0) VRF: 'default' (0x60000000) Disabled: Interface srte_c_1000_ep_10.1.1.2 (0x520) VRF: 'default' (0x60000000) Enabled via config: LDP interface Router# show segment-routing traffic-eng policy color 1000 SR-TE policy database Color: 1000, End-point: 1.1.1.2 Name: srte_c_1000_ep_10.1.1.2 Status: Admin: up Operational: up for 00:02:00 (since Jul 2 22:39:06.663) Candidate-paths: Preference: 100 (configuration) (active) Name: sample_policy Requested BSID: dynamic PCC info: Symbolic name: cfg_sample_policy_discr_100 PLSP-ID: 17 Explicit: segment-list sample-sid-list (valid) Weight: 1, Metric Type: TE 16007 [Prefix-SID, 10.1.1.7] 16002 [Prefix-SID, 10.1.1.2] Attributes: Binding SID: 80011 Forward Class: 0 Steering BGP disabled: no IPv6 caps enable: yes Router# show mpls ldp neighbor 10.1.1.2 detail Peer LDP Identifier: 10.1.1.2:0 TCP connection: 10.1.1.2:646 - 10.1.1.6:57473 Graceful Restart: No Session Holdtime: 180 sec State: Oper; Msgs sent/rcvd: 421/423; Downstream-Unsolicited Up time: 05:22:02 LDP Discovery Sources: IPv4: (1) Targeted Hello (10.1.1.6 -> 10.1.1.2, active/passive) IPv6: (0) Addresses bound to this peer: IPv4: (9) 10.1.1.2 10.2.2.99 10.1.2.2 10.2.3.2 10.2.4.2 10.2.22.2 10.2.222.2 10.30.110.132 10.2.9.2 IPv6: (0) Peer holdtime: 180 sec; KA interval: 60 sec; Peer state: Estab NSR: Disabled Clients: LDP over SR Policy Capabilities: Sent: 0x508 (MP: Point-to-Multipoint (P2MP)) 0x509 (MP: Multipoint-to-Multipoint (MP2MP)) 0x50a (MP: Make-Before-Break (MBB)) 0x50b (Typed Wildcard FEC) Received: 0x508 (MP: Point-to-Multipoint (P2MP)) 0x509 (MP: Multipoint-to-Multipoint (MP2MP)) 0x50a (MP: Make-Before-Break (MBB)) 0x50b (Typed Wildcard FEC) Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)#policy P1 Router(config-sr-te-policy)# color 20 end-point ipv4 10.1.1.2 Router(config-sr-te-policy)# autoroute include ipv4 all Router(config-sr-te-policy)# candidate-paths Router(config-sr-te-policy-path)# preference 100 Router(config-sr-te-pp-index)# explicit segment-list Plist-1 Router# configure Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)#policy P1 Router(config-sr-te-policy)# color 20 end-point ipv4 10.1.1.2 Router(config-sr-te-policy)# autoroute include ipv4 10.1.1.21/32 Router(config-sr-te-policy)# autoroute include ipv4 10.1.1.23/32 Router(config-sr-te-policy)# autoroute metric constant 1 Router(config-sr-te-policy)# candidate-paths Router(config-sr-te-policy-path)# preference 100 Router(config-sr-te-pp-index)# explicit segment-list slist-1 Router# configure Router(config)# segment-routing traffic-eng policy pol12 Router(config-sr-te-policy)# autoroute include ipv6 all Router(config-sr-te-policy)# commit Router# configure Router(config)# segment-routing traffic-eng pcc profile 10 Router(config-pcc-prof)# autoroute include ipv6 all Router(config-pcc-prof)# commit Router# show segment-routing traffic-eng policy name srte_c_20_ep_10.1.1.2 private SR-TE policy database Color: 20, End-point: 10.1.1.2 ID: 1 Name: srte_c_20_ep_10.1.1.2 Status: Admin: up Operational: down for 00:05:57 (since Mar 13 18:08:26.690) Candidate-paths: Preference: 100 (configuration) (inactive) Originator: ASN 0 node-address discriminator: 100 Name: policy1 Requested BSID: 15001 Protection Type: protected-preferred Maximum SID Depth: 8 ID: 1 Source: Stale: no Checkpoint flags: 0x00000000 Autoroute: Force SR include: no Include IPv6 all: yes Prefix: 0.0.0.0/0 Explicit: segment-list slist1 (inactive) Weight: 2, Metric Type: TE IGP area: 0 . . . Router# show isis ipv6 route 2001:131:0:63::1/64 detail L2 2001:131:0:63::1/64 (41/115) Label: None, low priority Installed Feb 22 23:03:14.620 for 00:00:02 via ::, srte/c/1/ep/10.1.1.2, Label: Exp-Null-v6, SR-TB5-R2, SRGB Base: 21000, Weight: O src 0010.9400.0006.00-02, 2002::6702:102 Router# show route ipv6 2001:131:0:63::1/64 detail Routing entry for 2001:131:0:63::/64 Known via "isis core-sr", distance 115, metric 41, type level-2 Installed Feb 22 23:03:14.624 for 00:04:20 Routing Descriptor Blocks directly connected, via srte c_1_ep_10.1.1.2 Nexthop in Vrf: "default", Table: "default", IPv4 Unicast, Table Id:Oxe0000000 Route metric 18 41 Label: OX2 (2) Tunnel ID: None Binding Label: 0x272e (15001) Extended communities count: 0 Path id:1 Path ref count: 0 NHID: 0x0 (Ref: 0) MPLS eid:Ox118aa00000002 . . . Router(config)# segment-routing Router(config-sr)# traffic-eng Router(config-sr-te)# policy FOO Router(config-sr-te-policy)# steering Router(config-sr-te-policy-steering)# bgp prefix-path-label ignore Router(config-sr-te-policy-steering)# exit Router(config-sr-te-policy)# color 100 end-point ipv4 0.0.0.0 Router(config-sr-te-policy)# candidate-paths Router(config-sr-te-policy-path)# preference 100 Router(config-sr-te-policy-path-pref)# explicit segment-list sample-sl Router# show segment-routing traffic-eng policy candidate-path name FOO private SR-TE policy database Color: 100, End-point: 0.0.0.0 ID: 3 Name: srte_c_100_ep_0.0.0.0 Status: Admin: up Operational: up for 00:10:07 (since Feb 2 12:58:43.554) Candidate-paths: Preference: 100 (configuration) (active) Originator: ASN 0 node-address discriminator: 100 Name: FOO Requested BSID: dynamic Constraints: Protection Type: protected-preferred Maximum SID Depth: 10 ID: 1 Source: 20.1.0.100 Stale: no Checkpoint flags: 0x00000000 Steering: Client: BGP Disabled: no Ignore prefix label: yes Explicit: segment-list sample-sl (valid) Weight: 1, Metric Type: TE IGP area: 2 SID[0]: 16102 [Prefix-SID: 20.1.0.102, Algorithm: 0] SID[1]: 16103 [Prefix-SID: 20.1.0.103, Algorithm: 0] SID[2]: 24008 [Adjacency-SID, 15:15:15::4 - 15:15:15::5] LSPs: . . . Attributes: Binding SID: 24030 Forward Class: Not Configured Steering labeled-services disabled: no Steering BGP disabled: no IPv6 caps enable: yes Invalidation drop enabled: no Max Install Standby Candidate Paths: 0 Notification to clients: Binding SID: 24030 Bandwidth : 0 Kbps (0 Kbps) State: UP Flags: [add] [ipv6_caps] [ignore_prefix_label] Metric Type: NONE Metric Value: 2147483647 Admin Distance: 100 ifhandle: 0x00000170 Source: 20.1.0.100 Transition count: 1 LSPs created count: 1 Reoptimizations completed count: 1 Retry Action Flags: 0x00000000, () Last Retry Timestamp: never (0 seconds ago) Policy reference: 0x1f81e50 Router# show bgp nexthops 0.0.0.0 color 100 | include "BGP prefix label" Router# show bgp ipv6 labeled-unicast 151:1::/64 detail BGP routing table entry for 151:1::/64 Versions: Process bRIB/RIB SendTblVer Speaker 2003 2003 Local Label: 81718 (no rewrite); Flags: 0x003e1001+0x30010000; Last Modified: Nov 23 16:59:17.891 for 00:00:03 Paths: (400 available, best #1) Advertised IPv6 Unicast paths to update-groups (with more than one peer): 0.2 Advertised IPv6 Labeled-unicast paths to update-groups (with more than one peer): 0.3 Path #1: Received by speaker 0 Flags: 0xa480000001060205+0x01, import: 0x020 Advertised IPv6 Unicast paths to update-groups (with more than one peer): 0.2 Advertised IPv6 Labeled-unicast paths to update-groups (with more than one peer): 0.3 300, (Received from a RR-client) 5.5.3.1 C:100 (bsid:24030) (admin 100) (metric 2147483647) from 4.4.4.1 (5.5.5.5), if-handle 0x00000170 Prefix Label not imposed due to SR policy config segment-routing traffic-eng segment-list sl-to_3-epe_36 index 10 mpls adjacency 10.1.1.3 index 20 mpls adjacency 2001:db8:20:3:6::3 ! policy FOO steering bgp prefix-path-label ignore ! color 10 end-point ipv4 0.0.0.0 candidate-paths preference 100 explicit segment-list sl-to_3-epe_36 Router1# show segment-routing traffic-eng policy candidate-path name FOO private SR-TE policy database Color: 10, End-point: 0.0.0.0 ID: 3 Name: srte_c_10_ep_0.0.0.0 Status: Admin: up Operational: up for 00:10:07 (since Feb 2 12:58:43.554) Candidate-paths: Preference: 100 (configuration) (active) Originator: ASN 0 node-address discriminator: 100 Name: FOO Requested BSID: dynamic Constraints: Protection Type: protected-preferred Maximum SID Depth: 10 ID: 1 Source: 10.1.1.1 Stale: no Checkpoint flags: 0x00000000 Steering: Client: BGP Disabled: no Ignore prefix label: yes Explicit: segment-list sl-to_3-epe_36 (valid) Weight: 1, Metric Type: TE IGP area: 2 SID[0]: 16003 [Prefix-SID: 10.1.1.3, Algorithm: 0] SID[1]: 24036 [Adjacency-SID, 2001:db8:20:3:6::3 - 2001:db8:20:3:6::6] LSPs: . . . Attributes: Binding SID: 24030 Forward Class: Not Configured Steering labeled-services disabled: no Steering BGP disabled: no IPv6 caps enable: yes Invalidation drop enabled: no Max Install Standby Candidate Paths: 0 Notification to clients: Binding SID: 24030 Bandwidth : 0 Kbps (0 Kbps) State: UP Flags: [add] [ipv6_caps] [ignore_prefix_label] Metric Type: NONE Metric Value: 2147483647 Admin Distance: 100 ifhandle: 0x00000170 Source: 10.1.1.1 Transition count: 1 LSPs created count: 1 Reoptimizations completed count: 1 Retry Action Flags: 0x00000000, () Last Retry Timestamp: never (0 seconds ago) Policy reference: 0x1f81e50 Router1# show bgp ipv6 labeled-unicast 2001:db8:abcd::/48 detail BGP routing table entry for 2001:db8:abcd::/48 Versions: Process bRIB/RIB SendTblVer Speaker 2003 2003 Local Label: 81718 (no rewrite); Flags: 0x003e1001+0x30010000; Last Modified: Nov 23 16:59:17.891 for 00:00:03 Paths: (1 available, best #1) Advertised IPv6 Unicast paths to update-groups (with more than one peer): 0.2 Advertised IPv6 Labeled-unicast paths to update-groups (with more than one peer): 0.3 Path #1: Received by speaker 0 Flags: 0xa480000001060205+0x01, import: 0x020 Advertised IPv6 Unicast paths to update-groups (with more than one peer): 0.2 Advertised IPv6 Labeled-unicast paths to update-groups (with more than one peer): 0.3 300, (Received from a RR-client) 10.1.1.2 C:10 (bsid:24030) (admin 100) (metric 2147483647) from 10.1.1.100 (10.1.1.2), if-handle 0x00000170 Prefix Label not imposed due to SR policy config Router(config)# segment-routing traffic-eng separate-next-hop Router(config)# hw-module profile cef sropt enable In order to activate/deactivate SROPT feature, you must manually reload the chassis/all line cards Router(config)# commit Router(config)# end Router# show hw-module profile cef Knob Status Applied Action CBF Enable Unconfigured N/A None CBF forward-class-list Unconfigured N/A None BGPLU Unconfigured N/A None LPTS ACL Unconfigured N/A None Dark Bandwidth Unconfigured N/A None SR-OPT Enable Configured No Reload IP Redirect Punt Unconfigured N/A None IPv6 Hop-limit Punt Unconfigured N/A None MPLS Per Path Stats Unconfigured N/A None Tunnel TTL Decrement Unconfigured N/A None High-Scale No-LDP-Over-TE Unconfigured N/A None Label over TE counters Unconfigured N/A None Highscale LDPoTE No SRoTE Unconfigured N/A None LPTS Pifib Entry Counters Unconfigured N/A None Router# reload location all Thu Jan 26 20:15:32.557 UTC Proceed with reload? [confirm] y Router# show hw-module profile cef Knob Status Applied Action CBF Enable Unconfigured N/A None CBF forward-class-list Unconfigured N/A None BGPLU Unconfigured N/A None LPTS ACL Unconfigured N/A None Dark Bandwidth Unconfigured N/A None SR-OPT Enable Configured Yes None IP Redirect Punt Unconfigured N/A None IPv6 Hop-limit Punt Unconfigured N/A None MPLS Per Path Stats Unconfigured N/A None Tunnel TTL Decrement Unconfigured N/A None High-Scale No-LDP-Over-TE Unconfigured N/A None Label over TE counters Unconfigured N/A None Highscale LDPoTE No SRoTE Unconfigured N/A None LPTS Pifib Entry Counters Unconfigured N/A None Router# show mpls forwarding labels 19001 detail Tue Feb 5 19:50:13.992 UTC Local Outgoing Prefix Outgoing Next Hop Bytes Label Label or ID Interface Switched 19001 Pop SR Pfx (idx 3001) Hu0/1/0/1 18.0.0.2 0 Updated: Feb 1 23:07:39.595 Version: 27, Priority: 1 Label Stack (Top -> Bottom): { Imp-Null } NHID: 0x0, Encap-ID: 0x1380900000002, Path idx: 0, Backup path idx: 0, Weight: 0 MAC/Encaps: 14/14, MTU: 1500 Outgoing Interface: HundredGigE0/1/0/1 (ifhandle 0x008000c0) Packets Switched: 0 Traffic-Matrix Packets/Bytes Switched: 0/0 Total Packets/Bytes Switched: 6592788/843876864 Router# segment-routing traffic-eng reoptimization {all | name policy} Router(config)# segment-routing traffic-eng Router(config-sr-te)# timers Router(config-sr-te-timers)# candidate-path cleanup-delay 600 Router(config-sr-te-timers)# cleanup-delay 60 Router(config-sr-te-timers)# init-verify-restart 120 Router(config-sr-te-timers)# init-verify-startup 600 Router(config-sr-te-timers)# init-verify-switchover 30 Router(config-sr-te-timers)# install-delay 60 Router(config-sr-te-timers)# periodic-reoptimization 3000 segment-routing traffic-eng timers install-delay 60 periodic-reoptimization 3000 cleanup-delay 60 candidate-path cleanup-delay 600 init-verify-restart 120 init-verify-startup 600 init-verify-switchover 30 ! ! ! Router_1(config)# performance-measurement Router_1(config-perf-meas)# liveness-profile name profile-WORKING Router_1(config-pm-ld-profile)# liveness-detection Router_1(config-pm-ld-profile-ld)# multiplier 3 Router_1(config-pm-ld-profile-ld)# exit Router_1(config-pm-ld-profile)# probe Router_1(config-pm-ld-probe)# tx-interval 30000 Router_1(config-pm-ld-probe)# exit Router_1(config-pm-ld-profile)# exit Router_1(config-perf-meas)# liveness-profile name profile-PROTECT Router_1(config-pm-ld-profile)# liveness-detection Router_1(config-pm-ld-profile-ld)# multiplier 3 Router_1(config-pm-ld-profile-ld)# exit Router_1(config-pm-ld-profile)# probe Router_1(config-pm-ld-probe)# tx-interval 100000 Router_1(config)# segment-routing Router_1(config-sr)# traffic-eng Router_1(config-sr-te)# policy cs-srte-to-node7 Router_1(config-sr-te-policy)# bandwidth 10000 Router_1(config-sr-te-policy)# color 10 end-point ipv4 10.1.1.7 Router_1(config-sr-te-policy)# path-protection Router_1(config-sr-te-path-pref-protection)# exit Router_1(config-sr-te-policy)# Router_1(config)# segment-routing Router_1(config-sr)# traffic-eng Router_1(config-sr-te)# policy cs-srte-to-node7 Router_1(config-sr-te-policy)# performance-measurement Router_1(config-sr-te-policy-perf-meas)# liveness-detection Router_1(config-sr-te-policy-live-detect)# liveness-profile name profile-WORKING Router_1(config-sr-te-policy-live-detect)# liveness-profile backup name profile-PROTECT Router_1(config-sr-te-policy-live-detect)# exit Router_1(config-sr-te-policy-perf-meas)# exit Router_1(config-sr-te-policy)# Router_1(config)# segment-routing Router_1(config-sr)# traffic-eng Router_1(config-sr-te)# policy cs-srte-to-node7 Router_1(config-sr-te-policy)# candidate-paths Router_1(config-sr-te-policy-path)# preference 100 Router_1(config-sr-te-policy-path-pref)# dynamic Router_1(config-sr-te-pp-info)# pcep Router_1(config-sr-te-path-pcep)# exit Router_1(config-sr-te-pp-info)# metric Router_1(config-sr-te-path-metric)# type te Router_1(config-sr-te-path-metric)# exit Router_1(config-sr-te-pp-info)# exit Router_1(config-sr-te-policy-path-pref)# constraints Router_1(config-sr-te-path-pref-const)# segments Router_1(config-sr-te-path-pref-const-seg)# protection unprotected-only Router_1(config-sr-te-path-pref-const-seg)# adjacency-sid-only Router_1(config-sr-te-path-pref-const-seg)# exit Router_1(config-sr-te-path-pref-const)# disjoint-path group-id 3 type node Router_1(config-sr-te-path-pref-const)# exit Router_1(config-sr-te-policy-path-pref)# bidirectional Router_1(config-sr-te-path-pref-bidir)# co-routed Router_1(config-sr-te-path-pref-bidir)# association-id 1100 Router_1(config-sr-te-path-pref-bidir)# exit Router_1(config-sr-te-policy-path-pref)# exit Router_1(config-sr-te-policy-path)# Router_1(config-sr-te-policy-path)# preference 50 Router_1(config-sr-te-policy-path-pref)# dynamic Router_1(config-sr-te-pp-info)# pcep Router_1(config-sr-te-path-pcep)# exit Router_1(config-sr-te-pp-info)# metric Router_1(config-sr-te-path-metric)# type te Router_1(config-sr-te-path-metric)# exit Router_1(config-sr-te-pp-info)# exit Router_1(config-sr-te-policy-path-pref)# lock duration 30 Router_1(config-sr-te-policy-path-pref)# constraints Router_1(config-sr-te-path-pref-const)# segments Router_1(config-sr-te-path-pref-const-seg)# protection unprotected-only Router_1(config-sr-te-path-pref-const-seg)# adjacency-sid-only Router_1(config-sr-te-path-pref-const-seg)# exit Router_1(config-sr-te-path-pref-const)# disjoint-path group-id 3 type node Router_1(config-sr-te-path-pref-const)# exit Router_1(config-sr-te-policy-path-pref)# bidirectional Router_1(config-sr-te-path-pref-bidir)# co-routed Router_1(config-sr-te-path-pref-bidir)# association-id 1050 Router_1(config-sr-te-path-pref-bidir)# exit Router_1(config-sr-te-policy-path-pref)# exit Router_1(config-sr-te-policy-path)# Router_1(config-sr-te-policy-path)# preference 10 Router_1(config-sr-te-policy-path-pref)# dynamic Router_1(config-sr-te-pp-info)# pcep Router_1(config-sr-te-path-pcep)# exit Router_1(config-sr-te-pp-info)# metric Router_1(config-sr-te-path-metric)# type te Router_1(config-sr-te-path-metric)# exit Router_1(config-sr-te-pp-info)# exit Router_1(config-sr-te-policy-path-pref)# backup-ineligible Router_1(config-sr-te-policy-path-pref)# lock duration 30 Router_1(config-sr-te-policy-path-pref)# constraints Router_1(config-sr-te-path-pref-const)# segments Router_1(config-sr-te-path-pref-const-seg)# protection unprotected-only Router_1(config-sr-te-path-pref-const-seg)# adjacency-sid-only Router_1(config-sr-te-path-pref-const-seg)# exit Router_1(config-sr-te-path-pref-const)# exit Router_1(config-sr-te-policy-path-pref)# bidirectional Router_1(config-sr-te-path-pref-bidir)# co-routed Router_1(config-sr-te-path-pref-bidir)# association-id 1010 Router_1(config-sr-te-path-pref-bidir)# exit Router_1(config-sr-te-policy-path-pref)# exit Router_1(config-sr-te-policy-path)# Router_1# show running-config . . . segment-routing traffic-eng policy cs-srte-to-node7 bandwidth 10000 color 10 end-point ipv4 10.1.1.7 path-protection ! candidate-paths preference 10 dynamic pcep ! metric type te ! ! lock duration 30 ! backup-ineligible ! constraints segments protection unprotected-only adjacency-sid-only ! ! bidirectional co-routed association-id 1010 ! ! preference 50 dynamic pcep ! metric type te ! ! lock duration 30 ! constraints segments protection unprotected-only adjacency-sid-only ! disjoint-path group-id 3 type node ! bidirectional co-routed association-id 1050 ! ! preference 100 dynamic pcep ! metric type te ! ! constraints segments protection unprotected-only adjacency-sid-only ! disjoint-path group-id 3 type node ! bidirectional co-routed association-id 1100 ! ! ! performance-measurement liveness-detection liveness-profile backup name profile-PROTECT liveness-profile name profile-WORKING invalidation-action down ! ! ! ! ! root performance-measurement liveness-profile name profile-PROTECT liveness-detection multiplier 3 ! probe tx-interval 100000 ! ! liveness-profile name profile-WORKING liveness-detection multiplier 3 ! probe tx-interval 30000 ! ! ! Router_1# show segment-routing traffic-eng policy detail SR-TE policy database Color: 10, End-point: 10.1.1.7 Name: srte_c_10_ep_10.1.1.7 Status: Admin: up Operational: up for 00:02:24 (since Nov 30 08:03:36.588) Candidate-paths: Preference: 100 (configuration) (active) Name: cs-srte-to-node7 Requested BSID: 8000 PCC info: Symbolic name: cfg_cs-srte-to-node7_discr_100 PLSP-ID: 2 Constraints: Protection Type: unprotected-only Maximum SID Depth: 8 Adjacency SIDs Only: True Performance-measurement: Reverse-path Label: Not Configured Delay-measurement: Disabled Liveness-detection: Enabled Profile: profile-WORKING Invalidation Action: down Logging: Session State Change: No Statistics: Session Create : 1 Session Update : 12 Session Delete : 4 Session Up : 8 Session Down : 3 Delay Notification: 0 Session Error : 0 Dynamic (pce 192.168.0.5) (valid) Metric Type: TE, Path Accumulated Metric: 10 SID[0]: 24001 [Adjacency-SID, 10.10.10.1 - 10.10.10.2] Reverse path: SID[0]: 24000 [Adjacency-SID, 10.10.10.2 - 10.10.10.1] Protection Information: Role: WORKING Path Lock: Timed Lock Duration: 300(s) Preference: 50 (configuration) (protect) Name: cs-srte-to-node7 Requested BSID: 8000 PCC info: Symbolic name: cfg_cs-srte-to-node7_discr_50 PLSP-ID: 1 Constraints: Protection Type: unprotected-only Maximum SID Depth: 8 Adjacency SIDs Only: True Performance-measurement: Reverse-path Label: Not Configured Delay-measurement: Disabled Liveness-detection: Enabled Profile: profile-PROTECT Invalidation Action: down Logging: Session State Change: No Statistics: Session Create : 0 Session Update : 9 Session Delete : 0 Session Up : 1 Session Down : 0 Delay Notification: 0 Session Error : 0 Dynamic (pce 192.168.0.5) (valid) Metric Type: TE, Path Accumulated Metric: 10 SID[0]: 24002 [Adjacency-SID, 11.11.11.1 - 11.11.11.2] Reverse path: SID[0]: 24003 [Adjacency-SID, 11.11.11.2 - 11.11.11.1] Protection Information: Role: PROTECT Path Lock: Timed Lock Duration: 30(s) Preference: 10 (configuration) (inactive) Name: cs-srte-to-node7 Requested BSID: 8000 Constraints: Protection Type: unprotected-only Maximum SID Depth: 8 Adjacency SIDs Only: True Performance-measurement: Reverse-path Label: Not Configured Delay-measurement: Disabled Liveness-detection: Enabled Profile: working Invalidation Action: down Logging: Session State Change: No Statistics: Session Create : 0 Session Update : 0 Session Delete : 0 Session Up : 0 Session Down : 0 Delay Notification: 0 Session Error : 0 Dynamic (pce) (inactive) Metric Type: TE, Path Accumulated Metric: 0 Protection Information: Role: RESTORE Path Lock: Timed Lock Duration: 30(s) LSPs: LSP[0]: LSP-ID: 3 policy ID: 1 (standby) Local label: 24037 State: Standby programmed state Performance-measurement: Reverse-path Label: Not Configured Delay-measurement: Disabled Liveness-detection: Enabled Profile: profile-WORKING Invalidation Action: down Logging: Session State Change: No Session State: up, for 1d12h (since Nov 30 08:03:37.859) LSP[1]: LSP-ID: 7 policy ID: 1 (active) Local label: 24036 State: Programmed Binding SID: 8000 Performance-measurement: Reverse-path Label: Not Configured Delay-measurement: Disabled Liveness-detection: Enabled Profile: profile-WORKING Invalidation Action: down Logging: Session State Change: No Session State: up, for 05:42:36 (since Dec 1 15:11:36.203) Attributes: Binding SID: 8000 Forward Class: Not Configured Steering labeled-services disabled: no Steering BGP disabled: no IPv6 caps enable: yes Bandwidth Requested: 10000 kbps Bandwidth Current: 10000 kbps Invalidation drop enabled: no Max Install Standby Candidate Paths: 0