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

Jana Iyengar <jri.ietf@gmail.com> Thu, 03 December 2020 04:07 UTC

Return-Path: <jri.ietf@gmail.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 135013A0621 for <quic@ietfa.amsl.com>; Wed, 2 Dec 2020 20:07:30 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 V9MQ_sYfYbE0 for <quic@ietfa.amsl.com>; Wed, 2 Dec 2020 20:07:27 -0800 (PST)
Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 225F03A09F2 for <quic@ietf.org>; Wed, 2 Dec 2020 20:07:23 -0800 (PST)
Received: by mail-lf1-x12b.google.com with SMTP id t6so697282lfl.13 for <quic@ietf.org>; Wed, 02 Dec 2020 20:07:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GMNiBySE/nVd7Ab+y74GoslnqIFrXDsB/B64Hxbuudo=; b=EhM9aRC/WO8Kt0Qkpnt8br7IDk2L84w/4k3rcopTpLvskkpDXnMMN1CSA9moUQ248c BsuEE6Pm09Fnn8nqCv/meDTvyeOm1LxFQnq/OIEEU84CpnThtgEAFz5gs5U+ukv9vELE wS6dIo6oOUSB96KgjT9LbYWxLV5QxAvgpnH8+Doc7HafuBlmnMOpfV53M7nT4ga2nQFk 8H6yi3MkinIdYEKdiwvBFmUD/mv7+4Ihzc0/i8kVrFnIE7kPb4PN1i59aT+/rkD075Qi 8qX+TEqZEaQMgdgULbeKpq1RI6q5zRhmsQMoBcoy/m0fdPYWTTpryDZz/M79kM+H12rq 7WBg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=GMNiBySE/nVd7Ab+y74GoslnqIFrXDsB/B64Hxbuudo=; b=L81TljwlKxVYipCd5ji7dhrg8Cmk5rKXVwg0lmjUouk2ICCktSY/HgkHkvWbPd+rN/ AnSAuHjgY1o0/IgHi6aM6N7fRlEHih4Nuff1ZEohBNYwjQ/nThBhPxbhzYoILntoFtfH +eLF/RNSzfOafO49pUZ/YXNMN/eU8YL5WHLbvT8XN0rTediPX519fueFgaqaJ2e95aUO +3rPTB0ZfUX8PIl33j7H6u3tmHFATfBN41LznOQgWJIPBScKvAFY+eWDpbPnsGrBYKVp qywl2jfb2Wq4KeUbYZZKCH5Bmxnf+xj369uof6I3otD/M/T5wGG7BsYJjJtAqIC8I3a5 pfGQ==
X-Gm-Message-State: AOAM530OdKQjEADgbpKRCtDa+vAJhGzNk3JiLQk3kng4Ex2MEvs6Hv3r QadEVueymNUEzvDcbWdt7n87KhUqOz5bFx2Q99k=
X-Google-Smtp-Source: ABdhPJzKtf9n7C6pXBrolBQYwzhaTsAIxZX6KSqPu/hgEZLE3irzYsoTkQtEClib72ZkOFDi+9ieyoGZAPaYiW8Tc94=
X-Received: by 2002:a19:8008:: with SMTP id b8mr471978lfd.245.1606968441033; Wed, 02 Dec 2020 20:07:21 -0800 (PST)
MIME-Version: 1.0
References: <538215d1-3b9e-4784-920d-03be4c3a503a.miaoji.lym@alibaba-inc.com> <54510017-fa91-555f-0219-0859d6686b74@huitema.net> <CAMDWRAaSeC9Yd1DqzM9o5_CS5Kct0aNS_LUzty5YPO_5fBf4qw@mail.gmail.com> <CANatvzyEfkRqgCArC8sXaS1-1DckxjspBLqLyLNdHx-RDKjT_Q@mail.gmail.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>
In-Reply-To: <3A1F078F-6F88-47E8-AEB0-5E8C889AC28C@ericsson.com>
From: Jana Iyengar <jri.ietf@gmail.com>
Date: Wed, 02 Dec 2020 20:07:10 -0800
Message-ID: <CACpbDcdwBVkN84vw3eVFishMnKWwKOTw+HpGA_-VooY6TiwxQQ@mail.gmail.com>
Subject: Re: Packet number spaces in multipath (was Re: What to do about multipath in QUIC)
To: Mirja Kuehlewind <mirja.kuehlewind@ericsson.com>
Cc: Christian Huitema <huitema@huitema.net>, IETF QUIC WG <quic@ietf.org>, Kazuho Oku <kazuhooku@gmail.com>
Content-Type: multipart/alternative; boundary="00000000000017d72605b5877f53"
Archived-At: <https://mailarchive.ietf.org/arch/msg/quic/QN58dtyxMUTgjBWKOfMjYmqAMng>
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: Thu, 03 Dec 2020 04:07:30 -0000

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> 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> on behalf of Jana Iyengar <
> jri.ietf@gmail.com>
> *Date: *Wednesday, 25. November 2020 at 04:35
> *To: *Christian Huitema <huitema@huitema.net>
> *Cc: *IETF QUIC WG <quic@ietf.org>, Kazuho Oku <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>
> 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.
>
>