How I used Linux network tools to solve real problems
Computerworld - Previously, I explained how to use a computer that others have cast off as being unusable as a powerful network analysis tool.
By combining the Linux distribution Fedora Core with the open-source packages libpcap, tcpdump, iptraf and Multi Router Traffic Grapher (MRTG), I demonstrated how useful statistics on network usage and trends can be obtained.
In this final installment of the series, I present examples based on actual cases I've encountered where these tools were utilized to solve the problem.
Slow connection
In the first example, a small network with a 384Kbit/sec. ISDN connection to the Internet was slow at best and unusable at worst. The LAN performance was fine; only Internet traffic was affected.
In all network troubleshooting situations, an understanding of the network topology is paramount to place the sniffer at the appropriate location. This wasn't a network I was familiar with, so I performed a walk-through with the network administrator. The network was simple: one private subnet NATed to a single public IP address, distributed by two hubs and a switch with a couple of local servers off the switch, and a connection from the switch to the ISDN Internet router, as shown in Figure 1.
Figure 1: First example network diagram
![]() (Click image to see larger view) |
As port mirroring wasn't an option on the 100Mbit/sec. switch, I took out a minihub from my network tool bag (everyone carries one, right?) and placed it inline between the 100Mbit/sec. switch and the ISDN router as shown in Figure 2. True, this changed the original network topology, but since port mirroring (whereby all traffic seen on one port is copied to another) was not available, the hub placement was the best alternative. There are advantages to this method, as port mirroring will not show physical layer errors, but generally I prefer port mirroring.
linux network analyzer fedora libpcap iptraf mrtg multi router traffic grapher problems troubleshooting nat slammer napster Address Resolution Protocol media access control port
Additional Resources



Learn the important issues you must consider before starting your next mobility initiative. Get your mobility white paper from IDC now, compliments of Sybase.
White Papers & Webcasts
Death to PST Files
Download Now
Business Process Framework Demo
Learn about Configurable Business Processes and Calculated Fields. Watch Now!
A Green Architectural Strategy That Puts IT in the Black
Levergage green computing across your data center. Read more now.
Manager Experience Demo
Go beyond self-service solutions to perform more effectively. Watch Now.
Quantifying the Business Value of VMware View
Learn why you should invest in a centralized virtual desktop.
WAN Optimization as a Managed Service: More than Network Cost Savings
View this Webcast Now!
Forrester Consulting Mobility Study: Taking Control of Enterprise Mobile Device Diversity
Download Now
Asia-Pacific Enterprise Network Solutions
Learn through this Webcast how your business can achieve reliability, performance and value in hard-to-reach locations within the Asia-Pacific region.
What IT Must Do to Support Employee-Owned BlackBerry, iPhone and Android Mobile Devices
Download Now
Mainsoft Webcast w/ Forrester Research: Drive SharePoint Adoption in Lotus Notes Shops
How can you drive mainstream user adoption of Microsoft SharePoint when your users rely on Lotus Notes?


