[core] PUBSUB-08: Semantics of 4.29 response

Christer Holmberg <christer.holmberg@ericsson.com> Wed, 24 July 2019 10:43 UTC

Return-Path: <christer.holmberg@ericsson.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 5560212014F for <core@ietfa.amsl.com>; Wed, 24 Jul 2019 03:43:10 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=ericsson.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 FmXu77fzVQ5K for <core@ietfa.amsl.com>; Wed, 24 Jul 2019 03:43:07 -0700 (PDT)
Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50064.outbound.protection.outlook.com [40.107.5.64]) (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 18E0C1200B7 for <core@ietf.org>; Wed, 24 Jul 2019 03:43:06 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=DZDMTlU0yLmv2xGtfxfnm3J4PHG0NVke5wqlPSz9IoHY8dAAIG7UrJ8Dj6tBx4XzymmNJa8WCxAbA91dZtaSOC6YCj3yT2luADRGzXEAF8z5hpq9bcTR65oyFAit3Vlr+W5kwfvC+mWy19oBcJZWosNuyhn77BUQ6SeNHW88XdL96EApJJf4FpGFwJyw0R7K4J5j1FB+cRjReNH3pjjKkxLVSRg9r9DP0jS/fyojfb1kUnJQt6JioHASHrum/UiCGKn9Y3K6+aao/hcP2N1aAEKy8JGKAI/VWaE/I4B1ASSqHG1E+XXKd+I6EMHSemQ+/aC8DqlNqgBcPUJh5VuVrA==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8HEPJdkRy686mYJgSn2ax3ayt/iwuGMvwmh1GQ/cwbg=; b=RZueCA5yw/Wi7axxcDCOh6EQiXB1KFjUzqTzjggXW0tVvdjoH22Ph9pmQCsjF5Ao5oUV7FXom9nM/ePs/mUR0ub5Gna0FneRPn6G6JfbfX6BI2QEWKrHSP25TuCYaE0nFT2y5eYwTbwXDsGJIeFAhot0MEixlN/Mvs7gUPMcFVbDRAt2CSylxCeUmj8zDN368XNZGAfOeDMdjBbWd37kG3jaNPnVJ1Nfbx3xUt8ElwVIrNrjUfiZKx6uvXxG9SDtcjELnXsS3btAviTi/cWioy4+JGyITv+aCps2fQz3x1e40A4TOb10+/F9fKqJKyYSwmeXCsH4NLOPJq0SYSTwbw==
ARC-Authentication-Results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=ericsson.com;dmarc=pass action=none header.from=ericsson.com;dkim=pass header.d=ericsson.com;arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ericsson.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8HEPJdkRy686mYJgSn2ax3ayt/iwuGMvwmh1GQ/cwbg=; b=egnwn0BJS4JYZsq6UpPFIK9dibuX2UeB/RMqeoQ1s1MR2vnpSYzeTv1pDVHJ6ZuNuTzUr6ydeVyfviV7JgZCaJsUKggMKWDdkCvdeqCN2AFeniGa83/tvnFKOCZY5zQnC0PbJGgDZrp3szph2OON8Ur4535gTJTsfrvhgc2OdV4=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB3147.eurprd07.prod.outlook.com (10.170.245.21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2115.10; Wed, 24 Jul 2019 10:43:04 +0000
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::ec0d:f9d3:7159:ba7]) by HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::ec0d:f9d3:7159:ba7%6]) with mapi id 15.20.2115.005; Wed, 24 Jul 2019 10:43:04 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: "core@ietf.org" <core@ietf.org>
Thread-Topic: PUBSUB-08: Semantics of 4.29 response
Thread-Index: AQHVQgyS0SE0jcaEhUybQ8c3bMQhqw==
Date: Wed, 24 Jul 2019 10:43:04 +0000
Message-ID: <CE91DE03-778C-4B23-A7DD-C79137364D76@ericsson.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1a.0.190609
authentication-results: spf=none (sender IP is ) smtp.mailfrom=christer.holmberg@ericsson.com;
x-originating-ip: [89.166.49.243]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 9d14b3c3-ad35-43a7-0d8e-08d71023b54f
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:HE1PR07MB3147;
x-ms-traffictypediagnostic: HE1PR07MB3147:
x-microsoft-antispam-prvs: <HE1PR07MB314785C0D71B6F7D1237FCAF93C60@HE1PR07MB3147.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0108A997B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(189003)(199004)(5640700003)(478600001)(26005)(58126008)(44832011)(790700001)(316002)(6116002)(476003)(1730700003)(8676002)(2616005)(256004)(486006)(186003)(3846002)(66066001)(33656002)(81166006)(81156014)(6306002)(71200400001)(6486002)(71190400001)(86362001)(76116006)(6512007)(54896002)(99286004)(66446008)(66476007)(8936002)(64756008)(6506007)(66556008)(6436002)(53936002)(2906002)(25786009)(14454004)(7736002)(36756003)(2351001)(5660300002)(6916009)(102836004)(66946007)(68736007)(2501003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3147; H:HE1PR07MB3161.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: Z3pgNG7MpTBoOedXa6kh5AJfhjzNmCjHAJn59GSCcGGvb/uNaprxCff15+ngLBD/jS/f0DnbthlgBXeoGZyWvUJSpcUcED10CB54/zpgMJvzVBiBMNQf4c+mODtZLlvTqIfwPvcVvgObv+GpH7zha9sLogNc+TOvDF7uBHH5s6lQlU2/Fqabs8G53Vc7ePIqIgb3t/CSn3T0I5Dea+a6KOTMxPmuEncG13vpyP+yYKzlZqYAPT+1oCkK7+Lwm0XpnNdkb+WAdWcpdf6XngBbpKF41IY8IXiMm+9bzU7kqzeAH1gI+ryXK2WzqA8GWXH3IbUjpAhJhfwgjldjl44DXcyJRnotd6zaOi9XFY9KV8+TaysVmvETeZPpV5hhYD4AE5kfnuzmZlsgMtc88kvWlSwi07araEl3AOISYps68Hw=
Content-Type: multipart/alternative; boundary="_000_CE91DE03778C4B23A7DDC79137364D76ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 9d14b3c3-ad35-43a7-0d8e-08d71023b54f
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2019 10:43:04.6412 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 92e84ceb-fbfd-47ab-be52-080c6b87953f
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: christer.holmberg@ericsson.com
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3147
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/GqCfYOIkItvmSmW6GDdf30mwFW4>
Subject: [core] PUBSUB-08: Semantics of 4.29 response
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: Wed, 24 Jul 2019 10:43:10 -0000

Hi,

I have a question regarding the semantics of the 4.29 response code.


Section 4.3 says:

   “A Broker MAY return "4.29 Too Many Requests" if simple flow control as
    described in Section 7 is implemented.”

…and:

    ”Failure:  4.29 "Too Many Requests".  The client should slow down the
     rate of publish messages for this topic (see Section 7).”


Section 7 says:

   “If the broker is unable to serve a certain client that is sending
   publish messages too fast, the broker MUST respond with Response Code
   4.29, "Too Many Requests".”

Then, section 7 says that the Max-Age is used to indicate when the client can retry to publish the message.

----

Q1:

It is unclear what 4.29 means:


  *   Based on the text in section 4.3, it means that the client should generally slow down the rate of publish messages associated with the topic
  *   Based on the text in section 7, it means that the client should wait for a while (indicated by Max-Age), and then it can continue publishing messages as before, with the *same* rate as before.

I think this needs to be clarified.

Also, wouldn’t it be useful to have separate response codes for the different cases: one response code for please-wait-and-then-send-again and one for please-slow-down.

----

Q2:

It is unclear whether Max-Age is mandatory in 4.29. If it is, I think there should be a MUST somewhere. If not, I think there should be some text regarding the client behavior.


Regards,

Christer