All of lore.kernel.org
 help / color / mirror / Atom feed
From: shadur@systemec.nl (Rens Houben)
To: lartc@vger.kernel.org
Subject: [LARTC] TCNG issue - parent class restrictions are not honored
Date: Tue, 27 Jun 2006 07:45:49 +0000	[thread overview]
Message-ID: <20060627074549.GA5959@systemec.nl> (raw)

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

             reply	other threads:[~2006-06-27  7:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-06-27  7:45 Rens Houben [this message]
2006-06-28  2:08 ` [LARTC] TCNG issue - parent class restrictions are not honored Martin A. Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060627074549.GA5959@systemec.nl \
    --to=shadur@systemec.nl \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.