From: Dong_Wei <Dong_Wei@nj.cpsecure.com>
To: Patrick McHardy <kaber@trash.net>
Cc: netfilter-devel@lists.netfilter.org,
Yasuyuki KOZAKAI <yasuyuki.kozakai@toshiba.co.jp>
Subject: Re: /proc/net/ip_conntrack trange behavior
Date: Thu, 30 Aug 2007 17:48:47 +0800 [thread overview]
Message-ID: <46D6927F.1010406@nj.cpsecure.com> (raw)
In-Reply-To: <46D66874.1050405@trash.net>
Hi Yasuyuki san
> Dong_Wei wrote:
>> Thanks a lot. Yasuyuki and kaber
>>
>> I have looked the 2.6.20 kernel and found that the reason.
>>
>> When ip_conntrack try to pick up an ESTABLISHED TCP connection, this
>> issue will happen.
>
>
> Exactly.
>
>> 2.6 set an 'sysctl' value to deal with this situation
>>
>> [..]
>>
>> And we can't avoid this issue on 2.4, because no code deal with the
>> special case.
>
>
> Thats correct. Is there a problem with this behaviour?
As we know, ip_conntrack has a hash_size to control the ip_conntrack
record size. and if tcp in ESTABLISH, and ip_conntrack will keep it for
5 DAYs.
For exsample, a NAT server can handle 8000 connections, and if sometime,
NAT server need reboot(6000 conntrack in ESTBLISHED state now). Also we
set ip_conntrack allowing pickup ESTABLISHED tcp connection, when NAT
server available again, ip_conntrack will take 6000 conntracks for the
original connections. but actully these connections are INVALID for the
web server, because the source ip is the private IPs,such as
192.168.0.1. and web server will not answer the client's request. But
still the NAT server will keep the 6000 conntrack for 5 DAYs. And just
2000 conntracks can be used for the clients. If more than 2000 client
want connect to some websites, some ip_conntrack will be droped.
BR. DongWei
next prev parent reply other threads:[~2007-08-30 9:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-24 7:43 /proc/net/ip_conntrack trange behavior Dong_Wei
2007-08-29 9:14 ` Yasuyuki KOZAKAI
2007-08-29 18:49 ` Patrick McHardy
2007-08-30 1:14 ` Dong_Wei
2007-08-30 6:49 ` Patrick McHardy
2007-08-30 9:48 ` Dong_Wei [this message]
2007-08-31 8:45 ` Patrick McHardy
2007-08-31 9:59 ` Dong_Wei
2007-08-31 15:09 ` Krzysztof Oledzki
2007-09-03 3:34 ` Dong_Wei
2007-09-03 4:03 ` Philip Craig
2007-09-03 5:11 ` Dong_Wei
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=46D6927F.1010406@nj.cpsecure.com \
--to=dong_wei@nj.cpsecure.com \
--cc=kaber@trash.net \
--cc=netfilter-devel@lists.netfilter.org \
--cc=yasuyuki.kozakai@toshiba.co.jp \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.