From owner-freebsd-ipfw@FreeBSD.ORG Fri Jul 25 10:38:39 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 21ACF37B401 for ; Fri, 25 Jul 2003 10:38:39 -0700 (PDT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id B6FE24400D for ; Fri, 25 Jul 2003 10:38:18 -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 h6PHcHkN054604; Fri, 25 Jul 2003 10:38:17 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.8p1/8.12.3/Submit) id h6PHcEHn054603; Fri, 25 Jul 2003 10:38:14 -0700 (PDT) (envelope-from rizzo) Date: Fri, 25 Jul 2003 10:38:14 -0700 From: Luigi Rizzo To: Mark Hannon Message-ID: <20030725103814.A54554@xorpc.icir.org> References: <3F212BF7.4060602@optusnet.com.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <3F212BF7.4060602@optusnet.com.au>; from markhannon@optusnet.com.au on Fri, Jul 25, 2003 at 11:09:11PM +1000 cc: freebsd-ipfw@freebsd.org 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: Fri, 25 Jul 2003 17:38:39 -0000 at the very least you are passing packets through each pipe twice (once in ip_output(), once in ipo_input()), which coupled with the delays causes a lot of interference in the queues. 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 to have a more realistic setting (300ms RTT is still a bit on the high side i would say.) cheers luigi On Fri, Jul 25, 2003 at 11:09:11PM +1000, Mark Hannon wrote: > Hello, > > I am trying to use dummynet to simulate different network links and > demonstrate > application level performance for a variety of scenarios. The first > test is three > ftp file transfers over a simulated 56k modem as per below: > > iifconfig lo0 mtu 1500 > fconfig lo0 alias 127.0.0.100 > ipfw -q add 1 pipe 1 ip from any to 127.0.0.100 > ipfw -q add 2 pipe 2 ip from 127.0.0.100 to any > ipfw -q pipe 1 config bw 33kbit/s queue 0 delay 40ms > ipfw -q pipe 2 config bw 56kbit/s queue 0 delay 112ms > > > The results seem strange ... larger file sizes seem to have a slower > transfer rate, > where I would have thought that steady-state transfers would have been > reached > for the larger files. Are these results logical? Have I done something > silly with the > pipe configs? > > Receiving test_large (1937201 bytes): 100% (ETA 00:00) > 1937201 bytes transferred in 551.1 seconds (3.43 kBps) > Receiving test_medium (248476 bytes): 100% (ETA 00:00) > 248476 bytes transferred in 66.7 seconds (3.64 kBps) > Receiving test_small (40960 bytes): 100% > 40960 bytes transferred in 7.3 seconds (5.52 kBps) > > > Regards/mark > > > > > > > _______________________________________________ > 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"