Re: [mpls] Question on avoiding TLVs
Loa Andersson <loa@pi.nu> Mon, 31 January 2022 20:00 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 1894A3A15AD for <mpls@ietfa.amsl.com>; Mon, 31 Jan 2022 12:00:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.61
X-Spam-Level:
X-Spam-Status: No, score=-2.61 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, NICE_REPLY_A=-0.714, RCVD_IN_DNSWL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 UxdsipT38b_r for <mpls@ietfa.amsl.com>; Mon, 31 Jan 2022 12:00: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 4C8043A164B for <mpls@ietf.org>; Mon, 31 Jan 2022 12:00:20 -0800 (PST)
Received: from [192.168.1.98] (unknown [112.206.242.125]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: loa@pi.nu) by pipi.pi.nu (Postfix) with ESMTPSA id E63553660B5; Mon, 31 Jan 2022 21:00:16 +0100 (CET)
Message-ID: <5ee2960d-ad6d-2aa4-268d-88861d17e201@pi.nu>
Date: Tue, 01 Feb 2022 04:00:13 +0800
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.5.1
Content-Language: en-CA
To: Haoyu Song <haoyu.song@futurewei.com>, Tony Li <tony.li@tony.li>
Cc: "mpls@ietf.org" <mpls@ietf.org>
References: <5cd6a374-d677-15c5-c721-77614de00c7f@pi.nu> <BY3PR13MB4787CC75CECDED53A8314F159A259@BY3PR13MB4787.namprd13.prod.outlook.com> <3BD86173-D24E-4669-91AD-B8C1E349D344@tony.li> <BY3PR13MB4787BF72EF9A2000EFED30799A259@BY3PR13MB4787.namprd13.prod.outlook.com>
From: Loa Andersson <loa@pi.nu>
In-Reply-To: <BY3PR13MB4787BF72EF9A2000EFED30799A259@BY3PR13MB4787.namprd13.prod.outlook.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/mpls/-qSlevvZYrtixW0oHmCzYx7zgmw>
Subject: Re: [mpls] Question on avoiding TLVs
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: Mon, 31 Jan 2022 20:00:40 -0000
Haoyu, Tony, I appreciate the difference in TLVs for the forwarding plane and for the control plane. So looking at the forwarding exactly what should not be TLV encoded? Can you give examples? /Loa On 01/02/2022 01:25, Haoyu Song wrote: > Hi Tony, > > Yes you are right. Here we are discussing the headers designed for data plane fast path processing. > Most of the TLVs designed before are for control plane to use. > But as you see, some current work for supposed fast path processing also suggests to use TLV options (e.g., in IPv6 EH) due to the lack of options. We need to be careful here, because for the parser point of view, each TLV options equals to at least 2 headers. > Now for MPLS EH, all I suggest is to avoid the issue because we are still at the early stages and have the opportunity to avoid some costly mistakes. > > Best, > Haoyu > > -----Original Message----- > From: Tony Li <tony1athome@gmail.com> On Behalf Of Tony Li > Sent: Monday, January 31, 2022 9:03 AM > To: Haoyu Song <haoyu.song@futurewei.com> > Cc: Loa Andersson <loa@pi.nu>; mpls@ietf.org > Subject: Re: [mpls] Question on avoiding TLVs > > > Haoyu, Loa, > > I think the important point here is that the parsing discussion is focused on the forwarding plane. TLVs are pervasive in the control plane, where parsing is not a significant cost. > > Tony > > >> On Jan 31, 2022, at 8:46 AM, Haoyu Song <haoyu.song@futurewei.com> wrote: >> >> Hi Loa, >> >> Usually TLV is used as a substructure in a header. For sub fields in a header, usually we don't have other choices than using TLV. But for each header, the type of it is better to be indicated by the previous header to save a parsing state. >> So all what I say is: as a principle, when designing a header, try not to embed its type in the header itself. Instead, before we get to this header, we should already know its type. >> >> Moreover, TLV options in a header also increases the parsing cost. Each fixed size TLV needs two states. Each variable size TLV needs multiple states depending on the size of the option. So another advice is: if it is meant to be processed in hardware, then we should try to limit the use of TLV, and especially variable sized TLV, unless absolutely necessary. >> >> Best, >> Haoyu >> >> -----Original Message----- >> From: Loa Andersson <loa@pi.nu> >> Sent: Monday, January 31, 2022 3:27 AM >> To: mpls@ietf.org; Haoyu Song <haoyu.song@futurewei.com> >> Subject: Question on avoiding TLVs >> >> Haoyu, >> >> In the slides you uploaded to the "We should try the best to avoid TLV style and variable sized header". >> >> MPLS is full of TLVs (LDP, RSVP/TE, LSP Ping, the OAM) are you suggesting we'd change this? >> >> Given your advice above what should we do? >> >> /Loa >> -- >> Loa Andersson email: loa@pi.nu >> Senior MPLS Expert loa.pi.nu@gmail.com >> Bronze Dragon Consulting phone: +46 739 81 21 64 >> _______________________________________________ >> mpls mailing list >> mpls@ietf.org >> https://nam11.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.ietf.org%2Fmailman%2Flistinfo%2Fmpls&data=04%7C01%7Chaoyu.song%40futurewei.com%7C232fd182783044649c3e08d9e4db9be9%7C0fee8ff2a3b240189c753a1d5591fedc%7C1%7C1%7C637792454153079557%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=W6r3NyEsUEcQzpreWqQR5ad4I%2FYRVA%2FJ3QaVqDZRkuo%3D&reserved=0 > -- Loa Andersson email: loa@pi.nu Senior MPLS Expert loa.pi.nu@gmail.com Bronze Dragon Consulting phone: +46 739 81 21 64
- [mpls] Question on avoiding TLVs Loa Andersson
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Tony Li
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Loa Andersson
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs John E Drake
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs John E Drake
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs John E Drake
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs John E Drake
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Loa Andersson
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Loa Andersson
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Stewart Bryant
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Greg Mirsky
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Haoyu Song
- Re: [mpls] Question on avoiding TLVs Loa Andersson