Re: [mpls] Another way...

Jaganbabu Rajamanickam <jaganbaburietf@gmail.com> Tue, 19 March 2024 22:43 UTC

Return-Path: <jaganbaburietf@gmail.com>
X-Original-To: mpls@ietfa.amsl.com
Delivered-To: mpls@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 45521C151093 for <mpls@ietfa.amsl.com>; Tue, 19 Mar 2024 15:43:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=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=gmail.com
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 GfgE2XWqZ29y for <mpls@ietfa.amsl.com>; Tue, 19 Mar 2024 15:43:51 -0700 (PDT)
Received: from mail-wm1-x32d.google.com (mail-wm1-x32d.google.com [IPv6:2a00:1450:4864:20::32d]) (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 00342C14CE22 for <mpls@ietf.org>; Tue, 19 Mar 2024 15:43:50 -0700 (PDT)
Received: by mail-wm1-x32d.google.com with SMTP id 5b1f17b1804b1-41462295004so11846445e9.0 for <mpls@ietf.org>; Tue, 19 Mar 2024 15:43:50 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1710888229; x=1711493029; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=SXdQX8sj1u1XG4xkh+7xc3CcLBCMGHj48vIsOJv1Ze0=; b=L5hJL9kFppNM/QvI+kLhJvuAJsEffNtMAWMP0HO1warcBMsnGGTymMXRPfJwLi/pTJ uvIJKCtHMbMkf2My+eRgbU2kwgxt0C0mUAcCvwHv0VcfVG/bjH5uQtx1KhsBQ/cQCrm0 u7vkfC/Jvcwbv39FqwTdYBczBNHqdzLwwCM4IwxhFcKFeXxCNID/UKePrTZmGIGel1K8 FJjxPk0dGU1j846LMzGeqot6iNIzn7uBTQrqo1AffUu85YmbnPK7V3KSuis2lju0xRxV eTbeaeLR6gT0Aeg0HDJNojWfqnkaLAiyNE+sHRRYZgasOz6lJEUA4dI5aR62Kr+2Y+W2 fIEw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1710888229; x=1711493029; 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=SXdQX8sj1u1XG4xkh+7xc3CcLBCMGHj48vIsOJv1Ze0=; b=bY0p0tTDNhXC4fUtFajig9oVMwL8V9AeqCJ1AE/DRb/3ayl8ohsJw4Zlio2x3E0fUW sP5vIykSXxbscZCM6myt33WUfIIXLnJa6TPnwsMtwRtOksRdOqnxJu6sgZA+7xs03pQz +nXPsnggjABxnNmIJvkR1AB9xo7RlTzGGCw7axg8NVAX50po7+Wrs5uHnHqRdC+dStRl Ym6Gaexrm+NEVIxBNaHsix9kzQ6AGczbzHEQ4pdf3KqGbf2Lva2xX2p1AlWGV2QKNLPP ZUCq8LYKfB3CU9B0JqFIXLAfR79DgN5Ls3DONiBWnYW6CdVlJ5oBRETAhzzU6WZPuaaw jSHQ==
X-Forwarded-Encrypted: i=1; AJvYcCVXynyu4xhcBAq0VR+ob9cyDL6DcsGuje225MuTN7mO/Yc5RbLPxZ39Licc+BxLXArZHITIocI9I0XdFYag
X-Gm-Message-State: AOJu0Yzt6b+DJxpOdq8ABAw6bHJr4+23DkDsO5gtO5kpMV6o9ORS+44d hdvOb9Rut+UAEbRAr2NRfglDNNI/a7h28PNEd7esCkqsyl9XsXY56JZwxnxKIn9I1/VqANWeG9t VK+0BdfqrlP8g67QJW2sP6Kw9N1LcJVRXadwb9w==
X-Google-Smtp-Source: AGHT+IHxn2JheIsG0n+3xLn0hTUtUx92Uf1ruYrCBzdhNUUeb7CpsfezfT2X7SonZvDcPZTrLSjMuPP8XAL36vTPogE=
X-Received: by 2002:a5d:6647:0:b0:33e:7896:a9d7 with SMTP id f7-20020a5d6647000000b0033e7896a9d7mr12831639wrw.67.1710888228366; Tue, 19 Mar 2024 15:43:48 -0700 (PDT)
MIME-Version: 1.0
References: <EC290C02-4B81-4ABF-B1D8-A36849C104AC@tony.li> <BY3PR13MB4787EBC452CB744B3EEFCC799A2A2@BY3PR13MB4787.namprd13.prod.outlook.com> <11840BF7-650C-4665-9E8D-8173F1451856@tony.li> <8e38ed70e0429b891cd89261e4221df9.squirrel@pi.nu>
In-Reply-To: <8e38ed70e0429b891cd89261e4221df9.squirrel@pi.nu>
From: Jaganbabu Rajamanickam <jaganbaburietf@gmail.com>
Date: Tue, 19 Mar 2024 18:43:36 -0400
Message-ID: <CAPOsKjHcc5xrGRL-MEMW2TcYgrVXwO9o0MdekBwMTxC2zcvEHw@mail.gmail.com>
To: loa@pi.nu
Cc: Tony Li <tony.li@tony.li>, mpls <mpls@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000001a332f06140b3597"
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/3oGkdQCkj6uxQZ3LAXjTNOxzi1w>
Subject: Re: [mpls] Another way...
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/mpls>, <mailto:mpls-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls/>
List-Post: <mailto:mpls@ietf.org>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/mpls>, <mailto:mpls-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 19 Mar 2024 22:43:53 -0000

Hello All,

    In the PSD case, we may need a new ISD opcode to indicate the offset of
the start of PSD if PSD is not encoded immediately after the EOS.
    In section 6.1 of our PSD draft (
https://datatracker.ietf.org/doc/draft-jags-mpls-ps-mna-hdr/ ). We already
have mentioned that the new ISD opcode will be allocated with the format
option of Format-B or Format-C.

    I think we could use the same opcode to indicate the presence of PSD as
well. The offset could be zero or Non-Zero value.

    If we use a reserved bit in the Format-B to indicate the presence of
PSD and in case we encode the new PSD offset, then still we need to add an
additional opcode to be encoded.

Thanx,
Jags






On Thu, Mar 14, 2024 at 12:58 AM <loa@pi.nu> wrote:

> All,
>
> I have been thinking about using an OpCOde for a while, but have been
> reluctant to propose it. Several reasons, but mainly as the encoding grows
> more complicated we would either need a general encoding document or
> include this in the framework. Until we make up our minds there is some
> time and that delays progress of the other drafts.
>
> Another reason is that sometimes it is an entire LSE, and sometimes it
> is not.
>
> If we have just one OpCode after the Format A LSE (Opcode P (for PSD) it
> is no big deal.
>
> Example:
>
>     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
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |      MNA-Label=bSPL (TBA)             | TC  |S|    TTL        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |   Opcode P  |        Data             |R|IHS|S| Res |U| NASL=0|
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> and
>
>     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
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |      MNA-Label=bSPL (TBA)             | TC  |S|    TTL        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |   Opcode X  |        Data             |p|IHS|S| Res |U| NASL=0|
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> Is roughly equivalent :) (I said roughly).
>
> However if there is another OpCOde
>
>
>     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
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |      MNA-Label=bSPL (TBA)             | TC  |S|    TTL        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |   Opcode X  |        Data             |R|IHS|S| Res |U| NASL=1|
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |   Opcode P  |       Ancillary Data          |0|  AD   | NAL=0 |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
> Is less efficient than
>
>     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
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |      MNA-Label=bSPL (TBA)             | TC  |S|    TTL        |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |   Opcode X  |        Data             |p|IHS|S| Res |U| NASL=0|
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>
>
>
> Note: The discussion we have now about "changing" the format would
> potentially affect the Framework. Or even motivate a general MNA
> encoding document.
>
> Since both the OpCode and the p-bit are ISD, I think they should be
> assigned in draft-ietf-mpls-mna-hdr.
>
>
> /Loa
>
> >
> > In fact, it’s not a whole label.  If we’re talking about PSD, it’s
> > very likely that there’s nothing in ISD except for the PSD indication
> > and this opcode would fit in the Format B LSE without any additional
> > overhead.
> >
> > One could, in principle, generalize this to make the entire Format B data
> > space into extension bits of various flavors, with PSD being only one.
> >
> > We have many extension mechanisms, not just reserved bits.
> >
> > T
> >
> >> On Mar 13, 2024, at 11:36 AM, Haoyu Song <haoyu.song@futurewei.com>
> >> wrote:
> >>
> >> I think this is very inefficient. While only a single bit is sufficient
> >> to server the purpose, why dedicate a whole label?
> >>
> >> Haoyu
> >>
> >> -----Original Message-----
> >> From: mpls <mpls-bounces@ietf.org> On Behalf Of Tony Li
> >> Sent: Wednesday, March 13, 2024 8:29 AM
> >> To: Loa Andersson <loa@pi.nu>
> >> Cc: mpls <mpls@ietf.org>
> >> Subject: [mpls] Another way...
> >>
> >>
> >> [WG chair hat: off]
> >>
> >> Hi Loa,
> >>
> >> It occurred to me that another way of indicating the presence of PSD
> >> would be to allocate an opcode to serve this purpose.
> >>
> >> This requires no reserved bits and no pre-definition of any value so it
> >> intrinsically cannot disappear.
> >>
> >> Tony
> >>
> >> _______________________________________________
> >> mpls mailing list
> >> mpls@ietf.org
> >> https://www.ietf.org/mailman/listinfo/mpls
> >
> >
>
>
> _______________________________________________
> mpls mailing list
> mpls@ietf.org
> https://www.ietf.org/mailman/listinfo/mpls
>