Re: [mpls] thought about the ADI name

Haoyu Song <haoyu.song@futurewei.com> Thu, 23 December 2021 17:58 UTC

Return-Path: <haoyu.song@futurewei.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 8DADA3A07A7 for <mpls@ietfa.amsl.com>; Thu, 23 Dec 2021 09:58:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.09
X-Spam-Level:
X-Spam-Status: No, score=-2.09 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, RCVD_IN_MSPIKE_H2=-0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=futurewei.com
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 6iGaFH7U5yKp for <mpls@ietfa.amsl.com>; Thu, 23 Dec 2021 09:58:40 -0800 (PST)
Received: from NAM12-BN8-obe.outbound.protection.outlook.com (mail-bn8nam12on2131.outbound.protection.outlook.com [40.107.237.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C0D373A07A6 for <mpls@ietf.org>; Thu, 23 Dec 2021 09:58:40 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=MGzYphWJplQU/UumFc0CnWWYTHelQzD8kpJaK/kycR/pBWF1Zfw6Bb1OWwNbpvd2Q78u7YNCAX0kcWoiwFnapXMU+eDhG921Xs1c2VI0ztcEe2vdpffMOlnZ+Byp463cY4hcmgCjF53juQ7EamlSePWrwbDJmicxJIwncXlohlv23GWDmLHA17QAf86aVDEF/G3AzQOd0zlCNq+5GiYPn4LC5VqdT7Yu1QUoa6IGAdU/F7fGBPTA98Mg5bScYo6RWKZK0i0BWUD22S9FXs/T9SzekA6ngR8iuti7ltFfxbUliWthkfNNQgp//Ps76lmAYwjMi7v+neN0fdWSBrEUkA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=S6/LpS+9veEoaWhIBZUeuCHApl7JuubK8W7m7HWd5rE=; b=mQXmh9/xI5Cd9fWVp65OE0nR24LRGCT87OXXuLePyOK8zat1KF/kF/eNq+w9rOQhypCy491zm7vsvaVazhFqgt1rc13qdGWaUFijU4VemmQ/iLQqtIiasi3/fR3CeW8b+k5YBV9tGna3/fseyoOaxfBLFseYkOw0O19HqdYuQq51vZBDz/mSP33dZEv3/g0MyRayIDe//Ud0vPjSYFkxcj6R0bnADm/UliCjTqgrY1jFgmwRX4pUSSHpgJ+2H6ZWJRpaBZsyxLJ2KKEbriBeB7m5HV9SVRnhP0edcAqdnUUJRH0bN/ebeQgVxG1oJ44wBygwcAdjoDPl25V5bP1ddQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=futurewei.com; dmarc=pass action=none header.from=futurewei.com; dkim=pass header.d=futurewei.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Futurewei.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=S6/LpS+9veEoaWhIBZUeuCHApl7JuubK8W7m7HWd5rE=; b=iVf3Taq/L/kflVFuWR1yFTTEfxf8XkW2s5rCpL92Gs6/FnY5xjO+PTRtw8n3G08tu9wHzaITOmcheJ/Vhcrab53Qj75GVY8tK5jheFo1im0XeiBGVXuDYfw+Z4mljQV0WM25fi338zOAe8f1oa+tRIcvM/i4VyZxTvA0h1uLCIo=
Received: from BY3PR13MB4787.namprd13.prod.outlook.com (2603:10b6:a03:357::13) by BL3PR13MB5147.namprd13.prod.outlook.com (2603:10b6:208:33a::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4844.7; Thu, 23 Dec 2021 17:58:36 +0000
Received: from BY3PR13MB4787.namprd13.prod.outlook.com ([fe80::618d:61cf:753e:be55]) by BY3PR13MB4787.namprd13.prod.outlook.com ([fe80::618d:61cf:753e:be55%6]) with mapi id 15.20.4844.007; Thu, 23 Dec 2021 17:58:35 +0000
From: Haoyu Song <haoyu.song@futurewei.com>
To: Loa Andersson <loa@pi.nu>, "mpls@ietf.org" <mpls@ietf.org>
Thread-Topic: [mpls] thought about the ADI name
Thread-Index: AQHX9PX47Ak4DxNRp0aIR5NFvLhDUKw+5m6QgAA9QQCAATTxkA==
Date: Thu, 23 Dec 2021 17:58:35 +0000
Message-ID: <BY3PR13MB4787A33AE3806444F48086449A7E9@BY3PR13MB4787.namprd13.prod.outlook.com>
References: <9e553dc9-34d1-44d5-1e33-41e4a3372597@pi.nu> <BY3PR13MB47870B6D4018A330A4EDEA279A7D9@BY3PR13MB4787.namprd13.prod.outlook.com> <dc108dd7-dad6-1d94-268e-d54bdda48719@pi.nu>
In-Reply-To: <dc108dd7-dad6-1d94-268e-d54bdda48719@pi.nu>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=futurewei.com;
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 31321f37-57c6-424c-237c-08d9c63dd715
x-ms-traffictypediagnostic: BL3PR13MB5147:EE_
x-microsoft-antispam-prvs: <BL3PR13MB5147E794E2DBC925252248E89A7E9@BL3PR13MB5147.namprd13.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8273;
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: lGxodNs7jv80D0T8mLgW+1zuGcPv/irh/wiYl3p2NcuxfRIQU/88L8BtReDzpq6GXC0MnH3JSvCyxG3+lJRy3xrzan8NHD3ggksxsww2gBkPrGif11j4AHblFQhEnyiaNR3qfFjDoOUqcgsiogkzfbzr7l/PMlTmXKWVLIoHhXoamH8K/Lm1STlcPxg75vUhnDUdNi7RFaH+LSg2U9pU0fb+qODYnCEBFn3wWg3gFnKIOZg9sK30UeAeKKMJTEeDTBZnvIuxdmdscw50QJ59cRy9PtgPf8zrcsdDtgtGLqe9kj+1wTKoJ75AVQL8IoOOda9gkJqRJUCBlvvyfisH3Tepc2XVs+l/NOofKsqHyyLrlDwHUWCb2hIFWBCgcaD2o8QykwQy0iaZUP01Mk93CCPpSWbdjfB1Ti1mY3uxMT4/X08QtpO1QoVaB/pmw6uZxnCdrW0d3HvKtU/noOjOj1Fd4uFUPOEx1ZGzgWkNgQpjoaJTuGkCGrlgCTw3iZpWlxdxPT3tANSLBUSWyiFoXxpgYgdvs7ZEV/6/rnvRJyeoqPtj6pg0iAfSDYPrAS2Gar0aJiUzvt2k5kmBY8oGDj+bAfEfZMmHvHgLp565SRAhjQvW7MyuRDxV9s1fG34aNbu8zbuvjVr+V/5OXJkS8r4zS+YOa9C5OIMzX9UFPG+XLFdXwTDGDaaGIKOh0l7jOM12Rmx/rKVhhudqc44wtw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BY3PR13MB4787.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230001)(4636009)(366004)(86362001)(33656002)(110136005)(316002)(66556008)(8936002)(2906002)(38070700005)(66476007)(66446008)(5660300002)(66946007)(76116006)(64756008)(38100700002)(186003)(44832011)(55016003)(122000001)(53546011)(83380400001)(71200400001)(6506007)(508600001)(7696005)(8676002)(9686003)(52536014)(20210929001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: ef8alu+IppN2Jo9grMr1M6bv/t3WWVqzRTJmv82mNO1sszM9ZIKLt79zG90OcqWcacU9uNgwYan7XRKR1mPVGHwyjvq761UDwilGJi4sBkq9Ta12Rrsjk+Uin1Gzp9hkKwQH0GatyWoo83VFAoLD0YI8LxZh+vapPq4Ia+7uSPF3NkSUQ0iq0HwzyBC176JFb1BkpzDhcTA+zJ3X94V7mmpynU+faXZLOhMyI04xn8YYZPbNYn6l9xkR833zguU80XKGIrNusl0D9jOWwwIWLQiEnHJnk4B+XQOrZ5WsHjl1x0JRmQyJNCqqTTgacrIy1iq41kz+uxz30mrKZG/QiRXkys0Rm2mVRoOQYOV1vq08ToEpgx/bNAfJwJO/9jlWtfr39tsBNZZthTff5v3AWjNN+uC0CuSbuLeUQiYa/NT4NaQSSrDquDDNLf7P+RLxzQVurTCWpkWAO7nHjOnngnNtGhWOTPI/X0jccUTkcGcWXCTzOa3GF6rG5jAxhbC6/2vM+1dXW8bNB68ngjAcVMZmzxjwiWJjOgVgVI0SYoeEQC37rR4zQ49s/vO4Xk4fMfMouaqoDfFlpAjr5wP3kMHyLTm9nGrnTIJCukh1qeUT/MQYRnpmQZlH8WH8K4+LcAEsw1YGjk3luhXlQHu6a3oU5twTzGfh7y7fnL0HPURAiwpAdbc7VDE9/wZRNXckRHpR7NSlZV7gulu2JPubdSckeL80GQYrohDAwAXqq6r4f4G878wg+mqBKvzRKRyv3pn4+jhV3Hj1YSE7Qhypf+ErL56x6vLngdvJoO4SXA70mWqNhJAXZBvTuE31jgn8FGSMQ9aEctZ8/Ln7UCy+YFdOMe8bJrks92iqpFjvnYaMV9nxcezRPNQBUlsvac1Mv0bIaqqMOXvNiE0dts1Gf72IxUsXTm9rOx/iqUHU+gOtwUaq1/J4CdzUwqu3xxHYacy/efT0sHmNAAUFcvuGE/pJjK4mdozLeh8yuZ+/K8MAzbDF9dn8uGXhc7M2Fem2fRIKqN+Uq3F2oUuiBY9cgB365U07mLCEXNgC1RoUoqs7egx2oLbXlOUJ3CUr2mZWT4GAIf9c2lSA5ZPJ93IraoEM1/vwlY1e6k+VuMWNPRPHZW8IvEPWGWDUSegpgHMR9rMq1NL333u3TYJOs46kXEOl19U/B8DsHaNKpbqh5BoLr4HwpNgY9HAtuE7o7oeCQSwBoNZnmwGJX60jedZ6ZIB4P0BFfk4emU88aBNvqsGHozGLjj328lc0ogFymtIR13mgy0XDXptNEb33vDRgLFCxH1TouSAlejBtsbI5/H1auxiqY79zNJqbiBH9vM+ldoqIRJbt5gDGLR5bj75qGu0eMpoUkxqiptymUnxmZjRVlF0I4a1UB5/p000gOWESIYNUeOBQAfzMBc8+fKCfCmPXta+QK40rOD3q9ixW7NWFIub9f/4o2rA8eVNaBYaxrVRTqCfWLY3NWBmd9aSkoEL6lfY9bGCuB88SkcZyPm4/VdYzUjzkQlTsgPotcBCWAaSLMhYxiX6CpCHhgZkKpWy2eh5+vd+IYEi+W6skYNeEZZPAIumIV6Y5nG2yV7PTD+pbarRI4c/L7xWpBMg4Aq8lBqbWcbXIYkvjFDL2fXUowsmSBdJy3OrY0AxQvupI12E2Mgofpt4B87cp8rx7x2Ajter5Rp6IhDWVgisNe6c=
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BY3PR13MB4787.namprd13.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 31321f37-57c6-424c-237c-08d9c63dd715
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Dec 2021 17:58:35.1865 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 0fee8ff2-a3b2-4018-9c75-3a1d5591fedc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: FU5OY8oBHJx3LF9isejVw6g4nb/hitbPbrUlMugrsVm2brr58cdbo9jTulsquJZ+g75PbpYIJB7maQrNMW83WA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL3PR13MB5147
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/M4oqKoh4LO_m_UfPeHGLAkSHr9I>
Subject: Re: [mpls] thought about the ADI name
X-BeenThere: mpls@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 23 Dec 2021 17:58:46 -0000

Hi Loa,

Let me try to explain a bit more. I have examples to back the following claims which I can present in a future meeting. 

So far all the existing header design follows a chain structure. The header are parsed linearly one by one from the start of the packet, until you reach a header that is considered the last one concerned by the forwarding plane. You know the presence of a specific header only when you reach it. In this design, the number of parser states as well as the time for parsing is both linear to the number of headers scanned.

Now people may think using some extra indicators (i.e., a bitmap with each bit indicating the presence of a header later in the packet) may improve the parsing performance. To this we must ask "in what sense"?

We can consider two possible types of improvements. First is the reduction of parsing states which can help to save the parser resource (i.e., fewer nodes in the parser FSM); second is the reduction of parsing cycles which can help to parse a packet faster (we have a fixed cost for parsing each header, no matter the size of it. E.g, each MPLS label is considered a header, the entire IPv6 header, excluding EHs, is also considered a header).  

For the first one, if you start to actually draft the parsing graph, you will find the opposite results. In two different parsing styles, both requires more parser states than a simple header chain.

For the second one, we need to understand that the headers concerned by a forwarding plane need to all be parsed anyway. You can't ignore some headers in the middle because you will need to reconstruct the packet headers at the egress (a process also known as deparsing). So the extra indicator encoding doesn't help to improve the parsing speed either.

There's a reason why so far all the headers are simply organized as a chain. It's the most efficient and straightforward way. My study is based on current switch ASICs and some NPs.  If people don't believe me, then evidence (e.g., pseudo code or parsing graph) needs to be provided. Perhaps there are some different forwarding plane designs which can play magic. We need to learn that before introducing any new mechanism.

A caveat is that, an extra indicator for the presence of HBH headers might be useful in some cases. For example, on an LSP path nodes, if there's no HBH headers later in the packet, the parser can stop further parsing immediately which can save some parsing cycles.  Even in this case, if the forwarding plane still requires to continue parsing, this mechanism doesn’t help. 

In general, we really just need to concern the packet header buffer (aka packet window) size. As long as all the headers concerned by a forwarding plane is within the buffer limit, the parsing cost is a negligible concern for a simple header chain. Other mechanisms are of no help at best and could be harmful at worst. Of course, I'd like to see evidence if people think the other way.   

Happy Holidays!

Best regards,
Haoyu

-----Original Message-----
From: Loa Andersson <loa@pi.nu> 
Sent: Wednesday, December 22, 2021 2:54 PM
To: Haoyu Song <haoyu.song@futurewei.com>; mpls@ietf.org
Subject: Re: [mpls] thought about the ADI name

Haoyu,

OK, I simply don't understand.

If you don't know what action you'll take, what good is it to know where to find the data?

It might be that this is not what you say, but that is what if get from your text below. Sorry if I'm misunderstanding.

/Loa

On 23/12/2021 03:25, Haoyu Song wrote:
> Hi Loa,
> 
> In my opinion the ADI should only be used to indicate the presence of AD.  E2E or HBH AD could be differentiated because in some case it can help stop further parsing beyond ADI.  Other information encoded in it won't help but complicate the parsing process. I strongly suggest any such proposal should give a clear presentation on why it's necessary and how it can help from the view of implementors, otherwise, we may end up with an over complicated design without tangible benefits.
> 
> Best regards,
> Haoyu
> 
> -----Original Message-----
> From: mpls <mpls-bounces@ietf.org> On Behalf Of Loa Andersson
> Sent: Sunday, December 19, 2021 8:32 AM
> To: mpls@ietf.org
> Subject: [mpls] thought about the ADI name
> 
> Working Group,
> 
> The MIAD Requirement Specification use the abbreviation ADI, it stands for Ancillary Data Indicator. Which is all nice and dandy.
> 
> But isn't it he case  that the indicator gives us two things, the action to be performed and where to find the data needed, i.e., an Ancillary Data and Action indication (ADAI?).
> 
> No I'm not suggesting that we change, but we should be aware, and it would be nice to have it mentioned somewhere.
> 
> /Loa

-- 
Loa Andersson                        email: loa@pi.nu
Senior MPLS Expert                          loa.pi.nu@gmail.com
Bronze Dragon Consulting             phone: +46 739 81 21 64