Article View: linux.kernel.netdev
Article #17668Re: [PATCH net-next] tcp: document black hole detection for tcp_mtu_probing
From: Eric Dumazet
Date: Tue, 17 Nov 2026 08:17
Date: Tue, 17 Nov 2026 08:17
99 lines
12573 bytes
12573 bytes
Le mar. 17 nov. 2026 ร 09:09, Yongjian Wang via B4 Relay
<devnull+echoowall.gmail.com@kernel.org> a รฉcrit :
>
> From: Yongjian Wang <echoowall@gmail.com>
>
> ip-sysctl.rst says that tcp_mtu_probing=1 enables MTU probing once an
> ICMP black hole is detected, but not when that happens or what TCP
> does then.
>
> Describe both, as implemented in tcp_write_timeout() and
> tcp_mtu_probing(). Also add the missing defaults of tcp_mtu_probing
> and tcp_base_mss.
>
> Signed-off-by: Yongjian Wang <echoowall@gmail.com>
> ---
> This describes the behavior checked by the black hole detection tests
> added in commit 8a83f21ad75d ("selftests/net: packetdrill: add TCP black
> hole detection tests").
> ---
> Documentation/networking/ip-sysctl.rst | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/Documentation/networking/ip-sysctl.rst b/Documentation/networking/ip-sysctl.rst
> index 0b7bfbd98a92..a11baf04758c 100644
> --- a/Documentation/networking/ip-sysctl.rst
> +++ b/Documentation/networking/ip-sysctl.rst
> @@ -412,6 +412,8 @@ tcp_base_mss - INTEGER
> Path MTU discovery (MTU probing). If MTU probing is enabled,
> this is the initial MSS used by the connection.
>
> + Default: 1024
> +
> tcp_mtu_probe_floor - INTEGER
> If MTU probing is enabled this caps the minimum MSS used for search_low
> for the connection.
> @@ -711,6 +713,20 @@ tcp_mtu_probing - INTEGER
> - 1 - Disabled by default, enabled when an ICMP black hole detected
> - 2 - Always enabled, use initial MSS of tcp_base_mss.
>
> + A black hole is detected when the retransmission timer fires after
> + the handshake and retransmissions have stayed unacknowledged for as
> + long as tcp_retries1 retransmissions would take with the minimum
> + RTO, which is 3 seconds with the default tcp_retries1.
"minimum RTO" is ambiguous in this file: readers will think of
tcp_rto_min_us or the per-route rto_min. retransmits_timed_out() uses
the TCP_RTO_MIN constant here, so I would spell out 200 ms.
It might also be worth saying that this time is counted from the first
retransmission, and only checked when the timer fires. For a flow with
a 200 ms RTO, the detection happens at the fifth timeout, about
6 seconds after the original transmission.
(The 3 seconds also assume the default tcp_rto_max_ms, but I do not
think this needs to be documented.)
> +
> + With value 1, the first detection enables MTU probing and the MSS
> + falls back to tcp_base_mss. Each later detection, or any detection
The MSS is only lowered: tcp_sync_mss() uses
min(mss, search_low mss), so a connection already below tcp_base_mss
keeps its MSS.
"Each later detection" could be "Each further retransmission timeout",
since tcp_mtu_probing() is called on every RTO once the threshold has
been reached.
> + with value 2, lowers search_low to half its MSS, keeping it at most
> + tcp_base_mss and at least tcp_mtu_probe_floor and tcp_min_snd_mss.
> + Once MTU probing is enabled, the connection also probes for a larger
> + MSS, as with value 2.
> +
> + Default: 0
> +
> tcp_probe_interval - UNSIGNED INTEGER
> Controls how often to start TCP Packetization-Layer Path MTU
> Discovery reprobe. The default is reprobing every 10 minutes as
>
> ---
> base-commit: 6ff4c5942a301675eb12e5b49d53a81e604624a1
> change-id: 20261117-tcp-mtu-probing-doc-v1-351cb754fa7b
>
> Best regards,
> --
> Yongjian Wang <echoowall@gmail.com>
>
Reviewed-by: Eric Dumazet <edumazet@kernel.org>
Technical Details
Message-ID:
<CAL4WiirGY0a-ybU9YQF=DUwvT=LwYQ3T-Xum69m1jvUJZgmAbw@mail.gmail.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365026-linux-kernel-netdev=dewy.ruReferences:
<20261117-tcp-mtu-probing-doc-v1-v1-1-552ae04de4ef@gmail.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!nntp.comgw.net!eternal-september.org!feeder.eternal-september.org!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-365026-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net-next] tcp: document black hole detection for tcp_mtu_probing
Date: Tue, 17 Nov 2026 09:17:56 +0100
Organization: Usenet Network
Message-ID: <CAL4WiirGY0a-ybU9YQF=DUwvT=LwYQ3T-Xum69m1jvUJZgmAbw@mail.gmail.com>
References: <20261117-tcp-mtu-probing-doc-v1-v1-1-552ae04de4ef@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
logging-data="2274914"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:vDncp6SlpLISN/wG2Ff+zDdvFSY= sha256:WqoBWvqivpZ+xbsVd1HixO7KVMasIZhr9rt0EWNYC4s=
sha1:s2MVtq7/6wR53pWkLYavfvUVW8E= sha256:KvM+EhbaYJTYHFcjy9tMbtP8n4Nhm80yYokCSjvHPqQ=
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 A2076114E7A; Tue, 17 Nov 2026 11:18:27 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, 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=kernel.org
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 pxQ4q0KMIyOR;
Tue, 17 Nov 2026 11:18:24 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-365026-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN>
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
by mail.dewy.ru (Postfix) with ESMTPS id 2D12A114911; Tue, 17 Nov 2026 11:18:15 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
by sto.lore.kernel.org (Postfix) with ESMTP id 1577860154E; Tue, 17 Nov 2026 08:18:13 +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=1794903489;
b=brx6ZPKosBE9yEWWI+fQ0k1VeyOZomk/2hO/OvC+i28wePyUM4HKYJwFuMGwnUKjBcCz
YY/YFU+mROVhPFuOgSZuQ14JabirCf8nnOCvFVkbAIxxk7ZeGJbAGjbmj0aewZPDGx22j
jSkrzYxSen+hvug8PYpSbUEa6+wGpa7/IFqlJWXzX/evOtMyI4uHOJzXZoBuQwk/A2t50
j1/q0SvPqoJKikaYgW0VIBImA6I4Cbwk7ipiSBEseYAQyn3b8NPG1ZaUMqT13eNKwSa4c
3w80q+4t1CYDinpMqrGWU95RdqJHyJ5wW74fpTWq9LdVG1AlvUcTkeMT4AH75f/g9iw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794903489;
h=X-Original-To:Received:Received:DKIM-Signature:Received:
X-Forwarded-Encrypted:X-Gm-Message-State:X-Received:X-Mailing-List:
List-Id:List-Post:List-Help:List-Subscribe:List-Unsubscribe:
List-Owner:Precedence:MIME-Version:References:In-Reply-To:From:Date:
X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:Subject:To:Cc:
Content-Type:Content-Transfer-Encoding;
bh=jY+9TWBtAeF2CFQwS+xjxt4ZJ04a32EQCLLfMF6sC9o=;
b=zhaeinGW38lVifCd3GJYd9yy0JKZuBw7DTbgxQ9+AWRwqfCUw9T7f7Vg2ooIKS8nzmaJ
GNpKzAhH1ART97PNUb8sq//6lANUZXLKntFU5t6HhwLDvZ/MC3x6Qldq96VbPRRKiK6zx
VvZLXTwIOjCw/8z5AEOqxcxbswNmY6OarzKIkCM1Il2FRpGP52BJYiSfmOtZ4J7dJhJcb
+5gjFnMPQ2PSCskUvvIdeXJCVn4s1uu+rbmvxdoWdhECGiuA9514hVYIRk558gs1MaYZf
i8jcZ8I3AvSTzkmVfDHgkYCPJsLM9Akuqh7UnV5iPO48kCSOnGYti/VR4P0zWfIa9UA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F0F+SFTQ;
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 606CA606A339;
Tue, 17 Nov 2026 08:18:09 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F0F+SFTQ
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
t=1794903488;
b=2k2JqNVCyvVCRK1fYVnXzxHl/hKUwU9Yt5AHdXOrW7kKKEVWsmM/GrhTFkvp73C/+yql
8F9uhk9S+okovppcmbCfenYKOQg/ebDHjOrn17qr+9ExsyrC2gA2wZbcSz/fGs4XaT/z2
lLanOYc7XbuA8WWWDLlvz3yOLAEAb3P4iNT5PdFbcxaWqzb/ee8gw2ubeiadPaoeQAxY5
2vNnIy9QB8g/J4JlpIgmFMEeD0VZqgFBZblsmhiexpnCVL2Z3r96gbPF3DDPO/sp8JQFK
bpN8KsjMzGJ0b0WsjFFDdyymhJc8ehz08xqpKutBja+MN5XibIOavtXhUVdGWmlv0lg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
a=rsa-sha256; c=relaxed/relaxed; t=1794903488;
h=Received:DKIM-Signature:Received:X-Forwarded-Encrypted:
X-Gm-Message-State:X-Received:MIME-Version:References:In-Reply-To:
From:Date:X-Gmail-Original-Message-ID:X-Gm-Features:Message-ID:
Subject:To:Cc:Content-Type:Content-Transfer-Encoding;
bh=jY+9TWBtAeF2CFQwS+xjxt4ZJ04a32EQCLLfMF6sC9o=;
b=U2NU/AdwZOoSgni8aDec7SaoSuUCGoSy6SHecJxf5laXXPAD4WupCTCC6/131Fy5niKG
0t3k81Apqk4XGNfKvkO4fWIkpgpfm73HPlK4VY7MSB/e45j5n5l1EWLHLwkK9cVJEpNUO
GHhN2uM4zPDQBYzum9sBKUlKHWP2Cxf6PKqx4NNXDC47kt8LKcPIO3HCIFd7VNQiwHgUm
ljkjWt7F9BEOV8KFIZGEssNKw2V3WF7Wv95xO4bar07Touyw3JGsAq8Pcq8uxVEhCg/aU
pyzqVdf9Plljk5WcTqpONDThCLd/VrktJVoKTKCq2b2fBEuSr1CdAjynLucVghh69Jg==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org;
dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=F0F+SFTQ;
arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature ECDSA (prime256v1))
(No client certificate requested)
by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7DB9C606A32C
for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 08:18:08 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 457D51F000C8
for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 08:18:08 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
s=k20260515; t=1794903488;
bh=jY+9TWBtAeF2CFQwS+xjxt4ZJ04a32EQCLLfMF6sC9o=;
h=References:In-Reply-To:From:Date:Subject:To:Cc;
b=F0F+SFTQzuYttdly0uM6MzzLasG95AmEGRDXvibMqR8tsUbmZ4DYCQxL2OQoq4PhC
OMMTv/DjuQGYu8ez39GaP74iMDBDbWoxVXt7CbHstA0dxW6wr5qOa0HHKEdE9lFydt
3l5Lpt2/Kq2OWgUE9HeiRupFevUZYS/AZo+ev4jexdL5m6SJtYdZz7UN4Z51pE67xt
2Q6n2+FwzHXM/AzQQqbTrZcjlupf1D7/10cXmxOP2IMdNBiKlX8N6BehBj7AotyR76
tF1w8qJqFi8KGVMr9ubHi8AG0qugG6vpLvdrJ9IzVLlbybNJfhvqq1ifeJZnK/oY06
pNikoNHVC/kxQ==
X-Received: by mail-oo1-f41.google.com with SMTP id 006d021491bc7-6d290b10a35so1695140eaf.2
for <netdev@vger.kernel.org>; Tue, 17 Nov 2026 00:18:08 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErEuFbYQbDQxWXaKJtM/fbLCEc8SUYGDItfg648D58srBpRKgu8R0eBNuIRcs9Bzha5//AswR0M=@vger.kernel.org
X-Gm-Message-State: APuU4Z8VMXl0zQJ8dZq59qxG9SqHS0biKalv2HIjUQVj6Hw8XeoMO72K
OQNKXTyGQ6FIfeGI3+SXNsQn4Y/RbCXVrlGIawDw9UJl6+KJV/lL/vGyKutFVojMqEDWGfUFJhM
vMsCXSPvGYRxaCwtRuYhkpwdkBLuUZb0=
X-Received: by 2002:a05:6820:2219:b0:71a:dd74:1ee5 with SMTP id
006d021491bc7-71add742771mr5182800eaf.43.1794903487596; Tue, 17 Nov 2026
00:18:07 -0800 (PST)
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: <20261117-tcp-mtu-probing-doc-v1-v1-1-552ae04de4ef@gmail.com>
X-Gmail-Original-Message-ID: <CAL4WiirGY0a-ybU9YQF=DUwvT=LwYQ3T-Xum69m1jvUJZgmAbw@mail.gmail.com>
X-Gm-Features: AclHuK8Gl49qsnZUNoWiS5IYuX-GT6usEXRrdpt-iZywYA4rtgmzbRoXuglD4fw
X-Cc: corbet@lwn.net, pabeni@redhat.com, davem@davemloft.net, kuba@kernel.org,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuniyu@google.com,
rdunlap@infradead.org, horms@kernel.org, ncardwell@google.com,
linux-doc@vger.kernel.org, skhan@linuxfoundation.org