From owner-freebsd-net Fri Mar 30 20:16:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from filk.iinet.net.au (syncopation-dns.iinet.net.au [203.59.24.29]) by hub.freebsd.org (Postfix) with SMTP id 7358E37B719 for ; Fri, 30 Mar 2001 20:16:47 -0800 (PST) (envelope-from julian@elischer.org) Received: (qmail 23254 invoked by uid 666); 31 Mar 2001 04:18:42 -0000 Received: from i003-029.nv.iinet.net.au (HELO elischer.org) (203.59.3.29) by mail.m.iinet.net.au with SMTP; 31 Mar 2001 04:18:42 -0000 Message-ID: <3AC55A1E.8C6C68D9@elischer.org> Date: Fri, 30 Mar 2001 20:16:30 -0800 From: Julian Elischer X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 5.0-CURRENT i386) X-Accept-Language: en, hu MIME-Version: 1.0 To: s2209866@cse.unsw.edu.au Cc: bmah@FreeBSD.ORG, freebsd-net@freeBSD.ORG Subject: Re: How to find the bandwidth between two machines under freeBSD? References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Daniel Wong wrote: > > Hi, > > So if I need to code some traffic control algorithm under the IP layer in > the kernel, how do I determine how fast a particular interface goes. ie how > much bandwidth the interface has?? Also, what unit will this value be in?? I > was considering using MTU in the ifnet struct, but not sure how to use this, > and how it can be calculated along with the member baudspeed. I faced exactly this problem. if you have a stabdard inerface (e.g. ethernet) then you can actually ask it, but for serial interfaces of various kinds the best you can do is try keep a record of the highest bandwidth seen on the device in the past. > > Regards and Thanks > Dan > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-net" in the body of the message -- __--_|\ Julian Elischer / \ julian@elischer.org ( OZ ) World tour 2000-2001 ---> X_.---._/ v To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message