I want to bring down the HTB rate to 3kbit-r2q? quantum?

Linux Advanced Routing and Traffic Control

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

 



Hello Stef,

     I am working on a Bandwidth management project as part of my college curriculum.I am running TCNG 10-b but I am not able to classify packets based on MAC address using tcng, so I am running tc commands in /tcng/bin and they are working.  But is there a way out to classify packets based on MAC address using TCNG.

     And, I am successful in throttling down the Bandwidth to 8kbit using HTB. Below that I get report to change r2q. I want to bring down the Leaf class Bandwidth to 3kbit.My script is as below:

 

Tc Script to throttle down the Bandwidth to 8kbit based on MAC address and IP address

tc qdisc del dev eth0 root

 

tc qdisc add dev eth0 root handle 1:0 htb default 30 r2q 1

 

tc class add dev eth0 parent 1:0 classid 1:1 htb rate 24kbit ceil 24kbit quantum 1514

 

tc class add dev eth0 parent 1:1 classid 1:10 htb rate 8kbit ceil 8kbit

tc qdisc add dev eth0 parent 1:10 handle 10:0 sfq

 

tc class add dev eth0 parent 1:1 classid 1:20 htb rate 8kbit ceil 8kbit

tc qdisc add dev eth0 parent 1:20 handle 20:0 sfq

 

tc class add dev eth0 parent 1:1 classid 1:30 htb rate 8kbit ceil 8kbit

tc qdisc add dev eth0 parent 1:30 handle 30:0 sfq

 

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 match ip dst 192.168.10.163 flowid 1:10

 

tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32

match u32 0x11e6bd53 0xffffffff at -12

match u16 0x0011 0xffff at -14 flowid 1:20

 

If I am to Throttle down the Leaf class Bandwidth to 3kbit what should be the value of root qdisc r2q?? and what should be the value of root class quantum??

Regards

Kartheek

Yahoo! India Matrimony: Find your life partner online.

_______________________________________________
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