From owner-freebsd-ipfw@FreeBSD.ORG  Fri Mar 11 05:52:50 2005
Return-Path: <owner-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 E11CB16A4CE
	for <freebsd-ipfw@freebsd.org>; 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 <freebsd-ipfw@freebsd.org>; 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 <rizzo@icir.org>
To: jim song <jingmin.song@gmail.com>
Message-ID: <20050310215250.A65126@xorpc.icir.org>
References: <d018391a050310200327a01c48@mail.gmail.com>
	<20050311043933.GA28686@odin.ac.hmc.edu>
	<d018391a050310213469df3025@mail.gmail.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
User-Agent: Mutt/1.2.5.1i
In-Reply-To: <d018391a050310213469df3025@mail.gmail.com>;
	from jingmin.song@gmail.com on Fri, Mar 11, 2005 at 01:34:10PM +0800
cc: Brooks Davis <brooks@one-eyed-alien.net>
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 <freebsd-ipfw.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw>,
	<mailto:freebsd-ipfw-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ipfw>
List-Post: <mailto:freebsd-ipfw@freebsd.org>
List-Help: <mailto:freebsd-ipfw-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw>,
	<mailto:freebsd-ipfw-request@freebsd.org?subject=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
> <brooks@one-eyed-alien.net> 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"