LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 12-03-2008, 12:37 PM   #1
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Rep: Reputation: 31
Question How do I detect where network problems are occurring?


I'm frequently having problems with slow network speeds. I was wondering if someone has a definitive system/procedure or program for detecting where and what is happening?

I know if I do a traceroute I can find the latency between me and every hop. But how do I detect if something else is the problem or where? Especially for systems I don't have admin access too? Is there a way to detect throttling or bit-shaping and to see which hop is doing this?

There is a few reasons I ask this:

1. I have 2 - 5MBit/s DSL lines. If I download from my server (which is supposed to be 20Mbit/s) on the web using two connections I should get a combined speed of ~10MBit/s. I usually only get a top speed of 5Mbit/s. I want to figure out which piece of equipment is causing the problem.

2. My server out on the web keeps dropping to speeds of 40kB/s. I know they are running it on a Virtual machine. So I want to see if it's a problem in my area or theirs.

3. I know Bell throttles bit-torrent connections after 4:00 pm for all their third party vendors. Sometimes I see similar slow downs with http and ssh connections. I want to try to track down where it's being held up to see if it's the throttling or bit-shaping causing a problem.
 
Old 12-03-2008, 03:42 PM   #2
tidww01
LQ Newbie
 
Registered: Dec 2005
Posts: 19

Rep: Reputation: 0
I don't think there is a product that will do what you want. You would have to have a point of presence on the routers themselves. For number one, I don't think it works that way. If you have 2 5MB lines then it's going to pick one, not combine them. I've seem software that combines lines for greater throughput, but even then it's more of traffic cop kind of approach. Send traffic down different lines so it doesn't get congested. For number 2, are you ever getting better than 40KB? I can't see how it would be your problem. If number 3 I read in that you imply the hosting company is restricting bandwidth based on how much you pay them probably. That sounds like your problem. They are over subscribed and you don't pay them enough. Find a new one.
 
Old 12-03-2008, 11:35 PM   #3
curtisa
Member
 
Registered: Oct 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 33

Rep: Reputation: 16
Whilst I'm not sure these will tell you exactly what's causing a network problem they might help you to localize it. I use Nagios (http://www.nagios.org/) to monitor hardware/routers/virtual servers and MRTG (http://oss.oetiker.ch/mrtg/) to monitor individual ports on my router, DSL modem and the network traffic on them.

I found both fairly easy to setup on ubuntu and they have certainly helped me to see traffic spikes and when I've got low or no bandwidth (eg when my DSL line gets lost or reset I can get an alert).

-Alex
 
Old 12-04-2008, 12:48 AM   #4
hasanatizaz
Member
 
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Blog Entries: 1

Rep: Reputation: 35
if you are not using ipv6 disable it,sometimes it is the cause.
 
Old 12-04-2008, 09:30 AM   #5
MikeyCarter
Member
 
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492

Original Poster
Rep: Reputation: 31
Great suggestions thanks. I use nagios for doing various monitoring, and mrtg only works if you have access to snmp (and it reports correct figures) But I'll have another look.

As for my dual wan router. The way it works is it sends traffic by choosing whichever line has the least amount of traffic on connection. However, the test case I used, I set up the download to pull through both IP addresses thus using both lines. I only got 5MBit/s. If I then started surfing the web or downloading from somewhere else I got 7-9MBit/s total reported from my router. IF I setup an iperf on one line (one IP) I get 5MBit/s, if I test the other line I get 5MBit/s. If I test both at the same time I get ~2.5MBit/s from each. However, if I test using ipref from my machine and somewhere else I can get higher than the 5MBit/s. (Just don't have two places with a full 5Mbit/s upload rate)

Am I getting better then 40KB/s. When I tested this last I was getting 20,000 KBit/s (2.4 MBytes/s) up and down. I just tested it now and I'm getting 5,000 KBit/s (625 KBytes/s) down and 1,000 KBit/s up. Just waited a few minutes and now I'm getting 500 KBit/s down and 602 KBit/s up.

As for my ISP. I use a third party company called acanac.net. I pay for unlimited, untrottled internet. However, the company acanac.net rents their lines from (Bell.ca) who as decided they don't want anyone to offer any service better then they do, so they do all sorts of nasty stuff to the lines. (Big legal fight going on about that) So I'm left with the problem of detecting when a slowdown is something I've miss-configured or their bit-shaping stuff bleeding into areas it shouldn't (as it often does)

What I'm looking for is not so much a single solution to all my problems but if anyone has a good system or procedure they follow to detect problems. An instruction page I could follow.

Ie: for Oracle if I want to trace a problem the first thing we do is run a SQL Trace. Then from there a start analyzing each statement with a problem to check for indexes and such.
 
Old 12-04-2008, 01:58 PM   #6
estabroo
Senior Member
 
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,126
Blog Entries: 2

Rep: Reputation: 124Reputation: 124
iperf is another tool you can use to look at network performance, you'll need a box on the outside though. It'll let you see if you are dropping packets.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Grub Error 18 repeatedly re-occurring since an install. Siljrath Linux - Newbie 6 12-14-2007 09:46 AM
How to modify existing network boot cd, cannot detect new network card driver. hocheetiong Linux - Newbie 0 12-05-2007 07:06 AM
ext3 related kernel panic (keeps occurring) cygnus-x1 Linux - General 8 10-12-2007 01:07 PM
Network tool to detect network traffic? cucolin@ Linux - Networking 2 07-30-2007 04:28 PM
Network icon to detect wireless network is gone Micro420 SUSE / openSUSE 1 01-28-2006 02:14 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration