Re: [tcpm] [EXTERNAL] Re: Seeking WG opinions on ACKing ACKs with good cause

Christian Huitema <huitema@huitema.net> Sun, 11 July 2021 05:38 UTC

Return-Path: <huitema@huitema.net>
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 C09623A1EAE for <tcpm@ietfa.amsl.com>; Sat, 10 Jul 2021 22:38:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.69
X-Spam-Level:
X-Spam-Status: No, score=-0.69 tagged_above=-999 required=5 tests=[NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, T_SPF_PERMERROR=0.01] autolearn=ham autolearn_force=no
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 bBIlGXZLvhqf for <tcpm@ietfa.amsl.com>; Sat, 10 Jul 2021 22:38:30 -0700 (PDT)
Received: from mx36-out10.antispamcloud.com (mx36-out10.antispamcloud.com [209.126.121.30]) (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 E00373A1EAC for <tcpm@ietf.org>; Sat, 10 Jul 2021 22:38:29 -0700 (PDT)
Received: from xse7.mail2web.com ([66.113.196.7] helo=xse.mail2web.com) by mx135.antispamcloud.com with esmtp (Exim 4.92) (envelope-from <huitema@huitema.net>) id 1m2SAb-0016wb-DG for tcpm@ietf.org; Sun, 11 Jul 2021 07:38:26 +0200
Received: from xsmtp22.mail2web.com (unknown [10.100.68.61]) by xse.mail2web.com (Postfix) with ESMTPS id 4GMwfl2lqCzDPZ for <tcpm@ietf.org>; Sat, 10 Jul 2021 22:38:23 -0700 (PDT)
Received: from [10.5.2.49] (helo=xmail11.myhosting.com) by xsmtp22.mail2web.com with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from <huitema@huitema.net>) id 1m2SAZ-0001PF-8t for tcpm@ietf.org; Sat, 10 Jul 2021 22:38:23 -0700
Received: (qmail 11763 invoked from network); 11 Jul 2021 05:38:22 -0000
Received: from unknown (HELO [192.168.1.101]) (Authenticated-user:_huitema@huitema.net@[172.58.43.16]) (envelope-sender <huitema@huitema.net>) by xmail11.myhosting.com (qmail-ldap-1.03) with ESMTPA for <nishida@sfc.wide.ad.jp>; 11 Jul 2021 05:38:22 -0000
To: Bob Briscoe <ietf@bobbriscoe.net>, Yoshifumi Nishida <nsd.ietf@gmail.com>, "tcpm@ietf.org" <tcpm@ietf.org>, Mirja Kuehlewind <ietf@kuehlewind.net>, "rs.ietf@gmx.at" <rs.ietf@gmx.at>
Cc: "nishida@sfc.wide.ad.jp" <nishida@sfc.wide.ad.jp>
References: <47df9b8b-515e-d40d-3473-599b0a3e3876@bobbriscoe.net> <bd6ab65d-ccd5-9fa9-58be-6d9fea4af870@bobbriscoe.net> <CAAK044QgF4pz5Wamnxkobthou5ac4_LBxh8=nBYWyOxQUtcW-Q@mail.gmail.com> <8151fdef-ae78-80f3-adfc-d40db878ac8e@gmx.at> <CAAK044RhdAYexcGRj_XDkdY_o6JqB0DDo1X0H2AeFkRcsb0i4A@mail.gmail.com> <48c5910d-5340-acd6-8fd9-fff1b7758310@bobbriscoe.net> <CAAK044QOdi8DzBbLbwTvdcesFK21i1KU+Sj+4J7_odE5UQfmNg@mail.gmail.com> <dc11cd02-616e-93a7-7bcf-1e5112c2e1e1@bobbriscoe.net> <99B71B9A-EC9B-47FD-A149-FBEF9DEEC8DC@kuehlewind.net> <CAAK044SgdHAiBvDPHYOaq7-fgJTrBBoAqZQ70F5X3Q5HXvTEuw@mail.gmail.com> <ce4f09c2-2b50-8b35-3c3d-a01d45acce3b@bobbriscoe.net> <CAAK044SC4+=RBOEky34OzuirM-u_Om58Lm8uqSqkcpExSBwfHA@mail.gmail.com> <c98723ea-8cbe-5141-a127-33975676050c@gmx.at> <CO2PR00MB016662270FCE3E01AC4138D9B67D9@CO2PR00MB0166.namprd00.prod.outlook.com> <CAAK044QxkxxuuRXyRQB4U5q+SOKqUYLBqv7-tRJHybkFQjsO2A@mail.gmail.com> <d9d36273-7407-4e8e-b9e8-cd97f1096d54@bobbriscoe.net>
From: Christian Huitema <huitema@huitema.net>
Message-ID: <c862f6e1-9a95-6f37-6bed-0111a16b3cc6@huitema.net>
Date: Sat, 10 Jul 2021 22:38:21 -0700
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.11.0
MIME-Version: 1.0
In-Reply-To: <d9d36273-7407-4e8e-b9e8-cd97f1096d54@bobbriscoe.net>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: quoted-printable
Content-Language: en-US
X-Originating-IP: 66.113.196.7
X-Spampanel-Domain: xsmtpout.mail2web.com
X-Spampanel-Username: 66.113.196.0/24
Authentication-Results: antispamcloud.com; auth=pass smtp.auth=66.113.196.0/24@xsmtpout.mail2web.com
X-Spampanel-Outgoing-Class: unsure
X-Spampanel-Outgoing-Evidence: Combined (0.15)
X-Recommended-Action: accept
X-Filter-ID: Pt3MvcO5N4iKaDQ5O6lkdGlMVN6RH8bjRMzItlySaT9WLQux0N3HQm8ltz8rnu+BPUtbdvnXkggZ 3YnVId/Y5jcf0yeVQAvfjHznO7+bT5yjTC8Fov82/EJuxz8FihBPKj/EwzSHE5FGYwwjsNRPCCma DytoMWzyPlKVtFE64rTmD6wdmZPcItWbGe10hXJtXL4FsauCVkDjmcYJdU3yWp7KuHNaaKdg7iBE ZefdsNUFWKwa/wzJUjmazeC7Imcapebr0kNyYC289u5HlaNj1BQ6V51u76v35b1wNe/MvdL/hXir I7jpLA3NtNK1rbkD2+J9PgaoF8SQHto3le4zsHTaeQtlKubP6iUTjj6yPARK6buALVaA782LKxg6 vRmng8N1aLhXqdc+jC1RcnVud53D5caUhbVtvqItBqoizkEt9O20UjkwI0v+LOlw05G4BS+iyyNq bT8dUMXMJ4tUCMj6G37ZfAMLceP5aNHPt26RBupu5v1nytoNnc138GfEJRQ2qC7jjynPIHPNqSn4 QTXUjLjYWQt1/5xnQymMoPsgr/U0flMcy2Vi/IcBgY4arPaiJ1W6hAyiRC61jekdwIcXNugoOEbH RyFULpSjm7jZ1h/HfDRQ5Ig8VhPsPE8NlkBmbR1LS6Kx8w5MHqDEE4BBJaBtD32RALQCSg1oDtMl PyREjmB5EAdXVBvzPnf7DRojSVizNl0ce/s7u0P9b9Tml6eOMCV9kYYwkPx6ZsXvIUzTXkDAiiJi mGhLUFuSOTgtjQWHblEKb/bSn512w9qoLbHrX5KHDBoYpFP6SoHZcpPgEJKLbDyaC/LdLvvY/Vzw IcESbxiIxnB7tuHetfpVB9v9zY0h8asEYmbGGsJkWjQ4xyeNtxxq2TXT/AfNgWH7GTOjKdjx/QnC QSBbKRX0XF3qP/dj48psOHFCwviQxKSBCGH0S84CnKX/NUAV3jR5NeVaJQBh0uawl0Cg8nrgSS6D 7FozWS6JHKREtqdEPzY64lXv2dr2sny4a4Sj0cqzvWDlDrFILmNCVZ/264kd2x35zAiBFPp64JaI ysAWfpirH8g1GOR1IFGt5BWm
X-Report-Abuse-To: spam@quarantine11.antispamcloud.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/xTFKJNXQTocgtBrmVobjP6yJ4AA>
Subject: Re: [tcpm] [EXTERNAL] Re: Seeking WG opinions on ACKing ACKs with good cause
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: Sun, 11 Jul 2021 05:38:36 -0000

On 7/10/2021 2:13 PM, Bob Briscoe wrote:
> Yoshi, Richard, Mirja, tcpm list,
>
> We came to a good consensus in late March on the conditions to place 
> around ACKing ACKs in order to keep congestion feedback flowing, but 
> to ensure ping-pong ACKs are rapidly damped as well as avoiding false 
> DupACK detection. I have written that up in a rev of the draft, which 
> I will post separately so as not to distract from the question I have 
> here...
> ...While writing up, I realized we had glossed over a possibly more 
> important point, when we proposed to change the number in the basic 
> rule from 2 to 3, as follows:
>
>       An AccECN Data Receiver MUST immediately send an ACK once 'n'
>       CE marks have arrived since the previous ACK, where 'n' SHOULD
>       be 3 and MUST be in the range 3 to 6 inclusive.
>
>
> I'd like to suggest an alternative:
>
>       An AccECN Data Receiver MUST immediately send an ACK once 'n'
>       CE marks have arrived since the previous ACK. If there is new
>       data to acknowledge, 'n' SHOULD be 2.  If there is no new data
>       to acknowledge, 'n' SHOULD be 3 and MUST be no less than 3.
>       In either case, 'n' MUST be no greater than 6.
>
>
> Rationale: The data ACKs case shouldn't be compromised by the ACKs of 
> ACKs case.
>
> When we were originally only thinking of the data ACKs case (before we 
> realized this rule might trigger ACKs of ACKs), we recommended n=2  
> because it ensures congestion information is kept fresh, and during 
> runs of congestion it generates more ACKs, which might make it more 
> likely that at least one ACK survives some types of coalescing before 
> the ACE field wraps. Also 2 is the default for the equivalent 
> repetition of DCTCP feedback.
>
> Then, we noticed the ACKs of ACKs case, and we wanted to damp any ACK 
> ping-pong, so we recommended 3. Without really discussing the pros and 
> cons, we extended 3 to all cases (both data ACKs and ACKs of ACKs). I 
> suspect the main reason was that it is just simpler to have a single 
> rule. But these two cases are likely to be controlled from different 
> parts of the code anyway.
>
> I've also realized that, in the data ACKs case, it was wrong to set a 
> lower bound on 'n', let alone a /mandatory/ lower bound. There might 
> be scenarios where it makes sense to trigger an ACK every CE mark; we 
> have no reason to stop implementers doing that if they want. A lower 
> bound could even be perversely read to mean that you're not allowed to 
> immediately ACK data until you've received 'n' CE marks.
>
> Thoughts? 

I am looking at this from the QUIC point of view. In general, frequent 
ACKs provide better control, but there are two points of tension: 
managing low bandwidth return paths; and, reducing the impact of ACK on 
performance.

There are a number of scenarios in which the return path used by ACKs 
has a much lower bandwidth than the data path. If ACKs are two frequent, 
the return path can become congested. ACKing every two or 3 packets is 
only sustainable if the return path bandwidth is not too small compared 
to the data path -- 1/10th is generally sustainable, but lower that 
1/20th and the ACKs have to be spaced. The alternative to spacing would 
be increased RTT due to congestion on the return path, and random losses 
of ACKs. Of course, even with ACK spacing, there are limits to 
asymmetry: control becomes loose if the transport does not receive 
multiple ACKs per RTT.

ACK frequency has been found a key factor in the performance of QUIC 
implementations. For example, implementations may achieve 5Gbps with 
spaced ACK, but the performance drops to a few 100 Mbps if we insist on 
an ACK for 2 packets. High performance requires sending packets in 
batches, using API like UDP GSO, and performance seems best when the 
frequency of ACKs more or less matches the frequency of batches.

-- Christian Huitema