throttling bandwidth by percentage

Tom Hukins tom at
Tue Dec 3 22:17:40 GMT 2002

On Tue, Dec 03, 2002 at 09:21:21AM -0000, Robin Garbutt wrote:
> Is there a way of throttling bandwidth by percentage on a freebsd unit
> acting as a bridge from an internal network to an adsl router?

Others have already answered this question, but you might find some
additional details useful.

dummynet(4) can provide WF2Q+ queues, which allocate weighted
priorities for fixed capacity links.  See the TRAFFIC SHAPER section
of ipfw(8) which describes how queues define packets' priority and
pipes define links' capacity.

You mention that you are dealing with an ADSL connection.  This means
you're sharing bandwidth, and so can't predict your pipe's capacity:
it depends on how much bandwidth other customers are using.

ALTQ would be more appropriate in this situation, as it allows you to
deal with variable pipe sizes, amongst other things.  A group of
developers intended to incorporate ALTQ into -CURRENT before
5.0-RELEASE, but this project has been delayed, so it looks likely
that -CURRENT will contain ALTQ at some point, but not for 5.0.


More information about the Ukfreebsd mailing list