Re: [tcpm] tcp window size

Yuchung Cheng <ycheng@google.com> Mon, 20 May 2019 16:54 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 39E311200F9 for <tcpm@ietfa.amsl.com>; Mon, 20 May 2019 09:54:21 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -17.51
X-Spam-Level:
X-Spam-Status: No, score=-17.51 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, ENV_AND_HDR_SPF_MATCH=-0.5, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, T_DKIMWL_WL_MED=-0.01, 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 szX4Hss6MTWI for <tcpm@ietfa.amsl.com>; Mon, 20 May 2019 09:54:19 -0700 (PDT)
Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) (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 CFE0C12004C for <tcpm@ietf.org>; Mon, 20 May 2019 09:54:18 -0700 (PDT)
Received: by mail-wm1-x332.google.com with SMTP id c66so377201wme.0 for <tcpm@ietf.org>; Mon, 20 May 2019 09:54:18 -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=E6UEf18HwQegFwupKU61h3ukLAAG2YWF4f/FgR5UTOI=; b=MrQEXwvbs/VvW1GgZNnPhOhBGOkdxBpHW5l+tTfMQu/0OGXG8jnhSBdccqzcEMpML4 GrtxduzYTtXg4U0HHj278FuCVZ29/IFdtnb2Vyw7pT7oTsyJ0bjlJQe8RTbqzq9hJ2mY uu0XrMMMH5lELcDJ8Uno6OE6Dv6DrGihSUt3p31G1+mVtz70ypOitOymQjA3hXZFyJ2U aVZrYKkwV7WQsIDEELFk4uyuniLZvs9O1F9p/a4Hj5ctazEOX5uCQbAdimcXSVcNz+1A SUT7ovCUdPxILt2dEW5rbaJeCf07n9d36CvLZO/a6LSCMC0ZbI9yxyNYlZ+aG6f5ulgq yKow==
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=E6UEf18HwQegFwupKU61h3ukLAAG2YWF4f/FgR5UTOI=; b=gcOKswlWKsxcEqp7u0CIqjRjF/DTV/a4imxGYAZOTAljxrZCRh+v83c3Z+bhtl6iiC fAZGbUXdue4mdAW2xL9FD34Fcaz3Gf3G86e/qGozL9b3smwechI0l9+N2wTqe++O9YOB GBZJDwpwzeAhOvrIrTQ396QD5ByVh9H1Pp0/PL6c/aMbZOLsooNrnfbLu9mEkrUw2Fbl oacq6jt8bWuOAeqxY1VRujNOp3zsuL/WDmuy2YEh4GZqYmuIGKk20kfOjSB0phWQFAJ4 9Mij2YGZNI+h1tJUcZ/nwCj5R6OXvNvFjnlS0nxDNs64JUP21lUX90rgntHppJ/fLn3f kN0A==
X-Gm-Message-State: APjAAAVzaTsZ5tvBx4RHrSybknN/vgRqV2qs08iMtfJbgnIEKbPw1T5I jOmLTJuXnRi3Dtc+TToBonY/jf6EnlGXnSOfVX0mWA==
X-Google-Smtp-Source: APXvYqzcgIMR3At9frS8Us7ltvq35ldf9ehb+LH8MzvdwxQ4v22PTGCmpHn6Kqi7i7fiAWYneLvB8VFaNYjAOTi4phQ=
X-Received: by 2002:a1c:f311:: with SMTP id q17mr78396wmq.144.1558371256693; Mon, 20 May 2019 09:54:16 -0700 (PDT)
MIME-Version: 1.0
References: <CAPxJK5CO3HBX=-ajd0=M6hXwdbEPwANheExQZtQeac+J3BwM2A@mail.gmail.com>
In-Reply-To: <CAPxJK5CO3HBX=-ajd0=M6hXwdbEPwANheExQZtQeac+J3BwM2A@mail.gmail.com>
From: Yuchung Cheng <ycheng@google.com>
Date: Mon, 20 May 2019 09:53:40 -0700
Message-ID: <CAK6E8=dhqEGLOyTwW522b2nNua=KdQdv-MgyM_ioj05i3+ARKA@mail.gmail.com>
To: Marc <gaardiolor@gmail.com>
Cc: "tcpm@ietf.org Extensions" <tcpm@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/vYqqTpjebDCK6REn5p0KZqp8tW0>
Subject: Re: [tcpm] tcp window size
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: Mon, 20 May 2019 16:54:21 -0000

On Mon, May 20, 2019 at 9:23 AM Marc <gaardiolor@gmail.com>; wrote:
>
> Hello experts,
>
> I've been trying to find definitive information about tcp window size
> negotiation, and if it exists at all.
>
> Take a browser that downloads a file (receiver) and a webserver (sender). If
> - both sender and receiver support window scaling
> - the receiver advertises a TCP winsize of 256KB
> - the sender advertises a window size of 32KB
> - the sender has enough space in its TCP send buffer
> (/proc/sys/net/ipv4/tcp_wmem on linux)
>
> How much 'outstanding unacked data' is the sender allowed to have,
> 32KB or 256KB ?
>
> I can't see any logic for it being limited to the window size of the
> sender (32KB), I think it depends on both the receiver winsize and the
> sender TCP Send Buffer Size, but I need to be sure.
>
> Reading https://tools.ietf.org/html/rfc793 also suggests there is no
> such thing like window size 'negotiation' and each end of a TCP
> connection just advertises its own to indicate how much data it can
> receive, independently.
>
> Is that correct ?
That's correct. It's FYI not negotiated.
>
> Thanks!
>
> _______________________________________________
> tcpm mailing list
> tcpm@ietf.org
> https://www.ietf.org/mailman/listinfo/tcpm