Date: Mon, 29 Aug 2005 18:34:14 +0200 From: Jeremie Le Hen <jeremie@le-hen.org> To: vladone <vladone@spaingsm.com> Cc: freebsd-ipfw@freebsd.org, freebsd-questions@freebsd.org Subject: Re: challenge with dummynet+ipfw Message-ID: <20050829163414.GO659@obiwan.tataz.chchile.org> In-Reply-To: <1752667837.20050829001929@spaingsm.com> References: <1752667837.20050829001929@spaingsm.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi,
[ please try to avoid cross-posting on FreeBSD lists ]
> I want to organize my bandwith in this mode
> # download section
> 1000kbit/s
> |
> |
> |--------------------|
> | |
> | |
> hight low
> priorized traffic priorized
> | |
> 512kbit/s |
> | |
> user |---------------|
> share same | |
> bandwith | |
> 300 kbit/s 512kbit/s
> | |
> | |
> | |
> users share users share
> same bandwith same bandwith
>
> I want to use ipfw+dummynet. Solutions is to pass traffic that match
> an rule to multiple pipe or queue with different weights. But how?
> What is the precedence? (need sysctl net.inet.ip.fw.one_pass=0)
> If any have an solutions please be explicity. I dont want to be easy,
> but is significant in this case, in wich order apply rule, and how is
> configured pipe and queue. For this reason, solutions please put in this form (example):
>
> #section pipe and queue configuration
> ipfw pipe 1 config .....
> ipfw queue 8 config weight 3 pipe 6 ....
> ..................
>
> #section ipfw rules
> ipfw add pipe 1 {match hight pri.}
> ipfw add pipe 5 {match low pri. 300k same bandwith}
> ipfw add queue 3 {match for hight pri. 512k same share}
> ...............................
>
> I work for a time with dummynet. In this
> example have an important to build some hierarchy with dummy.
>
> P.S. this scheme is not changeable. Please refer to this situation.
Note that queue's weight do not implement priorities. The rule is
quite simple : sum up all weight of all queues connected to one pipe
and then each queue will be assigned the following bandwidth :
queuebw = totalbw * queueweight / totalweight
ALTQ does prioritize the traffic. This means that packets with high
priority are placed before lower prioritized packets in the device
output FIFO.
Regards,
--
Jeremie Le Hen
< jeremie at le-hen dot org >< ttz at chchile dot org >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050829163414.GO659>
