netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Florian Westphal <fw@strlen.de>
To: Yadan Fan <ydfan@suse.com>
Cc: Florian Westphal <fw@strlen.de>,
	Hannes Reinecke <hare@kernel.org>,
	Pablo Neira Ayuso <pablo@netfilter.org>,
	Jozsef Kadlecsik <kadlec@netfilter.org>,
	netfilter-devel@vger.kernel.org,
	Michal Kubecek <mkubecek@suse.de>
Subject: Re: [PATCH] nf_conntrack_proto_udp: do not accept packets with IPS_NAT_CLASH
Date: Tue, 8 Oct 2024 18:45:17 +0200	[thread overview]
Message-ID: <20241008164517.GA15971@breakpoint.cc> (raw)
In-Reply-To: <776f0b5c-7c2d-4668-a29e-38559fc0ee45@suse.com>

Yadan Fan <ydfan@suse.com> wrote:
> On 9/30/24 17:29, Florian Westphal wrote:
> > Hannes Reinecke <hare@kernel.org> wrote:
> > > Commit c46172147ebb changed the logic when to move to ASSURED if
> > > a NAT CLASH is detected. In particular, it moved to ASSURED even
> > > if a NAT CLASH had been detected,
> > 
> > I'm not following.  The code you are removing returns early
> > for nat clash case.
> > 
> > Where does it move to assured if nat clash is detected?
> > 
> > > However, under high load this caused the timeout to happen too
> > > slow causing an IPVS malfunction.
> > 
> > Can you elaborate?
> 
> Hi Florian,
> 
> We have a customer who encountered an issue that UDP packets kept in
> UNREPLIED in conntrack table when there is large number of UDP packets
> sent from their application, the application send packets through multiple
> threads,
> it caused NAT clash because the same SNATs were used for multiple
> connections setup,
> so that initial packets will be flagged with IPS_NAT_CLASH, and this snippet
> of codes
> just makes IPS_NAT_CLASH flagged packets never be marked as ASSURED, which
> caused
> all subsequent UDP packets got dropped.

I think the only thing remaining is to rewrite the commit message to
say that not setting assured will drop NAT_CLASH replies in case server
is very busy and early_drop logic kicks in.

  reply	other threads:[~2024-10-08 16:45 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-09-30  8:53 [PATCH] nf_conntrack_proto_udp: do not accept packets with IPS_NAT_CLASH Hannes Reinecke
2024-09-30  9:29 ` Florian Westphal
2024-10-08 16:27   ` Yadan Fan
2024-10-08 16:45     ` Florian Westphal [this message]
2024-10-10 11:11       ` Yadan Fan

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=20241008164517.GA15971@breakpoint.cc \
    --to=fw@strlen.de \
    --cc=hare@kernel.org \
    --cc=kadlec@netfilter.org \
    --cc=mkubecek@suse.de \
    --cc=netfilter-devel@vger.kernel.org \
    --cc=pablo@netfilter.org \
    --cc=ydfan@suse.com \
    /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.
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 NNTP newsgroup(s).