Displaying 20 results from an estimated 48 matches for "hashkey".
Did you mean:
has_key
2002 Aug 12
3
Question on hashkey
Hi,
I''ve been working on hashing in tc for a month. Since
there are only a limited number of avaialbe example on
hashing, I''ll be appreciate if someone can my
questions as follows:
1.
tc filter add dev eth1 protocol ip perent 1:0 \
prio 5 u32 ht 800:: \
match ip src 1.2.0.0/16 \
hashkey mask 0x000000ff at 12 \
link 2:
It seems that the hashkey make can only applied to ip
header. How can I use the marked number in a packet
(using iptables) as the hashkey???
2.By looking ad "tc filter add fw help", it seems that
hashing is not supported in "fw", is it? so how c...
2007 Aug 03
1
filter hashkey without match
Hi,
I need to set filter-hash and use source-port as hashkey. It seems that
I can''t use "hashkey" without using "match".
I am using following commands:
tc qdisc add ... root handle 1:0 htb
# Loop to add 1000 classes (i = 1 to 1000)
tc class add ... parent 1:0 classid 1:$i
#set filters
tc filter add ... protocol i...
2006 Sep 19
5
how to setup massive traffic shaping? (2 class B nets)
Hello
I have 2 class-B networks (172.22.0.0/16 and 172.23.0.0/16, over 130k
of ip''s) and need to setup
traffic tbf shapers with 64kb/s for each ip from 172.22.0.0/16 and
128kb/s for each ip from 172.23.0.0/16
just read lartc and don''t understand how to use u32 for decreasing
number of rules and hashing
2003 Nov 24
1
u32 filter divisor/hashkey
Hi,
I am trying to put together a hashing filter based on example provided in
LARTC how-to document.
I want to link two hashing filters together where first one will use 3rd
octet of an IP address as hashkey and second one will use 4th octet as hash
key.
How do I tell mask the address so that u32 filter uses 3rd octet as hashkey?
Venkatesh K
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org...
2004 Apr 06
1
hashing
Hi i have 2 class C 80.97.103.0/24 and 81.180.12.0/24 but i dont konw how
to set hashing tables for HTB
tc add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256
tc add dev eth0 parent 1: prio 0 protocol ip u32 match src 80.97.103.0/24
hashkey mask 0x000000FF at 12 link 1:
but i want 2 hashkey for 80.97.103.0/24 and for 81.180.12.0/24 can
somebody help me ?
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
2003 May 07
0
u32 hashing bug?
...ht 2:65: \
match ip src 192.168.1.100 \
flowid 1:20
# link
tc filter add dev eth1 \
protocol ip parent 1: prio 2 \
handle 800::2 \
u32 \
ht 800:: \
match ip src 192.168.0.0/16 \
hashkey mask 0x000000ff at 12 \
link 2:
I changed just the hashkey mask on the "link" filter to:
hashkey mask 0x000ff000 at 12 \
and the hashtable on the "flow" filter to:
ht 2:80: \
Checking it in tc -r filter list dev eth1, I see...
2005 Jan 19
3
tc limit
...ying with tc. I''m using htb and sfq. I tried to setup
shaping of every ip address within a /20.
I found that there must be an upper limit of about 2096 on the number
of rules (classes, qdiscs or filters). I was testing a /20 which gives
4096 classes, qdiscs and filters. I''m using hashkey to optimize
processing of frames.
When executing the script below - it stops when adding rules for "ip
10.0.7.253" with this error:
handle 1:4097
handle 1:4099
handle 1:4101
RTNETLINK answers: File exists
We have an error talking to the kernel
handle 1:4103
RTNETLINK answers: File exist...
2005 Jan 12
4
hashing filters
...ipt.
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:2 htb rate 100Mbit ceil 100MBit
tc filter add dev eth0 parent 1:2 handle 2: protocol ip u32 divisor 256
tc filter add dev eth0 protocol ip parent 1: u32 match ip dst 192.168.0.0/16 hashkey mask 0x000000ff at 12 link 2:
tc class add dev eth0 parent 1:2 classid 1:3 htb rate 128Kbit ceil 128Kbit
j=0;
while [ $j -le 254 ]
do
i=0;
while [ $i -le 254 ]
do
hexi=`echo "obase=16; $i" | bc`
tc filter add dev eth0 protocol ip...
2003 Dec 07
1
u32 hash-es ?
...city) :
protocol ip u32
#what is the divisor meaning !?
handle 5: protocol ip u32 divisor 256
u32 ht 800::
match ip src 192.168.12.0/24
match ip src 192.168.48.0/24
match ip src 192.168.56.0/24
#13 is the third octet in the IP address isnt ''it
hashkey mask 0x000000ff at 13
link 5:
# c => 12 ,
u32 ht 5:c: match ip src 192.168.12.1 flowid 1:1
u32 ht 5:c: match ip src 192.168.12.2 flowid 1:2
.....
# 30 => 48
u32 ht 5:30: match ip src 192.168.48.1 flowid 1:257
u32 ht 5:30: match ip src 192.168.48.2 flowid 1:258
.........
2004 Jun 25
1
Hashtables major:minor and prio
...What is the
max values of each of these, also where these or some of these hex numbers? I tried
this on redhat 7.3 so there may have been some updates, but this is one of the tests
I did.
[root@RL1 root]# tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht fffe::
match ip dst 10.2.0.0/16 hashkey mask 0x0000ff00 at 16 link 2:
Illegal "ht"
So I assume that that FFFE:: is too large so I found that
tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht fff:: match ip dst
10.2.0.0/16 hashkey mask 0x0000ff00 at 16 link 7:
so it works with fff I guess does this mean its an 24 bit...
2005 Apr 20
1
deleting tc rules
...arent 2:22
classid 2:1012 htb rate 128kbit ceil 128kbit burst 0 cburst 0
RTNETLINK answers: Device or resource busy
If I try to delete the whole part of ''handle 104'':
[root@malinko shape_www-0.20]# tc filter del dev eth0 protocol ip prio
5 parent 2: u32 match ip dst 10.0.0.0/30 hashkey mask 0x000000ff at 16
link 104:
[root@malinko shape_www-0.20]# tc filter del dev eth0 parent 2:22
handle 104: protocol ip prio 5 u32 divisor 256
Here there is no error but all filter rules is deleted also filter
rules for ''10.0.0.0/30'' and a have no shaping at all.
Are there kno...
2004 Jun 25
4
more questions.
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
2004 Jul 02
24
TC Hashing Filters
...st 10 avpkt
1000
# Create hash table attached to transit class
tc filter add dev eth1 parent 1:0 handle 2: protocol ip u32
divisor 256
# Create filter to hash out last octet and link to hash table 2:
tc filter add dev eth1 protocol ip parent 1:1 prio 5 u32 ht
800:: match ip src 216.19.49.0/24 hashkey mask 0x000000ff at 12 link 2:
# Create class for 128Kbit limit
tc class add dev eth1 parent 1:0 classid 1:2 cbq bandwidth
200Mbit rate 128kbit allot 1514 prio 5 maxburst 20 avpkt 1000 bounded
# Create filter for IP I''m limiting
tc filter add dev eth1 protocol ip parent 1:0 prio 5 u32...
2004 Apr 06
0
hashing rule don''t match
Hi i have 2 class C 80.97.103.0/24 and 81.180.12.0/24 but i dont konw how
to set hashing tables for HTB
tc add dev eth0 parent 1: prio 0 handle 1: protocol ip u32 divisor 256 tc
add dev eth0 parent 1: prio 0 protocol ip u32 match src 80.97.103.0/24
hashkey mask 0x000000FF at 12 link 1:
but i want 2 hashkey for 80.97.103.0/24 and for 81.180.12.0/24 can
somebody help me ?
this is a part fo my script
tc qdisc del dev eth0 root
tc qdisc add dev eth0 root handle 1: htb default 1 r2q 1
tc class add dev eth0 parent 1: classid 1:1 htb rate 640Kbit ceil 64...
2006 Mar 14
0
[Fwd: Re: [PATCH] TC: bug fixes to the "sample" clause]
...elf, who go beyond the 1 byte or less
> than a byte can be brave enough to upgrade as well.
Agreed.
> b) new hash (if it is to be upgraded) with 2.4.x
> Again non-issue with 1 byte. Issues show up if you use > or < 1 byte.
>
> And besides if you really insist, look at using hashkey - it will work a
> lot better since the dependency is only at the kernel and none at user
> space.
Hashkey and sample do different things. Briefly, hashkey is
used to direct a "link" operation to the correct bucket at
runtime, whereas "sample" is used put a u32 filter l...
2006 Feb 08
1
Divisor
...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
2005 Jul 06
2
Classid limit at 10000
Hi
I''m setting up shaping using HTB and hashkey. It seems like there is a
limit on the number of classid''s at 10000?
How can I go higher than 10000?
This is what my output say when I reach classid number 10000:
...
...
/sbin/tc class add dev eth0 parent 2:6 classid 2:9998 htb prio 5 rate
768kbit ceil 768kbit burst 0 cburst 0
/sbin/t...
2004 Jun 26
0
Hash table
...ng configuration possible? where ht 800 links to 3: for the 3rd Octet
in the IP and then 3: links to 4: for the fourth Octet?
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.1.0.0/16 hashkey mask 0x0000ff00 at 16 link 3:
tc filter add dev eth0 parent 1:0 prio 10 handle 4: protocol ip u32 divisor 256
tc filter add dev eth0 protocol ip parent 1:0 prio 10 u32 ht 3:01: match ip dst
10.1.1.0/24 hashkey mask 0x000000ff at 16 link 4:
I''m not sure how the Hashtable works I looked a...
2014 Jan 21
0
[PATCH] builder: proper consider subkeys in index files
...reate 13 in
List.iter (
- fun (field, _) ->
- if Hashtbl.mem fseen field then (
- eprintf (f_"virt-builder: index is corrupt: %s: field '%s' appears two or more times\n") n field;
+ fun (field, subkey, _) ->
+ let hashkey = (field, subkey) in
+ if Hashtbl.mem fseen hashkey then (
+ (match subkey with
+ | Some value ->
+ eprintf (f_"virt-builder: index is corrupt: %s: field '%s[%s]' appears two or more times\n") n field value
+ | No...
2004 Aug 12
2
Hashing table based on FWMARK
We currently use iptables, matching packets based on IP address and marking
them with an ID. Multiple IP addresses can be marked with the same ID. We
then filter based on the ID. We have close to 2000 filters now and I''m
looking into hashing tables. Is there any way to create a hashing filter
based on the fwmark?
Paul C. Diem
PCDiem@FoxValley.net