From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,61cfc2d6dab7e59 X-Google-Attributes: gidfee84,public From: Steve Cribbs Subject: Re: ifconfig Date: 1999/03/10 Message-ID: <36E5DCA9.D3B1CE9A@telusplanet.net>#1/1 X-Deja-AN: 453229532 Content-Transfer-Encoding: 7bit References: <36E4881E.71302A49@telusplanet.net> <7c3k41$hqi@ds2.acs.ucalgary.ca> Content-Type: text/plain; charset=us-ascii X-Trace: news0.telusplanet.net 921033882 161.184.224.177 (Tue, 09 Mar 1999 19:44:42 MDT) MIME-Version: 1.0 Reply-To: cribbs@telusplanet.net NNTP-Posting-Date: Tue, 09 Mar 1999 19:44:42 MDT Newsgroups: comp.unix.osf.osf1 Thanks, Serguei. I had a feeling that I was misinterpreting the term "simplex". I'll look into lmbench. /Steve Serguei Patchkovskii wrote: > Steve Cribbs (cribbs@telusplanet.net) wrote: > : During boot-up the system reports that communication port to be > : running in full duplex mode and the ifconfig man page lists speed 200 as > : the option that should configure 100 Mbps full duplex. However, command > : ifconfig tu0 always reports that the device is running in simplex mode. > > if you mean this bit: > > # ifconfig tu1 > tu1: flags=c63 > ^^^^^^^ > inet XXX.XXX.XXX.XXX netmask ffffff00 broadcast XXX.XXX.XXX.XXX ipmtu 1500 > > then I think you are misinterpreting what ifconfig is trying to > tell you. If you look into /usr/include/net/if.h, you will see > that SIMPLEX is defined as: > > ... > #define IFF_SIMPLEX 0x800 /* can't hear own transmissions */ > ... > > i.e. it is set if the device is CAPABLE of running in the full-duplex > mode regardless of whether it is running full-duplex or not. I am not > aware of any way of quering DU ethernet driver for the mode it is running > in, except for the obvious one of actually *measuring* the bandwidth > between two nodes. (I would be glad to be corrected on this point). > > Measuring the bandwidth may be not quite trivial (e.g. it is impossible > to approach it using a single rsh tcp connection, which the knee-jerk > reflex of a system administrator would suggest). Unless you really > want to go to the trouble of writing and debugging your own code, > Larry McVoy's lmbench will measure the network bandwidth quite > nicely. It is available at his home page (http://www.bitmover.com/lm/) > > Regards, > > /Serge.P