Re: [Dime] DOIC M-Bit usage (was Re: WLGC #2 for draft-ietf-dime-ovli-06)

Steve Donovan <srdonovan@usdonovans.com> Fri, 23 January 2015 15:41 UTC

Return-Path: <srdonovan@usdonovans.com>
X-Original-To: dime@ietfa.amsl.com
Delivered-To: dime@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 46E201A9232 for <dime@ietfa.amsl.com>; Fri, 23 Jan 2015 07:41:46 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.121
X-Spam-Level:
X-Spam-Status: No, score=-1.121 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_NEUTRAL=0.779] autolearn=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 qoP-y8LrFoDa for <dime@ietfa.amsl.com>; Fri, 23 Jan 2015 07:41:44 -0800 (PST)
Received: from biz131.inmotionhosting.com (biz131.inmotionhosting.com [173.247.247.250]) (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 D96E81A923B for <dime@ietf.org>; Fri, 23 Jan 2015 07:41:44 -0800 (PST)
Received: from cpe-76-187-100-94.tx.res.rr.com ([76.187.100.94]:52757 helo=Steves-MacBook-Air-2.local) by biz131.inmotionhosting.com with esmtpsa (UNKNOWN:RC4-SHA:128) (Exim 4.82) (envelope-from <srdonovan@usdonovans.com>) id 1YEgMe-0003A1-7Y; Fri, 23 Jan 2015 07:41:43 -0800
Message-ID: <54C26BB3.1010401@usdonovans.com>
Date: Fri, 23 Jan 2015 09:41:39 -0600
From: Steve Donovan <srdonovan@usdonovans.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: Ben Campbell <ben@nostrum.com>
References: <54B5399D.3020600@gmail.com> <AEE2E3C8-9ADF-4D0F-9793-B1F15A0EFDBA@nostrum.com> <54BEA19E.80309@usdonovans.com> <444F5015-38E2-4D19-A5F8-EBC32BAD38F6@nostrum.com> <54BEC3E7.40703@usdonovans.com> <54C10B60.7010405@usdonovans.com> <087A34937E64E74E848732CFF8354B92098ADD13@ESESSMB101.ericsson.se> <56CE9F81-1BE9-489A-9C80-52D0DBAD2609@nostrum.com> <087A34937E64E74E848732CFF8354B92098ADF6A@ESESSMB101.ericsson.se> <54C249E1.5050702@usdonovans.com> <AAADB66E-EFDF-4084-8D58-C98A6CD107A6@nostrum.com>
In-Reply-To: <AAADB66E-EFDF-4084-8D58-C98A6CD107A6@nostrum.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 7bit
X-OutGoing-Spam-Status: No, score=-2.9
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - biz131.inmotionhosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - usdonovans.com
X-Get-Message-Sender-Via: biz131.inmotionhosting.com: authenticated_id: srd+usdonovans.com/only user confirmed/virtual account not confirmed
Archived-At: <http://mailarchive.ietf.org/arch/msg/dime/uX11K9Js0i46nwFgMulzlpKg_-Y>
Cc: "dime@ietf.org" <dime@ietf.org>
Subject: Re: [Dime] DOIC M-Bit usage (was Re: WLGC #2 for draft-ietf-dime-ovli-06)
X-BeenThere: dime@ietf.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: Diameter Maintanence and Extentions Working Group <dime.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dime>, <mailto:dime-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/dime/>
List-Post: <mailto:dime@ietf.org>
List-Help: <mailto:dime-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dime>, <mailto:dime-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Jan 2015 15:41:46 -0000

On 1/23/15 9:15 AM, Ben Campbell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
> What's the point of 2)? It still introduces a way that a DOIC extension might cause the application transaction to fail. Do we want that?
>
> On Jan 23, 2015, at 7:17 AM, Steve Donovan <srdonovan@usdonovans.com> wrote:
>
> I would propose the following resolution to the M-bit issue:
>
> 1) We say that new extensions MUST NOT require the M-bit be set for new sub-AVPs of the OC-Supported-Features AVP or the OC-OLR AVP.
>
> 2) We indicate that if there a new extension includes behavior that requires 6733 defined M-bit behavior then the new extension can define a new AVP.  It just can't make that new AVP part of OC-Supported-Features or OC-OLR.
SRD> Well, there's nothing we can do to prevent it, which makes it 
redundant to even say it.  So, I plan to do 1).  I'll wait until Monday 
to publish -07 (assuming we have resolution to all the issues) to give 
our European friends a chance to comment.
>
> Does this address everyone's concerns?
>
> Steve
>
> On 1/23/15 3:46 AM, Maria Cruz Bartolome wrote:
> See below
> Thanks
>
> - -----Original Message-----
> From: Ben Campbell [mailto:ben@nostrum.com]
> Sent: jueves, 22 de enero de 2015 22:34
> To: Maria Cruz Bartolome
> Cc: Steve Donovan; dime@ietf.org
> Subject: DOIC M-Bit usage (was Re: [Dime] WLGC #2 for draft-ietf-dime-ovli-06)
>
> - -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA512
>
>
> On Jan 22, 2015, at 10:41 AM, Maria Cruz Bartolome <maria.cruz.bartolome@ericsson.com> wrote:
>
> A) About 'M' bit:
>
> My understanding of RFC6733:
>
>       The 'M' bit, known as the Mandatory bit, indicates whether the
>       receiver of the AVP MUST parse and understand the semantics of the
>       AVP including its content.  The receiving entity MUST return an
>       appropriate error message if it receives an AVP that has the M-bit
>       set but does not understand it.  An exception applies when the AVP
>       is embedded within a Grouped AVP.  See Section 4.4 for details.
>
>        4.4:
>    Receivers of a Grouped AVP that
>    does not have the 'M' (mandatory) bit set and one or more of the
>    encapsulated AVPs within the group has the 'M' (mandatory) bit set
>    MAY simply be ignored if the Grouped AVP itself is unrecognized.  The
>    rule applies even if the encapsulated AVP with its 'M' (mandatory)
>    bit set is further encapsulated within other sub-groups, i.e., other
>    Grouped AVPs embedded within the Grouped AVP.
>
>
> If the Grouped AVP does not have the 'M' bit set, but one (or more) of its sub-AVPs do have it, then the grouped AVP may be ignored (instead of sending an error) if the Grouped AVP itself is "unrecognized"
> But what "unrecognized" mean in this context? In my opinion, the grouped AVP is not recognized as long as mandatory sub-AVPs are missed, this includes conditionally mandatory (up to negotiation) sub AVPs.
> Then I would proposed a variant to your proposal 2 below:
>
> That's not what "unrecognized" typically means in IETF specs. The common usage is to mean that the recipient doesn't recognize it, or doesn't know what it means. This is  distinct from "malformed" meaning it wasn't constructed correctly.  Missing mandatory sub-AVPs would fall into the "malformed" category, not the "unrecognized" category. .
> By definition, a DOIC cannot claim OC-Supported-Features or OC-OLR as unrecognized.
>
>
> 3) sub-AVPs of DOIC grouped AVPs MUST NOT  have the m-bit set unless the sub-avp is mandatory or conditionally mandatory (i.e. part of an extension explicitly negotiated in the feature vector).
>
> Also, the M-bit doesn't mean the avp is mandatory to be present, just mandatory to be understood. By definition, you can't set the M-bit on an AVP that is not actually there.  (Other things may make it mandatory to be present, such as the feature or application definition, but that still doesn't necessarily mean it's mandatory to understand.) It's also possible that some new feature will involve an AVP that is not there all the time, but mandatory to understand when it is there..
>
> [MCruz] Any mandatory or conditionally mandatory AVP, it is as well mandatory to be understood by any DOIC-enabled.
>
> - -----BEGIN PGP SIGNATURE-----
> Comment: GPGTools - https://gpgtools.org
>
> iQIcBAEBCgAGBQJUwWy4AAoJEIBWSmyV89QNV70P/ji24iU2Wr93uGIjK79hSNIR
> Bnab4rva2MHeGufWvTzYsvXwCYUaWOeb7y4Z5T1dRgPOPw4JNKQ5cnoEMjIMmWJu
> J4ocoZlAR7ujKBOlTnvf1FlFEPDQ6emanx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