Re: [core] #388 (coap-tcp-tls): Multiple versions over the same connection

Christian Groves <Christian.Groves@nteczone.com> Wed, 27 April 2016 11:22 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 BF50612D7B2; Wed, 27 Apr 2016 04:22:00 -0700 (PDT)
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 GxtuzLgj9tEh; Wed, 27 Apr 2016 04:21:59 -0700 (PDT)
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 8488612D7AE; Wed, 27 Apr 2016 04:21:58 -0700 (PDT)
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; bh=UBJn/VQceWTsaAg887rM/233xvHX/LZUD28ep4vEfHg=; b=mKoJCTEpjmrgmk+NAmKmBLmfTx eW9XlKmeuLKEwbvXGhzjexr03PUaSm2jWms6XNzylWTpBHA0aHRPXRcoXkGURSaJyDz3YA6hQRotd jHvMxWjO7BLr2xbkyEJWH+62IcUxMkkbDqd+k9U5hWiYq0/r47ayN6i27uGW8ulN677OMjH2cMFWN pQLlK/WjrP+A0BKd5rb6ifbRbkt9R6CPItfuhGihJDvqgFtknWC5QOdMqdYqsAMyy4ZoykSWPHpF7 OQHVgKMBjjj5Q6pPWfiyaQscg0zuBEgC87R0sfPYOO68ZdEO/zwQ1nwYStpZfHtG3E4X9x7oeXJpa WRaly5QA==;
Received: from ppp118-209-116-64.lns20.mel4.internode.on.net ([118.209.116.64]:63125 helo=[192.168.1.22]) by msh03.myshophosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.86_1) (envelope-from <Christian.Groves@nteczone.com>) id 1avNXX-002Lib-HL; Wed, 27 Apr 2016 21:21:55 +1000
To: Carsten Bormann <cabo@tzi.org>
References: <054.aef06920484b3c4a22ed81045af09fce@trac.tools.ietf.org> <069.fd4e0c5e045b353a56cb0fb14a518d64@trac.tools.ietf.org> <182ce2c0-a70d-a79a-b047-e801fb0ecf4e@nteczone.com> <572055D4.2030806@tzi.org>
From: Christian Groves <Christian.Groves@nteczone.com>
Message-ID: <38f0a660-5851-d816-fa7f-ec04c6e1e596@nteczone.com>
Date: Wed, 27 Apr 2016 21:21:52 +1000
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.0
MIME-Version: 1.0
In-Reply-To: <572055D4.2030806@tzi.org>
Content-Type: text/plain; charset="utf-8"; 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: <http://mailarchive.ietf.org/arch/msg/core/oAk4QuLgHO_n3LRZyfzKzFB7whk>
Cc: draft-ietf-core-coap-tcp-tls@ietf.org, core@ietf.org
Subject: Re: [core] #388 (coap-tcp-tls): Multiple versions over the same connection
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: Wed, 27 Apr 2016 11:22:01 -0000

Hello Carsten,

Thanks for the background. I agree version negotiation for a reliable 
would be done at the start at the start of the stream. I was thinking 
that having backward compatible versioning might simplify negotiation 
but it seems one can't make that assumption.

Regards, Christian

On 27/04/2016 4:01 PM, Carsten Bormann wrote:
> Hi Christian,
>
>> Is there any assumption that new CoAP versions need to be backward
>> compatible? I didn't see anything mentioned in RFC7252.
> UDP CoAP packets have a "version number" because there were two bits
> free in the header and we wanted to have a specific bit pattern in there
> so CoAP packets multiplex nicely with DTLS and STUN packets on the same
> port.
>
> Nobody had or has any idea what a future version of CoAP would look
> like; no need for one has come up*).  A different version number would
> only be used to ensure that current CoAP implementations never process
> messages in a future new format; CoAP's protocol evolution method is to
> use options.
>
> In a reliable stream (TCP/TLS/Websockets), there is no need to indicate
> a protocol version per-message; if version negotiation is ever required,
> this can be done at the start of the stream.
>
> Grüße, Carsten
>
> PS.: I'm not sure people have tried using different HTTP versions (1.0
> vs. 1.1) within the same TCP connection; not that HTTP versions ever
> meant that much...   (See the note in Section 3.5 of RFC 7540 for the
> HTTP/2 view on that.)
>
> *)  OK, maybe we want to have a longer message ID in a future high-rate
> variant of UDP CoAP.  No message-IDs are needed in TCP CoAP...
>