From owner-freebsd-ipfw@FreeBSD.ORG Wed Mar 4 21:05:56 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 0A86010656CE for ; Wed, 4 Mar 2009 21:05:56 +0000 (UTC) (envelope-from sebastian.mellmann@net.t-labs.tu-berlin.de) Received: from mail.net.t-labs.tu-berlin.de (mail.net.t-labs.tu-berlin.de [130.149.220.252]) by mx1.freebsd.org (Postfix) with ESMTP id BD7778FC15 for ; Wed, 4 Mar 2009 21:05:55 +0000 (UTC) (envelope-from sebastian.mellmann@net.t-labs.tu-berlin.de) Received: from [192.168.1.2] (g225037214.adsl.alicedsl.de [92.225.37.214]) by mail.net.t-labs.tu-berlin.de (Postfix) with ESMTP id C80F0700D48E; Wed, 4 Mar 2009 22:05:54 +0100 (CET) Message-ID: <49AEED31.8060801@net.t-labs.tu-berlin.de> Date: Wed, 04 Mar 2009 22:05:53 +0100 From: Sebastian Mellmann User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: Luigi Rizzo References: <49AED3B1.1060209@net.t-labs.tu-berlin.de> <20090304210017.GA29615@onelab2.iet.unipi.it> In-Reply-To: <20090304210017.GA29615@onelab2.iet.unipi.it> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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: Wed, 04 Mar 2009 21:05:56 -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 >> > > the delay that a packet experiences corresponds to len/bandwidth, > often rounded up to the next clock tick (1ms is the default). > You get one delay inbound, one delay outbound, so that's 2ms. > > Is there any chance to change this clock tick to a lower value? I think it's the 'HZ=' option in the kernel config isn't it? > cheers > luigi > Regards, Sebastian