Re: [core] No-Response option and OSCORE

Jim Schaad <ietf@augustcellars.com> Thu, 10 May 2018 18:20 UTC

Return-Path: <ietf@augustcellars.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 79E9312EB5E; Thu, 10 May 2018 11:20:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, 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 4wcOwA2K_t5t; Thu, 10 May 2018 11:20:41 -0700 (PDT)
Received: from mail2.augustcellars.com (augustcellars.com [50.45.239.150]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id A7AF51270A3; Thu, 10 May 2018 11:20:40 -0700 (PDT)
Received: from Jude (73.180.8.170) by mail2.augustcellars.com (192.168.0.56) with Microsoft SMTP Server (TLS) id 15.0.1347.2; Thu, 10 May 2018 11:18:00 -0700
From: Jim Schaad <ietf@augustcellars.com>
To: 'Christian Amsüss' <christian@amsuess.com>, 'Francesca Palombini' <francesca.palombini@ericsson.com>
CC: draft-tcs-coap-no-response-option@ietf.org, core@ietf.org, 'Klaus Hartke' <hartke@projectcool.de>
References: <HE1PR07MB152939003ACA6963256A8E8498160@HE1PR07MB1529.eurprd07.prod.outlook.com> <CAAzbHvbgG-a9yY_k8zkpmzek7qp2Hs5P1=qMN=Zz77meLsqSRw@mail.gmail.com> <HE1PR07MB152949ADA4799F15E2630D5498EB0@HE1PR07MB1529.eurprd07.prod.outlook.com> <20180510114100.GA9530@hephaistos.amsuess.com>
In-Reply-To: <20180510114100.GA9530@hephaistos.amsuess.com>
Date: Thu, 10 May 2018 11:20:31 -0700
Message-ID: <00c001d3e88b$96722ec0$c3568c40$@augustcellars.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
X-Mailer: Microsoft Outlook 16.0
Thread-Index: AQKwyqfVoRTetNOnQR/pQa3rkbPo4gBcLc3EAuIqgv4CWeyUtaJCvgKw
Content-Language: en-us
X-Originating-IP: [73.180.8.170]
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/tz9mKp_hKkm_gly2gPrbhD10dG8>
Subject: Re: [core] No-Response option and OSCORE
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.22
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, 10 May 2018 18:20:42 -0000


> -----Original Message-----
> From: core <core-bounces@ietf.org> On Behalf Of Christian Amsüss
> Sent: Thursday, May 10, 2018 4:41 AM
> To: Francesca Palombini <francesca.palombini@ericsson.com>
> Cc: draft-tcs-coap-no-response-option@ietf.org; core@ietf.org; Klaus
Hartke
> <hartke@projectcool.de>
> Subject: Re: [core] No-Response option and OSCORE
> 
> Hello Francesca,
> 
> I've been reviewing the current OSCORE and stumbled upon the No-
> Resposne section I had previousy missed when working through the deltas.
> 
> Göran mentioned that No-Response had been discussed so I read through tis
> thread but found no points addressing those specific concerns -- could you
> have a look at those notes?
> 
> On Mon, Jan 15, 2018 at 01:34:28PM +0000, Francesca Palombini wrote:
> > Considering the part I had missed about congestion control, my new
> > proposal is: the client must set No-Response as inner and outer.
> 
> (Roughly copied from an earlier mail to Göran)
> 
> Why must this be set to the same as the current draft says? Assume I'm
> updating some value regularly and don't particularly care about short
> network outages as the next value will be sent soon anyway, but I do want
to
> know when the server won't accept any more updates. I would want to send
> a protected "NON POST No-Response:2.xx" request.
> 
> If I, as prescribed, set No-Response:2.xx both outer and inner, then if
the
> server answers protected-4.04 (which is outer-2.01), then the server may
> know to ignore the outer No-Response, but a surprised proxy would not and
> swallow the 4.04.

This is a huge problem and needs to be solved.

> 
> If only an inner No-Response:2.xx is were sent, the proxy expects an
> unconditional response, and might respond late with a 5.04 Gateway
> Timeout. (That's also bad but not as bad as the above).

I am not sure that I worry about this.  First I think that the proxy in this
case is being overly helpful.  Given that we are looking at a NON request,
it makes sense that there is no response ever coming back from anybody.  It
would be different if this were a CON request.  You are going to get the
exact same behavior from a proxy which does not implement the No-Response
option so this is not going to be new.

> 
> I'd suggest picking an outer value that is not specified yet (say, "1",
and call it
> "at the origin's disretion"). Without proxies, this will be ignored and
the origin
> looks at the inner one. Proxies would either fail with Bad Option (which
can
> be a desirable outcome, given that otherwise they won't be behaving
> properly) or (hopefully) forward it as "I know that this is a No-Response,
I
> can't tell the condition, but I'm prepared to receive a response if one
comes
> along but no response is OK as well".
> (RFC7967 has no provisions what to do if No-Response is known but its
value
> unspecified).

If you are going to do this, it might be better to say that you are not
interested in 8.xx messages which could be defined as being - no proxies are
to generate responses.

Jim

> 
> It's late and this is not a well-thought-through suggestion, so feel free
to
> ignore it. (Turns out it's not easy to make OSCORE work through proxies,
but
> then again, that's why we have it.)
> 
> Best regards
> Christian
> 
> --
> To use raw power is to make yourself infinitely vulnerable to greater
powers.
>   -- Bene Gesserit axiom