All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC] ctnetlink events drop benchmark
@ 2006-06-13 14:59 Pablo Neira Ayuso
  2006-06-14  7:44 ` Jozsef Kadlecsik
  2006-06-14 13:55 ` Patrick McHardy
  0 siblings, 2 replies; 8+ messages in thread
From: Pablo Neira Ayuso @ 2006-06-13 14:59 UTC (permalink / raw)
  To: Netfilter Development Mailinglist; +Cc: Harald Welte, Patrick McHardy

Hi,

Finally, I've got some results in my test enviroment about the ctnetlink 
event drop issue. The machine used as firewall is a PIII 866 256 Mbytes 
RAM, two NIC realtek 8139 100Mbits running debian unstable with linux 
kernel 2.6.16.

I have run the same test with three different socket queue sizes:
107.520 (default)
215.040 (x2)
430.080 (x4)

I used netperf to create the connections with a shell script that loops 
calling netperf -H ip -l 3 &.

To get the number of events dropped I've used the following:

$ conntrackd & (run as daemon)
$ conntrackd -s (request statistics)

Results are available in:

http://people.netfilter.org/pablo/ctnetlink/events.eps

Currently nlmsg_seq is not set in ctnetlink events, if we set it, we can 
do some kind of sequence tracking on netlink. If an event gets lost, we 
can request a resync with the conntrack via dump_conntrack.

Another choice could be relax conntrackd states transitions, currently 
the valid transition sequence is: NEW -> UPDATE -> DESTROY, if an UPDATE 
event is received but no NEW was seen previously, then the event is 
ignored. Maybe this is too tight, but since I'm validating the whole 
thing I prefer remaining "tight" at the moment.

Comments welcome.

-- 
The dawn of the fourth age of Linux firewalling is coming; a time of 
great struggle and heroic deeds -- J.Kadlecsik got inspired by J.Morris

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2006-06-14 18:36 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-13 14:59 [RFC] ctnetlink events drop benchmark Pablo Neira Ayuso
2006-06-14  7:44 ` Jozsef Kadlecsik
2006-06-14  8:04   ` Jozsef Kadlecsik
2006-06-14 12:24     ` Pablo Neira Ayuso
2006-06-14 11:38   ` Pablo Neira Ayuso
2006-06-14 13:55 ` Patrick McHardy
2006-06-14 16:39   ` Pablo Neira Ayuso
2006-06-14 18:36     ` Patrick McHardy

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.