[LARTC] CBQ

Linux Advanced Routing and Traffic Control

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

 



Hi
Here is our problem : 
                        ______________ 
                  eth1 |              | eth0
       INTERNET--------| LINUX router |---------- LAN  
                       |______________| 

we want to allow our LAN users to use only 128Kbit (16KB/s) of our total bandwidth.    
I'm using these rules to do that :

tc qdisc add dev eth0 root handle 10: cbq bandwidth 10Mbit avpkt 1000
tc class add dev eth0 parent 10:0 classid 10:200 cbq bandwidth 10Mbit rate 128Kbit allot 1514 weight 12Kbit prio 5 maxburst 20 avpkt 1000 bounded
tc qdisc add dev eth0 parent 10:200 sfq quantum 1514b perturb 15
tc filter add dev eth0 parent 10:0 rotocol ip prio 3 u32 match ip dst 192.168.1.0/24 flowid 10:200
but when I'm teting these rules by downloading some files to our LAN, The traffic always begins with a high traffic ~100KB/s for several seconds then the traffic dropped to the desired level 16KB/s
I also notice when I'm doing several ftp's the traffic exceeded the desired level by a liitle KB/s
How can resolve this ? 








 



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