Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Jan 2001 22:03:58 -0800 (PST)
From:      Luigi Rizzo <rizzo@aciri.org>
To:        zaks@prioris.mini.pw.edu.pl (Slawek Zak)
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: Dummynet problem
Message-ID:  <200101020603.f0263wf69442@iguana.aciri.org>
In-Reply-To: <87u27j5cgz.fsf@pf39.warszawa.sdi.tpnet.pl> from Slawek Zak at "Jan 1, 2001  7:55:24 pm"

next in thread | previous in thread | raw e-mail | index | archive | help
> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200101020603.f0263wf69442>