libipq scaling
Hey all-
We're considering using netfilter to do some packet filtering/tagging
based on external information, and it seems like libipq is the best way to do it. I'm wondering if there are any issues with using this tool in an environment where sustained 30Mbit/s throughput is to be expected. The target platform is a dual Xeon 2.8 with gobs of memory, 2.6.7 kernel.
Has anyone experimented with it? If not, when we do some performance
testing, is anyone interested in the results?
Thanks,
-Matt
Hi Matt,
Quoted 7 lines · Matt Walters
We're considering using netfilter to do some packet filtering/tagging
based on external information, and it seems like libipq is the best way
to do it. I'm wondering if there are any issues with using this tool in
an environment where sustained 30Mbit/s throughput is to be expected. The target platform is a dual Xeon 2.8 with gobs of memory, 2.6.7 kernel.
I think that it will work fine with 30 Mbit/s.
Quoted 2 lines
Has anyone experimented with it?
I don't think so AFAIK. I've been benchmarking netlink sockets which is the method used but libipq to pass information from/to user space.
Quoted 3 lines
If not, when we do some performance testing, is anyone interested in the results?
I didn't test libipq performance, but I suppose that it won't work for gigabit networks because of netlink sockets limitations. If you do those performance testings, please post the results to the mailling list.
To do the testing, I propose you to set three boxes, a client and a server with iperf and a box between both of them with libipq enqueuing all the packets for a 100Mbit/s network.
regards,
Pablo
Quoted 11 lines · Pablo Neira
Hi Matt,
Quoted 6 lines · Matt Walters
We're considering using netfilter to do some packet filtering/tagging
based on external information, and it seems like libipq is the best way to do it. I'm wondering if there are any issues with using this tool in an environment where sustained 30Mbit/s throughput is to be expected. The target platform is a dual Xeon 2.8 with gobs of memory, 2.6.7 kernel.
Quoted 6 lines
I think that it will work fine with 30 Mbit/s.
Quoted 1 line
Has anyone experimented with it?
I don't think so AFAIK. I've been benchmarking netlink sockets which is the method used but libipq to pass information from/to user space.
Is this information available? I'd love to have a look at it.
Quoted 6 lines
Quoted 3 lines
If not, when we do some performance testing, is anyone interested in the results?
I didn't test libipq performance, but I suppose that it won't work for gigabit networks because of netlink sockets limitations. If you do those performance testings, please post the results to the mailling list.
Hmm. What are the netlink sockets' limitations? Will they explode at
155Mbps? 500Mbps? Do we know? Does their performance scale with processor speed / memory bandwidth?
Quoted 3 lines
To do the testing, I propose you to set three boxes, a client and a server with iperf and a box between both of them with libipq enqueuing all the packets for a 100Mbit/s network.
Yes, we'd planned something like that - three machines, four 1Gbps
Ethernet interfaces ( [x]<-->[y]<-->[z] ) with [y] forwarding between the other two, passing everything through userspace.
I'm thinking that ipq is a great way to prove the concept we're toying
with, but that in order to scale to very large throughput we'll want to have the work done by a kernel module.
Thanks for your input,
-Matt