LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   Measuring the time taken by a packet to traverse iptable rules (https://www.linuxquestions.org/questions/linux-kernel-70/measuring-the-time-taken-by-a-packet-to-traverse-iptable-rules-855240/)

akshaynm87 01-09-2011 05:36 PM

Measuring the time taken by a packet to traverse iptable rules
 
Hi
I am trying to measure the time taken by a packet to traverse the iptable rules and report an accept/reject. The rules in iptables are generally stored linearly in one chain. We have tried to extract the common values among the rules and re-organize the chains to reflect a tree structure. Now, we have to see what is the performance gain we achieve by creating new chains and re-ordering rules. So we need to measure the time taken by a packet to traverse the rules and report a match or otherwise. This needs to be compared with the time taken when the rules are just stored linearly.

Thanks

Linuxusernew 10-01-2011 08:25 AM

Hello,

I am working in a similar project that I need to finish in few days!!!!
does any one have an idea please on how to measure the processing time to match a rule?
I will be very grateful for any help

Thanks a lot


All times are GMT -5. The time now is 03:17 PM.