Re: [core] Request for clarification of NSTART and concurrent requests

Bryan Green <bryan@aetheros.com> Tue, 16 August 2022 23:47 UTC

Return-Path: <bryan@aetheros.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 499A0C14CF02 for <core@ietfa.amsl.com>; Tue, 16 Aug 2022 16:47:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=aetheros.com
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7Z95iiHgCRGr for <core@ietfa.amsl.com>; Tue, 16 Aug 2022 16:47:36 -0700 (PDT)
Received: from mail-qk1-x72a.google.com (mail-qk1-x72a.google.com [IPv6:2607:f8b0:4864:20::72a]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3BAC3C14F74D for <core@ietf.org>; Tue, 16 Aug 2022 16:47:36 -0700 (PDT)
Received: by mail-qk1-x72a.google.com with SMTP id j6so9335789qkl.10 for <core@ietf.org>; Tue, 16 Aug 2022 16:47:36 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aetheros.com; s=google; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc; bh=e0NLSqd8YUc+Vot1wZAq5dPz8JIYlDyAoaSscC1HK7Y=; b=shWwswJC+jss68ngL3NqsgF9Aujch//RLwBwC2mHSx3SRZFftqOvRCLcayeg/Pd061 PnEPTAUTqQJGZa+Ms95qp/pIx8uo+0vtBJ69k2ReVZEDwtYmMk6fdWZtpcfGvYQbEV2I myMg50i3C3fEox7I94zbBDgGZKiKlaDxvHBJmBdow82dNZp9SCxJ28abG4Xw4RjvOmPJ VoHYJNZeF8QVCW8cOUUsYuzRbFNestGFg2oygP3BRkk51bpQn6OW58iUk9fEgz8EYYnA tjtArnxkGtiuhGZoBvY5v1SA8jZCzD6duvLa74hMWaDWtzxcCo4bdhjwit/8ysiD9bVB wyDw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc; bh=e0NLSqd8YUc+Vot1wZAq5dPz8JIYlDyAoaSscC1HK7Y=; b=JSxKOFR3V26jmM6P+DusaKQ8NvLDMb9luXTePmmVUghNIxpB5xk+E62R8M5kqD52R9 qYt4od5MG+zexeIJfR9dFq50/961lQQRgv1xdgBXWe6DzcUlMfkdcu52XoYu+0lEoDqe E4Pw88kuuYPr7PIj+rwPqLUWvJwIcTLnusry2iUJZGPUdr6u9K65DcwDGo3zDN7kLk1P OBn3jaeQ8mjGNrpcQqNyJ8xwgUqjGdgo9HYzhieTaKfsOetj2Gl+KWbXlnoeNcrZuhqO qiNPy9N9Vh9cE1f9hyQZCkCBuv7Wt9pwX9Zxbe8yCGZqyuFVte7cMDvdNhyXzZj0qTNZ vK6w==
X-Gm-Message-State: ACgBeo0niaaKDxkW3xH1ZN9eoLrzx61qv9o2oBmmBLxZSMoz9gGme50f QzfbdexjbZZWs4hUMhCBSPbspVzNLS5iOcfrKrupBA==
X-Google-Smtp-Source: AA6agR6zxcP68cRE2XWLDzfDJOqebXqyZm8SrpbYHgBkvzHAAIoSQPT7sM1+EUy7my9HNxhUUAalEQeQ4X35pFVoW7w=
X-Received: by 2002:a37:aa88:0:b0:6ba:c582:2157 with SMTP id t130-20020a37aa88000000b006bac5822157mr16688890qke.228.1660693654751; Tue, 16 Aug 2022 16:47:34 -0700 (PDT)
MIME-Version: 1.0
References: <CAOxiEDYnxj5qtavNQ-vPKC_eo4NPJD8sEPZLjmYS5WCAsY1Tbw@mail.gmail.com> <8B08FFA2-7EB7-49EE-BEEA-7678DCAC9995@tzi.org> <C7D01F99-8710-44F8-8048-B6FC3D25EA3E@tzi.org> <CAOxiEDY0T6CgXPZwmwWazXYhNBXk+HFhoy+VBHZMdxkddj3mPA@mail.gmail.com> <CAOxiEDYZoR18Qm5=2G-f3q+9DZsPuFLFyhhwi7ijSZSFsUJD2g@mail.gmail.com> <ad426cc2-0282-304e-44d9-11462e015545@gmx.net> <1B6AF616-23CD-48CF-90CA-81139B87906D@tzi.org>
In-Reply-To: <1B6AF616-23CD-48CF-90CA-81139B87906D@tzi.org>
From: Bryan Green <bryan@aetheros.com>
Date: Tue, 16 Aug 2022 16:47:23 -0700
Message-ID: <CAOxiEDaKxzx1uLpACeoFrjEGAXkwKE_dw0FCSMs9-63gM1A_4A@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: Achim Kraus <achimkraus@gmx.net>, core@ietf.org
Content-Type: multipart/alternative; boundary="0000000000005f5ceb05e6645f67"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/_kxy5DpK-n6Ijmr_p4im1WZNhWU>
Subject: Re: [core] Request for clarification of NSTART and concurrent requests
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 16 Aug 2022 23:47:40 -0000

Thanks.  This is really helpful.

Suppose a server is processing a request from a client, and the client
sends a new request (new message id), but with the same token as the
outstanding request?  For example, the client may have restarted, used the
same source port, and chose the same token for a new request that it had
used in the previous request.  Would 4.29 be appropriate in this case as
well?  In addition, I think the server would have to avoid sending a
response when the outstanding request completed, because the client has
indicated by virtue of the token reuse that it has forgotten about the
original request.

Thanks,
Bryan



On Tue, Aug 16, 2022 at 6:13 AM Carsten Bormann <cabo@tzi.org> wrote:

> Thanks for the quick reply, Achim!
>
> Adding chapter and verse:
>
> > there are two options:
> >
> > - 4.29 "Too many requests"
>
> This is described in RFC 8516, which compares 4.29 to 5.03 by stating
> "However, the 4.29
>    code indicates that the too-frequent requests from the requesting
>    client are the reason for the overload.”
>
> So, the error is really client-induced and therefore has a 4.xx code.
>
> > - 5.03 "Service unavailable"
>
> This is described in Section 5.9.3.4 of RFC 7252:
> 5.03 Service Unavailable
>
> > both with a proper value for "Max. Age." (option 14).
>
> Which also explains the use of Max-Age, but RFC 8516 is a bit less terse
> about the use of that option (and the possible surprise by its default
> value).
>
> Grüße, Carsten
>
> >
> > best regards
> > Achim
> >
> > Am 15.08.22 um 22:40 schrieb Bryan Green:
> >> What would be the appropriate response to a CON request from a
> >> constrained coap server that had reached its limit of concurrent
> >> requests from a single client?
> >> For example if a server was only capable of handling one CON request per
> >> client at a time, and a CON request was received while the prior request
> >> was still being processed, should the server silently ignore the packet,
> >> or is there an appropriate response code to inform the client of the
> >> need to wait?
> >>
> >>
> >> On Mon, Aug 15, 2022 at 1:13 PM Bryan Green <bryan@aetheros.com
> >> <mailto:bryan@aetheros.com>> wrote:
> >>
> >>    Thank you very much for the response.  That answers my question.
> >>
> >>    -Bryan
> >>
> >>
> >>    On Mon, Aug 15, 2022 at 12:22 PM Carsten Bormann <cabo@tzi.org
> >>    <mailto:cabo@tzi.org>> wrote:
> >>
> >>        On 15. Aug 2022, at 21:19, Carsten Bormann <cabo@tzi.org
> >>        <mailto:cabo@tzi.org>> wrote:
> >>         >
> >>         > heavily suggested
> >>
> >>        heavily CONgested
> >>
> >>        Sorry about that surprising auto-correct.
> >>
> >>        Grüße, Carsten
> >>
> >>
> >> _______________________________________________
> >> 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
>
>