From owner-freebsd-questions Wed Jan 9 15:40:36 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp018.mail.yahoo.com (smtp018.mail.yahoo.com [216.136.174.115]) by hub.freebsd.org (Postfix) with SMTP id 45F5F37B417 for ; Wed, 9 Jan 2002 15:40:28 -0800 (PST) Received: from dl-nas1-ssa-c8b0ccca.p001.terra.com.br (HELO pchome) (200.176.204.202) by smtp.mail.vip.sc5.yahoo.com with SMTP; 9 Jan 2002 23:40:27 -0000 Message-ID: <002101c1996f$91951250$caccb0c8@pchome> From: "Joao Carlos" To: Subject: Dummynet Date: Wed, 9 Jan 2002 21:41:37 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG I have one problem and one doubt about dummynet. First of all, let me explain my network. I have my FreeBSD (4.4-STABLE and 4.5-PRE-RELEASE) firewall and router connected to 3 bridges that are connected to radio antennas. All my clients are connected with me by radio. What do I want? I want to limit the bandwith not only to the internet, after the packet passes my router and firewall. I want to limit the used bandwith in my antennas too, because i want the minimum traffic through the bridges. The doubt is if i limit the bandwith only on my router, if the bandwith between the client and the router will be limited. I tested that with TCP connections and it worked, but i don't know if ICMP and UDP connections will work too. The problem is that when i put the bandwidth limit, i see that it really limits but the real limit is half than the limit i want. Example: I configured my pipe like this, trying to limit the access of the client to 128Kbit/s upload and 128Kbit/s for download ipfw pipe 1 config bw 128Kbit/s ipfw pipe 2 config bw 128Kbit/s ipfw add pipe 1 ip from CLIENTIP to any ipfw add pipe 2 ip from any to CLIENTIP I did not use the in and out keywods because each of these two rules will match packets from the both directions (first rule - in when the acket is arriving in the firewall and out when it going out to the internet. second - in when the packet is arriving from the net and out whn it going to the cliente. Well, at least i suppose so, and using in and out it didn't worked well) Using this configuration i got that clients limited to 128Kbit/s could use 64Kbit/s in maximum. Clients limited to 384Kbit/s could use only something near 200Kbit/s Clients limited to 256Kbit/s could use only 128Kbit/s and so on... I checked this out monitoring the links using MRTG. I've read something about the queue size, that the default is 50 slots, but i couldn't understand well the documentation for it, so i don't know how to change and if it can be the problem. Well, does anybody knows what may be causing this? By now, i'm limiting all the clients by the double of what it can use ... this way it's working fine. Thanks in advance --- Joao Carlos jcrr@ieee.org _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message