Article View: linux.kernel.netdev
Article #17663[PATCH net-next] tcp: document black hole detection for tcp_mtu_probing
From: Yongjian Wang via B4 Relay
Date: Tue, 17 Nov 2026 08:09
Date: Tue, 17 Nov 2026 08:09
62 lines
12953 bytes
12953 bytes
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.
+
+ With value 1, the first detection enables MTU probing and the MSS
+ falls back to tcp_base_mss. Each later detection, or any detection
+ 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>
Technical Details
Message-ID:
<20261117-tcp-mtu-probing-doc-v1-v1-1-552ae04de4ef@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-365021-linux-kernel-netdev=dewy.ruShow 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-365021-linux-kernel-netdev=dewy.ru From: devnull+echoowall.gmail.com@kernel.org (Yongjian Wang via B4 Relay) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next] tcp: document black hole detection for tcp_mtu_probing Date: Tue, 17 Nov 2026 16:09:16 +0800 Organization: Usenet Network Message-ID: <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: 7bit Injection-Info: usenet.network; logging-data="2273531"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:0XqOaaEGkChWlEKidVwWDliHelM= sha256:VU1um/P9Hs2t5IfnW3fOAsXMXiUAorUT6jQFD/XKK1s= sha1:edmpEve3iH/Y2TkojkwaiwNu3m8= sha256:KpxbcCCUfaCaROODJ5fA4GiDOxhaHQuDpBf7W+AOS6s= 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 30C3B114E75; Tue, 17 Nov 2026 11:09:39 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.401 X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, 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 y1HcMhsTyO26; Tue, 17 Nov 2026 11:09:32 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-365021-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4]) by mail.dewy.ru (Postfix) with ESMTPS id A84D0114DF0; Tue, 17 Nov 2026 11:09:23 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sin.lore.kernel.org (Postfix) with ESMTP id 234DC26487; Tue, 17 Nov 2026 08:09:21 +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=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794902959; b=3+YpItAqdBgfcu2GfN4PV71jkwnQ+Tdj/MQVOy1MGb/mwBKCbel3ezTU+6log414IoTu CNyPKLUgsB/JLbnVGLZjjv0AvYaNnGhrv/2lL/uSvr3QJOYW76gauoB5tJYM8blkzPVrU t5y84WT94Zdrd2VHBa5ofVbcjylKSUhFk1cEDJl+Cf4Pa0ZVglqqr18mWmkYO4N0CjJR8 SWJhYIxHqUC4DPiXmdAjGeSOrQjqME9RtUBu4UZ6WlnEquPAGUm9FHhMIEaLXzRqELzEX 0NQme1I/nGmMJa7RyoKQLJasa5z2NNANRqo/1Mfp1ywtWWelNUii7kq8VSmWYRRMvfw== X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794902959; h=X-Original-To:Received:Received:DKIM-Signature:Received:From:Date: Subject:X-Mailing-List:List-Id:List-Post:List-Help:List-Subscribe: List-Unsubscribe:List-Owner:Precedence:MIME-Version:Content-Type: Message-Id:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2AsFSmPkJrfcSU2iokgB2aDPRWQeYmtyi73lpLnFe7k=; b=JFNNVQZFuYY5G+qpb3idPpGaG+9d03096mTnRP0dKzKykC0O4FZrNzjrJ4jR2dqfWQGV AzdjlcDmmC5+vjJQPzP2zq+6A2fIw5Nm+xWapsb5LNWSD2XFXcNS43XwsjyWgXbHhbE2U JdeNNtoXLvY5Nml7edaXNWwUZ95XhRzEpNR+cDMs7H4vZwOsHNHNReqtanCKswwJozBWl zpANkJELJRLGi0vJx0ZwERlJgfeBiurd8uYxVL6T4Y59sd6ywhVCRW84eUluj3FXbEEjW NBXwhVQVE0T/iH/B5HNZvbUMMMzuT06SgQWErL6fL0RPYhSA3sTDZXe3zGT8Whx2s3Q== X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oRrKgAzH; 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 D6236606A333; Tue, 17 Nov 2026 08:09:19 +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=oRrKgAzH X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794902959; b=Iq3FSIQG+SbQ6jSly2tcoyb84lCKcTEetkQNsoRnOS3slv6H7XjgRXsS3bX21eO5hHBf Iz/HJJgFRnypQDzQNSll0KdB6K8MbuHqSxwyIH1a+Kr+vPdU7Cb7XvjMFBVIACLJmMa90 YG2m6skpM16n9bvWDGFPoJiY4TCbygSuW0b2sI9uuE6gx2Om66nF58JgQHGhhzXjf0rQo hYTHo3GJWIW0sPJQXLwUTOTmHrx78SuUO3qN0hqOAedpH8Wf4SpB9v24cwsd/1aD2vo1L PQOQOpi84pFnMzRld7xwsRafNtHXybjEDo0bp7UPAl2y4Gor81NV5JNTyT4/BOmhUrA== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794902959; h=Received:DKIM-Signature:Received:From:Date:Subject:MIME-Version: Content-Type:Message-Id:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2AsFSmPkJrfcSU2iokgB2aDPRWQeYmtyi73lpLnFe7k=; b=Cna5jxsCQt1rResN7O27Qo9vNVTygckmrKvfmuZ2Bz3N5NBuVO9Ayd53ed10cU6tB9y6 AZmjz8UJObwIA82Y+DxVJUGyKhs4UNrn6QwtmEdPEwXoWOrybhCPZrp6Ql/iFwtNmJxIL sUhe1LYZ7+dWe3b/GE6O+XimXnuIe/HriQgl4qsIKH1l5WaCbIYUj5wPPyK0r9LI0yZFz T8V0xW6hELXVLzocJddD0Tc/IxeLxuHQc6nV5/bl0vkTODgRm/ZtQTTic9MYIfrjequRb qzw0kcsTsCGN/9hh08vF/i/pSVoQe+0J5SaXbJS5n+qpKV0VWPfrV11GoV9zSntCQWw== 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=oRrKgAzH; arc=pass header.oldest-pass=0 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 EF74F606A323; Tue, 17 Nov 2026 08:09:18 +0000 (UTC) X-Authentication-Results: smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-ARC-Seal: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; cv=none; t=1794902958; b=K0lJdGFsKqxiNzhZWDFG198RLjJn0xrJKBchxWuRdtnByzO6VPdtnIZIX4N45t2n8pB+ kMiKw51WhSZ+ENMb/q1AGA0broTMDq6UkHAnAHxG/jOuw8xNm/7jDZ+AgUsxvDlRKrBvf u2iIs55y4xT/yJrENuXELW62BGaQKR+VTwWqaKQcACsmtSGUP54cTakAxbnB5f2Atz62I V6XrTxcDgVxqS2pLsgMRwnz96IzxwxsFBawxoEVpne6faEUwHf/th1w0W3VkqNN6cev9W Ollf1JSY8pCp/idmn4+jT0qSxCbzMTCfQ5Tel4oBKuMBpRKmbPZReB/UOmBKpF39Ufg== X-ARC-Message-Signature: i=1; d=kernel.org; s=arc20260519; a=rsa-sha256; c=relaxed/relaxed; t=1794902958; h=DKIM-Signature:Received:From:Date:Subject:MIME-Version:Content-Type: Message-Id:X-B4-Tracking:X-Change-ID:To:Cc:X-Mailer: X-Developer-Signature:X-Developer-Key:X-Endpoint-Received: X-Original-From:Reply-To:Content-Transfer-Encoding; bh=2AsFSmPkJrfcSU2iokgB2aDPRWQeYmtyi73lpLnFe7k=; b=HBG3XeKIuVrhjwKTt45u1yjUyLyNmlgbJqaJQ8oSl4tuvBEOy+f9r4KN+wxJDSu0/klW unNv4+m9SuCJFo+hZIvOOYvGCru2Uya/iDMZ9ful6DvlsMejFFGGKibrcd908xZdAlA/C 4XjsgEv7HMHtYgYa6ZL338A/dLuqvNVjT9QNkCNu4VrgjH+Pw9WYylroFsWXiQxiJ+1sj F4HAtwokppwqdYbzB2t3XyaTIy+ZdeJyBtbx+JYTJ8oTgpjz5FZ2bqZbA5KMGi5l6JvMO A2mlF3cHdlnnigmnCAyI7PY5M+F9XbmjJm6USRpXsYIZ493Yw64QtsBOQq1dd613bew== X-ARC-Authentication-Results: i=1; smtp.kernel.org; arc=none smtp.remote-ip=100.80.115.77 X-Received: from lkml.kernel.org (nexus.subspace.kernel.org [100.80.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.kernel.org (Postfix) with ESMTPS id 0D5A61F000C4; Tue, 17 Nov 2026 08:09:18 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794902958; bh=2AsFSmPkJrfcSU2iokgB2aDPRWQeYmtyi73lpLnFe7k=; h=From:Date:Subject:To:Cc:Reply-To; b=oRrKgAzHDxmScWMEsZU6cbXEBwrbgsQkA63+xe+9dYB9ru+fq664nJGGJZoxTwDpU EPftifQEr9vkFLCFUaIXE2seVbn05yn7HtSdzzV9yGU6ZJC+62eyj/cK6DUmSKpx7w ixzPFUdzxcc5Hv42OaU/EE21LG93+BwTmApW3R/AhgFJlfS/o+EPlBOECkk6p2rTsW 6NFmt3/aUn5+6GU7MOpztzl7t1owS+M4SxnT7oGi1S3ZIrYQ5//reZ4zUmQFc5oRjI x2xQylkFY9EBs232dIsPT6x7H778dpge0UeXETobUSyE1MCFSe2BtBkNTVfQpZXeLM GSRtOTSez3crg== X-Received: from nexus.subspace.kernel.org (localhost [IPv6:::1]) by lkml.kernel.org (Postfix) with ESMTP id 622A64A747; Tue, 17 Nov 2026 08:09:17 +0000 (UTC) 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-B4-Tracking: v=1; b=H4sIAKsL/GoC/yWM0QrCMAwAf2Xk2YDZnAV/RXxYs2xGsC1tNgZj/ 27Vx+O426FIVilwa3bIsmrRGCrQqQF+DmEW1LEytOf2SkQOjRO+bcGUo9cw4xgZV8KuJ/auv0y D81DjlGXS7Te+QxDDIJvB42/K4l/C9v3CcXwAl7FO74QAAAA= X-Change-ID: 20261117-tcp-mtu-probing-doc-v1-351cb754fa7b X-Cc: 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, Yongjian Wang <echoowall@gmail.com> X-Mailer: b4 0.16.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1794902956; l=2370; i=echoowall@gmail.com; s=20261026; h=from:subject:message-id; bh=uFO+5f2+BsqKYlZQnC2908gTApJQjYev79CULLrFyVs=; b=CTFRsXj4zsCMBDDo033TASmfOhkpWF8sCLe3jBnz3Qrz0p1qrRih9+UYwaftb9K38pxZJd4/f c15nntriJSoAe9rckuW1XmJPrcLXwr80ROaq2bwkr9FY2/TxNZncrLI X-Developer-Key: i=echoowall@gmail.com; a=ed25519; pk=9XP6JhqjjPsHCF6UZZZTeqTRnXIa4+ufggnxXtTJ+no= X-Endpoint-Received: by B4 Relay for echoowall@gmail.com/20261026 with auth_id=1323 X-Original-From: Yongjian Wang <echoowall@gmail.com> X-Reply-To: echoowall@gmail.com