LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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

Reply
 
Search this Thread
Old 02-07-2013, 04:32 PM   #1
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 829

Rep: Reputation: 51
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.
 
Old 02-07-2013, 05:06 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,985

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 02-07-2013, 05:09 PM   #3
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,285
Blog Entries: 54

Rep: Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854Reputation: 2854
...additionally
Quote:
Originally Posted by theKbStockpiler View Post
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 View Post
java won't work
...exactly like it should. Given the recent "unfortunate incidents" I wouldn't change that.


Quote:
Originally Posted by theKbStockpiler View Post
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.
 
1 members found this post helpful.
Old 02-08-2013, 05:12 PM   #4
theKbStockpiler
Member
 
Registered: Sep 2009
Location: Central New York
Distribution: Fedora14,Scientific 6.1?, Mandriva 2010 ;GO MAGEIA!!!Next up Gentoo
Posts: 829

Original Poster
Rep: Reputation: 51
Thanks for the great replies!

I'll put your advice to work in the next couple of days and will post back with the results.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
trouble shooting lab for hardware mrmnemo Linux - Software 0 10-01-2010 10:59 AM
Trouble shooting grub hari85 Linux - Newbie 4 07-22-2010 02:22 AM
Shooting Trouble with Knoppix frankbell Linux - Hardware 2 06-21-2010 03:44 PM
need trouble shooting help for wlan0 (wg111v2) jpm1u Linux - Networking 2 07-06-2009 08:00 PM
Rhce trouble shooting binumvk Linux - Certification 3 06-23-2004 12:51 PM


All times are GMT -5. The time now is 10:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration