Re: An example of prio qdisc please...

Linux Advanced Routing and Traffic Control

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

 



On Wednesday 25 September 2002 16:13, Tobias Geiger wrote:
> correct me if im wrong, but couldn't u achieve the same goal only with htb?
>
> i mean by creating a leave-level with classes rate=1bps, ceil=maxbw, prio
> 0-6
>
> and attaching sfq/pfifo as leave-qdiscs to these classes?
Yes and it's even better.  With cbq you can give the all classes a minimum 
bandwidth so one class can not kill an other by using all bandwidth.  With 
prio, you can generate a lot of traffic in the highest band so the other 
bands have no bandwidth left.

> s.th. like:
> tc qdisc root handle 1:0 htb
> tc class parent 1:0 handle 1:1 rate <maxuploadbw>
> tc class parent 1:1 handle 1:10 rate 1bps ceil <maxuploadbw> prio 0
> tc class parent 1:1 handle 1:11 rate .... ... ..             prio 1
> and so on
> tc qdisc parent 1:10 handle 10:0 pfifo/sfq
> tc qdisc parent 1:11 handle 11:0 ....
> and so on
> tc filter 1:0 protocol ip prio 0 handle 9999 fw classid 1:10
> (syntax is not correct :)
> and/or other filters
>
> doesn't do this setup the same as the priomap (in general)?
It's not the same, but you can get the same result.
Remember, prio is only for excess bandidth.  So each class will get's at least 
his rate and the class with the lowest prio will get the remaining bandwidth.

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/


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