From owner-freebsd-ipfw@FreeBSD.ORG Tue Feb 21 14:57:13 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org 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 E7EFF16A420 for ; Tue, 21 Feb 2006 14:57:13 +0000 (GMT) (envelope-from donaldbaud@yahoo.com) Received: from web37406.mail.mud.yahoo.com (web37406.mail.mud.yahoo.com [209.191.87.59]) by mx1.FreeBSD.org (Postfix) with SMTP id 4EF5A43D48 for ; Tue, 21 Feb 2006 14:57:11 +0000 (GMT) (envelope-from donaldbaud@yahoo.com) Received: (qmail 66865 invoked by uid 60001); 21 Feb 2006 14:57:10 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=umU+ShAkeRaQ/8oH+WgtATCnuqAeutZekVa+eYI+ch7q9yBqsJxQqsU4ii30GxpTg3Rh9l403U7GTQIfb5hf7pORbCbskqGU9Cwa/ZKLzwpZs8nQukhmtb4WCM0qlvKFo1+wP110MhF74a1jZzduk86kgahkTzgbhSq/XTNy9h4= ; Message-ID: <20060221145710.66863.qmail@web37406.mail.mud.yahoo.com> Received: from [216.239.92.172] by web37406.mail.mud.yahoo.com via HTTP; Tue, 21 Feb 2006 06:57:10 PST Date: Tue, 21 Feb 2006 06:57:10 -0800 (PST) From: Donald Baud To: Luigi Rizzo In-Reply-To: <20060221063533.A63214@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Cc: freebsd-ipfw@freebsd.org Subject: Re: Patch to add burst to dummynet ? X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Feb 2006 14:57:14 -0000 --- Luigi Rizzo wrote: > On Tue, Feb 21, 2006 at 06:12:01AM -0800, Donald > Baud wrote: > > Looking back in the mailing archives > http://docs.freebsd.org/cgi/getmsg.cgi?fetch=62536+0+archive/2003/freebsd-ipfw/20030907.freebsd-ipfw > , I found a message saying that it would be trivial > to add burst support in dummynet. > > In that message, it says to change in > ip_dummynet.c : > > > > - if (len_scaled > q->numbytes ) > > + if (len_scaled > q->numbytes + > q->burst_size) > > > > I did that, even tried len_scaled = 0 > > But I don't see any difference after recompiling, > kldunload/kldload dummynet. > > > > I still get the same throughput with wget > --progress=dot some_file > > of course you get the same throughput! > the burst is just a constant in the time it takes to > transfer data, > and it is independent of the data size. irrespective > of the file > size you'll just finish (burst_size/bandwidth) > seconds earlier. > > cheers > luigi I ran two tests with the following ipfw rules: ipfw pipe 10 config bw 10kbit/s ipfw add 5 pipe 10 ip from 10.0.0.1 to me == with: if (len_scaled > q->numbytes) == wget --progress=dot some_file 0K .......... .......... 0% 1.13 KB/s 50K .......... .......... 1% 1.14 KB/s 100K .......... .......... 2% 1.14 KB/s 150K .......... .......... 3% 1.14 KB/s == with: if (len_scaled > q->numbytes + 100000 ) wget --progress=dot some_file 0K .......... .......... 0% 1.13 KB/s 50K .......... .......... 1% 1.14 KB/s 100K .......... .......... 2% 1.14 KB/s 150K .......... .......... 3% 1.14 KB/s __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com