From owner-freebsd-ipfw@FreeBSD.ORG Wed Mar 4 19:48:30 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 C9A5E106564A for ; Wed, 4 Mar 2009 19:48:30 +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 8CD178FC19 for ; Wed, 4 Mar 2009 19:48:30 +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 0FE9D700D48E for ; Wed, 4 Mar 2009 20:17:05 +0100 (CET) Message-ID: <49AED3B1.1060209@net.t-labs.tu-berlin.de> Date: Wed, 04 Mar 2009 20:17:05 +0100 From: Sebastian Mellmann User-Agent: Thunderbird 2.0.0.19 (Windows/20081209) MIME-Version: 1.0 To: freebsd-ipfw@freebsd.org Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Subject: 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 19:48:31 -0000 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.