[tcpm] Re: TCP Option Length Bit Shifting

Michael Tuexen <michael.tuexen@lurchi.franken.de> Wed, 05 August 2026 18:43 UTC

Return-Path: <michael.tuexen@lurchi.franken.de>
X-Original-To: tcpm@mail2.ietf.org
Delivered-To: tcpm@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 88BEA1244B46E for <tcpm@mail2.ietf.org>; Wed, 5 Aug 2026 11:43:39 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ietf.org; s=ietf1; t=1785955419; bh=iznVY7y+DbneHzPVN7IrlKrtA3up1Z+nPRx6KOGYMYI=; h=Subject:From:In-Reply-To:Date:Cc:References:To; b=p2Z3ErVr9C8Kz/dmuUXwgTEDch0IQ+UHtVTbxfwks2FfB81aX/uPKZZic4Tm2OWmV X59HO+wNQ398/XcHMAlLWJFi5NNAOx3ikeD64dIvVOr6XGp4bRSJbapME3NRb1USbE Y4JuxwY1jRiyKK+YqGrtb4HvwmohEhqBi0ni5yB8=
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -1.097
X-Spam-Level:
X-Spam-Status: No, score=-1.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RDNS_NONE=0.793, T_SPF_PERMERROR=0.01] autolearn=no autolearn_force=no
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Waf8bomI61m4 for <tcpm@mail2.ietf.org>; Wed, 5 Aug 2026 11:43:37 -0700 (PDT)
Received: from drew.franken.de (unknown [IPv6:2001:638:a02:a001:20e:cff:fe4a:feaa]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 9F34B1244B46B for <tcpm@ietf.org>; Wed, 5 Aug 2026 11:43:37 -0700 (PDT)
Received: from smtpclient.apple (unknown [IPv6:2a02:8109:1101:be00:70ab:2d47:15ec:46da]) (Authenticated sender: lurchi) by drew.franken.de (Postfix) with ESMTPSA id 5353D721BE018; Wed, 5 Aug 2026 20:43:25 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3864.700.51.1.1\))
From: Michael Tuexen <michael.tuexen@lurchi.franken.de>
In-Reply-To: <CACL_3VHbbqNueWcMggUPWn_HZfShJAoEaff4wePc0Z38z+1OHQ@mail.gmail.com>
Date: Wed, 05 Aug 2026 20:43:24 +0200
Content-Transfer-Encoding: quoted-printable
Message-Id: <15DB5787-F5ED-4B53-ABB1-E7D542B93C33@lurchi.franken.de>
References: <178247435258.1809941.9081592875087275710@dt-datatracker-f9b87776f-8pmmg> <DM4PR84MB231000F604E508DE0EAEF63FF4EB2@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM> <3c6ef75b-0594-46b4-b748-478b48013a54@gmx.at> <DM4PR84MB2310CADFC4C807797E59CE54F4D62@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM> <ea2925c3-ce08-4112-8628-d0859a83ee07@gmx.at> <27D880C5-609C-4DAB-A0F5-974F2175FB5F@lurchi.franken.de> <1b5663e6-08b5-4797-abeb-4bebccdf5204@gmx.at> <BCC6E037-2680-4F33-90E6-21E2C168BDA2@lurchi.franken.de> <DM4PR84MB23100E65D202E0DC2B7CB19EF4D42@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM> <B892A9C9-0D44-4914-8D8C-39F18E820EA8@lurchi.franken.de> <DM4PR84MB2310FB277064BECB24C5AAB5F4D42@DM4PR84MB2310.NAMPRD84.PROD.OUTLOOK.COM> <79D794C4-F51E-4C8F-A198-D81CEF662289@lurchi.franken.de> <d7dd34cc-ca34-4026-8d2c-1f9b0f3dd6fe@gmx.at> <E90EC2E5-9930-423C-AE95-512A809EA72A@lurchi.franken.de> <CACL_3VHbbqNueWcMggUPWn_HZfShJAoEaff4wePc0Z38z+1OHQ@mail.gmail.com>
To: "C. M. Heard" <heard@pobox.com>
X-Mailer: Apple Mail (2.3864.700.51.1.1)
Message-ID-Hash: ESSYTSRTGLLALRTUPWFMWIVAFYPLNSEE
X-Message-ID-Hash: ESSYTSRTGLLALRTUPWFMWIVAFYPLNSEE
X-MailFrom: michael.tuexen@lurchi.franken.de
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-tcpm.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: "Bonica, Ron" <ronald.bonica@hpe.com>, tcpm <tcpm@ietf.org>
X-Mailman-Version: 3.3.9rc6
Precedence: list
Subject: [tcpm] Re: TCP Option Length Bit Shifting
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/tcpm/hm6_l6fBqb80PqnpsnqtGqj8bg0>
List-Archive: <https://mailarchive.ietf.org/arch/browse/tcpm>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Owner: <mailto:tcpm-owner@ietf.org>
List-Post: <mailto:tcpm@ietf.org>
List-Subscribe: <mailto:tcpm-join@ietf.org>
List-Unsubscribe: <mailto:tcpm-leave@ietf.org>

> On 5. Aug 2026, at 19:55, C. M. Heard <heard@pobox.com> wrote:
> 
> On Wed, Aug 5, 2026 at 10:36 AM Michael Tuexen <michael.tuexen@lurchi.franken.de> wrote:
> I think we discussed at last the IETF meeting that we use data offset = 0 for all TCP segments of a TCP connection using LAO. When receiving a segment with data offset > 0 on a TCP connection using LAO, the segment is dropped.
> 
> That's not what draft-bonica-tcpm-extended-options actually says:
I know. But we had a discussion at the last IETF meeting and if I recall it correctly,
that above was in some earlier version and will be in an upcoming version. Sorry for
not making this clear enough.
> 
> 4. The Updated TCP Connection (TCP-U)
> A TCP-U sends SEG-U's:
>     • During the three-way handshake, even if those segments do not contain options
>     • When the segment contains more than 40 octets of options.
> When neither of the above conditions is true, a TCP-U MAY send either SEG-O's or SEG-U's.
> 
> Let us assume that for the rest of this mail.
> 
> If the middlebox starts interfering after the handshake that used data offset = 0, all
> segments with data offset > 0 will be dropped by the receiver.
> 
> If the middlebox interferes with the handshake, SYN or SYN ACK segments would be
> dropped by the receiver expecting a data offset of 0. So the handshake will timeout.
> 
> Speaking about the socket API, I think you should only be able to enable LAO
> on closed sockets. So a listener knows if it expects SYN segments with data offset = 0
> and therefore supporting LAO, or if it expects SYN segments with data offset >= 0x5 and
> therefore not supporting LAO. The unexpected ones are dropped.
> 
> Doesn't this provide already the protection against middlebox interference you
> are mentioning above without the need of any special encoding in the first 32 bits?
> 
> I agree with this, and what you present seems (to me) to be a fairly strong argument in favor of changing the text in Section 4.
Yes, I agree.

Best regards
Michael
> 
> Mike Heard
> _______________________________________________
> tcpm mailing list -- tcpm@ietf.org
> To unsubscribe send an email to tcpm-leave@ietf.org