Re: [Dime] [dime] #48: Setting M-Bit gives wrong semantics

Jouni Korhonen <jouni.nospam@gmail.com> Fri, 21 March 2014 17:44 UTC

Return-Path: <jouni.nospam@gmail.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 DBECA1A0904 for <dime@ietfa.amsl.com>; Fri, 21 Mar 2014 10:44:36 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, SPF_PASS=-0.001] autolearn=ham
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 7VVKJKzXVnNP for <dime@ietfa.amsl.com>; Fri, 21 Mar 2014 10:44:33 -0700 (PDT)
Received: from mail-pa0-x22d.google.com (mail-pa0-x22d.google.com [IPv6:2607:f8b0:400e:c03::22d]) by ietfa.amsl.com (Postfix) with ESMTP id 445031A07A0 for <dime@ietf.org>; Fri, 21 Mar 2014 10:44:30 -0700 (PDT)
Received: by mail-pa0-f45.google.com with SMTP id kl14so2698594pab.32 for <dime@ietf.org>; Fri, 21 Mar 2014 10:44:21 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=EHAa8nKzSq4sOGENwHAvgMoJs9swtr5UKQiNugWQ2Vg=; b=oxl0GlkFW0A3vAQ+sezR7l7eEL5qvR68ZjYN2+VE+cZXY1wPLXv609euS3IdW6BuL0 5cbioTb/FCfiVpyVprWfKSoE5/PjTPB/bT0zxhWIQY32tArRGdXXzCsU80bDDPjXMPA0 DGCF29R7hMg4SyIpit1cQwf2CSL09vBpex15TWtDhQLmFLtAuXpeOr5QzGGCij9CYtrn 1QM2prdLB7NDUE/Bh10t/h63a4oBO/tuVm/FyZvUkpk7gFTemMjh9nInHVwnZI8dTuqm tenNOxd+nTUBRg7q84+ZvxKvi+58aZA2E4ixBNcXtTyyfjk93tJDzkFM4QCzN2KezZiL WFqQ==
X-Received: by 10.68.235.6 with SMTP id ui6mr53799689pbc.45.1395423860997; Fri, 21 Mar 2014 10:44:20 -0700 (PDT)
Received: from [172.23.208.47] ([125.35.60.218]) by mx.google.com with ESMTPSA id vx10sm29351371pac.17.2014.03.21.10.44.18 for <multiple recipients> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 21 Mar 2014 10:44:20 -0700 (PDT)
Content-Type: text/plain; charset="us-ascii"
Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\))
From: Jouni Korhonen <jouni.nospam@gmail.com>
In-Reply-To: <752FBBF3-DF13-4BCC-A613-E61D00038E2E@nostrum.com>
Date: Sat, 22 Mar 2014 01:43:52 +0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <6A4050BC-908A-439C-BF41-2992CF0F58B6@gmail.com>
References: <057.cca16f1268987a869c0055728f3d7793@trac.tools.ietf.org> <752FBBF3-DF13-4BCC-A613-E61D00038E2E@nostrum.com>
To: Ben Campbell <ben@nostrum.com>
X-Mailer: Apple Mail (2.1510)
Archived-At: http://mailarchive.ietf.org/arch/msg/dime/IT2pyzXtt_2m98U2UDpifOxTz3A
Cc: dime@ietf.org
Subject: Re: [Dime] [dime] #48: Setting M-Bit gives wrong semantics
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, 21 Mar 2014 17:44:37 -0000

Ben,

On Mar 18, 2014, at 1:59 AM, Ben Campbell <ben@nostrum.com> wrote:

> 
> Hi,
> 
> In the London meeting, I agreed that this issue was invalid based on statements in the room that the 6733 correct treatment of an unknown mandatory AVP inside a grouped AVP was to ignore the grouped AVP.
> 
> On rereading that section of RFC 6733, I disagree with that interpretation. Section 4.4 says:
> 
>> 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.
> 
> 
> That text only applies for _unrecognized_ grouped AVPs. The case in question is when you _recognize_ an optional grouped AVP, but do not recognize a mandatory AVP imbedded in it. The exception in 4.4 does not seem to cover that case.
> 
> So I no longer believe that the issue is invalid. I think the best option is to simply forbid setting of the m-bit on any DOIC related AVP.
> 
> To address other comments on the issue:
> 
> Consider the case of a Diameter _relay_ that supports DOIC. It is not aware of any application-specific rules about m-bits. It receives an OC-Supported-Features or an OC-OLR that has a mandatory AVP that it doesn't recognize. Logically, it should probably ignore the entire OC-Supported-Features or OC-OLR grouped-AVP. But it won't. Being a relay, it's not going to reject the message. Rather it's likely to try to apply the OC-Supported-Features or OC-OLR incorrectly.

RFC6733 also says that relays perform not do any application level
processing. If a relay supports DOIC and does something goofy that
is left for implementation, we should no care nor try to fix the
situation. The implementation is already bending the rules in that
case.

- Jouni


> 
> 
> On Feb 7, 2014, at 4:10 PM, dime issue tracker <trac+dime@grenache.tools.ietf.org> wrote:
> 
>> #48: Setting M-Bit gives wrong semantics
>> 
>> Multiple sections indicate that a new application that incorporates DOIC
>> can set the M-Bit on DOIC sub-avps. I don't think this ever does the right
>> thing.
>> 
>> IIUC, If a node that otherwise supports DOIC encounters a DOIC avp that it
>> doesn't understand, and has the M-Bit set, it will cause a failure of the
>> application command. I don't think we want the lack of support of some
>> DOIC feature or extension to ever cause an application-level failure.  I
>> think we are looking for something that would just cause the OLR to be
>> ignored.
>> 
>> -- 
>> -------------------------+-------------------------------------------------
>> Reporter:               |      Owner:  draft-docdt-dime-
>> ben@nostrum.com        |  ovli@tools.ietf.org
>>    Type:  defect       |     Status:  new
>> Priority:  major        |  Milestone:
>> Component:  draft-       |    Version:  1.0
>> docdt-dime-ovli        |   Keywords:
>> Severity:  Active WG    |
>> Document               |
>> -------------------------+-------------------------------------------------
>> 
>> Ticket URL: <http://trac.tools.ietf.org/wg/dime/trac/ticket/48>
>> dime <http://tools.ietf.org/wg/dime/>
>> 
>> _______________________________________________
>> DiME mailing list
>> DiME@ietf.org
>> https://www.ietf.org/mailman/listinfo/dime
> 
> _______________________________________________
> DiME mailing list
> DiME@ietf.org
> https://www.ietf.org/mailman/listinfo/dime