Skip to contentSkip to conversation

10GbE Connectivity & Netfilter

DISCUSSION Tarkan Erimer 3 participants 5 messages Mar 13, 2012 – Mar 14, 2012 netfilter

lore
Share & tools
lore
#0 lore raw

Hi all,

I have some questions regarding to 10GbE connectivity with netfilter/iptables. I searched on google. But didn't find anything to make a clear conclusion. Most of the results were just confusing, conflicting with some others or quite outdated. So, I've decided to write here to get best possible answers by its developers' mouth :-)

So, before asking my questions, here are the some details regarding to the questioned environment :

- 10GbE NIC connectivity with the same speed direct Internet (10Gbit/sec) connection.
- 350.000 - 400.000 packets/sec. inspections/forwarding in some peak loads (it happens frequently. So, safe to say that it's average load most of the time.)
- In peak times, there is 7-8 Gbit/sec. traffic. Average is around 5 Gbit/sec.
- Server has plenty of RAM and CPU/Cores. (Don't remember the exact configs now.)

My questions :

1- Is netfilter subsystem multi-threaded/multi-core enabled ? So that, it can spread the loads across the CPUs/Cores. 2- Can it handle such loads consistently (without any issues/bottlenecks) as I've mentioned above ? 3- Is there any performance matrix and/or practical examples to see ?
4- What kind of netfilter/kernel configs recommended for such a load ?

Many Thanks In Advance For Your Valuable Answers!

Cheers.

Tarkan

#1 lore raw
Quoted 3 lines · Tarkan Erimer

1- Is netfilter subsystem multi-threaded/multi-core enabled ? So that, it can spread the loads across the CPUs/Cores.

Like most kernel subsystems, it is.

Quoted 2 lines

2- Can it handle such loads consistently (without any issues/bottlenecks) as I've mentioned above ?

Question is more like, can your hardware handle it.

Quoted 1 line

4- What kind of netfilter/kernel configs recommended for such a load ?

Does not really matter.

#2 lore raw
Quoted 9 lines · On Tuesday, 13. March 2012 15:02:13 Jan Engelhardt wrote:
Quoted 2 lines

1- Is netfilter subsystem multi-threaded/multi-core enabled ? So that, it can spread the loads across the CPUs/Cores.

Like most kernel subsystems, it is.

Quoted 2 lines

2- Can it handle such loads consistently (without any issues/bottlenecks) as I've mentioned above ?

Question is more like, can your hardware handle it.

On that note, Holger Eitzenberger's irqd might be worth a look:
https://github.com/vaesoo/irqd#readme

http://workshop.netfilter.org/2011/wiki/images/6/69/Nfws2011-multiqueue-and-rps.pdf

Thomas

Signature · 2 lines
Address (better: trap) for people I really don't want to get mail from:
[email protected]
#3 lore raw
Quoted 7 lines · Thomas Jarosch
Quoted 6 lines · On Tuesday, 13. March 2012 15:02:13 Jan Engelhardt wrote:
Quoted 2 lines

1- Is netfilter subsystem multi-threaded/multi-core enabled ? So that, it can spread the loads across the CPUs/Cores.

Like most kernel subsystems, it is.

Quoted 2 lines

2- Can it handle such loads consistently (without any issues/bottlenecks) as I've mentioned above ?

Quoted 8 lines
Quoted 1 line

Question is more like, can your hardware handle it.

On that note, Holger Eitzenberger's irqd might be worth a look:
https://github.com/vaesoo/irqd#readme

http://workshop.netfilter.org/2011/wiki/images/6/69/Nfws2011-multiqueue-and-rps.pdf

Thomas

Hmmm... Really interesting documents. Definitely, what I was looking for! Thanks a lot!

Cheers,

Tarkan

#4 lore raw
In reply to Jan Engelhardt
Quoted 7 lines · Jan Engelhardt
Quoted 2 lines · Tarkan Erimer

1- Is netfilter subsystem multi-threaded/multi-core enabled ? So that, it can spread the loads across the CPUs/Cores.

Like most kernel subsystems, it is.

Quoted 2 lines

2- Can it handle such loads consistently (without any issues/bottlenecks) as I've mentioned above ?

Quoted 8 lines

Question is more like, can your hardware handle it.

Quoted 1 line

4- What kind of netfilter/kernel configs recommended for such a load ?

Does not really matter.
--
To unsubscribe from this list: send the line "unsubscribe netfilter-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

Thanks very much for your answers.

Cheers,

Tarkan