[mpls] Re: Potential MNA technical issue - late follow up

John Drake <je_drake@yahoo.com> Mon, 28 April 2025 13:30 UTC

Return-Path: <je_drake@yahoo.com>
X-Original-To: mpls@mail2.ietf.org
Delivered-To: mpls@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 36B4D21FEC02 for <mpls@mail2.ietf.org>; Mon, 28 Apr 2025 06:30:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.085
X-Spam-Level:
X-Spam-Status: No, score=-2.085 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_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=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, T_KAM_HTML_FONT_INVALID=0.01] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.com
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 5wy1yITZMrCD for <mpls@mail2.ietf.org>; Mon, 28 Apr 2025 06:30:08 -0700 (PDT)
Received: from sonic306-20.consmr.mail.gq1.yahoo.com (sonic306-20.consmr.mail.gq1.yahoo.com [98.137.68.83]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id DA7E121FEBF6 for <mpls@ietf.org>; Mon, 28 Apr 2025 06:30:02 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1745847001; bh=35XyXnCekUF+22J947j6C01/w6XIRL/1U2h2qr9Ij2U=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=YBtFpsV7DUjb3FpH/+KDbrN9HimclJ6fSasBpxKFHWB052rYn7yUdTJGWIVGbdnfKRHP6rmHl1zX5MiWe0IbeeMU9ceG0in5Jg8i4HRc1O6ZTbGNRBJTSufccvTvZAGRmT3wb/+2eZ4KkidAtN+jvMa4TqapzNrkEvhiDDIkP2jnrwUDNrNuF1Om948pGnBiAvry9TPdzJx2oZV7tQj11IaNyCy+irSm5q1FDs7l713oHmnghjypi5DOStYu2BZK2C+3665fEh3QFtlZZuBwmNHmzdn5qDIEHa5amnFiEyJ7SKvdx3ivLuP2OUQ8CkBuR1Y1nC81kBQXjNMwuMF5lw==
X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1745847001; bh=WeIw4naYE+U8ZPkZPg2cOlonvsi+4ZCy19PB8RIpcwu=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=Qtvm6Bkmekd65gU2+CNyfcTRbdmIxQTgNIzr+zIgLVB8RxJ/jj0CilohIwU+mzclQQBZtM/yr4U/Phl8DXTjLtIuuw5rcw4PYTN90hjJ87jhXKjkz8iJ0LWHcRAnwQ6+i08SKPwu6ahMayXGBb3ZMwMq1lcarxgOeCEtjEQi9gyLDZyT9//yInMVBvolmMqDThhmYyXbjyWdFXP3x+27LtV7Vboyz+IJh4nzVLEOHzH7uwv03nagIj1Rz3MlufDZPx3tuTC9eaj5WlemQPMAW7Z1WJ7gPJGtGxHE1eLqJRnzsN8C53J7yxmDDAx2I6OIaxkbXPyY0xXK1tm4t1n10A==
X-YMail-OSG: b5i78swVM1kmNIDUlj7iYeP4fWCGHUsDW8CKxh67PaJz7fVBoNEcpPzp_0k.dWK Tr0uPI4lejJOnll4Tn7L7YFtXb1idVEMp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2DysO9bvJ9.KiAGZ1EDyD1s9y rSDnLZg5yBznzIgAR0NPlOY9Yq.WNyW6gP8G85uA0ZJ_jZ5N1gSD9BOPJuAzVVusTqtU7M5bVkFs Yc7A5lZQly5p8X9KviDFb
X-Sonic-MF: <je_drake@yahoo.com>
X-Sonic-ID: d13cfc16-5f27-4203-9ac6-24c7ee9d45eb
Received: from sonic.gate.mail.ne1.yahoo.com by sonic306.consmr.mail.gq1.yahoo.com with HTTP; Mon, 28 Apr 2025 13:30:01 +0000
Date: Mon, 28 Apr 2025 13:29:55 +0000
From: John Drake <je_drake@yahoo.com>
To: Loa Andersson <loa@pi.nu>, Greg Mirsky <gregimirsky@gmail.com>
Message-ID: <723451864.2075803.1745846995652@mail.yahoo.com>
In-Reply-To: <CA+RyBmWtYFv7=EWT0wuM2KNp5Cxiusb5E=X3x3esMA8Eg-hOhw@mail.gmail.com>
References: <026801db83da$30a3ec40$91ebc4c0$@olddog.co.uk> <9D3BA859-A778-4DE6-9839-401ACA913861@tony.li> <027901db83e1$104f6300$30ee2900$@olddog.co.uk> <db7fc5cb1f4544f6a03014274351e515@huawei.com> <D24A6A00-D558-4CAD-9ECB-8F664291658C@tony.li> <a171b923-0d29-4d0b-a0a7-4c447c96ce17@pi.nu> <0744CC45-099E-4F21-BC54-C13472460380@tony.li> <ded2c457-e352-4498-a5ef-3859f0310216@pi.nu> <CA+RyBmWtYFv7=EWT0wuM2KNp5Cxiusb5E=X3x3esMA8Eg-hOhw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_Part_2075802_1438734120.1745846995649"
X-Mailer: WebService/1.1.23737 YMailNovation
Message-ID-Hash: WDS2DTLR2ITAQEZE6LQXT3G5LVRNKV2X
X-Message-ID-Hash: WDS2DTLR2ITAQEZE6LQXT3G5LVRNKV2X
X-MailFrom: je_drake@yahoo.com
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-mpls.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: mpls <mpls@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [mpls] Re: Potential MNA technical issue - late follow up
List-Id: Multi-Protocol Label Switching WG <mpls.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/wsEhMap31iM9Bb4UhDPh3AyyvAQ>
List-Archive: <https://mailarchive.ietf.org/arch/browse/mpls>
List-Help: <mailto:mpls-request@ietf.org?subject=help>
List-Owner: <mailto:mpls-owner@ietf.org>
List-Post: <mailto:mpls@ietf.org>
List-Subscribe: <mailto:mpls-join@ietf.org>
List-Unsubscribe: <mailto:mpls-leave@ietf.org>

 Greg is right.  If we don't adopt an Opcode/Offset approach now, we will end up adopting it later.  The P Flag is just about useless.
On Sunday, April 27, 2025 at 06:09:14 PM PDT, Greg Mirsky <gregimirsky@gmail.com> wrote: 
 
 
 
Hi Loa,

I have some notes about signaling PSD, but first, a question:

What is the interpretation of P-flag == 0?

I see several benefits of using a dedicated Opcode option to signal the presence and location of a PSD header:
   
   - the single mechanism makes for a more robust implementation;
   - the order of Opcodes provides a clear principle to signal the order of processing for MNA AD;
   - easy integration with technologies that use their own PSH;
   - allows for using multiple PSD headers.

Yes, the Opcode option has some overhead but also benefits (see above). Although P-flag might seem like a simpler option for many use cases, it does not support all scenarios and still requires some additional mechanism. If that is the case, and following the "Make your worst case your normal case" philosophy, I support using the Opcode option as the only mechanism to signal the presence and location of the PSD header.






Regards,

Greg

On Sun, Apr 27, 2025 at 2:07 AM Loa Andersson <loa@pi.nu> wrote:

Tony,

Den 27/04/2025 kl. 13:53, skrev Tony Li:
> 
> Hi Loa,
> 
> 
>>> We still have not resolved how PSD will be indicated.  We have four proposals on the table.  When we come to consensus, then it will be obvious where to put it.
>>> a) P-bit in the ISD header. This lacks any offset, which makes it difficult to find the PSD on mid-path nodes where other post-stack information might be above it.
>>
>> I think that the P-flag can only be used if PSD immediately follows the LSE that has the BoS set.
> 
> 
> Having the P bit indicate an offset of zero is one possibility. That seems like the cost of a bit always to optimize for a case that might happen sometimes. To my way of thinking, that’s kind of expensive.
> 
> 
>> You say that using the P-flag is a problem for transit nodes "where other post-stack information might be above it". Why does not the egress node have the same problem?
> 
> 
> The egress node might have other information about what’s in the payload and thus what’s after the stack. If it doesn’t know what’s coming, then yes, it too would need the P-flag or an offset.
> 
> 
>>> b) An offset as an opcode.
>>> c) Offsets per PSD action.
>>> d) Some combination of the above.
>>> I favor option b as it’s simple and sufficient.
>>
>> You say you favor option b, I might agree with you. I option b that we have an OpCode (indicating "PSD present") followed by a 13 or 16 bit field (depending on type of LSE) containing the offset?
>>
>> Like this:
>>
>>
>>     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
>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>    | Opcode=PSD  |      Offset             |R|IHS|S|U|  NASL | NAL |
>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>
>>                  Figure 2: LSE Format B: The initial opcode
> 
> 
> Yes, that would be one way.
> 
> 
>>    LSE Format C is used to encode the subsequent opcodes in the NAS.
>>
>>     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
>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>    | Opcode=PSD  |            Offset             |S|U|  Data | NAL |
>>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>>
>>                  Figure 3: LSE Format C: Subsequent opcodes
>>
>> Then setting the P-flag would be semantically equal to having an offset of "0", and I see no harm in including it.
> 
> 
> Again it burns a bit.  If it’s something that’s used frequently, then it might be worthwhile.  If it is used infrequently, then it would seem to be expensive. It all depends on what your expectations are.

So looking at LSPs with PSD immediately after the LSE with the BoS-bit 
set what this comes down to is that:

- if there are twenty packets carrying the p-flag, and only one of these
flags are set this is equivalent with one packet with OpCode + 13 bits

- if there are 1 in 21 (or less) p-flags set, the OpCode + offset is 
more efficient

- if there are 1 in 19 (or more) p-flags set, then p-flags are more 
efficient

Then of course we have to do something with the P/R-bit, if we just turn 
it into more data-bit as long as the data field is not filled. If 90% of 
the data is 13 bits or less, you have to carry the that extra bit anyway,

SO my problem that I don't know the "expectations", anyone that have Ideas?

/Loa

> 
> 
>> Did I understand you correctly?
> 
> 
> I think so.
> 
> T
> 

-- 
Loa Andersson
Senior MPLS Expert
Bronze Dragon Consulting
loa@pi.nu
loa.pi.nu.@gmail.com

_______________________________________________
mpls mailing list -- mpls@ietf.org
To unsubscribe send an email to mpls-leave@ietf.org

_______________________________________________
mpls mailing list -- mpls@ietf.org
To unsubscribe send an email to mpls-leave@ietf.org