Re: Comments on draft-hinden-6man-hbh-processing-00

"C. M. Heard" <heard@pobox.com> Fri, 19 March 2021 04:02 UTC

Return-Path: <heard@pobox.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 A35C53A0EDF for <ipv6@ietfa.amsl.com>; Thu, 18 Mar 2021 21:02:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=pobox.com; domainkeys=pass (1024-bit key) header.from=heard@pobox.com header.d=pobox.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 y8ACNrovytYV for <ipv6@ietfa.amsl.com>; Thu, 18 Mar 2021 21:02:42 -0700 (PDT)
Received: from pb-smtp1.pobox.com (pb-smtp1.pobox.com [64.147.108.70]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id AB5773A0EDA for <ipv6@ietf.org>; Thu, 18 Mar 2021 21:02:42 -0700 (PDT)
Received: from pb-smtp1.pobox.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id DE89AB63BE for <ipv6@ietf.org>; Fri, 19 Mar 2021 00:02:35 -0400 (EDT) (envelope-from heard@pobox.com)
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; s=sasl; bh=6jVzc//+X6F3C0GZ7m1T3aGh6Ao=; b=i3dh4h Rua9zHnUymbLwfLal6waIbKmnx/uMzLUSopPPaHK+Ja19IVzHw5543jdyEgOVxaF x0huZ2DSitKhWji/XOd3YseNE+ziv1QcXpqw1LeEAfAgyLuSh1Vl6MEjXJ2uzuUC 30/dorDBb6yoDi3O78LAtCl8m3jo3TGYULlUs=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=pobox.com; h=mime-version :references:in-reply-to:from:date:message-id:subject:to:cc :content-type; q=dns; s=sasl; b=MQByeh2qI7T0BT5PpYsUxuhs7hrZzxBP XPeJnvi0BzZtmq0nm1Vgo1F3UXb85xyABXj6ys6ChfTc6yn+x5qMWhknxKtfbVvC VWQEFTp8/XaGDDNzTqeBkPYKmdWastSkWacofUFjviWprnmeAaQ57q0a8fcprbRr 2K18khOOqYs=
Received: from pb-smtp1.nyi.icgroup.com (unknown [127.0.0.1]) by pb-smtp1.pobox.com (Postfix) with ESMTP id D46CEB63BD for <ipv6@ietf.org>; Fri, 19 Mar 2021 00:02:34 -0400 (EDT) (envelope-from heard@pobox.com)
Received: from mail-oi1-f179.google.com (unknown [209.85.167.179]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pb-smtp1.pobox.com (Postfix) with ESMTPSA id 5D6BAB63B9 for <ipv6@ietf.org>; Fri, 19 Mar 2021 00:02:34 -0400 (EDT) (envelope-from heard@pobox.com)
Received: by mail-oi1-f179.google.com with SMTP id x2so3409464oiv.2 for <ipv6@ietf.org>; Thu, 18 Mar 2021 21:02:34 -0700 (PDT)
X-Gm-Message-State: AOAM531XG9gAHrMV9v6fkfzxjsry4UpW166iia8sPiEhfNhHw7E9Migs zEWqs1gVjIlAmQHUIsvVe3TSE9yLrBBqKchJ5Mc=
X-Google-Smtp-Source: ABdhPJyOgKN/Oy12DfJl0buz913/y9BPTD8C2ZIOd+JbGIYp+Lmfkt3cbAoTIFKPB7z2zWKsJOzWJODuniANoYLZbbo=
X-Received: by 2002:aca:5b02:: with SMTP id p2mr5414324oib.90.1616126553670; Thu, 18 Mar 2021 21:02:33 -0700 (PDT)
MIME-Version: 1.0
References: <CACL_3VEWhSyQt+uz5HyntJ_haYadNMHuCMQCiRY8FW-ntBoLAQ@mail.gmail.com> <B2208374-C92D-46C4-8AFA-7CFAF3EFE6B8@gmail.com>
In-Reply-To: <B2208374-C92D-46C4-8AFA-7CFAF3EFE6B8@gmail.com>
From: "C. M. Heard" <heard@pobox.com>
Date: Thu, 18 Mar 2021 21:02:20 -0700
X-Gmail-Original-Message-ID: <CACL_3VGUVtcGu=Uxm-jqsNuDs=JjzzNvT7JUAoy-8u0C6Xd5mw@mail.gmail.com>
Message-ID: <CACL_3VGUVtcGu=Uxm-jqsNuDs=JjzzNvT7JUAoy-8u0C6Xd5mw@mail.gmail.com>
Subject: Re: Comments on draft-hinden-6man-hbh-processing-00
To: Bob Hinden <bob.hinden@gmail.com>
Cc: Gorry Fairhurst <gorry@erg.abdn.ac.uk>, IPv6 List <ipv6@ietf.org>
Content-Type: multipart/alternative; boundary="00000000000024c87f05bddbc9dc"
X-Pobox-Relay-ID: EF5F9282-8867-11EB-9784-D152C8D8090B-06080547!pb-smtp1.pobox.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/erPyvAd9UqIrTftz5c2mipqwNDo>
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: Fri, 19 Mar 2021 04:02:45 -0000

On Thu, Mar 18, 2021 at 3:53 PM Bob Hinden  wrote:

> On Mar 13, 2021, at 4:36 PM, C. M. Heard wrote:
>
>> It seems to me that the objective could be accomplished in a much less
>> disruptive fashion in either of the following ways:
>>
>> (a) specify that nodes that process the HbH options header MAY ignore all
>> options after the first;
>> (b) specify that  nodes that process the HbH options header MAY ignore
>> all options after the first non-PAD option
>>
>
> I think I would be OK with something like (a).    It’s possible to do this
> because the HBH header has the information that would enable a node can
> easily skip the rest.   I don’t think that (b) is that helpful, if a node
> can skip, it can skip PAD options too.
>
> The proposal would be something like a node SHOULD process the first HBH
> option in the “fast path”, if there is more than one HBH option, the node
> MAY process or skip the remaining options.
>
> I note, this change would eliminate the need for 8-octet alignment and
> would simplify the proposal.
>

Yes, that was the idea.

Alternative (a) is somewhat simpler, but would require re-specifying any
>> option that requires padding in front if it stands alone inside the HbH
>> header. As best I am able to determine from a review of the existing HbH
>> option specifications, IOAM is the only one that is so affected.
>>
>
> I wasn’t aware of that.  Please explain.
>

If I am not mistaken, the alignment requirements for the various HbH
options are:

RA: 2n+0
CALIPSO: 4n+2
SMF_DPD: 4n+2 (inferred)
IOAM: 4n
RPL: 2n
Quick-Start: none (inferred)
Minimum Path MTU: 2n or 4n+2 (inferred)

> MPL: 4n+2 (inferred)
Jumbo Payload: 4n+2
IP_DFF: 4n+2 (inferred)

Some of the specifications do not explicitly specify the alignment
requirements; in those cases I have inferred the alignment requirements
from the diagrams.

The HbH header is aligned to an 8-octet boundary and starts with two
one-octet fields (Next Header and Hdr Ext Len). An option with alignment
requirements none, 2n, 4n+2,  8n+2, or none can be placed immediately after
Next Header and Hdr Ext Len with no pads. Of the above options, the only
one that does not meet that requirement is IOAM. Note that I have inferred
an alignment requirement of "none" for Quick-Start since the same option
data format is used for IPv4 and IPv6; however, 4n would also be a
reasonable inference.


> Alternative (b) would avoid even that, but it would also require a bit
>>> more work from a compliant node .
>>>
>>
> Might be better to rework the IOAM option.
>

That is a possibility, since the spec is still unpublished; but how hard is
it to skip either two PAD1's or a PADn with n=0?

Either one of these alternatives  keeps the specification the same EXCEPT
>> for relaxing the minimum a node is required to meet. Nodes that can process
>> more options would be allowed to to do. That avoids disruption of systems
>> that are already deployed and could be useful in limited domains. I do not
>> see what is gained by requiring nodes to enforce a one-option limit.
>>
>
> I think [you] are suggesting the proposal be written as a minimum
> requirement.  A node could do more, but isn’t required to.
>
> I think the biggest issue with anything other than only process one HBH
> option or any number, is how does the node creating the packets know how
> many to include in a packet?    I don’t see much use for HBH if the sender
> puts in more than are liekly be processed.
>
> I suppose, we could create an IANA registry that defines a value for the
> minimum number of HBH options that SHOULD be processed by all nodes.   Over
> time if the capabilities of routers increased the number could be increased
> by an IETF specification.   This would be for Internet wide usage, limited
> domains could do more with local configuration.
>

What I had in mind was a minimum of one option with the ability to do more
via local configuration.

Mike