From owner-freebsd-hackers@FreeBSD.ORG Tue Nov 2 19:44:15 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5A66316A4CE for ; Tue, 2 Nov 2004 19:44:15 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 417BB43D48 for ; Tue, 2 Nov 2004 19:44:15 +0000 (GMT) (envelope-from julian@elischer.org) Received: from elischer.org (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 28CFE7A403; Tue, 2 Nov 2004 11:44:15 -0800 (PST) Message-ID: <4187E38F.2070809@elischer.org> Date: Tue, 02 Nov 2004 11:44:15 -0800 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030516 X-Accept-Language: en, hu MIME-Version: 1.0 To: Justin Bennett References: <4187E23C.7000900@z-axis.com> In-Reply-To: <4187E23C.7000900@z-axis.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Hackers Subject: Re: ipfw pipes: theoretical speed vs. reality X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 02 Nov 2004 19:44:15 -0000 Justin Bennett wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > All, > > I have recently been setting up pipes to shape bandwidth on our local > net. > > However, unless I am missing something, the TCP overhead seems quite > large. > > If I configure the following pipe: > > $IPFW pipe 1 config bw 64Kbit/s > $IPFW add 31 pipe 1 ip from 192.168.0.1/24 to any > $IPFW add 32 pipe 1 ip from any to 192.168.0.1/24 > > The run traffic from my machine (192.168.0.2) through it, I get less > than half the expected bandwidth (3.9KB/s). I tried another test with a > 512Kbit/s pipe, and got around 30KB/s. > > I know on most ATM/FR lines, you can expect about 10% overhead, but 50% > seems high. > > When I remove the pipe, my T1 comes back to life, and I can pull the > same data at 160+KB/s. > > Am I missing something? yes you are queuing data in both directions on the same queue, thus serialising it.. use 2 seprarate pipes. one for each direction. > > > Thanks, > > Justin > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.5 (MingW32) > > iD8DBQFBh+I8lNUG+Ne1CZMRAl95AJ973J3YiUIStcyJ5c5gM+i2lrebTACfUE83 > 4V9bl8bR9GxjHsKqL764hJk= > =gc51 > -----END PGP SIGNATURE----- > > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to > "freebsd-hackers-unsubscribe@freebsd.org"