From owner-freebsd-ipfw@FreeBSD.ORG Thu Mar 18 08:08:49 2004 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E859116A4CE; Thu, 18 Mar 2004 08:08:49 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9A5C43D41; Thu, 18 Mar 2004 08:08:49 -0800 (PST) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.9p1/8.12.8) with ESMTP id i2IG8nRS040891; Thu, 18 Mar 2004 08:08:49 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i2IG8nRm040890; Thu, 18 Mar 2004 08:08:49 -0800 (PST) (envelope-from rizzo) Date: Thu, 18 Mar 2004 08:08:49 -0800 From: Luigi Rizzo To: Francis GUDIN Message-ID: <20040318080849.A40631@xorpc.icir.org> References: <20040318105728.GA2470@u1030.c03.escapebox.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20040318105728.GA2470@u1030.c03.escapebox.net>; from francis@u1030.c03.escapebox.net on Thu, Mar 18, 2004 at 11:57:28AM +0100 cc: freebsd-ipfw@freebsd.org cc: freebsd-questions@freebsd.org Subject: Re: dummynet and adsl X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 18 Mar 2004 16:08:50 -0000 On Thu, Mar 18, 2004 at 11:57:28AM +0100, Francis GUDIN wrote: > Hello everybody, > > I'm in the process of setting up a bandwidth control with ipfw and > dummynet. My connection is done through pppoe on adsl. > > In ipfw(8), i found the following: > "If a device name is specified instead of a numeric value, as in > > ipfw pipe 1 config bw tun0 > > then the transmit clock is supplied by the specified device. At > the moment only the tun(4) device supports this functionality, > for use in conjunction with ppp(8)." > > Having two different bandwidth available (up- and downstream), would > this option work ? Or, is only symetric bw case taken into account 'bw tun0' means that the pipe will transmit a new packet when the device's (tun0 in this case) transmit queue becomes empty. In any case the question is irrelevant here because tun0's queue is drained by the userland process reading from /dev/tun0 and writing onto the output link. With a serial line and no buffering you could hope that this matches the outbound bandwidth, but with pppoe on adsl you basically see the ethernet speed on transmission. cheers luigi