🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #8556

Re: [PATCH net 2/2] Revert "net: advertise TCP MSS from the configured MTU, not the learned PMTU"

#8556
From: Esko Mobius
Date: Thu, 29 Oct 2026 12:36
29 lines
12564 bytes
On Thu, 29 Oct 2026, David Laight wrote:
> But that relies on something having gone the other way first.
> In general that won't be true.

Agreed, that is the same point Jiayuan made.

> It is almost worth implement something that retries with the shorter mtu
> to detect the PPPoE mtu blackhole at the sending end.

Linux already has this: net.ipv4.tcp_mtu_probing (RFC 4821). With it
set to 1, once the retransmission timeouts reach tcp_retries1 the
connection drops to tcp_base_mss and probes up from there. It is off
by default, and the same goes for Windows (EnablePMTUBHDetect); macOS
turns it on by default.

> Or even just use the shorter mtu for long RTT connections.

Both of these have to happen at the sending end, which in my case is
the client (it is an upload), so the server can't help. The only lever
the server has is the MSS it advertises in the SYN-ACK, and it has no
RTT sample at that point. For now the MSS is clamped on the path.

While reading this code I noticed there are no selftests for the black
hole detection or for MTU probing. I'd like to add packetdrill tests
for both once net-next reopens.

Thanks,
Yongjian
Technical Details
Message-ID: <40993B2C-6390-4BC6-B4AD-967518B0CBE9@gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353290-linux-kernel-netdev=dewy.ru
References: <20261026-advmss-revert-v1-0-272fa4b7ecb6@gmail.com> <20261026-advmss-revert-v1-2-272fa4b7ecb6@gmail.com> <20261029101859.6893f1a0@pumpkin> <22077B76-12B0-4DD6-813E-A3968003575F@gmail.com> <20261029112045.5e7d4317@pumpkin>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-353290-linux-kernel-netdev=dewy.ru
From: echoowall@gmail.com (Esko Mobius)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 2/2] Revert "net: advertise TCP MSS from the
 configured MTU, not the learned PMTU"
Date: Thu, 29 Oct 2026 20:36:33 +0800
Organization: Usenet Network
Message-ID: <40993B2C-6390-4BC6-B4AD-967518B0CBE9@gmail.com>
References: <20261026-advmss-revert-v1-0-272fa4b7ecb6@gmail.com>
 <20261026-advmss-revert-v1-2-272fa4b7ecb6@gmail.com>
 <20261029101859.6893f1a0@pumpkin>
 <22077B76-12B0-4DD6-813E-A3968003575F@gmail.com>
 <20261029112045.5e7d4317@pumpkin>
MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3901.100.1.1.12\))
Content-Type: text/plain;
	charset=us-ascii
Content-Transfer-Encoding: 7bit
Injection-Info: usenet.network;
	logging-data="2006981"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:sJLKKQeEiDKHGrZlqbi2oTAesVc= sha256:5uQFt5s8Y9+biqngBUyz4fFn2+2uWBnRiW33d6GWAM0=
	sha1:o2lVlxkEG5VHso6Wg35+DrirTXM= sha256:8EIqOzLj63oktxQvWsNjR8xelYOHVPlosogamFmYsJA=
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id BAA10125C68; Thu, 29 Oct 2026 15:41:51 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.048
X-Spam-Status: No, score=-3.048 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.001,
	FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25,
	MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001,
	SPF_PASS=-0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=gmail.com
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id mECuimwmXzkG;
	Thu, 29 Oct 2026 15:41:42 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-353290-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=gmail.com
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id D663B125C66; Thu, 29 Oct 2026 15:41:29 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id DE16C2DF89; Thu, 29 Oct 2026 12:36:55 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1793277413;
	b=3kv7fHTbcHMnttfzalwG78dRDmRwnbQdsHNqZkYxxvAw+vepOME+o3A9wOKA6cjNYC9x
	 4JC3TmMGuQD4Sti+JjlLiQ+SwfliOUHOB5I4FWHnlxfB6FC1Cq7A4tRAt6uvUaDAarFLJ
	 n7VwEYRNkg3jwnD7o9Cv6F+vwhYPEErkAcvByPkzu5JYRSSxzxUN99egF5bGTYqNBItrM
	 gr8XvdvJ1p5n+nu/JwUVl9xa9LTftxjzrVFO40qYBH3c0TJAiPM5D5ZXIDWg+xcMYwDB+
	 84x0vC+F+lIpmyuqv7wWj1DjOoHspBdP/y4JLliD3j730lmwFpx0PQqUq/QtsClw4MQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793277413;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Gm-Message-State:X-Gm-Gg:X-Received:
	 Received:Content-Type:X-Mailing-List:List-Id:List-Post:List-Help:
	 List-Subscribe:List-Unsubscribe:List-Owner:Precedence:Mime-Version:
	 Subject:From:In-Reply-To:Date:Cc:Content-Transfer-Encoding:Message-Id:
	 References:To:X-Mailer;
	bh=hmc/RolTYy7SeBRxKLMjWzilnvA83GevNb7ysMoswG4=;
	b=JICDHrN0JdK5PlFIqnzmty9mjeaWUjKT22JXWhFzLXYbE6sMwebkIl+JW2IcRKnL2vvV
	 zA8bRJTKh9BZjor4APENzp+HkjnrqMyqbm9tTLoPARlpiN6WJRTFQyG4fhKToyMUcS0/P
	 cgDJt58azuVtwrQoCwALia0MqWMM0y8GYLAQC4Kh4UMIS/FKdHjVy8e/tqixWDM0UXiRo
	 T1ENbVKDEB7jsO2h2XjlDZPW9/XmygIerP2UkWVfj8nUCcam5N9ugjVX7MhvJmnO+RQHV
	 Wh0JWNlURFpd86+YK+j0PRslIsshsp6QdHUM7RQveQGrAo6GUJmBVrAdWyozcE1+CXg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=py2QzJFY;
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 924BA60A261F;
	Thu, 29 Oct 2026 12:36:53 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key, unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=py2QzJFY
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.215.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1793277412;
	b=4Aif0HGpFJZP4RKNzfnXSDU4/lCwXuHgM9WPZ1UqFMg1ffZ1tD5boYF+hTVu6EEIzZPi
	 lm7HnFdwyjSY55kVXyEjTsJeGoH7qAkq754JSt7sidww9dJcBONdMIE0qKYbrDu4BTVm9
	 W2QB2/CgLhrMcnvtW+rFj9R4PKg0Vh1+GukgKLLgdu4u6R/S6KU0FUwJTqEVIjgsXEHVF
	 bP2PFj+A9m7XLMs9H9VMie/yYo0AhvUsqHHIZHhnLRklgKvJhn2peMTm9ODOrDQWcctLT
	 NKOIEdxZd07/vJC0YlsKBjqXAKW9ClFdVL8IHqFIhLGNRdNZYV90VnadGPVzQzMN8nA==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1793277412;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Gm-Message-State:X-Gm-Gg:X-Received:Received:Content-Type:
	 Mime-Version:Subject:From:In-Reply-To:Date:Cc:
	 Content-Transfer-Encoding:Message-Id:References:To:X-Mailer;
	bh=hmc/RolTYy7SeBRxKLMjWzilnvA83GevNb7ysMoswG4=;
	b=PG++e56KS+ckLh/h/+hWLISmf3P/wzFcYQjC6t5yvVwC5zYKmZDevJRx7NTfbKmvunHq
	 u1vajYnJfDz6ZkXy/JWysszeUts1Vwn5mBJ893CzCztm7VSWS2D8+aLZjCRMEiXUEwcOE
	 +4TonaV0RgcyC+dVjlhrwcknDAm7aA9IVJVIJebuzsWLtKfXaSvsA8UjDR85SFkd9rMuG
	 NV3eRpEMhsADoYnhoBOmvq7184tH42FL6qk78rBLiVarukDw+wVnIwZO4dn6+wWMo354v
	 OB+PrJK7zZ3vlKwWp0p69GUNP3wk9CVPwgIKQ38wmRDB/KlEOw2nSNUB+uflyKZK5Fw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=pass header.from=gmail.com;
	spf=pass smtp.mailfrom=gmail.com;
	dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=py2QzJFY;
	arc=none smtp.remote-ip=209.85.215.175
X-Received: from mail-pg1-f175.google.com (mail-pg1-f175.google.com [209.85.215.175])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 6648260A260D
	for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 12:36:52 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 6648260A260D
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com
X-Received: by mail-pg1-f175.google.com with SMTP id 41be03b00d2f7-cd6a7e1f4e4so869663a12.2
        for <netdev@vger.kernel.org>; Thu, 29 Oct 2026 05:36:52 -0700 (PDT)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793277412; x=1793882212; darn=vger.kernel.org;
        h=to:references:message-id:content-transfer-encoding:cc:date
         :in-reply-to:from:subject:mime-version:content-type:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=hmc/RolTYy7SeBRxKLMjWzilnvA83GevNb7ysMoswG4=;
        b=py2QzJFYgzOL03zGd3mHO2Bdili8XEZjmTBrfP3m4bXJAzbCdzUnE14wPgfXIR/hKe
         zAtdXpeTk/pgITkJricxOBeRqKkncsIhziwOUNdrF4Nqw//AZxy2uVu7JyYGMeJN48FI
         trZb0Im4c61Mqbor7x1XbyPT/JT2OH8M5BqYP2ShvyUEiWtu4h1h61NvSmb2oPk3XWUd
         KqfWHqesgeqXa/Qhksfi1BxV9idSCShFWKVwLAy8e2qHEm31JHs9zkkyVIImFi5Wd/Im
         UdHQmnMvZb/drJfythss4ld8cwQ/Q9/+VxqcJUUWbduiCALdGR9aa08Psyv3dV11sL4J
         uoOw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793277412; x=1793882212;
        h=to:references:message-id:content-transfer-encoding:cc:date
         :in-reply-to:from:subject:mime-version:content-type:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=hmc/RolTYy7SeBRxKLMjWzilnvA83GevNb7ysMoswG4=;
        b=UDdr+ylocZVL/xkII7zg6CqLnGSfrxdowyrmKmAUY72P11aTecg/ZJbw/oKoOa/GmO
         8y/3GLyVLWs8ptoROL6Ew2wh+tkz3v16tKxAzmKPq7eadheIaC83Umxdb4p0slo3QE2o
         Y5+/hNchHw0pjxF+C4cQ43TCmPIAgp3VLEXv9FPHeIB3kEtavOT32PHI9Cygg4f5tULY
         dntJSJhwcNiWcdF3YS+0M/xxeFb23JRjyQYNoYl0eAhwksPY65OG3jGPIRHchrxMH5m9
         b1aA4v3JoUlpYQ6z+LYpftJNn7GmVBQOV4dS4QsrjaB6G6M8iGahaPc3wyyDrB1NvHMc
         PW/Q==
X-Gm-Message-State: AFq9FYLznIwCoP5O9OWvycO9luvEJ6tIDrIJHwTLTgLKsBk8rFJRuzWM
	TAbC8IHs6Xpsf+wgzzOFlmPeNiM/Whqi7FfVVahPKjgX23YiG7nuGVW3
X-Gm-Gg: AYBFou0nVFFW58anX3TR2U8frjeK5jFmSqca/pA0o9WEQT70TlXkgywIx8OYyVJb/sP
	eadIgsLrEoFXRP7W1DHg6I0f2hWWWijIl28o1WzT1in4TvgiEYHSvSjis019MdYShpEwT5hcZQk
	PydvhQwe+ICnHiVWcSQjR7rfbAQAn3nySZ7Jhiy//9mRU/ERPQ2fcCFblVZ5/sUSLNPCN55dW2Q
	iWeFEto38OI4vbjjsXRpB1dfINyt3AiFniV3tfAaGpKaZ6qrpJZ406eavzyiXtQw49dOFTljA13
	9d0SQx6QWokP0OY7r7b7uO3sh6x6xKl7f1tRNvppVUtjD2U5deWHUspAr6/+TMsmMCnr4q4/VZ0
	syU9V4WQaSiZEvDO28wrA9zedkcMTnpeL/DWtcQSLVV++7Z1hN4K8KGuelZn+Ul1sIZkgxv0VBN
	ZHjWpP2hA6LPjLHe1Bu+7oKL0H1/iZJc8pikssBIvvQnl9aqMbwFGi4eQKDGsIBwUbBXztfjptK
	C5Bkml7+NDUhQ9JVSS38hcW7mGxrU8xE38snEDBS2y+2T1Qh4QZI452fp0j9Oq5j+XYoFZafJod
	wMNz0ddbs8KsTqaQPsdJeIvvXGuRHBqk8DAdqcb2OMZFsG2uDQWSbpn16tQfvktEm10=
X-Received: by 2002:a05:6a21:8804:b0:3e2:97ac:274e with SMTP id adf61e73a8af0-3e9023ed955mr3933798637.65.1793277411671;
        Thu, 29 Oct 2026 05:36:51 -0700 (PDT)
X-Received: from smtpclient.apple (v133-18-180-162.vir.kagoya.net. [133.18.180.162])
        by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cd8ccc46482sm5225375a12.11.2026.10.29.05.36.46
        (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);
        Thu, 29 Oct 2026 05:36:51 -0700 (PDT)
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261029112045.5e7d4317@pumpkin>
X-Cc: netdev@vger.kernel.org,
 Jakub Kicinski <kuba@kernel.org>,
 Paolo Abeni <pabeni@redhat.com>,
 "David S. Miller" <davem@davemloft.net>,
 Simon Horman <horms@kernel.org>,
 David Ahern <dsahern@kernel.org>,
 Ido Schimmel <idosch@nvidia.com>,
 Jiayuan Chen <jiayuan.chen@linux.dev>,
 Shuah Khan <shuah@kernel.org>,
 Thorsten Leemhuis <regressions@leemhuis.info>,
 regressions@lists.linux.dev,
 linux-kselftest@vger.kernel.org,
 linux-kernel@vger.kernel.org,
 stable@vger.kernel.org,
 Eric Dumazet <edumazet@kernel.org>
X-Mailer: Apple Mail (2.3901.100.1.1.12)