Re: [tcpm] I-D Action: draft-ietf-tcpm-prr-rfc6937bis-05.txt

Neal Cardwell <ncardwell@google.com> Mon, 05 February 2024 22:29 UTC

Return-Path: <ncardwell@google.com>
X-Original-To: tcpm@ietfa.amsl.com
Delivered-To: tcpm@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 32BAAC14F694 for <tcpm@ietfa.amsl.com>; Mon, 5 Feb 2024 14:29:22 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.599
X-Spam-Level:
X-Spam-Status: No, score=-17.599 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_MED=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_KAM_HTML_FONT_INVALID=0.01, T_SCC_BODY_TEXT_LINE=-0.01, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 i9G_y84zJOSz for <tcpm@ietfa.amsl.com>; Mon, 5 Feb 2024 14:29:21 -0800 (PST)
Received: from mail-vk1-xa31.google.com (mail-vk1-xa31.google.com [IPv6:2607:f8b0:4864:20::a31]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 74C8BC14F69B for <tcpm@ietf.org>; Mon, 5 Feb 2024 14:29:11 -0800 (PST)
Received: by mail-vk1-xa31.google.com with SMTP id 71dfb90a1353d-4c035b3203dso398042e0c.2 for <tcpm@ietf.org>; Mon, 05 Feb 2024 14:29:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1707172150; x=1707776950; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PfUus4NrxnKvRkOkfSFdr0w5dNMbQSQCpNeQW/9YA8o=; b=Bv8iEED92Xify0oo/t01xZQxucDh7LAJFYWQF8cYhTrG6UXiOeW6/IKm6H08RWtLuM TQzCp4n2BzbzwoESRlXsZTzK+pB6KCLw14RlbA5s30mnD4lHgksEqqFYNP5Avu0QkudJ bHTwXW4HfJNkcTTU8CGq8sOYuy61QNq104ICXFOGvwWw1pqrniN7pWN9gpVmhgBV/zPe o4zxKZUrgLEJyxx+0lyY66WGYJrZJ3D7QtpuUvBL02LMADhzzksaiTQd4O0SgLq6GDas o4gTOwG/b0V8JHxeuBcSZDKcyWjnLTjjBir4XsrcloSroV4NyQWlQjhyzdNrRti/zp+v gb8Q==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707172150; x=1707776950; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PfUus4NrxnKvRkOkfSFdr0w5dNMbQSQCpNeQW/9YA8o=; b=Al6BYrMUt+be9247lPf/jW1aXoePR7WCVre1MYT7I+n12XSirj7Dv4/c0ylxGsi/af SCK1l4uEUA6wxz7T9DrbSV/AQzbGn8meh2KGj2RBv6+mGfmpqA+4iGuK/A/5dqLPvtNq MmNTRgoBaXCYCesI0Qi2rRhw9l9ZOZcr+XI7n6TcUiAmRIBTftXg1fQHB12DpLHMio7g itFuws/EcgEYXtV2NfCkycW8JoBDenUi9JJrkRlQV3WCdKYvv3PcPDl1mbk1XbwGQBS9 jk8pRtQURtQTISw0IYi1OAkNuRynnPktJm6JDpYFqUdiPmRP0KwSmfGJSkGduuuJ26CA xcig==
X-Gm-Message-State: AOJu0YwXVmpN2U7RumMFWw9mXFzM+NLAGfH7Zrv175x9lSHDODJK52SZ PikBMO+9jqbo4xlm1C4zO29OVhZt6J2QvBtGQiVMPAtWOxwBmQXgNjYwJZPlv4tbHcG4RD25eA4 oA5DEXTKt/uVIsxo31DZdT7loju4npQHkEwbp
X-Google-Smtp-Source: AGHT+IGdVukpJnnBG6WbzR0vfOx8rdanzjRp7u15bF/XIKPFIA2tzRwDMHY39RcwgZSQqokw2mxN9m4fGIzPji7/bRU=
X-Received: by 2002:a05:6122:201a:b0:4c0:2561:75c2 with SMTP id l26-20020a056122201a00b004c0256175c2mr307534vkd.4.1707172149863; Mon, 05 Feb 2024 14:29:09 -0800 (PST)
MIME-Version: 1.0
References: <170657898135.64951.13444558093264676035@ietfa.amsl.com> <4cbabb73-10ff-44ef-a0ee-0d7bdbe124ff@gmx.at> <CADVnQy=nEQQiW=VNNfr=2z5RzuMj2Yu0FyXwjKvFvBbnMSxbDQ@mail.gmail.com> <CAAK044QXrJ4Wk9iAQqZjDKzGbi9oLQB3-5Um6ysGLir_T4FGew@mail.gmail.com> <CADVnQynL7CKNfmCCi3y3vZGaA8i4ZggsH_t_VFRL2QjecLR1gA@mail.gmail.com> <CAAK044Rz9Ad78xGs+kOSnMC8ybKf=+m7Ymhqi8siBTRxGb9Rnw@mail.gmail.com>
In-Reply-To: <CAAK044Rz9Ad78xGs+kOSnMC8ybKf=+m7Ymhqi8siBTRxGb9Rnw@mail.gmail.com>
From: Neal Cardwell <ncardwell@google.com>
Date: Mon, 05 Feb 2024 17:28:53 -0500
Message-ID: <CADVnQy=c=3RX5WCZOSFi70ZgGrDhJ6bNgo7q6yZu=_eWmdK=ow@mail.gmail.com>
To: Yoshifumi Nishida <nsd.ietf@gmail.com>
Cc: rs.ietf@gmx.at, tcpm@ietf.org, Matt Mathis <mattmathis@measurementlab.net>, Yuchung Cheng <ycheng@google.com>, Nandita Dukkipati <nanditad@google.com>
Content-Type: multipart/alternative; boundary="0000000000009077240610a9fd9b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/3ChrG2AArPdxVLHkf6HWeTqbAFg>
Subject: Re: [tcpm] I-D Action: draft-ietf-tcpm-prr-rfc6937bis-05.txt
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm/>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 05 Feb 2024 22:29:22 -0000

On Mon, Feb 5, 2024 at 11:51 AM Yoshifumi Nishida <nsd.ietf@gmail.com>
wrote:

>
>
> On Mon, Feb 5, 2024 at 8:25 AM Neal Cardwell <ncardwell@google.com> wrote:
>
>>
>>
>> On Mon, Feb 5, 2024 at 12:04 AM Yoshifumi Nishida <nsd.ietf@gmail.com>
>> wrote:
>>
>>> Hi Neal,
>>>
>>> On Wed, Jan 31, 2024 at 8:43 AM Neal Cardwell <ncardwell=
>>> 40google.com@dmarc.ietf.org> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Jan 31, 2024 at 11:04 AM <rs.ietf=40gmx.at@dmarc.ietf.org>
>>>> wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I'm slightly surprised that PRR removes any specific mentioned to the
>>>>> SACK loss recovery (with already SACKed data) vs. non-SACK loss
>>>>> recovery. The wording changed in section 5 makes it more ambigious if
>>>>> delivered data (SACKed) at the initialization of PRR loss recovery
>>>>> should be included or not...
>>>>>
>>>>> This is the one technical change in this revision; excluding SACKed
>>>>> data
>>>>> on entering PRR loss recovery, doesn't that either add complexity
>>>>> (tracking what SACKed / retransmitted / lost data was at the start of
>>>>> PRR and excluding this subsequently), or inflate the transmission
>>>>> opportunities when SndCnd is calculated?
>>>>>
>>>>
>>>> Good points. What do folks think of the following proposed edits:
>>>>
>>>> proposed edit 1:
>>>> ---
>>>> Old version from version 05:
>>>>   RecoverFS is the number of unacknowledged bytes upon entering fast
>>>> recovery, and as such it remains constant during a given fast recovery
>>>> episode..
>>>>
>>>> Proposed:
>>>>   Upon entering fast recovery, PRR initializes RecoverFS to the value
>>>> of "pipe", the sender's estimate of the number of bytes outstanding in the
>>>> network, where "pipe" is computed as specified in RFC 6675. RecoverFS
>>>> remains constant during a given fast recovery episode.
>>>>
>>>> proposed edit 2:
>>>> ---
>>>> Old version from version 05:
>>>>   RecoverFS = snd.nxt - snd.una // FlightSize right before recovery
>>>>
>>>> Proposed:
>>>>
>>>>    pipe = (RFC 6675 pipe algorithm)
>>>>
>>>>    RecoverFS = pipe              // RFC 6675 pipe before recovery
>>>>
>>>
>>> Hmm. but, if SACK is not used, can we use pipe?
>>> Wouldn't it be something like this?
>>>
>>> pipe = (SACK is used)?(RFC 6675 pipe algorithm):(snd_nxt - snd.usa)
>>>
>>
>> Why not use pipe for non-SACK connections? AFAICT the pipe definition can
>> be used for non-SACK connections.
>>
>> If we take the RFC 6675 definition of pipe literally, then for non-SACK
>> connections AFAICT IsLost (S1) returns false for every packet between
>> SND.UNA and SND.NXT, so that pipe will be SND.NXT - SND.UNA? And that would
>> match the answer from this proposed logic, AFAICT?
>>
>> If we take the notion of pipe semantically, then for non-SACK connections
>> AFAICT this encourages TCP implementations to initialize RecoverFS to their
>> estimate of the amount of data outstanding in the network. Implementations
>> may have a non-SACK notion of pipe that is better than SND.NXT - SND.UNA.
>> For example, Linux TCP has a non-SACK pipe estimate that, upon entry to
>> fast recovery, would be esssentially SND.NXT - SND.UNA -
>> (num_dupacks_received*SMSS). That's a better (more accurate) value to use
>> than SND.NXT - SND.UNA .
>>
>
> OK. I see your point. Thanks for the clarification.
> Do we want to specify the better value for non-sack case than the current
> one or leave it to implementations?
>

Good question. Matt and I chatted about this just now. We have updated the
proposed draft text describing RecoverFS so that it now reads as:
---
RecoverFS is the "recovery flight size", the number of bytes the sender
estimates are in flight in the network upon entering fast recovery. PRR
uses RecoverFS to compute a smooth sending rate. Upon entering fast
recovery, PRR initializes RecoverFS to the sender's best estimate of the
number of bytes outstanding in the network; for connections with SACK this
is typically "pipe" as specified in RFC 6675. RecoverFS remains constant
during a given fast recovery episode.
---

The initialization proposed pseudocode still reads as:
---

   pipe = (RFC 6675 pipe algorithm)
   RecoverFS = pipe              // RFC 6675 pipe before recovery
---

Our sense was that this approach is general enough to encompass both SACK
and non-SACK cases.

We could indeed spell out the pseudocode for the non-SACK case, but we
wanted to avoid specifying something that might accidentally conflict with
other standards, now or in the future.

How does that sound?

best regards,
neal