To enable Segment Routing Encap object optimization, use the hw-module profile cef sropt enable command in XR Config mode.
hw-module profile cef sropt enable
Syntax Description
This command has no keywords or arguments.
Command Default
Segment Routing Encap object optimization is disabled.
Command Modes
XR Configuration
Command History
Release |
Modification |
Release 7.5.4 |
This command was introduced.
|
Usage Guidelines
After you enter this command, you must reload the router.
Segment Routing Encap object optimization minimizes the Encap resource consumption of the forwarding ASIC. With this feature,
instead of consuming an Encap entry for each outgoing path, the forwarding chain of a labeled prefix with ECMP consumes only
a single global Encap entry.
SR Encap object optimization is triggered only when all ECMP paths of a labeled prefix (primary and backup) perform the same
egress action (either all pop or all swap); and have the same outgoing label for the swap egress action. If this condition
is not met, then the prefix is programmed with a dedicated Encap object per outgoing path.
SR Encap object optimization is supported for both labeled IPv4 /32 (SR-MPLSv4) and labeled IPv6 /128 (SR-MPLSv6).
All paths associated with the prefix (primary and backup) must have the same outgoing label value for SR Encap object optimization
to be triggered. For example:
-
For prefixes with LFA backup paths, the SR Encap object optimization is triggered because these backup paths do not require
an extra label to be pushed.
-
For prefixes with TI-LFA backup paths requiring extra labels to be pushed, the SR Encap object optimization is not triggered
because all the paths associated with the prefix do not have the same outgoing label value.
Per-label per-interface egress counters are not supported when SR Encap object optimization is enabled. Instead, per-label
aggregate egress counters are supported.
SR MicroLoop Avoidance is not supported when SR Encap object optimization is enabled.
Examples
This example shows how to enable Segment Routing Encap object optimization:
Router(config)# hw-module profile cef sropt enable
In order to activate/deactivate SROPT feature, you must manually reload the chassis/all line cards
Router(config)# commit
Router(config)# end
Router# reload location all
Proceed with reload? [confirm] y
Router# show hw-module profile cef
--------------------------------------------------------------
Knob Status Applied Action
--------------------------------------------------------------
CBF Enable Unconfigured N/A None
CBF forward-class-list Unconfigured N/A None
BGPLU Unconfigured N/A None
LPTS ACL Unconfigured N/A None
Dark Bandwidth Unconfigured N/A None
SR-OPT Enable Configured Yes None
IP Redirect Punt Unconfigured N/A None
IPv6 Hop-limit Punt Unconfigured N/A None
MPLS Per Path Stats Unconfigured N/A None
Tunnel TTL Decrement Unconfigured N/A None
High-Scale No-LDP-Over-TE Unconfigured N/A None
Label over TE counters Unconfigured N/A None
Highscale LDPoTE No SRoTE Unconfigured N/A None
LPTS Pifib Entry Counters Unconfigured N/A None