All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] filter
@ 2003-10-08 22:46 Victor
  2003-10-09  5:08 ` Catalin BOIE
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Victor @ 2003-10-08 22:46 UTC (permalink / raw)
  To: lartc

The difrence betwen these 2 configurations is only the prio parameter from
the second filter, from each configutation.
(tc filter add dev eth0 parent 1: prio 5 protocol ip u32 ht 800:: match ip
src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:)

Configuration 1

tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 500Kbit prio 1
quantum 2000
tc class add dev eth0 parent 1:1 classid 1:201 htb rate 4Kbit ceil 500Kbit
prio 0 quantum 2000
tc filter add dev eth0 parent 1: prio 1 handle 2: protocol ip u32 divisor 256
tc filter add dev eth0 parent 1: prio 5 protocol ip u32 ht 800:: match ip
src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:
tc filter add dev eth0 prio 1 protocol ip u32 ht 2:01 match ip src
80.97.24.1 flowid 1:201

Configuration 2

tc qdisc add dev eth0 root handle 1: htb
tc class add dev eth0 parent 1: classid 1:1 htb rate 500Kbit prio 1
quantum 2000
tc class add dev eth0 parent 1:1 classid 1:201 htb rate 4Kbit ceil 500Kbit
prio 0 quantum 2000
tc filter add dev eth0 parent 1: prio 1 handle 2: protocol ip u32 divisor 256
tc filter add dev eth0 parent 1: prio 1 protocol ip u32 ht 800:: match ip
src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:
tc filter add dev eth0 prio 1 protocol ip u32 ht 2:01 match ip src
80.97.24.1 flowid 1:201

Configuration 1
tc filter show dev eth1
shows the next lines:
filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 801: ht divisor 1
filter parent 1: protocol ip pref 1 u32 fh 2: ht divisor 256
filter parent 1: protocol ip pref 1 u32 fh 2:1:800 order 2048 key ht 2 bkt
1 flowid 1:201
  match 50611801/ffffffff at 12
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 link 2:
  match 50611800/ffffff00 at 12
    hash mask 000000ff at 12
filter parent 1: protocol ip pref 5 u32
filter parent 1: protocol ip pref 5 u32 fh 801: ht divisor 1
filter parent 1: protocol ip pref 5 u32 fh 2: ht divisor 256
filter parent 1: protocol ip pref 5 u32 fh 2:1:800 order 2048 key ht 2 bkt
1 flowid 1:201
  match 50611801/ffffffff at 12
filter parent 1: protocol ip pref 5 u32 fh 800: ht divisor 1
filter parent 1: protocol ip pref 5 u32 fh 800::800 order 2048 key ht 800
bkt 0 link 2:
  match 50611800/ffffff00 at 12
    hash mask 000000ff at 12



Configuration 1
tc filter show dev eth1
shows the next lines:

filter parent 1: protocol ip pref 1 u32
filter parent 1: protocol ip pref 1 u32 fh 2: ht divisor 256
filter parent 1: protocol ip pref 1 u32 fh 2:1:800 order 2048 key ht 2 bkt
1 flowid 1:201
  match 50611801/ffffffff at 12
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 link 2:
  match 50611800/ffffff00 at 12
    hash mask 000000ff at 12

Why the configutaion1 has many filters than configuration2?
How can the prio paramenter influence this?
What is the range for the prio parameter in the filter context?
Thank you.

Victor


-----------------------------------------
This email was sent using SquirrelMail.
   "Webmail for nuts!"
http://squirrelmail.org/


Random Thought:
--------------
Integrity has no need for rules.
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] filter
  2003-10-08 22:46 [LARTC] filter Victor
@ 2003-10-09  5:08 ` Catalin BOIE
  2003-10-09 16:40 ` Stef Coene
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Catalin BOIE @ 2003-10-09  5:08 UTC (permalink / raw)
  To: lartc

Don't worry. It's tc fault (or maybe kernel).
The filters are once in the kernel but are showed no_of_prios_used times.

On Thu, 9 Oct 2003, Victor wrote:

> The difrence betwen these 2 configurations is only the prio parameter from
> the second filter, from each configutation.
> (tc filter add dev eth0 parent 1: prio 5 protocol ip u32 ht 800:: match ip
> src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:)
>
> Configuration 1
>
> tc qdisc add dev eth0 root handle 1: htb
> tc class add dev eth0 parent 1: classid 1:1 htb rate 500Kbit prio 1
> quantum 2000
> tc class add dev eth0 parent 1:1 classid 1:201 htb rate 4Kbit ceil 500Kbit
> prio 0 quantum 2000
> tc filter add dev eth0 parent 1: prio 1 handle 2: protocol ip u32 divisor 256
> tc filter add dev eth0 parent 1: prio 5 protocol ip u32 ht 800:: match ip
> src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:
> tc filter add dev eth0 prio 1 protocol ip u32 ht 2:01 match ip src
> 80.97.24.1 flowid 1:201
>
> Configuration 2
>
> tc qdisc add dev eth0 root handle 1: htb
> tc class add dev eth0 parent 1: classid 1:1 htb rate 500Kbit prio 1
> quantum 2000
> tc class add dev eth0 parent 1:1 classid 1:201 htb rate 4Kbit ceil 500Kbit
> prio 0 quantum 2000
> tc filter add dev eth0 parent 1: prio 1 handle 2: protocol ip u32 divisor 256
> tc filter add dev eth0 parent 1: prio 1 protocol ip u32 ht 800:: match ip
> src 80.97.24.0/24 hashkey mask 0x000000ff at 12 link 2:
> tc filter add dev eth0 prio 1 protocol ip u32 ht 2:01 match ip src
> 80.97.24.1 flowid 1:201
>
> Configuration 1
> tc filter show dev eth1
> shows the next lines:
> filter parent 1: protocol ip pref 1 u32
> filter parent 1: protocol ip pref 1 u32 fh 801: ht divisor 1
> filter parent 1: protocol ip pref 1 u32 fh 2: ht divisor 256
> filter parent 1: protocol ip pref 1 u32 fh 2:1:800 order 2048 key ht 2 bkt
> 1 flowid 1:201
>   match 50611801/ffffffff at 12
> 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 link 2:
>   match 50611800/ffffff00 at 12
>     hash mask 000000ff at 12
> filter parent 1: protocol ip pref 5 u32
> filter parent 1: protocol ip pref 5 u32 fh 801: ht divisor 1
> filter parent 1: protocol ip pref 5 u32 fh 2: ht divisor 256
> filter parent 1: protocol ip pref 5 u32 fh 2:1:800 order 2048 key ht 2 bkt
> 1 flowid 1:201
>   match 50611801/ffffffff at 12
> filter parent 1: protocol ip pref 5 u32 fh 800: ht divisor 1
> filter parent 1: protocol ip pref 5 u32 fh 800::800 order 2048 key ht 800
> bkt 0 link 2:
>   match 50611800/ffffff00 at 12
>     hash mask 000000ff at 12
>
>
>
> Configuration 1
> tc filter show dev eth1
> shows the next lines:
>
> filter parent 1: protocol ip pref 1 u32
> filter parent 1: protocol ip pref 1 u32 fh 2: ht divisor 256
> filter parent 1: protocol ip pref 1 u32 fh 2:1:800 order 2048 key ht 2 bkt
> 1 flowid 1:201
>   match 50611801/ffffffff at 12
> 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 link 2:
>   match 50611800/ffffff00 at 12
>     hash mask 000000ff at 12
>
> Why the configutaion1 has many filters than configuration2?
> How can the prio paramenter influence this?
> What is the range for the prio parameter in the filter context?
> Thank you.
>
> Victor
>
>
> -----------------------------------------
> This email was sent using SquirrelMail.
>    "Webmail for nuts!"
> http://squirrelmail.org/
>
>
> Random Thought:
> --------------
> Integrity has no need for rules.
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] filter
  2003-10-08 22:46 [LARTC] filter Victor
  2003-10-09  5:08 ` Catalin BOIE
@ 2003-10-09 16:40 ` Stef Coene
  2003-10-10  5:09 ` Catalin BOIE
  2003-10-10 19:49 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-10-09 16:40 UTC (permalink / raw)
  To: lartc

On Thursday 09 October 2003 07:08, Catalin BOIE wrote:
> Don't worry. It's tc fault (or maybe kernel).
It's a bug in the tc routing that displays the filters.

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] filter
  2003-10-08 22:46 [LARTC] filter Victor
  2003-10-09  5:08 ` Catalin BOIE
  2003-10-09 16:40 ` Stef Coene
@ 2003-10-10  5:09 ` Catalin BOIE
  2003-10-10 19:49 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: Catalin BOIE @ 2003-10-10  5:09 UTC (permalink / raw)
  To: lartc

On Thu, 9 Oct 2003, Stef Coene wrote:

> On Thursday 09 October 2003 07:08, Catalin BOIE wrote:
> > Don't worry. It's tc fault (or maybe kernel).
> It's a bug in the tc routing that displays the filters.

Thanks for clarification, Stef.

>
> Stef
>
> --
> stef.coene@docum.org
>  "Using Linux as bandwidth manager"
>      http://www.docum.org/
>      #lartc @ irc.openprojects.net
>

---
Catalin(ux) BOIE
catab@deuroconsult.ro
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [LARTC] filter
  2003-10-08 22:46 [LARTC] filter Victor
                   ` (2 preceding siblings ...)
  2003-10-10  5:09 ` Catalin BOIE
@ 2003-10-10 19:49 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-10-10 19:49 UTC (permalink / raw)
  To: lartc

On Friday 10 October 2003 07:09, Catalin BOIE wrote:
> On Thu, 9 Oct 2003, Stef Coene wrote:
> > On Thursday 09 October 2003 07:08, Catalin BOIE wrote:
> > > Don't worry. It's tc fault (or maybe kernel).
> >
> > It's a bug in the tc routing that displays the filters.

Read :
> > It's a bug in the tc printing routine that displays the filters.

Stef

-- 
stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.openprojects.net

_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-10-10 19:49 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-10-08 22:46 [LARTC] filter Victor
2003-10-09  5:08 ` Catalin BOIE
2003-10-09 16:40 ` Stef Coene
2003-10-10  5:09 ` Catalin BOIE
2003-10-10 19:49 ` Stef Coene

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.