From owner-freebsd-net Mon Jan 1 22: 4: 8 2001 From owner-freebsd-net@FreeBSD.ORG Mon Jan 1 22:04:06 2001 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id 3892137B404 for ; Mon, 1 Jan 2001 22:04:02 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0263wf69442; Mon, 1 Jan 2001 22:03:58 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101020603.f0263wf69442@iguana.aciri.org> Subject: Re: Dummynet problem In-Reply-To: <87u27j5cgz.fsf@pf39.warszawa.sdi.tpnet.pl> from Slawek Zak at "Jan 1, 2001 7:55:24 pm" To: zaks@prioris.mini.pw.edu.pl (Slawek Zak) Date: Mon, 1 Jan 2001 22:03:58 -0800 (PST) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: rizzo@iguana.aciri.org Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > I tried to configure dummynet to allow for normal work when downloading files > using queue mechanism (4.2-STABLE). > > IPFW rules are: > > add 100 queue 10 tcp from any to any uid dnld1 in > add 200 queue 11 ip from any to any > > queue 10 config weight 1 pipe 1 > queue 11 config weight 10 pipe 1 mask all > > pipe 1 config bw 128Kbit/s > > sysctl net.inet.ip.fw.one_pass is set to 1 > > Although the counters for both (100 and 200) rules show that they both are hit > during two parallel downloads (one by user dnld1), the bandwidth for both is > equal. It should not be, I guess. Is it a bug or maybe I've misconfigured > something. it should not be equal provided the 'high weight' flow has sufficient traffic going. Of course bugs are always possible, but i think i checked that the mechanism did work before committing. Can you do an 'ipfw zero' before the transfer, and provide the output of ipfw show ipfw queue show ipfw pipe show after that ? cheers luigi ----------------------------------+----------------------------------------- Luigi RIZZO, luigi@iet.unipi.it . ACIRI/ICSI (on leave from Univ. di Pisa) http://www.iet.unipi.it/~luigi/ . 1947 Center St, Berkeley CA 94704 Phone: (510) 666 2927 ----------------------------------+----------------------------------------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message