All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] HTB as a child of another HTB - doesn't work
@ 2005-07-22 12:59 ddaasd
  2005-07-22 14:02 ` Andreas Klauer
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ddaasd @ 2005-07-22 12:59 UTC (permalink / raw)
  To: lartc

[-- Attachment #1: Type: text/html, Size: 2057 bytes --]

[-- Attachment #2: Type: text/plain, Size: 143 bytes --]

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

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

* Re: [LARTC] HTB as a child of another HTB - doesn't work
  2005-07-22 12:59 [LARTC] HTB as a child of another HTB - doesn't work ddaasd
@ 2005-07-22 14:02 ` Andreas Klauer
  2005-07-23 11:07 ` ddaas
  2005-07-23 11:59 ` Andreas Klauer
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Klauer @ 2005-07-22 14:02 UTC (permalink / raw)
  To: lartc

On Friday 22 July 2005 14:59, ddaasd wrote:
> What do I do wrong?

Most likely, you do not want to use more than one HTB qdisc per device.

> tc qdisc add dev eth0 root handle 100: htb
> tc class add dev eth0 parent 100: classid 100:1 htb rate 100kbps
>
> tc qdisc add dev eth0 parent 100:1 handle 1: htb

What do you need this qdisc for?

> tc class add dev eth0 parent 1: classid 1:1 htb rate 100kbps
> tc class add dev eth0 parent 1:1 classid 1:10 htb rate 50kbps ceil
> 100kbps prio 1 tc class add dev eth0 parent 1:1 classid 1:20 htb rate
> 50kbps ceil 100kbps prio 2

Why not make these children of the first qdisc?

> <br>
> <br>
> <font face="verdana, arial, helvetica" size="2">OR<br>
> <br>
> </font>

Please don't send HTML mails (or at least include a text-only version).
Otherwise it is really awful to read. Thanks.

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

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

* Re: [LARTC] HTB as a child of another HTB - doesn't work
  2005-07-22 12:59 [LARTC] HTB as a child of another HTB - doesn't work ddaasd
  2005-07-22 14:02 ` Andreas Klauer
@ 2005-07-23 11:07 ` ddaas
  2005-07-23 11:59 ` Andreas Klauer
  2 siblings, 0 replies; 4+ messages in thread
From: ddaas @ 2005-07-23 11:07 UTC (permalink / raw)
  To: lartc

On Friday 22 July 2005 14:59, ddaasd wrote:

 >> What do I do wrong?
 >>
 >>
 >>Most likely, you do not want to use more than one HTB qdisc per device.

What about the example from the HTB User Guide?? Is it wrong?

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




 >>Please don't send HTML mails (or at least include a text-only >>version).
 >>Otherwise it is really awful to read. Thanks.


Sorry, I didn't know..L :(


 >>HTH
 >>Andreas


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

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

* Re: [LARTC] HTB as a child of another HTB - doesn't work
  2005-07-22 12:59 [LARTC] HTB as a child of another HTB - doesn't work ddaasd
  2005-07-22 14:02 ` Andreas Klauer
  2005-07-23 11:07 ` ddaas
@ 2005-07-23 11:59 ` Andreas Klauer
  2 siblings, 0 replies; 4+ messages in thread
From: Andreas Klauer @ 2005-07-23 11:59 UTC (permalink / raw)
  To: lartc

On Saturday 23 July 2005 13:07, ddaas wrote:
>  >>Most likely, you do not want to use more than one HTB qdisc per
>  >> device.
>
> What about the example from the HTB User Guide?? Is it wrong?

Ah, you want to simulate a slow link. Didn't realize that, sorry. :-)

Have a look on the output of the tc -s -d class show dev $dev statistics.
Also try qdisc show instead of class show, the direct_packets_stat should 
be zero.

The packets should go into the class 100:1 (you may have to add "default 1" 
or a filter that puts them there). So far you only got one filter for the 
child qdisc, but for that the packets have to get there first.

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

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

end of thread, other threads:[~2005-07-23 11:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-22 12:59 [LARTC] HTB as a child of another HTB - doesn't work ddaasd
2005-07-22 14:02 ` Andreas Klauer
2005-07-23 11:07 ` ddaas
2005-07-23 11:59 ` Andreas Klauer

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.