Re: how to borrow bandwith

Linux Advanced Routing and Traffic Control

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

 



On Tuesday 25 May 2004 03:43, swcims wrote:
> Hi,All
> 	I am using iproute2 to manage bandwith for ADSL router.High,medium,low
> priority are needed for different protocol port on the ADSL's upstream
> side,as following: LAN --- |ADSL Router|------WAN
>    When there aren't traffic on the specific priority, its bandwidth should
> be borrowed by other priorities.But it doesn't work.Here is my script:
>
> 	/usr/sbin/tc qdisc del dev nas0 root
> 	/usr/sbin/tc qdisc del dev br0 root
> 	/usr/sbin/tc qdisc add dev nas0 root handle 1:0 cbq bandwidth 1024kbit
> avpkt 1000 cell 8 /usr/sbin/tc class add dev nas0 parent 1:0 classid 1:1
> cbq bandwidth 1024kbit rate 1024kbit weight 1024kbit prio 0 allot 1514 cell
> 8 maxburst 20 avpkt 1000 isolated bounded /usr/sbin/tc class add dev nas0
> parent 1:1 classid 1:2 cbq bandwidth 1024kbit rate 611kbit weight 611kbit
> prio 1 allot 1514 cell 8 maxburst 20 avpkt 1000 /usr/sbin/tc class add dev
> nas0 parent 1:1 classid 1:3 cbq bandwidth 1024kbit rate 305kbit weight
> 305kbit prio 3 allot 1514 cell 8 maxburst 20 avpkt 1000 /usr/sbin/tc class
> add dev nas0 parent 1:1 classid 1:4 cbq bandwidth 1024kbit rate 103kbit
> weight 103kbit prio 5 allot 1514 cell 8 maxburst 20 avpkt 1000 /usr/sbin/tc
> class add dev nas0 parent 1:1 classid 1:5 cbq bandwidth 1024kbit rate 5kbit
> weight 5kbit prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000
>
> 	class 1:1 is root class;class 1:2 is for high priority;class 1:3 is for 
> medium priority,class 1:4 is for low priority,class 1:5 is for other
> traffic.When I use "bounded" in subclass 1:2,1:3,1:4,1:5,each rate can be
> assured in each class,but can't borrow.When I use "isolated" in every
> subclass,the result isn't expected. How should I do for "when no traffic on
> the specific priority,its bandwidth can be borrowed by other traffic"?
> Thank you very much!
I really recommend reading my docs on www.docum.org.

Stef

-- 
stef.coene@xxxxxxxxx
Â"Using Linux as bandwidth manager"
  Âhttp://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
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