Re: [core] question on draft-softgear-core-coapa-00 (CoAP/A)

Carsten Bormann <cabo@tzi.org> Mon, 05 August 2013 11:46 UTC

Return-Path: <cabo@tzi.org>
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 AD87821F9E5A for <core@ietfa.amsl.com>; Mon, 5 Aug 2013 04:46:57 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -106.249
X-Spam-Level:
X-Spam-Status: No, score=-106.249 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, HELO_EQ_DE=0.35, RCVD_IN_DNSWL_MED=-4, USER_IN_WHITELIST=-100]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id GrcFWx3ocxvm for <core@ietfa.amsl.com>; Mon, 5 Aug 2013 04:46:51 -0700 (PDT)
Received: from informatik.uni-bremen.de (mailhost.informatik.uni-bremen.de [IPv6:2001:638:708:30c9::12]) by ietfa.amsl.com (Postfix) with ESMTP id A9AF521F9A4B for <core@ietf.org>; Mon, 5 Aug 2013 04:46:41 -0700 (PDT)
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 informatik.uni-bremen.de (8.14.4/8.14.4) with ESMTP id r75BkZmu004605 for <core@ietf.org>; Mon, 5 Aug 2013 13:46:35 +0200 (CEST)
Received: from [172.24.101.75] (unknown [193.104.215.11]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by smtp-fb3.informatik.uni-bremen.de (Postfix) with ESMTPSA id A8370B31; Mon, 5 Aug 2013 13:46:34 +0200 (CEST)
Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\))
Content-Type: text/plain; charset="iso-8859-1"
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <87txj4idl8.fsf@tzi.org>
Date: Mon, 05 Aug 2013 13:46:33 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <75A38C36-EC1B-486B-8366-DAC8911E23AC@tzi.org>
References: <87txj4idl8.fsf@tzi.org>
To: Olaf Bergmann <bergmann@tzi.org>
X-Mailer: Apple Mail (2.1508)
Cc: core@ietf.org
Subject: Re: [core] question on draft-softgear-core-coapa-00 (CoAP/A)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.12
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: Mon, 05 Aug 2013 11:46:58 -0000

On Aug 5, 2013, at 13:25, Olaf Bergmann <bergmann@tzi.org> wrote:

> Given I want to contact an ASCII-only
> node (e.g. a sensor listed in my home's RD), where do I know that I need
> to encode the request in CoAP/A? (Or, when using transcoding proxies,
> where does the proxy know that it has to encode/decode the message?)

If you are a client, that information should come out of the transport selection information in the URI (which we haven't completed discussing).

If you are a server that speaks a protocol like TCP that would be useful for carrying ASCII streams but also for a "native" CoAP version, there probably should be some detection mechanism.
In draft-bormann-core-coap-tcp-00, there are signatures (not in the crypto sense) that could be used for that detection.

The signature that I proposed happens to be valid base64url (except for whitespace (\r\n), which probably should be ignored by a CoAP/A implementation), so it would need to be changed to work as a differentiator.

To make CoAP/A a bit more robust, I also would propose
-- allowing # at the start of a message (effectively, reliably discarding zero-length messages), so implementations can make a habit of start- and end-delimiting messages.
-- considering adding a checksum (Hmm.)

Grüße, Carsten