In the last three month I was experiencing that my internet connection started to get very slow and websites had long time to load. The first thing I made was an ping to www.google.com which showed that I was loosing pakets. Here some of the results:
64 bytes from 74.125.39.103: icmp_seq=2909 ttl=53 time=48.222 ms
Request timeout for icmp_seq 2910
Request timeout for icmp_seq 2911
64 bytes from 74.125.39.103: icmp_seq=2912 ttl=53 time=44.372 ms
Days later I had to reset my router because it wasn't able to establish a correct network connection. It was after the reset when things worked again for some days. But later the same network timeouts started to happen again.
I would like to know how I can analyze the problem to get to the source which is causing this timeouts. Which steps do you take to circle in this Problem?
My Network
Laptop -> Wireless Router modem -> ISP
EDIT: I am on a Mac OS X 10.6
Look at using
mtr
on your OSX system.It is very helpful tool that repeatedly does a
traceroute
, storing the information about each hop along the way.So, in the end, you have a list of the "x" number of hops, their availability/packet loss and average, min, and max ping times.
Syntax for "interactive" mode is simply
or for easier offline analysis,
You can get info on how to install
mtr
from: http://mtr.darwinports.comSample output:
Use traceroute (tracert in windows) against Google. This effectively gives you the latency to each hop between you and Google, and will give you an idea if it is your router, or further upstream.
Call your ISP. They can be surprisingly helpful.
First off, use a
traceroute
. Assuming you're using Windows, it'stracert www.google.com
.You may have to do several, but it will show how far your packets are going before they fail to get a response.
There's a good chance that you're going to have intermittent packet loss, which makes troubleshooting a massive PITA. It may help to A) Try your laptop connected directly to the cable modem, B) try a wired interface on your router, and C) try a different network entirely.
This helps determine if its your router (A), WiFi (B), or ISP/Cable Modem (C).
We where having problems with out of our Comcast business connections to a small site. Comcast was not very helpful when we contacted them because we didn't have data. Showing the problem.
So we setup a instance of smokeping and set it up to something on the comcast network a few hops away. We showed the smokeping graph to Comcast which was pretty consistently showing 10-15% packet loss. They tried lots of things, but eventually they discovered the wire between the poll and the building was bad. The point here is that you may need to collect a lot of data over time and graph it. A simple trace route may not be enough. Particularly if the issue is intermittent.
Of course please start off by doing the obvious and watch your connection to make sure you don't have any malware or crap on your machine that is saturating the link.