BGP SR Policy
Extensions for metricHuaweiHuawei Bld., No.156 Beiqing Rd.Beijing100095Chinazhangka@huawei.comHuaweiHuawei Bld., No.156 Beiqing Rd.Beijing100095Chinadongjie@huawei.comSR Policy candidate paths can be represented in BGP UPDATE messages. BGP can then be
used to propagate the SR Policy candidate paths to the headend nodes in the network.
After SR Policy is installed on the ingress node, the packets can be steered into SR
Policy through route selection. Therefore, route selection may be performed on the
ingress node of the SR Policy. If there are multiple routes to the same destination,
the route selection node can select routes based on the local policy. The local policy
may use the IGP metric of the selected path, which is the IGP Metric of the SR Policy.
Thus the BGP UPDATE message need carry the metric of each segment list of the SR Policy
Candidate Path, which can be used in path selection of routing. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
"SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this
document are to be interpreted as described in BCP 14 when, and only when, they
appear in all capitals, as shown here.defines SR Policy and Tunnel Encapsulation Attributes.
It defines the segment list of the SR policies. Each segment list of an SR Policy is an segment routing path,
which may be calculated by path compuation element and delivered to the head node of the device by BGP Update Message.
On the ingress node, when steer traffic to an SR Policy, the ingress node may need to select between multiple SR Policy paths.
And the selection policy may need the path metric information.
Therefore, BGP needs to carry the metric of each path when delivering the semgnet list of the SR Policy through Update messages
to facilitate route selection on the device.The following terminology is used in this document.SR Policy: An ordered list of segments.Candidate Path: the unit for signaling of an SR Policy to a headend
via protocol extensions like Path Computation Element (PCE)
Communication Protocol (PCEP) or BGP SR Policy .SRPM: SR Policy Module.In route selection scenarios, the metric of the SR Policy segment list may be required.The specific scenarios are as follows: On PE1, the route prefix to CE1 has two diffierent next hop, PE2 and PE3.
The next hop to PE1 uses an SR Policy1 on PE1, the endpoint of SR Policy1 is PE2. The next hop
to PE2 uses an SR Policy2 on PE1, the endpoint of SR Policy2 is PE3. The prefix to CE1 want
to choose a next hop based on the IGP metric of the route PE1 to PE2 and PE1 and PE3, which uses
SR Policy1 and SR Policy2. Thus need the IGP metric of SR Policy semgent list on PE1.As the metric is defined, the tunnel attribute encapsulation of
the BGP SR Policy needs to be updated.The SR Policy Encoding structure is as follows:SR Policy SAFI NLRI: <Distinguisher, Policy-Color,
Endpoint>Where metric indicates the metric for the segment list.A new sub-TLV called Metric sub-TLV is defined. Metric
sub-TLV specifies the metric of an SR policy segment list. Each
sub-TLV is encoded as shown in Figure 1.Type: Metric, 1 octet, TBD.Length: 6.Metric Type: 1 octet. The Type of metric, can be IGP metric, TE metric, delay, ect.Flags: 1 octet of flags. None are defined at this stage. Flags
SHOULD be set to zero on transmission and MUST be ignored on
receipt.Metric Value: a 4-octet value.When SR Policy headend get the SR Policy segment list with metric, how to
process the metric is local policy.The active candidate path of SR Policy may have several segment lists, each
segment list have different metric. It is recommended that the segment lists in
one candidate path have the same metric type. If the metric value of segment lists
in one candidate path is different, the candidate path metric can use the minimum value as the metric of
candidate path. And the SR Policy metric use the metric value of active candidate path.TBD.This document requests that IANA allocates a new sub-TLV type as
defined in Section 4.1 from the "Sub-TLVs for SR Policy" registry as
specified.These extensions to BGP SR Policy do not add any new security issues
to the existing protocol.