Skip to contentSkip to conversation

u32 match versus iptables CLASSIFY target - performance

LARTC Cristian Carstea 2 participants 4 messages Jan 30, 2006

lore
Share & tools
lore
#1 lore raw
Quoted 6 lines · Cristian Carstea

hello,

i have a question:
- which one is faster: "tc filter with u32 match per dst ip" or "iptables match per dst ip with target CLASSIFY"?
- this question is for large rulesets (over 500)

use hashes if it's possible to hash those "ip dst".

Quoted 3 lines

thank you,
cristian carstea

Signature · 10 lines
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk


_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
#2 lore raw
In reply to Cristian Carstea
Quoted 6 lines · Cristian Carstea
Quoted 4 lines

hello,

i have a question:
- which one is faster: "tc filter with u32 match per dst ip" or

"iptables match per dst ip with target CLASSIFY"?

Quoted 3 lines
Quoted 1 line

- this question is for large rulesets (over 500)

use hashes if it's possible to hash those "ip dst".

can you please detail this a little?

thank you,
cristian carstea

Quoted 11 lines
Quoted 4 lines

thank you,
cristian carstea

--
_,-=._ /|_/|
-.} =._,.-=-._., @ @._,
`._ _,-. ) _,.-'
G.m-"^mm' Dmytro O. Redchuk

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#3 lore raw
In reply to Cristian Carstea
Quoted 4 lines · Cristian Carstea
Quoted 4 lines · Cristian Carstea
Quoted 2 lines

hello,

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

i have a question:
- which one is faster: "tc filter with u32 match per dst ip" or

"iptables match per dst ip with target CLASSIFY"?

Quoted 3 lines
Quoted 1 line

- this question is for large rulesets (over 500)

use hashes if it's possible to hash those "ip dst".

can you please detail this a little?

Mmmm... With my english..

Try this:
http://lartc.org/howto/lartc.adv-filter.hashing.html

-------
You can filter packets with hash table, you can cascade hashes.

Each cell in hash table can contain many filters (it seems not to be stated in the HOWTO; but it's possible an it's great).

Quoted 3 lines

thank you,
cristian carstea

Signature · 9 lines
  _,-=._              /|_/|
  `-.}   `=._,.-=-._.,  @ @._,
     `._ _,-.   )      _,.-'
        `    G.m-"^m`m'        Dmytro O. Redchuk

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc