All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] Traffic Shaping for DVB gateway
@ 2005-03-13 16:12 saki
  2005-03-22 21:50 ` Andy Furniss
  0 siblings, 1 reply; 2+ messages in thread
From: saki @ 2005-03-13 16:12 UTC (permalink / raw)
  To: lartc

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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [LARTC] Traffic Shaping for DVB gateway
  2005-03-13 16:12 [LARTC] Traffic Shaping for DVB gateway saki
@ 2005-03-22 21:50 ` Andy Furniss
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Furniss @ 2005-03-22 21:50 UTC (permalink / raw)
  To: lartc

saki wrote:
> 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?

Let the users have higher ceil and seperate interactive traffic from 
bulk eg dns and small tcp packets and give those priority.

Andy.
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-03-22 21:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-13 16:12 [LARTC] Traffic Shaping for DVB gateway saki
2005-03-22 21:50 ` Andy Furniss

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.