Re: [tcpm] tcp window size

Yoshifumi Nishida <nsd.ietf@gmail.com> Mon, 20 May 2019 19:37 UTC

Return-Path: <nsd.ietf@gmail.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 0B0B8120115 for <tcpm@ietfa.amsl.com>; Mon, 20 May 2019 12:37:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.998
X-Spam-Level:
X-Spam-Status: No, score=-1.998 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 xh2Eg3eR4elZ for <tcpm@ietfa.amsl.com>; Mon, 20 May 2019 12:37:32 -0700 (PDT)
Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) (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 15E2112010E for <tcpm@ietf.org>; Mon, 20 May 2019 12:37:32 -0700 (PDT)
Received: by mail-wm1-x334.google.com with SMTP id j187so516552wmj.1 for <tcpm@ietf.org>; Mon, 20 May 2019 12:37:31 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=g9fdLUuCd2t2LsPmxGO0heUOtU39LUwvps5u43jKdAU=; b=ru+wDgylL/5sRTBNkgohjGruAOSO2Kh7tTg/rI6OM4iX/UfPHUSMOZKhJuIpT39Qtg WEqWtuSSLQc9DPM7VPYXeaDAlV7hQZZw6KbL38hxZHKbQ2y0mSML6efxav3n+kESd4uS bxB0deyBtMM03K/P9shJxk3ftugH+Jl3G4q7plUInFCaLzvlPTQ1qNVJP8lyiDdHxkfP 2XnW/Frm7kUouTyJHyzRrIi1Q546ZC3Ec8OWFBgcZNT4f7POh4+iD5NE9D/dvdm2B220 I71O3QUuXXUBqjb5Z1r2Ca9A0ZndY+ATcSUwftleYFykM4yOu02O8FrtQc5TKCtfCRUg ainA==
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=g9fdLUuCd2t2LsPmxGO0heUOtU39LUwvps5u43jKdAU=; b=Z+lBbtcW2NTYQ13E1J5BtHZPtUf58i18M4dEQExUjLpO4N1q2MaV14T/fPrrUTajKV +jb4KJrfOQrNIsi8bCTQZlRUM375CURBUuDf8mn5JruamnauPUJR1Lu33jviISHuw4ay WCh55+SW9BepYaMYr7wfh5TXrWVvQeriD8Me502Stt4h9R9FwPj+ty217fyFfYailK2x OTo2CWUgQPYjSkkmM1nZ80CocHT3VORoDv87o+yKMSul1PkrvhlEF6WeekPpa55ICYAz uqIn27dCPQM+GMnOcijWJ97wrSv16GbhlhO8UFEWHexvayMCqV1zeRtz5mm+3Gyulu02 qJEg==
X-Gm-Message-State: APjAAAW8PE56Y+cdoBquR4g3msePTVXRfX4GNHuPr5Cmb+ncZXJd91T4 xBtpNJXP2XkvuZxLADTlK/75AFPBxeni49TeEHc=
X-Google-Smtp-Source: APXvYqxXxXgN49re8mdl7tGEoIYQB7cODJRYD2oeT/NUYWK1UnLU+H1EaknULZtaV2JYnjJ6BkPeKbxI0ODyWG1pJ0U=
X-Received: by 2002:a1c:658b:: with SMTP id z133mr554308wmb.82.1558381050679; Mon, 20 May 2019 12:37:30 -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: Yoshifumi Nishida <nsd.ietf@gmail.com>
Date: Mon, 20 May 2019 12:37:19 -0700
Message-ID: <CAAK044QZ2Zxsjd9231e9Mt8prjtyGbZSgCv=OETL5B_wfZ1EGw@mail.gmail.com>
To: Marc <gaardiolor@gmail.com>
Cc: "tcpm@ietf.org Extensions" <tcpm@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000f35657058956dc04"
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/KoDNGATQyMjkrDDq5jvyVK5sca0>
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 19:37:34 -0000

Hi Marc,

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 ?
>

advertised window is receiving buffer size on each side.


> 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 ?
>

yep, correct.
--
Yoshi