Re: [Idr] WG adoption of draft-zzhang-idr-tunnel-encapsulation-label-stack-01 - 12/23/2022 to 1/13/2023

Robert Raszuk <robert@raszuk.net> Fri, 30 December 2022 10:19 UTC

Return-Path: <robert@raszuk.net>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3D731C14CF14 for <idr@ietfa.amsl.com>; Fri, 30 Dec 2022 02:19:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.096
X-Spam-Level:
X-Spam-Status: No, score=-2.096 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=raszuk.net
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qNJ1HVFfVo2N for <idr@ietfa.amsl.com>; Fri, 30 Dec 2022 02:19:33 -0800 (PST)
Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 46A63C14F606 for <idr@ietf.org>; Fri, 30 Dec 2022 02:19:32 -0800 (PST)
Received: by mail-wm1-x331.google.com with SMTP id fm16-20020a05600c0c1000b003d96fb976efso12839602wmb.3 for <idr@ietf.org>; Fri, 30 Dec 2022 02:19:32 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=raszuk.net; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=JwnZV6bjyl45NsYEcMA8Clg7O3kTPQG3m6QQTdOm1XA=; b=Fhg6VVDVD/ioBS7HKNARu/pSMcO9leLy4nHGyzIvgQinaCo0PfKy2tvrmbIc2Dbk6z ofY/pvR/G8MYfwGPcwemzKDnXWCwvR3JtxtaKRAGJl1cAhAWmBax0AvJ1W+VAEn8ovru TdQdIK4FooF4yx8DK5D3DHqkpTNzoxze9ORHrebC8EfjfZVgUISMy8FzfkjOOruuTuQr gHAOF8aX1lw15upUm3FoeFsgtkv+gJliV3q/HgAPAnrdv3vRZpxwj6fbTh2itzLnxfkq MMc3ETqgZK8mw5YGRHIQ+in6Nglx0Ba3FCbbmLhmMei5jClE7IFnUtAjUctfZU3UH4GR vzvg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=JwnZV6bjyl45NsYEcMA8Clg7O3kTPQG3m6QQTdOm1XA=; b=eoBKH75ReEW9aq2BR0+wFzqolnqWvxJ5fjxroujhVRck4Sv3O7sHGyWVuakvzv6ovN LpuolGZ+27krZHtNv7NU3s7fiRcI6yDmytLhGDGmnLc5iZddpu91W/eCvZNllphvWYlI j6PMGPremwPazShUjj6x+TcPZ++91Wh7XfZS66VuEMGPTrsj/gLVlrHPq6Cqai3K98UJ yUoGSBC6R2AM5VmM2lC7qOH0eR0AhaF3fCeU41frdort+g8OLUXuiTgpbHr8iPjDxBbG /1Mhu8YRPelKd/VszStGBCQz5vjt8Uvf80Y67HvBHr57o54rOqzUs5M9EPAir1TWj1KP N9ew==
X-Gm-Message-State: AFqh2kreb5nRBavK4aAyiRIbhymftvj2TAMC6WGgmV+HfrsEFg8jRPX1 Mw/VGvAp0fW1TFd2XXP0mLNEUT9i2s7VA+4AibVUyBinBzYxCAPh
X-Google-Smtp-Source: AMrXdXvMfjRXtsk1zXJK1TpKer2Vts7O3F+VrLdM4jydy5P6LgSuckRk/d0inpIitLNnIvc8y1xH7LI4mD9+0oNDVAU=
X-Received: by 2002:a7b:cd91:0:b0:3d3:5315:8de with SMTP id y17-20020a7bcd91000000b003d3531508demr2365501wmj.50.1672395571428; Fri, 30 Dec 2022 02:19:31 -0800 (PST)
MIME-Version: 1.0
References: <BYAPR08MB4872B6B3A9AE7B008463795DB3E99@BYAPR08MB4872.namprd08.prod.outlook.com> <CAOj+MMGkimvyy3kA36Pn=VzbdTB8ZHDeEhzArsFEVE3P8W2Mug@mail.gmail.com> <BL0PR05MB565243B34F92752FA6E8B397D4ED9@BL0PR05MB5652.namprd05.prod.outlook.com> <CAOj+MMEbjJaFc-arh4ujfSEtnpACwvN2uofKafO6oWUx3-O_BA@mail.gmail.com> <BL0PR05MB5652CB8141DF3A1CD9FF1A9BD4F29@BL0PR05MB5652.namprd05.prod.outlook.com> <CAOj+MMFSP2oThW4C9GezQYK-eU_qRSfNVk+RPib8_spmtWmSzQ@mail.gmail.com> <BL0PR05MB5652D4B1E085D764C57B19E5D4F29@BL0PR05MB5652.namprd05.prod.outlook.com> <CAOj+MMFWVrvtF=f+sx+Y6pMUJQL_5MYKPiXXRRcG0WWM05JAjA@mail.gmail.com> <BL0PR05MB56528E59C23486437034818BD4F39@BL0PR05MB5652.namprd05.prod.outlook.com> <CAOj+MMG46bQsHFmDJmoc2+CMTCrA6yYV=gMzdSUxe48gB6=StQ@mail.gmail.com> <BL0PR05MB56521C1B92778F7D27A9BA41D4F39@BL0PR05MB5652.namprd05.prod.outlook.com> <CAOj+MMGwrUGJOvJ39AoUrjSimYES=O2mHmpaQyN5sj8VV-QwVw@mail.gmail.com> <BL0PR05MB56524EC954218FBDE2622040D4F09@BL0PR05MB5652.namprd05.prod.outlook.com>
In-Reply-To: <BL0PR05MB56524EC954218FBDE2622040D4F09@BL0PR05MB5652.namprd05.prod.outlook.com>
From: Robert Raszuk <robert@raszuk.net>
Date: Fri, 30 Dec 2022 11:19:20 +0100
Message-ID: <CAOj+MMEDHJNX5U7tgq3pLr0=FJ9DHzJo_q6_g5qQ4_+ZfgSzwg@mail.gmail.com>
To: "Jeffrey (Zhaohui) Zhang" <zzhang@juniper.net>
Cc: Susan Hares <shares@ndzh.com>, "idr@ietf.org" <idr@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f5968f05f108ef33"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/5KsOXcDy0D-jB5xCwLTgsyE4ZK0>
Subject: Re: [Idr] WG adoption of draft-zzhang-idr-tunnel-encapsulation-label-stack-01 - 12/23/2022 to 1/13/2023
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 30 Dec 2022 10:19:37 -0000

Hi Jeffrey,

Zzh6> It is not fit for encoding explicit path for a tunnel in a TEA that
is attached
> to a unicast prefix or a multicast tree route signaled from a controller.

Actually it is precisely what authors
of draft-ietf-idr-segment-routing-te-policy considers to be a fit.

You are now mixing "SR Policy" with "SR Policy Color" :)

Take a look at section 2.4.4.2.1.  Segment Type A - it is exactly what you
are proposing as new sub-TLV for TEA:

draft-ietf-idr-segment-routing-te-policy:

   The Type A Segment Sub-TLV encodes a single SR-MPLS SID.  The format
   is as follows and is used to encode MPLS Label fields as specified in
   [RFC3032] [RFC5462].:

    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
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |     Type      |   Length      |     Flags     |   RESERVED    |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |          Label                        | TC  |S|       TTL     |
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Your draft:

  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
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |     Type      |   Length      |     Flags     |   RESERVED    |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
 |          Label                        | TC  |S|       TTL     |
 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

It is clear that this is not efficient on-the-wire encoding format, and it
involves additional encoding/decoding processing.

In fact if you look at section 2.2
of draft-ietf-idr-segment-routing-te-policy you will find exactly the
solution to your use case by encoding SR Policy Candidate Path in TEA.

2.2.  SR Policy and Tunnel Encapsulation Attribute

   The content of the SR Policy Candidate Path is encoded in the Tunnel
   Encapsulation Attribute defined in [RFC9012] using a Tunnel-Type
   called SR Policy Type with codepoint 15.  The use of SR Policy
   Tunnel-type is applicable only for the AFI/SAFI pairs of (1/73,
   2/73).

   The SR Policy Encoding structure is as follows:

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

   Figure 2: SR Policy Encoding

That is why in my first mail I asked if you are trying to do SR-MPLS-LIGHT
here essentially overwriting draft-ietf-idr-segment-routing-te-policy
proposal.

Many thx,
R.



On Fri, Dec 30, 2022 at 3:02 AM Jeffrey (Zhaohui) Zhang <zzhang@juniper.net>
wrote:

> Please see zzh6> below.
>
>
>
>
>
> Juniper Business Use Only
>
> *From:* Robert Raszuk <robert@raszuk.net>
> *Sent:* Thursday, December 29, 2022 5:10 PM
> *To:* Jeffrey (Zhaohui) Zhang <zzhang@juniper.net>
> *Cc:* Susan Hares <shares@ndzh.com>; idr@ietf.org
> *Subject:* Re: [Idr] WG adoption of
> draft-zzhang-idr-tunnel-encapsulation-label-stack-01 - 12/23/2022 to
> 1/13/2023
>
>
>
> *[External Email. Be cautious of content]*
>
>
>
> Hi Jeffrey,
>
>
>
> Zzh5> It’s “outside the scope” of RFC9012, not that TEAs are **prohibited**
> with other AFI/SAFI.
>
>
>
> What I should say was prohibited without a new spec extending the use of
> TEA to other AFI/SAFIs. To the best of my reading the subject draft does
> not extend use of TEA to other AFI/SAFIs.
>
>
>
> Zzh6> The subject draft is only defining a new label stack sub-TLV for the
> purpose of steering traffic to the tunnel endpoint in a TEA that could
> attached to the routes of the AFI/SAFIs in RFC9012 itself. As you say, the
> subject draft does not extend use of TEA to other AFI/SAFIs. What’s wrong
> with that?
>
> Zzh6> The same could be used for multicast tree routes as well. That is
> indeed for a different AFI/SAFI, and there is another draft for that. That
> draft is not the subject draft here, but what’s wrong with that?
>
>
>
> Zzh5> That draft is about signaling **policy** - a totally different use
> case. What this draft does is to allow, for a particular tunnel in a TEA,
> the steering of traffic to the tunnel endpoint.
>
>
>
> Sorry but SR policy is exactly for steering traffic to the tunnel
> endpoint. Yes the name "policy" is chosen very poorly as it does not
> reflect what most of us understand by "policy" but it is what it is.
>
>
>
> Zzh6> Policy is indeed a poor name to me as well. An SR policy is another
> name for a named tunnel that may have different candidate paths, and that
> draft is for a controller to signal that policy to the root, with the
> tunnel endpoint/color and candidate path encoded in the NLRI and other
> information encoded in a TEA with a special “SR Policy” tunnel type.
>
> Zzh6> It is not fit for encoding explicit path for a tunnel in a TEA that
> is attached to a unicast prefix or a multicast tree route signaled from a
> controller. There is no reason the mix the two use cases.
>
> Zzh7> Jeffrey
>
>
>
> Thx,
> R.
>