All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Isolated Class in HTB
@ 2002-06-04  4:06 arisantois
  2002-06-04  4:50 ` Alexey Talikov
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: arisantois @ 2002-06-04  4:06 UTC (permalink / raw)
  To: lartc


Hi All

I have a newbie question here.. I use HTB to manage bandwith in my
University. We have 5 Faculties that connected directly to my office, So we
made 6 classes with one class as Default class.

[root@gw-konsorsium root]# tc class show dev eth0
class htb 1:10 parent 1:2 leaf 10: prio 0 rate 256Kbit ceil 426Kbit burst
15Kb cburst 2Kb
class htb 1:2 root prio 0 rate 10Mbit ceil 10Mbit burst 15Kb cburst 14704b
class htb 1:20 parent 1:2 leaf 20: prio 0 rate 86Kbit ceil 426Kbit burst
15Kb cburst 2254b
class htb 1:30 parent 1:2 leaf 30: prio 0 rate 86Kbit ceil 426Kbit burst
15Kb cburst 2254b
class htb 1:40 parent 1:2 leaf 40: prio 0 rate 86Kbit ceil 86Kbit burst
15Kb cburst 2254b
class htb 1:50 parent 1:2 leaf 50: prio 0 rate 64Kbit ceil 64Kbit burst
15Kb cburst 1680b
class htb 1:60 parent 1:2 leaf 60: prio 0 rate 1Kbit ceil 10Mbit burst 15Kb
cburst 14704b

[root@gw-konsorsium root]# tc qdisc show dev eth0
qdisc sfq 60: quantum 1514b perturb 10sec
qdisc sfq 50: quantum 1514b perturb 10sec
qdisc sfq 40: quantum 1514b perturb 10sec
qdisc sfq 30: quantum 1514b perturb 10sec
qdisc sfq 20: quantum 1514b perturb 10sec
qdisc sfq 10: quantum 1514b perturb 10sec
qdisc htb 1: r2q 100 default 60 dcache 0
 deq_util 1/244 deq_rate 161 trials_per_deq 1
 dcache_hits 0 direct_packets 4

My problem is One faculty (Class 1:40) don`t want to borrow and lend
bandwith to other classes.
I use SFQ as queing discipline. In CBQ with TBF we can do ISOLATED and
BOUNDED.. How to do it in HTB .?

Thnx


_______________________________________________
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] Isolated Class in HTB
  2002-06-04  4:06 [LARTC] Isolated Class in HTB arisantois
@ 2002-06-04  4:50 ` Alexey Talikov
  2002-06-04  8:17 ` Martin Devera
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Alexey Talikov @ 2002-06-04  4:50 UTC (permalink / raw)
  To: lartc

class htb 1:40 parent 1:2 leaf 40: prio 0 rate 86Kbit ceil 86Kbit burst
15Kb cburst 2254b

It can't borrow from other because rate 86kbit and ceil 86kbit but it can share its
bandwith with other classes


04.06.2002 9:06:25, <arisantois@unsoed.ac.id> wrote:

>
>Hi All
>
>I have a newbie question here.. I use HTB to manage bandwith in my
>University. We have 5 Faculties that connected directly to my office, So we
>made 6 classes with one class as Default class.
>
>[root@gw-konsorsium root]# tc class show dev eth0
>class htb 1:10 parent 1:2 leaf 10: prio 0 rate 256Kbit ceil 426Kbit burst
>15Kb cburst 2Kb
>class htb 1:2 root prio 0 rate 10Mbit ceil 10Mbit burst 15Kb cburst 14704b
>class htb 1:20 parent 1:2 leaf 20: prio 0 rate 86Kbit ceil 426Kbit burst
>15Kb cburst 2254b
>class htb 1:30 parent 1:2 leaf 30: prio 0 rate 86Kbit ceil 426Kbit burst
>15Kb cburst 2254b
>class htb 1:40 parent 1:2 leaf 40: prio 0 rate 86Kbit ceil 86Kbit burst
>15Kb cburst 2254b
>class htb 1:50 parent 1:2 leaf 50: prio 0 rate 64Kbit ceil 64Kbit burst
>15Kb cburst 1680b
>class htb 1:60 parent 1:2 leaf 60: prio 0 rate 1Kbit ceil 10Mbit burst 15Kb
>cburst 14704b
>
>[root@gw-konsorsium root]# tc qdisc show dev eth0
>qdisc sfq 60: quantum 1514b perturb 10sec
>qdisc sfq 50: quantum 1514b perturb 10sec
>qdisc sfq 40: quantum 1514b perturb 10sec
>qdisc sfq 30: quantum 1514b perturb 10sec
>qdisc sfq 20: quantum 1514b perturb 10sec
>qdisc sfq 10: quantum 1514b perturb 10sec
>qdisc htb 1: r2q 100 default 60 dcache 0
> deq_util 1/244 deq_rate 161 trials_per_deq 1
> dcache_hits 0 direct_packets 4
>
>My problem is One faculty (Class 1:40) don`t want to borrow and lend
>bandwith to other classes.
>I use SFQ as queing discipline. In CBQ with TBF we can do ISOLATED and
>BOUNDED.. How to do it in HTB .?
>
>Thnx
>
>
>_______________________________________________
>LARTC mailing list / LARTC@mailman.ds9a.nl
>http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>

-----------------------------------
mailto:alexey_talikov@texlab.com.uz
BR
Alexey Talikov
FORTEK
-----------------------------------


_______________________________________________
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] Isolated Class in HTB
  2002-06-04  4:06 [LARTC] Isolated Class in HTB arisantois
  2002-06-04  4:50 ` Alexey Talikov
@ 2002-06-04  8:17 ` Martin Devera
  2002-06-04 16:50 ` arisantois
  2002-06-04 18:12 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: Martin Devera @ 2002-06-04  8:17 UTC (permalink / raw)
  To: lartc

Use independent root. I.e. create 1:40 with 1:0 as root not 1:2.
Roots of hierarchy are isolated each against other.
And like someone other wrote, use ceil to bound both 1:2 and 1:40
to appropriate values.
devik

> My problem is One faculty (Class 1:40) don`t want to borrow and lend
> bandwith to other classes.
> I use SFQ as queing discipline. In CBQ with TBF we can do ISOLATED and
> BOUNDED.. How to do it in HTB .?
>
> Thnx
>
>
> _______________________________________________
> LARTC mailing list / LARTC@mailman.ds9a.nl
> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/
>
>


_______________________________________________
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] Isolated Class in HTB
  2002-06-04  4:06 [LARTC] Isolated Class in HTB arisantois
  2002-06-04  4:50 ` Alexey Talikov
  2002-06-04  8:17 ` Martin Devera
@ 2002-06-04 16:50 ` arisantois
  2002-06-04 18:12 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: arisantois @ 2002-06-04 16:50 UTC (permalink / raw)
  To: lartc


I see.. But Can I attach more than one root class in one Device
(Ethernet)..? I am sorry but I don`t find any case or example like this
before..

Thnx In Advanced

> Use independent root. I.e. create 1:40 with 1:0 as root not 1:2.
> Roots of hierarchy are isolated each against other.
> And like someone other wrote, use ceil to bound both 1:2 and 1:40
> to appropriate values.
> devik
>
>> My problem is One faculty (Class 1:40) don`t want to borrow and lend
>> bandwith to other classes.
>> I use SFQ as queing discipline. In CBQ with TBF we can do ISOLATED and
>> BOUNDED.. How to do it in HTB .?
>>
>> Thnx
>>
>>
>> _______________________________________________
>> LARTC mailing list / LARTC@mailman.ds9a.nl
>> http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/



_______________________________________________
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] Isolated Class in HTB
  2002-06-04  4:06 [LARTC] Isolated Class in HTB arisantois
                   ` (2 preceding siblings ...)
  2002-06-04 16:50 ` arisantois
@ 2002-06-04 18:12 ` Stef Coene
  3 siblings, 0 replies; 5+ messages in thread
From: Stef Coene @ 2002-06-04 18:12 UTC (permalink / raw)
  To: lartc

On Tuesday 04 June 2002 18:50, arisantois@unsoed.ac.id wrote:
> I see.. But Can I attach more than one root class in one Device
> (Ethernet)..? I am sorry but I don`t find any case or example like this
> before..
You can only attach one qdisc to a device.  If you want to have a class that 
will not borrow, nor lend from/to other classes, you can do this (copied from 
your setup) :

root qdisc
class 1:1 rate = ceil = 426 Kbit
   class 1:40  rate = ceil = 86 Kbit
   class 1:2  rate = ceil = 340 Kbit (426 - 86)
     class 1:20 rate = 86, ceil = 340 Kbit
     class 1:30 rate = 86, ceil = 340 Kbit
     class 1:50 rate = 64, ceil = 64 Kbit
     class 1:60 rate = 1, ceil = 10Mbit (Why ???)

class 1:40 will never lend nor borrow bandwidth from the other classes.

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:[~2002-06-04 18:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-06-04  4:06 [LARTC] Isolated Class in HTB arisantois
2002-06-04  4:50 ` Alexey Talikov
2002-06-04  8:17 ` Martin Devera
2002-06-04 16:50 ` arisantois
2002-06-04 18:12 ` 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.