htb child classes don't borrow form "parent's parent class" :(

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> You should build a tree with only one HTB QDisc and only one root class.
> Something similar to this:
> 
> 1: HTB QDisc
>  |
>  \--- 1:1 HTB Root Class (10MBit) [The total link capacity]
>       |
>       \--- 1:10 HTB Child Class (7MBit/10MBit) [High priority stuff]
>       |    |
>       |    \--- 1:a1 HTB Child Class (3MBit/10MBit)
>       |    \--- 1:b1 HTB Child Class (2MBit/10MBit)
>       |    \--- 1:c1 HTB Child Class (2MBit/10MBit)
>       |
>       \--- 1:40 HTB Child Class (3MBit/10MBit) [Low priority stuff]
>            |
>            \--- 1:a2 HTB Child Class (1MBit/10MBit)
>            \--- 1:b2 HTB Child Class (1MBit/10MBit)
>            \--- 1:c2 HTB Child Class (1MBit/10MBit)
> 
> Make sure your child class rates add up to the parent class rate (7MBit = 
> 3+2+2MBit, 3MBit = 1+1+1MBit). Use smaller units than MBit if you want to 
> divide more accurately.
> 
> That's about it. Use only one HTB Qdisc, and only one HTB Root Class, and 
> divide rates properly, then things should start working the way you expect 
> them to.

First, thank you very much for your effort!
Now everything becomes a lot  more clear (especially about of the qdisc roles,
and the complete nonsense I tried)!

Just that I don't make any more mistakes, would this tree work
as I expect it (with the groups and users and priority stuff)?

1: HTB QDisc
 |
 \--- 1:1 HTB Root Class (10MBit) [The total link capacity]
      |
      \--- 1:f1 HTB Child Class (3MBit/10MBit) [group one]
      |    |
      |    \--- 1:a1 HTB Child Class (1MBit/10MBit) prio 1
      |    |    |
      |    |    \---1:e1 HTB child Class (120kbit/1Mbit) [user 1]
      |    |    \---1:e2 HTB child Class (120kbit/2Mbit) [user 2]
      |    |    \---1:e3 HTB child Class (120kbit/512kbit) [user 3]
      |    |    
      |    \--- 1:b1 HTB Child Class (1MBit/10MBit) prio 2
      |    |    |
      |    |    \---1:e4 HTB child Class (120kbit/1Mbit) [user 1]
      |    |    \---1:e5 HTB child Class (120kbit/2Mbit) [user 2]
      |    |    \---1:e6 HTB child Class (120kbit/512kbit) [user 3]
      |    | 
      |    \--- 1:c1 HTB Child Class (1MBit/10MBit) prio 3
      |
      \--- 1:f2 HTB Child Class (3MBit/10MBit) [group two]
      |    |
      |    \--- 1:a2 HTB Child Class (1MBit/10MBit) prio 1
      |    \--- 1:b2 HTB Child Class (1MBit/10MBit) prio 2
      |    \--- 1:c2 HTB Child Class (1MBit/10MBit) prio 3
      |
      \--- 1:f3 HTB Child Class (3Mbit/10Mbit) [group three]
	.
	.
	.

Regards,
 Bernd


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

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux