Re: [core] I-D Action: draft-ietf-core-too-many-reqs-01.txt

Abhijan Bhattacharyya <abhijan.bhattacharyya@tcs.com> Fri, 29 June 2018 20:25 UTC

Return-Path: <prvs=7115da592=abhijan.bhattacharyya@tcs.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 3B014130E00 for <core@ietfa.amsl.com>; Fri, 29 Jun 2018 13:25:08 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=tcs.com
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 4ceQf66LNtKV for <core@ietfa.amsl.com>; Fri, 29 Jun 2018 13:25:05 -0700 (PDT)
Received: from indelg02.tcs.com (indelg02.tcs.com [203.200.109.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C9766124C04 for <core@ietf.org>; Fri, 29 Jun 2018 13:25:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tcs.com; i=@tcs.com; q=dns/txt; s=default2048; t=1530303905; x=1561839905; h=mime-version:in-reply-to:references:subject:from:to:cc: message-id:date; bh=tlqE+w5Q2lnnUVIl0Vh+LS/kBUs3mbZn6ES7TTraNak=; b=UtG60MvbcblEXsUutnBbWh7/oeQnEfDOTjr027e/kP1NHXGVXHWjSlaU tZtDGlWHlwi05ADubV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pwLyGCaQmFdoUUhUZnjkYHI4IeAQE
X-IronPort-AV: E=Sophos;i="5.51,287,1526322600"; d="scan'208,217";a="9063903"
MIME-Version: 1.0
Sensitivity:
Importance: Normal
X-Priority: 3 (Normal)
In-Reply-To: <C5051A18-FA18-459B-A5D8-4A410CC700A2@ericsson.com>
References: <C5051A18-FA18-459B-A5D8-4A410CC700A2@ericsson.com>, <153029370016.30341.4549082261554144546@ietfa.amsl.com>
From: Abhijan Bhattacharyya <abhijan.bhattacharyya@tcs.com>
To: Ari Keränen <ari.keranen@ericsson.com>
Cc: core <core@ietf.org>
Message-ID: <OF9FC3329E.2AA6C3D1-ON652582BB.006CCC70-652582BB.007025A5@tcs.com>
Date: Sat, 30 Jun 2018 01:54:56 +0530
X-Mailer: Lotus Domino Web Server Release 9.0.1FP8HF242 May 5, 2017
X-MIMETrack: Serialize by http on InKolM02/TCS(Release 9.0.1FP8HF242 | May 5, 2017) at 06/30/2018 01:54:56, Serialize complete at 06/30/2018 01:54:56, Itemize by http on InKolM02/TCS(Release 9.0.1FP8HF242 | May 5, 2017) at 06/30/2018 01:54:56, Serialize by Router on InKolM02/TCS(Release 9.0.1FP8HF242 | May 5, 2017) at 06/30/2018 01:54:57, Serialize complete at 06/30/2018 01:54:57
Content-Type: multipart/alternative; boundary="=_alternative 007025A2652582BB_="
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/O1Jc0Go7Zj9VblZnyY70gsur1bM>
Subject: Re: [core] I-D Action: draft-ietf-core-too-many-reqs-01.txt
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.26
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: Fri, 29 Jun 2018 20:25:08 -0000

Hi Ari,
This is indeed an useful addition. 
I would like to bring in an aspect which may be highly related to this. Since I was not actively involved in the earlier discussions related to this draft, first hand apologies if it is a repetition.

I would like to take clue from https://tools.ietf.org/html/draft-bormann-t2trg-stp-00 and think of a time-series transaction. There may be cases where the client is sending a series of information-parts to a resource in the remote server such that, the end application collects all the parts and arranges them in chronological order to continuously build the information-flow. In such a situation, every information-part may be transferred as an independent POST request by the client. Furthermore, to optimize the resource usage and satisfy throughput requirements, the client may send a significant part of these requests as NON with No-Response option (with dis-interest only in the 2.xx responses). However, this open-loop approach has a potential adverse effect in the form of blindly increasing the load on the server as well as congesting the network. This response code can be a saviour in such situations.

However,   Section 4 of the draft says: "If a client receives the 4.29 Response Code from a CoAP server to a request, it SHOULD NOT send the **same request** to the server before the time indicated in the Max-Age option has passed." 
The above text covers the case for usual independent sensor updates. But it exempts the situation narrated earlier. Note that, in that case the client  may not at all be interested to send the same request again. Rather, the client is sending another independent request (may be quicker than desired by the server). 

So, can the interpretation of this response code be extended a bit so that scenarios like this may also be covered? (This indicates that probably we need a little more than the HTTP counterpart. HTTP assumes an underlying layer of TCP which handles the flow rate, congestion control and is always a closed-loop system) .

Thank you. 
 
With Best Regard.
Abhijan Bhattacharyya
Associate Consultant
Scientist, TCS Research
Tata Consultancy Services
Building 1B,Ecospace
Plot -  IIF/12 ,New Town, Rajarhat,
Kolkata - 700160,West Bengal
India
Ph:- 033 66884691
Cell:- +919830468972
Mailto: abhijan.bhattacharyya@tcs.com
Website: http://www.tcs.com
____________________________________________
Experience certainty.	IT Services
Business Solutions
Consulting
____________________________________________


-----"core" <core-bounces@ietf.org> wrote: -----
To: core <core@ietf.org>
From: Ari Keränen 
Sent by: "core" 
Date: 06/29/2018 11:19PM
Subject: Re: [core] I-D Action: draft-ietf-core-too-many-reqs-01.txt

This version adds simply a hint that a server can use action payload with error response to give client guidance how to act (as discussed at the CoRE meeting in IETF 101). Based on all feedback so far the draft seems to be ready to move forward.


Cheers,
Ari

> On 29 Jun 2018, at 20.35, internet-drafts@ietf.org wrote:
> 
> 
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Constrained RESTful Environments WG of the IETF.
> 
>        Title           : Too Many Requests Response Code for the Constrained Application Protocol
>        Author          : Ari Keranen
> Filename        : draft-ietf-core-too-many-reqs-01.txt
> Pages           : 4
> Date            : 2018-06-29
> 
> Abstract:
>   A Constrained Application Protocol (CoAP) server can experience
>   temporary overload because one or more clients are sending requests
>   to the server at a higher rate than the server is capable or willing
>   to handle.  This document defines a new CoAP Response Code for a
>   server to indicate that a client should reduce the rate of requests.
> 
> 
> The IETF datatracker status page for this draft is:
> https://datatracker.ietf.org/doc/draft-ietf-core-too-many-reqs/
> 
> There are also htmlized versions available at:
> https://tools.ietf.org/html/draft-ietf-core-too-many-reqs-01
> https://datatracker.ietf.org/doc/html/draft-ietf-core-too-many-reqs-01
> 
> A diff from the previous version is available at:
> https://www.ietf.org/rfcdiff?url2=draft-ietf-core-too-many-reqs-01
> 
> 
> Please note that it may take a couple of minutes from the time of submission
> until the htmlized version and diff are available at tools.ietf.org.
> 
> Internet-Drafts are also available by anonymous FTP at:
> ftp://ftp.ietf.org/internet-drafts/
> 
> _______________________________________________
> 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
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain 
confidential or privileged information. If you are 
not the intended recipient, any dissemination, use, 
review, distribution, printing or copying of the 
information contained in this e-mail message 
and/or attachments to it are strictly prohibited. If 
you have received this communication in error, 
please notify us by reply e-mail or telephone and 
immediately and permanently delete the message 
and any attachments. Thank you