From owner-freebsd-hackers Wed Jul 23 22:28:48 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id WAA09676 for hackers-outgoing; Wed, 23 Jul 1997 22:28:48 -0700 (PDT) Received: from mail.tamu.edu (mail.tamu.edu [128.194.103.28]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id WAA09667 for ; Wed, 23 Jul 1997 22:28:46 -0700 (PDT) Received: from dropzone.tamu.edu (dropzone.tamu.edu [165.91.210.99]) by mail.tamu.edu (8.8.5/8.8.5) with SMTP id AAA20790 for ; Thu, 24 Jul 1997 00:28:45 -0500 (CDT) Received: from jumprun.tamu.edu by dropzone.tamu.edu (SMI-8.6/SMI-SVR4) id AAA21496; Thu, 24 Jul 1997 00:24:23 -0500 Received: from localhost by jumprun.tamu.edu (SMI-8.6/SMI-SVR4) id AAA09709; Thu, 24 Jul 1997 00:28:53 -0500 Date: Thu, 24 Jul 1997 00:28:53 -0500 (CDT) From: "Jo, SanKu" To: freebsd-hackers@freebsd.org Subject: VIF : the bandwidth taken by multicasting packet (fwd) Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@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