tc does'nt limit the bandwidth!

Linux Advanced Routing and Traffic Control

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

 



Good people,
I want to thank you all for your awesome help so far
and also want to make my problem clear to you all so
that I can get more definite help.

I have 256kpbs internet link to share among 4
customers- A=176 burstable to 256; B=16; C=32; D=32.

But the problem is that my script FAILED TO LIMIT
customers B, C,and D.

My complete tc scripts is as follows;

tc qdisc add dev eth1 root handle 1: htb default 1
                        #Classes
tc class add dev eth1 parent 1:    classid 1:1    htb
rate     9bps ceil    9bps  #Default
tc class add dev eth1 parent 1:    classid 1:100  htb
rate     9bps ceil    9bps  #ICMP
tc class add dev eth1 parent 1:    classid 1:5    htb
rate  176kbps ceil 256kbps  #Customer A
tc class add dev eth1 parent 1:    classid 1:101  htb
rate   16kbps ceil  16kbps  #Customer B
tc class add dev eth1 parent 1:    classid 1:111  htb
rate   32kbps ceil  32kbps  #Customer C
tc class add dev eth1 parent 1:    classid 1:121  htb
rate   32kbps ceil  32kbps  #Customer D
                        #Leafs
                          #  A   #
tc class add dev eth1 parent 1:5   classid 1:90  htb
rate 176kbps ceil 256kbps 
                  #Queues                   
tc qdisc add dev eth1 parent 1:11  handle 211: sfq
perturb 10                   #Customer A
tc qdisc add dev eth1 parent 1:101  handle 281: sfq
perturb 10                   # Customer B 
tc qdisc add dev eth1 parent 1:111  handle 282: sfq
perturb 10                   # Customer C 
tc qdisc add dev eth1 parent 1:121  handle 283: sfq
perturb 10                   # Customer D
                        #Ip Assignment#
U32="tc filter add dev eth1 protocol ip parent 1:0
prio 4 u32"
u32="tc filter add dev eth1 protocol ip parent 1:0
prio 0 u32"
                          # A #
$U32 match ip dst 200.200.200.11   flowid 1:11        
                            
$U32 match ip src 200.200.200.11   flowid 1:11
                        #Customer B#
$U32 match ip dst 172.16.0.11  flowid 1:101           
                        
$U32 match ip src 172.16.0.11  flowid 1:101
				#Customer C#
$U32 match ip dst 172.16.0.12  flowid 1:111           
                        
$U32 match ip src 172.16.0.12  flowid 1:111
				#Customer D#
$U32 match ip dst 172.16.0.13  flowid 1:121           
                        
$U32 match ip src 172.16.0.13  flowid 1:121
#virus ping 
$U32 match ip protocol 1 0xff  flowid 1:100 

What exactly am I doing wrong please?

Can anyone re-write it for me or give me a better one
please.

Kind regards.

Cheers!
digihall7                                   



	
		
__________________________________
Do you Yahoo!?
Yahoo! Tax Center - File online by April 15th
http://taxes.yahoo.com/filing.html
_______________________________________________
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