Re: SRH TLV Type change

Tom Herbert <tom@herbertland.com> Wed, 05 June 2019 21:42 UTC

Return-Path: <tom@herbertland.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 92B3A120144 for <ipv6@ietfa.amsl.com>; Wed, 5 Jun 2019 14:42:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.897
X-Spam-Level:
X-Spam-Status: No, score=-1.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=herbertland-com.20150623.gappssmtp.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 SU9fFYNEpQpb for <ipv6@ietfa.amsl.com>; Wed, 5 Jun 2019 14:42:33 -0700 (PDT)
Received: from mail-qt1-x835.google.com (mail-qt1-x835.google.com [IPv6:2607:f8b0:4864:20::835]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 7034F12013D for <ipv6@ietf.org>; Wed, 5 Jun 2019 14:42:33 -0700 (PDT)
Received: by mail-qt1-x835.google.com with SMTP id s15so305263qtk.9 for <ipv6@ietf.org>; Wed, 05 Jun 2019 14:42:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=herbertland-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=tKso+9FoVgzDsA/jAeR3QXfFrWDta0Lj3gkL+46Odpk=; b=uwqEDbTpevCT4Mf3zH/se4vhaGkxmNW0lNPuW5ImBUXF66nIMC0VX0ZRNB3OMp84Gg CjXEd8XCJODdlg3t5VJTz1RyS3gyTxSJYdN3/kjtRDUQLDn1Csgq1RgXyx6KEgaqlYhb f0ynzvNdANI6kYaWtAJs6FfvOpxcVhibmNe6F0pF9kNB0omrmRzeqUsp5YlEngTGnJwH mlGbWDOidmm0ozwC6JUytE8h69E0Gd0dGNull23co57dPEfdy89g1sDmNa0A2rCfebwz W7CvFhYAVkzc/S0GGsV5wSCh2nKHPAl1txUIs+xVza7HUxPD13qZcyIHZmn1GYT5IbBY 8M9Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=tKso+9FoVgzDsA/jAeR3QXfFrWDta0Lj3gkL+46Odpk=; b=SajbhgpWkE42pTBhT4F+4ZKrw5tt8n6oknMWAhGH3bF5aR7Pg5sDEoepgtVLBiN/93 QL2KKxM7DFLD457B7Y8tK3jrezrizqWTl2t0bgbgt7Vtvox3wFdQvSyRZTA9QIGOIKfT FQ9cHOb1i5EvEXAS2ZTPWDxgHLDMu+9PuAC+cPRtKHu7JpM/XPoHDZxvBCklqdLphUNU c6KFQkYY5ynDfzsM9VZ6c9G8fMhIZI9FB8M28yB9kkXuf5rQs9rhChApxffwpeS5yvrR TVPe810dS07K7S3SygE4iBHuvcv8qDaLITPcQDwuLOa8ALSGjG9NsEMeFI+5/SMt/w19 FcPA==
X-Gm-Message-State: APjAAAUO2ekR9MZHMO4ItA0LNXWM2xSSq8arDuavc6ISejA6cMfMxYin wBl90iXbE6QOjgytIacYhG707btfXzGKS5MVnWgojQ==
X-Google-Smtp-Source: APXvYqy3SyupTht82ehe9eYY0GldnvwI53PEd+h7P8MdwSpxXyTMJXyyn3HKnIa4flQFaNIEfGi55rvNvnH1ZPvn/FU=
X-Received: by 2002:ac8:2318:: with SMTP id a24mr35965258qta.60.1559770952267; Wed, 05 Jun 2019 14:42:32 -0700 (PDT)
MIME-Version: 1.0
References: <B14F1B85-22D3-4169-A6B9-69D56302B3E5@cisco.com> <CALx6S34dttOKRDdPDOa4ohJMV9HBXo6DmLpaM0K0HSgxqDyqqA@mail.gmail.com> <9E9EA4E4-C6EE-4CEA-8914-1BED4A860C29@cisco.com>
In-Reply-To: <9E9EA4E4-C6EE-4CEA-8914-1BED4A860C29@cisco.com>
From: Tom Herbert <tom@herbertland.com>
Date: Wed, 05 Jun 2019 14:42:20 -0700
Message-ID: <CALx6S36oFitCRW=roEwaDQUdipG8KA9B1U5SKYBMtAUWPLSxeQ@mail.gmail.com>
Subject: Re: SRH TLV Type change
To: "Darren Dukes (ddukes)" <ddukes@cisco.com>
Cc: IPv6 List <ipv6@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/8JykjuZoO79uZ-TaW9cQWkxDtdc>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 05 Jun 2019 21:42:36 -0000

On Wed, Jun 5, 2019 at 2:20 PM Darren Dukes (ddukes) <ddukes@cisco.com> wrote:
>
> Tom, I believe we had this conversation long ago.
> The number space is disjoint for option and SRH TLVs so the numeric values for PAD TLV types for option vs SRH TLVs is not relevant.

PAD1 and PADN are different. Even if the namespace for all types are
different, we can still leverage common values here.

>
> On the other hand there are macros used by implementations that have had fixed values for 2 years.
>
And exactly what implementations are those?

> Either way an implementation’s equivalent of the Linux ip6_parse_tlv needs to be duplicated for SRH TLVs or simply modified to support the two number spaces.

Yes, but if you look closely you'll there are only two values and the
default case in the switch statement. Those two explictly cases are
exactly PAD1 and PADN. Other cases are handled by table lookup which
is easy enough to abstract out to allow different number spaces. I
have the implementation that does this and will post shortly.

Tom

>
> Darren
>
> > On Jun 5, 2019, at 2:46 PM, Tom Herbert <tom@herbertland.com> wrote:
> >
> > On Wed, Jun 5, 2019 at 11:06 AM Darren Dukes (ddukes) <ddukes@cisco.com> wrote:
> >>
> >> In revision 18/19, PAD0 and PADN were moved to TLV Type 0 and 1 (section 8.2)
> >> I was reminded that type 1 conflicted with previous versions of the draft and implementations.
> >> In revision 20 I plan to move the PADN type back to 4 (its value from previous revisions/implementations) and add text to highlight the reservations for previous versions and implementations.
> >
> > Darren,
> >
> > Please don't do this. If PAD1 is type 0 and PADN is type 1 then that
> > is consistent with HBH and DO. This way we can use a common
> > implementation of the parsing loop (type and length byte definitions
> > are also common). Besides, in the SRH draft only one implementation
> > (Linux) is reported to have implemented TLVs and that implementation
> > does not support padding yet.
> >
> > Tom
> >
> >>
> >> Darren
> >> --------------------------------------------------------------------
> >> IETF IPv6 working group mailing list
> >> ipv6@ietf.org
> >> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> >> --------------------------------------------------------------------
>