Re: [tcpm] On Sender Control of Delayed Acks in TCP

Neal Cardwell <ncardwell@google.com> Fri, 01 May 2020 12:19 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 D9D403A1141 for <tcpm@ietfa.amsl.com>; Fri, 1 May 2020 05:19:59 -0700 (PDT)
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=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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WMK-QXNzt6_6 for <tcpm@ietfa.amsl.com>; Fri, 1 May 2020 05:19:57 -0700 (PDT)
Received: from mail-vk1-xa41.google.com (mail-vk1-xa41.google.com [IPv6:2607:f8b0:4864:20::a41]) (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 EDAFB3A113E for <tcpm@ietf.org>; Fri, 1 May 2020 05:19:56 -0700 (PDT)
Received: by mail-vk1-xa41.google.com with SMTP id w188so2655995vkf.0 for <tcpm@ietf.org>; Fri, 01 May 2020 05:19:56 -0700 (PDT)
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; bh=dfQEX8UAVZXER136MM3zipAa0lSbQDrsbZWAiBJ+gF8=; b=ezg5zk7KlZ9vVOwJzATpCizzA9U9DiqKEuZVXe8UhVNYejdCJuLUhSzYvzrzcCbli6 gsBoZrOLzXAjd/3p8Wb54ktHR06pSM6NcuK4LMfYHaU00+nfexXGsL7JGdtyUEnE35c7 +7spe9q6ami9UtT07nue3YUo2mnDj7TXPN95Z0jATCQadk9G55OEw/sY82xAim82CtdO O7jnm13gte3/eWRSp6Te4Ybta4bKMn4QvV1j0J5oTFsY8gLy/kQD/GMjy85rptn2L4ld xNRad1IUZXfkgZDIgW+93UoWDzC5KRAaY2UZjuQQJSiC8pqb3odJHdtM70/oHJ6phzL4 uqGQ==
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=dfQEX8UAVZXER136MM3zipAa0lSbQDrsbZWAiBJ+gF8=; b=G2fO2bib/wTkHSoiIVtNzaK2qHhFjMEBBxTgpdkUCTwknVPAlj8AHFmCIXEqNdZL/l N/wXDBIN8Q89AfFL8VE/4Tlu+GusSgmJziKzvWJmG9B3Zj2ERoh97CRcznnVQGiazkgB uctDNDw7miiK4hoCO1Ec5Yf42iXQipWTKLd46G2Tbs61rdKe0tf1/BjcA02pAq+jw4IE 6QkF57uDxGwbS1ehoCELrNAbVnUtX9dk4l8d0bMMAincKkao6xGkM4YBcYczIjvHaUZp C3GRv7wcgKPfR39tgtizexUh10nJpEvIyKSaKsxYH0EhMxF4uVj8RH447o6G4w6X9qqc UQGw==
X-Gm-Message-State: AGi0PuZfFsrA6+PmSW65i7uBOdPqQ+6su6bqG26yf8YK814oxyK3kO3r J7sdzG7IvHOSnm0NneYnu95UJ5RI/q7jMKrNOJO10w==
X-Google-Smtp-Source: APiQypJqOqD54IOZDGw/14V9rlyveJX5Zzda7BCmdzvcyWvEP+DXEvDrPHsb3FpczAHZviqljFAsVJzOwwKzYRIVmJ0=
X-Received: by 2002:a1f:5381:: with SMTP id h123mr2332382vkb.66.1588335595331; Fri, 01 May 2020 05:19:55 -0700 (PDT)
MIME-Version: 1.0
References: <683902e8-a2af-cfb7-ffd0-c5c5742e5bd5@gmx.at> <CADVnQykY3OqXy=RcEfa-OpfK2x=W5_FTrdrx7PvKuqgEt92uNw@mail.gmail.com> <7d145f1203f6344b92f6f8aa11a78239.squirrel@webmail.entel.upc.edu>
In-Reply-To: <7d145f1203f6344b92f6f8aa11a78239.squirrel@webmail.entel.upc.edu>
From: Neal Cardwell <ncardwell@google.com>
Date: Fri, 01 May 2020 08:19:38 -0400
Message-ID: <CADVnQy=wPUx62y7VNqjSPP+snKX4vVvK5q=qqYb1j+0nGrtezQ@mail.gmail.com>
To: Carles Gomez Montenegro <carlesgo@entel.upc.edu>
Cc: "Scheffenegger, Richard" <rs.ietf@gmx.at>, "tcpm@ietf.org" <tcpm@ietf.org>, Gorry Fairhurst <gorry@erg.abdn.ac.uk>, Bob Briscoe <ietf@bobbriscoe.net>, jon.crowcroft@cl.cam.ac.uk
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/98__T-22uy4Qg_elp9bCMp6cfts>
Subject: Re: [tcpm] On Sender Control of Delayed Acks in TCP
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: Fri, 01 May 2020 12:20:00 -0000

On Fri, May 1, 2020 at 6:23 AM Carles Gomez Montenegro
<carlesgo@entel.upc.edu> wrote:
>
> Hi Neil,
>
> Thanks a lot for your comments!
>
> Please find below my inline responses:
>
> > On Wed, Apr 29, 2020 at 1:03 PM Scheffenegger, Richard <rs.ietf@gmx.at>
> > wrote:
> >> Eliciting an ACK under certain circumstances, for a timely continuation
> >> of the data transmission / growth of the congestion window is a known
> >> method to reduce network delay.
> >>
> >> E.g. Linux has been using the CWR flag for the purpose of sending out an
> >> immediate ACK by the receiver, since there is an increased chance of a
> >> very small cwnd when the sender had just reduced it's congestion window.
> >>
> >> https://lore.kernel.org/patchwork/patch/970486/
> >>
> >> and we also found latency improvements doing this when running
> >> ECN-enabled sessions
> >>
> >> https://reviews.freebsd.org/D22670
> >
> > Yes, agreed.
> >
> > IMHO an explicit ACK-pull mechanism would be very nice for the cwnd<=1
> > case.
>
> (While this question is about the solution space, I'm anyway curious...)
> In the context of datacenter networks, would you have any suggestion or
> preference regarding the solutions that have been mentioned so far?
>
> Or perhaps any particular requirement for a potential solution?

Among the solutions outlined in
  https://tools.ietf.org/html/draft-gomez-tcpm-delack-suppr-reqs-00
my first preference would be the AKP option, since that approach
avoids burning a precious flag bit.

The AKP option may be stripped by some middleboxes, but (a) as a
performance optimization, that should be acceptable, and (b) for the
datacenter case (where cwnd=1 is a motivating use case) this should
not be a concern.

IMHO a flag bit makes sense for a small signal that a sender might
want to send frequently or at a high rate, but senders should not be
trying to force immediate ACKs frequently.

best,
neal