Re: [core] Comments and questions on draft-jarvinen-core-fasor-02

Carsten Bormann <cabo@tzi.org> Sun, 24 November 2019 12:57 UTC

Return-Path: <cabo@tzi.org>
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 A1D05120137 for <core@ietfa.amsl.com>; Sun, 24 Nov 2019 04:57:54 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, 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 0AINM_sOixoP for <core@ietfa.amsl.com>; Sun, 24 Nov 2019 04:57:52 -0800 (PST)
Received: from gabriel-vm-2.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 2E2101200B3 for <core@ietf.org>; Sun, 24 Nov 2019 04:57:52 -0800 (PST)
Received: from [192.168.217.116] (p548DC893.dip0.t-ipconnect.de [84.141.200.147]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.uni-bremen.de (Postfix) with ESMTPSA id 47LVZQ42Pwz10y0; Sun, 24 Nov 2019 13:57:50 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <A0CF7634-4251-443F-9DF0-7FF8DA0B0519@ericsson.com>
Date: Sun, 24 Nov 2019 13:57:49 +0100
Cc: "core@ietf.org" <core@ietf.org>
X-Mao-Original-Outgoing-Id: 596293067.498166-6601013022ff56b297f17c3c486d46fd
Content-Transfer-Encoding: quoted-printable
Message-Id: <7C86562D-A871-44FA-9367-8886FF0AD016@tzi.org>
References: <9917155C-DBA2-43F7-B14C-3B778B27E96F@ericsson.com> <976DBC2F-20DE-4E4F-BB45-BB1C24027AE0@tzi.org> <18122668-6F48-4508-A53C-DC80723B8ED3@ericsson.com> <2CE089EB-D1C9-4692-BC72-309A37551685@tzi.org> <4BB4A7FD-FD21-4A72-912B-F8766878B636@ericsson.com> <96ED9133-1142-41EE-8408-6D3F3DF8F73C@tzi.org> <A0CF7634-4251-443F-9DF0-7FF8DA0B0519@ericsson.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/fswVhTZxrhMtyCLFSkY2KjkauXE>
Subject: Re: [core] Comments and questions on draft-jarvinen-core-fasor-02
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: Sun, 24 Nov 2019 12:57:55 -0000

On Nov 23, 2019, at 14:15, Christer Holmberg <christer.holmberg@ericsson.com> wrote:
> 
> Hi,
> 
>>>> I don’t think that is the intention.
>>>> If the message-id of a received message is the same as the one the server just processed, just discard.
>>> 
>>>  Are you saying that retransmissions of the same message may have different message-id values??? 
>> 
>> No, I was trying to say that a recipient discards duplicates, which they detect by them having the same message-id.
> 
> …which means the recipient would miss any updated data conveyed in the retransmission.

Yes.  Hence the warning that the server should not consider the updated data conveyed.

>>>>> In addition, if a retransmission contains updated information, retransmissions will have to be exposed to the application, rather than being handled by the protocol stack.
>>>> 
>>>> Right.  That is not the intention.
>>> 
>>> Well, if one is allowed to update information in retransmissions, that would be the case…
>> 
>> Again, the point is that a duplicate is not processed, so the sender could not rely on the updated information being seen (in the case the ACK was lost).
> 
> I think it is weird to define functionality that is based on the information being updated, and at the same time say that the sender can not rely that the receiver will see the updated information…

The receiver is getting a more accurate max-age.  This is useful.
If data are updated as well, the receiver gets more timely data.
Also useful.

Since we don’t have reliable ACKs, we can’t go beyond that.

>>> Retransmissions are typically handled by the protocol stack, so to me it sounds strange that they would update information in the message itself.
>> 
>> (Filling in the max-age value can be handled by the protocol stack as well, which is a good idea at least for implementations that care about accuracy 
>> of that information, which is why it can be easy to update it in a retransmission.)
> 
> Yes, but in order for the updated information to be useful the recipient stack will also have to parse the information, and provide it to the recipient application.

Certainly not “have to”, as the server will send an update at an opportune time (assuming observe).  Outside of observe, there is no way to know whether the “updated information” is actually a late arrival of an earlier transmission.

The really useful part of allowing a server to send updated information in a retransmission actually is that the server can choose not to deduplicate idempotent, safe requests if that would be more expensive than actually answering duplicates.  If this option is chosen, the server doesn’t know what was sent originally.

> The recipient can of course claim that the retransmission was lost, and that it never received it, but that’s a hack :)

(Without observe,) the recipient no longer has an active request at the time the (retransmission-induced or network-replicated) duplicate arrives, so without a hack it is not possible to process the duplicate.

Grüße, Carsten