From owner-freebsd-questions Mon Oct 22 6:11:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mip.co.za (puck.mip.co.za [209.212.106.44]) by hub.freebsd.org (Postfix) with ESMTP id DA1C237B401 for ; Mon, 22 Oct 2001 06:11:07 -0700 (PDT) Received: from patrick (patrick.mip.co.za [10.3.13.181]) by mip.co.za (8.9.3/8.9.3) with SMTP id PAA27456; Mon, 22 Oct 2001 15:11:05 +0200 (SAST) (envelope-from patrick@mip.co.za) From: "Patrick O'Reilly" To: "Daniel Fairs" , "FreeBSD Questions" Subject: RE: Dummynet Date: Mon, 22 Oct 2001 15:14:20 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2911.0) X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: Importance: Normal 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 Daniel, just a quick pointer, I can't elaborate right now... > I've read about queues in the ipfw man page, and read through > http://www.iet.unipi.it/~luigi/ip_dummynet/ but I'm afraid I > don't quite see > how do define a pipe without specifying addresses or protocols - I want to > do that in the queue definition. Pipes and Queues are used to control data flows. Normal ipfw rules define which packets gets into which flows. So, I would do this: 1) Define the pipes I want - their main purpose is to limit bandwidth. 2) Define the queues I want - their purpose is to try to prioritise and balance traffic within each pipe. 3) Define ipfw rules to select which packets go through which queues (and hence which pipes). Something like this: 1) Define a pipe for 45Kbit/s. 2) Define 2 queues attached to pipe 1, one has greater weight than the other. 3) ipfw add 1000 queue 1 tcp from any to any 25. ipfw add 1010 queue 2 tcp from any to any 110. In this example, SMTP gets queue 1, and POP3 gets queue 2, and you decide which queue has greater priority, but both SMTP and POP3 share the same 45Kbit/s pipe. Hope this Helps. Patrick. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message