[core] Retransmission of non-confirmable response message upon receiving request message retranmission?

Christer Holmberg <christer.holmberg@ericsson.com> Fri, 29 November 2019 08:44 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 7EE221201DB for <core@ietfa.amsl.com>; Fri, 29 Nov 2019 00:44:49 -0800 (PST)
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 S7LgoGkrsWnB for <core@ietfa.amsl.com>; Fri, 29 Nov 2019 00:44:47 -0800 (PST)
Received: from EUR04-DB3-obe.outbound.protection.outlook.com (mail-db3eur04on0616.outbound.protection.outlook.com [IPv6:2a01:111:f400:fe0c::616]) (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 2861D1200EB for <core@ietf.org>; Fri, 29 Nov 2019 00:44:46 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=blXzDKmeT8QnWe7X6yu6GONgN+4MOAAXI0fN3yW2Slwe/094mzH3uOWAIe5hzIhUb0JTwdD6VGGLu+9U66eIBFbFP0e7EmsGQMgiWDcOFx+CBLg8paJqktgh9a6bszDLxAdrqgYeSg7oT6TvNNk+iu1/sZUUHAsnUk4oPkS903U+1Ud/sOykHyDBnoAPa2akD2ln9LXXB1BitL2tS3yiatI6nC67pwJwADfHe6BvrknazOU4g5bxBtfMU+wmE6eIvzpd51cgZ8zdIrCNniDcZkxCQqhgRdagMqQS7uDY7lkfvKjUbN7yTmEuWlS4WXSZ3gorc7DVSXLbPtDK7xHflA==
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=VMBMxJHZrscJ9bi3PmR5G2UTn0QpsEmw6yhOUULhx6I=; b=F80yJmKXOUGS2OqEl9/DyCdErWfn52E4JCeeMrA4/j2nwOxy6A2N5HJI0mFAnGrGmP+AeqTItVi052PqwdHTJ18Fvp8GPSqeu+KnVb1ExihmbSydV+aOZbpYEYUvbNVLsXdVAPKqkzFfebO/xlloIE928spisLh/+i8HoEoI1dQiMI0UrnPlkK3br9bRZnbUFFL9W51hZ2NdwAFzW4+nskY1s5IpsdXGcYtUg2JP/s3Brejq0ahP2zaF97g3ddBLbWtP3B6AkdTAywhdmMewJI/x4f2GbdxpUtNmDtLXAGwmMf/OUsToeAp0t4+7V29EB8wvv9FqweGyPLt4RqyZ9A==
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=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=VMBMxJHZrscJ9bi3PmR5G2UTn0QpsEmw6yhOUULhx6I=; b=kzmpJPLewg9f+wHkd5wB7ICptyVKfSNNGP4yzjgzV5M9fOY6F0759aXtCSeY1P1qdovWtBUJCDC3Jy1vYH1h/rW2nGHRGSpwektfAC0G3ajVKIc2p1/4C/1cpdOtyx+Q5/zpYTeZw/Bd05MCB2fDzH+bajH3hUac3pgfrpYfLek=
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com (10.170.245.23) by HE1PR07MB3194.eurprd07.prod.outlook.com (10.170.245.32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2516.4; Fri, 29 Nov 2019 08:44:44 +0000
Received: from HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::2ca9:414:cc01:9706]) by HE1PR07MB3161.eurprd07.prod.outlook.com ([fe80::2ca9:414:cc01:9706%4]) with mapi id 15.20.2495.014; Fri, 29 Nov 2019 08:44:44 +0000
From: Christer Holmberg <christer.holmberg@ericsson.com>
To: "core@ietf.org" <core@ietf.org>
Thread-Topic: Retransmission of non-confirmable response message upon receiving request message retranmission?
Thread-Index: AQHVppE/OetFI+DdS0KoPWGUqntDGA==
Date: Fri, 29 Nov 2019 08:44:44 +0000
Message-ID: <41889A1F-ACC3-458B-B57F-503A55D1D2A3@ericsson.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/10.1e.0.191013
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: 6fb23f45-1a30-412f-96bc-08d774a86227
x-ms-traffictypediagnostic: HE1PR07MB3194:
x-microsoft-antispam-prvs: <HE1PR07MB31944CBD2A109C28F9691B6893460@HE1PR07MB3194.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:8882;
x-forefront-prvs: 0236114672
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(366004)(376002)(136003)(346002)(396003)(39860400002)(199004)(189003)(6116002)(2351001)(76116006)(33656002)(3846002)(6916009)(25786009)(6486002)(54896002)(478600001)(14444005)(256004)(5660300002)(7736002)(14454004)(6306002)(2420400007)(86362001)(2906002)(6512007)(44832011)(2501003)(7110500001)(15650500001)(66066001)(26005)(6436002)(36756003)(316002)(8676002)(58126008)(8936002)(99286004)(91956017)(6506007)(81156014)(102836004)(1730700003)(81166006)(71190400001)(71200400001)(66946007)(66446008)(2616005)(186003)(64756008)(66476007)(66556008)(5640700003); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR07MB3194; H:HE1PR07MB3161.eurprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1;
received-spf: None (protection.outlook.com: ericsson.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: 1qj/hceoGqozsK5gw700bEPg/eQwPDVyxqDW5qK+yESrbDj3Z3OP2D8GYR6XMzNHDkGkjkrxPEw9cMJJctP4hUoaAfzYvThwLi8pHyddpMr4nFeVbuBxyF8zKDWd6YdUtUw1oqKoK8X8adFuxUlsuQnm249STnAt9fnWNSI8yLm3SUxZnW/IzW9UmaK+m8jBbemR6EQy2SPm2duzKYd1zj0WRy3jmhokdyI0By3/EvlUbGFgPdtiF2vB4Gh3tzY4kQRzfSGVelPQ9DBEb5+RKbP4vp89o4qABl4mZAbWsYvR9YwiyTAfKd9cZ3JyWOsd7AefLzBs10MRj+SvyjywNzvfcvrqgZiBNKDWuk9Eeyzw7L0EWZndoPBZYkPthDQ3WwRRNBU5gLKMn9Mz1cwIFBKWfh0VaqHlVqQGeiXkqyqSJNKfTq4VaWwpCx+8+1HF
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_41889A1FACC3458BB57F503A55D1D2A3ericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6fb23f45-1a30-412f-96bc-08d774a86227
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Nov 2019 08:44:44.5114 (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: K3s0G2GirymOkFn9FM7Au1GGxyXiFtPdtn30DhBNrNLm7rbYYCH9tBC7xd+yaUk8rct6rWSHGyTJFllqLXV3kbOA0wbrzPtPoyOccMGUcxQ=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB3194
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/q0r_yhWrLNoDwJCrobDV0iGW1rM>
Subject: [core] Retransmission of non-confirmable response message upon receiving request message retranmission?
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: Fri, 29 Nov 2019 08:44:50 -0000

Hi,

A couple of questions for clarification.


Assume a CoAP server receives a confirmable request message.

According to Section 4.5. of RFC 7252, the server SHOULD retransmit the associated ACK whenever it receives a retransmission of the request message. So far, so good.

Then, assume that the sever sends a non-confirmable response message to the request. AFAIK, that is allowed.

---

Q1:

Perhaps I have missed it, I can’t find any text saying that the server would retransmit the response message if it receives a retransmission of the request. Section 4.3 does say that a server may choose to transmit multiple copies of a non-confirmable message, but there is no text saying that such transmits would be triggered by a retransmission of the request.

Section 4.5. does say:

     “A server might relax the requirement to answer all retransmissions
      of an idempotent request with the same response (Section 4.2),”

Where does Section 4.2 talk about answering retransmissions of an idempotent request (or any request, for that matter) with the same response?

---

Q2:

Related to Q1, Section 4.5 says:

      ”For example, an implementation might want to process duplicate
      transmissions of a GET, PUT, or DELETE request as separate
      requests if the effort incurred by duplicate processing is less
      expensive than keeping track of previous responses would be.”


Maybe I misunderstand this “process as separate requests” thing, but:

First, it means that each response could be different from the previous one, and the sender of the request would have to process each of them.

Second, does this mean that, if the responses are confirmable, the server should expect an ACK for each response? “Process as separate requests” makes it sound like that.

---

Regards,

Christer