Segment Routing – IS-IS Flexible Algorithm (Flex-Algo)

IS-IS Flexible Algorithm (Flex-Algo)

In the MPLS-SR lab and the follow-up on Fast Reroute and TI-LFA, every prefix-SID followed the same path: the IGP shortest path. That’s fine until the business asks for something like this:

  • “Voice and trading traffic must take the lowest-latency path, not the cheapest one.”
  • “Customer X may never cross the leased line we rent from a third party.”

The classic answers are RSVP-TE tunnels or SR-TE policies with explicit paths, or a PCE that computes them. Both work, but both add state, operations, and a dependency. Flexible Algorithm solves a large part of this inside the IGP itself. Each router computes extra SPF trees with different constraints, and each tree gets its own prefix-SID. The ingress router chooses a plane just by choosing a label. There are no tunnels, no head-end state, and no controller.

In this post I build a small IS-IS Flex-Algo lab in CML with three planes over the same physical topology.


What is Flex-Algo?

Normal SPF (Algorithm 0) asks one question: what’s the lowest IGP metric path?

Flex-Algo (RFC 9350) lets you define a new algorithm (number 128–255) with three components:

ComponentOptionsExample
Metric typeIGP metric, min. unidirectional link delay, TE metricmetric-type delay
Calculation typeSPF(always SPF today)
Constraintsinclude-any / include-all / exclude-any affinities, SRLG excludeaffinity exclude-any RED

This combination is the Flex-Algo Definition (FAD). Every router that participates in algorithm 128 runs an extra SPF on the topology, after pruning links that violate the constraints, using the selected metric. It then installs a forwarding entry for every algorithm-128 prefix-SID.

The result is that 16006 (algo 0) and 16106 (algo 128) both lead to PE6’s loopback, but they follow different paths, hop by hop, with no state on the head-end.

Algorithm 1 is Strict SPF, not Flex-Algo. It’s the “don’t let any local policy override my SPF path” algorithm.


How it is encoded in IS-IS

This is the part that helps when you troubleshoot with show isis database verbose:

WhatWhere in IS-IS
“I participate in algos 0, 1, 128, 129”SR-Algorithm sub-TLV (19) inside the Router Capability TLV (242)
The definition itself (FAD)FAD sub-TLV (26) inside TLV 242, sent only by routers configured with advertise-definition
Per-algorithm prefix-SIDPrefix-SID sub-TLV (3) with the Algorithm field set to 128/129
Link delayMin. unidirectional link delay (RFC 8570), carried in ASLA sub-TLVs (RFC 8919) with the Flex-Algo application bit
Link affinityExtended Admin Group in ASLA

FAD election: you don’t need to configure the definition everywhere. Routers pick the advertised FAD with the highest priority, then the highest system-ID as a tie-breaker. In this lab, P1 (priority 200) and P2 (priority 150) both advertise the definition, and P2 is the backup if P1 goes away. All other routers only participate.


Lab setup

Logical View: six routers in one IS-IS Level-2 domain (CORE). The link costs are chosen on purpose so that each algorithm picks a different path from PE5 to PE6:

Topology

(more…)

Cisco Live Amsterdam 2026

Cisco Live EMEA 2026 – Amsterdam


Introduction

Cisco Live was an intense and inspiring week filled with deep technical learning and great people. I focused on topics like Design, Certifications, SD-Access, Catalyst Center, AI, security, high availability, Wi-Fi, IPv6, and service provider technologies. Hands-on labs and interactive sessions made the experience practical, not just theoretical. This year I also joined feedback sessions, community events, Meet the Engineer, and interactive breakouts.

Cisco Champions

As a Cisco Champion, I also connected with an amazing community and met engineers from all over the world. The hallway conversations, meetups, and shared experiences were just as valuable as the sessions themselves.
A huge thank you to the Cisco Insider program managers for organizing early access, exclusive sessions, and so many extra activities. Their efforts truly elevated the entire Cisco Live experience and made everything run smoothly for us. Having those additional opportunities provided deeper insights and more meaningful interactions throughout the week. 

 

Impressions 

(more…)

MPLS – Inter-AS MPLS L3VPN Options (A, B, C)

Comparing Inter-AS MPLS L3VPN Options (A, B, C)

When an L3VPN service needs to span across two different service providers, an Inter-AS L3VPN solution is required. This scenario is common for national or international circuits where a single service provider is not present in both locations. The routers connecting the two autonomous systems (AS) are known as Autonomous System Border Routers (ASBRs) or boundary routers. In this article I will go into the three primary options for connecting L3VPNs across autonomous system boundaries: Option A, Option B, and Option C, highlighting their distinct characteristics, operational mechanisms, and suitability for various deployment scenarios.

Inter-AS L3VPN Options: Overview

The following table summarizes the key differences between Inter-AS L3VPN Option A, Option B, and Option C, drawing from design considerations, scalability, security, and operational complexity 
 
Aspect

Option A

(Back-to-Back VRF)


Option B

(VPNv4 between ASBRs)

Option C

(RR-to-RR VPNv4)

Scalability Least scalable Moderate Highest
Security Most secure Lower Lowest
Resource Utilization High (per VRF state on ASBRs) Moderate Low (ASBRs only exchange loopbacks)
Label Handling No MPLS between ASBRs Yes, via BGP (RFC 3107) Yes, via BGP LU + RT exchange
Complexity Simple More complex Very complex
BGP AF IPv4 per VRF VPNv4 VPNv4 (multihop)
Typical Use Case Small deployments, high security Medium scale, simpler than C Large-scale carriers, scalability focus

Inter-AS Option A – Back-to-Back VRF

Topology

Theory

(more…)

SD-Access under the hood; Locator/ID Separation Protocol (LISP)

 

SD-Access under the hood; Locator/ID Separation Protocol (LISP)


When it comes to Cisco’s software-defined access (SD-Access), one of the key technologies working behind the scenes is Locator/ID Separation Protocol (LISP). At first glance, LISP might seem like just another routing protocol, but it plays a much bigger role. It fundamentally changes how network addressing works by decoupling identity from location. This separation is especially important in SD-Access environments, where flexibility, scalability, and mobility are critical.

In this article, I will break down the funadementals of LISP, the core components that make up its architecture, and how it fits into the SD-Access framework. Whether you’re managing campus networks or diving into next-gen network design, understanding LISP is essential to grasp how SD-Access delivers secure, automated, and policy-driven access.

LISP Fundamentals

Logical View;

 

Phyical view;

(more…)

Cisco Live Amsterdam 2025

Cisco Live 2025 Amsterdam

Introduction

Cisco Live has been on my bucket list for a many years. I heard the stories, watched the streams and VODs and wondered what the event would be like in person. This year Routz facilitated the opportunity and together with a couple colleagues I was able to attend Cisco Live EMEA 2025 in Amsterdam.
My focus from a technology perspective was on SD-Access, Catalyst Center, Service Provider Technologies, Segment Routing, Multi-Domain Segmentation and IPv6. 

Cisco Champions

Being part of the Cisco Champions made the experience even better because I was able to meet people from our community in person. I got to talk to Champions from America, Iceland, Azerbaijan, Germany, Sweden and many more countries from all over the world. The Cisco Champions gave us access to behind-the-scenes tours before the event started, whisper sessions on many topics and domains, and feedback session with Bonny Shapira who is charge of planning Cisco Live EMEA.

(more…)

IS-IS Redistribution and Route Summarization

 

Intermediate System to Intermediate System (IS-IS)


Intermediate System to Intermediate System (IS-IS) is a dynamic link-state routing protocol widely used in large-scale networks, especially in service provider environments. In this post I will look at the following IS-IS configurations;

  • Redistribution of OSPF into IS-IS, and the differences between L1 and L2.
  • IS-IS Path selection when L1 and L2 routes are available.
  • How and where to apply IS-IS Route Summarization.

IS-IS Lab Setup


 

Labs download

The CML Lab is available for download here.

1 – Lab IS-IS Route Redistribution and Summarization

Using Cisco’s Modeling Labs (CML) I build the following IS-IS and OSPF topology:

  • 2 x L2 Router ( Top )  (R1, R2) running XRv with IOS-XR.
  • 2 x L1L2 Router ( left ) (R3, R4) running XRv with IOS-XR.
  • 2 x L1 Router ( left ) (R7, R8) running IOS with IOSv.
  • 2 x L1L2 Router ( Center ) (R5, R6) running XRv with IOS-XR.
  • 2 x L1 Router ( Center ) (R9, R10) running IOS with IOSv.
  • 1 x OSPF Router (R11) running IOS with IOSv.

Logical View:

Physical View:

(more…)

IS-IS – Interlevel Routing

 

Intermediate System to Intermediate System (IS-IS)


Intermediate System to Intermediate System (IS-IS) is a dynamic link-state routing protocol widely used in large-scale networks, especially in service provider environments. One of its features is interlevel routing, which allows communication between IS-IS levels (Level 1 and Level 2). This post explains IS-IS interlevel routing and provides configuration examples to implement it in practical scenarios.

IS-IS Lab Setup


 

Labs download

The CML Lab is available for download here.

1 – Lab IS-IS Configuration

Using Cisco’s Modeling Labs (CML) I build the following IS-IS topology:

  • 2 x L2 Router ( Top )  (R1, R2) running XRv with IOS-XR.
  • 2 x L1L2 Router ( left ) (R3, R4) running XRv with IOS-XR.
  • 2 x L1 Router ( left ) (R9, R10) running IOS with IOSv.
  • 2 x L1L2 Router ( Center ) (R5, R6) running XRv with IOS-XR.
  • 2 x L1 Router ( Center ) (R11, R12) running IOS with IOSv.
  • 2 x L1L2 Router ( Right ) (R7, R8) running XRv with IOS-XR.
  • 2 x L1 Router ( Right ) (R13, R14) running IOS with IOSv.

Logical View:

Physical View:

(more…)

CML 2.7 – Getting started with APIs using Postman

Cisco Modeling Labs 2.7

Cisco Modeling Labs (CML) is a powerful, scalable network simulation platform that enables network engineers, IT administrators, and developers to design, build, and test networks in a controlled environment. The latest version, Cisco Modeling Labs 2.7, introduces new features and enhancements, including an improved REST API that enables seamless automation and integration. In this article, we’ll discuss how to get started with CML 2.7 and use Postman to interact with its API for network automation tasks.

CML API Documentation

Log in to Cisco Modeling Labs: Go to the CML web interface, typically accessed via your browser.

Find API Documentation: CML’s built-in documentation is available under Help > API Documentation. This provides detailed information on available API endpoints, request formats, and expected responses.

A new page will open with the documentation:

Here you can find all the information on the available CML API calls that you might need. 

(more…)

MPLS – Fast Reroute (FRR) and TI-LFA

What is Fast Reroute (FRR) in an MPLS network?


In an MPLS network with Segment Routing (SR), ensuring rapid recovery from link or node failures is crucial for maintaining high network availability. Cisco’s IOS-XR supports various Fast Reroute (FRR) mechanisms within MPLS Segment Routing environments, including Link Protection, Node Protection, and Topology Independent Loop-Free Alternate (TI-LFA). This article will provide a configuration guide and explanations for these MPLS-SR FRR mechanisms in an MPLS SR-enabled network running OSPF as the Interior Gateway Protocol (IGP).

What is TI-LFA in an MPLS network?


TI-LFA (Topology-Independent Loop-Free Alternate) is a fast reroute (FRR) mechanism in MPLS Segment Routing (MPLS-SR) designed to provide sub-50ms recovery from link or node failures in IP/MPLS networks. Unlike traditional LFA, which relies on specific topological conditions and may not cover all failure scenarios, TI-LFA is “topology-independent,” meaning it ensures protection for all traffic flows regardless of network topology. TI-LFA works by precomputing backup paths based on Segment Routing (SR) policies, allowing traffic to be quickly rerouted through alternate paths without complex recalculations. In the event of a failure, traffic is redirected via pre-established repair paths that adhere to the shortest path routing principles (SPF), minimizing packet loss and maintaining high availability across the network.

MPLS-SR Lab Setup (Baseline)


 

Labs download

The CML Lab is available for download here.

1 – Lab Pre MPLS-SR config (OSPF, MPLS-SR, Fast ReRoute).

Using Cisco’s Modeling Labs (CML) I build the following MPLS-SR lab using OSPF as the IGP.

  • 2 x PE router ( Left ) (PE5, PE6) running XRv with IOS-XR.
  • 4 x P router ( Center )  (P1, P2, P3, P4) running XRv with IOS-XR.
  • 2 x PE router ( Right ) (PE7, PE8) running IOSv with IOS.

Logical View:

Interfaces:

(more…)

MPLS – Segment Routing (MPLS-SR) Lab

What is MPLS Segment Routing (MPLS-SR)?


In short MPLS Segment Routing (MPLS-SR) is a modern approach to routing in MPLS (Multiprotocol Label Switching) networks. It allows for the efficient steering of traffic through predefined network segments. These segments are advertised by link-state routing protocols (IS-IS, OSPFv2, and OSPFv3) within IGP topologies. With MPLS-SR, path control and traffic engineering can be achieved without the need for protocols like LDP or RSVP-TE, which are typically used to set up traffic-engineered paths in traditional MPLS networks. These segments are stacked as labels in packet headers, allowing routers to follow predefined paths for traffic without this additional state tracking. This simplifies traffic engineering, enhances scalability, and enables efficient routing.

In this lab I will demonstrate the process of migrating from a traditional MPLS setup (using MPLS, OSPF, and LDP) to an MPLS-SR configuration on IOS-XR and IOS-XE. In this guide, you will see the configuration steps required and differences between both operating systems.
Following this, I will configure a Segment Routing Mapping Server (SRMS) to map the prefixes of IOSv routers since they don’t support MPLS-SR.

MPLS Lab Setup (Baseline)


 

Labs download

Two CML Labs are available for download here.

1 – Lab Pre MPLS-SR config (OSPF, MPLS, LDP).
2 – Lab Post MPLS-SR config (MPLS-SR, Prefix-sid-map, OSPF-SR).

Using Cisco’s Modeling Labs (CML) I build the following MPLS lab using OSPF and LDP neighbor relationships. 

  • 2 x PE router ( Left ) (PE5, PE6) running CSR1000v with IOS-XE.
  • 4 x P router ( Center )  (P1, P2, P3, P4) running XRv with IOS-XR.
  • 2 x PE router ( Right ) (PE7, PE8) running IOSv with IOS.

Logical View:

Interfaces:

Firmware:

(more…)