Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Example: Configuring Anycast and Prefix Segments in SPRING for IS-IS to Increase Network Speed

This example shows how to configure prefix segments, segment-routing global blocks (SRGBs), adjacency segments hold time, and explicit null flag for prefix segments in source packet routing in networking (SPRING) or segment routing (SR).This configuration helps in simplifying the network thereby increasing the speed of the network.

Requirements

This example uses the following hardware and software components:

  • Eight MX Series routers.

  • Junos OS Release 17.2 or later running on all devices.

Before you configure prefix segments in SPRING, be sure you configure routing and signaling protocols.

Overview

In Junos OS Release 17.2 or later, you can provide prefix segment identifier (SID) and node SID to prefixes that are advertised in IS-IS by configuring policies. Prefix segment index is the index assigned to a specific prefix. This is used by all other remote routers in the network to index the prefix into respective segment-routing global blocks (SRGBs) to derive the segment identifier and to forward the traffic destined for this prefix. The prefix SID supports both IPv4 and IPv6 prefixes. An IGP anycast segment is an IGP prefix segment that identifies a set of routers. An anycast segment or anycast SID enforces forwarding based on the equal-cost multipath-aware shortest-path towards the closest node of the anycast set. Within an anycast group, all the routers advertise the same prefix with the same SID value. The IS-IS protocol creates adjacency segments per adjacency, level, and address family (one each for IPv4 and IPv6).

Topology

Figure 1 shows SRGBs, prefix segments, and adjacency hold time configured in SPRING on routers R0 to R7.

Configuration

CLI Quick Configuration

To quickly configure this example, copy the following commands, paste them into a text file, remove any line breaks, change any details necessary to match your network configuration, copy and paste the commands into the CLI at the [edit] hierarchy level, and then enter commit from configuration mode.

Note:

This topology demonstrates IPv4 prefixes. The same is applicable for IPv6 prefixes.

R0

R1

R2

R3

R4

R5

R6

R7

Configuring Router R4

Step-by-Step Procedure

The following example requires that you navigate various levels in the configuration hierarchy. For information about navigating the CLI, see Using the CLI Editor in Configuration Mode in the Junos OS CLI User Guide.

To configure Router R4:

Note:

Repeat this procedure for every router in the SPRING domain, after modifying the appropriate interface names, addresses, and any other parameters for each router.

  1. Configure enhanced IP mode on the MX Series router because the SRGB functionality is supported on routers with MPCs and MIC interfaces only. A system reboot is required after you commit this configuration.

  2. Configure the interfaces.

  3. Configure the router ID for a routing option.

  4. Configure the export policy for the forwarding table.

  5. Enable RSVP link protection on the all interfaces.

  6. Configure the MPLS interface.

  7. Configure the export policy for the IS-IS protocol.

  8. Configure backup shortest-path-first options to calculate remote loop-free alternate (LFA) backup next hops and to use SPRING routed paths for protection for the IS-IS protocol.

  9. Configure adjacency segment hold time in SPRING for the IS-IS protocol.

  10. Configure the start label and index range for segment routing global blocks (SRGBs) in SPRING for the IS-IS protocol.

  11. Configure explicit null in SPRING for the IS-IS protocol.

  12. Configure the interfaces to protect from both link and node faults.

  13. Disable the management interface and configure the loopback address as passive for the IS-IS protocol.

  14. Configure per packet load balancing for the routing policy.

  15. Configure the route filter for the routing policy term.

  16. Configure the index and node segment of the prefix segment for the routing policy term.

Results

From configuration mode, confirm your configuration by entering the show chassis, show interfaces, show protocols, show policy-options, and show routing-options commands. If the output does not display the intended configuration, repeat the instructions in this example to correct the configuration.

Verification

Confirm that the configuration is working properly.

Verifying the IS-IS Adjacency Routes

Purpose

Verify the adjacency of Router R4.

Action

From operational mode, enter the show isis adjacency detail command.

Meaning

The output shows the IS-IS adjacency details of Router R4 with Router R0 and R5.

Verifying the IS-IS Overview Information

Purpose

Verify the IS-IS overview information of Router R4.

Action

From operational mode, enter the show isis overview command.

Meaning

The output displays the IS-IS overview information of the routing instance along with the SPRING details of Router R4.

Verifying the Segment Routing Route Entries for the IS-IS Protocol

Purpose

Verify the segment routing route entries of the routing table inet.3 for the IS-IS protocol.

Action

From operational mode, enter the show route table inet.3 protocol isis command.

Meaning

The output shows the segment routing routes of routing table inet.3 for the IS-IS protocol.

Verifying the MPLS Segment Routing Route Entries for the IS-IS Protocol

Purpose

Verify the MPLS segment routing route entries for the IS-IS protocol.

Action

From operational mode, enter the show route table mpls.0 protocol isis command.

Meaning

The output shows the MPLS segment routing route entries for protocol IS-IS.