source-packet-routing (Segment Routing Traffic Engineering)
Syntax
source-packet-routing {
inherit-label-nexthops;
lsp-external-controller name;
maximum-segment-list-depth maximum-segment-list-depth
maximum-srv6-te-segment-list-depth maximum-srv6-segment-list-depth;
preference preference;
preserve-nexthop-hierarchy;
retry-timer seconds;
sbfd-frr;
segment-list;
source-routing-path name;
sr-preference sr-preference;
sr-preference-override sr-preference-override;
telemetry;
srv6;
traceoptions;
traffic-engineering (SR-TE import policy)
tunnel-tracking;
}
Hierarchy Level
[edit logical-systems name protocols], [edit protocols]
Description
Enabling tracing can adversely impact scale and performance and may increase security risk. We strongly recommend using the trace, tracing, or traceoptions commands only under the guidance of a JTAC support engineer. After collecting the debug information, immediately disable tracing to minimize risk and restore normal system performance.
Enable Source Packet Routing in Networking (SPRING) or segment routing for traffic engineering packets for protocols that support segment routing. For example, you can configure segment routing capability for a BGP address family to steer traffic according to network requirements.
To enable segment routing traffic engineering for a BGP family, configure
segment-routing-te at the [edit protocols bgp family
inet|inet6] and [edit protocols bgp group group-name neighbor
neighborfamily inet|inet6] hierarchy levels.
Also, configure sr-preference-override at the [edit
protocols bgp family inet|inet6 source-packet-routing] hierarchy level.
This allows BGP to support segment routing policies and to steer traffic based on
the segment list.
sr-preference-override is not applicable for static SR-TE SRv6
LSPs.
A policy action color:
color-mode:color-value is
configured at the [edit policy-options community
namemembers] hierarchy level to categorize segment
routing traffic. The color value is attached to BGP communities when exporting
prefixes from inet-unicast and inet6-unicast address families, which associates a
BGP community with a segment routing policy path definition.
Options
| inherit-label-nexthops |
Inherit label next hops for first hop in all the segment lists. When the For dynamic non-colored static LSPs, that is the PCEP-driven segment
routing LSPs, the |
| lsp-external-controller name |
Specify an external path computing entity, typically the network controller. |
| maximum-segment-list-depth |
Specify a maximum segment list depth for segment routing traffic engineering policies.
|
| maximum-srv6-segment-list-depth |
Specify a maximum srv6 segment list depth for segment routing traffic engineering policies.
|
When no-reduced-srh is configured under the [edit
routing-options source-packet-routing srv6] hierarchy level, ensure
that the segment-list has a maximum of 5 SIDs, else configure
maximum-srv6-segment-list-depth to have a commit
constraint.
| preference |
Route preference for segment routing traffic engineering routes. |
| retry-timer |
Number of seconds to wait before trying to reconnect to the auto-translate service if the previous attempt failed. Connections may fail if there is no link, or node, for a given IP address, or if the link or node does not have a SID.
|
| sbfd-frr |
Enable seamless BFD (S-BFD) fast re-route (FRR), a feature designed to enhance the resilience of SR-TE tunnels by monitoring end-to-end paths and initiating local repair mechanisms when failures are detected, rerouting traffic to alternate paths to minimize disruption. |
| sr-preference |
Specify a preference for static segment routing policies. BGP chooses a segment routing policy with a higher value over policies with lower values.
|
| sr-preference-override |
Specify a preference override for static segment routing policies that BGP uses to select a segment routing policy. BGP chooses a policy with a higher value over policies with lower values.
|
| traffic-engineering |
Enable import of all Spring-TE policies into TED |
| tunnel-tracking |
When the |
| srv6 | Specify SRv6 support for SR-TE policies. Enable the srv6
option to enable the SRv6 data plane support for statically configured SR-TE
policies. |
| preserve-nexthop-hierarchy | Specify preserve nexthop hierarchy support for SR-TE routes. |
The remaining statements are explained separately. Search for a statement in CLI Explorer or click a linked statement in the Syntax section for details.
Required Privilege Level
routing—To view this statement in the configuration.
routing-control—To add this statement to the configuration.
Release Information
Statement introduced in Junos OS Release 17.4R1 for the MX Series and PTX Series with FPC-PTX-P1-A.
telemetry option introduced in Junos OS Release 18.3R1 for the MX
Series and PTX Series with FPC-PTX-P1-A.
inherit-label-nexthops and retry-timer statements
introduced in Junos OS Release 19.1R1 on MX Series routers.
tunnel-tracking option introduced in Junos OS Release 21.2R1.
srv6 option introduced in Junos OS Release 21.3R1.