Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Apr 2007 09:19:35 -0700
From:      "Jon Simola" <jsimola@gmail.com>
To:        freebsd-pf@freebsd.org
Subject:   Re: bandwidth limiting per ip with PF and ALTQ
Message-ID:  <8eea04080704240919h5d478193n8bd4ae8f68516623@mail.gmail.com>
In-Reply-To: <462E26B0.9060509@vwsoft.com>
References:  <002101c785ec$0dd557d0$5501a8c0@ivorde> <462E26B0.9060509@vwsoft.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 4/24/07, Volker <volker@vwsoft.com> wrote:

> Having a queue
> with a guaranteed bandwidth for every connection (client) would
> require the creation of "dynamic queues" on the fly. I'm not aware of
> such possibility.

ipfw with dummynet could do this. Very interesting feature. See DUMMYNET
(specifically the mask option) in ipfw(8):

"whereas when dynamic queues are used, each flow will share the
parent's pipe bandwidth evenly with other flows generated by the
same queue"

The only way I can think of doing something similar in PF would be randomly
assigning to one of N queues, like:

pass out on $ext_if queue q1 probability 33%
pass out on $ext_if queue q2 probability 50%
pass out on $ext_if queue q3

-- 
Jon



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?8eea04080704240919h5d478193n8bd4ae8f68516623>