From owner-freebsd-questions@FreeBSD.ORG Tue Jul 13 04:50:39 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 570F216A4CE for ; Tue, 13 Jul 2004 04:50:39 +0000 (GMT) Received: from smtp4.wlink.com.np (smtp4.wlink.com.np [202.79.32.87]) by mx1.FreeBSD.org (Postfix) with SMTP id 5D6EC43D2F for ; Tue, 13 Jul 2004 04:50:36 +0000 (GMT) (envelope-from bikrant_ml@wlink.com.np) Received: (qmail 43262 invoked from network); 13 Jul 2004 04:50:29 -0000 Received: from unknown (HELO qmail-scanner.wlink.com.np) (202.79.32.74) by 0 with SMTP; 13 Jul 2004 04:50:29 -0000 Received: (qmail 86638 invoked by uid 1008); 13 Jul 2004 04:50:29 -0000 Received: from bikrant_ml@wlink.com.np by qmail-scanner.wlink.com.np by uid 1002 with qmail-scanner-1.20 (clamscan: 0.60. Clear:RC:1(202.79.32.76):. Processed in 0.013051 secs); 13 Jul 2004 04:50:29 -0000 Received: from smtp1.wlink.com.np (202.79.32.76) by qmail-scanner.wlink.com.np with SMTP; 13 Jul 2004 04:50:29 -0000 Received: (qmail 8924 invoked by uid 508); 13 Jul 2004 04:50:29 -0000 Received: from [202.79.36.168] (HELO bikrant.org.np) by smtp1.wlink.com.np (qmail-smtpd) with SMTP; 13 Jul 2004 04:50:28 -0000 (Tue, 13 Jul 2004 10:35:28 +0545) From: Bikrant Neupane To: freebsd-questions@freebsd.org Date: Tue, 13 Jul 2004 10:35:23 +0545 User-Agent: KMail/1.6.1 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200407131035.24041.bikrant_ml@wlink.com.np> X-Spam-Check-By: smtp1.wlink.com.np Spam: No ; -4.9 / 5.0 X-Spam-Status: No, hits=-4.9 required=5.0 Subject: ipfw bandwidth shaping X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Jul 2004 04:50:39 -0000 Hi I am using freebsd 4.9 with ipfw to shape b/w for my broadband clients. I have created a 64Kbit pipe and I have configured few ips to use the pipe. ie more than one client share the same 64Kbit pipe. I have been montoring the b/w utilization by using the command: ipfw pipe show $inpipe | tail -1 | awk '{ print $6 } ipfw pipe show $outpipe | tail -1 | awk '{ print $6 } This is the output of ipfw pipe show $pipe_no BKT Prot _Source IP/port_ __Dest. IP/port___ Tot_pkt/bytes Pkt/Byte Drp 0 tcp 24.76.245.191/62165 202.79.50.55/4347 2826105 864936484 42 11232 150386 I assumed the 6th field gives the total bytes going though the pipe. These two commands give the bytes going through the pipe and I am using the values to plot the mrtg graph. But I see b/w utilization exceeding 64Kbit. At one point it reached 93Kbit!! Am I using wrong countres to obtain b/w utilization?? please aadvice. with regards, Bikrant