netfilter-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Patrick McHardy <kaber@trash.net>
To: Jan Kasprzak <kas@fi.muni.cz>
Cc: netfilter-devel@vger.kernel.org
Subject: Re: [RFD,patch] ICMP echo conntrack timeout
Date: Tue, 02 Jun 2009 14:10:57 +0200	[thread overview]
Message-ID: <4A2516D1.30900@trash.net> (raw)
In-Reply-To: <20090601174352.GH31797@fi.muni.cz>

Jan Kasprzak wrote:
> 	Hello, netfilter developers!
> 
> I am trying to delploy a conntrackd-based HA router and (if possible) a
> flow statistics collector. I have discovered that nf_conntrack treats each
> ICMP echo request/reply pair as a separate connection (in
> net/ipv4/netfilter/nf_conntrack_proto_icmp.c:icmp_packet() function).
> This has several problems:
> 
> - excessive conntrackd traffic when the ping is running over the router
> 	(one new "connection" per echo request/reply pair).
> 
> - should there be a duplicated ICMP echo reply (such as when when pinging
> 	a cluster IP address), only the first echo reply is seen as
> 	ESTABLISHED, the rest is INVALID.
> 
> - no "per-flow" statistics available, as there is no notion of the "flow"		at all.
> 
> 	I think it would be better to keep the default timeout of
> nf_ct_icmp_timeout even after the echo reply is received. Feel free
> to correct me why early deleting of ICMP conntrack entries is needed,
> or consider applying the following patch.

I think this patch makes sense, it also improves behaviour in cases with
asymetric MTUs where a fragmentation required is sent after the reply
passed through conntrack and conntrack can't associate it to the already
gone connection anymore.

Unless someone has concerns I'm missing, I'll apply this.

  parent reply	other threads:[~2009-06-02 12:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-01 17:43 [RFD,patch] ICMP echo conntrack timeout Jan Kasprzak
2009-06-02 11:46 ` Pablo Neira Ayuso
2009-06-02 12:47   ` Jan Kasprzak
2009-06-02 12:48   ` Patrick McHardy
2009-06-02 14:53     ` Pablo Neira Ayuso
2009-06-02 15:01       ` Patrick McHardy
2009-06-02 15:20         ` Pablo Neira Ayuso
2009-06-02 12:10 ` Patrick McHardy [this message]
2009-06-05 10:46 ` Patrick McHardy
2009-06-07  1:03   ` Jan Kasprzak
2009-06-08 13:54     ` Patrick McHardy

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=4A2516D1.30900@trash.net \
    --to=kaber@trash.net \
    --cc=kas@fi.muni.cz \
    --cc=netfilter-devel@vger.kernel.org \
    /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).