From owner-freebsd-questions Mon Jul 14 18:14:04 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id SAA26033 for questions-outgoing; Mon, 14 Jul 1997 18:14:04 -0700 (PDT) Received: from eesun3.tamu.edu (eesun3.tamu.edu [128.194.25.56]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id SAA26027; Mon, 14 Jul 1997 18:14:00 -0700 (PDT) Received: (from skjo@localhost) by eesun3.tamu.edu (8.8.5/8.8.5) id UAA03518; Mon, 14 Jul 1997 20:13:57 -0500 (CDT) From: Sanku Jo Message-Id: <199707150113.UAA03518@eesun3.tamu.edu> Subject: VIF : the bandwidth taken by multicasting packet [Question] To: questions@freebsd.org Date: Mon, 14 Jul 1997 20:13:57 -0500 (CDT) Cc: freebsd-questions@freebsd.org X-Mailer: ELM [version 2.4 PL24 PGP2] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Howdy ! Because I hope to check the Bandwidth taken by the IP multicastingrouter(FreeBSD box), I tried to use iotcl(Channel_descriptor, SIOCGETVIFCNT, struct *sioc_vif_req). I heard this function retruns the input and output Bandwidth. There are two cases for testing. 1. When Host-A is source and Host-B is receiver, the Bandwidth rate value returned by the function is correct. 2. When Host-B is source and Host-A is receiver, the Bandwidth rate value(out_bytes) retruned by the function is wrong. Even the case witout any receiver in Backbone(as Host-A), the function returns the whole bandwidth rate(in_bytes) which is taken by the source, HOST-B. I think the prune function is all right. Below is my configuration with multicast routers denoted by asterisks: ======++=====BackBOne <--in || -->out || HOST-A VIF Research Subnet HOST-B ------++---------- --------------------- || ---------- |sparc* | ethernet | freebsd 2.1 * | || |sparc | | 128.194.169.93 |-----------|169.53 166.4 |---++-------| 166.5 | | 3.8 | | 3.3 | || | | ------------------ --------------------- || ---------- Its' default gateway is freebsd How can I get correct bandwidth for the second case ? Is it possible or not to get it ? And where can I get some information for hacking the multicasting function in FreeBSD ? Any comment will be very appreciated. Thank you for your kind attention ! Best regards, Jo, SanKu Texas A&M University. Http://ee.tamu.edu/~skjo