Re: [core] 答复: draft coap-size

ma yc <ycma610103@gmail.com> Thu, 10 November 2011 03:46 UTC

Return-Path: <ycma610103@gmail.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 321BB1F0C34 for <core@ietfa.amsl.com>; Wed, 9 Nov 2011 19:46:01 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.048
X-Spam-Level:
X-Spam-Status: No, score=0.048 tagged_above=-999 required=5 tests=[AWL=-3.647, BAYES_00=-2.599, CHARSET_FARAWAY_HEADER=3.2, MIME_8BIT_HEADER=0.3, MIME_CHARSET_FARAWAY=2.45, RCVD_IN_DNSWL_LOW=-1, SARE_SUB_ENC_GB2312=1.345]
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 VzHLmfUizhGu for <core@ietfa.amsl.com>; Wed, 9 Nov 2011 19:46:00 -0800 (PST)
Received: from mail-yw0-f44.google.com (mail-yw0-f44.google.com [209.85.213.44]) by ietfa.amsl.com (Postfix) with ESMTP id 0B4851F0C38 for <core@ietf.org>; Wed, 9 Nov 2011 19:45:59 -0800 (PST)
Received: by ywt34 with SMTP id 34so229710ywt.31 for <core@ietf.org>; Wed, 09 Nov 2011 19:45:59 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; bh=lNnsoPsoFEdveB/z9tnSKkNNdx1dH9F0PQaBe6BZDF8=; b=WABSxNMWGRK1BWxMWVUTlEkvt5IZnqt715A5h1MxrGir/9lhVqIBc1rg+7d3V2PZhu Ow+hbaVw/N0hKt07KuQ42pvEIuKAmZw3XLtRbobNs3GL1nGg7nVzZnvbwDINjMbyJdRI oG6XZZuAzynh3D+hqe85yS62Gkq+0pZan+5mY=
MIME-Version: 1.0
Received: by 10.101.137.38 with SMTP id p38mr2541602ann.33.1320896759503; Wed, 09 Nov 2011 19:45:59 -0800 (PST)
Received: by 10.236.208.6 with HTTP; Wed, 9 Nov 2011 19:45:59 -0800 (PST)
In-Reply-To: <3615F3CCD55F054395A882F51C6E5FDA181FB2AB@szxeml513-mbx.china.huawei.com>
References: <4EB58338.3080609@ericsson.com> <34966E97BE8AD64EAE9D3D6E4DEE36F2D08EF8@szxeml525-mbs.china.huawei.com> <4EB66AC7.1090700@ericsson.com> <3615F3CCD55F054395A882F51C6E5FDA181FB2AB@szxeml513-mbx.china.huawei.com>
Date: Thu, 10 Nov 2011 11:45:59 +0800
Message-ID: <CAMuyTSXtMqFKsb1SMB+7Bwi59yht2PO+MLOoFixYTpCH1w-t+w@mail.gmail.com>
From: ma yc <ycma610103@gmail.com>
To: TianLinyi <tianlinyi@huawei.com>
Content-Type: text/plain; charset="GB2312"
Content-Transfer-Encoding: quoted-printable
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: Thu, 10 Nov 2011 03:46:01 -0000

Hi, Linyi

please see in line.

Thank you.
Regards
Yuanchen


在 2011年11月6日 下午9:31,TianLinyi <tianlinyi@huawei.com> 写道:
> Hi, all
>
> I believe the size option should be used in case the data is not changing during the whole transaction. If it changes, the previously transferred block may be useless. This happens regardingless whether the size option is accurate or not.
>
> For example, if the coap server is capturing a video when you initial the block tranfer at 18:00 GMT you get a video until that time. Even though the video is growing you will only get that snapshot. When you initial a new block transfer you will get a new one.

I am not sure about this scenario.

You plan to use CoAP to carry video as payload?
In current CoAP spec the media type does not
include the media stream. Do you intend to
add new media type or i miss something?

>
> We may need a new mechanism to indicate the current transferred block is no longer valid a new transaction is needed.
>
> Cheers,
> Linyi
>
> ________________________________________
> 发件人: core-bounces@ietf.org [core-bounces@ietf.org] 代表 Salvatore Loreto [salvatore.loreto@ericsson.com]
> 发送时间: 2011年11月6日 19:08
> 到: Likepeng
> Cc: core@ietf.org
> 主题: Re: [core] draft coap-size
>
> 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
>>
>
> _______________________________________________
> 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
>