From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: alan.nguyen@au.transport.bombardier.com Newsgroups: gmane.os.tru64.managers Subject: SUMMARY:Network Bandwidth Utilization Date: Mon, 17 Feb 2003 10:37:27 +1000 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045438568 2381 80.91.224.249 (16 Feb 2003 23:36:08 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 16 Feb 2003 23:36:08 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18kYKM-0000c9-00 for ; Mon, 17 Feb 2003 00:36:06 +0100 Original-Received: (qmail 5968 invoked by uid 5); 16 Feb 2003 23:38:11 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5959 invoked by uid 49493); 16 Feb 2003 23:38:11 -0000 Original-Received: from alan.nguyen@au.transport.bombardier.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-3.1/5.0):. Processed in 0.472661 secs); 16 Feb 2003 23:38:11 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 16 Feb 2003 23:38:11 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAF00KY9DNKW3@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 16 Feb 2003 18:38:10 -0500 (EST) Original-Received: from demas002.adtranz.com (demas002.adtranz.com [213.68.98.31]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #30669) with ESMTP id <0HAF008C8DMYD7@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Sun, 16 Feb 2003 18:37:47 -0500 (EST) Original-Received: from de.transport.bombardier.com (demalng2 [53.191.115.105]) by demas002.adtranz.com (8.12.5/8.12.5) with SMTP id h1GNbjsb016423 for ; Mon, 17 Feb 2003 00:37:45 +0100 (MET) Original-Received: by de.transport.bombardier.com(Lotus SMTP MTA v4.6.7 (934.1 12-30-1999)) id C1256CCF.0081C8A2 ; Mon, 17 Feb 2003 00:37:35 +0100 Original-To: tru64-unix-managers@ornl.gov Content-Disposition: inline X-Lotus-FromDomain: TRANSPORT Xref: main.gmane.org gmane.os.tru64.managers:3342 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3342 Thank You to, Tom Webster, Jesper Frank Nemholt, Pat O'Brien, Paolo Lucente, Dominic Christopher, Charles Ballowe, for all your helpful advices, info, and hints especially Jesper, Tom and Charles. The original post: > I need to understand the basics of how to measure the Bandwidth Utilization of > the WHOLE network (Ethernet and FDDI). > > I have a copy of mrtg, but this shows only the incoming and outcoming packets > through that machine only , not the whole network performance. > The network bandwidth is 100 Megabit/second, measured in bit/sec, but the > netstat or collect tool show only the packets. So how many bytes in a packet ? > How to convert to bit/sec ? Helpful Info: Depending on what you are actually trying to do and the physical layout of your network, it's wither simple or near impossible. The first thing to realize is that in a switched network, like most modern Ethernet networks, it's impossible to see all of the traffic from a given node.* * Unless you do some really silly things that are going to mess with your network performance. What you can see is the aggregate throughput of the routers and switches on your network. It may be enough to show the throughput on the router that connects your Ethernet and FDDI networks is you are only looking for link utilization between those networks. If you are going to try to get an idea of how much traffic is on all parts of your network, you are going to need to have every switch report data. MRTG is the right tool for this, depending on the hardware and the measurements supported by the SNMP MIBs. In pretty much all cases, you should be able to get a measurement of the traffic going across the backplane of the switches measured in (M/K/bits per second). -------------------------------------------------------------- i think if you want stats for an entire network you have very little chances to do so, via a Tru64 machine. Tipically if you want "numbers" if could use accounting/snmp stats exported by switches/routers involved in sending back and forth your packets on your network. For example if you need some kind of statistics for your internet connection bandwidth utilization you should use accounting/stats utils common on most routers. If you need some kind of stats for your LAN/WAN utilization, SNMP stats exported by switches (exactly as you do it with a Tru64 machine) have a granularity of physical port connections: so if you export and publish all your stats on a single collector you should have the entire picture. An alternative solution for a LAN of small-to-mid sizes could be to have a single machine with a bunch of NICs, connected to a number of switches that replicate all traffic on the port that computer is connected on; so with some utility (not available for Tru64) and promiscuous mode you will be able to get numbers and times in a very rough form. Than you have only to process them to extract averages. -------------------------------------------------------------- Ethernet and FDDI can be both shared, switched and with/without duplex. On a shared network you'll need to monitor the hub that interconnect all machines. Ofcourse it needs to be a hub supporting SNMP to do so. On a shared network you _can_ simulate the same by putting the NIC in promiscious mode and thus see all traffic on the segment, but I doubt MRTG will allow to monitor it. On a switched network you'll need to monitor the switch, and it'll likely give statistics for each port plus a summary for all ports (backbone). --------------------------------------------------------------- It's a tough question to answer. It largely depends on network architecture. Are you on a switched network? Is it just hubs? What kind of switches? Double check the port settings on the switch and ensure they match you system -- it can have huge impact on performance. Also, if you have snmp capable switches, point mrtg at them. Pay close attention to the uplink port on the one that connects to your systems. Is the slowness between 2 boxen on the same switch or only from separated points of the network. Look for bottlenecks between the 2 endpoints. If mrtg isn't showing the port on your server as maxed out, odds are you're going to need more digging and a deeper understanding of your network architecture than I can guessa at. Alan.Nguyen@au.transport.bombardier.com