Re: [tcpm] Poll for CUBIC RFC updates

Yuchung Cheng <ycheng@google.com> Tue, 17 November 2020 17:51 UTC

Return-Path: <ycheng@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 D6CF53A2255 for <tcpm@ietfa.amsl.com>; Tue, 17 Nov 2020 09:51:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.6
X-Spam-Level:
X-Spam-Status: No, score=-17.6 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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, USER_IN_DEF_DKIM_WL=-7.5, USER_IN_DEF_SPF_WL=-7.5] autolearn=unavailable autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=google.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 80W4-7kyYiTY for <tcpm@ietfa.amsl.com>; Tue, 17 Nov 2020 09:51:23 -0800 (PST)
Received: from mail-wr1-x432.google.com (mail-wr1-x432.google.com [IPv6:2a00:1450:4864:20::432]) (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 B421E3A2256 for <tcpm@ietf.org>; Tue, 17 Nov 2020 09:51:22 -0800 (PST)
Received: by mail-wr1-x432.google.com with SMTP id o15so24070732wru.6 for <tcpm@ietf.org>; Tue, 17 Nov 2020 09:51:22 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=kBpWbUTuEJkxR0cOAwZQyfHspuu9UVwmsQR6gE21k9k=; b=Uus0Y//fQ5q2KnBGNm79TVNfQVXxwmoq0ccXWdH+osIFiAQsSDsseeUIBLNykKNMO5 W1AyqJZKXUKgxPKWOnuBracZJbkTbiddZ5ieqS1KixCvp6VFHZJrtLy/BLfKgxp3JYGT bpfugJOOLqvRCUVHCL9470IIlSgXcTFTMXc4wZyRkgX7whHtluOQyihYxvUxGgnXohWq abZT7ZQ9BLM8xANPGaJRxuwvTnVAtaypSx0kso8dP0vtvRz2cYSWwTpNbQh5k9UUWX7W wx3LRHg4fBqNH1+2phA5znfpRFcvx5Hk1OovUxPPcBksnnhUOQfMqpqB4cRj60xT5sdN DMdA==
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:content-transfer-encoding; bh=kBpWbUTuEJkxR0cOAwZQyfHspuu9UVwmsQR6gE21k9k=; b=lfOvD0jl3cToD+rCAZMGAoZpt8aWIlJjxbOh0TGb4MHLnhLxQbdgSVDUY9/56wGpHP y0VzwF6nTtUOShOWQUm5a6Ja0Wvq4F6UmZDSLz1mBwEz0Z1KG8+tONTSj8+CRsn5mWke B+qKKxmm4Vn1kqnQ4cxUEWDmLwWIhaAaANilaWuKi/dVCcdKLpvles6pqHX55VHlPqHW bm0GD3t7jnJwMY3/il6F4mXq/PZeh16d8vlSiwSv7lGefolMxMM5gxsxEKxM0A+59xSm iWd9R1joC49BV6dKPGr/KicqNlx1OhtRuZF+jEvXU/tNOvHaFCDLxSOg1nbNXXyesbTI kiGQ==
X-Gm-Message-State: AOAM533IC6jkCuKSKsZyHF6hyI1uS25KeiAar0ojcO0ClRKmdGkOP70n eHlQkmlgS3eQrN+TLgXd6PRFtPnJxQ+VgTiFnknJ0A==
X-Google-Smtp-Source: ABdhPJwSTMAZTeGItBTZgUelvQrv6JqKQqcrWIHd8aLewJbLdkVnFtpoghVRsHPNefn6TaAaxBgTBQ+X08qnKOYwzPc=
X-Received: by 2002:a5d:4f92:: with SMTP id d18mr777023wru.118.1605635480955; Tue, 17 Nov 2020 09:51:20 -0800 (PST)
MIME-Version: 1.0
References: <02721B41-690E-4CC2-BC26-223EDA4BFA45@apple.com> <b8726c1c-c38a-4583-f250-fe8ac466155e@gmx.at>
In-Reply-To: <b8726c1c-c38a-4583-f250-fe8ac466155e@gmx.at>
From: Yuchung Cheng <ycheng@google.com>
Date: Tue, 17 Nov 2020 09:50:43 -0800
Message-ID: <CAK6E8=eSiH_iNgOFMRXjQ_0yBCgXDqMd4gxbqzSARgHWRiv5OA@mail.gmail.com>
To: "Scheffenegger, Richard" <rs.ietf@gmx.at>
Cc: Vidhi Goel <vidhi_goel=40apple.com@dmarc.ietf.org>, "tcpm@ietf.org Extensions" <tcpm@ietf.org>, Neal Cardwell <ncardwell@google.com>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/KUQtS5nnRA1TaBzF2M2tnmTryGQ>
Subject: Re: [tcpm] Poll for CUBIC RFC updates
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 17 Nov 2020 17:51:26 -0000

On Mon, Nov 16, 2020 at 10:30 PM Scheffenegger, Richard <rs.ietf@gmx.at> wrote:
>
> We have been working on improving the FreeBSD Cubic implementation, to
> bring it up from the originally implemented (early draft) version of
> Cubic, to a more production ready state which is inline with the adopted
> RFC version.
>
> Having said this, the below changes sound reasonable and I will try to
> adopt them for FreeBSD.
>
> Richard
>
>
> Am 17.11.2020 um 03:08 schrieb Vidhi Goel:
> > Hello,
> >
> > As Lars mentioned earlier, there are a couple of issues/proposals filed
> > for updating the CUBIC RFC 8312 and are currently under discussion. The
> > GitHub repo is at https://github.com/NTAP/rfc8312bis.
> > We would like to gather information on which CUBIC implementations
> > already or would be ready to adopt these changes.
> >
> > 1. Update K definition (Eq. 2) to account for Fast Convergence
> > Issue link https://github.com/NTAP/rfc8312bis/issues/1
> > Linux already has this change. Apple's Cubic implementation for both TCP
> > and QUIC already use this.
> >
> > 2. Congestion window TCP friendly region after W_max
> > Issue link https://github.com/NTAP/rfc8312bis/issues/2
> > This is a suggestion to improve performance after cwnd > W_max. Apple's
> > Cubic implementation for both TCP and QUIC already use this.

I'd recommend replacing the modelled TCP Reno window approach in
section 4.2 with an AIMD emulation (Linux's approach).

In our experience, TCP-friendly regions are the predominant mode of
(Linux) Cubic for any regular Internet connection. IOW Cubic is often
"Reno" unless the loss rate is abysmal. The modelled approach is based
on a simple bulk transfer where modern network applications are mostly
structured traffic (burst, idle, repeat). Under such traffic
structures the model has two issues:

The model assumes cwnd overshoot causes losses that are repaired in
one round of fast recovery. In reality, the losses are often due to
bursts to short messages, causing more rounds and even timeouts to
repair. So the overall loss rate "p" tends to be higher than the ideal
model, causing the model to underestimate the window (hence runs in a
more conservative Reno). Instead Linux's approach is to simply emulate
Reno AIMD based on the number of packets per ACK. This also avoids
square-root operation.

>
> >
> >  From my experience, these changes would improve Cubic’s performance.
> >
> > Please let us know if you already or would be ready to implement these
> > changes in your CUBIC’s implementation.
> >
> > Thanks,
> > Vidhi
> >
> > _______________________________________________
> > tcpm mailing list
> > tcpm@ietf.org
> > https://www.ietf.org/mailman/listinfo/tcpm
> >
>
> _______________________________________________
> tcpm mailing list
> tcpm@ietf.org
> https://www.ietf.org/mailman/listinfo/tcpm