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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
12-03-2008, 01:37 PM
|
#1
|
Member
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492
Rep:
|
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.
|
|
|
12-03-2008, 04:42 PM
|
#2
|
LQ Newbie
Registered: Dec 2005
Posts: 19
Rep:
|
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.
|
|
|
12-04-2008, 12:35 AM
|
#3
|
Member
Registered: Oct 2005
Location: Switzerland
Distribution: Ubuntu
Posts: 33
Rep:
|
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
|
|
|
12-04-2008, 01:48 AM
|
#4
|
Member
Registered: Nov 2007
Location: Pakistan
Distribution: Redhat and Debian
Posts: 317
Rep:
|
if you are not using ipv6 disable it,sometimes it is the cause.
|
|
|
12-04-2008, 10:30 AM
|
#5
|
Member
Registered: Feb 2003
Location: Orangeville
Distribution: Fedora
Posts: 492
Original Poster
Rep:
|
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.
|
|
|
12-04-2008, 02:58 PM
|
#6
|
Senior Member
Registered: Jun 2008
Distribution: debian, ubuntu, sidux
Posts: 1,127
Rep:
|
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.
|
|
|
All times are GMT -5. The time now is 01:26 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|