Re: [Ace] Review draft-ietf-ace-coap-est

Jim Schaad <ietf@augustcellars.com> Mon, 09 July 2018 12:20 UTC

Return-Path: <ietf@augustcellars.com>
X-Original-To: ace@ietfa.amsl.com
Delivered-To: ace@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 11981130E3E; Mon, 9 Jul 2018 05:20:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0
X-Spam-Level:
X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-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 gXNe9HV6yfGA; Mon, 9 Jul 2018 05:20:37 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8EAAC130EE7; Mon, 9 Jul 2018 05:20:36 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Mon, 9 Jul 2018 05:16:44 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: consultancy@vanderstok.org
CC: draft-ietf-ace-coap-est@ietf.org, 'ace' <ace@ietf.org>
References: <032f01d41140$20027c80$60077580$@augustcellars.com> <58f0553599ed74abd4b97db321cb5f1f@bbhmail.nl> <000a01d4139b$12a0be50$37e23af0$@augustcellars.com> <96c584403058b520874889c881cd8665@bbhmail.nl>
In-Reply-To: <96c584403058b520874889c881cd8665@bbhmail.nl>
Date: Mon, 09 Jul 2018 05:20:02 -0700
Message-ID: <02f701d4177f$2d1dcc40$875964c0$@augustcellars.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="----=_NextPart_000_02F8_01D41744.80C0F010"
X-Mailer: Microsoft Outlook 16.0
Content-Language: en-us
Thread-Index: AQKjE10J+6girvZOsYQUQD5x+QOohAJu3JrlAVJ6lF8CfFx/jKK26OZw
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/ace/CfgQEOwoWEOkhNGmC6ah3RYRsjg>
Subject: Re: [Ace] Review draft-ietf-ace-coap-est
X-BeenThere: ace@ietf.org
X-Mailman-Version: 2.1.27
Precedence: list
List-Id: "Authentication and Authorization for Constrained Environments \(ace\)" <ace.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ace>, <mailto:ace-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ace/>
List-Post: <mailto:ace@ietf.org>
List-Help: <mailto:ace-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ace>, <mailto:ace-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 09 Jul 2018 12:20:41 -0000

 

 

From: Peter van der Stok <stokcons@bbhmail.nl> 
Sent: Monday, July 9, 2018 1:01 AM
To: Jim Schaad <ietf@augustcellars.com>
Cc: consultancy@vanderstok.org; draft-ietf-ace-coap-est@ietf.org; 'ace' <ace@ietf.org>
Subject: Re: [Ace] Review draft-ietf-ace-coap-est

 

 

* In section 4.1 I have a question about what you are using for payload content encoding.  Part of this might just be a question of how you plan to move from ASN.1 to CBOR at some point in the future.  I think that it would necessitate doing new media-types in that event.  You appear to be doing a CBOR bstr wrapping on the ASN.1 encoding payload.  I don't believe that there is any reason for doing this.  I would expect that the payload would be the ASN.1 w/o any ASN.1.  It is highly possible that I am just mis-reading what the text says and this is what you say.

<pvds>

What I wanted to do, and did not express very well.

Keep the ASN.1 structure of the payload; (re-using code)

Use straight binary coding instead of the base64-encoded (30% payload reduction)

Wrap the binary in a CBOR major type 2 h'xxx' notation. (compatibility with multipart)

Not sure if this needs a new media type, the http content-coding and transfer-coding registries were not very helpful.

</pvds>

[JLS]  I do not believe that the wrapping of content with the CBOR binary text wrapping is needed at this point.  If that is needed for the multi-part wrapping, then it is the job of the multi-part wrapping to deal with this problem.  Multipart needs to be able to say I have a multipart of <plain text, json> neither of which are CBOR objects.  Therefor there is no reason for you to use a CBOR wrapper for this and not just use the binary value.

 


<pvds>
You are right of course, the CBOR wrapping is not needed outside the multipart media type.
However, CBOR wrapping for all payloads, reduces the choices when decoding the payload; They all start the same.
And it adds 2-3 bytes on many.
</pvds>

[JLS]  I don’t follow this at all.  How I read this statement is

I have a binary value and I need to look at the content type to figure out what ASN.1 structure it is and decode it.  This is very hard.  So I am going to change this to

I need to look at the content type to figure out that I have a CBOR bstring value.  It is easy to remove the CBOR bstring value.  I now have a binary value and I need to look at the content type to figure out what ASN.1 structure it is and decode it.  This is somehow easier.