public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: Anshu Kumari <anskuma@redhat.com>
Cc: passt-dev@passt.top, Ada Urbaniec <ada.urbaniec@gmail.com>,
	Jon Maloy <jmaloy@redhat.com>
Subject: Re: [PATCH v5] tcp: Limit fast retransmit to one per loss event
Date: Mon, 30 Nov 2026 23:04:18 +0100 (CET)	[thread overview]
Message-ID: <20261130230417.59966654@elisabeth> (raw)
In-Reply-To: <20261130064414.768566-1-anskuma@redhat.com>

On Mon, 30 Nov 2026 12:14:14 +0530
Anshu Kumari <anskuma@redhat.com> wrote:

> Every duplicate ACK unconditionally triggered a fast retransmit,
> even when the ACK sequence hadn't advanced.
> 
> Guard fast retransmit on !conn->retries, and increment retries
> after the first retransmit. This is a quick fix to stop the
> amplification storm. Full compliance with RFC 5681 Section 3.2
> (three duplicate ACKs) is left to a later patch.
> 
> As a fast retransmit is now accounted in conn->retries, the next
> retransmission timeout is doubled (tcp_timer_ctl() uses conn->retries
> as backoff exponent).
> 
> In TAP_FIN_RECVD path, tcp_tap_window_update() returns true for any
> non-zero window because of which tcp_data_from_sock() gets called
> for every ACKs(even for unchanged duplicate ACK). If the send window
> is full calling tcp_data_from_sock() re-armed the retransmission
> timer via conn_flag(),so periodic duplicate ACKs could delay
> retransmission indefinitely and prevent a half-closed connection
> from recovering. Therefore, only call tcp_data_from_sock() when
> the ACK or window actually changed.
> 
> Link: https://bugs.passt.top/show_bug.cgi?id=224
> Reported-by: Ada Urbaniec <ada.urbaniec@gmail.com>
> Signed-off-by: Anshu Kumari <anskuma@redhat.com>

Added from v4:

Reviewed-by: Jon Maloy <jmaloy@redhat.com>

and applied.

-- 
Stefano

      reply	other threads:[~2026-11-30 22:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30  6:44 Anshu Kumari
2026-11-30 22:04 ` Stefano Brivio [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261130230417.59966654@elisabeth \
    --to=sbrivio@redhat.com \
    --cc=ada.urbaniec@gmail.com \
    --cc=anskuma@redhat.com \
    --cc=jmaloy@redhat.com \
    --cc=passt-dev@passt.top \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://passt.top/passt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).