- Using OSFP with Segment Routing
- Restrictions for Using Segment Routing with OSPF
- Enabling Segment Routing for OSPF
- Using OSFP Fast Reroute with Segment Routing
- Limitations of TI-LFA on OSPF
- Enabling and Disabling TI-FRR
- Verifying TI-LFA on OSPF
Using Segment Routing with OSPF
Note
Using segment routing with OSPF is similar to using it with IS-IS. Before reading this chapter, see Using Segment Routing with IS-IS.
Segment Routing (SR) is a new paradigm of source routing driven by the IGPs and centered on inserting a list of instructions called segments into each packet. SR forwarding can be instantiated by MPLS or IPv6.
OSPF as an IGP propagates the segment information and may either use it internally (for example, to compute Fast Rerouting repair paths) or hand over the segment information to other clients within the router (for example, TE).
Using OSFP with Segment Routing
To provide a base SR functionality, OSPF interacts with several components:
- Segment Routing Application—It handles IGP and instance-independent global commands as well as manages global resources used by the SR such as, block of static MPLS labels available for SR Node SID MPLS instantiation).
- MPLS Forwarding Infrastructure (MFI)—Supports MPLS forwarding table.
- RIBv4—Supports the IPv4 routing table
Restrictions for Using Segment Routing with OSPF
- Segment routing must be configured at the router level before enabling it at the OSPF instance.
- OSPF instance must successfully register itself with both, Segment Routing Application and MFI and retrieve resources that are necessary for operation, such as SRGB range, dynamically-assigned MPLS labels for Adjacency SIDs, and so on.
- If more than one SR router in the network advertises SID for the same prefix, then the SID values and flags must match. If conflicting attributes are found when calculating the SID for the prefix, then all SIDs for the prefix are ignored.
- Network type point-to-point and broadcast are supported.
Enabling Segment Routing for OSPF
You can enable segment routing for IGPs under the router configuration sub mode, through commands. However, IGP segment routing are enabled only after the global SR is configured.
SR functionality configurable globally, that is outside the context of any particular IGP instance, include:
- Global enabling SR on the router.
- Specifying the range of MPLS label values to be used to instantiate SR SIDs into MPLS dataplane (SRGB block)
- Associating SID index with local prefix
Configuring SR on an OSPF Instance
After SR is enabled globally on the router, it must be enabled in those OSPF instances that need to run SR.
segment-routing [ area N ] { mpls | disable }
This command is accepted only if SR is already enabled globally. If the area keyword is specified then SR is enabled in that area only, otherwise it is enabled in all areas attached to this OSPF instance. The keyword disable can be specified only when the area keyword is also present.
Enabling this command causes OSPF to originate RI LSA, Extended Prefix and Extended Link LSAs. It enables MPLS on all interfaces in area(s) enabled for SR and programs SR MPLS labels for forwarding.
Enabling Advertisement of Mapping Server Prefix Ranges
Global SR configuration may contain prefix-to-SID mapping entries for prefixes that are not local to the router. Each of these entries specify the range of prefixes. Remote mapping entries can be used to find SIDs for prefixes connected to routers that do not supporting SR and hence, are not capable of advertising SIDs themselves. This is part of SR-LDP inter-working functionality.
OSPF learns the ranges configured in the global SR configuration through the SR application and advertises them in the Extended Prefix Range TLVs.
The following command allows an OSPF instance to advertise mapping entries configured in the global SR mode:
[no] segment-routing prefix-sid-map advertise-local
This command is configurable in the router mode. Its default state is disabled, That is, no mapping ranges are advertised by OSPF even if they are configured in the global SR mode.
Disabling Mapping Server Functionality
By default, OSPF considers prefix ranges received from mapping servers in the network when computing SIDs for prefixes. This is the core of SR-LDP inter-working label computation. However, if the SR-LDP feature needs to be disabled, use the following command:
[no] segment-routing prefix-sid-map receive
Default state of this command is enabled. That is, OSPF processes mapping ranges received from mapping servers in the network.
When this command is configured in its non-default form, or the no form, it prohibits OSPF from considering prefix-SID mappings from mapping servers.
Note
This command does not affect processing of 'native' SIDs, that is, those SIDs that are advertised in the Extended Prefix TLVs by routers to whom the prefix is locally connected.
Interface Mode Prefix Attributes Command
Extended Prefix TLV of the Extended Prefix LSA carries flags for the prefix and one of them is N-flag (Node). The N-flag indicates that any traffic sent along to the prefix is destined to the router originating the LSA. This flag typically marks the host routes of the router's loop-back.
By default, OSPF advertises the routes of its loopback with the N-flag. If the IP address of a loopback is not unique (for example, it is part of an anycast address), then OSPF must be configured to not advertise the N-flag with the prefix.
Use the following command to cause OSPF to clear N-flag on all prefixes configured on interface in the interface-mode:
Using OSFP Fast Reroute with Segment Routing
IP Fast Reroute is a set of techniques that allow rerouting IP traffic around a failed link or a failed node in the network within a very short time (< 50ms). One of the techniques to do this is Loop Free Alternates (LFA). Effective with Cisco IOS XE Release 3.18S, OSPF supports per-prefix directly connected LFA and remote LFA (RLFA).
The per-prefix directly connected LFA provides loop-free alternate path for most triangular topologies, but does not provide good coverage for rectangular or circular topologies. However, the RLFA, which uses MPLS forwarding with LDP signaling for tunneling the rerouted traffic to an intermediate node, extends the IPFRR coverage in ring or rectangular topologies. For each link, RLFA defines the P-Space (the set of nodes reachable from the calculating node without crossing the protected link) and Q-Space (the set of nodes that can reach the neighbor on the protected link without crossing the protected link itself). The nodes that belong to both P- and Q-Spaces are called PQ nodes and can be used as the intermediate nodes for the protected traffic. However, for topologies where the P- and Q-Spaces are completely disjoint, there is still no coverage by RLFA.
Topology Independent Fast st Reroute (TI-FRR) is a technique that uses Segment Routing to provide link protection in any topology, assuming the metric on the links in the topology is symmetrical. Even TI-LFA does not guarantee a backup in cases where the bandwidth on a single link is asymmetrical. TI-LFA only considers loop-free paths that are on the post-convergence path that helps you to better plan the capacity of the network.
Segment Routing allows creating a full explicit path through the network, but using such a fully specified path is not scalable in larger topologies due to the number of segments along the path. Specifying the whole path is, however, not necessary, and only a subset of the path is needed to carry the traffic to an intermediate node (release node) which does not loop the traffic back to the protecting node. When the release node is one of the neighbors of S (source or sender node), then we have a directly connected TI-LFA.
Effective with Cisco IOS XE Release 3.18S, an SR Tunnel is constructed to the release node (if remote) and used as the TI- LFA. The tunnel is constructed by explicitly forwarding through a set of one or more repair nodes. The tunnel is created using a SID stack consisting of one SID (Node SID or Adjacency SID) for every repair node and the corresponding label stack is pushed to the protected traffic.
Per Instance Enablement
- TI-LFA can be enabled on a per interface basis. One interface could be configured for LFA, another interface for LFA and RLFA, yet another interface for LFA and TI-LFA and another interface for LFA, RLFA, and TI-LFA.
- TI --LFA backup path is calculated only if TI-LFA protection is enabled on the output interface of the primary path.
- TI- LFA protection is not available for virtual links, sham links, and TE tunnels.
- Backup paths do not use virtual links, sham links, and TE tunnels.
Limitations of TI-LFA on OSPF
- TI-LFA is supported only on OSPFv2.
- TI-LFA only computes TI-LFA candidates that have been found based on a post-convergence path excluding the primary link, That is, TI-LFA only provides link protection. Node protection or SRLG protection is not supported.
- TI-LFA is calculated only if D and repair nodes (P, Q, PQ, or other) in the post-convergence path are segment routing capable. S does not need to be SR capable.
- TI-LFA is calculated only if Repair Nodes (P, Q, PQ, or other) in the post-convergence path have node SID. A node SID can be directed connected or one advertised by Mapping Server (SRMS).
- TI-LFA is restricted to a maximum of two or three segment tunnels, which may be lesser than the maximum labels that can be pushed by the router.
- When S is not SR capable, TI-LFA calculates a 0 or 1 segment LFA along the post-convergence path. The 1-segment LFA uses the LDP label to reach the PQ node in the post-convergence path.
- TI-LFA does not compute backup for virtual link, sham link, or TE tunnel path.
- TI-LFA does not use virtual link, sham link or TE tunnel as backup path.
- TI-LFA does not provide adjacency protection. It only protects prefixes. SR TE may provide protection for adjacency segments. Packets arriving with active adjacency segment do not have TI-LFA protection.
- TI-LFA is calculated only for prefixes having SR prefix SID or node SID.
- TI-LFA does not support Multi Topology Routing (MTR). LFA is calculated only for MTID zero.
Enabling and Disabling TI-FRR
TI-LFA can be enabled on interface, area, and process scopes. By default, TI-LFA is disabled globally.
TI-LFA can be enabled using following commands.
fast-reroute per-prefix ti-lfa
However, when TI-LFA is enabled globally, you have the option to disable it per area level, using following command:.
[no] fast-reroute per-prefix ti-lfa [area area disable]
This command is accepted even if Segment-Routing is not enabled on the OSF instance or area. In this case, a TI-LFA backup path is created if the post-convergence path has a PQ node with an LDP label to reach it. That is, RLFA through a post-convergence path.
- fast-reroute per-prefix ti-lfa [ area area disable ]
- fast-reroute per-prefix enable [ area area ] prefix-priority { high | low }
- fast-reroute per-prefix remote-lfa [ area area ] maximum-cost cost
- fast-reroute per-prefix remote-lfa [ area area ] tunnel mpls-ldp
- fast-reroute per-prefix remote-lfa [ area area ] tunnel mpls-ldp
- fast-reroute per-prefix tie-break attribute [ required ] index index
Verifying TI-LFA on OSPF
The following show command displays the details about TI-LFA configuration:
show ip ospf fast-reroute ti-lfa
Verifying the Configuration of SR on OSPF
- The following show command displays information about the new LSAs, such as router information, Extended Prefix and Extended Link LSAs:
show ip ospf database opaque-area type ext-limit
show ip ospf database opaque-area type ext-prefix
show ip ospf database opaque-area type router-information
- The following show command displays the interface output, but only if segment routing auto-enabled MPLS forwarding on the interface and SIDs were allocated to that interface
–
Per-instance state of the feature—whether enabled or disabled, whether operational or not
–
Registration status of OSPF with the SR application and MFI
show ip ospf [ AS ] segment-routing
- The following show command displays information about the SID database for one or for all SIDs. The output displays all prefixes that were advertised with a given SID and highlights which prefixes are local to the router.
Note
In the absence of a mis-configuration, there is only one prefix reported for each SID value.
show ip ospf [ AS ] segment-routing sid-database [ SID ]
- The following show command displays the database of local prefixes along with their SID values and flags.
Note
This show command provides information only about locally-configured prefixes. Information about prefixes received from other routers is available either through LSDB (show ip ospf database opaque-area) or LRIB (show ip ospf rib local) show commands.
show ip ospf [ AS ] segment-routing local-prefix
Troubleshooting Segment Routing on OSPF
Additional References
Standards
|
|
|
|---|---|
MIBs
|
|
|
|---|---|
To locate and download MIBs for selected platforms, Cisco software releases, and feature sets, use Cisco MIB Locator found at the following URL: |
RFCs
|
|
|
|---|---|
Feedback