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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 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.> 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.> > thanks again. > > -- > When dealing with a slow pipe, never underestimate the throughput of the postal system. > > > _______________________________________________ > LARTC mailing list / LARTC@mailman.ds9a.nl > 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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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? Catalin BOIE (util@deuroconsult.ro) wrote:> >> 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. > >> 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. > >> >> thanks again. >> >> -- >> When dealing with a slow pipe, never underestimate the throughput of the postalsystem.>> >> >> _______________________________________________ >> LARTC mailing list / LARTC@mailman.ds9a.nl >> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >> > >--- >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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
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? Catalin BOIE (util@deuroconsult.ro) wrote:> >> 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. > >> 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. > >> >> thanks again. >> >> -- >> When dealing with a slow pipe, never underestimate the throughput of the postalsystem.>> >> >> _______________________________________________ >> LARTC mailing list / LARTC@mailman.ds9a.nl >> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >> > >--- >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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
> 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> > > Catalin BOIE (util@deuroconsult.ro) wrote: >> >>> 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. >> >>> 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. >> >>> >>> thanks again. >>> >>> -- >>> When dealing with a slow pipe, never underestimate the throughput of the postal > system. >>> >>> >>> _______________________________________________ >>> LARTC mailing list / LARTC@mailman.ds9a.nl >>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ >>> >> >> --- >> 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 / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/