Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

How to Build Your Segment Routing Network


Segment routing (SR) is a source-based routing technique that simplifies traffic engineering (TE) and management across network domains. It removes network state information from transit routers and transit nodes in the network and places the path state information in the packet headers at an ingress node.

The benefits of SR at a high level include better TE capabilities over other TE solutions to simplify network operations, provide better connectivity, interoperability, optimization, scalability, and monitoring.

Want to learn more about SR features and configuration options? Use the information below to help you find the specific information you need. For in-depth coverage of other Junos OS features, see our content in the TechLibrary.

Get Started

If you want to


Learn about the basic concepts and benefits of SR

Learn about basics of SR configuration based on the most important use cases to enable advanced traffic protection

See Day One: Configuring Segment Routing with Junos  

Learn about more advanced use cases for SR in this sequel to the first Day One guide for SR and use some sample configuration files that you can readily deploy on your SR network

Download this zip file that contains the Day One: Inside Segment Routing PDF and the configuration files

Take a look at the SR overview topic in our Junos OS documentation

See Understanding Source-Packet Routing in Networking (SPRING)

Fast Reroute

If you want to


Learn how to configure topology-independent protection for Label Distribution Protocol (LDP) label-switched paths (LSPs) with minimal fail-over time using TI-LFA with SR for IS-IS

Check out Understanding Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS

Learn how to configure topology-independent protection for OSPF

Check out Topology-Independent Loop-Free Alternate with Segment Routing for OSPF


If you want to


Learn how to configure an LDP mapping server to implement interoperability of devices that either support only LDP or SR

See LDP Mapping Server for Interoperability of Segment Routing with LDP Overview

Learn how to tunnel LDP over SR traffic engineering (SR-TE) to provide co-existence of both LDP LSPs and SR-TE LSPs to enable interoperability between LDP and SR-capable devices

See Tunneling LDP over SR-TE

Traffic Engineering

If you want to


Learn how to configure flexible algorithms using only IS-IS as a lightweight SR solution without installing a network controller for TE that can be used in the core of the network

Check out How to Configure Flexible Algorithms in IS-IS for Segment Routing Traffic Engineering

Learn how to configure static and dynamic SR LSPs in an MPLS network

Check out Static Segment Routing Label Switched Path

Learn how to configure an SR policy to enable ingress TE in a BGP network

See Segment Routing Traffic Engineering at BGP Ingress Peer Overview

Learn how to configure SR for LSPs that are externally controlled by a Path Computation Element (PCE)

See Enable Segment Routing for the Path Computation Element Protocol

Learn how to configure dynamic tunnels for egress Provider Edge (PE) devices to avoid configuring static tunnels for each PE individually

See Dynamic Creation of Segment Routing LSPs

Learn how to configure CoS-based forwarding (CBF) and policy-based routing (PBR), also known as filter-based forwarding (FBF) for SR-TE to steer selective traffic using an explicit SR-TE LSP

See Configure CoS-Based Forwarding and Policy-Based Routing for SR-TE LSPs

Learn how to configure PCE-delegated SR LSPs to ensure LSP protection by averting a situation where packets are silently discarded or dropped (also known as a traffic null-route condition)

See PCE-Delegated Segment Routing LSPs


If you want to


Learn how to configure SRv6 network programming if you have a predominantly IPv6 network without MPLS to leverage the benefits of SR

Check out How to Enable SRv6 Network Programming in IS-IS Networks

Resources & Tools

If you want to


Take up introductory training offered by Juniper on SR

Explore the following courses:

Configure and test basic SR features on vMX before configuring them on your network

Use the Juniper vLabs sandbox for SR