From owner-freebsd-questions Sun May 12 10:50:25 2002 Delivered-To: freebsd-questions@freebsd.org Received: from smtp02.wxs.nl (smtp02.wxs.nl [195.121.6.54]) by hub.freebsd.org (Postfix) with ESMTP id F258537B405 for ; Sun, 12 May 2002 10:50:19 -0700 (PDT) Received: from cybertron.kruijff ([213.10.151.186]) by smtp02.wxs.nl (Netscape Messaging Server 4.15) with ESMTP id GW0EVT02.7R2; Sun, 12 May 2002 19:50:17 +0200 Date: Sun, 12 May 2002 15:26:01 +0200 From: Alex X-Mailer: The Bat! (v1.53d) Reply-To: Alex X-Priority: 3 (Normal) Message-ID: <5312320606.20020512152601@dds.nl> To: Walid Nehme Cc: luigi@iet.unipi.it, freebsd questions Subject: Traffic shape quistion [was: Plz help as much as u can.] In-Reply-To: <20020510123427.70400.qmail@web10001.mail.yahoo.com> References: <20020510123427.70400.qmail@web10001.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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 Hello Walid, Friday, May 10, 2002, 2:34:27 PM, you wrote: WN> Dear sir. WN> I found ur email in man dummynet, and need ur help. WN> I have 3 download satellites and a microwave connection, WN> providing internet to a huge number of users. WN> i want to make shapping for the traffic to control my WN> outbound and inbound. WN> the problem is that my outbound is 128kbit/s and when many WN> users chat or send files my network stop working. WN> i read many documents about dummy and couldnt find any WN> theory that help me assigning the delay and queue so that WN> my network will work smooth, even i couldnt understand what WN> delay and queue are used for. Delay and droprate can be used to simulate existing lines. You don't wanna use this. WN> my firewall rules are. WN> ipfw add pipe 1 ip from 10.20.0.0/16 to any out WN> ipfw add pipe 2 ip from any to 10.20.0.0/16 in WN> ipfw pipe 1 config bw 3 KBytes/s WN> ipfw pipe 2 config bw 40 KBytes/s This says all users use the same pipe. You want something like this: ipfw add pipe 1 ip from 192.168.2.0/24 to any out ipfw add pipe 2 ip from any to 192.168.2.0/24 in ipfw pipe 1 config mask src-ip 0x000000ff bw 200Kbit/s queue 20Kbytes ipfw pipe 2 config mask dst-ip 0x000000ff bw 200Kbit/s queue 20Kbytes For more info: man ipfw WN> And tell me plz how to decide what value should i give WN> these options WN> if my networkcard is realtek 8139 and a p4 prossessor 1.5 G WN> 128mb sdram. and hdd 40G seagate. WN> NMBCLUSTERS - set the amount of network packet buffers WN> HZ - sets the timer granularity -- Best regards, Alex *** Links *** How to get the best results from FreeBSD questions. http://www.lemis.com/questions.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message