Displaying 20 results from an estimated 50000 matches similar to: "Tc u32 divisor value"
2007 Feb 04
4
tc ingress + iptables mark problem
Hi guys , i am starting to "play" with qos in linux. Well , i am
trying to setup an ingress filter but i do not know why it is not
working.
tc add qdisc dev eth0 ingress
tc filter add dev eth0 parent ffff: protocol ip prio 1 handle 1 fw
police rate 160kbit burst 256kbit drop flowid :1
After that :
iptables -A PREROUTING -t mangle --sport 80 -j MARK --set-mark 1
So , i think this
2005 Oct 17
5
TC show filter command shows all u32 filters defined with different priority iin all priority.
Hi,
I am currently working on the TC.
I have seen some behaviour which seems to be odd.
I know someone in the mailing list would have seen this problem or may
have some fix for this problem.
When I try to include u32 filters with different priority or pref, I
could see the filters being set on all the priority''s irrespective of
the priority number.
See my sample script below and the
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
_______________________________________________
2006 Feb 08
1
Divisor
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
2005 Jan 27
1
question about filter priorities and "tc -d filter show" output
The interface is setup like this:
# tc qdisc del dev eth0 root
# tc qdisc add dev eth0 root handle 1: htb default 2
# tc class add dev eth0 parent 1: classid 1:2 htb rate 20mbit ceil 20mbit
If I add a second class and a filter to send traffic to it like this:
# tc class add dev eth0 parent 1: classid 1:130 htb rate 1Mbit ceil 1Mbit
# tc filter add dev eth0 protocol ip parent 1:0 prio 130 u32
2005 Dec 09
0
error in TC FILTER documentation ???
I''ve done some tests with TC FILTER and his PRIO
and think that is an error or OMISION on TC FILTER DOCUMENTATION
from: http://lartc.org/howto/lartc.qdisc.filters.html#AEN1100
Let''s say we have a PRIO qdisc called ''10:'' which contains three
classes, and we want to assign all traffic from and to port 22
to the highest priority band, the filters would be:
2006 Apr 07
0
PRIO and u32 matching problem
Hi to everybody
I''m trying to use PRIO qdisc to prioritize the traffic but i have
strange problem maybe I''m missing sometging.
First i add root qdisc like this
tc qdisc add dev eth0 root handle 1: prio
it''s fine after this i try to match traffic by tos field but i get error
invalid match
tc filter add dev eth0 parent 1:0 prio 1 protocol ip u32 \
match ip tos 0x10 0xff
2006 Jun 27
0
tc filter problems, please help...
Hi Guys,
I have a couple of problems that are driving me nuts.
This is the script I am using to setup restirctions and bw limitations:
#Adding root class.
tc qdisc add dev eth0 root handle 1: htb default 10 &>/dev/null
tc class add dev eth0 parent 1: classid 1:1 htb rate 100Mbit ceil 100Mbit
burst 2k quantum 1536
tc qdisc add dev eth1 root handle 1: htb default 10 &>/dev/null
tc
2007 Jun 27
1
Deleting a tc filter rule
Hi,
I am very new to tc. I added a filter using the following command:
tc filter add dev eth0 V parent 20:0 protocol ip prio 1 handle ::128 u32
match ip tos 0x44 0xfc flowid 20:1
To check if the filter rule was indeed added, I run
tc filter show dev eth0 parent 20:
This gave me the following output:
filter protocol ip
2007 Oct 28
3
tc filter question
Dear all,
I have big question in my mind about "tc filter" sintax. If I give "tc -s -d
filter sh dev eth0" command, then the output is like below :
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 800::800 order 2048 key ht 800 bkt
0 flowid 1:2 (rule hit 21553629
success 37907)
2003 Oct 31
2
tc filter oddities
I shape my upstream cable link with HTB from a script. My voip traffic
(from the 192.168.0.14 host) gets priority over everything else to the
near-starvation of other classes; the rest of the traffic is split up
based on some priority rules (qos, empty ack packets, etc). eth1 is the
uplink
I''ve been using HTB and fw marking for the job until recently, when I
changed the queue structure
2007 Feb 17
4
Order of ''tc filer''
Hi
How can I control which filter a packet will meet first?
I have tried changing the order of applying the tc filter scripts and
switching flowid number, but ''protocol ip u32 match ip src <ip net>
match ip src 0.0.0.0/0'' always kicks in first?
>From my script
--------------------
# All traffic - Priority: Low
tc filter add dev eth0 parent 1:0 prio 2 protocol ip u32
2003 May 07
0
u32 hashing bug?
I''m hashing on a non-octet boundary, and it doesn''t seem to be working.
I''ve got this set of filters, that does work:
# root
tc filter add dev eth1 \
parent 1: protocol ip prio 2 \
u32
# ht
tc filter add dev eth1 \
parent 1: protocol ip prio 2 \
handle 2: \
u32 divisor 256
# flow
tc filter replace dev eth1 \
2002 Dec 06
0
u32 filter
Hello!
What is the significance of "handle" in a u32 filter??
For example, if I have a HTB class 1:1 and three child classes 1:11, 1:12,
and 1:13. Within 1:11, I define dsmark, say 2:0, and let it mark packets
with certain DSCP. Now, using the u32 filter I need to classify packets of a
certain flow (e.g., based on src ip address and dest port), then can someone
give me an example of
2005 Dec 17
0
Fw: tc filter match u8 problem??
On Sat, 17 Dec 2005, Andy Furniss wrote:
> The u8 test works OK for me as does the one below.
My mistake. I cleaned the rules and removed the ones that collided with
the u8 one.
There is no error on this. (see explanation bellow).
>
> When playing with tc filters I always tc qdisc del dev eth0 root and enter
> the whole lot again between tests.
I always took that as mandatory.
2005 Apr 20
1
deleting tc rules
Hi
I''m doing traffic shaping with tc on ''10.0.0.0/30'' and ''10.0.0.28/30''.
I want to delete part of shaping rules on the fly. (see my
configuration at the end of this mail)
I wan''t to delete the shaping for ''10.0.0.0/30'' on the fly while still
keeping the shaping for part ''10.0.0.28/30'' running.
When I for
2005 Jan 19
3
tc limit
Hi
I have been playing 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
2001 Dec 13
14
tc: u32 match in nexthdr not working?
Hello,
it seems, that filtering on nexthdr (TCP/UDP) content, especially
src or dst port, is not working.
The following has no effect on 2.4.16 or older (even 2.2) kernels:
# tc filter add dev eth0 parent ffff: protocol ip prio 50 u32 match tcp
dst 3128 0xffff police rate 40kbit burst 10k drop flowid :1
Even if
# tc filter ls dev eth0 parent ffff:
filter protocol ip pref 50 u32
filter protocol
2007 Sep 23
0
Add U32 Filter with libnl
Hello,
I try to add a U32 source port filter with libnl. My filter can be
succesfully added with the library (no error occured) but the filter is not
active.
If I run "tc filter show dev eth0" I get:
filter parent 1: protocol ip pref 100 u32 filter parent 1: protocol ip pref
100 u32 fh 800: ht divisor 1 filter parent 1: protocol ip pref 100 u32 fh
800::800 order 2048 key ht 800 bkt 0