Skip to contentSkip to conversation

Divisor

LARTC Konrad 2 participants 2 messages Feb 8, 2006

lore
Share & tools
lore

Konrad

author
#0 lore raw

What is the difference between lines below?

$TC filter add dev imq0 parent 1:0 prio 5 handle 1: protocol ip u32 divisor 1
$TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32 divisor 256

What divisor is doing?

And the last problem...

$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 ht 800:: match ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:

Why after ht should be 800?
When 801:: is correct value? When this value should be different.

Please help me understand this.

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

#1 lore raw

Not sure about the divisor; but your number 800 can be any hexadecimal number (within reason). This value is the name of the hash table, so each hash table should have it's own name (i.e. 800::, 801::, etc.)

Someone can correct me if I am wrong, because I don't have a lot of experience with HTs.
Devanshu

Quoted 26 lines · Konrad

What is the difference between lines below?

$TC filter add dev imq0 parent 1:0 prio 5 handle 1: protocol ip u32 divisor 1
$TC filter add dev imq0 parent 1:0 prio 5 handle 2: protocol ip u32 divisor 256

What divisor is doing?

And the last problem...

$TC filter add dev imq0 protocol ip parent 1:0 prio 5 u32 ht 800::
match ip src 10.0.0.0/16 hashkey mask 0x000000ff at 12 link 2:

Why after ht should be 800?
When 801:: is correct value? When this value should be different.

Please help me understand this.

Signature · 5 lines
Konrad aka Lenthir
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
Signature · 8 lines
Devanshu Mehta
Advanced Networks and Applications Group
MIT Lincoln Laboratory

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