Measure Network Performance: iperf and ntop - www.enterpriseitplanet.com

来源:百度文库 编辑:神马文学网 时间:2024/04/24 08:49:39

Storage Daily
Security Daily
Networking Daily
FREE NEWSLETTERS
  Storage Home Features News Products Discussion Downloads Networking Home Features News Products Discussion Downloads Security Home Features News Products Discussion Downloads Resources Home Networking Links Security Links Storage Links Mainframe Links SMS Scripts Win Scripts SQL Scripts IT Preparedness 101 Storage Management Essentials AntiOnline Security Spotlight IT and the Language of Business Review Roundup Forums Home Networking Storage Disaster Recovery Planning Security IT Management Product Guide Home Networking Security Storage » Storage » Networking » Security » Resources » Special Reports » Discuss IT » Product Guide Videos EIT Green Blog Site Map Technology Jobs


internet.commerce Be a Commerce Partner















internet.com IT
Developer
Internet News
Small Business
Personal Technology

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers



Related Articles •Measure Network Performance with iperf

Networking Products  Asset Tracker for Networks (Alchemy Lab)
 Live Messenger Sniffer (NGS Software)
 Compress PST File (Compress PST File)
 TSplus 2010 (Terminal Service Plus)
 TSplus (Terminal Service Plus)
 Trackback Submitter (Adikit, Inc.)
» Enterprise IT Planet » Networking » Networking Features

Measure Network Performance: iperf and ntop

By Carla Schroder
February 6, 2007

Email Print Digg This Add to del.icio.us

Last week we learned how to use iperf to measure network throughput, jitter, and datagram loss. Today we're going to learn more excellent ways to measure network performance using iperf and ntop, but first I have a couple of corrections to make.

OpenWRT, Little Blue Boxes, and Heavy Loads

In Tips and Tricks for Linux Admins: The State of the Tiny I said that those little Linksys boxes don't handle high loads well, especially peer protocols like Bittorrent. A reader kindly noted that this is not necessarily a hardware problem:

"The stock Linksys firmware and many derivatives, does not properly configure the firewall and the kernel for P2P traffic, specifically the connection tracking in iptables. It is not the fault of the router, but a configuration in the software... the WRTSL54GS has a 266Mhz processor, and a separate Ethernet interface channel for the WAN port, and it is my belief that this platform can handle P2P traffic without a problem, given the appropriate configuration."

 

Which is but one of many reasons why so many users are blowing away the stock firmware on these devices, and replacing it with OpenWRT, DD-WRT, and so forth. This same excellent reader also notes that

"...the Linksys devices actually come with a 5-port switch, and use VLAN tagging to assign 4 ports to the LAN VLAN (plus the wireless), and one port to the WAN VLAN. You can change the VLAN assignment easily with OpenWrt."

 

SSH Everywhere

One more bit of clarification- in Part 1, I neglected to mention that I was running all those nifty iperf commands from my main workstation via ssh. I'm so used to running everything remotely from my main workstation I forget that not everyone does this. Thank you to "??puzzled reader??" for asking about this.

iperf Over the Internet

You can run iperf over the Internet as well as over your LAN. It's invaluable for seeing what's happening over a WAN link, whether it's a nice expensive dedicated link, or an OpenVPN tunnel over the Internet, or what-have-you. The best way is to have iperf on your border router. iperf is included with Pyramid Linux, and if your Linux-based router doesn't have it just copy the iperf binary to it. It doesn't need any special libraries, so any Linux system should already have what it needs.

I must divert briefly to a fascinating tangent. Running ldd /usr/bin/iperf on a system where it is already installed shows which libraries it depends on. The very first one listed is this:

 linux-gate.so.1 => (0xffffe000) 

If you search for this you won't find it, because it does not exist. Read What is linux-gate.so.1? to learn a bit of fascinating kernel lore.

Now, getting back to running iperf over the Internet. Just use it in the usual way, except you'll be using Internet addressing:

 admin@router1:~$ iperf -s user@remotepc:~$ iperf -c router1.yourdomain.com 

IP addresses work too. You'll want to make sure that ports TCP/UDP 5001 are open in your firewall, or whatever ports you tell iperf to use. Don't forget to consult /etc/services for available ports, and to keep track of any custom ports you're using.

Go to page: 1  2  Next  

Email Print Digg This Add to del.icio.us

Networking Features Archives


     Enterpriseitplanet Forum Topic By Replies Updated New Network Design, Which routers/Switches? geejay 2 6-7-2010 07:46 AM Use a Wireless router as a WIFI adapter trashguy 5 6-1-2010 04:57 PM using multiple static ip's on multiple applications adrianleo 13 4-29-2010 07:34 PM domain controller cant be contacted. Sina 10 4-9-2010 07:37 AM Can't Reach WAN IP From Laptop connected to anther network tounary 12 4-5-2010 11:30 AM



@charset "UTF-8"; /* CSS Document */ /* JOM CSS */ #jomfooter { border: 0; margin: 5px; padding: 5px; } #jomfooter * { font-family: Arial, Helvetica, sans-serif; padding: 0; margin: 0; } #jomfooter img { border: 0; behavior: url('/icom_includes/footers/css/iepngfix.htc'); padding: 5px; padding: expression('0'); } #jomfooter p { font-size: 11px; line-height: 20px; margin: 10px; } #jomfooter form b { font-size: 12px; } #jomfooter a { text-decoration: underline; } #jomfooter a:hover { text-decoration: none; } #jomfooter table td { border: 0; } /* GEMS Solutions CSS */ #jomfooter #solsect { margin: 0 auto; padding: 10px 0; width: 720px; } #jomfooter #solsect .top { background: url('/icom_includes/footers/soltopbg.gif') repeat-x #bbb; height: 26px; margin-bottom: 1px; } #jomfooter #solsect .top a { font-size: 16px; font-weight: bold; color:#333; text-decoration:none; margin-left: 5px; padding: 0; line-height: 25px; } #jomfooter #solsect .top a:hover { text-decoration: none; } #jomfooter #solsect .solsectpad { background: #fff; } #jomfooter #solsect .solsectpad .main { background:url('/icom_includes/footers/solmidbg.gif') repeat-x #e7e8e3; padding: 5px; margin-bottom: 1px; } #jomfooter #solsect .solsectpad .main h2 { font-size: 12px; color: #000; font-weight: normal; padding-bottom: 3px; } #jomfooter #solsect a { color: #333; font-size: 10px; text-decoration: none; line-height: 13px; } #jomfooter #solsect a:hover { text-decoration: underline; }


The Network for Technology Professionals

Search:

About Internet.com

Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers

Solutions

Whitepapers and eBooks

Helpful Cloud Computing Resources
Article: Key Cloud Computing Cost Considerations
Article: Microsoft SQL Server 2008 Express--A Free, Powerful Database for Web Development
Article: An Introduction to Hyper-V Virtualization
Protecting Lost or Stolen PCs
Article: Create a Contact List Application with Multi-Touch
PDF: Getting Ahead of Malware
Microsoft PDF: Fact-Based Comparison of Hosted Services: Google vs. Microsoft
MORE WHITEPAPERS, EBOOKS, AND ARTICLES

Webcasts

The Intel PC Total Cost of Ownership Estimator
Video: Disable Lost PCs and Data Remotely
Intel Video: Protecting Lost or Stolen PCs
MORE WEBCASTS, PODCASTS, AND VIDEOS

Downloads and eKits

Download: Windows Azure SDK
60-Day Trial: Microsoft Office Professional Plus 2010
HP PartnerONE | SolutionsINFINITE
MORE DOWNLOADS, EKITS, AND FREE TRIALS

Tutorials and Demos

Guide: Recommendations for Implementing Cloud Security
Article: Explore Application Lifecycle Management Tools in Visual Studio 2010
Internet.com Hot List: Get the Inside Scoop on IT and Developer Products
New Security Solutions Using Intel(R) vPro(TM) Technology
All About Botnets
MORE TUTORIALS, DEMOS AND STEP-BY-STEP GUIDES