Skip to contentSkip to conversation

more questions.

LARTC [email protected] 2 participants 5 messages Jun 25, 2004 – Jun 28, 2004

lore
Share & tools
lore
#0 lore raw

I forgot to ask a few more.

Is there a relation between the hashtable ID /(parent,handle) so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?

I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles.

thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#1 lore raw
Quoted 2 lines

Is there a relation between the hashtable ID /(parent,handle) so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?

No relation. You can use the same id for both.

Quoted 2 lines

I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles.

No, you cannot do this.
For hashes check my previous mail, for handler: xxxxyyyy, where xxxx is qdisc id and yyyy is class id.

Quoted 11 lines

thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#2 lore raw
In reply to [email protected]

tc filter add dev eth0 parent 1:0 prio 10 handle 3: protocol ip u32 divisor 256

tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht 800:: match ip dst 10.2.0.0/16 hashkey mask 0x0000ff00 at 16 link 3:

tc filter add dev eth1 parent 1:0 prio 10 handle 3: protocol ip u32 divisor 256

tc filter add dev eth1 protocol ip parent 1:0 prio 10 u32 ht 800:: match ip src 10.2.0.0/16 hashkey mask 0x0000ff00 at 12 link 3:

So I have something like this. the first command is saying handle 3 does this mean it is createing a hash table because of an divisor? and the link command on the second command would only referecne to a HT?

Quoted 16 lines · Catalin BOIE
Quoted 3 lines

Is there a relation between the hashtable ID /(parent,handle) so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?

No relation. You can use the same id for both.

Quoted 2 lines

I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles.

No, you cannot do this.
For hashes check my previous mail, for handler: xxxxyyyy, where xxxx is qdisc id and yyyy is class id.

Quoted 5 lines

thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal

system.

Quoted 7 lines
Quoted 6 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 5 lines

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#3 lore raw
In reply to [email protected]

one more I missed is from the documentation.

# tc filter add dev eth1 protocol ip parent 1:0 prio 5 u32 ht 800:: \
        match ip src 1.2.0.0/16 \
        hashkey mask 0x000000ff at 12 \
        link 2:

Ok, some numbers need explaining. The default hash table is called 800:: and all filtering starts there.

I don't understand the default hast table does that mean 800 is unusable? Can you use a different had table for the root here? or do I have to start all hashtables with 800:: for their roots?

Quoted 16 lines · Catalin BOIE
Quoted 3 lines

Is there a relation between the hashtable ID /(parent,handle) so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?

No relation. You can use the same id for both.

Quoted 2 lines

I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles.

No, you cannot do this.
For hashes check my previous mail, for handler: xxxxyyyy, where xxxx is qdisc id and yyyy is class id.

Quoted 5 lines

thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal

system.

Quoted 7 lines
Quoted 6 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 5 lines

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

#4 lore raw
In reply to [email protected]
Quoted 8 lines

tc filter add dev eth1 parent 1:0 prio 10 handle 3: protocol ip u32 divisor 256

tc filter add dev eth1 protocol ip parent 1:0 prio 10 u32 ht 800:: match ip src 10.2.0.0/16 hashkey mask 0x0000ff00 at 12 link 3:

So I have something like this. the first command is saying handle 3 does this mean it is createing a hash table because of an divisor? and the link command on the second command would only referecne to a HT?

Yes. An you must fill hashes 3:xx with other filters or just flowid. Something like this:

tc filter add dev eth1 parent 1:0 protocol ip u32 ht 3:04: order 1 \
match ip dst 1.2.3.4/24 flowid 1:4

or

tc filter add dev eth1 parent 1:0 protocol ip u32 ht 3:04: order 1 \
flowid 1:4

Quoted 27 lines
Quoted 16 lines · Catalin BOIE
Quoted 3 lines

Is there a relation between the hashtable ID /(parent,handle) so that if I used 2:
for a hash table I could or couldn't use 2: for a (parent,handle)ID?

No relation. You can use the same id for both.

Quoted 2 lines

I also noticed that you type the hashtables like 2:2: can you have more levels with this? like 2:2:2:1: ? and I guess the same question with the parent/handles.

No, you cannot do this.
For hashes check my previous mail, for handler: xxxxyyyy, where xxxx is qdisc id and yyyy is class id.

Quoted 5 lines

thanks again.

--
When dealing with a slow pipe, never underestimate the throughput of the postal

system.

Quoted 7 lines
Quoted 6 lines

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

Quoted 10 lines
Quoted 5 lines

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/

--
When dealing with a slow pipe, never underestimate the throughput of the postal system.

---
Catalin(ux aka Dino) BOIE
catab at deuroconsult.ro
http://kernel.umbrella.ro/
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/