Re: [core] Typical TCP segment header size for CoAP over TCP

Carsten Bormann <cabo@tzi.org> Sat, 21 January 2023 14:53 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 81FECC14CE29 for <core@ietfa.amsl.com>; Sat, 21 Jan 2023 06:53:57 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.896
X-Spam-Level:
X-Spam-Status: No, score=-6.896 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3rcBzWDquBfd for <core@ietfa.amsl.com>; Sat, 21 Jan 2023 06:53:53 -0800 (PST)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 9D3F2C14EB18 for <core@ietf.org>; Sat, 21 Jan 2023 06:53:52 -0800 (PST)
Received: from [192.168.217.124] (p548dc9a4.dip0.t-ipconnect.de [84.141.201.164]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4NzfWf5c5rzDCbR; Sat, 21 Jan 2023 15:53:50 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <9c5071e3-ef59-7280-92c1-eac44992c6d5@gmx.net>
Date: Sat, 21 Jan 2023 15:53:50 +0100
Cc: John Mattsson <john.mattsson=40ericsson.com@dmarc.ietf.org>, "core@ietf.org" <core@ietf.org>
X-Mao-Original-Outgoing-Id: 696005630.219372-1f9a565f005de248ba6903d06867e052
Content-Transfer-Encoding: quoted-printable
Message-Id: <7F4D6CA2-0AD2-4D39-9425-7A610C42FAB1@tzi.org>
References: <HE1PR0701MB30508FA4A62D149371F80F5989CA9@HE1PR0701MB3050.eurprd07.prod.outlook.com> <9c5071e3-ef59-7280-92c1-eac44992c6d5@gmx.net>
To: Achim Kraus <achimkraus@gmx.net>
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/TdtNPqAtnWYEos3Wo7Wh8waO_cs>
Subject: Re: [core] Typical TCP segment header size for CoAP over TCP
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 21 Jan 2023 14:53:57 -0000

On 2023-01-21, at 15:44, Achim Kraus <achimkraus@gmx.net> wrote:
> 
> So 20 bytes.

RFC 9006 notes that some TCP options (SACK, Timestamps) may not bring their full benefit to constrained environments, but may still be useful.  

E.g. [1]:

   If a device with less severe memory and processing constraints can
   afford advertising a TCP window size of several MSSs, it makes sense
   to support the SACK option to improve performance.  


So the question really is which TCP options are in wide use in constrained environments.

20 bytes of course is the baseline value (for data packets; I’d expect MSS [2] to be in most SYN packets of implementations that consider IPv4).

Grüße, Carsten

[1]: https://www.rfc-editor.org/rfc/rfc9006#name-selective-acknowledgments-s
[2]: https://www.rfc-editor.org/rfc/rfc9006#name-maximum-segment-size-mss