Traffic Shaping for DVB gateway

Linux Advanced Routing and Traffic Control

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

 



Hello all,
I am providing broadband service through DVB circuit.
I have 4KB uplink and 32KB downlink. I want to share
32KB downlink bandwidth among 192.168.0.0/24 (20 users
in this subnet i.e 192.168.0.2-192.168.0.22)subnet
where each user will get 2KB to 6KB bandwidth. And
from 4KB uplink bandwidth each users will get only 1KB
to 2KB bandwidth.
                                                      
                                                      
        
Here is my configuration
                                                      
                                                      
        
                |-------|==ethi 192.160.0.1 connected
to client
                |       |
                |gateway|==eth0 201.91.89.81 uplink
through DSL
                | server|
                |-------|==penval0 Downlink through
DVB
                                                      
                                                      
        
 To get my desired result I configured  htb in this
way:
----------------------------------
/sbin/tc qdisc del dev eth0 root
/sbin/tc qdisc add dev eth0 root handle 1 htb default
30 r2q 100
                                                      
                                                      
        
/sbin/tc qdisc del dev eth1 root
/sbin/tc qdisc add dev eth1 root handle 1 htb default
30
                                                      
                                                      
        
/sbin/tc class add dev eth0 parent 1: classid 1:2 htb
rate 32kbit burst 15k
                                                      
                                                      
        
/sbin/tc class add dev eth0 parent 1:2 classid 1:3 htb
rate 8kbit ceil 16kbit burst 15k
/sbin/tc qdisc add dev eth0 parent 1:3 handle 3 sfq
perturb 10
/sbin/tc filter add dev eth0 parent 1:0 protocol ip
prio 100 u32 match ip dst 192.168.0.0/24 classid 1:3
                                                      
                                                      
        
/sbin/tc class add dev eth0 parent 1:2 classid 1:30
htb rate 1kbit ceil 32kbit burst 15k
/sbin/tc qdisc add dev eth0 parent 1:30 handle 30 sfq
perturb 10
                                                      
                                                      
        
/sbin/tc class add dev eth1 parent 1: classid 1:2 htb
rate 256kbit burst 15k
                                                      
                                                      
        
/sbin/tc class add dev eth1 parent 1:2 classid 1:3 htb
rate 16kbit ceil 48kbit burst 15k
/sbin/tc qdisc add dev eth1 parent 1:3 handle 3 sfq
perturb 10
-------------------------------------------------------

But these rules resulted very bad. My total service
became slowdown.
  Anyone could advice me how should i configure htb to
get my desired result?
                                                      
                                                      
        

                                                      
                                                      
        
 


		
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 
_______________________________________________
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