Skip to contentSkip to conversation

tc not restricting the total bandwidth

LARTC Vinu Chandran 1 participant 1 message Mar 1, 2004

lore
Share & tools
lore
#0 lore raw

Hi all

I've got a cable modem connection with 256 Kbit/sec bandwidth. Modem is connected to the eth0 of my linux server where am running htb. eth1 is connected to switch where all my LAN systems are connected. My requirement is, I need to restrict the total downstream bandwidth to 128 Kbit/sec. Along with that I'm shaping each LAN systems to a 48 Kbit/sec. I'm generating mrtg graphs at the server for checking the total throughput. The root class htb file I've mentioned

[root@bms htb]# cat eth1-2.root
# root class containing total bandwidth RATE8Kbit

and in the class for incoming traffic i've mentioned

	[root@bms htb]# cat eth1-2:3.www
		# class for incoming traffic
		RATE8Kbit
		CEIL8Kbit
		PRIO=0
		LEAF=sfq
		RULE=*

And for child classes (individual LAN systems), example file

	[root@bms htb]# cat eth1-2:3:10.act10
		RATEHKbit
		CEILdKbit
		LEAF=sfq
		RULE2.168.1.10

HTB is able to shape the individual LAN systems to 48 Kbit/sec. But the total bandwidth its not able to restrict to 128 Kbit/sec. It's reaching to 230 Kbit/sec which is almost close to the total bandwidth what my ISP has assigned to my cable modem. (From mrtg graph).

What could be the reason ? Am I missing any configuration lines or any other method is there which i need to follow ? Please advise.

regards

Vinu
_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/