From owner-freebsd-ipfw@FreeBSD.ORG Fri Mar 11 16:49:05 2005 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 681DD16A4CE for ; Fri, 11 Mar 2005 16:49:05 +0000 (GMT) Received: from odin.ac.hmc.edu (Odin.AC.HMC.Edu [134.173.32.75]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3288B43D2F for ; Fri, 11 Mar 2005 16:49:05 +0000 (GMT) (envelope-from brdavis@odin.ac.hmc.edu) Received: from odin.ac.hmc.edu (localhost.localdomain [127.0.0.1]) by odin.ac.hmc.edu (8.13.0/8.13.0) with ESMTP id j2BGn4Tg030076; Fri, 11 Mar 2005 08:49:04 -0800 Received: (from brdavis@localhost) by odin.ac.hmc.edu (8.13.0/8.13.0/Submit) id j2BGn4MZ030075; Fri, 11 Mar 2005 08:49:04 -0800 Date: Fri, 11 Mar 2005 08:49:04 -0800 From: Brooks Davis To: jim song Message-ID: <20050311164904.GA29287@odin.ac.hmc.edu> References: <20050311043933.GA28686@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="PEIAKu/WMn1b1Hv9" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.1i X-Virus-Scanned: by amavisd-new X-Spam-Status: No, hits=0.0 required=8.0 tests=none autolearn=no version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on odin.ac.hmc.edu cc: Brooks Davis cc: freebsd-ipfw@freebsd.org Subject: Re: why my dummynet queue not work? 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, 11 Mar 2005 16:49:05 -0000 --PEIAKu/WMn1b1Hv9 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable [Please don't top-post.] On Fri, Mar 11, 2005 at 01:34:10PM +0800, jim song wrote: > Brooks, >=20 > Actually I use the freebsd box as an router. I set the tcp window in=20 > another two windows box running iperf (iperf -w 5M). I'm pretty sure iperf only really sets the socket buffer size, not the tcp window size. In fact, that's what the help entry says: -w, --window #[KM] TCP window size (socket buffer size) =20 At least on FreeBSD the maximum window size is controlled by a global variable. You need to make sure you are setting both. If you want to use windows end-hosts, you'll need to ask a windows list what you need to do there. > Before I add in the pipes, the throughputs could reach 300M, but after > I config in the two pipes(200M bandwidth, 25ms delay), the throughput > degrade to about 5M.=20 That's expected. > BTW, is there some limitations to tcp connections passing through a=20 > router? No, dummynet doesn't know anything about TCP. -- Brooks > On Thu, 10 Mar 2005 20:39:33 -0800, Brooks Davis > wrote: > >=20 > > Why are you using the queue parameter at all? If you just want to > > emulate a pipe there is usually no need to do that. Have you adjusted > > your socket buffers in addition to your max TCP window size? > >=20 > > -- Brooks > > --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --PEIAKu/WMn1b1Hv9 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCMcwAXY6L6fI4GtQRAvgbAKDQI1jGzYdfKVhJu2u5g5I1kbSJaACghhwu e4oTZgw1nDE2PNev3tuGM/Q= =0Zwd -----END PGP SIGNATURE----- --PEIAKu/WMn1b1Hv9--