Re: [core] Handling tokens for No-response
Likepeng <likepeng@huawei.com> Wed, 23 April 2014 00:57 UTC
Return-Path: <likepeng@huawei.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id B5BDA1A02C2 for <core@ietfa.amsl.com>; Tue, 22 Apr 2014 17:57:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.473
X-Spam-Level:
X-Spam-Status: No, score=-4.473 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RP_MATCHES_RCVD=-0.272, SPF_PASS=-0.001] autolearn=ham
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 tNY7jnS_rKuA for <core@ietfa.amsl.com>; Tue, 22 Apr 2014 17:57:49 -0700 (PDT)
Received: from lhrrgout.huawei.com (lhrrgout.huawei.com [194.213.3.17]) by ietfa.amsl.com (Postfix) with ESMTP id 02E5A1A02B4 for <core@ietf.org>; Tue, 22 Apr 2014 17:57:46 -0700 (PDT)
Received: from 172.18.7.190 (EHLO lhreml203-edg.china.huawei.com) ([172.18.7.190]) by lhrrg01-dlp.huawei.com (MOS 4.3.7-GA FastPath queued) with ESMTP id BFY57416; Wed, 23 Apr 2014 00:57:40 +0000 (GMT)
Received: from LHREML406-HUB.china.huawei.com (10.201.5.243) by lhreml203-edg.huawei.com (172.18.7.221) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 23 Apr 2014 01:56:44 +0100
Received: from SZXEMA405-HUB.china.huawei.com (10.82.72.37) by lhreml406-hub.china.huawei.com (10.201.5.243) with Microsoft SMTP Server (TLS) id 14.3.158.1; Wed, 23 Apr 2014 01:57:38 +0100
Received: from SZXEMA501-MBS.china.huawei.com ([169.254.2.158]) by SZXEMA405-HUB.china.huawei.com ([10.82.72.37]) with mapi id 14.03.0158.001; Wed, 23 Apr 2014 08:57:31 +0800
From: Likepeng <likepeng@huawei.com>
To: weigengyu <weigengyu@bupt.edu.cn>, "Dijk, Esko" <esko.dijk@philips.com>, Abhijan Bhattacharyya <abhijan.bhattacharyya@tcs.com>
Thread-Topic: [core] Handling tokens for No-response
Thread-Index: AQHPV98wMk72MR7gF0im1hGW5O55IJsTL/yAgABKdgCAADiXAIAAYosAgAEAToCAACOYgIAADOSAgAdy6YCAACzrgIAA/xmAgACH+7A=
Date: Wed, 23 Apr 2014 00:57:30 +0000
Message-ID: <34966E97BE8AD64EAE9D3D6E4DEE36F252B22B60@SZXEMA501-MBS.china.huawei.com>
References: <OF9E00143C.03625C33-ON65257CBA.004282B1-65257CBA.0045E992@tcs.com> <D60519DB022FFA48974A25955FFEC08C05A9DB25@SAM.InterDigital.com> <OF855A25E8.B6A83917-ON65257CBC.00343045-65257CBC.00354F4C@tcs.com> <031DD135F9160444ABBE3B0C36CED61816A146F1@AMSPRD9003MB066.MGDPHG.emi.philips.com> <D60519DB022FFA48974A25955FFEC08C05A9DC28@SAM.InterDigital.com> <CDCC486D03EE47AEA8C9ED1943C0A3C5@WeiGengyuPC> <OFDC0CC0CF.898F2B17-ON65257CBD.003F6700-65257CBD.0043F4E6@tcs.com> <E7BD7704-A036-4737-874D-93A58F413224@tzi.org> <031DD135F9160444ABBE3B0C36CED61816A14E84@AMSPRD9003MB066.MGDPHG.emi.philips.com> <031DD135F9160444ABBE3B0C36CED61816A1507A@AMSPRD9003MB066.MGDPHG.emi.philips.com> <403D1CF4497D40529FC2E6138311A813@WeiGengyuPC>
In-Reply-To: <403D1CF4497D40529FC2E6138311A813@WeiGengyuPC>
Accept-Language: zh-CN, en-US
Content-Language: zh-CN
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.66.167.122]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: http://mailarchive.ietf.org/arch/msg/core/_ctrKKX1iPOYn6WqNJSJAITxrGo
Cc: "core@ietf.org" <core@ietf.org>
Subject: Re: [core] Handling tokens for No-response
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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: Wed, 23 Apr 2014 00:57:55 -0000
> Could anyone help to tell what does "An empty token value" in CoAP -18 mean? > Is it the zero length token or the value of token being zero? In my understanding, "empty token value" means zero-length token. Kind Regards Kepeng > -----邮件原件----- > 发件人: core [mailto:core-bounces@ietf.org] 代表 weigengyu > 发送时间: 2014年4月23日 8:47 > 收件人: Dijk, Esko; Abhijan Bhattacharyya > 抄送: core@ietf.org > 主题: Re: [core] Handling tokens for No-response > > Hi all, > > I agree that No-Response may need for some situations. > > But the different between zero length of token and the value of token being > zeron should be clear. > > Could anyone help to tell what does "An empty token value" in CoAP -18 > mean? > Is it the zero length token or the value of token being zero? > > Regards, > > Gengyu > Network Technogy Center > School of Computer > Beijing University of Posts and Telecommunications > > -----原始邮件----- > From: Dijk, Esko > Sent: Tuesday, April 22, 2014 5:34 PM > To: Abhijan Bhattacharyya > Cc: core@ietf.org > Subject: Re: [core] Handling tokens for No-response > > Hello Abhijan, > > I forgot to mention that using the No-Response Option is not a guarantee > that no response will come. It actually MAY come since the Option is elective. > That is something that needs to be taken into account by a client in its Token > re-use strategy. If not it leads to interoperability issues, or not? > E.g. "client expects no answer to its request with Token=0, so it sends out a > new request with Token=0, but server does not recognize No-Response option, > and sends a response, then the client receives the old delayed response with > Token=0 instead of the newer response with same Token". > > Esko > > -----Original Message----- > From: core [mailto:core-bounces@ietf.org] On Behalf Of Dijk, Esko > Sent: Tuesday, April 22, 2014 08:53 > To: Carsten Bormann; Abhijan Bhattacharyya > Cc: core@ietf.org > Subject: Re: [core] Handling tokens for No-response > > Hi, > > if there's no time limit that can be defined for Token re-use, what time > would an implementer of a client need to choose? (I know we chose not to > define 'patience' in CoAP, but an implementer would still need to make a sane > choice here.) Can we argue that Patience i.e. max response delay will be "a few > minutes" and hence Token can be re-used safely after a time far longer than > that, say 15 minutes? > > For those cases where the implementer of the CoAP client knows that a > response may take very long (e.g. see OMA LWM2M case, "queue mode" > function, where a response could take e.g. one day) he could adapt the > Patience to something much longer. > > Would that be a feasible approach? > I feel that it would be beneficial if the No-Response draft would say something > about this Token re-use for unicast and multicast NON requests. > If several people in the CoRE WG saw it wrong, it may be worth pointing out as > well to a non-CoRE audience ;) > > Esko > > -----Original Message----- > From: Carsten Bormann [mailto:cabo@tzi.org] > Sent: Thursday, April 17, 2014 15:08 > To: Abhijan Bhattacharyya > Cc: weigengyu; Dijk, Esko; Rahman, Akbar; core@ietf.org > Subject: Re: [core] Handling tokens for No-response > > On 17 Apr 2014, at 14:22, Abhijan Bhattacharyya > <abhijan.bhattacharyya@tcs.com> wrote: > > > We cannot, as a general proposition, get rid of tokens while using > > No-response considering potential use of this option with a GET for > > proactive cancellation of an observe session (Ref: <1> section 3.8 of > > draft-ietf-core-observe-13 and > > <2>http://www.ietf.org/mail-archive/web/core/current/msg05331.html). > > A GET request to cancel an observe session must carry a token to > > associate itself with the existing observe session. > > While this is true, this is not the point that I was making. > I was pointing out that a request that is defined in such a way that it MAY elicit > a response (depending on some condition unknown to the client at the > time) generates hardship for the client, because in the absence of a response it > does not know whether it can retire the token or still has to expect a response > for that. > > Now if the client does not care about whether any response coming back is > related back to the right request, it can reuse tokens at liberty. > (Including the zero-length token, which is in no way special, except that it is > indeed shorter than any other token.) > > > So, as elaborated by Esko, possibly it would be good to suggest some > > time-out (so its a MAY and not a MUST to give flexibility to the > > application developer as pointed out by Akbar ). The present draft > > adapts the definition of NON_LIFETIME as the reuse interval for message IDs. > > Would it be a good idea to adapt the same definition as the re-use > > interval for tokens also? The definition of NON_LIFETIME encompasses > > EXCHANGE_LIFETIME as well. > > In CoAP, we have timers at the message layer, not at the request/response > layer. > Most clients will have a "patience" up to which they will expect a response, but > we currently do not expose this at the protocol level. > (With some new option, the client could pose a deadline to the server, or the > server could promise a deadline to the client. > http://tools.ietf.org/html/draft-bormann-coap-misc-26#appendix-B.4 has > more about that.) > > Gr.AN|N_e, Carsten > > > ________________________________ > The information contained in this message may be confidential and legally > protected under applicable law. The message is intended solely for the > addressee(s). If you are not the intended recipient, you are hereby notified > that any use, forwarding, dissemination, or reproduction of this message is > strictly prohibited and may be unlawful. If you are not the intended recipient, > please contact the sender by return e-mail and destroy all copies of the > original message. > > _______________________________________________ > 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 > > _______________________________________________ > core mailing list > core@ietf.org > https://www.ietf.org/mailman/listinfo/core
- [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response Rahman, Akbar
- Re: [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response Dijk, Esko
- Re: [core] Handling tokens for No-response Rahman, Akbar
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response Carsten Bormann
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response Dijk, Esko
- Re: [core] Handling tokens for No-response Dijk, Esko
- Re: [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response Likepeng
- Re: [core] Handling tokens for No-response Dijk, Esko
- Re: [core] Handling tokens for No-response Dijk, Esko
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response Carsten Bormann
- Re: [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response Abhijan Bhattacharyya
- Re: [core] Handling tokens for No-response weigengyu
- Re: [core] Handling tokens for No-response weigengyu