TCNG issue - parent class restrictions are not honored

Linux Advanced Routing and Traffic Control

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

 



Hi,
	I've been migrating an existing htb-based traffic shaper from a
hideous (I'm allowed to call it that - I wrote the damn atrocity myself)
tc shell script into a TCNG configuration file, and after a few false
starts I think I managed to get the syntax right.

However, during tests it looks like some of the tiers aren't passing
their restrictions on to lower levels.

For example, part of the configuration looks like this:

htb() {
	$root=class ( rate 1024Mbps, ceil 1024Mbps ) { // Gigabit ethernet interface
		$enterprise = class ( rate 45Mbps, ceil 45Mbps ) {
			// list of enterprise-level clients
		}
		$business = class ( rate 20Mbps, ceil 20Mbps ) {
			// list of business-class clients, including
			$client1 = class ( rate 2Mbps, ceil 2Mbps ) { sfq; }
			$client2 = class ( rate 2Mbps, ceil 2Mbps ) { sfq; }
		}
		// And so on.
	}
}

When this setup was tested, both client 1 and client 2 received 2 Mbps
of bandwidth, so the attached filters worked properly. But when the rate
and ceil of $business was lowered to 2Mbps, both client 1 and client 2
*still* received 2 Mbps, even when they were simultaneously downloading.

The interim file generated by tcc *looks* okay, although it's a little
harder to read. 

Can anyone point out to me what I did wrong, or where I made an
erroneous assumption?


-- 
Rens Houben                           |    opinions are mine
Resident linux guru and sysadmin      | if my employers have one
Systemec Internet Services.           |they'll tell you themselves
PGP key at http://marduk.systemec.nl/~shadur/shadur.key.asc
_______________________________________________
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