From owner-freebsd-net@FreeBSD.ORG Thu Nov 26 20:46:48 2009 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B316A1065679 for ; Thu, 26 Nov 2009 20:46:48 +0000 (UTC) (envelope-from jon.otterholm@ide.resurscentrum.se) Received: from mail1.cil.se (mail1.cil.se [217.197.56.125]) by mx1.freebsd.org (Postfix) with ESMTP id 48E6F8FC23 for ; Thu, 26 Nov 2009 20:46:47 +0000 (UTC) Received: from onob6.irc-net.se ([192.168.98.91]) by mail1.cil.se over TLS secured channel with Microsoft SMTPSVC(6.0.3790.1830); Thu, 26 Nov 2009 21:35:03 +0100 Message-ID: <4B0EE63C.5010301@ide.resurscentrum.se> Date: Thu, 26 Nov 2009 21:34:04 +0100 From: Jon Otterholm User-Agent: Thunderbird 2.0.0.21 (X11/20090421) MIME-Version: 1.0 To: freebsd-net@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 26 Nov 2009 20:35:03.0207 (UTC) FILETIME=[EE830B70:01CA6ED7] Subject: GRED on queue or pipe X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 26 Nov 2009 20:46:48 -0000 Doing some test of gred in dummynet. My ruleset consists of a number of queues connected to the same pipe. Queues have different weight and I want to make use of gred instead of taildrop. Should i define gred on the queues or on the pipe? To me it seems reasonable to set it on the pipe and let the pipe handle the weight from the queues. How do I define the queue-depth on queues and pipes? If the pipe has 2000 slots should queues have the same number on queues or should the total number of slots in all queues sum up to the number defined in the pipe? Example: ipfw queue 1000 config pipe 1000 weight 5 ipfw queue 2000 config pipe 2000 weight 5 ipfw queue 1001 config pipe 1000 weight 80 ipfw queue 2001 config pipe 2000 weight 80 ipfw pipe 1000 config bw 100Mbit/s buckets 65535 queue 2000 gred 0.002/1800/2000/0.1 ipfw pipe 2000 config bw 100Mbit/s buckets 65535 queue 2000 gred 0.002/1800/2000/0.1 ipfw add 10 queue 1000 ip from any to table(10) dst-port 25 out xmit em1 ipfw add 10 queue 2000 ip from table(10) to any dst-port 25 out xmit em0 ipfw add 20 queue 1001 ip from any to table(20) out xmit em1 ipfw add 20 queue 2001 ip from table(20) to any out xmit em0 //JO