Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 13 Dec 2014 19:15:52 +1100
From:      Luigi Rizzo <rizzo@iet.unipi.it>
To:        Brett Glass <brett@lariat.net>
Cc:        John Nielsen <lists@jnielsen.net>, "freebsd-net@freebsd.org" <net@freebsd.org>
Subject:   Can DUMMYNET handle weighting of traffic according to firewall rules?
Message-ID:  <CA%2BhQ2%2BgNZmMbo0-2fgS49mCNV7nTFDkBpHAzUDg8JoiUfsY5tg@mail.gmail.com>
In-Reply-To: <201412130208.TAA10313@mail.lariat.net>
References:  <201412120711.AAA00622@mail.lariat.net> <CA%2BhQ2%2Bg40aZO%2B6JJsvDU8GG_UGp=rO1tQQoaETRe%2BBc-iyBNKA@mail.gmail.com> <201412121523.IAA03923@mail.lariat.net> <E1DD5C68-B4ED-4D10-B1D5-E0EED17D8C8B@jnielsen.net> <201412130208.TAA10313@mail.lariat.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Saturday, December 13, 2014, Brett Glass <brett@lariat.net
<javascript:_e(%7B%7D,'cvml','brett@lariat.net');>> wrote:

> At 10:35 AM 12/12/2014, John Nielsen wrote:
>
>  Is there a reason you can't use a separate pipe for each direction?
>>
>
> We want to limit the total amount of bandwidth consumed, based on the
> formula 2U + D <= L. If we used two pipes, there would be no way to keep
> track of the sum.
>
> What I need (and am not sure if DUMMYNET can currently supply) is a pipe
> that allows you to feed it a packet and say, "Count this X times toward the
> bandwidth limit."


>
No, as it is now dummynet cannot do what you ask. It would be a one-line
change in the kernel, plus the part to handle passing the extra parameter
(we could call it "cost") to the queue's configuration.

As usual, the UI is 10+ times bigger than the code doing the actual work
(though one could rightly  blame the existing UI for not being designed for
extensibility).

Cheers
Luigi


-- 
-----------------------------------------+-------------------------------
 Prof. Luigi RIZZO, rizzo@iet.unipi.it  . Dip. di Ing. dell'Informazione
 http://www.iet.unipi.it/~luigi/        . Universita` di Pisa
 TEL      +39-050-2211611               . via Diotisalvi 2
 Mobile   +39-338-6809875               . 56122 PISA (Italy)
-----------------------------------------+-------------------------------



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2BhQ2%2BgNZmMbo0-2fgS49mCNV7nTFDkBpHAzUDg8JoiUfsY5tg>