All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Classes and qdiscs
@ 2003-03-13  0:58 S Mohan
  2003-03-13 16:04 ` Stef Coene
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: S Mohan @ 2003-03-13  0:58 UTC (permalink / raw)
  To: lartc

I've been reading the posts on classless queuing and classes/qdisc
combinations. Both Martin and Stef mentioned that one class can have
more than one qdisc attached.

The way I had understood queue disciplines was as follows:

1. A class has a qdisc to regulate traffic under limit e.g htb/tbf....
2. A tier in the hierarchy has a qdisc attached for sharing of spare
bandwidth not utilized by one or more classes amongst the others in the
same tier.

Or would it be correct to say that each class has a qdisc that
distributes its spare bandwidth to others in the same level in the
hierarchy? Does it mean that if I have SFQ for one class and have not
attached SFQ to the other two classes at the same level, the other two
classes would get even distribution of bandwidth not utilized by the
first class?

Can a scenario be drawn up as to why we would need more than two qdiscs
for a class (one for under limit and one for spare).

Bye
Mohan 

_______________________________________________
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] Classes and qdiscs
  2003-03-13  0:58 [LARTC] Classes and qdiscs S Mohan
@ 2003-03-13 16:04 ` Stef Coene
  2005-03-29 19:40 ` [LARTC] classes " Marcus Fritzsch
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2003-03-13 16:04 UTC (permalink / raw)
  To: lartc

On Thursday 13 March 2003 01:57, S Mohan wrote:
> I've been reading the posts on classless queuing and classes/qdisc
> combinations. Both Martin and Stef mentioned that one class can have
> more than one qdisc attached.
No.  One class can has 1 qdiac attached.  But there are qdiscs with multiple 
classes and you can add a qdisc to each of these classes.

> The way I had understood queue disciplines was as follows:
>
> 1. A class has a qdisc to regulate traffic under limit e.g htb/tbf....
Not really.  The qdisc is only responsible for sending the traffic that 
belongs to that class.

> 2. A tier in the hierarchy has a qdisc attached for sharing of spare
> bandwidth not utilized by one or more classes amongst the others in the
> same tier.
>
> Or would it be correct to say that each class has a qdisc that
> distributes its spare bandwidth to others in the same level in the
> hierarchy? Does it mean that if I have SFQ for one class and have not
> attached SFQ to the other two classes at the same level, the other two
> classes would get even distribution of bandwidth not utilized by the
> first class?
Classes are responsible for managing the traffic.  Each class sholds a part of 
the total traffic.  Unused bandwidth can be shared amongs the differenc 
classes.
If you want to understand how traffic is managed between classes, forget about 
the qdiscs.  Just think about the classes.  The qdiscs are only responsible 
for sending the traffic.  The amount of traffic is regulated by the 
configuration of the classes.

Stef


-- 

stef.coene@docum.org
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.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

* [LARTC] classes and qdiscs
  2003-03-13  0:58 [LARTC] Classes and qdiscs S Mohan
  2003-03-13 16:04 ` Stef Coene
@ 2005-03-29 19:40 ` Marcus Fritzsch
  2005-04-04 12:59 ` Andy Furniss
  2005-04-05 22:24 ` Andy Furniss
  3 siblings, 0 replies; 5+ messages in thread
From: Marcus Fritzsch @ 2005-03-29 19:40 UTC (permalink / raw)
  To: lartc

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello everybody!

I am wondering, whether it is possible to have qdiscs and classes as
childs of a class or not.

take the following example:

~ ,-----
~ |                class 1:1
~ |               /         \
~ |             /             \
~ |           /                 \
~ |      class 1:10          qdisc 11:
~ |      /        \
~ |    ...        ...
~ `-----

does this makes any sense?



greetings from germany, Marcus

- --
~                                          s(c,t){return isalpha(c)&&t?/*
Marcus Fritzsch <marcus.fritzsch@gmx.net>  ICQ:53118621  WWW:fritschy.de
~  GnuPG: gpg --keyserver sks.keyserver.penguin.de --recv-keys 98A1D365
*/s(65-c&&97-c?--c:c+25,--t):c;}main(){for(;;)putchar(s(getchar(),13));}


-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCSa838lT6s5ih02URAvWQAKDR0uh0FsymiHotKpY1mEu//nmLRgCgz7t+
RDSVB1sZXs0CZ2PhDlZssBc=EhUQ
-----END PGP SIGNATURE-----
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] classes and qdiscs
  2003-03-13  0:58 [LARTC] Classes and qdiscs S Mohan
  2003-03-13 16:04 ` Stef Coene
  2005-03-29 19:40 ` [LARTC] classes " Marcus Fritzsch
@ 2005-04-04 12:59 ` Andy Furniss
  2005-04-05 22:24 ` Andy Furniss
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Furniss @ 2005-04-04 12:59 UTC (permalink / raw)
  To: lartc

Marcus Fritzsch wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Hello everybody!
> 
> I am wondering, whether it is possible to have qdiscs and classes as
> childs of a class or not.
> 
> take the following example:
> 
> ~ ,-----
> ~ |                class 1:1
> ~ |               /         \
> ~ |             /             \
> ~ |           /                 \
> ~ |      class 1:10          qdisc 11:
> ~ |      /        \
> ~ |    ...        ...
> ~ `-----
> 
> does this makes any sense?

You can do a queue within a queue with htb see section 6 -

http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm

You will need to double up on filters - ie. you can't filter directly 
from root queue to subclass of child queue.

Andy.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

* Re: [LARTC] classes and qdiscs
  2003-03-13  0:58 [LARTC] Classes and qdiscs S Mohan
                   ` (2 preceding siblings ...)
  2005-04-04 12:59 ` Andy Furniss
@ 2005-04-05 22:24 ` Andy Furniss
  3 siblings, 0 replies; 5+ messages in thread
From: Andy Furniss @ 2005-04-05 22:24 UTC (permalink / raw)
  To: lartc

Andy Furniss wrote:

> 
> You can do a queue within a queue with htb see section 6 -
 >
 > http://luxik.cdi.cz/~devik/qos/htb/manual/userg.htm

Oops it's not a queue within a queue. I just tried it, but it may be all 
you need - depending what you need to do that for :-)

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

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

end of thread, other threads:[~2005-04-05 22:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-03-13  0:58 [LARTC] Classes and qdiscs S Mohan
2003-03-13 16:04 ` Stef Coene
2005-03-29 19:40 ` [LARTC] classes " Marcus Fritzsch
2005-04-04 12:59 ` Andy Furniss
2005-04-05 22:24 ` Andy Furniss

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.