Internet connection trouble shooting: cheap and easy
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
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.
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.
Distribution: RPM Distros,Mostly Mandrake Forks;Drake Tools/Utilities all the way!GO MAGEIA!!!
Posts: 986
Rep:
Internet connection trouble shooting: cheap and easy
I'm having enough problems with certain sites that I need to find out what the problems is. I have the newest browsers on XP , outdated by one release on my newest Linux distros and some sites are so problematic that they are almost useless ,images won't load ,java won't work etcetera.I think it's my ISP but I would like to know specifically. I'd like to be able to know the entire route of the packet I guess.
What is the basic approach to poking at this problem in what I would imagine is BASH commands?
Thanks in advance!
Last edited by theKbStockpiler; 02-07-2013 at 04:34 PM.
Are you saying web sites load in one OS but not the other? If so, it's unlikely your ISP is to blame.
In order to load a web page, the browser must first resolve the site name into an IP address. That requires a working DNS resolver in the OS, which means the OS must be configured to use one or more working DNS servers. An incorrect DNS server entry can cause considerable delays as the OS waits for the request to time out.
You can test the DNS resolver with the host, dig or nslookup commands. nslookup www.somesite.com should return the IP address of the web server. If it doesn't or if it takes more than a second or two, check your DNS settings.
Once the name has been resolved, a TCP connection must be established to the web server. Since the server is not on your local network, the IP packet must be routed through a gateway. Misconfigured IP parameters (wrong netmask, more than one default gateway) can cause failures and/or delays.
traceroute www.somesite.com will show you the path an IP packet has to traverse to reach the server.
You can use telnet or nc (netcat) to simulate a web browser connection to TCP port 80. telnet www.somesite.com 80 should return "Connected to www.somesite.com". An error message means no TCP connection could be established.
A possible source of TCP connection delays is a non-functional dual stack configuration. As you may know, the next-generation IP protocol, IPv6, is being deployed on the Internet. Not all ISPs support IPv6, though. If your OS is configured to use both IPv4 and IPv6 (dual stack) and the site in question supports IPv6, the web browser may attempt to connect using IPv6 rather than IPv4. If your ISP is still stuck in the dark ages doesn't yet support IPv6, the browser will have to wait for the IPv6 connection to time out before falling back to IPv4.
ping6 ipv6.google.com should tell you if your OS supports IPv6. A reply means all is fine, "timeout" or "destination unreachable" means you have no IPv6 route and should probably just disable IPv6 altogether.
Finally, you may also want to check the proxy settings in the browser, although an incorrectly configured proxy setting would usually result in total loss of web connectivity.
I'd like to be able to know the entire route of the packet I guess.
If you want the "route" a packet takes then forget about ping (ICMP) and traceroute (UDP) and instead tcptraceroute to the web server address and port (or use lft or maybe hping).
Quote:
Originally Posted by theKbStockpiler
java won't work
...exactly like it should. Given the recent "unfortunate incidents" I wouldn't change that.
Quote:
Originally Posted by theKbStockpiler
I'm having enough problems with certain sites that I need to find out what the problems is. (..)some sites are so problematic that they are almost useless ,images won't load ,(..) etcetera.I think it's my ISP but I would like to know specifically.
Checking if something goes missing along the way could be done by fetching the page with cURL and comparing it with the source the browser shows. That's 'diff' usage basically. An on-line HTTP page or header checker may come in handy as autonomous reference. On top of that you can use on-line tools like tools.pingdom.com/fpt/ or in-browser tools like Firebug (Firefox) or Dragonfly (Opera) for page load analysis.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.