Re: [core] Ben Campbell's Discuss on draft-ietf-core-coap-tcp-tls-08: (with DISCUSS and COMMENT)

Carsten Bormann <cabo@tzi.org> Wed, 10 May 2017 08:20 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 040BA1270AC; Wed, 10 May 2017 01:20:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=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 Lbk9AVpDstyu; Wed, 10 May 2017 01:20:50 -0700 (PDT)
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 85500120227; Wed, 10 May 2017 01:20:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at informatik.uni-bremen.de
Received: from submithost.informatik.uni-bremen.de (submithost.informatik.uni-bremen.de [134.102.201.11]) by mailhost.informatik.uni-bremen.de (8.14.5/8.14.5) with ESMTP id v4A8KkXW002792; Wed, 10 May 2017 10:20:46 +0200 (CEST)
Received: from [192.168.217.124] (p5DC7F3A7.dip0.t-ipconnect.de [93.199.243.167]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by submithost.informatik.uni-bremen.de (Postfix) with ESMTPSA id 3wN8M21VF6zDHsy; Wed, 10 May 2017 10:20:46 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 10.3 \(3273\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <149438322150.24264.16123907495920056718.idtracker@ietfa.amsl.com>
Date: Wed, 10 May 2017 10:20:45 +0200
Cc: The IESG <iesg@ietf.org>, core-chairs@ietf.org, draft-ietf-core-coap-tcp-tls@ietf.org, core@ietf.org
X-Mao-Original-Outgoing-Id: 516097245.63054-eb72d2aa074b213c6ed072d86ca75c2e
Content-Transfer-Encoding: quoted-printable
Message-Id: <82019A15-D975-4D54-848E-1CB3D4C2E95C@tzi.org>
References: <149438322150.24264.16123907495920056718.idtracker@ietfa.amsl.com>
To: Ben Campbell <ben@nostrum.com>
X-Mailer: Apple Mail (2.3273)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/136mg3Mr0j4qQ9Sa_EdEBqrBMgY>
Subject: Re: [core] Ben Campbell's Discuss on draft-ietf-core-coap-tcp-tls-08: (with DISCUSS and COMMENT)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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: Wed, 10 May 2017 08:20:53 -0000

Hi Ben,

thank your for your review.

Before I start working on it in more detail, let me pick this one DISCUSS out because I think it is the most momentous issue that needs to be discussed:

> On May 10, 2017, at 04:27, Ben Campbell <ben@nostrum.com> wrote:
> 
> 2) It seems problematic to encode the transport choice in the URI
> scheme.
> Section 7 says "They are hosted
> in distinct namespaces because each URI scheme implies a distinct
> origin
> server." IIUC, this means any given resource can only be reached over a
> specific transport. That seems to break the idea of cross-transport
> proxies
> as discussed in section 7.
> 
> It also does not seem to fit with a primary motivation for this draft.
> That
> is, one might want to use TCP because of local NAT/FW issues. But if
> there is
> a resource with a "coap" scheme, I cannot switch to TCP when I'm behind
> a
> problematic middlebox, and have an expectation of reaching the same
> resource.


I would rephrase the issue as:
URIs don’t have a good place to put in transport hints.

(The definition of a transport hint in a URI would be information that lets me set up specific transports without creating a separate resource each time the values of that transport hint differ.)

Note that the main use case for the document at hand is one where the client may not be able to reach the server on the “main” transport (CoAP over UDP), so negotiation/upgrade(*) mechanisms are not solving the problem.

The solutions that people are talking about in our domain are about carrying transport alternatives around together.
E.g., see draft-silverajan-core-coap-protocol-negotiation-05.txt, which provides a way to find out about links from a set of links (the resource directory) while specifying a transport type. [It may be instructive to go through previous versions of this document just to see what we also have tried to do.]

What we have right now in draft-ietf-core-coap-tcp-tls is what we think is the least ugly way to solve the problem.
The WG is well aware about its problems.
We’d rather have a mechanism like transport hints, but we did not find a solution that would not need to update the web architecture.

Grüße, Carsten

(*) This is not an “upgrade” in the sense of going to a higher version of something in any case; it is just an alternative transport.