Re: [core] FW: New Version Notification for draft-thaler-core-redirect-00.txt

Christian Amsüss <c.amsuess@energyharvesting.at> Thu, 10 November 2016 18:17 UTC

Return-Path: <c.amsuess@energyharvesting.at>
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 CD13A1295D9 for <core@ietfa.amsl.com>; Thu, 10 Nov 2016 10:17:28 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9] 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 mi3GcXh6w6ts for <core@ietfa.amsl.com>; Thu, 10 Nov 2016 10:17:26 -0800 (PST)
Received: from prometheus.amsuess.com (prometheus.amsuess.com [5.9.147.112]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A1BD5129547 for <core@ietf.org>; Thu, 10 Nov 2016 10:17:26 -0800 (PST)
Received: from poseidon-mailhub.amsuess.com (unknown [IPv6:2a02:b18:c13b:8001:a800:ff:fede:b1bd]) by prometheus.amsuess.com (Postfix) with ESMTPS id 8D2D7402FA for <core@ietf.org>; Thu, 10 Nov 2016 19:17:24 +0100 (CET)
Received: from poseidon-mailbox.amsuess.com (poseidon-mailbox.amsuess.com [10.13.13.231]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id CB8296B for <core@ietf.org>; Thu, 10 Nov 2016 19:17:22 +0100 (CET)
Received: from hephaistos.amsuess.com (hermes.amsuess.com [10.13.13.254]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id 65CF83D1 for <core@ietf.org>; Thu, 10 Nov 2016 19:17:22 +0100 (CET)
Received: (nullmailer pid 8678 invoked by uid 1000); Thu, 10 Nov 2016 18:17:21 -0000
Date: Thu, 10 Nov 2016 19:17:21 +0100
From: Christian Amsüss <c.amsuess@energyharvesting.at>
To: "core@ietf.org" <core@ietf.org>
Message-ID: <20161110181721.wbbegintsshz7ugv@hephaistos.amsuess.com>
References: <147372053832.3711.14886788365598645137.idtracker@ietfa.amsl.com> <CY1PR03MB2265024F98CF464AACD241A2A3FF0@CY1PR03MB2265.namprd03.prod.outlook.com> <57D794D2.7060303@tzi.org> <CY1PR03MB2265ACF39893532F3750FCEBA3FE0@CY1PR03MB2265.namprd03.prod.outlook.com> <57D86108.8060101@tzi.org> <CY1PR03MB2265510622B439F986643040A3F00@CY1PR03MB2265.namprd03.prod.outlook.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="baoyhl2pcv2mtjtp"
Content-Disposition: inline
In-Reply-To: <CY1PR03MB2265510622B439F986643040A3F00@CY1PR03MB2265.namprd03.prod.outlook.com>
User-Agent: NeoMutt/20161104 (1.7.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/OvuhHJOt9G2ky5KFHou9h5pmqjw>
Subject: Re: [core] FW: New Version Notification for draft-thaler-core-redirect-00.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: Thu, 10 Nov 2016 18:17:29 -0000

Hello Dave,

(To: dropped due to very strict Microsoft mail servers -- hope you
notice this reply anyway)

On Thu, Sep 15, 2016 at 01:43:28AM +0000, Dave Thaler wrote:
> Redirects allow the following optimized behavior...
> New clients do (multicast) GET /oic/res (or /oic/res?rt=bar), and the responses would be:
>
> a) legacy servers, and any new servers that are not configured to be privacy-sensitive, respond with actual content,
>       thus keeping latency and messages to a minimum
>
> b) new privacy-sensitive server would instead respond with a redirect to a coaps://<ipaddr>:<port>/oic/res
>       A subsequent coaps GET /oic/res to that endpoint returns actual data (just as unicast coaps always did before).

Does the (legacy) client's request have an "Accept" header of
application/link-format or absent? (The ?rt= seems to indicate that).

If yes, I think that the appropriate response in the b) situation would
be

<coaps://my-address/oic/res>;ct="40"

(preferably with whatever if= data that would lead to discovery of
/oic/res if it wasn't a hardcoded URI anyway; why not just .wk/c?).

Additional information according to a future version of
draft-silverajan-core-coap-protocol-negotiation-04 could be provided as
well, but the above is IMO sufficient to make the OCF use case work, and
seem not to incur much overhead compared to the Location-Scheme response
(I didn't do the exact byte counting on "://" vs. option number).

Would that work for you?

Best regards
Christian

-- 
Christian Amsüss                      | Energy Harvesting Solutions GmbH
founder, system architect             | headquarter:
mailto:c.amsuess@energyharvesting.at  | Arbeitergasse 15, A-4400 Steyr
tel:+43-664-97-90-6-39                | http://www.energyharvesting.at/
                                      | ATU68476614