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]

 



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?

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)?

Greetings

Tobias

> On Wednesday 25 September 2002 11:39, Rohan Almeida wrote:
>> "Soulfly" <zob_soulfly@hotmail.com> thus wrote:
>> > tc qdisc add dev eth0 root handle 1: prio bands 5 priomap 2 3 2 2 3
>> 3 3 3 1 1 1 1 2 2 2 2
>> > tc qdisc add dev eth0 parent 1:1 handle 10: sfq perturb 10
>> > tc qdisc add dev eth0 parent 1:2 handle 20: sfq perturb 10
>> > tc qdisc add dev eth0 parent 1:3 handle 30: sfq perturb 10
>> > tc qdisc add dev eth0 parent 1:4 handle 40: sfq perturb 10
>> > tc filter add dev eth0 protocol ip parent 1: prio 10 u32 match ip
>> protocol 0xXX 0xff flowid 1:1
>>
>> Hi there
>> This is ver infornmative
>> I've long wanted priority of some protocol over the other.
>> Now my question is:
>> 	Can i use this with htb?
>>
>> I want:
>> 	o ip 172.16.0.5 bandwidth restriction of 32 kbps (htb ceil)
>> 	o ip 172.16.0.49 bandwidth restriction of 64 kbps (htb ceil)
>> 	o protocol 23 priority over protocol 80
>>
>> U see, I don't want to limit "protocol 80" to some bandwidth
>> restriction so that "protocol 23" gets the rest available bandwidth I
>> just want "proto 23" packets priority over "proto 80"
>>
>> In the above example u used the "prio" qdisc
>> Can i use this with my htb as the roo qdisc and prio
>> lower down in the class?
> Yes, you can add the prio qdisc on a htb class.
>
> 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/



_______________________________________________
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