I m setting a linux gateway cum router for bandwith management of my internal network to share a link of 128kbps. I use CBQ and SFQ for this perpose. I want 2 control bandwidth peruser basis (IP basis). According 2 my script i m able 2 control the bandwidth. But i whenever i open a new window for surfing or downloading it comes up with a burst. which is equal 2 allocated bandwidth. and when ever i close the download then second window will not aquire total bandwidth allocated immediatily.. It takes time. what is the wrong thing in my script. Some one guide me. the script is as under..... ################My Configuratin Script ###################### ##BandCont.sh #!/bin/sh #############Path of Tc Command########### tc=/sbin/tc ##########Setting few Arguments######### t1=100Mbit # Link BandWidth & Land Bandwidth w=10Mbit # weighting of your Link & Lan (Adjustment) NIC_EXT=eth0 # interface (External) NIC_INT=eth1 # interface (Internal) ############Creating Pool Bandwidth########## p1=128Kbit #Pool Size ###########User Bandwidth Under Pool######## t2=128Kbit # 32Kbps Pool w2=12.8Kbit # weighting of 32Kbps Pool ######Creating Main Disc for Bandwidth Management########## ### first things first. delete the old rules if any.############## $tc qdisc del root dev $NIC_EXT $tc qdisc del root dev $NIC_INT #######Creating New Rule & Main Bandwidth Disc######## $tc qdisc add dev $NIC_EXT root handle 1:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 $tc qdisc add dev $NIC_INT root handle 2:0 cbq bandwidth 100Mbit avpkt 1000 cell 8 ############Creating Main Disc Base################ $tc class add dev $NIC_EXT parent 1:0 classid 1:1 cbq bandwidth 100Mbit rate $t1 weight $w prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded $tc class add dev $NIC_INT parent 2:0 classid 2:1 cbq bandwidth 100Mbit rate $t1 weight $w prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded ####################Creating Sub Classes For BandWidth Restrictions############## $tc class add dev $NIC_EXT parent 1:1 classid 1:2 cbq bandwidth $p1 rate $t2 weight $w2 prio 8 allot 1514 cell 8 maxburst 20 avpkt 1000 bounded $tc qdisc add dev $NIC_EXT parent 1:2 handle 20: sfq $tc class add dev $NIC_INT parent 2:1 classid 2:2 cbq bandwidth $p1 rate $t2 weight $w2 prio 8 allot 1514 cell 8 maxburst 200 avpkt 100000 bounded $tc qdisc add dev $NIC_INT parent 2:2 handle 20: sfq ####################Creating Sub Sub Classes For BandWidth Restrictions############## $tc filter add dev $NIC_INT protocol ip parent 2:0 prio 8 u32 match ip src 192.168.0.4 flowid 2:2 $tc filter add dev $NIC_INT protocol ip parent 2:0 prio 8 u32 match ip dst 192.168.0.4 flowid 2:2 $tc filter add dev $NIC_EXT protocol ip parent 2:0 prio 8 u32 match ip src 192.168.0.4 flowid 1:2 $tc filter add dev $NIC_EXT protocol ip parent 2:0 prio 8 u32 match ip dst 192.168.0.4 flowid 1:2 I m thankful for the hints ..... Thanx in Advance -------------------------------------------------------------------------------- /\ _ _ | Proud to be an Indian /__\ | | India Is Great / \ [ __| | -------------------------------------------------------------------------------- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/