Re: [core] Fwd: New Version Notification for draft-groves-coap-webrtcdc-01.txt

Christian Groves <Christian.Groves@nteczone.com> Sat, 12 November 2016 10:54 UTC

Return-Path: <Christian.Groves@nteczone.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 44C1F129A7B for <core@ietfa.amsl.com>; Sat, 12 Nov 2016 02:54:10 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.79
X-Spam-Level:
X-Spam-Status: No, score=-1.79 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, T_DKIM_INVALID=0.01] autolearn=no autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=nteczone.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 TmtM2x_Z_vKw for <core@ietfa.amsl.com>; Sat, 12 Nov 2016 02:54:09 -0800 (PST)
Received: from msh03.myshophosting.com (msh03.myshophosting.com [101.0.109.158]) (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 53885129A79 for <core@ietf.org>; Sat, 12 Nov 2016 02:54:09 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nteczone.com; s=default; h=Content-Transfer-Encoding:Content-Type: In-Reply-To:MIME-Version:Date:Message-ID:From:Cc:References:To:Subject:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=6kO4jyx8ysBlkqh60Ib7V5AUNtK9o18tVDUwcj5V3ko=; b=q7VPTSXzq2aKRzYyLPaw/GGbWO sHKgeXWJr0zqKpV0m97IU3AazvLKsUvEspXv/eDgRI4zMb2DOiI0voTLK5xRpDWzF8ziSz2tYhFnh QEmt8sqKIHr4qwiZSmIsAtbg6yN3Vfyf6wyJ4zYdaHrWzhtL7f2KZsM6eO8uqhL9kYypXdmYe+hYz 0U8Vs8/p9Q1/KbHmzjqRu60U8/dUgA4ke6yo8yNi2e64E9JwXsDj4vLI0YGYvsD+hC2m325tppGuG zEJgpvK0DXOLH2EweIfpT5ZRZtg1hv6MeEt2HA4X1EaH7m0qPFlL8vnnGF2XpdLynaSwlV4jGyOL6 I6j2999A==;
Received: from [58.120.104.2] (port=50548 helo=[192.168.101.221]) by msh03.myshophosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.87) (envelope-from <Christian.Groves@nteczone.com>) id 1c5Vwh-000pvH-Kf; Sat, 12 Nov 2016 21:54:04 +1100
To: Christian Amsüss <c.amsuess@energyharvesting.at>
References: <147669671885.4619.17683716724186582695.idtracker@ietfa.amsl.com> <29f46b0d-5791-46f2-9c52-881a9bd9f1a5@nteczone.com> <20161110144655.7bpfbd5btuvnfzaa@hephaistos.amsuess.com>
From: Christian Groves <Christian.Groves@nteczone.com>
Message-ID: <d90e27e3-12f3-c84d-8d6b-793dab94d134@nteczone.com>
Date: Sat, 12 Nov 2016 19:53:54 +0900
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0
MIME-Version: 1.0
In-Reply-To: <20161110144655.7bpfbd5btuvnfzaa@hephaistos.amsuess.com>
Content-Type: text/plain; charset="windows-1252"; format="flowed"
Content-Transfer-Encoding: 8bit
X-AntiAbuse: This header was added to track abuse, please include it with any abuse report
X-AntiAbuse: Primary Hostname - msh03.myshophosting.com
X-AntiAbuse: Original Domain - ietf.org
X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12]
X-AntiAbuse: Sender Address Domain - nteczone.com
X-Get-Message-Sender-Via: msh03.myshophosting.com: authenticated_id: christian.groves@nteczone.com
X-Authenticated-Sender: msh03.myshophosting.com: christian.groves@nteczone.com
X-Source:
X-Source-Args:
X-Source-Dir:
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/-8K96FEyctsHDiInsB8_btt5T1c>
Cc: core <core@ietf.org>
Subject: Re: [core] Fwd: New Version Notification for draft-groves-coap-webrtcdc-01.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 12 Nov 2016 10:54:10 -0000

Hello Christian,

Thanks for reviewing the draft and providing comments. Please see my 
replies below.

Regards, Christian


On 10/11/2016 11:46 PM, Christian Amsüss wrote:
> Hello Christian,
>
> On Wed, Oct 19, 2016 at 10:23:03AM +0200, Christian Groves wrote:
>> FYI, I've submitted a revision to the CoAP over WebRTC draft. The changes
>> are mainly based on feedback that it should align with the packet format in
>> draft-ietf-core-coap-tcp-tls.
> I've read through the CoAP over WebRTC draft in preparation of a pending
> review of draft-silverajan-core-coap-protocol-negotiation-04, and
> stumbled upon two points that to me need clarification:
>
>
> 3.6 Figure 3 shows the TCP-TLS message format in its 8-bit extended
> length form (first len=13, followed by 8 bit after TKL). As webrtcdc-01
> mandates length to be set to 0 (btw, why "shall" and not "SHALL"?), a
> package would never look as in the figure. I'd suggest that the figure
> show the layout as mandated for this use, or be more generic by dropping
> the "=13" and and "(8-bit)" parts.
[CNG] Yes I agree. I thought the same when preparing the slides for the 
meeting. I'll fix it in the next version.
>
>
> 3.6 on WebRTC strings seems to indicate to me that for a UTF-8 payload,
> sending the whole CoAP package (ie. header + options + payload) in a
> single WebRTC sting. What is to happen with token and options, which in
> general are not valid UTF-8? Are WebRTC components required to support
> processing arbitrary octet sequences in string messages, and if yes, how
> do they wind up in applications? Or are the octets of the token and
> options areas supposed to be unicode codepoints from 0 to 255 that are
> encoded in utf-8, which is odd in my opinion, and would furthermore
> negate the advantages of not having to do encoding conversion.
[CNG] My understanding is that the WebRTC API 
(https://www.w3.org/TR/webrtc/ see the send method) largely copies the 
Websockets API (e.g. 
https://www.w3.org/TR/websockets/#dom-websocket-send) with regards to 
sending data and the intention would be to convert to unicode characters.
>
> (If there are no good reasons for it, I'd suggest to drop it entirely
> and limit CoAP over WebRTC to "WebRTC Binary" messages, among other
> things because mixing Unicode strings with BERT is bound to create
> broken implementations that count unicode characters instead of yet
> again accessing the encoded data and reading its length in bytes).
[CNG] I'm happy to minimise "options". If people are happy to go with 
binary then we could recommend it. It might be worth also making this 
recommendation in draft-ietf-core-coap-tcp-tls with regards to the use 
of websockets.

>
>
> 3.7: I think that Uri-Host and Uri-Port are very relevant, at least in
> the case when one of the RTC endpoints is acting as a CoAP proxy.
>
> As for determining the host by using the host portion of the stream: How
> does there come a host portion from WebRTC? In the Websocket port, the
> "Host" HTTP header provides a default for the Uri-Host CoAP header, but
> Websockets have a defined server, and WebRTC is client to client. Do the
> clients exchange host names at all, and is it made sure that they agree
> on what the host name for the connection is?
[CNG] WebRTC first uses an application protocol between the peers to 
establish a session, e.g. SIP/SDP. This establishment makes use of ICE 
to determine the media transport addresses between the peers. The "host" 
could be derived from this process. That's what triggered my author's 
note. As you've mentioned I also think the Uri-host and Uri-post are 
relevant that's why I said that there's no impact. It makes sense to 
de-couple the CoAP and WebRTC protocol "machinery".
>
>
> Best regards
> Christian
>