From owner-freebsd-ipfw@FreeBSD.ORG Sat Jul 26 01:13:50 2003 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 7330737B401 for ; Sat, 26 Jul 2003 01:13:50 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id EF0AB43F3F for ; Sat, 26 Jul 2003 01:13:49 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.8p1/8.12.3) with ESMTP id h6Q8DnkN060257; Sat, 26 Jul 2003 01:13:49 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h6Q8DnPm060256; Sat, 26 Jul 2003 01:13:49 -0700 (PDT) (envelope-from rizzo) Date: Sat, 26 Jul 2003 01:13:49 -0700 From: Luigi Rizzo To: freebsd-ipfw@freebsd.org Message-ID: <20030726011349.A60140@xorpc.icir.org> References: <3F212BF7.4060602@optusnet.com.au> <20030725103814.A54554@xorpc.icir.org> <20030725114822.A2287@cs.ucsd.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <20030725114822.A2287@cs.ucsd.edu>; from ycheng@cs.ucsd.edu on Fri, Jul 25, 2003 at 11:48:22AM -0700 Subject: Re: using dummynet to simulate modem, dsl, etc 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: Sat, 26 Jul 2003 08:13:50 -0000 On Fri, Jul 25, 2003 at 11:48:22AM -0700, Yuchung Cheng wrote: > On 07-25-2003, Luigi Rizzo wrote: > > I would expect you to get around 3.5KBytes/s in the steady state, > > but with a packet transmission time of 200ms and the 600ms RTT of > > your setting, the first few rounds might achieve somewhere between > > that and twice the bandwidth because of less interference. > > > > This is exactly what you are seeing. > > > > Try this: > > ipfw -q add 1 pipe 1 ip from any to 127.0.0.100 in > > ipfw -q add 2 pipe 2 ip from 127.0.0.100 to any in > > ipfw -q pipe 1 config bw 33kbit/s queue 0 delay 40ms > > ipfw -q pipe 2 config bw 56kbit/s queue 0 delay 112ms > > > why set queue to 0? aren't modem banks usually 4K bytes? the reverse link > has 3 times delay (c->s), is this for simulating ack spacing and busy > server to client pipe? i just copied those parameters from the original posters. I have no idea on what system he had in mind. In terms of delay, i typically used to see some 120-150mss RTT for short pings (including everything). Just the transmission time is in the order of 5-10ms at each step, and there are many instances of it (serial->modem; modem->modem; modem->serial on the remote side; and another 3 on the way back) so i think this eats almost half ot the total delay. In terms of buffering, again i have no idea, but at least on the client side you have as much as the local OS gives you. cheers luigi > I am doing similar experiments. Anybody can share parameters for ADSL, cable > modems too? Searching the web does not give any good information. > > Yu-chung > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"