Re: [core] CoAP over TCP

Carsten Bormann <cabo@tzi.org> Tue, 11 November 2014 00:01 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B30C31A8761 for <core@ietfa.amsl.com>; Mon, 10 Nov 2014 16:01:32 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.55
X-Spam-Level:
X-Spam-Status: No, score=-0.55 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HELO_EQ_DE=0.35, J_BACKHAIR_44=1] 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 feLsDQoSB5XA for <core@ietfa.amsl.com>; Mon, 10 Nov 2014 16:01:31 -0800 (PST)
Received: from mailhost.informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) (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 A2CD61A3BA5 for <core@ietf.org>; Mon, 10 Nov 2014 16:01:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from smtp-fb3.informatik.uni-bremen.de (smtp-fb3.informatik.uni-bremen.de [134.102.224.120]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id sAB01F9F003969; Tue, 11 Nov 2014 01:01:15 +0100 (CET)
Received: from dhcp-9bf8.meeting.ietf.org (dhcp-9bf8.meeting.ietf.org [31.133.155.248]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3ABD3F4C; Tue, 11 Nov 2014 01:01:14 +0100 (CET)
Content-Type: text/plain; charset="windows-1252"
Mime-Version: 1.0 (Mac OS X Mail 8.0 \(1990.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <D0869870.3966%randy.turner@landisgyr.com>
Date: Mon, 10 Nov 2014 14:01:10 -1000
X-Mao-Original-Outgoing-Id: 437356870.660126-46c141e5a2ee39ec1e5acd9725fe501b
Content-Transfer-Encoding: quoted-printable
Message-Id: <03A02BCF-9C78-4A0F-A529-E3D6FFF795C5@tzi.org>
References: <EAEFE980-6DDA-4616-AEB0-AF1D23A6E552@tzi.org> <5E6DADEA-2A1B-4E38-AF83-D1ACB4C30428@tzi.org> <D0869870.3966%randy.turner@landisgyr.com>
To: "Turner, Randy" <Randy.Turner@landisgyr.com>
X-Mailer: Apple Mail (2.1990.1)
Archived-At: http://mailarchive.ietf.org/arch/msg/core/n1c9Cv-WlQpUrK9NoNXZM5_4Aa0
Cc: "core@ietf.org WG" <core@ietf.org>
Subject: Re: [core] CoAP over TCP
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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: <http://www.ietf.org/mail-archive/web/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: Tue, 11 Nov 2014 00:01:33 -0000

Hi Randy,

indeed, CoAP is designed for situations where constrained nodes are involved.
This does not mean, however, that the other node also needs to be constrained, or that we can’t have cloud-side infrastructure that processes CoAP interchanges.
Converting to HTTP is certainly an option, but why convert if the other node speaks CoAP, too.

Grüße, Carsten

> On 10 Nov 2014, at 11:32, Turner, Randy <Randy.Turner@landisgyr.com> wrote:
> 
> 
> Hi Carsten,
> 
> I wasn¹t aware that CoAP would exist (in any significant way) ³outside² of
> constrained environments ‹ I¹ve been thinking HTTP<->CoAP gateways at the
> edge of a constrained environment - only using ³CoAP² where the ³Co²
> requirement exists.  I¹m assuming CoAP in the cloud would only be for
> ³IoT-only² services ?
> 
> Thanks!
> Randy
> 
> On 11/10/14, 3:24 PM, "Carsten Bormann" <cabo@tzi.org> wrote:
> 
>> One more data point that came up in the APPAREA WG this morning:
>> 
>> Sam Ruby has now started an effort to find out how URI parsers actually
>> behave.
>> I¹m not sure that is the best link, but if interested maybe you can start
>> looking at
>> http://intertwingly.net/blog/2014/10/02/WHATWG-URL-vs-IETF-URI
>> 
>> Grüße, Carsten
>> 
>> 
>>> On 24 Oct 2014, at 06:11, Carsten Bormann <cabo@tzi.org> wrote:
>>> 
>>> In alternative transports, I believe we have three hot topics:
>>> 
>>> 1) General issues.  draft-silverajan-core-coap-alternative-transports
>>> is a good basis for this and we will do the call for adoption soon.
>>> 
>>> 2) CoAP over SMS.  This is also related to the question of DTLS over
>>> SMS.  We have a good draft for the former, which is mostly waiting for
>>> (1).  draft-fossati-dtls-over-gsm-sms merits some discussion.
>>> 
>>> 3) CoAP over TCP.  draft-bormann-core-coap-tcp-01 is a summary of the
>>> design choices. draft-tschofenig-core-coap-tcp-tls selects one option
>>> without explaining why.  draft-savolainen-core-coap-websockets (apart
>>> from being focused on web sockets, so it would need the addition of a
>>> length field) selects a different set of options, also not really
>>> explaining why.  This merits a discussion.
>>> 
>>> I believe we should have a quick round of discussion about (3).  CoAP
>>> over TCP is of strong interest to people building scalable cloud-side
>>> CoAP implementations.  CoAP over TCP also is a NAT traversal strategy
>>> (where the server builds the connection to a client in the cloud).
>>> Finally, CoAP over TCP can be useful to combine the better congestion
>>> control of TCP with the economy of CoAP.  So there are enough reasons to
>>> get this going.
>>> 
>>> The main questions I see are:
>>> 
>>> a) what is the delimiting mechanism?
>>>  ‹ length field
>>>    ‹ fixed 4-byte, fixed 2-byte, variable?
>>>  ‹ MINION-style (delimiters)
>>>  ‹ extending the payload marker
>>> b) what part of the CoAP header remains active over a reliable
>>> transport?  Can we lose
>>>  ‹ the message id,
>>>  ‹ the message type,
>>>  ‹ the version number?
>>> c) any negotiation/version indication mechanisms?
>>>  ‹ starttls???
>>>  ‹ server/client prompts
>>>  ‹ ALPN
>>>  ‹ other payloads, e.g. stream errors?
>>> 
>>> Grüße, Carsten
>>> 
>>> 
>>> 
>> 
>> _______________________________________________
>> core mailing list
>> core@ietf.org
>> https://www.ietf.org/mailman/listinfo/core
> 
> 
> P PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS EMAIL.
> 
> This e-mail (including any attachments) is confidential and may be legally privileged. If you are not an intended recipient or an authorized representative of an intended recipient, you are prohibited from using, copying or distributing the information in this e-mail or its attachments. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete all copies of this message and any attachments. Thank you.