Re: [core] PUBSUB-08: Semantics of 4.29 response

Christer Holmberg <christer.holmberg@ericsson.com> Wed, 24 July 2019 11:01 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 2DDD912016A for <core@ietfa.amsl.com>; Wed, 24 Jul 2019 04:01:25 -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, 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, URIBL_BLOCKED=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 YnTUEHU632MR for <core@ietfa.amsl.com>; Wed, 24 Jul 2019 04:01:22 -0700 (PDT)
Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40070.outbound.protection.outlook.com [40.107.4.70]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 0A43B120163 for <core@ietf.org>; Wed, 24 Jul 2019 04:01:21 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cJFdjcGJezDEONoULtoIVLygr6i/Ak7zdViZ9GjS4mBHB1KnwLK5AKkaaKiljno5A3yt2pF4M/no8ANsHH+Qh7AENsK5fjuzvHvW1scEbVGBvGwo/IHn0HJyXgrFq3BGh/U089C4Sfv6RSmGiAl5N0Uin16FbVbUs1M3xFMjl+twkkZqaEzcU6WV40ZbikJ1w5JlUCf3+tMrL2h0Czz/dvjCqmMFwkpuxF0fwoYnPnysWsdZtN44kPtv4KQ8LvdhA0YGVDqLQv6VD+6TSMn9Dczwgfb2T46oe6sx2Z9btNXTeH5klWtsljHPfI2dy0aheSql+ApFtL6Eko/6ZAAD0Q==
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=K1HANiy82CxtDvZOFQFrR17FNf4XLM+zuXgo+H/xYgE=; b=f3Rg6/AZxBlB1N7d28JJV/YTQ5PDgcTq8WDIf9ksYUL2r5mol9Dt7ikqkkttoNzEDhX9iVmnhrnWT9s9nVRjCzBR1IuXtWqDW3S5tMtULwYB7UqhhG46uQNj+LOw7L07Fg5br3TvkgA1gmkLVQiac7eGsNIebRlTNgmeFxB41QaPrMOQTnz3FyDB4SMvrAFiOBJxppaO+nMZqVa9D/NOAwEWoYipGJME2tpUjTW8tiJFbEgDjfwyogH3WHrbjtdu/uvXL8XJz5QTr8wzI9NivCNDAdfShwA9L9EFAYhZwVuvdpHaCCt8y/kwaL/RDbN5KBeQ2jwzZ/BusIR0pnVRww==
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=K1HANiy82CxtDvZOFQFrR17FNf4XLM+zuXgo+H/xYgE=; b=fkZQZAH8+OGgGQWZ6DMD2GI1+BDmXE6J5sOvcQufvr7XuFMBvoJpLstw4QQyZX/jQjfPIaYI7214Q8xbDVjnhaA2wwwMzTu5My0VOuieBu/e2m/hureNp02n+LeJz4g/GLoxuFMg56C16A6S7e818lpsTDRJxBKdRl0108kEBrU=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB4380.eurprd07.prod.outlook.com (20.176.167.29) 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 11:01:19 +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 11:01:19 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] PUBSUB-08: Semantics of 4.29 response
Thread-Index: AQHVQg8fIeWD3JQAw0ue5gnvPPVYTw==
Date: Wed, 24 Jul 2019 11:01:19 +0000
Message-ID: <5BB1ACC8-637D-4F41-BBB5-B51601BB0904@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: 7d8454a7-93de-4cdc-660c-08d7102641e2
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:HE1PR07MB4380;
x-ms-traffictypediagnostic: HE1PR07MB4380:
x-microsoft-antispam-prvs: <HE1PR07MB43804E9789330C84CA66447693C60@HE1PR07MB4380.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0108A997B2
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(346002)(136003)(376002)(396003)(39860400002)(189003)(199004)(26005)(66066001)(33656002)(229853002)(6916009)(2616005)(476003)(71190400001)(478600001)(71200400001)(256004)(186003)(7736002)(3846002)(5660300002)(316002)(14454004)(6486002)(8936002)(6116002)(44832011)(102836004)(6506007)(58126008)(66476007)(36756003)(66946007)(76116006)(6512007)(25786009)(6306002)(6246003)(54896002)(68736007)(2906002)(1730700003)(2351001)(5640700003)(81166006)(81156014)(86362001)(66446008)(53936002)(99286004)(64756008)(486006)(6436002)(2501003)(66556008)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB4380; 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: 4IP4K0TyCLVXHe8zDUAvsqCg8VHI/ckNv3aQkxof0zi6d4zBRu3jfgq8YIeUb1afs+LWwSyn0iwVHnh9kEoNCXz47VqoLO3yHOWDiUYju31vLLsU+AjblUs2kr+rY4+o8KYpVIqIF11fsTlSQKfOlFL4BKRw3v1i4QlN9AJ0vAeLTGCMJNjHXT/9uma64BdRvcgEg1zvqNLyFFUtiUSB2VdDr41AvJpebDgg30q8tFRXcK97mJCFHINL0JWPm96fb2n/s+H84peFOMpsyJsMmxpojEm7e8BJf2B6jzwsBvR2TdSqGK72pcSjOSHMlRaO4Yri45abnLTsMRBdmV9W6QIWWOSVExqj7VoH/3YotIF6JjhKQAmBhy7ZTKVQvoIvYx32QIucLCp0BgjvP+jvMsxuvx1Zmn5YWFa8Qo17az4=
Content-Type: multipart/alternative; boundary="_000_5BB1ACC8637D4F41BBB5B51601BB0904ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7d8454a7-93de-4cdc-660c-08d7102641e2
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jul 2019 11:01:19.4293 (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: HE1PR07MB4380
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/4JrA25MEvYxj4LvmmETpbyelfeI>
Subject: Re: [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 11:01:25 -0000

Hi,

I realized that Q2 is answered in RFC 8516, so please discard that.

Regarding Q1, section 4 of RFC 8515 also only talks about the client waiting for a while, and then continue sending messages. There is no client text regarding reducing the rate of the messages.

Section 3 of RFC 8515 does have some words about too-frequent being the reason for 4.29, and sending 4.29 to “slow down” the client. But, again, it says that Max-Age is used to indicate how long the client should wait before sending again – it does not talk about reducing the rate in general.

Regards,

Christer


From: core <core-bounces@ietf.org> on behalf of Christer Holmberg <christer.holmberg@ericsson.com>
Date: Wednesday, 24 July 2019 at 13.43
To: "core@ietf.org" <core@ietf.org>
Subject: [core] PUBSUB-08: Semantics of 4.29 response

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