Measure Network Performance: iperf and ntop - www.enterpriseitplanet.com
Security Daily
Networking Daily
FREE NEWSLETTERS
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 SchroderFebruary 6, 2007
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
The Network for Technology Professionals
About Internet.com
Legal Notices, Licensing, Permissions, Privacy Policy.
Advertise | Newsletters | E-mail Offers
Whitepapers and eBooks
Helpful Cloud Computing ResourcesArticle: 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 EstimatorVideo: Disable Lost PCs and Data Remotely
Intel Video: Protecting Lost or Stolen PCs
MORE WEBCASTS, PODCASTS, AND VIDEOS
Downloads and eKits
Download: Windows Azure SDK60-Day Trial: Microsoft Office Professional Plus 2010
HP PartnerONE | SolutionsINFINITE
MORE DOWNLOADS, EKITS, AND FREE TRIALS
Tutorials and Demos
Guide: Recommendations for Implementing Cloud SecurityArticle: 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