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

"Kraus Achim (INST/ECS4)" <Achim.Kraus@bosch-si.com> Fri, 29 November 2019 13:34 UTC

Return-Path: <Achim.Kraus@bosch-si.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 179801207FD for <core@ietfa.amsl.com>; Fri, 29 Nov 2019 05:34:53 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.301
X-Spam-Level:
X-Spam-Status: No, score=-4.301 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=bosch-si.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 AFykWztPSw-I for <core@ietfa.amsl.com>; Fri, 29 Nov 2019 05:34:51 -0800 (PST)
Received: from de-out1.bosch-org.com (de-out1.bosch-org.com [139.15.230.186]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id BC5441200E9 for <core@ietf.org>; Fri, 29 Nov 2019 05:34:50 -0800 (PST)
Received: from fe0vm1649.rbesz01.com (unknown [139.15.230.188]) by fe0vms0186.rbdmz01.com (Postfix) with ESMTPS id 47Pb8n2B1Pz1XLFjs; Fri, 29 Nov 2019 14:34:49 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=bosch-si.com; s=key2-intmail; t=1575034489; bh=rgVwlfMi2rtbGOYA/TOm/zHzAPv1JoKIJt2enjeQnZ0=; l=10; h=From:Subject:From:Reply-To:Sender; b=V+n5EPc3ZkmM18fxJE5IZF5Px2MVGVxCS40b4OsJTJ9M+RAdIU4lmAu1GZqEIbEkH nSN/WVi38glZAc4wUoQ6aQtfcMQ5MYlkknEjKNWIWZjJdI0Uie0/UqkXNwJZC621K3 plHEIF1VevhZVS3xQMtfgvwK8GZTFqgt8m9N85Q0=
Received: from si0vm2082.rbesz01.com (unknown [10.58.172.176]) by fe0vm1649.rbesz01.com (Postfix) with ESMTPS id 47Pb8n1tcWz7fn; Fri, 29 Nov 2019 14:34:49 +0100 (CET)
X-AuditID: 0a3aad16-3a7ff7000000385e-37-5de11e7937c6
Received: from si0vm1949.rbesz01.com ( [10.58.173.29]) (using TLS with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by si0vm2082.rbesz01.com (SMG Outbound) with SMTP id 66.17.14430.97E11ED5; Fri, 29 Nov 2019 14:34:49 +0100 (CET)
Received: from SI-MBX2033.de.bosch.com (si-mbx2033.de.bosch.com [10.3.230.36]) by si0vm1949.rbesz01.com (Postfix) with ESMTPS id 47Pb8n0DFTz6CjZNX; Fri, 29 Nov 2019 14:34:49 +0100 (CET)
Received: from SI-MBX2033.de.bosch.com (10.3.230.36) by SI-MBX2033.de.bosch.com (10.3.230.36) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.1847.3; Fri, 29 Nov 2019 14:34:48 +0100
Received: from SI-MBX2033.de.bosch.com ([fe80::e8d2:d090:af15:3320]) by SI-MBX2033.de.bosch.com ([fe80::e8d2:d090:af15:3320%4]) with mapi id 15.01.1847.005; Fri, 29 Nov 2019 14:34:48 +0100
From: "Kraus Achim (INST/ECS4)" <Achim.Kraus@bosch-si.com>
To: Carsten Bormann <cabo@tzi.org>
CC: Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org>, "core@ietf.org" <core@ietf.org>
Thread-Topic: [core] Retransmission of non-confirmable response message upon receiving request message retranmission?
Thread-Index: AQHVppE/OetFI+DdS0KoPWGUqntDGKeh/YWAgAAS76D///J4gIAAIYaw
Date: Fri, 29 Nov 2019 13:34:48 +0000
Message-ID: <ce36c544626d41c8bdca5c727f57521b@bosch-si.com>
References: <41889A1F-ACC3-458B-B57F-503A55D1D2A3@ericsson.com> <FB10E1B0-E52C-47F7-A0D9-87AE305E29F5@tzi.org> <09a7f0f318dc4f45a3cdd7791b28ecdd@bosch-si.com> <920091F4-EEA4-4407-AEBD-BE1C37DF199C@tzi.org>
In-Reply-To: <920091F4-EEA4-4407-AEBD-BE1C37DF199C@tzi.org>
Accept-Language: de-DE, en-US
Content-Language: de-DE
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.19.121.46]
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-Brightmail-Tracker: H4sIAAAAAAAAA22Tb0wbdRjH+fWu9Fp223Gs9FlHF1YgzkX5pywElsV/2Xij853zT8Uit7YO WtYrMOYLcWa4FZyADWCRwYAaRLC1jq0urmiFCTWLUhFZYB1sptIywjQqWeiIba+sfeGby/f3 fe7zPM/vezkCo3sIKaHRGhi9VlkhTxThoqJh2eN1uxYVuUYTv3DMdJNfaOw5Jyh0rlixp7CS iU+n+SX9/fd5JW29mhexV0T7y5kKTQ2jzznwhkjd+ucfeJVNeqLfeklQj2Z3GJGQAOpJcKyf EoQ1TbXzoGWYNiJRSF9FsNw9w+cOKwhs804ed/gWwdW+gQiSSBVBa8/3Eb2dksPPU0OJRkQQ GPUWzP2qCtspVA241z5L5F6pBZv9FM7pg3Cx5Qw/rHEqC/5+fxELa5IqhksLQwJu1i8I2j4M RvoLQ4WN1rkIjCgZ2Gw/RQCMkoDdt8bnrkNB/zecD5QY/Hc2on46vHvPHt3tUbBeyeHQ3WBq XBRwc5Nh8uPf8WYkMcd1NccIcxxhjiN6ED6IxKwmt6YyP7cwP1tfxrAnc/Oy39RV2hH30VId yOI+6kI8ArlQAcGTi0mFZ0FBby3Tldeplay6VF9dwbByKfnO3bMKOuWhzVaXVWpYVqPTuhAQ mHw7WdZ1S0GT5cq6k4xex2EutJPA5RJSRRx+jaZUSgNzjGGqGP1mtZgg5EB60xYVdLKeUTEn jmoqDJtluYxECQkJdGp8JX4sjxC60BPEltDsA7JQC5KtUlayGlUU38Hh9KYbQ93oMNHs7+rF iO/Gz4eeY12WXozGtTotI5WQR8LrUGFKXa19uI00jZydCAUjjivEOgbQDUQgeQpZH4a3hP6M 2B5A1oejS46aMSjfEmIobxJY7zQieNAwwAPHxS95sGTvxMEz18mH4A//8sExOygAR8cqAU0f GIUwOe0Twvzl0yIYOGvZCh1t97bBPwujNCw5btNgvf6eGIK3roshcPmrVDjjcgJMr68CDAQb d8INz3AafG25mQa3xwO7YNQ3kQ5Nwy0Z0HnflwHm0zOZ0HFtPAuGTNN7wPpj82PgHfTnBUIh 80IhO895wyEblIb/CTnqxm4nrUcZRX0v7NV46gp2d/XdPc4+k9L2qq/m+SnjR02PpOKlBQUy Ysz79Mj5Zw/2JhyTtKuHGtrHBaMdfyWlG7P2sLWT19Yyfcl93VXiEWfSF588N7i80u09Esgs zV7d92B5PXhl5POc4t8mXvbMzL++b8Xv3zhU635p/1Kn+/gU63v7gqlBLcdZtTJvL6Znlf8B qDiR2bMEAAA=
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/SMpy7fun-3kVlqrsw2ZaYEe_Cj8>
Subject: Re: [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 13:34:53 -0000

Hi Carsten,

>  It does not mean the separate response is automatically retransmitted (that has its own ACK cycle).

though you're the author, I'm sure you know the intention :-).

Only resending the ACK, may keep the exchange open on the client side.
I'm wondering, in which use-case this would be preferred over resending the flight, 
which completes the exchange on the client side. 
I hope my interpretation, that the decision is left to the implementation, is right? 

Mit freundlichen Grüßen / Best regards

Achim Kraus

Engineering Cloud Services 4 Bosch IoT Hub (INST/ECS4) 



-----Ursprüngliche Nachricht-----
Von: Carsten Bormann <cabo@tzi.org> 
Gesendet: Freitag, 29. November 2019 13:28
An: Kraus Achim (INST/ECS4) <Achim.Kraus@bosch-si.com>
Cc: Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org>; core@ietf.org
Betreff: Re: [core] Retransmission of non-confirmable response message upon receiving request message retranmission?

> 
> Section 5 is then about the request/response 5.2.2, page 34 (top), "If a retransmitted request is received (perhaps because the original Acknowledgement was delayed), another Empty Acknowledgement is sent, and any response MUST be sent as a separate response."
> That seem to point to the same intention: retransmit the original messages (flight) as answer.
> 
> (It seems that my understanding differs from Carsten’s answer.)


   When the server chooses to use a separate response, it sends the
   Acknowledgement to the Confirmable request as an Empty message.  Once
   the server sends back an Empty Acknowledgement, it MUST NOT send back



Shelby, et al.               Standards Track                   [Page 33]
RFC 7252       The Constrained Application Protocol (CoAP)     June 2014


   the response in another Acknowledgement, even if the client
   retransmits another identical request.  If a retransmitted request is
   received (perhaps because the original Acknowledgement was delayed),
   another Empty Acknowledgement is sent, and any response MUST be sent
   as a separate response.

This means that once the server sends an empty ACK, it is committed to replying in a separate response; it can’t go back to piggybacking, even if a conveniently arriving retransmission of the request might suggest so.  It does not mean the separate response is automatically retransmitted (that has its own ACK cycle).

Grüße, Carsten