Re: Packet number spaces in multipath (was Re: What to do about multipath in QUIC)

Quentin De Coninck <quentin.deconinck@uclouvain.be> Fri, 04 December 2020 09:21 UTC

Return-Path: <quentin.deconinck@uclouvain.be>
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 5C3653A09CC for <quic@ietfa.amsl.com>; Fri, 4 Dec 2020 01:21:07 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, MSGID_FROM_MTA_HEADER=0.001, NICE_REPLY_A=-0.001, RCVD_IN_MSPIKE_H2=-0.001, 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=uclouvain.be
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 uozMIssEEHuX for <quic@ietfa.amsl.com>; Fri, 4 Dec 2020 01:21:04 -0800 (PST)
Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00112.outbound.protection.outlook.com [40.107.0.112]) (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 389033A09B5 for <quic@ietf.org>; Fri, 4 Dec 2020 01:21:03 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=M3D2OSY91t+nAH9IxFuPmH7rfgG0C8/x8BDfQWhjbhT1gqRh5njZ61gj5fG/c+wM5F8k905b+W/OjIhvRb+uKamUzjxaUscO++Jzjz3zq77sK1aJiOVRgBt2F4V7pFf4rqbTQjo941VkiCg/dJ/0hQtTDLdk+lL5vkDtYuz5urZuD2oEUCJLH6706j5IQy71K4xYzT8z1jDlroZNJY8P4RcrDIesKtzM+iDOIV1Ov23D8rU+VAB5joqQNDYJIa6k0zBOxLl10/io8NJu/GBn8HYqPD4UW20mYuEJP2Vt75xLSY8KUw2XgQCqD8Klr+Y9+38YSHeP7VG0VtC0m9x50A==
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=bnTux6ZnXb4qBpvMfcDrCZOmsIDyu7yJ88azBTpZwZo=; b=Z9Ar7x8STsntHTzLyM8O1JMkHTIlLtOCleflopgMBwIjgxHbHD9y/2i4BCwT1i2Jh77JDr4Bo4pwgAphavZCuP6gwkZrK8aYzRia0wXcjQP0cMewS5CueL7QqzoPnTDjFXIOsQ1N8nvczoEfagoyTyQdqk7RZqoJkSQzdASUo1pY42ssnRyYkj1qbbiwCUNnn4epfF452wE21fk0S+RP5TzNhTk3BQdJo9q2zK8GkwqwA9ZhB2GAW9ZCDL1luaCNLs/Mr8a0M6MiMCYcbzWyexDgrN9k7wmGevF13MzwL2t8yYiqEct9BY0o/8vWCGYse6v6G4Q+WW2fZODkar96qA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=uclouvain.be; dmarc=pass action=none header.from=uclouvain.be; dkim=pass header.d=uclouvain.be; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=uclouvain.be; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bnTux6ZnXb4qBpvMfcDrCZOmsIDyu7yJ88azBTpZwZo=; b=ZNccTce31raijTDDuo2cCoAuSkk2OK1zTdAIEDt0TPB8N4WkHc7nWBECVTDX7pC4ergGO/rdYuYUawn6oy/+ASwcEFej70qfW/HlwJajz7aFzrWb1qOSOM5JbAjvIPSafeqfd7cjz8ZupWrUf1hWzsIlFf2BY0xcuOjEtTo0gTA=
Authentication-Results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=uclouvain.be;
Received: from AM9PR03MB7361.eurprd03.prod.outlook.com (2603:10a6:20b:263::13) by AM9PR03MB7234.eurprd03.prod.outlook.com (2603:10a6:20b:268::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17; Fri, 4 Dec 2020 09:21:01 +0000
Received: from AM9PR03MB7361.eurprd03.prod.outlook.com ([fe80::1ce9:c8f2:e22e:1fdd]) by AM9PR03MB7361.eurprd03.prod.outlook.com ([fe80::1ce9:c8f2:e22e:1fdd%7]) with mapi id 15.20.3632.019; Fri, 4 Dec 2020 09:21:01 +0000
Subject: Re: Packet number spaces in multipath (was Re: What to do about multipath in QUIC)
To: Jana Iyengar <jri.ietf@gmail.com>, Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>
Cc: IETF QUIC WG <quic@ietf.org>, Christian Huitema <huitema@huitema.net>, Kazuho Oku <kazuhooku@gmail.com>
References: <538215d1-3b9e-4784-920d-03be4c3a503a.miaoji.lym@alibaba-inc.com> <CAHgerOGGyAkE=TbCSuTO=T6HK9EM_+m+ASwPRm=o33HBrx7p3Q@mail.gmail.com> <CANatvzz_KSBws_upnx00P7JK=MbgyDRrR5n2VJcr1_=y=P6dfQ@mail.gmail.com> <062fe812-8afb-d946-8336-1f4dc5ebeaaf@uclouvain.be> <7540ef46-9948-c76c-3617-5755be3cdf37@huitema.net> <CANatvzymE+XRXUMBH2quGi=VEUNXDR_Eoer+o6p9+nkD-KFisQ@mail.gmail.com> <3bb7f359-ebe5-7a54-0224-bb1f5f1754af@huitema.net> <CANatvzxyj3nXP+GrnMkexWV-VN7Og4EGXysq1o0W2e2JGWzDrw@mail.gmail.com> <651e0ae1-0a5e-89e9-55c0-c33439599da6@huitema.net> <CANatvzw4Yg9aX2qyaGfc9sS=oEFOHxp-ZLSLF0EYNa8t6uN-iA@mail.gmail.com> <4b96dbb8-e72c-7f99-0bb3-9ee27b7bda78@huitema.net> <CANatvzz_H205MPP67Vnuqp0mwhM0TUbHvA5CfVGeoivCLcUdgw@mail.gmail.com> <850c5bdd-948e-269a-1488-77a77843d5e6@huitema.net> <CACpbDccY3f2wMd5vFzK=NC=Me=EhgmFWMDS7TTBZFtG2bm=JSg@mail.gmail.com> <3A1F078F-6F88-47E8-AEB0-5E8C889AC28C@ericsson.com> <CACpbDcdwBVkN84vw3eVFishMnKWwKOTw+HpGA_-VooY6TiwxQQ@mail.gmail.com>
From: Quentin De Coninck <quentin.deconinck@uclouvain.be>
Message-ID: <8dcdb29c-bb94-8eda-32c9-9d147ca4fa6e@uclouvain.be>
Date: Fri, 04 Dec 2020 10:20:59 +0100
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0
In-Reply-To: <CACpbDcdwBVkN84vw3eVFishMnKWwKOTw+HpGA_-VooY6TiwxQQ@mail.gmail.com>
Content-Type: multipart/alternative; boundary="------------14E4A5310D2EB50D2ECA2DC0"
Content-Language: en-US
X-Originating-IP: [178.51.239.118]
X-ClientProxiedBy: PR3P189CA0109.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b5::24) To AM9PR03MB7361.eurprd03.prod.outlook.com (2603:10a6:20b:263::13)
MIME-Version: 1.0
X-MS-Exchange-MessageSentRepresentingType: 1
Received: from [192.168.0.6] (178.51.239.118) by PR3P189CA0109.EURP189.PROD.OUTLOOK.COM (2603:10a6:102:b5::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3632.17 via Frontend Transport; Fri, 4 Dec 2020 09:21:00 +0000
X-MS-PublicTrafficType: Email
X-MS-Office365-Filtering-Correlation-Id: 8b1a0919-956a-47ff-fc7a-08d89835eac3
X-MS-TrafficTypeDiagnostic: AM9PR03MB7234:
X-Microsoft-Antispam-PRVS: <AM9PR03MB7234D4A7C3640DF04857F6D99DF10@AM9PR03MB7234.eurprd03.prod.outlook.com>
X-MS-Oob-TLC-OOBClassifiers: OLM:10000;
X-MS-Exchange-SenderADCheck: 1
X-Microsoft-Antispam: BCL:0;
X-Microsoft-Antispam-Message-Info: izFqzWUZ1xKsmCTIvb2Rhfpxniz0b2lNGGxgi5LY4QmwijnkdEBUrEvP9b/c6ahzQFFQT3kVBTL6OljqHmwpuASpMf0d06ajqm7YOsnoTc/0ZfjaaFN2nAjPEFTdHMTwHq3iq3uqQqTgcTSiOsGa/RqV71y7/MCTFIa+5i/6meCLYcjizprcLWM1ioTlhiRoJmLmYgQ9m80QIsX90TJxR/s5fBbYIhxwFIDHmJUZFPIyGbFvQAOtrc5BGUpZLSeUroTuoQ9scfR8O/bjhisJ7kClk+N5qkCb40oi/3K3yI+LDXuVqjLPnodHd8QaziYd7XjzUUujyfS78LByS+o7r6yqKVmDdwG/6tSGanOkwc0fLkigxNVVxrqsgHOKEc8FFb1/Fq+RkY8HkemrpR1oOZCkFk1JHpbS26gaHlF2sk4=
X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM9PR03MB7361.eurprd03.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(366004)(136003)(346002)(376002)(39850400004)(396003)(54906003)(31686004)(110136005)(16526019)(956004)(16576012)(186003)(33964004)(83380400001)(8676002)(6486002)(316002)(86362001)(66556008)(36756003)(31696002)(786003)(66476007)(2616005)(53546011)(66946007)(478600001)(2906002)(8936002)(26005)(5660300002)(30864003)(52116002)(4326008)(45980500001)(43740500002); DIR:OUT; SFP:1102;
X-MS-Exchange-AntiSpam-MessageData: /cMuDygYPPStR0RVALAKl1iS/d/4acOfzq/vMZJYh92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-MS-Exchange-CrossTenant-AuthSource: AM9PR03MB7361.eurprd03.prod.outlook.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Dec 2020 09:21:01.4178 (UTC)
X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted
X-MS-Exchange-CrossTenant-Id: 7ab090d4-fa2e-4ecf-bc7c-4127b4d582ec
X-MS-Exchange-CrossTenant-MailboxType: HOSTED
X-MS-Exchange-CrossTenant-UserPrincipalName: mAxYA6S2SRNWluk0Fmvx+HRSOohvTy9VPVkBQT9bxWwzUX4lpZpEQbobUr7rIDXQVgXXTGL8nqXRQ5UN+W5EQfYn1/LQ/bfMYDK7zoL2yfo=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR03MB7234
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/xTUbCOMknvXBLKNZZKwey0l-u8Y>
X-BeenThere: quic@ietf.org
X-Mailman-Version: 2.1.29
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, 04 Dec 2020 09:21:07 -0000

Jana and all,

I just have a concern about such a design using sequence number of the 
connection ID as the path ID.

Assume that the server is willing to offer two available connection IDs 
at any time, and that the client is using both at the same time for 
multipath transfer. It uses the CID with seq num 0 on path A and the CID 
with seq num 1 on path B. Then, for any reason (like privacy), the 
client wants to change the connection ID used on path B (using seq num 
1). However, the host cannot retire the CID with seq num 1 without 
retiring the CID with seq num 0 too. If the server does not want to 
provide additional connection IDs and the client is not willing to reuse 
CID with seq num 1 on path A, the client is stuck with the CID with seq 
num 0 on path A and cannot use the path B anymore.

This is why I believe we should not link the path ID to the sequence 
number of the Connection ID (because it is a monotonically increasing 
sequence number), and rather have a separate space for them.

Best regards,

Quentin

> Mirja,
>
> I'm referring to what Christian was summarizing below. Separate PN 
> spaces but path ID is implicit as the sequence number of the 
> connection ID, and ACKs reflect this sequence number.
>
> - jana
>
> On Wed, Dec 2, 2020 at 3:02 AM Mirja Kuehlewind 
> <mirja.kuehlewind@ericsson.com <mailto:mirja.kuehlewind@ericsson.com>> 
> wrote:
>
>     Hi Jana,
>
>     can you maybe confirm what you mean by “the design” below just to
>     make sure we are all on the same page: Is that different PN spaces
>     per path, but using the same key on all paths with CIDs as part of
>     the nonce?
>
>     Thanks!
>
>     Mirja
>
>     *From: *QUIC <quic-bounces@ietf.org
>     <mailto:quic-bounces@ietf.org>> on behalf of Jana Iyengar
>     <jri.ietf@gmail.com <mailto:jri.ietf@gmail.com>>
>     *Date: *Wednesday, 25. November 2020 at 04:35
>     *To: *Christian Huitema <huitema@huitema.net
>     <mailto:huitema@huitema.net>>
>     *Cc: *IETF QUIC WG <quic@ietf.org <mailto:quic@ietf.org>>, Kazuho
>     Oku <kazuhooku@gmail.com <mailto:kazuhooku@gmail.com>>
>     *Subject: *Packet number spaces in multipath (was Re: What to do
>     about multipath in QUIC)
>
>     (I'm taking Spencer's suggestion to spin off a new thread.)
>
>     Christian, Kazuho,
>
>     Slowly catching up on this, and apologies if I'm missing anything
>     that was previously discussed in the centi-thread earlier.
>
>     If I understand the design correctly, it makes sense to me, and is
>     very close to what we had implemented in Chromium a while ago.
>
>     Having thought about this problem several times in the past, I'd
>     like to share a few points that come to mind.
>
>     First though, a point on terminology: the receiver maintains a
>     separate "ReceivedPackets" for each CID, probably for each CID
>     sequence number (CSN). Let's please not call this a SACK
>     Dashboard, to avoid confusion.
>
>     On the question of sending more than 2^32 packets, I think that
>     resetting the packet number (PN) is ok on new CIDs. I don't see
>     why a sender would need to maintain continuity across multiple
>     paths anyways, since the CC and loss recovery contexts are going
>     to be different across paths. A sender _could_ still maintain
>     these packets in the same "SentPackets" structure if it wants to,
>     it would need an internal representation of CSN+PN to key off.
>
>     ACK Frames:
>
>     ------------------
>
>     Kazuho pointed out that when acknowledging, the ACK frame format
>     should include CSN. I agree. I would argue for a design where a
>     receiver uses an ACK frame per CSN (and encodes the CSN
>     explicitly). There are multiple values for doing this, the primary
>     being that you benefit from compression when PNs are contiguous
>     within a CSN.
>
>     Return Path:
>
>     -----------------
>
>     There are other ways to decide which return path to send an ACK on
>     this, but I would propose that a receiver respond on the most
>     recently active forward path. That is, the path on which a packet
>     was most recently received. This has the natural effect that a
>     sender that wants to distribute traffic in a particular way also
>     causes ACKs to be distributed similarly across the corresponding
>     reverse paths.
>
>     RTT measurements:
>
>     ---------------------------
>
>     The return path for ACK frames will impact RTT measurements. That
>     is fine. It is more important that information reach the sender as
>     soon as possible than that it should not affect RTT measurements;
>     we can fix the sender to measure and compensate as necessary. The
>     estimated RTT statistics reflect the distribution of samples, and
>     if both paths are being used, then the SmoothedRTT will reflect
>     the expected value based on the traffic distribution across paths.
>
>     That said, it might be useful to track some new stats, especially
>     about how much later is a "late ack" -- an ACK frame that contains
>     no useful information -- is received. I'd have to think a bit more
>     about this, but I think we can devise a stat here. This gives us
>     useful information on the longest return path, which we can then
>     explicitly use as part of the PTO computations, to compensate for
>     the fact that the RTT is based on the shortest return path. (I
>     would _not_ use this stat in the time-based loss detection timer, 
>     but PTO ought to be fine.)
>
>     - jana
>
>     On Tue, Nov 17, 2020 at 9:42 AM Christian Huitema
>     <huitema@huitema.net <mailto:huitema@huitema.net>> wrote:
>
>         I have been thinking about variations of that. I think we are
>         making progress here.
>
>         If we follow your design, we get two constraints:
>
>         1) That the receive maintains an acknowledgement list based on
>         the CID through which the packets are received.
>
>         2) That the senders guarantee that the same sequence number
>         will not be used more than once with a specific CID.
>
>         The main implementation cost is for receivers. They have to
>         allocate and maintain a "SACK Dashboard" in the context of
>         each CID that they issue.
>
>         Senders have lots of control. For example, the "only once"
>         condition is also met if a simple sender uses a single number
>         space, as long as it does not send more than 2^32 packets.
>         That makes the design reasonably easy to implement for
>         constrained implementations.
>
>         Zero length CID are still possible, but that means the
>         receiver supports only one PN space per sender. Multipath is
>         not impossible, but you end up managing a single RTT and a
>         single recovery structure. Not very good, but similar to what
>         happens if multipath is implemented at the IP level.
>
>         There is still an issue for coordinating the take down of a
>         path. Suppose that a client was using both Wi-Fi and LTE, and
>         moves out of Wi-Fi range. The server will find out eventually
>         that the packets sent to the Wi-Fi path are never
>         acknowledged, but that may take some time. It would be better
>         if the client could send a message saying something like
>         "Abandon this path". That's not the same semantic as "retire
>         this CID". We need a new frame for that.
>
>         "Abandon this path" is an extreme case. There are half-way
>         steps, like manage the relative priority of a path.
>