Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Oct 2001 01:27:15 -0700
From:      "Ted Mittelstaedt" <tedm@toybox.placo.com>
To:        "Patrick O'Reilly" <patrick@mip.co.za>, "FreeBSD Question List" <freebsd-questions@FreeBSD.ORG>, "Steven" <steven@trance.org>
Subject:   RE: Fair bandwidth division
Message-ID:  <000f01c14d77$8a4e0360$1401a8c0@tedm.placo.com>
In-Reply-To: <NDBBIMKICMDGDMNOOCAIGEOEDJAA.patrick@mip.co.za>

next in thread | previous in thread | raw e-mail | index | archive | help
>-----Original Message-----
>From: owner-freebsd-questions@FreeBSD.ORG
>[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Patrick
>O'Reilly
>Sent: Thursday, October 04, 2001 3:20 AM
>To: FreeBSD Question List; Steven
>Subject: RE: Fair bandwidth division
>
>
>Anyway, it seems to me that regardless of how many connections a user opens
>with kazaa, they are all channelled through one queue by this ipfw ruleset,
>and hence have equal weight when fighting for bandwidth with another queue
>(which represents another host).  The total bandwidth up for grabs is
>limited by the pipe config.  You might make this equal to, or smaller, than
>your link's wire speed. I think this will render the "fair" split that you
>are after, and as elaborated by Ted (i.e. - equal weight per host, not equal
>weight per tcp connection) .
>

That's an interesting approach although he would probably want to set all
queues to the maximum link speed.  If he sets any of them smaller then he
will start throwing away packets that have already traversed the link.

Now, as to whether it will work in actual practice - that depends on how
ipfw's queues operate.  If they group the traffic like this then it may
work.

>Let me know how it works out...
>

Yes, post your findings we would all be interested.



Ted Mittelstaedt                                       tedm@toybox.placo.com
Author of:                           The FreeBSD Corporate Networker's Guide
Book website:                          http://www.freebsd-corp-net-guide.com



>Patrick.
>
>-----Original Message-----
>From: owner-freebsd-questions@FreeBSD.ORG
>[mailto:owner-freebsd-questions@FreeBSD.ORG]On Behalf Of Steven
>Sent: 03 October 2001 20:14
>To: freebsd-questions@FreeBSD.ORG
>Subject: Fair bandwidth division
>
>
>Hi,
>
>I have a freebsd 4.1 machine running as a natd router for my home network.
>In recent weeks my housemates have started using the file sharing program
>kazaa, which downloads its files from several sources at once in an attempt
>to saturate as much bandwidth as possible.
>
>This is a bit of a problem, as I have have found when one person is making a
>download with it and using maybe 65k/sec, others in the house (namely me)
>get a top speed of maybe 0.5k/sec (from sites which can easily shift at a
>much higher speeds).
>
>I do not wish to divide up the bandwidth on a permenant
>basis - it makes no sense as a lot of the time there may only be one person
>using the net connection. I would however like to find a way to dynamically
>divide the bandwidth "fairly", so that one computer cannot hog all the
>bandwidth when others are trying to use the connection too.
>
>Is there a way of doing this? I've done a few searches but cannot see
>anything obvious.
>
>Thanks
>
>Steven
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>
>
>To Unsubscribe: send mail to majordomo@FreeBSD.org
>with "unsubscribe freebsd-questions" in the body of the message
>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?000f01c14d77$8a4e0360$1401a8c0>