[Idr] Re: draft-jiang-idr-sr-policy-composite-path-03 - Question on precedence of Color setting

linchangwang <linchangwang.04414@h3c.com> Fri, 07 November 2025 18:25 UTC

Return-Path: <linchangwang.04414@h3c.com>
X-Original-To: idr@mail2.ietf.org
Delivered-To: idr@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id C7A898591833 for <idr@mail2.ietf.org>; Fri, 7 Nov 2025 10:25:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -0.497
X-Spam-Level:
X-Spam-Status: No, score=-0.497 tagged_above=-999 required=5 tests=[BAYES_05=-0.5, HTML_MESSAGE=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0mnJPmbNF3bE for <idr@mail2.ietf.org>; Fri, 7 Nov 2025 10:25:30 -0800 (PST)
Received: from h3cspam02-ex.h3c.com (smtp.h3c.com [60.191.123.50]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id A2FF88591801 for <idr@ietf.org>; Fri, 7 Nov 2025 10:25:29 -0800 (PST)
Received: from mail.maildlp.com ([172.25.15.154]) by h3cspam02-ex.h3c.com with ESMTP id 5A7IPGK3058700; Sat, 8 Nov 2025 02:25:16 +0800 (+08) (envelope-from linchangwang.04414@h3c.com)
Received: from DAG6EX09-BJD.srv.huawei-3com.com (unknown [10.153.34.11]) by mail.maildlp.com (Postfix) with ESMTP id 9CC6C20045AA; Sat, 8 Nov 2025 02:32:53 +0800 (CST)
Received: from DAG6EX08-BJD.srv.huawei-3com.com (10.153.34.10) by DAG6EX09-BJD.srv.huawei-3com.com (10.153.34.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.27; Sat, 8 Nov 2025 02:25:06 +0800
Received: from DAG6EX08-BJD.srv.huawei-3com.com ([fe80::5d6c:b52b:478f:2738]) by DAG6EX08-BJD.srv.huawei-3com.com ([fe80::5d6c:b52b:478f:2738%17]) with mapi id 15.02.1258.027; Sat, 8 Nov 2025 02:25:06 +0800
From: linchangwang <linchangwang.04414@h3c.com>
To: Susan Hares <shares@ndzh.com>, idr <idr@ietf.org>
Thread-Topic: draft-jiang-idr-sr-policy-composite-path-03 - Question on precedence of Color setting
Thread-Index: AdxQE8iwOuzRJbg6R+WZJZ3TgpcKaQ==
Date: Fri, 07 Nov 2025 18:25:06 +0000
Message-ID: <7d463d53d84b44f48e27269ce67acb5d@h3c.com>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.142.193.222]
x-sender-location: DAG2
Content-Type: multipart/alternative; boundary="_000_7d463d53d84b44f48e27269ce67acb5dh3ccom_"
MIME-Version: 1.0
X-DNSRBL:
X-SPAM-SOURCE-CHECK: pass
X-MAIL: h3cspam02-ex.h3c.com 5A7IPGK3058700
Message-ID-Hash: IMUUTIVAXSKDU3PH6XDKPCITBTM4EENO
X-Message-ID-Hash: IMUUTIVAXSKDU3PH6XDKPCITBTM4EENO
X-MailFrom: linchangwang.04414@h3c.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-idr.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [Idr] Re: draft-jiang-idr-sr-policy-composite-path-03 - Question on precedence of Color setting
List-Id: Inter-Domain Routing <idr.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/hzmhbnprVBh0KcbRsMBOAX-p1P0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Owner: <mailto:idr-owner@ietf.org>
List-Post: <mailto:idr@ietf.org>
List-Subscribe: <mailto:idr-join@ietf.org>
List-Unsubscribe: <mailto:idr-leave@ietf.org>

Hi Sue,

Thank you for your detailed explanation of the issue. Below is our understanding and clarification regarding the color setting:

Color Extended Community and Tunnel Encapsulation Attribute are at the same level.
The attributes of SR Policy are under Tunnel Encapsulation Attribute.
The color of SR Policy is in NLRI.
The color in Color Extended Community is used to steer traffic to an SR Policy, not to describe SR Policy attributes.
RFC9830 explicitly states that the Color sub-TLV is not used for SR Policy encoding.

For details, refer to RFC9830: https://www.rfc-editor.org/rfc/rfc9830.html#name-introduction and RFC9830: https://www.rfc-editor.org/rfc/rfc9830.html#section-2.3 and https://www.rfc-editor.org/rfc/rfc9830.html#name-color-extended-community



RFC9830: https://www.rfc-editor.org/rfc/rfc9830.html#name-introduction
The Color Extended Community (as defined in [RFC9012<https://www.rfc-editor.org/rfc/rfc9830.html#RFC9012>] is used to steer traffic into an SR Policy, as described in Section 8.8<https://rfc-editor.org/rfc/rfc9256#section-8.8> of [RFC9256<https://www.rfc-editor.org/rfc/rfc9830.html#RFC9256>]
Section 3<https://www.rfc-editor.org/rfc/rfc9830.html#EXTCOLOR> of this document updates [RFC9012<https://www.rfc-editor.org/rfc/rfc9830.html#RFC9012>] with modifications to the format of the Flags field of the Color Extended Community by using the two leftmost bits of that field.


RFC9830:https://www.rfc-editor.org/rfc/rfc9830.html#section-2.3

The Tunnel Egress Endpoint and Color sub-TLVs of the Tunnel Encapsulation Attribute, as defined in [RFC9012<https://www.rfc-editor.org/rfc/rfc9830.html#RFC9012>] are not utilized for SR Policy encodings. Consequently, their values are not relevant within the context of the SR Policy SAFI NLRI.

RFC9830:https://www.rfc-editor.org/rfc/rfc9830.html#name-color-extended-community
The Color Extended Community [RFC9012<https://www.rfc-editor.org/rfc/rfc9830.html#RFC9012>] is used to steer traffic corresponding to BGP routes into an SR Policy with matching Color value.
The Color Extended Community MAY be carried in any BGP UPDATE message whose AFI/SAFI is 1/1 (IPv4 Unicast), 2/1 (IPv6 Unicast), 1/4 (IPv4 Labeled Unicast), 2/4 (IPv6 Labeled Unicast), 1/128 (VPN-IPv4 Labeled Unicast), 2/128 (VPN-IPv6 Labeled Unicast), or 25/70 (Ethernet VPN, usually known as EVPN).


Therefore, the Color Extended Community is unrelated to the encodings of BGP SR Policy.

The draft document draft-jiang-idr-sr-policy-composite-path-03 introduces a Color field under the Tunnel Encapsulation Attribute when the Tunnel Type is set to SR Policy.
This Color field has no association with the Color Extended Community.
The newly added Color field serves to associate sub SR Policies.


Thanks,
Changwang

发件人: Susan Hares <shares@ndzh.com>
发送时间: 2025年11月8日 1:45
收件人: idr <idr@ietf.org>
主题: [Idr] draft-jiang-idr-sr-policy-composite-path-03 - Question on precedence of Color setting


Jeffrey Haas12:04 (chat)- statement
I think this is a broader concern with sr policy as a
mechanism rather than this extension in particular?

Sue’s specific Question:
What is the precedence (and interaction) of possible ways
To specify color in the Tunnel Encapsulation Attribute.

See the different ways you can specify color that could
Impact a segment that is part of a segment list.


References
==============
Way 1: draft-jiang-idr-sr-policy-composite-path-03
defines Constituent SR Policy with Color Sub-TLV in the following manner:

      SR Policy SAFI NLRI: <Distinguisher, Policy-Color, Endpoint>
          Attributes:
              Tunnel Encaps Attribute (23)
                  Tunnel Type: SR Policy
                      Binding SID
                      SRv6 Binding SID
                      Preference
                      Priority
                      Policy Name
                      Policy Candidate Path Name
                      Explicit NULL Label Policy (ENLP)
                      Segment List
                          Weight
                          Segment
                          Segment
                          ...
                      Constituent SR Policy
                          Color
                          Weight
                          Forwarding Class


Way 2: RFC 9012 – Tunnel Encapsulation Attribute carries:

3.4.2.  Color Sub-TLV (Type Code 4)

   The Color sub-TLV MAY be used as a way to "color" the corresponding
   Tunnel TLV.  The Value field of the sub-TLV is eight octets long and
   consists of a Color Extended Community, as defined in Section 4.3.
   For the use of this sub-TLV and extended community, please see
   Section 8.

   The format of the Value field is depicted in Figure 15.

   If the Length field of a Color sub-TLV has a value other than 8, or
   the first two octets of its Value field are not 0x030b, the sub-TLV
   MUST be treated as if it were an unrecognized sub-TLV (see
   Section 13).

Way 3: In addition, RFC9012 defines interactions with the Color Extended Community.

4.3.  Color Extended Community

   The Color Extended Community is a Transitive Opaque Extended
   Community with the encoding shown in Figure 15.

      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     | 0x03 (1 octet)| 0x0b (1 octet)|        Flags (2 octets)       |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                      Color Value (4 octets)                   |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+



-------------------------------------------------------------------------------------------------------------------------------------
本邮件及其附件含有新华三集团的保密信息,仅限于发送给上面地址中列出
的个人或群组。禁止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、
或散发)本邮件中的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本
邮件!
This e-mail and its attachments contain confidential information from New H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!