From owner-freebsd-ipfw@FreeBSD.ORG Mon Dec 18 01:47:41 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D008716A403 for ; Mon, 18 Dec 2006 01:47:41 +0000 (UTC) (envelope-from bounces@nabble.com) Received: from talk.nabble.com (www.nabble.com [72.21.53.35]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B13E43C9F for ; Mon, 18 Dec 2006 01:47:41 +0000 (GMT) (envelope-from bounces@nabble.com) Received: from [72.21.53.38] (helo=jubjub.nabble.com) by talk.nabble.com with esmtp (Exim 4.50) id 1Gw7M9-0002UA-BV for freebsd-ipfw@freebsd.org; Sun, 17 Dec 2006 17:31:53 -0800 Message-ID: <7922408.post@talk.nabble.com> Date: Sun, 17 Dec 2006 17:31:53 -0800 (PST) From: Looza To: freebsd-ipfw@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Nabble-From: elias_nogueira@hotmail.com Subject: problem simulating a LFN 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: Mon, 18 Dec 2006 01:47:41 -0000 Hi, I'm trying to simulate a LFN(Long Fat Network) to test various TCP versions. I am using iperf on the end PCs. I'm trying to use FreeBSD's ipfw to simulate a LFN. ex. throughput=1 Gbit/s and delay=100ms, trhoughput=100 Mbit/s and delay=1s This is how my hardware is connected. |Linux PC|--Gigabit--| FreeBSD box |--Gigabit--|Linux PC| With this configuration: >ipfw 500 add allow ip from any to any I get speeds of about 200 to 300 Mbit/s and the CPU usage goes up to 99%. I've googled this problem and it seems that some good quality NIC do most of the processing so that the CPU doesn't have to. Unfortunately I have bad quality NICs so the CPU does all the processing, stoping the throughput at these speeds. With this configuration: >ipfw 100 pipe 1 add ip from 192.168.0.1 to 192.168.1.1 >ipfw 500 add allow ip from any to any >ipfw pipe 1 config delay 100ms I get speed of just 10 Mbit/s. I've do some testing and increasing the delay will lower the troughput, decreasing th delay will boost the throughput. I've tested the queue and the bw option and it seems it makes no difference. PIng will show 200ms RTT(Round Trip Time) wich is what I'd expect except for the troughput. My first question is if anyone knows off some way to get the processing out of the CPU so that I can achieve gigabit speeds without ? My sencond question is if there is a way of setting the ipfw delay option so that it does not alter the troughput? PS - I hope I can be understood. -- View this message in context: http://www.nabble.com/problem-simulating-a-LFN-tf2837638.html#a7922408 Sent from the freebsd-ipfw mailing list archive at Nabble.com.