Segment Routing Configuration Guide, Cisco IOS XE 17 (Cisco ASR 900 Series) - SR-TE On-Demand Next Hop [Cisco ASR 900 Series Aggregation Services 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 ASR 900 Series Aggregation Services Routers Configuration Guides Segment Routing Configuration Guide, Cisco IOS XE 17 (Cisco ASR 900 Series) 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 Feature History Segment Routing Overview Segment Routing Global Block (SRGB) Using Segment Routing with IS-IS Using Segment Routing with OSPF Segment Routing Traffic Engineering SR-TE Per-Flow (Class) ODN and Automated Steering (PCE Delegated) SR-TE On Demand LSP SR-TE On-Demand Next Hop Segment Routing OAM Support Dynamic Path Computation Client Segment Routing uLoop Avoidance EVPN-VPWS Single Homing on Segment Routing Configure Performance Measurement EVPN Single-Homing Over Segment Routing Static Route Traffic Steering Using SR-TE Policy Enabling Segment Routing Flexible Algorithm L2VPN over SR-TE Preferred Path COE-PCE Initiated SR Policy with OSPF and IS-IS SR-TE Autoroute Announce SR-TE PM: Liveness of SR Policy Endpoint EVPN Integrated Routing and Bridging (L2 and L3 Anycast Gateway) and Data Center Interconnect or Border Leaf (Single Homing) Search Find Matches in This Book Save Log in to Save Content Available Languages Download Download Options Book Title Segment Routing Configuration Guide, Cisco IOS XE 17 (Cisco ASR 900 Series) Chapter Title SR-TE On-Demand Next Hop PDF - Complete Book (5.76 MB) PDF - This Chapter (1.36 MB) View with Adobe Reader on a variety of devices Print Results Updated: August 3, 2021 Chapter: SR-TE On-Demand Next Hop Chapter Contents SR-TE On-Demand Next Hop Restrictions for SR-TE On-Demand Next Hop Information About SR-TE On-Demand Next Hop Fast Convergence Default Optimize Default Optimize Values for IS-IS Default Optimize Values for OSPF Fast Convergence Default Optimize Default Optimize Values for IS-IS Default Optimize Values for OSPF SR-TE Policy, Color Extended Community, Affinity Constraint, and Disjointness Constraint SR-TE Policy Command Color Extended Community Affinity Constraint Disjointness Constraint Limitations SR-TE Policy Command Color Extended Community Affinity Constraint Disjointness Constraint Limitations How to Configure Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Configuring Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Configuring Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Verifying Segment Routing On-Demand Next Hop–Layer 3 and Layer 3 VPN Configuring Color Extended Community, Affinity Constraint, and Disjointness Constraint Configuring Color Extended Community Configuring Affinity Constraint Configuring Disjointness Constraint Configuring Color Extended Community Configuring Affinity Constraint Configuring Disjointness Constraint Verifying SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint Troubleshooting the SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint Close SR-TE On-Demand Next Hop When redistributing routing information across domains, provisioning of multi-domain services (Layer 2 VPN and Layer 3 VPN) has its own complexity and scalability issues. Effective Cisco IOS XE Everest 16.6.1, On-Demand Next Hop (ODN) triggers delegation of computation of an end-to-end LSP to a PCE controller including constraints and policies without doing any redistribution. It then installs the reapplied multi-domain LSP for the duration of the service into the local forwarding information base (FIB). Restrictions for SR-TE On-Demand Next Hop Information About SR-TE On-Demand Next Hop SR-TE Policy, Color Extended Community, Affinity Constraint, and Disjointness Constraint How to Configure Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Verifying Segment Routing On-Demand Next Hop–Layer 3 and Layer 3 VPN Configuring Color Extended Community, Affinity Constraint, and Disjointness Constraint Verifying SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint Troubleshooting the SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint Restrictions for SR-TE On-Demand Next Hop ODN anycast SID is not supported. ODN for IPv6 is not supported. SR ODN Tunnel is not supported on BGP NSR. It is only supported on BGP NSF. Information About SR-TE On-Demand Next Hop On-Demand Next hop leverages upon BGP Dynamic SR-TE capabilities and adds the path computation (PCE) ability to find and download the end to end path based on the requirements. ODN triggers an SR-TE auto-tunnel based on the defined BGP policy. As shown in the following figure, an end-to-end path between ToR1 and AC1 can be established from both ends based on low latency or other criteria for VRF (L3VPN) or IPv4 services. The work-flow for ODN is summarized as follows: Figure 1. ODN Operation PCE controller collects topology and SIDs information via BGP Link State (BGP-LS). For more information on BGP-LS, refer BGP Link-State . If NSO controller is enabled, it configures L3VPN VRF or IPv4 prefixes and requests are sent to ToR1 and AC1. ToR1 and AC1 checks if an LSP toward each other exists. If not, a request is sent to the PCE controller to compute that SR-TE path that matches SR-TE policy that is carried through BGP. PCE controller computes the path and replies with a label stack (18001, 18002, 16001, example in ToR1). ToR1 and AC1 create an SR-TE auto-tunnel and reply to the NSO controller indicating that the LSP for VRF or IPv4 is up and operational. Fast Convergence Default Optimize Default Optimize Values for IS-IS Default Optimize Values for OSPF Fast Convergence Default Optimize The fast convergence "default optimize" feature modifies the default settings of all the protocols to recommended defaults for fast convergence. To revert the defaults to pre-fast-convergence settings for both IS-IS and OSPF, routing-default-optimize command is used. This command sends signals to IS-IS and OSPF and modifies the default configuration for these protocols. By default, the fast convergence setting is enabled which means when you upgrade the software, you can automatically see the new behavior. This makes easier integration of the devices in a multivendor deployment and reduces support cases for poor convergence. When default optimize is disabled, existing protocol default configuration is used. When default optimize is enabled, new protocol defaults are used. The show running configurations does not display configuration lines for default settings even when default settings are being used. A configuration of a protocol overrides the default, but a change to default optimize does not override any configuration. The following is the sample output of spf-interval command in IS-IS: If a non-default value is configured, it is displayed in show running configuration output: You can revert to the default values by configuring the default values or by removing the non-default configuration. Default Optimize Values for IS-IS The following table summarizes the configuration impacted by default optimize: IS-IS command Parameters Default optimize disabled Default optimize enabled fast-flood number of LSPs flooded back-to-back Disabled 10 spf-interval Initial (milliseconds) 5500 50 Secondary (milliseconds) 5500 200 Max (seconds) 10 5 prc-interval Initial (milliseconds) 2000 50 Secondary (milliseconds) 5000 200 Max (seconds) 5 5 lsp-gen-interval Initial (milliseconds) 50 50 Secondary (milliseconds) 5000 200 Max (seconds) 5 5 log-adjacency-changes disabled enabled Default Optimize Values for OSPF The following table summarizes the configuration impacted by default optimize for OSPFv2/v3: OSPF command Parameters Default optimize disabled Default optimize enabled timers throttle spf Initial (milliseconds) 5500 50 Secondary (milliseconds) 10000 200 Max (seconds) 10 5 timers throttle lsa all Initial (milliseconds) 0 50 Secondary (milliseconds) 5000 200 Max (seconds) 5 5 timers lsa arrival milliseconds 1000 100 The following is the sample output of show ip ospf command for OSPFv2 with the default-optimize values. The following is the sample output of show ospf command for OSPFv3 with the default-optimize values. SR-TE Policy, Color Extended Community, Affinity Constraint, and Disjointness Constraint Effective Cisco IOS XE Gibraltar 16.11.1, the router supports: MPLS TE new SR-TE policy command— segment-routing traffic-eng Color-extended community Affinity constraints Disjointness constraints SR-TE Policy Command Color Extended Community Affinity Constraint Disjointness Constraint Limitations SR-TE Policy Command Effective Cisco IOS XE Gibraltar 16.11.1, a new command ( segment-routing traffic-eng ) is added to configure the SR policy under segment routing. For information on using this command, see the “ Configuring Color-Extended Community section. Color Extended Community In earlier releases, the router created segment routed Traffic Engineering (SR-TE) tunnels based on a tunnel-profile or attribute set. As part of this functionality, an inbound route-map with a “match community” and “set attribute-set” was added on the ingress node and the route-map matched against communities received in the BGP updates. A BGP update with a matching community would initiate an SR-TE tunnel for the nexthop TE-profile. However, effective Cisco IOS XE Gibraltar 16.11.1, 'color extended' community is now added as follows: An SR-TE policy is created on the ingress router for the Color-Endpoint pair. The egress router adds the 'color extended' community to the BGP updates that require a Traffic-Engineered path. Affinity Constraint Affinity is a 32-bit constraint used by the PCE and PCALC for calculating paths that take the "affinity constraint" into account. Affinity constraints let you assign, or map, color names for path affinities. After mappings are defined, the attributes can be referred to by the corresponding color name in the command. Affinity maps are used to map operator-defined color names to a bit position in the affinity bitmap Supported Affinity constraints are: include-all—indicates that constrained shortest path first (CSPF) includes a link when calculating a path, only if each link administrative group bit has the same name as each affinity bit. include-any—indicates that CSPF includes a link when calculating a path, if at least one link administrative group bit has the same name as an affinity bit. exclude-any—indicates that CSPF excludes a link when calculating a path, if any link administrative group bit has the same name as an affinity bit. Disjointness Constraint Disjointness is used to describe two or more services that must be completely disjoint of each other. Disjointness is useful for providing traffic flow redundancy in the network. Disjointness is controlled by the PCE. The PCE learns of the network topology through an IGP (OSPF or IS-IS) through the BGP-LS protocol and is capable of computing paths based on the IGP or TE metric. The PCE uses the disjoint policy to compute two lists of segments that steer traffic from the source node to thewards destination node along disjoint paths. Disjoint paths can originate from either the same or different head-ends. A "disjoint level" refers to the type of resources that should not be shared by the two computed paths. The PCE supports the following disjoint path computations: Link Node Shared risk link group (SRLG) When the first request is received from Path Computation client (PCC) or an ingress node, with a given disjoint-group ID, a list of segments is computed based on the metric requested, encoding the shortest path from source to destination. When the second request is received with the same disjoint-group ID, based on the information received in both requests, the PCE computes two disjoint paths from the source to the destination. Both paths are computed at the same time. The shortest list of segments is calculated to steer traffic on the computed paths. Limitations On the Cisco ASR 903 routers with RSP3 module, the total stack limit is four labels without recirculation. However, with recirculation, total stack limit is seven labels. The maximum number of SR-TE ODN policies supported is 500. Static SR-TE policy is not supported. From Cisco IOS XE Bengaluru Release 17.5.1, SR-TE policy counters are supported on the Cisco ASR 903 routers with RSP3 module only if the number of transport labels used for SR-TE policy does not exceed two labels. See the Feature History for more information. SR-TE policy goes down only after 60 seconds when the connection to PCEP is disconnected due to any reason. 6PE and 6VPE services are supported only if the number of transport labels used for SR-TE policy does not exceed two labels. How to Configure Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Configuring Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Configuring Segment Routing On-Demand Next Hops—Layer 3 and Layer 3 VPN Perform the following steps to configure on-demand next hop for SR-TE. The following figure is used as a reference to explain the configuration steps. Figure 2. ODN Auto-Tunnel Setup Configure the router (R6 tailend) with VRF interface. Tags VRF prefix with BGP community on R6 (tailend). Enable BGP on R6 (tailend) and R1 (headend) to advertise and receive VRF SR prefix and match on community set on R6 (tailend). Enable route-map or attribute set on headend (R1). Enable PCE and auto-tunnel configurations on R1. Enable all core links with SR-TE configurations and ensure that they are enabled as point-to-point interfaces. Enable R3 (RR) to advertise TED to the PCE server via BGP-LS. Enable PCE server configuration and verify that BGP-LS session is properly established with RR. Note The above show command is run only on the PCE server, for example the Cisco ASR 9000 Series Aggregation Services Routers. Verifying Segment Routing On-Demand Next Hop–Layer 3 and Layer 3 VPN The ODN verifications are based on L3VPN VRF prefixes. Verify that PCEP session between R1 (headend and PCE server) is established. Verify that PCEP session is established between all the peers (PCCs). Note The above show command is run only on the PCE server, for example the Cisco ASR 9000 Series Aggregation Services Routers. 3. Verify that R1 (headend) has no visibility to R6 loopback address. Verify that VRF prefix is injected via MP-BGP in R1 VRF SR routing table. Verify that BGP is associating properly the policy and binding SID with the VRF prefix. Verify binding label association with VRF prefix. Verify that VRF prefix is forwarded via ODN auto-tunnel. Verify ODN auto-tunnel status. Verify ODN auto-tunnel LSP status on R1 (headend). Verify ODN LSP status on the PCE server. Verify detailed LSP information on the PCE server. Shut down the interface that is connected to VRF SR so that the prefix is no longer advertised by MP-BGP. Verify that VRF prefix is no longer advertised to R1 (headend) via R6 (tailend). Verify that no ODN auto-tunnel exists. Configuring Color Extended Community, Affinity Constraint, and Disjointness Constraint Consider the following topology: Configuring Color Extended Community Configuring Affinity Constraint Configuring Disjointness Constraint Configuring Color Extended Community SR-TE Policy Headend Configuration on Node R3 SR-TE Policy Taileend Configuration on Node R9 In the SR-TE ODN color template, to select the metric type, choose either igp or te : Configuring Affinity Constraint Configuring Disjointness Constraint Verifying SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint SR-TE Policy Name: 209.209.209.209|100 To view detailed information about SR-TE Policy 209.209.209.209|100 To check if the Affinity constraint is working, shut down any of the interfaces falling under the Affinity-defined path. If the constraint works, the SR-TE policy goes down instead of taking the another path (if available) to reach to the destination. To check if the disjointness constraint is working, check the SR-TE policy information given by the PCE, which consists of Segment IDs used for the computed path from source to destination. Disjointness constraint works, if the Segment IDs of both the SR-TE policies are different. For example: Note SID[2] of policies 1 and 2 is the same since destination of both the SR-TE policies is the same. To view the SR-TE policy and Affinity constraint in the PCE: To view dispointness between policies 1 and 2: Troubleshooting the SR-TE ODN Color Extended Community, Affinity Constraint, and Disjointness Constraint If SR-TE policy is down, check the status of the SR-TE Policy under the SR-TE policy information Note The possible reasons for the policy being down are: Connection to PCE is down. Max SID depth is exceeded. An interface falling under Affinity-defined path from source to destination has been shut down. To check the SR-TE policy status on the PCE: PCE is aware of the network topology. This information is used for path computation using the following command. This information is also used to determine if nodes and links are present and have the expected attributes (IGP/TE admin weights, SIDs and so on). Further troubleshooting tips: Enable the following debug commands on the PCCs: debug segment-routing traffic-eng path debug segment-routing traffic-eng pcalc debug segment-routing traffic-eng policy debug segment-routing traffic-eng topology debug segment-routing traffic-eng ha debug segment-routing traffic-eng path debug segment-routing traffic-eng pcalc debug segment-routing traffic-eng policy debug segment-routing traffic-eng topology debug segment-routing traffic-eng ha Enable the following debug commands on the PCE: debug pce pcep debug pce cspf debug pce cspf-internal debug pce error debug pce path debug pce pcep debug pce cspf debug pce cspf-internal debug pce error debug pce path Back to Top Back to Top Was this Document Helpful? Yes No [ Feedback](javascript: void(0);) Contact Cisco Open a Support Case (Requires a Cisco Service Contract) Quick Links About Cisco Contact Us Careers Connect with a partner Resources and Legal Feedback Help Terms & Conditions Privacy Cookies / Do not sell or share my personal data Accessibility Trademarks Supply Chain Transparency Newsroom Sitemap © 2026 Cisco Systems, Inc. By continuing to use our website, you acknowledge the use of cookies. Privacy Statement Change Settings Consent Manager Your opt out preference signal is honored. Consent Manager Your Privacy Your Privacy When you visit any website, it may store or retrieve information on your browser, mostly in the form of cookies. This information might be about you, your preferences or your device and is mostly used to make the site work as you expect it to. The information does not usually directly identify you, but it can give you a more personalized web experience. Because we respect your right to privacy, you can choose not to allow some types of cookies. From the list on left, please choose whether this site may use Performance and/or Targeting Cookies. By selecting Strictly Necessary Cookies only, you are requesting Cisco not to sell or share your personal data. Note, blocking some types of cookies may impact your experience on the site and the services we are able to offer. Strictly Necessary Cookies Strictly Necessary Cookies Always Active These cookies are necessary for the website to function and cannot be switched off in our systems. They are usually only set in response to actions made by you which amount to a request for services, such as setting your privacy preferences, logging in or filling in forms. You can set your browser to block or alert you about these cookies, but some parts of the site will not then work. These cookies do not store any personally identifiable information. Cookies Details Performance Cookies Performance Cookies [x] Performance Cookies These cookies provide metrics related to the performance and usability of our site. They are primarily focused on gathering information about how you interact with our site, including: page load times, response times, error messages, and allowing a replay of a visitor's interactions with our site, which enables us to review and analyze visitor behavior, helping to improve site usability and functionality. These cookies also allow us to count visits and traffic sources so we can measure and improve the performance of our site. They help us to know which pages are the most and least popular and see how visitors move around the site. If you do not allow these cookies we will not know when you have visited our site and will not be able to monitor its performance. Cookies Details Targeting Cookies Targeting Cookies [x] Targeting Cookies These cookies may be set through our site by our advertising partners. They may be used by those companies to build a profile of your interests and show you relevant adverts on other sites. They do not store directly personal information, but are based on uniquely identifying your browser and internet device. If you do not allow these cookies, you will experience less targeted advertising. Cookies Details Functional Cookies Functional Cookies [x] Functional Cookies These cookies enable the website to provide enhanced functionality and personalisation. They may be set by us or by third party providers whose services we have added to our pages. If you do not allow these cookies then some or all of these services may not function properly. Cookies Details Cookie List Consent Leg.Interest [-] checkbox label label [-] checkbox label label [-] checkbox label label Clear [-] checkbox label label Apply Cancel Save Settings Allow All Building Preview ...