From owner-freebsd-net@FreeBSD.ORG Wed Mar 17 03:32:07 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 37B5B16A4CE for ; Wed, 17 Mar 2004 03:32:07 -0800 (PST) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 282B943D46 for ; Wed, 17 Mar 2004 03:32:07 -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 i2HBW6RS024010; Wed, 17 Mar 2004 03:32:06 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.9p1/8.12.3/Submit) id i2HBW6NV024009; Wed, 17 Mar 2004 03:32:06 -0800 (PST) (envelope-from rizzo) Date: Wed, 17 Mar 2004 03:32:06 -0800 From: Luigi Rizzo To: Karim Fodil-Lemelin Message-ID: <20040317033206.A23760@xorpc.icir.org> References: <40575A8F.8090402@xiphos.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <40575A8F.8090402@xiphos.ca>; from kfl@xiphos.ca on Tue, Mar 16, 2004 at 02:50:39PM -0500 cc: freebsd-net@freebsd.org Subject: Re: Dummynet Limitations X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Mar 2004 11:32:07 -0000 On Tue, Mar 16, 2004 at 02:50:39PM -0500, Karim Fodil-Lemelin wrote: > Hi > > This code: > > > if (pipe.delay > 10000) > errx(EX_DATAERR, "delay %d must be < 10000", > pipe.delay); > > > in /usr/src/sbin/ipfw/ipfw.c > > Limits the pipe delay for dummynet to 10 seconds. Is there any reason > for this? Also, no such limit is imposed on the bandwidth why? > Memory (amount of mbufs/mbclusters) is obviously a limit here but I was > wondering if something else was hidden in this statement. back in 1996 when i wrote that line of code, my test machine had 16MB of RAM and i did not want to exhaust it with a poorly configured pipe. You are certainly welcome to increase it or even better make it into a sysctl variable. But keep in mind that pipe.delay is the propagation delay, and i cannot make any sense (except for simulating deep-space communications) of a larger delay, in which case, though, communication is so peculiar that almost surely you need a different test environment, not something IP-based as dummynet. Also, in such cases, you probably want to simulate things faster than realtime -- makes no sense to send a packet and wait hours for it to be delivered. cheers luigi