Re: [mpls] I-D Action: draft-ietf-mpls-mna-requirements-10.txt

loa@pi.nu Sun, 03 March 2024 06:14 UTC

Return-Path: <loa@pi.nu>
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 715EFC14F69B for <mpls@ietfa.amsl.com>; Sat, 2 Mar 2024 22:14:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.906
X-Spam-Level:
X-Spam-Status: No, score=-1.906 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, 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
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 E4Y75pD9dHie for <mpls@ietfa.amsl.com>; Sat, 2 Mar 2024 22:14:25 -0800 (PST)
Received: from pipi.pi.nu (pipi.pi.nu [83.168.239.141]) (using TLSv1.1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8347BC14E515 for <mpls@ietf.org>; Sat, 2 Mar 2024 22:14:23 -0800 (PST)
Received: from pi.nu (localhost.localdomain [127.0.0.1]) by pipi.pi.nu (Postfix) with ESMTP id 608C43A8B8B; Sun, 3 Mar 2024 07:14:20 +0100 (CET)
Received: from 124.106.198.177 (SquirrelMail authenticated user loa@pi.nu) by pi.nu with HTTP; Sun, 3 Mar 2024 07:14:20 +0100
Message-ID: <b89327b062c9b3a6856780efce6917c1.squirrel@pi.nu>
Date: Sun, 03 Mar 2024 07:14:20 +0100
From: loa@pi.nu
To: Tony Li <tony1athome@gmail.com>
Cc: Stewart Bryant <stewart.bryant@gmail.com>, loa Andersson <loa@pi.nu>, "Matthew Bocci (Nokia)" <matthew.bocci=40nokia.com@dmarc.ietf.org>, mpls@ietf.org, "Dongjie (Jimmy)" <jie.dong=40huawei.com@dmarc.ietf.org>
User-Agent: SquirrelMail/1.4.22
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/kPviGPDmCgvYWsVREaVz38c6YJ0>
Subject: Re: [mpls] I-D Action: draft-ietf-mpls-mna-requirements-10.txt
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: Sun, 03 Mar 2024 06:14:29 -0000

Tony, et.al.,

> [WG chair hat: OFF]
> The encoding is straightforward:
> 22 octets = 176 bits

Agreed. 22 octets = 176 bits.

> If you start with a Format B LSE,


If I understand correctly it is not possible to start with Format
B LSE and continue into Format C, Format C has its own OpCode, so you can
start in the Format C LSE and  then go into the number of Format D LSEs
that is required. Only Format D is defined for additional data.

However, there is a quirk that you don't take into account, I asked  about
MUTABLE data.

A Format B LSE has no room for mutable data.

draft-ietf-mpls-mna-hdr says:

   To preserve backward compatibility, if a network action encodes
   data that will change during packet forwarding, then that data
   MUST be in the least significant 4 bits in the data field of a
   Format C LSE (Section 4.3) or the least significant 8 bits of
   a Format D LSE (Section 4.4).

I.e. 4 bit is the Format C LSE and 8 bits in Format D LSEs can be used
for mutable data.

Format C: 4 bits
Format D: 8 bits each

There is 14 Format D available 14x8=112bits, the total is 116, there is no
room for 176 bits (22 octets).

There is a caveat, I think that draft-ietf-mplsd-mna-hdr is wrong, but
I might misunderstand something. I believe that the paragraph I
quoted  above should say:

   To preserve backward compatibility, if a network action encodes
   data that will change during packet forwarding, then that data
   MUST be in the least significant 7 bits in the data field of a
   Format C LSE (Section 4.3) or the least significant 11 bits of
   a Format D LSE (Section 4.4).

Note: Authors can you check this up, it is "only" the 20 first bits of an
LSE that is mutable/immutable sensitive, right?

If I'm correct.

Format C: 7 bits
Format D: 1 bits each

There is 14 Format D available 14x11=154 bits, the total is 161, so  there
is still no room for 176 bits (22 octets). The maximum is
20 octets (160 bits).

With Stewarts example of PTP timestamp of 10 octets, 20 or 22 octets are
"reasonable" or we maybe "not excessive".

/Loa

> If you start with a Format C LSE, then you can embed 20 bits in that.
You
> then need 6 additional LSEs for the data. This seems obvious.
> This seems trivial.
> A side concern is why one needs 22 octets of precision in your
timestamps.
> Do you really gain something useful over a 4 octet NTP timestamp? T
>> On Mar 2, 2024, at 1:27 AM, Stewart Bryant <stewart.bryant@gmail.com>
wrote:
>> 
>>> On 1 Mar 2024, at 06:43, loa@pi.nu wrote:
>>> Can you show me how to transport 22 octets of mutable data in the
stack? I don't think 22 octets is unreasonable.
>> I agree. Certainly when it takes 10 octets to encode a PTP timestamp,
20
>> octets does not sound excessive.
>> Stewart
>> _______________________________________________
>> mpls mailing list
>> mpls@ietf.org
>> https://www.ietf.org/mailman/listinfo/mpls