Abnormally slow network connections

Bug #663395 reported by Carroarmato0
40
This bug affects 6 people
Affects Status Importance Assigned to Milestone
Linux
Invalid
Undecided
Unassigned
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

In Ubuntu 10.10 with the latest updates, I noticed that initializing network connections takes ages to establish.

Symptoms are: Firefox and Google Chrome seem to take a long time to resolve the url. Pinging hosts also takes it's time.

Not only on the wireless network, but also on the ethernet connection.

I tested to make sure it's not hardware related by connecting from different places, trying to connect from other computers, and booting up Windows on my same laptop to make sure it's not hardware or ISP related.

I also performed DNS lookups by running nslookup and try to resolve the same different websites I've tried to reach through the browsers and ping, and DNS resolution happens instantly.

All my tests have led me to suspect the latest kernel version.

Note that once the connection is established, traffic flows at normal expected speed, untill another connection has to be started, then the waiting game repeats itself.

ProblemType: Bug
DistroRelease: Ubuntu 10.10
Package: linux-image-2.6.35-22-generic 2.6.35-22.34
Regression: Yes
Reproducible: Yes
ProcVersionSignature: Ubuntu 2.6.35-22.34-generic 2.6.35.4
Uname: Linux 2.6.35-22-generic x86_64
NonfreeKernelModules: nvidia wl
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: christophe 1937 F.... pulseaudio
CRDA: Error: [Errno 2] Nessun file o directory
Card0.Amixer.info:
 Card hw:0 'Intel'/'HDA Intel at 0xf6ffc000 irq 46'
   Mixer name : 'SigmaTel STAC9228'
   Components : 'HDA:83847616,1028022e,00100402'
   Controls : 27
   Simple ctrls : 18
Date: Tue Oct 19 19:13:37 2010
HibernationDevice: RESUME=UUID=a36bb1db-c6fa-49a8-ba15-964e29efb154
InstallationMedia: Ubuntu 10.10 "Maverick Meerkat" - Release amd64 (20101007)
MachineType: Dell Inc. XPS M1530
ProcCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.35-22-generic root=UUID=9ac7b930-2630-4cb9-91ba-c35ad7b56338 ro quiet splash nomodeset video=uvesafb:mode_option=1280x800-24,mtrr=3,scroll=ywrap
ProcEnviron:
 LANG=it_IT.utf8
 SHELL=/bin/bash
RelatedPackageVersions: linux-firmware 1.38
SourcePackage: linux
dmi.bios.date: 11/19/2008
dmi.bios.vendor: Dell Inc.
dmi.bios.version: A12
dmi.board.name: 0D501F
dmi.board.vendor: Dell Inc.
dmi.chassis.type: 8
dmi.chassis.vendor: Dell Inc.
dmi.modalias: dmi:bvnDellInc.:bvrA12:bd11/19/2008:svnDellInc.:pnXPSM1530:pvr:rvnDellInc.:rn0D501F:rvr:cvnDellInc.:ct8:cvr:
dmi.product.name: XPS M1530
dmi.sys.vendor: Dell Inc.

Revision history for this message
Carroarmato0 (carroarmato0) wrote :
Revision history for this message
Marius-Andrei Danila (ma.danila) wrote :

I can confirm similar problems on a fresh install of ubuntu 10.10. All internet browsers (chromium, firefox, firefox 4, opera) initially work fine but after loading 2-3 pages they become slow and frequent timeout errors occur.

Revision history for this message
Nikola Yanev (gericom) wrote :

same here too, though too that's my intel gigabit card problem but, when i try with my other card it was the same slowly, even sites from my countries are resolced for long, long time, even my speed is about 60-80 Mbit/s. About the pings here it tooks 4 minutes for 1 ping to google ?! The browsers i tried are all available here. plus the essential firefox from mozilla's site, the strange it that transmission is working on full speed o_O

Revision history for this message
Nikola Yanev (gericom) wrote :

same here too, though also that's because my ethernet intel gigabit card problem but, when i try with another card it was the same slowl, even sites from my country are resolved for long, long time, even my speed is about 60-80 Mbit/s. About the pings here it tooks 4 minutes for 1 ping to google ?! The browsers i tried are all available here. plus the essential firefox from mozilla's site, the strange it that transmission is working on full speed o_O

PS: Sorry for the typo errors, it's 1am here and i am almost sleeping :D

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

I tried reverting back to the 2.6.35-22.33 (maverick) kernel, but with no noticeable result.

However, I've noticed that internet connection in an Virtual Machine (vbox) running Lucid on the same host laptop, is able to achieve fast connections as expected.

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

After doing some research, I finally found out that IPv6 is causing the huge delay in resolving url's.

IPv6 is enabled by default and apparently is the first IP protocol used for which to resolv url's.

Most people aren't using IPv6 yet, so attempting to resolv over IPv6 will result in a huge delay untill the system stops trying and falling back to IPv4.

This is the reason why the connections after waiting long enough will succeed.

Also, ping uses ipv4, that's why it works (ping6 being the ipv6 counterpart).

Now,

**************** WORKAROUND ****************
Disable IPv6 entirely

In a terminal, do this: cat /proc/sys/net/ipv6/conf/all/disable_ipv6
0 means IPv6 is enabled, we want it to become 1 (disabled) and make the change permanent.

Open up the following file like this: sudo gedit /etc/sysctl.conf
And add the following lines:

#Disable IPv6
net.ipv6.conf.all.disable_ipv6 = 1
net.ipv6.conf.default.disable_ipv6 = 1
net.ipv6.conf.lo.disable_ipv6 = 1

Now reboot the system, and connectivity should be snappy as expected.
*******************************************************

Although these settings have to do with the kernel configuration, I think that it's up to Network Manager to figure out if resolving through IPv6 is appropriate. So flaging this as a Network Manager Bug because IPv6 is being used even if it's flagged as "Ignore" under the connection settings.

Revision history for this message
Augusto Delgado (adtech247) wrote :

Confirmed here too. I have a dell workstation t5400. Firefox and any other browser and event apt-get will take a while before it resolves the site or IP address. I have checked and make sure it's not my network. In addition i have also checked the resolv.conf but nothing everything is pretty much the same as all the other ubuntu systems I have.
Mind you that i was running 9.04 and did a clean install/update. Everything works except for the Network connectivity it. I am using conky to monitor the stats for my NIC and it shows that Eth0 to be really slow average is 1.5Kib and from time to time it drops completely to 0b or between 9B to 80b ...not even 1K.
I have tried disabling ipv6 using the command above from "Carroarmato0 " no luck ....

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

@Augusto, sounds like you're having other issues than dns. Do you still get the same very slow connection even when downloading things?

Revision history for this message
Augusto Delgado (adtech247) wrote :

I will have to check how the downloading part goes... i have not tried to download any apps yet...
I'm going to check my dns settings again... if it was a DNS issue how can i go about troubleshooting... ?

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

To test DNS, you can use nslookup. It's a commandline tool for querying dns servers.

1) Open up a commandline and type in "nslookup" and pressing enter (a prompt should appear waiting for input)
2) type in url's like google.com, facebook.com or ubuntu.com, etc... etc... followed by and enter
3) You should be getting responses in about under 1 second for each query
4) exit with "exit"

If you get near instant responses, that means that DNS (over ipv4) is ok.

Should you get very long response times, you're probably experiencing a different kind of issue than explained in the bug report.
If this is the case, try changing Dns servers, for example OpenDNS.

You can switch DNS server(s) by manually editing your connection in Network Manager, and selecting IPv4 "Automatic, only addresses".
You should be able to edit the "DNS server" field.

In there you can enter the following IP's: 208.67.222.222, 208.67.220.220
and repeat the testing process with nslookup

Again if that fails, than I believe you are experiencing a different kind of problem.

Revision history for this message
Rafael Machado (rafael-tune) wrote :

Same problem here with Ubuntu 10.10
In windows I have full internet speed (500k)
in Ubuntu I can reach max 80k

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

Unfortunatly, the workaround disabling ipv6 seemed to work once. Now with ipv6 disabled, nothing has changed. Still slow connections

Revision history for this message
Carroarmato0 (carroarmato0) wrote :

As a last attempt, I reinstalled Ubuntu 10.10, updated everything, and report back that the bug is gone.

I have no idea what might have caused it

Revision history for this message
Lucio (lumatemp-nospam) wrote :

Dell Latitude D620 with ubuntu 10.10, security and recommended upgrades applied.
I had the same problem since first installation of 10.10, while no problems were present in 10.04: slow ping, high latency, slow speed, also connecting to the very home page of my router.
I tried all I could, also disabling IPv6 either in firefox and in grub, but nothing happened.
The problem is so relevant that I just downgraded to Lucid 10.04.
Very frustrating...

Revision history for this message
Orlando (holwerda-inc) wrote :
Download full text (6.2 KiB)

Hello everyone, my name is Orlando, and I am a new user of Ubuntu. I do not know very much about computers but believe that I have solved my slow browsing speed and web related loading issues after persistent research.

I approached this problem with a very simple method that I always use, called the scientific method, which consistently works for virtually every aspect of scientific knowledge; and in this case, computer science.

Step 1: Identify The Problem

Clean and full install of Ubuntu 10.10 results in slow internet connection speed, and slow loading time, including browsing glitches, random dns search reroutes; as well as pages loading quickly while images lag, flash glitches and lack of functionality in video streaming.

Step 2: Research Possible Solutions

Most forums were addressing and pointing to issues which pertain to disabling ipv6, however some forums also included posts that stated ipv6 was not the only issue, but dns, internet configuration, application malfunction, and firefox bugs.

Step 3: Hypothesis

To rule out any peripheral problems, my hypothesis is that one should make sure that their ubuntu 10.10 installation cd is in good working order by opening up the files in the cd and checking to see that everything is there. One should reinstall ubuntu 10.10, just to be further meticulous. One should have their internet service provider run a signal test to your modem to make sure your signal is normal. One should reset their modem, and reboot their computer to make sure everything is reset. One should thoroughly manage and install updates and synaptic packages to the newly, fully installed ubuntu 10.10, as well as install adobe flash, and reboot their computer to ensure that ubuntu 10.10 has all the resources at its disposal, and fully loaded before attempting to troubleshoot the browsing issue.

Once the everything is set up, one should do a quick surf of the internet to confirm that the browsing problem is still their and that problem solving should go continue.

Now, after reviewing most of the online posts and notes, I realized that the disabling of ipv6 was noted in most posts, for "resolved". My hypothesis, therefore, is that ipv6 should definitely be disabled. However, because dns issues were also reported, my hypothesis is that a dns test should be run before trying to disable ipv6. Once dns is found to be working properly, one should follow up by disabling ipv6. Although rebooting after disabling ipv6 might have worked for some, many reported that it only worked temporarily, or not at all, therefore my hypothesis is that firefox should be reconfigured to authenticate the disabling of ipv6 as well.

Step 4: Experiment

First, I ran a dns test in accordance with notes provided by CARROARMATO0

"To test DNS, you can use nslookup. It's a commandline tool for querying dns servers.

1) Open up a commandline and type in "nslookup" and pressing enter (a prompt should appear waiting for input)
2) type in url's like google.com, facebook.com or ubuntu.com, etc... etc... followed by and enter
3) You should be getting responses in about under 1 second for each query
4) exit with "exit"

If you get near instan...

Read more...

Brad Figg (brad-figg)
Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
penalvch (penalvch) wrote :

Carroarmato0, this bug report is being closed due to your last comment https://bugs.launchpad.net/linux/+bug/663395/comments/13 regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

affects: netm-cli → linux
Changed in linux (Ubuntu):
status: Confirmed → Invalid
Changed in linux:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.