From nobody Fri Nov 11 05:14:56 2022 X-Original-To: freebsd-net@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4N7n2b6qkGz4dTky for ; Fri, 11 Nov 2022 05:15:03 +0000 (UTC) (envelope-from zlei.huang@gmail.com) Received: from mail-pj1-x1030.google.com (mail-pj1-x1030.google.com [IPv6:2607:f8b0:4864:20::1030]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4N7n2b4R39z412h for ; Fri, 11 Nov 2022 05:15:03 +0000 (UTC) (envelope-from zlei.huang@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1030.google.com with SMTP id l22-20020a17090a3f1600b00212fbbcfb78so6818612pjc.3 for ; Thu, 10 Nov 2022 21:15:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=5gWHCM6X7qd7yT9VH8fO5TB9mKTlFbrjgPUDcW5fFDw=; b=CylH93rgOeIrzAQvgsIRhjJwA7O0OFrLjoZixbqAWq69rJRoYThyCSro9tJxo3HIAd w8TPd04g2JbskSbvCnlNysHraK5t2rAHvav684i3LDtxMBP3C2nSGsx5eNFuVhVM823v gQWabRivhtprnI3r7lnv2knAlp9CByOcZcg8pv6KxLosO1M8oSSCiktkwjFeYW9W7/fa LcndMMxQm9XzzwtLyJ3mEMaOAifBs+4jYCRX44o4yJL/IhRqKZoXpRB77uAubP9tzN2X 7RxSBbExqpYo46PT6t0K6JoR2mXn+RPLQQ9/iEkc8/T/pCYBCFC1oUoMF2gDQ07lE1+I 95rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=5gWHCM6X7qd7yT9VH8fO5TB9mKTlFbrjgPUDcW5fFDw=; b=fopI0+werqqRjsjnwm9eQS4dkUPwwoNhzeLyCOK/eXYSb0JhqM0DG+x8gsm58avvXV lWfz6FF0CC75Lpdz8yPAvjYnn87JymEHO5LsXzpnMfLW4dPVfCHn0ImE5UJyemmF8S3Z e52/XBDwtlZYVW2XPLgVSYfWzlbL0NE6PXd/qnXAGSSbAh/KDNLBjbASO7EnJm6JjAh+ Jh0xJK3LelO9dc+aP8L4PQr7724SGMCUzWco00aiF2MLITvOYoohnIfJ3hiGLtnNYDm8 Av3OhaPHgAYSO4n6oKkBrd366690GvpF2QKyVUGocsR/Hc9Oa81w4yPlKjQDSHFwp1iI cItg== X-Gm-Message-State: ANoB5pk9v21VBr3vQLVe6/00dVH3RQ7LqwxeMcf6KgFRSo9SmbctnuoP tWQUm+Szi4SNN3oQ78Q7L/i+ur2z1cHzg/PP X-Google-Smtp-Source: AA0mqf5Ql43XT6DXfT/4BaXOSJZ86lPT0VkQ9W6znNFaSpkKiuFB4HIQ1adhKvheXU305WbzJ/nF/g== X-Received: by 2002:a17:902:8b82:b0:186:8f1c:ba11 with SMTP id ay2-20020a1709028b8200b001868f1cba11mr1015730plb.90.1668143701791; Thu, 10 Nov 2022 21:15:01 -0800 (PST) Received: from [172.17.252.129] (ns1.oxydns.net. [45.32.91.63]) by smtp.gmail.com with ESMTPSA id f14-20020a170902684e00b0017b69f99321sm605901pln.219.2022.11.10.21.14.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 10 Nov 2022 21:15:01 -0800 (PST) From: Zhenlei Huang Message-Id: <63BD8E79-29FA-47E6-BBF7-B755BA060FC7@gmail.com> Content-Type: multipart/alternative; boundary="Apple-Mail=_31C73F77-BFEF-4968-AFBB-394C2135F9F6" List-Id: Networking and TCP/IP with FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-net List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-net@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\)) Subject: Re: Too aggressive TCP ACKs Date: Fri, 11 Nov 2022 13:14:56 +0800 In-Reply-To: Cc: Hans Petter Selasky , Michael Tuexen , "freebsd-net@freebsd.org" To: "Scheffenegger, Richard" References: <75D35F36-7759-4168-ADBA-C2414F5B53BC@gmail.com> <712641B3-5196-40CC-9B64-04637F16F649@lurchi.franken.de> <62A0DD30-B3ED-48BE-9C01-146487599092@gmail.com> <0FED34A9-D093-442A-83B7-08C06D11F8B5@lurchi.franken.de> <330A9146-F7CC-4CAB-9003-2F90B872AC3E@gmail.com> <1ed66217-5463-fd4d-7e7a-58d9981bc44c@selasky.org> <5A501643-1E81-4A8C-8DDC-094371DC03D7@gmail.com> <7EDD65B7-5FCD-42E1-A9E8-AA5139B0A81E@gmail.com> X-Mailer: Apple Mail (2.3608.120.23.2.7) X-Rspamd-Queue-Id: 4N7n2b4R39z412h X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US]; TAGGED_FROM(0.00)[] X-ThisMailContainsUnwantedMimeParts: N --Apple-Mail=_31C73F77-BFEF-4968-AFBB-394C2135F9F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 10, 2022, at 8:01 PM, Scheffenegger, Richard = wrote: >=20 > This is the current draft in this space: > =20 > https://datatracker.ietf.org/doc/draft-gomez-tcpm-ack-rate-request/ = > =20 > and it has been adopted as WG document at this weeks IETF, from what I = can tell. Thanks for that information ! > =20 > So it has traction =E2=80=93 if you want to give your feedback, please = subscribe to the tcpm mailing list, and discuss your use case and how/if = the approach aligns with this there. Subscribed. > =20 > Richard > =20 > =20 > =20 > From: owner-freebsd-net@freebsd.org = > On Behalf Of Zhenlei Huang > Sent: Donnerstag, 10. November 2022 09:07 > To: Hans Petter Selasky > > Cc: Michael Tuexen >; freebsd-net@freebsd.org = > Subject: Re: Too aggressive TCP ACKs > =20 > NetApp Security WARNING: This is an external email. Do not click links = or open attachments unless you recognize the sender and know the content = is safe.=20 >=20 >=20 >=20 > On Nov 9, 2022, at 11:18 AM, Zhenlei Huang > wrote: > =20 > =20 > On Oct 22, 2022, at 6:14 PM, Hans Petter Selasky > wrote: > =20 > Hi, >=20 > Some thoughts about this topic. > =20 > Sorry for late response. >=20 >=20 >=20 > Delaying ACKs means loss of performance when using Gigabit TCP = connections in data centers. There it is important to ACK the data as = quick as possible, to avoid running out of TCP window space. Thinking = about TCP connections at 30 GBit/s and above! > =20 > In data centers, the bandwidth is much more and the latency is = extremely low (compared to WAN), sub-milliseconds . > The TCP window space is bandwidth multiply RTT. For a 30 GBit/s = network it is about 750KiB . I think that is trivial for a > datacenter server. >=20 >=20 > 4.2.3.2 in RFC 1122 states: > > in a stream of full-sized segments there SHOULD be an ACK for at = least every second segment=20 > Even if the ACK every tenth segment, the impact of delayed ACKs on TCP = window is not significant ( at most > ten segments not ACKed in TCP send window ). > =20 > Anyway, for datacenter usage the bandwidth is symmetric and the = reverse path ( TX path of receiver ) is sufficient. > Servers can even ACK every segment (no delaying ACK). > =20 >=20 > I think the implementation should be exactly like it is. >=20 > There is a software LRO in FreeBSD to coalesce the ACKs before they = hit the network stack, so there are no real problems there. > =20 > I'm OK with the current implementation. > =20 > I think upper layers (or application) have (business) information to = indicate whether delaying ACKs should be employed. > After googling I found there's a draft [1]. > =20 > [1] Sender Control of Delayed Acknowledgments in TCP: = https://www.ietf.org/archive/id/draft-gomez-tcpm-delack-suppr-reqs-01.xml = > =20 > Found the html / pdf / txt version of the draft RFC. > https://datatracker.ietf.org/doc/draft-gomez-tcpm-ack-pull/ = >=20 >=20 >=20 >=20 >=20 > --HPS >=20 >=20 > =20 > Best regards, > Zhenlei --Apple-Mail=_31C73F77-BFEF-4968-AFBB-394C2135F9F6 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On = Nov 10, 2022, at 8:01 PM, Scheffenegger, Richard <Richard.Scheffenegger@netapp.com> wrote:

This is the current draft in this space:
 
 
and it has been = adopted as WG document at this weeks IETF, from what I can = tell.

Thanks for that information !

 
So it has = traction =E2=80=93 if you want to give your feedback, please subscribe = to the tcpm mailing list, and discuss your use case and how/if the = approach aligns with this = there.

Subscribed.

 
Richard
 
 
 
From: owner-freebsd-net@freebsd.org <owner-freebsd-net@freebsd.org> On Behalf = Of Zhenlei = Huang
Sent: Donnerstag, 10. November = 2022 09:07
To: Hans Petter Selasky <hps@selasky.org>
Cc: Michael Tuexen <michael.tuexen@lurchi.franken.de>; freebsd-net@freebsd.org
Subject: Re: Too aggressive TCP = ACKs
 
NetApp Security WARNING: This is an external email. Do not click links or = open attachments unless you recognize the sender and know the content is = safe. 



On = Nov 9, 2022, at 11:18 AM, Zhenlei Huang <zlei.huang@gmail.com> = wrote:
 
 
On Oct 22, 2022, at 6:14 = PM, Hans Petter Selasky <hps@selasky.org> wrote:
 
Hi,

Some thoughts = about this topic.
 
Sorry = for late response.



Delaying = ACKs means loss of performance when using Gigabit TCP connections in = data centers. There it is important to ACK the data as quick as = possible, to avoid running out of TCP window space. Thinking about TCP = connections at 30 GBit/s and above!
 
In data centers, the bandwidth is much = more and the latency is extremely low (compared to = WAN), sub-milliseconds .
The TCP window space is bandwidth = multiply RTT. For a 30 GBit/s network it is about 750KiB . I think that = is trivial for a
datacenter server.


4.2.3.2 in RFC 1122 states:
> in a stream of full-sized segments there = SHOULD be an ACK for at least every second segment 
Even if = the ACK every tenth segment, the impact of delayed ACKs on TCP = window is not significant ( at most
 ten segments not ACKed in = TCP send window ).
 
Anyway, for datacenter usage = the bandwidth is symmetric and the reverse path ( TX path of = receiver ) is sufficient.
Servers can even ACK every segment = (no delaying ACK).
 

I think the implementation should = be exactly like it is.

There is a software = LRO in FreeBSD to coalesce the ACKs before they hit the network stack, = so there are no real problems there.
 
I'm OK with the current = implementation.
 
I think upper layers (or application) = have (business) information to indicate whether delaying ACKs should be = employed.
After googling I found there's a draft [1].
 
[1] Sender Control of Delayed Acknowledgments in = TCP: https://www.ietf.org/archive/id/draft-gomez-tcpm-delack-suppr-r= eqs-01.xml
 
Found = the html / pdf / txt version of the draft RFC.





--HPS

 
Best regards,
Zhenlei
<= /div>
= --Apple-Mail=_31C73F77-BFEF-4968-AFBB-394C2135F9F6--