๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #18435

Re: [PATCH net v2 1/2] tcp: roccet: do not restart from idle on RTO retransmission

#18435
From: Eric Dumazet
Date: Wed, 18 Nov 2026 10:07
40 lines
10900 bytes
Le mer. 18 nov. 2026 ร  03:28, Zhiqi Zhang <zhiqizhangg@gmail.com> a รฉcrit :
>
> roccet sets .cong_control, so tcp_slow_start_after_idle_check() returns
> early and roccet implements the idle restart in cwnd_event_tx_start().
>
> An RTO retransmission also raises CA_EVENT_TX_START: tcp_enter_loss()
> marks the outstanding packets lost, which drains the in-flight count
> while tp->packets_out stays non-zero.  If delta >= icsk_rto,
> roccet_cwnd_event_tx_start() then takes the idle restart and overwrites
> tp->snd_ssthresh with tcp_snd_cwnd() == TCP_INIT_CWND.
>
> When a TLP probe was sent, the RTO timer is rearmed for a full icsk_rto
> at that point and the probe is the last transmit, so the first RTO is
> affected.  Without TLP, the first RTO can escape: the timer is armed
> when the first packet of the flight is sent, and pacing spreads the
> following ones, so now - tp->lsndtime < icsk_rto.  The second RTO is
> always affected, since it fires one backed-off icsk_rto after the first
> RTO retransmit.
>
> roccet_state(TCP_CA_Loss) calls roccet_reset(), which clears the private
> state; ca->state is already LAUNCH and last_max_cwnd is already 0 when
> roccet_cwnd_event_tx_start() runs, with or without this fix.  The only
> field the idle restart breaks is tp->snd_ssthresh: it overwrites the
> value preserved by roccet_state() with TCP_INIT_CWND.
>
> Skip the idle restart while packets are outstanding.  The packetdrill
> test in the next patch fails at the first RTO without this fix
> (snd_ssthresh == 10) and passes with it.
>
> Fixes: 819d59638796 ("tcp: Add TCP ROCCET congestion control module.")
> Link: https://lore.kernel.org/all/179179785248.434549.16829837649351382748@kernel.org/
> Signed-off-by: Zhiqi Zhang <zhiqizhangg@gmail.com>
> ---

Reviewed-by: Eric Dumazet <edumazet@kernel.org>

Thanks.
Technical Details
Message-ID: <CAL4WiirJXVjo_b_5zkBCz6rfuwWXfJcpOrnVFpZ=2kBqMf5w+Q@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366025-linux-kernel-netdev=dewy.ru
References: <20261118022813.9778-1-zhiqizhangg@gmail.com> <20261118022813.9778-2-zhiqizhangg@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-366025-linux-kernel-netdev=dewy.ru
From: edumazet@kernel.org (Eric Dumazet)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v2 1/2] tcp: roccet: do not restart from idle on RTO retransmission
Date: Wed, 18 Nov 2026 11:07:31 +0100
Organization: Usenet Network
Message-ID: <CAL4WiirJXVjo_b_5zkBCz6rfuwWXfJcpOrnVFpZ=2kBqMf5w+Q@mail.gmail.com>
References: <20261118022813.9778-1-zhiqizhangg@gmail.com> <20261118022813.9778-2-zhiqizhangg@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
Injection-Info: usenet.network;
	logging-data="2563738"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:G1fXZUrF0YhAkKoAfTcSAY9sAZI= sha256:oBA5WsB5JMsTqSQtkBPjFNI1LF8/nkg7sGpGsu7NEyM=
	sha1:wcrM+whQ3Ax9VFAW9eTxvSje27Q= sha256:U7jHhFltW8ZgW9tsM0a4B230du/wWCqj/S6j4Y1u39w=
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 355DA115240; Wed, 18 Nov 2026 13:08:01 +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 WUC3Cb_dbcCT;
	Wed, 18 Nov 2026 13:07:57 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-366025-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 tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114])
	by mail.dewy.ru (Postfix) with ESMTPS id 23EC011522C; Wed, 18 Nov 2026 13:07:49 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by tor.lore.kernel.org (Postfix) with ESMTP id ECFD72710F; Wed, 18 Nov 2026 10:07:45 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=fail;
	t=1794996465;
	b=qqMiqVWTmwZ7xEE5b/LzChECYVN3ov6gOEwx1I/rw/VVI+N0B97yxtXCikbHgvOOWqUA
	 /7g37WBDA0S9sHWXRzGXrC40SutqfIiYC9+f9oeXk2Mlwq8Xjxfkg34VrFN43cs9MUhKP
	 DkETt0iHO+BngHVqLNWNg/6aUzitjBUbU4KOPz2oCWHrc7rPcG6RcelOsUNxqS1icrGMj
	 c04ffYxJwYavJsNX5nPkwO4x/GVc2hSnB6NEHvjmkUxQNAh2t/qYGrMzWxblC8+7zadPg
	 QGlU528N8jeSPV1vunBjg3jr/Zs4RcAgvBc9uE+G4Z/lqZ1T453+sA27SMqIRMp2wtw==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794996465;
	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=2S2OrGUTyqGlhWvrNAZiu9DXCwxg30V+8Q1xNJW0oww=;
	b=NmywbOkjHa7K6Sz609f2ioxT4c05rTOcYoKNpjQN1KaBmtqWx3+fNfxeOzXd00O9QZOr
	 9yUJ2w1Uvau3FYlA+Qz3jRmKx8BzJkUyiKVkZCDXpv5SgCuG2CAdk1FRkLDiwgVR8cNMP
	 9i3qwKRFgIgSHqsqaTchHFzD1bnbdVSbIi7F9GKmVWGrnri4osbNjxFAFKzqQURrZVYdC
	 67TN8mxdCz4oN8MT+XSB0i6qZVGyVk41TuUB7TB3O3DNedEzcKdVz0aO2985TtO1E5VTA
	 5anYI+4Cwuc9wxN4RExu5resbeDEkJkirV3XSzgmsC6IXAznCtS5ML2VZst06q4yDIA==
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=kZtn0TEv;
	arc=fail 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 5B61C606A33A;
	Wed, 18 Nov 2026 10:07:45 +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=kZtn0TEv
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=1794996464;
	b=rkLsiBRCxuXzvhUYigXnk2MC65FAwO7YGYtMUxfrUQGa/ESYkrhM8wGLY39DwR2jJ52p
	 nVk/b9rr1Ac50WlWdLsG4hozemgzy/s6VDxfVywPzbWc2tl5ukeSpv7jAue/PY8qpgIQo
	 c5PvatqZqKSjtRUAoBrSPN/YcJ1t07q940bklUTX+hYaloLjDTEeep5W2h817AnuNPR/j
	 PJUdu1y/COrtukjcyiCgwFdwju1HwNL9V4Afm+nShYKh1epZwZKRX2deDhEVUfniE8jXY
	 /qMV65d490qhgc31X8rEzrqhwrWGETsSYtaGgUtXnaCXY92HocdjEdkOIjj5eKve3qg==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794996464;
	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=2S2OrGUTyqGlhWvrNAZiu9DXCwxg30V+8Q1xNJW0oww=;
	b=qRPWtfyztD6jC2N3wJCJ1u3JOioLQKqbwMTojZZH70sPjSSTUenQpzXxoJSVG7+YDAEn
	 uTtmNFO5FutsaqQ1yHN8MLKD7OI8PJcNWW0Y4laixn0VckRabC5VLcfXB8EIHwMlzXWye
	 V3J3IPrVHwcqdftcotoITG+ID6d6ZE/dXJsBng02CqdQtobmH4IgBTf8oppusUUZLPa2a
	 YK1ZkYGtXvIO7dt8AAFnS/el2f4lCydz1YNrNm13owaODRyDs/kBn/ze/aaAVZWwvdPsJ
	 Evzq9DZKDGClK+dr1GgzvhmhtW1KAVd7eL2Fk9DrQWG8yw3lA0yqTo1Ytz/o8YlHzIg==
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=kZtn0TEv;
	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 7BA3D606A325
	for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 10:07:44 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2DCD01F000C6
	for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 10:07:44 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794996464;
	bh=2S2OrGUTyqGlhWvrNAZiu9DXCwxg30V+8Q1xNJW0oww=;
	h=References:In-Reply-To:From:Date:Subject:To:Cc;
	b=kZtn0TEvz54Qb4vGb1liXxbJgWqOxNba/uH96QwKFJLapoMIX6/OXw/+s9hC7AH8A
	 viLts0q7dqu1OK/HITIw3WUMtfAlbPz3Ty+05kIcfkYchoNqwuE1Hby221PYdGXQn/
	 Joq4eqFoiawDSM36o1kBWEpt5eTidT82NJNoxmjor3aNLErSQz7ATqvJTt0AMH4tNG
	 TZUOg50d1xKqGlhPRK44KmdVCEGeqsYJ0Uuzuo51iF27xMlrOdJCa1knXl4Hl3c63R
	 qTrPk9nxbGYaJHft+7GbBzZhVTh2cJfvY6CrlszjJm4Wt5VOpN8j4pBfzJDDrtdSyg
	 VdBB2/p/W8/1g==
X-Received: by mail-oo1-f43.google.com with SMTP id 006d021491bc7-717080a2d50so691577eaf.0
        for <netdev@vger.kernel.org>; Wed, 18 Nov 2026 02:07:44 -0800 (PST)
X-Forwarded-Encrypted: i=1; AL+hErFedxkj30LurFLlJdGd0yuyaAyDmx5IAEaRX9T9G0SIcLnbN0Xc/6gVmlGnUnphJXCzF7Xm8GQ=@vger.kernel.org
X-Gm-Message-State: APuU4Z/ioSzklSYWJB6XVaeXZeWc7OvSI1x9MhB/fGkijTJ04hbNF4cv
	r33a6RrFQr+lm+qh0bo/TXL34CaG/17s40ldhhFDeOMsm/62r3dvy3XTDC4YWPa6pEk0vB85Phd
	+rb+ALCHIJTsRLY4xO5BOdUEV7F76GiE=
X-Received: by 2002:a05:6820:3416:20b0:718:968a:75f5 with SMTP id
 006d021491bc7-71b18549405mr1087021eaf.52.1794996463552; Wed, 18 Nov 2026
 02:07:43 -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: <20261118022813.9778-2-zhiqizhangg@gmail.com>
X-Gmail-Original-Message-ID: <CAL4WiirJXVjo_b_5zkBCz6rfuwWXfJcpOrnVFpZ=2kBqMf5w+Q@mail.gmail.com>
X-Gm-Features: AclHuK9FIl21h5B6xIKkXM1xm-w7vDNAJG8Rm2vJL9VhueNWzOpX9FejS4ubxGQ
X-Cc: Neal Cardwell <ncardwell@google.com>, "David S . Miller" <davem@davemloft.net>, 
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>, 
	Kuniyuki Iwashima <kuniyu@google.com>, Simon Horman <horms@kernel.org>, Shuah Khan <shuah@kernel.org>, 
	Tim Fuechsel <t.fuechsel@gmx.de>, Lukas Prause <lukas.prause@ikt.uni-hannover.de>, 
	netdev@vger.kernel.org, linux-kselftest@vger.kernel.org, 
	linux-kernel@vger.kernel.org