From owner-freebsd-ipfw@FreeBSD.ORG Thu Mar 5 10:48:07 2009 Return-Path: Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FB62106566C for ; Thu, 5 Mar 2009 10:48:07 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: from lath.rinet.ru (lath.rinet.ru [195.54.192.90]) by mx1.freebsd.org (Postfix) with ESMTP id 101E38FC08 for ; Thu, 5 Mar 2009 10:48:06 +0000 (UTC) (envelope-from oleg@lath.rinet.ru) Received: by lath.rinet.ru (Postfix, from userid 222) id 4C6FC7007; Thu, 5 Mar 2009 13:32:32 +0300 (MSK) Date: Thu, 5 Mar 2009 13:32:32 +0300 From: Oleg Bulyzhin To: Sebastian Mellmann Message-ID: <20090305103232.GA19726@lath.rinet.ru> References: <49AED3B1.1060209@net.t-labs.tu-berlin.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <49AED3B1.1060209@net.t-labs.tu-berlin.de> User-Agent: Mutt/1.5.18 (2008-05-17) Cc: freebsd-ipfw@freebsd.org Subject: Re: ipfw (dummynet) adds delay, but not configured to do so 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: Thu, 05 Mar 2009 10:48:07 -0000 On Wed, Mar 04, 2009 at 08:17:05PM +0100, Sebastian Mellmann wrote: > Hi everyone! > > I hope this is the right place to ask. > > I've got a IPFW ruleset that looks like this: > > cmd=ipfw > bottleneck_bandwidth=100Mbit/s > in_if="em0" > > $cmd pipe 500 config bw $bottleneck_bandwidth > $cmd add pipe 500 all from any to any via $in_if > > When I do a simple ping from one machine to another (actually the > FreeBSD machine is between those machines), I can see a delay of ~2ms. > Without any rules/pipes I've got under 1ms delay. > > The question is: > Why do I have such a "high" delay though I didn't configure any "delay" > in my pipe? > Where does this additional millisecond come from (processing delay for > the packet in the pipe?)? > If I configure another rule (or like 10 more rules) that matches the > packet, I can see the delay increasing. > For example a delay of ~20ms, when I configure 10 pipes. > Am I doing something wrong? > > Thanks in advance for any help and please tell me if you need additional > informations (e.g. kernel configuration). > > > Regards, > Sebastian M. > > > _______________________________________________ > 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" If you have 7.1R or 6.4R setting net.inet.ip.dummynet.io_fast=1 will probably reduce latency. -- Oleg. ================================================================ === Oleg Bulyzhin -- OBUL-RIPN -- OBUL-RIPE -- oleg@rinet.ru === ================================================================