I have two potential solutions here. First, simply check netstat -an to
see if there are any background applications sucking bandwidth (e.g.
Ubuntu auto updater, or a long forgotten torrent client). If this comes
up with nothing, there is a way to use curl to figure out what part of
web browsing is causing the hangup.

Curl instructions:

Just in general you can debug http(s) using curl with the -w option but here is 
a small config file that should make it easy.
First, if you haven't already installed curl, do so with sudo apt-get install 
curl
Second, create a file called curl-timing.cfg in your home directory.

In that file paste:

\n
      DNS lookup                                                   :  
%{time_namelookup}\n
      Connect to server (TCP)                             :  %{time_connect}\n
      Connect to server (HTTP/S)                      :  %{time_appconnect}\n
      Time from start until transfer began      :  %{time_pretransfer}\n
      Time for redirection (if any)                     :  %{time_redirect}\n
      Total time before transfer started          :  %{time_starttransfer}\n
\n
             Total time                                              :  
%{time_total}\n
             Size of download (bytes)                    :  %{size_download}\n
             Average d/l speed (bytes/s)              :  %{speed_download}\n
\n

Then, try to download any url, suppose you used google, substituting in your 
country top level domain for .com:
     curl -w "@curl-timing.cfg" -o /dev/null -s http://www.google.com/

And the output will look something like:

DNS lookup                                          :  0.012
  Connect to server (TCP)                  :  0.031
  Connect to server (HTTP/S)            :  0.000
  Time from start until transfer began  :  0.031
  Time for redirection (if any)              :  0.000
  Total time before transfer started  :  0.098

         Total time                               :  0.117
         Size of download (bytes)        :  14527
         Average d/l speed (bytes/s)     :  124347.000

Compare the results to fetching an Indian server from the US, or
elsewhere:

$ curl -w "@curl-timing.cfg" -o /dev/null -s http://india.gov.in


  DNS lookup                          :  0.377
  Connect to server (TCP)             :  0.716
  Connect to server (HTTP/S)          :  0.000
  Time from start until transfer began:  0.716
  Time for redirection (if any)       :  0.000
  Total time before transfer started  :  1.974

         Total time                   :  3.650
         Size of download (bytes)     :  34345
         Average d/l speed (bytes/s)  :  9408.000

If curl gives good results overall after testing multiple websites, the
issue will be in the browser itself, not TCP/HTTP or a network issue.

Hope this helps
~qbalazs

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1208219

Title:
  browsing is slow

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+bug/1208219/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to