Re: [core] draft coap-size

Salvatore Loreto <salvatore.loreto@ericsson.com> Sun, 06 November 2011 11:09 UTC

Return-Path: <salvatore.loreto@ericsson.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 5F71421F848D for <core@ietfa.amsl.com>; Sun, 6 Nov 2011 03:09:00 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -105.324
X-Spam-Level:
X-Spam-Status: No, score=-105.324 tagged_above=-999 required=5 tests=[AWL=-1.175, BAYES_00=-2.599, MIME_CHARSET_FARAWAY=2.45, 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 w8df3hLvWLUW for <core@ietfa.amsl.com>; Sun, 6 Nov 2011 03:08:59 -0800 (PST)
Received: from mailgw9.se.ericsson.net (mailgw9.se.ericsson.net [193.180.251.57]) by ietfa.amsl.com (Postfix) with ESMTP id 124FC21F845D for <core@ietf.org>; Sun, 6 Nov 2011 03:08:58 -0800 (PST)
X-AuditID: c1b4fb39-b7b3eae00000252a-70-4eb66ac93035
Received: from esessmw0247.eemea.ericsson.se (Unknown_Domain [153.88.253.125]) by mailgw9.se.ericsson.net (Symantec Mail Security) with SMTP id 75.61.09514.9CA66BE4; Sun, 6 Nov 2011 12:08:57 +0100 (CET)
Received: from mail.lmf.ericsson.se (153.88.115.8) by esessmw0247.eemea.ericsson.se (153.88.115.94) with Microsoft SMTP Server id 8.3.137.0; Sun, 6 Nov 2011 12:08:57 +0100
Received: from nomadiclab.lmf.ericsson.se (nomadiclab.lmf.ericsson.se [131.160.33.3]) by mail.lmf.ericsson.se (Postfix) with ESMTP id 41076230D; Sun, 6 Nov 2011 13:08:57 +0200 (EET)
Received: from nomadiclab.lmf.ericsson.se (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id D7AC051A0D; Sun, 6 Nov 2011 13:08:56 +0200 (EET)
Received: from Salvatore-Loretos-MacBook-Pro.local (localhost [127.0.0.1]) by nomadiclab.lmf.ericsson.se (Postfix) with ESMTP id 47AD6515DF; Sun, 6 Nov 2011 13:08:56 +0200 (EET)
Message-ID: <4EB66AC7.1090700@ericsson.com>
Date: Sun, 06 Nov 2011 12:08:55 +0100
From: Salvatore Loreto <salvatore.loreto@ericsson.com>
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:7.0.1) Gecko/20110929 Thunderbird/7.0.1
MIME-Version: 1.0
To: Likepeng <likepeng@huawei.com>
References: <4EB58338.3080609@ericsson.com> <34966E97BE8AD64EAE9D3D6E4DEE36F2D08EF8@szxeml525-mbs.china.huawei.com>
In-Reply-To: <34966E97BE8AD64EAE9D3D6E4DEE36F2D08EF8@szxeml525-mbs.china.huawei.com>
Content-Type: text/plain; charset="GB2312"
Content-Transfer-Encoding: 8bit
X-Virus-Scanned: ClamAV using ClamSMTP
X-Brightmail-Tracker: AAAAAA==
Cc: "core@ietf.org" <core@ietf.org>
Subject: Re: [core] draft coap-size
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: Sun, 06 Nov 2011 11:09:00 -0000

Hi,

thanks for answering my questions, see more in line below

cheers

-- 
Salvatore Loreto
www.sloreto.com



On 11/5/11 9:28 PM, Likepeng wrote:
> Hello Salvatore,
>
>> I support the definition of the Size option as I think it is a useful option to be used in conjunction with Block. 
>> About the inclusion/merge of it in Block draft I don't care.
> Thanks for the review and the support. 
> I would prefer to be merged with Block draft, but if the WG decides to be separate, that is also fine to me.
>
>> 1) In section 2.2 
>>   The GET request including Size=0 is treated as a request to get the
>>   size of the resource representation (but not the resource payload).
>> this is a duplication as you can already obtain the size of the resource using the Link Forma "sz" attribute.
> Yes, but the resource size got from "sz" attribute is not accurate.
>
>> more the above paragraph is not fully consistent with the sentence in Section 4.2
>>   For a GET request, if it includes an empty Size option, the Size
>>   option MUST be included in the response.
>> the above sentence does not specify if the response include the actual resource representation or not.
> The response needs to include the actual resource representation for the indicated block number.
> I will fix the text. 

so you mean that a GET request including an empty Size option (or a
Size=0) will always include some payload
(i.e. the first block of the resource representation) or what...

I am OK with whatever you decide, but that should be clear in the text
and consistent in all the spec

>
>> 2) the following two paragraphs in Section 2.2 are not completely clear at least to me:
>>   If the Size option is specified it SHOULD be accurate at that time,
>>   and SHOULD NOT be an estimate.
>>   But due to the dynamic change of the resource data, the Size may not
>>   be accurate.  If the value of Size option is not the same as the
>>   actual transmitted data, the recipient MUST take the size of the
>>   actual transmitted data as accurate, and ignore the Size option.  In
>>   case that the recipient gets all the data but it is still smaller
>>   than the announced Size, the recipient SHOULD stop the transmission.
>>   If the recipient finds out the transmitted data reaches the Size
>>   limit, and there's more data left, the recipient SHOULD continue to
>>  transmit the remaining data.
> I mean, for the dynamic data, during the transmission, the resource size may be changed.
>
> I can revise the text to say:
> If the Size option is specified, it MUST be accurate at that time.
>
> And remove the second paragraph, because it is more like the implementation recommendation or strategy.

I don't think is an implementation recommendation,
IMO it should completely clear what happens when the Size changes during
a transfer (i.e. GET request)
for example the server could include in one of the answer transferring
one of the blocks the new Size...
however it is not clear when the Size changes if the changes in the
resource are only at the end of it...
it can also happen that the changes have effected some of the blocks
already transmitted
so what would be the behavior in this case


Cheers
/Sal

>
> Kind Regards
> Kepeng
>
> 发件人: core-bounces@ietf.org [core-bounces@ietf.org] 代表 Salvatore Loreto [salvatore.loreto@ericsson.com]
> 发送时间: 2011年11月6日 2:40
> 到: core@ietf.org; draft-li-core-coap-size-option@tools.ietf.org
> 主题: [core] draft coap-size
>
>
> Hi there
>
> I have read the 02 version of the draft 
> and I support the definition of the Size option as I think it is a useful option to be used in conjunction with Block.
> About the inclusion/merge of it in Block draft I don't care.
>
> some comments on the draft:
>
> 1) In section 2.2 
>
>
>    The GET request including Size=0 is treated as a request to get the
>    size of the resource representation (but not the resource payload).
>
> this is a duplication as you can already obtain the size of the resource using the Link Forma "sz" attribute.
>
> more the above paragraph is not fully consistent with the sentence in Section 4.2
>
>
>    For a GET request, if it includes an empty Size option, the Size
>    option MUST be included in the response.
>
> the above sentence does not specify if the response include the actual resource representation or not.
>
>
> 2) the following two paragraphs in Section 2.2 are not completely clear at least to me:
>
>
>    If the Size option is specified it SHOULD be accurate at that time,
>    and SHOULD NOT be an estimate.
>
>
>    But due to the dynamic change of the resource data, the Size may not
>    be accurate.  If the value of Size option is not the same as the
>    actual transmitted data, the recipient MUST take the size of the
>    actual transmitted data as accurate, and ignore the Size option.  In
>    case that the recipient gets all the data but it is still smaller
>    than the announced Size, the recipient SHOULD stop the transmission.
>    If the recipient finds out the transmitted data reaches the Size
>    limit, and there's more data left, the recipient SHOULD continue to
>    transmit the remaining data.
>  
> cheers
> Salvatore
>