All of lore.kernel.org
 help / color / mirror / Atom feed
* [LARTC] TCNG issue - parent class restrictions are not honored
@ 2006-06-27  7:45 Rens Houben
  2006-06-28  2:08 ` Martin A. Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Rens Houben @ 2006-06-27  7:45 UTC (permalink / raw)
  To: lartc

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@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-06-28  2:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-27  7:45 [LARTC] TCNG issue - parent class restrictions are not honored Rens Houben
2006-06-28  2:08 ` Martin A. Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.