From owner-freebsd-ipfw@FreeBSD.ORG Fri Mar 11 05:52:50 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 E11CB16A4CE for ; Fri, 11 Mar 2005 05:52:50 +0000 (GMT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id B833C43D48 for ; Fri, 11 Mar 2005 05:52:50 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id j2B5qoB0065165; Thu, 10 Mar 2005 21:52:50 -0800 (PST) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id j2B5qoxR065164; Thu, 10 Mar 2005 21:52:50 -0800 (PST) (envelope-from rizzo) Date: Thu, 10 Mar 2005 21:52:50 -0800 From: Luigi Rizzo To: jim song Message-ID: <20050310215250.A65126@xorpc.icir.org> References: <20050311043933.GA28686@odin.ac.hmc.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: ; from jingmin.song@gmail.com on Fri, Mar 11, 2005 at 01:34:10PM +0800 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 05:52:51 -0000 On Fri, Mar 11, 2005 at 01:34:10PM +0800, jim song wrote: > Brooks, > > Actually I use the freebsd box as an router. I set the tcp window in > another two windows box running iperf (iperf -w 5M). > > 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. but the bandwidth is at most 1 window/RTT, where the window is min(sockbuf_size, TCP_window). With your pipe setting you have 50-100ms RTT, so the above would suggest that your effective window is around 500kbit or roughly 64KBytes. all consistent with an improper window setting luigi > BTW, is there some limitations to tcp connections passing through a > router? > > Thanks, > --Jingmin > > On Thu, 10 Mar 2005 20:39:33 -0800, Brooks Davis > wrote: > > > > 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? > > > > -- Brooks > > > _______________________________________________ > 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"