All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB --> fw and u32
@ 2003-11-12  8:26 raptor
  2003-11-12 18:04 ` Stef Coene
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: raptor @ 2003-11-12  8:26 UTC (permalink / raw)
  To: lartc

hi,

I have the following problem I have to classify packets based on iptables-mark and on u32 filter...
My idea was to set 

root-------> classX
 |------------------> classY

and then in the root to have a filter that on iptables-mark to direct it to classX, and then in classX to setup u32 filters 
that further classify the packets.
Then in the root put the same u32 filters. So that (pseudo code):

>root
if fwmark = 2 then  classid classX
else 
    u32 filter1 .....  flowid classY-child1
    u32 filter2 ..... flowid classY-child2
    u32 filter3 ..... flowid classY-child3

>classX
    u32 filter1 .....  flowid classX-child1
    u32 filter2 ..... flowid classX-child2
    u32 filter3 ..... flowid classX-child3

Now what I read in the LARTC docs :

9.6. Classifying packets with filters
................
You can't filter a packet 'upwards', by the way. Also, with HTB, you should attach all filters to the root!
......

Now this ruins my idea.... My config will not work with filters attached only on ROOT 'cause the filters are the
same. The only difference is the fwmark. But on the other hand there is no way to set in one filter both of these
mathces..

How to do what I want ?!
aaa and I can't use iptables only solution.. (meanwhile what is the maximum number of the --set-mark values possible and what 
is the maximum numbers of classes and qdisc i can use).

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

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

* Re: [LARTC] HTB --> fw and u32
  2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
@ 2003-11-12 18:04 ` Stef Coene
  2003-11-12 21:56 ` raptor
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-11-12 18:04 UTC (permalink / raw)
  To: lartc

On Wednesday 12 November 2003 09:26, raptor wrote:
> hi,
>
> I have the following problem I have to classify packets based on
> iptables-mark and on u32 filter... My idea was to set
>
> root-------> classX
>
>  |------------------> classY
>
> and then in the root to have a filter that on iptables-mark to direct it to
> classX, and then in classX to setup u32 filters that further classify the
> packets.
>
> Then in the root put the same u32 filters. So that (pseudo code):
> >root
>
> if fwmark = 2 then  classid classX
> else
>     u32 filter1 .....  flowid classY-child1
>     u32 filter2 ..... flowid classY-child2
>     u32 filter3 ..... flowid classY-child3
>
> >classX
>
>     u32 filter1 .....  flowid classX-child1
>     u32 filter2 ..... flowid classX-child2
>     u32 filter3 ..... flowid classX-child3
>
> Now what I read in the LARTC docs :
>
> 9.6. Classifying packets with filters
> ................
> You can't filter a packet 'upwards', by the way. Also, with HTB, you should
> attach all filters to the root! ......
You don't have to attach the filters to the root qdisc with htb.  So you can 
implement your idea.

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] 6+ messages in thread

* Re: [LARTC] HTB --> fw and u32
  2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
  2003-11-12 18:04 ` Stef Coene
@ 2003-11-12 21:56 ` raptor
  2003-11-13 15:39 ` Jacek Bilski
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: raptor @ 2003-11-12 21:56 UTC (permalink / raw)
  To: lartc

|> Now what I read in the LARTC docs :
|>
|> 9.6. Classifying packets with filters
|> ................
|> You can't filter a packet 'upwards', by the way. Also, with HTB, you should
|> attach all filters to the root! ......
|You don't have to attach the filters to the root qdisc with htb.  So you can 
|implement your idea.

]- so, the LARTC docs are wrong !?

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

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

* Re: [LARTC] HTB --> fw and u32
  2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
  2003-11-12 18:04 ` Stef Coene
  2003-11-12 21:56 ` raptor
@ 2003-11-13 15:39 ` Jacek Bilski
  2003-11-13 19:04 ` Stef Coene
  2003-11-14 15:57 ` Chijioke Kalu
  4 siblings, 0 replies; 6+ messages in thread
From: Jacek Bilski @ 2003-11-13 15:39 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/plain, Size: 824 bytes --]

Ehlo!

On śro, 2003-11-12 at 09:26, raptor wrote:

<cut/>

> Now what I read in the LARTC docs :
> 
> 9.6. Classifying packets with filters
> ................
> You can't filter a packet 'upwards', by the way. Also, with HTB, you
should attach all filters to the root!
> ......

<cut/>

I've noticed that also. Can anyone explain why I should attach all
filters to root when using HTB and what could happen if I don't respect
that?

BTW, why there's no "reply-to: lartc@mailman.ds9a.nl" in header? I think
it would be a good idea. Or maybe I did something wrong?

Greetings

-- 
 --== Jacek "Dino" Bilski ==--  --== Registered Linux User #165468 ==--
    --== dino@camelot.homedns.org ==--         --== GG# 3484913 ==--
-= 1024D/5B44CFBE   2228 3F73 A678 81C3 4ABE 2617 C77C AE70 5B44 CFBE =-


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [LARTC] HTB --> fw and u32
  2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
                   ` (2 preceding siblings ...)
  2003-11-13 15:39 ` Jacek Bilski
@ 2003-11-13 19:04 ` Stef Coene
  2003-11-14 15:57 ` Chijioke Kalu
  4 siblings, 0 replies; 6+ messages in thread
From: Stef Coene @ 2003-11-13 19:04 UTC (permalink / raw)
  To: lartc

On Thursday 13 November 2003 00:56, raptor wrote:
> |> Now what I read in the LARTC docs :
> |>
> |> 9.6. Classifying packets with filters
> |> ................
> |> You can't filter a packet 'upwards', by the way. Also, with HTB, you
> |> should attach all filters to the root! ......
> |
> |You don't have to attach the filters to the root qdisc with htb.  So you
> | can implement your idea.
>
> ]- so, the LARTC docs are wrong !?
Yes.  
I sended a patch to the maintainers.

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] 6+ messages in thread

* Re: [LARTC] HTB --> fw and u32
  2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
                   ` (3 preceding siblings ...)
  2003-11-13 19:04 ` Stef Coene
@ 2003-11-14 15:57 ` Chijioke Kalu
  4 siblings, 0 replies; 6+ messages in thread
From: Chijioke Kalu @ 2003-11-14 15:57 UTC (permalink / raw)
  To: lartc

Stef posted a reply to that, check previous mail,

He also going to inform the maintainers of lartc document to update it.

and again u dont have to attach it to the root qdisc

see my sample script i posted 3 days ago.

K

_________________________________________________________________
Concerned that messages may bounce because your Hotmail account is over 
limit? Get Hotmail Extra Storage! http://join.msn.com/?PAGEþatures/es

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

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

end of thread, other threads:[~2003-11-14 15:57 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-11-12  8:26 [LARTC] HTB --> fw and u32 raptor
2003-11-12 18:04 ` Stef Coene
2003-11-12 21:56 ` raptor
2003-11-13 15:39 ` Jacek Bilski
2003-11-13 19:04 ` Stef Coene
2003-11-14 15:57 ` Chijioke Kalu

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.