Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 22 Jan 2001 15:46:44 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        yusufg@outblaze.com (Yusuf Goolamabbas)
Cc:        freebsd-ipfw@FreeBSD.ORG
Subject:   Re: Sharing a single link evenly
Message-ID:  <200101222347.f0MNlPC47720@iguana.aciri.org>
In-Reply-To: <20010122231143.A3564@outblaze.com> from Yusuf Goolamabbas at "Jan 22, 2001 11:11:43 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi, Whilst reading Luigi's page on dummynet
> 
> http://www.iet.unipi.it/~luigi/ip_dummynet/
> 
> I came across the following paragraph
> 
> If you want all machines to share evenly a single link, you should use instead:
> ipfw add queue 1 ip from any to 10.1.2.0/24
> ipfw queue 1 config weight 5 pipe 2 mask dst-ip 0x000000ff
> ipfw pipe 2 config bw 300Kbit/s
> 
> According to the ipfw man page, the value of weight ranges from 1..100. 
> I am trying to get some understanding as to why the value '5' implies
> evenness. My first thought that the weight should be 50 but maybe I am
> misunderstanding some concept or in this case could the value be
> anything since we want each flow to have the same weight ?

exactly - can be anything as we just want equal weight (or some preset
ratio of weight). I used 5 instead of 50 (or 1, or 100 for what
matters) on purpose, to avoid that people would think that the
number had something to do with 50%

	cheers
	luigi

----------------------------------+-----------------------------------------
 Luigi RIZZO, luigi@iet.unipi.it  . ACIRI/ICSI (on leave from Univ. di Pisa)
 http://www.iet.unipi.it/~luigi/  . 1947 Center St, Berkeley CA 94704
 Phone: (510) 666 2927
----------------------------------+-----------------------------------------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ipfw" in the body of the message




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