Re: [core] [Dots] Large asynchronous notifications under DDoS: New BLOCK Option?

Jon Shallow <supjps-ietf@jpshallow.com> Thu, 09 April 2020 11:27 UTC

Return-Path: <supjps-ietf@jpshallow.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 5DF2F3A0873; Thu, 9 Apr 2020 04:27:19 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.899
X-Spam-Level:
X-Spam-Status: No, score=-1.899 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
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 aZ7PmeWvDlA9; Thu, 9 Apr 2020 04:27:16 -0700 (PDT)
Received: from mail.jpshallow.com (mail.jpshallow.com [217.40.240.153]) (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 0A4A83A086C; Thu, 9 Apr 2020 04:27:15 -0700 (PDT)
Received: from mail2.jpshallow.com ([192.168.0.3] helo=N01332) by mail.jpshallow.com with esmtp (Exim 4.92.3) (envelope-from <jon.shallow@jpshallow.com>) id 1jMVKy-0008Dd-LV; Thu, 09 Apr 2020 12:27:12 +0100
From: Jon Shallow <supjps-ietf@jpshallow.com>
To: 'Achim Kraus' <achimkraus@gmx.net>, 'Carsten Bormann' <cabo@tzi.org>, mohamed.boucadair@orange.com, cabo@tzi.org, dots@ietf.org, core@ietf.org
References: <787AE7BB302AE849A7480A190F8B933031490173@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <019301d60d05$d87fcca0$897f65e0$@jpshallow.com> <a36c6114-d979-e04a-7806-3ad350208e4a@gmx.net> <566C58A5-0373-4D34-91F8-7B664423E373@tzi.org> <787AE7BB302AE849A7480A190F8B933031491200@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <023101d60d92$3642ebb0$a2c8c310$@jpshallow.com> <f105cf6a-da87-d8da-35db-07975f064a94@gmx.net> <787AE7BB302AE849A7480A190F8B933031491DA6@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <1A59D5BE-8826-45FE-B373-CF335831B3A4@tzi.org> <787AE7BB302AE849A7480A190F8B933031491E13@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <2bd7cba1-7ab7-f028-aa96-6d654c7ffed4@gmx.net> <787AE7BB302AE849A7480A190F8B93303149212D@OPEXCAUBMA2.corporate.adroot.infra.ftgroup> <031201d60e50$0ee1a610$2ca4f230$@jpshallow.com> <7CF651E2-A6FE-43C7-A5D5-660D4CC92ED4@tzi.org> <031401d60e51$19baca20$4d305e60$@jpshallow.com> <690a94f3-d50f-c5c6-da3b-a95c2d32e756@gmx.net>
In-Reply-To: <690a94f3-d50f-c5c6-da3b-a95c2d32e756@gmx.net>
Date: Thu, 09 Apr 2020 12:27:17 +0100
Message-ID: <032401d60e61$d31a48a0$794ed9e0$@jpshallow.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 14.0
Thread-Index: AQGFUV4cZbdAMYpJNEeLLEh4F2cKcwJH0mmYAXSXKBYCBDJ5uAHQ6UBdAs6uzeEBHFMdkwLQdkVUAqMYe3ECV69PdAIFDGHKAs8bwmsB5SxqYgHP8cZzAhrr978B1E28kKgUGb2w
Content-Language: en-gb
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/X9T977nZTTPl-NvA8NRyyQTvaCo>
Subject: Re: [core] [Dots] Large asynchronous notifications under DDoS: New BLOCK Option?
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
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: Thu, 09 Apr 2020 11:27:19 -0000

Hi Achim,

I hear you.

How about extending the NonBLock2 option to contain more information.  E.g. 

   o  the size of the block (SZX);

   o  whether more blocks are following (M);

   o  the relative number of the block (NUM) within a sequence of blocks
      with the given size.

   o  the block set id (like the IPv4 fragment id field) for re-assembly.

Thus making the nonblock2 option length 0 to, say, 7 bytes long. 

Regards

Jon 

> -----Original Message-----
> From: Dots [mailto: dots-bounces@ietf.org] On Behalf Of Achim Kraus
> Sent: 09 April 2020 12:02
> To: Jon Shallow; 'Carsten Bormann'; mohamed.boucadair@orange.com;
> dots@ietf.org; core@ietf.org
> Subject: Re: [Dots] [core] Large asynchronous notifications under DDoS:
> New BLOCK Option?
> 
> Hi Jon,
> Hi Med,
> 
>  > (1) The use of nonblock2 option with a "relax" of the behavior at the
> server to send the fragments with the same token and without waiting for
> GETs.
> 
> The point will be, how this relaxation actually looks like.
> FMPOV, the hard thing will be:
> The server MUST not make assumptions about the token, except that it is
> copied from the clients request into the response.
> 
> Currently the followup blocks considered to have a empty token (Jon's
> last note). That will hit any pending client requests with such a empty
> token. The matching is considered to be done via the etag. But RFC 7252
> defines the etag with:
> "An entity-tag is intended for use as a resource-local identifier".
> Though it's an resource local identifier, in my opinion, you can't use
> that to relate your blocks. The right blocks may have that etag, but
> others responses may have it as well (therefore "resource-local
> identifier").
> So, in my opinion, to know, to which resource the etags belongs to, the
> related request is required. Usually matched by the token, but that
> token is missing, because the client's request is missing.
> 
> 
> best regards
> Achim
> 
> Am 09.04.20 um 11:27 schrieb Jon Shallow:
> > Hi Carsten,
> >
> > I stand corrected - a token with 0 length.
> >
> > Regards
> >
> > Jon
> >
> >> -----Original Message-----
> >> From: Dots [mailto: dots-bounces@ietf.org] On Behalf Of Carsten
> Bormann
> >> Sent: 09 April 2020 10:23
> >> To: Jon Shallow
> >> Cc: mohamed.boucadair@orange.com; dots@ietf.org; core@ietf.org;
> Achim
> >> Kraus
> >> Subject: Re: [Dots] [core] Large asynchronous notifications under DDoS:
> >> New BLOCK Option?
> >>
> >> On 2020-04-09, at 11:20, Jon Shallow <supjps-ietf@jpshallow.com> wrote:
> >>>
> >>> With the new nonblock2 option, the non-head blocks can have no token
> >>
> >> CoAP messages always have a token.
> >>
> >> Grüße, Carsten
> >>
> >> _______________________________________________
> >> Dots mailing list
> >> Dots@ietf.org
> >> https://www.ietf.org/mailman/listinfo/dots
> >
> 
> _______________________________________________
> Dots mailing list
> Dots@ietf.org
> https://www.ietf.org/mailman/listinfo/dots