From owner-freebsd-net Mon Jan 22 11:45:37 2001 Delivered-To: freebsd-net@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id BDAF237B404; Mon, 22 Jan 2001 11:45:16 -0800 (PST) Received: from husten.security.at12.de (dial-195-14-233-8.netcologne.de [195.14.233.8]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id UAA04373; Mon, 22 Jan 2001 20:45:14 +0100 (MET) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.1/8.11.1) with ESMTP id f0MJj8W15298; Mon, 22 Jan 2001 20:45:08 +0100 (CET) (envelope-from pherman@frenchfries.net) Date: Mon, 22 Jan 2001 20:45:08 +0100 (CET) From: Paul Herman To: Roman Le Houelleur Cc: freebsd-ipfw , freebsd-net Subject: Re: bandwidth analyser In-Reply-To: <3A6C7FD0.7E2ABD65@IPricot.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello Roman, On Mon, 22 Jan 2001, Roman Le Houelleur wrote: > I use FreeBSD 4.2 stable + bridge + dummynet + ipfw. I would like > to calculate the bandwidth of each authorized IP source flowing > through the bridge from a user program. > > As this bandwidth calculation should be done very often (10 to 20 > times per second) I first tried to use the if_data structure from > sysctl. I think /usr/ports/net/argus does some analysis (however I don't think in real time.) Otherwise (shameless plug) try tcpstat: http://www.frenchfries.net/paul/tcpstat/index.html It's like a vmstat for networks (pcap filters and all), and sounds like what you are describing. -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message