From owner-freebsd-questions Wed Sep 1 14:46:43 1999 Delivered-To: freebsd-questions@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id 4205314C83 for ; Wed, 1 Sep 1999 14:46:32 -0700 (PDT) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id QAA50525; Wed, 1 Sep 1999 16:44:58 -0500 (CDT) (envelope-from dan) Date: Wed, 1 Sep 1999 16:44:58 -0500 From: Dan Nelson To: Oscar Bonilla Cc: questions@FreeBSD.ORG Subject: Re: Bandwidth measuring tools Message-ID: <19990901164458.A50198@dan.emsphone.com> References: <19990901123815.B19186@fisicc-ufm.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0pre1i In-Reply-To: <19990901123815.B19186@fisicc-ufm.edu> X-OS: FreeBSD 4.0-CURRENT Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Sep 01), Oscar Bonilla said: > does anyone know about any bandwidth measuring tools I could use with > a tcpdump capture file? > > I need to get measurement on total bandwidth consumed on my primary > router (which I don't control so SNMP is out of the question). Even if you don't control it, you should be able to query it. > I was thinking on making a freebsd box behave as a bridge and quietly > capture all traffic using tcpdump. > > my question is: after I have the dump file, which tool could i use to > get nice stats like percentage of tcp/http/ftp/smtp/etc and total > throughput (not per-connection as tcptrace does)? An easier way would be to do the bridging like you suggested, but instead of tcpdumping, simply ipfw rules like "count all from any to any in via ed0" and "... out via ed0", then graph the bytecounts there. Then a 2-line shell script to run "ipfw show" and massage the data for mrtg, and you're done. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message