Re:Extension Header processing rules

peng.shaofu@zte.com.cn Wed, 11 November 2020 09:50 UTC

Return-Path: <peng.shaofu@zte.com.cn>
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 4E2C03A0E68 for <ipv6@ietfa.amsl.com>; Wed, 11 Nov 2020 01:50:45 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.895
X-Spam-Level:
X-Spam-Status: No, score=-1.895 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=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 5ehAUwyKVcEG for <ipv6@ietfa.amsl.com>; Wed, 11 Nov 2020 01:50:42 -0800 (PST)
Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.217.80.70]) (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 682D43A00E3 for <ipv6@ietf.org>; Wed, 11 Nov 2020 01:50:41 -0800 (PST)
Received: from mxct.zte.com.cn (unknown [192.168.164.217]) by Forcepoint Email with ESMTPS id 5E71A37DA8ED681A7A02; Wed, 11 Nov 2020 17:50:40 +0800 (CST)
Received: from mse-fl1.zte.com.cn (unknown [10.30.14.238]) by Forcepoint Email with ESMTPS id 791A1BAB25D3B8A31E8A; Wed, 11 Nov 2020 17:50:39 +0800 (CST)
Received: from njxapp04.zte.com.cn ([10.41.132.203]) by mse-fl1.zte.com.cn with SMTP id 0AB9oWad033071; Wed, 11 Nov 2020 17:50:32 +0800 (GMT-8) (envelope-from peng.shaofu@zte.com.cn)
Received: from mapi (njxapp01[null]) by mapi (Zmail) with MAPI id mid201; Wed, 11 Nov 2020 17:50:32 +0800 (CST)
Date: Wed, 11 Nov 2020 17:50:32 +0800
X-Zmail-TransId: 2af95fabb3e81f1a9b5c
X-Mailer: Zmail v1.0
Message-ID: <202011111750325779453@zte.com.cn>
In-Reply-To: <3E0C3544-EF7F-44BF-BF10-97DB5F79639E@gmail.com>
References: 9EEAC2D8-375A-43C6-BC51-3C3242C80287@gmail.com, 202011101501583763174@zte.com.cn, 3E0C3544-EF7F-44BF-BF10-97DB5F79639E@gmail.com
Mime-Version: 1.0
From: peng.shaofu@zte.com.cn
To: bob.hinden@gmail.com
Cc: bob.hinden@gmail.com, tom@herbertland.com, ipv6@ietf.org
Subject: Re:Extension Header processing rules
Content-Type: multipart/mixed; boundary="=====_001_next====="
X-MAIL: mse-fl1.zte.com.cn 0AB9oWad033071
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/bVHW4d6TQeyH6YsckpFmanpWYvQ>
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, 11 Nov 2020 09:50:45 -0000

Hi Bob,






I think the sentence "The contents and semantics of each extension header determine whether or not to proceed to the next header." is certainly true for any extension headers, but it's too general. In fact, the same sentence applies to IPv4 option.


I mean, since we have defined various specific extension headers with different purposes in IPv6, thus, is it necessary to define more specific individual processing rules for each extension header in separate documents, rather than an overview of the general statement ?






Regards,



PSF

















Peng,

> On Nov 9, 2020, at 11:01 PM, peng.shaofu@zte.com.cn wrote:
> 
> 
> 
> Hi Tom, and Bob,
> 
> 
> 
> Thank you for sharing your opinion. I totally agree with that.
> 
> So, in general, we should discuss all kinds of Extension Header under the IPv6 specification, not simply equate them with IPv4 options. I think there are differences in semantics.
> 
> Now I am faced with the implementation of DOH related functions, and try to get a clear processing rule for DOH. According to your opinon the design of DOH has its specific purpose to provide optional information to end nodes. Therefore, when the packet arrives at the end node and all the options in the DOH are processed strictly in the order, the processing rule I'm trying to get is: the next header should be parsed. I think this processing rule is also Bob's answer to me.
> 
> However, I'm worried that the problem will go beyond design principles. If, I mean if, in DOH it also implements the function similar to RH, in this case when the source route entries in the related option have not been traversed, obviously the next header should not be parsed. This (i.e, whether to parse next header is decided by an option) brings confusion and complexity to the DOH's processing rules, because DOH can contain multiple options and the decisions for each option may be inconsistent. I don't think we should encourage DOH to do this under the IPv6 specification.

If I understand your question, the answer to your question is in the excerpt I sent earlier:

>    At the destination node, normal demultiplexing on the Next Header
>    field of the IPv6 header invokes the module to process the first
>    extension header, or the upper-layer header if no extension header is
>    present.  The contents and semantics of each extension header
>    determine whether or not to proceed to the next header.  Therefore,
>    extension headers must be processed strictly in the order they appear
>    in the packet; a receiver must not, for example, scan through a
>    packet looking for a particular kind of extension header and process
>    that header prior to processing all preceding ones.

Specifically:

   The contents and semantics of each extension header
   determine whether or not to proceed to the next header.

Bob


> 
> What do you think ?
> 
> 
> 
> Regards,
> 
> PSF
> 
> 
> 
> 
> >
> >
> > Hi Bob,
> >
> >
> > Excuse me, I have other doubts.
> >
> > I don't know what principles IPv6 followed when designing IPv6 Extension Heads, maybe these principles determine the application scenarios of each Extension Head.
> >
> Right having different type extension of extensions facilitates
> different use cases and efficient implementation. For instance,
> there's separate Hop-by-Hop Options and Destination Options because
> the former needs to be processed by all nodes in the path, and the
> latter is just processed by the destination so an intermediate node
> doesn't have to burn cycles processing options that are only of
> consequence at the end nodes.
> 
> > For example, why not use DOH to realize the function of RH, just like the loose source and record route (LSRR) option defined in RFC791 ?
> >
> Conceivably that could be done, but having a separate extension header
> devoted to just one purpose leads to more efficient implementation in
> high speed devices (serially parsing a potentially long list of
> options to find a routing header might be prohibitive in
> implementation). Another thing to point out is that IPv4 options,
> including LSRR, weren't exactly a success; the extension header model
> of IPv6 attempts to correct some of the deficiencies in IPv4 options.
> 
> Tom
> 
> >
> >
> > Regards,
> >
> > PSF
> >
> >
> >
> > > On Nov 4, 2020, at 11:44 PM, peng.shaofu@zte.com.cn wrote:
> > >
> > >
> > >
> > > Hi 6man experts,
> > >
> > > RFC8200 mention that extension headers must be processed strictly in the order they appear in the packet, but there are
> >
> > It doesn’t mention, it specifies.
> >
> > > not explicit description for that when an EH is finished processing it must continue to process the next EH. Is this an obvious behavior so that no necessary to describe explicitly, or a local behavior that can be controlled?
> >
> > It is an obvious behavior.   That is why the field is called the “Next Header”.  I think the relavant text from Section 4 is:
> >
> >    At the destination node, normal demultiplexing on the Next Header
> >    field of the IPv6 header invokes the module to process the first
> >    extension header, or the upper-layer header if no extension header is
> >    present.  The contents and semantics of each extension header
> >    determine whether or not to proceed to the next header.  Therefore,
> >    extension headers must be processed strictly in the order they appear
> >    in the packet; a receiver must not, for example, scan through a
> >    packet looking for a particular kind of extension header and process
> >    that header prior to processing all preceding ones.
> >
> > Note the last sentence where is says a receiver must not scan through a packet….
> >
> > Bob
> >
> >
> >
> > >
> > > For example, for the follow packet,
> > >
> > >    IPv6 Header + DOH + Upper-layer
> > >
> > >
> > >
> > > At the destination node, normal demultiplexing on the Next Header field of the IPv6 header invokes the module to process the DOH. When DOH is finished processing, should the upper-layer be processed ? or not be processed by local policy ? What is the standard behavior ?
> > >
> > >
> > >
> > > In addition to DOH, same question is for HBH.
> > >
> > >
> > >
> > > Regards,
> > >
> > > PSF
> > >
> > > --------------------------------------------------------------------
> > > IETF IPv6 working group mailing list
> > > ipv6@ietf.org
> > > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> > > --------------------------------------------------------------------
> >
> >
> > --------------------------------------------------------------------
> > IETF IPv6 working group mailing list
> > ipv6@ietf.org
> > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> > --------------------------------------------------------------------
> 
>