From owner-freebsd-questions Wed Jan 16 11: 5:30 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mirapoint2.brutele.be (mirapoint2.brutele.be [212.68.193.7]) by hub.freebsd.org (Postfix) with ESMTP id 326A737B416 for ; Wed, 16 Jan 2002 11:05:23 -0800 (PST) Received: from gateway.lefort.net ([213.189.163.161]) by mirapoint2.brutele.be (Mirapoint) with SMTP id ARO29034; Wed, 16 Jan 2002 20:05:19 +0100 (CET) Received: from jsite.lefort.net (jsite.lefort.net [192.168.1.2]) by gateway.lefort.net (Postfix) with ESMTP id 7DA383A7F2 for ; Wed, 16 Jan 2002 20:05:15 +0100 (CET) Received: by jsite.lefort.net (Postfix, from userid 1000) id 240CE22EEC; Wed, 16 Jan 2002 20:05:14 +0100 (CET) Date: Wed, 16 Jan 2002 20:05:14 +0100 From: Jean-Yves Lefort To: freebsd-questions@FreeBSD.org Subject: dummynet traffic shaper Message-ID: <20020116200514.A84521@jsite.lefort.net> Mail-Followup-To: freebsd-questions@FreeBSD.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi all, My private network corresponds to the following scheme: world _____________ ed0 _____________________ ed1 _______ ---------| cable modem |--------| router |------| hub | ------------- | FreeBSD 4.4-RELEASE | ------- --------------------- | | | | | | | | | / | \ / | \ box A | box C | box B Since now I used dummynet to shape my traffic in the following way: ipfw pipe 1 config bw 50KByte/s ipfw add pipe 1 all from box-b.mynet.org to any out via ed0 ipfw add pipe 1 all from box-c.mynet.org to any out via ed0 ipfw add pipe 1 all from any to box-b.mynet.org out via ed1 ipfw add pipe 1 all from any to box-c.mynet.org out via ed1 The above configuration gave satisfying results, effectively limiting incoming and outgoing bandwidth of boxes B + C to 50 KB/s, and leaving box A unlimited. However, such a configuration is always wasting bandwidth, especially when box A is not using any bandwidth. Now, I would like to shape my LAN traffic in a better way, always giving the priority to box A, but without setting any arbitrary bandwidth limit. After having read ipfw(8), and having browsed some documents on the web, I am finding out that the solution to my problem is to use dummynet queues, possibly playing with the weight setting. However, I am still not understanding precisely how to implement such a configuration; I especially have problems understanding the 'weight' concept, and the interaction between pipes and queues. Any help will be greatly appreciated. Regards, Jean-Yves Lefort To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message