Re: [core] Suggestions re: how to implement HEAD semantics within COAP?

Likepeng <likepeng@huawei.com> Sat, 07 May 2011 02:56 UTC

Return-Path: <likepeng@huawei.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 CB519E0711 for <core@ietfa.amsl.com>; Fri, 6 May 2011 19:56:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.555
X-Spam-Level:
X-Spam-Status: No, score=0.555 tagged_above=-999 required=5 tests=[AWL=-1.049, BAYES_00=-2.599, MIME_BASE64_TEXT=1.753, MIME_CHARSET_FARAWAY=2.45]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aVBcG-RcpDL5 for <core@ietfa.amsl.com>; Fri, 6 May 2011 19:56:15 -0700 (PDT)
Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [119.145.14.64]) by ietfa.amsl.com (Postfix) with ESMTP id 044F4E0705 for <core@ietf.org>; Fri, 6 May 2011 19:56:15 -0700 (PDT)
Received: from huawei.com (szxga05-in [172.24.2.49]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LKT00IZB1HLVP@szxga05-in.huawei.com> for core@ietf.org; Sat, 07 May 2011 10:56:09 +0800 (CST)
Received: from szxeml205-edg.china.huawei.com ([172.24.2.119]) by szxga05-in.huawei.com (iPlanet Messaging Server 5.2 HotFix 2.14 (built Aug 8 2006)) with ESMTP id <0LKT00E1C1HKB8@szxga05-in.huawei.com> for core@ietf.org; Sat, 07 May 2011 10:56:09 +0800 (CST)
Received: from SZXEML401-HUB.china.huawei.com (10.82.67.31) by szxeml205-edg.china.huawei.com (172.24.2.57) with Microsoft SMTP Server (TLS) id 14.1.270.1; Sat, 07 May 2011 10:56:01 +0800
Received: from SZXEML506-MBS.china.huawei.com ([169.254.3.27]) by SZXEML401-HUB.china.huawei.com ([10.82.67.31]) with mapi id 14.01.0270.001; Sat, 07 May 2011 10:56:08 +0800
Date: Sat, 07 May 2011 02:56:08 +0000
From: Likepeng <likepeng@huawei.com>
In-reply-to: <FE8FCF1B-02E5-4328-9DD5-B487A237C0DF@tzi.org>
X-Originating-IP: [172.24.2.40]
To: Carsten Bormann <cabo@tzi.org>, Thomas Herbst <therbst@silverspringnet.com>
Message-id: <34966E97BE8AD64EAE9D3D6E4DEE36F2287166@SZXEML506-MBS.china.huawei.com>
MIME-version: 1.0
Content-type: text/plain; charset="gb2312"
Content-language: zh-CN
Content-transfer-encoding: base64
Accept-Language: zh-CN, en-US
Thread-topic: [core] Suggestions re: how to implement HEAD semantics within COAP?
Thread-index: AQHMDDcmrlDPWPWG3EaxVp9BYFWhbpSAqm2d
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
References: <C9E98E13.A74D%therbst@silverspringnet.com> <FE8FCF1B-02E5-4328-9DD5-B487A237C0DF@tzi.org>
Cc: core <core@ietf.org>
Subject: Re: [core] Suggestions re: how to implement HEAD semantics within COAP?
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: Sat, 07 May 2011 02:56:15 -0000

> There is also a proposal to provide an Option for CoAP to carry size information, draft-li-core-coap-size-option-00.txt -- we haven't had a discussion yet on whether this Option should be standardized or not.
>If size is indeed needed, Kepeng's draft may be the way to go.

Yes, people who have interest on this issue can review my draft and provide feedback:
 http://tools.ietf.org/id/draft-li-core-coap-size-option-00.txt

Thanks,
Kind Regards
Kepeng
________________________________________
发件人: core-bounces@ietf.org [core-bounces@ietf.org] 代表 Carsten Bormann [cabo@tzi.org]
发送时间: 2011年5月7日 5:46
到: Thomas Herbst
Cc: core
主题: Re: [core] Suggestions re: how to implement HEAD semantics within  COAP?

On May 6, 2011, at 20:39, Thomas Herbst wrote:

> Carsten -
>
> Are you suggesting there is no value in a constrained device having
> information about the size of a payload before making the request for that
> payload?

No, I'm not suggesting that -- that's exactly why link-format has the sz attribute.
There is also a proposal to provide an Option for CoAP to carry size information, draft-li-core-coap-size-option-00.txt -- we haven't had a discussion yet on whether this Option should be standardized or not.

I'm just not seeing that many HEAD requests out there outside link checkers/crawlers/performance monitors.

I this specific context, I'm trying to understand the use-case where somebody from the HTTP side (non-/less-constrained) would want to request through to the CoAP side to get a representation size first, instead of simply getting the resource representation.

Is it worth spending energy on supporting a HEAD-style request in CoAP?
So far, all indications have been that GET does what's needed, as CoAP resource representations are small.
If they aren't, you are getting the first block only (which is helped with Block2(SZX=0)); this contains crucial information such as Content-Type, just not size.
If size is indeed needed, Kepeng's draft may be the way to go.
But there never seemed to be a need for an outright HEAD in CoAP; this would be irrelevant optimization.
That's why I'm asking for use-cases -- theoretical needs are irrelevant for justifying the additional complexity.

Gruesse, Carsten


>
> tom
>
> On 5/6/11 9:20 AM, "Carsten Bormann" <cabo@tzi.org> wrote:
>
>> On May 6, 2011, at 17:54, Paul Duffy wrote:
>>
>>> The use case is HTTP HEAD into a COAP network to determine the size of
>>> a resource.
>>
>> HTTP HEAD gives you a content-length only if HTTP GET would have given
>> you a content-length.
>> So this usage of HTTP HEAD is a bit on thin ice on the HTTP side already.
>>
>> Can you explain the use case for "HTTP HEAD into a COAP network to
>> determine the size of a resource"?
>> Why would you ever want to do that?
>> And does this use case occur often enough to warrant any optimization?
>>
>> Gruesse, Carsten
>>
>> _______________________________________________
>> core mailing list
>> core@ietf.org
>> https://www.ietf.org/mailman/listinfo/core

_______________________________________________
core mailing list
core@ietf.org
https://www.ietf.org/mailman/listinfo/core