[ previous ] [ next ] [ threads ]
 From:  Manuel Kasper <mk at neon1 dot net>
 To:  Martin Arendtsen <mga at arendtsen dot dk>
 Cc:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Re: [m0n0wall] Traffic shapeing
 Date:  Sun, 18 Jan 2004 13:06:04 +0100
On 18.01.2004, at 02:29, Martin Arendtsen wrote:

> When a pipe is made... and a rule applyed...
> that is only 128 kb/sec for upload for each source... will m0n0wall 
> only
> allow 128 kb/sec for a machine wich is the only one using the bandwidth
> or can it say... hmm... no one else... heck you can have all bandwith
> until a other user comes and want some bandwitdh?

If you have mask = source set on your 128 kbps pipe, then each machine 
will get 128 kbps (as long as the link is not saturated, of course ;). 
If mask = none, then all machines will have to share 128 kbps among 
them. In either case, no single machine can get more than 128 kbps, 
even if there's much more bandwidth available.

If you want to let machines "borrow" bandwidth if nobody else uses it, 
create a pipe with mask = none and a bandwidth value slightly below 
your effective upstream speed. Then create a queue which references 
that pipe, mask = source, weight = 1 (or any other value, doesn't 
matter). Finally, add a rule that puts all outgoing traffic (out on 
WAN) into that queue. That should create a dynamic queue for each 
machine with the same weight and linked to the same pipe, which means 
that all machines will share the available bandwidth equally, while a 
single machine can still use all the bandwidth if no other machines use 

Good luck!