netfilter.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Steep drop in throughput using NFQUEUE
@ 2011-11-22 19:35 Hariharan Thantry
  2011-11-22 20:13 ` Rick Jones
  0 siblings, 1 reply; 2+ messages in thread
From: Hariharan Thantry @ 2011-11-22 19:35 UTC (permalink / raw)
  To: netfilter

Hi folks,

I'm trying to setup an IPS infrastructure using Suricata. My setup is
the following:

Machine A (Client): Regular Desktop with one dual ported 10G 82599 NICs
Machine B (Bridge, hosting Suricata): An entry level Xeon with 2 dual
ported 10G 82599 NICs
http://www.newegg.com/Product/Product.aspx?Item=N82E16813131725
Machine C (Server): Regular Desktop with one dual ported 10G 82599 NIC

Note that the machine hosting Suricata is a ___pure___ bridge (no IP address)

The forwarding performance of the bridge with the single 10G
connection active is ~9.5 Gbps (almost line rate), while with both 10G
connections active is ~ 13 Gbps (no tuning).

While trying out Suricata as an IPS in this setup, I noticed a steep
drop in the forwarding rate. The single 10G connection speeds dropped
to ~ 400 Kbps.

The Suricata machine has the following rule setup:

$ sudo iptables -A FORWARD -j NFQUEUE --queue-num 0

To see if the drop in the rate was independent of the Suricata stack
or not, I ran the example program from here:

http://www.netfilter.org/projects/libnetfilter_queue/doxygen/nfqnl__test_8c_source.html

and noticed that the speeds are the same as above (~400 Kbps). With
COPY_META, the speeds increased to ~ 2Mbps.

Is this steep drop expected? Any suggestions on what I could be
missing, or how could I optimize it?

Interestingly, using ebtables, and its user space handler

$sudo ebtables -A FORWARD --ulog-nlgroup 1
http://ebtables.sourceforge.net/examples/basic.html#ex_ulog
kept up with the line rate, which was rather surprising, because even
that handler involves a copy to user space.

Any suggestions would be appreciated.

Thanks,
Hari

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

end of thread, other threads:[~2011-11-22 20:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-22 19:35 Steep drop in throughput using NFQUEUE Hariharan Thantry
2011-11-22 20:13 ` Rick Jones

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).