Re: new draft: RELIABLE_RESET_STREAM

Mirja Kuehlewind <mirja.kuehlewind@ericsson.com> Fri, 23 September 2022 12:53 UTC

Return-Path: <mirja.kuehlewind@ericsson.com>
X-Original-To: quic@ietfa.amsl.com
Delivered-To: quic@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 895DCC14CE32 for <quic@ietfa.amsl.com>; Fri, 23 Sep 2022 05:53:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.679
X-Spam-Level:
X-Spam-Status: No, score=-7.679 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.571, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Sjp4XH5Vcgvo for <quic@ietfa.amsl.com>; Fri, 23 Sep 2022 05:53:12 -0700 (PDT)
Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2074.outbound.protection.outlook.com [40.107.105.74]) (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 6B5EDC14CE27 for <quic@ietf.org>; Fri, 23 Sep 2022 05:53:12 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZXxcd805hgXRs2CBtubWSW52qFJ/y99y9szhXzfReOkQu+fKcrScOWhcwf0l9ZcpB011LQl6tJ8jwuBwxcrsAZ9dXN/ix30Y2XDO7QLJ9XBP+g0Qr2nZaC9ui9s17g8ir6ULVJS6ddy4VXJr5yYkPtQ62zMe4rvLqbjBlpQMTwMRKRxd2QpwMISRUO7mqkGBVHH1fK5MQwfFVRjplOMatgyT8p/ixwSFvDO6NDsfl+xNuMfuF8qSdSlQuRn8x5h0WW9BAUbulFEnOjVOY8F+tZ8cwW7nm7gHKdqWlZ0G1kFmOrtzSR+Pe8EOPrvQ8SUNLD2JJL7Br6R/ZQ3TzxigRg==
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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=efnlowja+j06g5jJyvfvmJhz/N7d8ifqFDoC0ABBvSk=; b=faD2nI2/BeM+VY0gdKzZy6hkDsnbidstjejkR6GSdGww8A6sDS5lXlTaVDc4a8FLarUSMp4BCN/XuIYimXGkbobvsSyA6faHxl8lFDuSKXLv0eAor31/mdNvKn/dYK70ZUlplvTFLt03ovmbTt3UkmQDLi5LBcZP8w+GZXNmh1YCo/6vZ4P2njyDMT48hYuF0WuO2RdQqQ8ZO01arWD1ohZUstiBtnRpofrA9QNibucK0mwucb2NOowG07n8WxTpZwE7Nu/u8gXa4pgHvkvtvrUz3UPv9HfBt+Dttohpn+KmBNndswriD8DqXTMh1YRYQj/a6B4FQUOFaeVFhpe9Ag==
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=efnlowja+j06g5jJyvfvmJhz/N7d8ifqFDoC0ABBvSk=; b=WYOV5mb2MpWagrL1gvLvAKSHJHtLw51NG7bgSMvyx7MkdpmtTKzvnUrOPDK87MgJKv5Ik3w3wmXb42NCF0aCLy1g5HgLJmAwip5ICnSx3El2wh54y9iBr477U9uDj76Sl5xRtcIpcUqWXIF+WfVF2BhCFke8OefgrvEXblXPUPQ=
Received: from PAXPR07MB7806.eurprd07.prod.outlook.com (2603:10a6:102:13a::19) by PAVPR07MB9334.eurprd07.prod.outlook.com (2603:10a6:102:310::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.16; Fri, 23 Sep 2022 12:53:08 +0000
Received: from PAXPR07MB7806.eurprd07.prod.outlook.com ([fe80::2aa8:a5e4:f497:7049]) by PAXPR07MB7806.eurprd07.prod.outlook.com ([fe80::2aa8:a5e4:f497:7049%3]) with mapi id 15.20.5676.007; Fri, 23 Sep 2022 12:53:08 +0000
From: Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>
To: Marten Seemann <martenseemann@gmail.com>
CC: QUIC WG <quic@ietf.org>
Subject: Re: new draft: RELIABLE_RESET_STREAM
Thread-Topic: new draft: RELIABLE_RESET_STREAM
Thread-Index: AQHYxCcbWFOy942tmECOV2loZ78zsa3osegAgAQy+4CAAEsxAA==
Date: Fri, 23 Sep 2022 12:53:08 +0000
Message-ID: <565C27F0-513C-4F99-BCD3-593AAAEFD49A@ericsson.com>
References: <CAOYVs2rQWUbd02jz7ywDi1xcx30wD1PSf-GRi3ZrPmGnXouy2A@mail.gmail.com> <CE1479D5-4B98-4B37-999A-E60B580E7F2E@ericsson.com> <CAOYVs2oeyS3eUgU+e_7QRukitD1Jga0hXCfbKRARTLU03WT4zg@mail.gmail.com>
In-Reply-To: <CAOYVs2oeyS3eUgU+e_7QRukitD1Jga0hXCfbKRARTLU03WT4zg@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.63.22070801
authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=ericsson.com;
x-ms-publictraffictype: Email
x-ms-traffictypediagnostic: PAXPR07MB7806:EE_|PAVPR07MB9334:EE_
x-ms-office365-filtering-correlation-id: 7cb2783e-464c-4f2c-b565-08da9d6290bc
x-ms-exchange-senderadcheck: 1
x-ms-exchange-antispam-relay: 0
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: zGqo2Xq76+2n/Hfp0sFkv791LifHJIEG0SrEyghQqD7ERH9v5OygOQzjfl8dJmly6uWeQQuk+H6q+sINThYYbpz6XrWMWuF6Q5Lzxc0PbFFGwVMJ8YTIzT4ALsZY+lhEl/XcfVKj6VCuEHaI6L8gTC8zMuRFClmV5R74fSxnPDMFGAriXcvVMXWDADxZ/LjWv0HAFqb1popJXGKq6ILsVZJhh8v0i8Mx5VBmZF0l33OsbXG8lLi0mcDZFp4ZyxhZzVwPAfnT/PFzvcoVqyArOqZi5tZFHMIsr2urmop2qCECmF3OOwZcHYbgmFBov2aTwpRLx5pE1NbfsNaxluySj/eNq/ud73W7u6Lm3U99vykIrLxwc0ZFSyrAtPRox0Cr2ADpZ6pUIbY34Y5EGW9bxqBkwbCIYBBq0z5uLbUMEWpt/UInUwDvCsSEzcWcUPqtc0JOXy1Cqx1bs7izF0rw+UjwCXmCBSvwVp/Dhfw0ivGqa5qyhKhWOMOgM6iVgeHf5dcFDB1OWgGEHog7AJjbY3j0TW8QtoU/sGsQRMkhnEHymKQ2ukH8K+2poCvPL/y43/e+5K/75WfGLChmBU0DndzEpXbllW/NCCWK2tuzY8TdYAmJi8EPeEI6A35eGts31noh+tm5h1IW1iva/Fbs5VaO8sAV3iDEAn3mvN/KuAEYhg1c99pJnfx/X28iSsiI+CVAVGYHUh7dhAGd7QTaz9EG5iB/sqB/hYk7hHbZFy75tJcC0WeN7pNqxCctDBacWv3eC/hHHGDPP2JPdHBYRvvNWAaxcCSaz/ncrqQ7SSQIB+z0sL0zDWc0ga0HOSLgC63Ck9XhiCIdMHHxbiHblwZfa+pL9KKSId8+HHi2OEGf+MIEmLAIDOFTd9s7zNQt
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:PAXPR07MB7806.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230022)(4636009)(396003)(376002)(346002)(136003)(366004)(39860400002)(451199015)(966005)(6506007)(166002)(86362001)(316002)(6916009)(2906002)(2616005)(5660300002)(36756003)(6512007)(53546011)(8936002)(26005)(44832011)(33656002)(4326008)(66476007)(41300700001)(66446008)(66946007)(76116006)(66556008)(64756008)(83380400001)(91956017)(8676002)(186003)(82960400001)(71200400001)(38100700002)(38070700005)(6486002)(478600001)(122000001)(45980500001); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata-chunkcount: 1
x-ms-exchange-antispam-messagedata-0: Kkg65LFaGDOeLF5fCm5SyfzYrC+wIANpESg1vWeJKkSOeCuvIFUcx9p8CZ7CpfrbR8lK6FfNc7ZJuvrIKC0DasV8W8xJijhHeEeCkgCyzOqLsai5PP0TBg19sXCMutGyvP7Zjs7OJCLxQY9njpALQJUt62M48Y+Lfm18tu4/zE+s+Ah7FiGUMVocJjjVNnj1BhIPVszHWXijKWmWUXYsVQRWcH9vus1lUKJYA3Zz8VT96lQPTU7hZgqv2hnMrOoixFJjni082XLkydX2JRWr/rh8/2dJ99BUnavIjUOikZcPqvW7U08Hq++rDalW1hArBjGdLENeYLQLoR2xnkO3FJI51EunPLSJfbmh+1dmv+Vn4+z0f207Yye7r95EW+ltB0qN66WSeTbmXBkQ1dPW8zRF5xZbpCe2Edwmf9RdXMFuMnv4U2Tb6wjKFHr7aqVyh7RwtxtoHFLY+HQn97StdVIiIieKsOpAZ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0MmTkGCWIMOdlZsqnpq+lf47BZN8MmDmUqXxGXHGuavNKvSh7z7TqeC2FfRAVs1DKK6jS9jZNNg=
Content-Type: multipart/alternative; boundary="_000_565C27F0513C4F99BCD3593AAAEFD49Aericssoncom_"
MIME-Version: 1.0
X-OriginatorOrg: ericsson.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: PAXPR07MB7806.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 7cb2783e-464c-4f2c-b565-08da9d6290bc
X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Sep 2022 12:53:08.6832 (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: IyHhSmAK47yDeEU+Z+1uHU3D5kaTEk30vvMYMTvCVJmuAIpcyBACE7W71yVIk6DvDJNxAauTWd4pS/YQNOLlUMmN6Q4N9yGCs3wYFYs18VY=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: PAVPR07MB9334
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/4g0pkhISmcjpSbfoiAGB_vofkkc>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Main mailing list of the IETF QUIC working group <quic.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/quic>, <mailto:quic-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/quic/>
List-Post: <mailto:quic@ietf.org>
List-Help: <mailto:quic-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/quic>, <mailto:quic-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 23 Sep 2022 12:53:16 -0000

Hi Martin,

thanks for your reply. Please see below.

From: Marten Seemann <martenseemann@gmail.com>
Date: Friday, 23. September 2022 at 12:24
To: Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>
Cc: QUIC WG <quic@ietf.org>
Subject: Re: new draft: RELIABLE_RESET_STREAM

Hi Mirja,

> 1. How can you guarantee that any data can be delivered reliably if the sender is indicating that it won’t retransmit?

That's the new semantics of the RELIALBE_RESET_STREAM frame. Sending one indicates that you'll reliably retransmit everything up to the "Reliable Size" byte offset. You don't retransmit anything after that offset.

> 2. If the sender sends the reset before any stream data is ever delivered to the application, why do you still need to deliver the session id (given the stream will never be used)? Or maybe asked differently, why is the sender sending a reset at all?

I'm not sure I understand the question. In general, you send a RESET_STREAM (or RELIABLE_RESET_STREAM) because you changed your mind after you started transmitting data. A standard example from the HTTP world is that the user starts the upload of a large file, and then cancels that upload. For WebTransport it depends on your application protocol.
The reason you want to associate the stream with the correct session is that the semantics of a stream reset might differ depending on the application protocol: The server might respond differently to a HTTP/3 stream being reset vs. a WebTransport stream being reset (or even: a WebTransport stream being reset for Session ID 1 and Session ID 2). We have this problem since a single QUIC connection can handle HTTP/3 streams and WebTransport streams for multiple WebTransport sessions at the same time.

I guess my question is more what would you do with this information then if the stream is already closed?

Also in your case of know the session ID, this seems like a complicated hack. Because if you anyway have to change something in the quick stack, wouldn’t it be sufficient to just create a new interface to expose the session ID given it should be known by the QUIC stack, no?

Mirja


Does that answer your questions?

Cheers,
Marten


On Tue, Sep 20, 2022 at 7:16 PM Mirja Kuehlewind <mirja.kuehlewind@ericsson.com<mailto:mirja.kuehlewind@ericsson.com>> wrote:
Hi Martin,

just two quick questions because I’m not sure I fully understand the proposal/scenario:


1.      How can you guarantee that any data can be delivered reliably if the sender is indicating that it won’t retransmit?

2.      If the sender sends the reset before any stream data is ever delivered to the application, why do you still need to deliver the session id (given the stream will never be used)? Or maybe asked differently, why is the sender sending a reset at all?

Mirja



From: QUIC <quic-bounces@ietf.org<mailto:quic-bounces@ietf.org>> on behalf of Marten Seemann <martenseemann@gmail.com<mailto:martenseemann@gmail.com>>
Date: Friday, 9. September 2022 at 10:35
To: QUIC WG <quic@ietf.org<mailto:quic@ietf.org>>
Subject: new draft: RELIABLE_RESET_STREAM

In RFC 9000 we defined a RESET_STREAM frame. When a stream is reset, the receiver may deliver the reset error to the application immediately. On the sender side, lost STREAM frames won't be retransmitted.
When building applications on top of QUIC, it is a common pattern to send some kind of identifier (an ID or a string, for example) first, to allow the application to route the stream to a subpart of that application. For example, WebTransport sends the Session ID of the WebTransport Session. Outside of the IETF, I've used something similar for layering various applications on top of QUIC.

When a stream is reset, the receiver might end up unable to associate the stream with the respective subpart of the application. This is problematic, since
1.       depending on the application protocol, a reset of a stream might carry application-layer semantics, and
2.       the RESET_STREAM only closes one side of the stream, and it might depend on the (sub-) application how the other direction of the stream is handled
This problem is not unique to WebTransport, but occurs for every application using some kind of stream identifier. It might make sense to design a solution at the QUIC layer.

I've just submitted a draft that aims to solve this problem: https://datatracker.ietf.org/doc/draft-seemann-quic-reliable-stream-reset/
It defines a RELIABLE_RESET_STREAM frame, which is essentially a RESET_STREAM frame with one additional field, the Reliable Size. The sender of the RELIALBE_RESET_STREAM frame commits to (re-)transmitting stream data up to the Reliable Size reliably, and the receiver delivers data up to that offset to the application before surfacing the reset error.
In WebTransport, you'd set the Reliable Size such that it covers everything up the Session ID, thereby making sure that any stream can always be routed to its WebTransport session.

Obviously, there are use cases for this draft beyond the reliable transmission of just a stream identifier. One could imagine an application protocol that would benefit from being able to have the first part of an actual application-layer message being delivered reliably. I'm happy about enabling those use cases, but I've avoided making this draft more complicated than necessary by accommodating the more general cases.