throttled traffic/slow dns with ath5k (AR2413 wireless card) +WPA(2) with netgear wgr614

Bug #788274 reported by gene
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Expired
Undecided
Unassigned

Bug Description

I have 3 PCs with different Ubuntu versions 10.04, 10.10 and 11.04.
In all of these firefox 7, chromium, epiphany and konqueror are pretty fast, except on Narwhal when visiting some websites
I noticed that on 11.04:
0) never happened on the affected laptop before 11.04
1) pages without js are rendered alright
2) when js is disabled on firefox4 it seems to speed up some not all, though, e.g. it does for cnews.ru, but not for launchpad.net (which never loads)
3) w3m-img,elinks,lynx are fast and load those pages in questions alright
4)none of these problems exist on 10.04 or 10.10 with web browsers of the same versions
5) it is an Ubuntu 11.04 only issue, does not happen on older version of Ubuntu
6) does not seem to be an ipv4/ipv6 issue, since on firefox I set ipv6.disable to true
On the affected machine (as well as on the others) I got a custom kernel installed.
uname -a: Linux 2.6.38.5-mine #1 SMP Wed May 4 12:28:50 CDT 2011 i686 i686 i386 GNU/Linux
---
Architecture: i386
DistroRelease: Ubuntu 11.04
Package: linux (not installed)
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
Tags: natty
Uname: Linux 3.1.0-rc6-mine+ i686
UnreportableReason: The running kernel is not an Ubuntu kernel
UpgradeStatus: Upgraded to natty on 2011-05-06 (160 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev powerdev scanner video voice
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.23.
AplayDevices:
 **** List of PLAYBACK Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC861-VD Analog [ALC861-VD Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
Architecture: i386
ArecordDevices:
 **** List of CAPTURE Hardware Devices ****
 card 0: SB [HDA ATI SB], device 0: ALC861-VD Analog [ALC861-VD Analog]
   Subdevices: 1/1
   Subdevice #0: subdevice #0
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC0: jenya 1643 F.... pulseaudio
Card0.Amixer.info:
 Card hw:0 'SB'/'HDA ATI SB at 0xc0400000 irq 40'
   Mixer name : 'Realtek ALC861-VD'
   Components : 'HDA:10ec0862,1179820d,00100001 HDA:11c11040,11790001,00100200'
   Controls : 19
   Simple ctrls : 12
Desktop-Session:
 DESKTOP_SESSION = gnome-classic
 XDG_CONFIG_DIRS = /etc/xdg/xdg-gnome-classic:/etc/xdg
 XDG_DATA_DIRS = /usr/share/gnome-classic:/usr/share/gnome:/usr/local/share/:/usr/share/
DistroRelease: Ubuntu 11.04
Env:
 MOZ_PLUGIN_PATH = None
 LD_LIBRARY_PATH = None
HibernationDevice: RESUME=UUID=5d87ad1c-529d-43e5-a5b9-d8bcc75895ce
Lsusb:
 Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 002 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
MachineType: TOSHIBA Satellite L35
Package: linux (not installed)
PackageArchitecture: i386
PccardctlIdent:
 Socket 0:
   no product info available
PccardctlStatus:
 Socket 0:
   no card
ProcEnviron:
 LANGUAGE=en_US:en
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-2.6.38-13-generic root=UUID=8ed12067-caa1-4af3-b3b4-c97a2fe5cc3d ro radeon.modeset=1 acpi_sleep=nonvs resume=/dev/sda5 crashkernel=384M-2G:64M,2G-:128M quiet profile
ProcVersionSignature: Ubuntu 2.6.38-13.52-generic 2.6.38.8
ProcVersionSignature_: Ubuntu 2.6.38-13.52-generic 2.6.38.8
ProcVersionSignature__: Ubuntu 2.6.38-13.52-generic 2.6.38.8
RelatedPackageVersions:
 linux-restricted-modules-2.6.38-13-generic N/A
 linux-backports-modules-2.6.38-13-generic N/A
 linux-firmware 1.52
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
Tags: natty natty natty
Uname: Linux 2.6.38-13-generic i686
UnreportableReason:
 /usr/bin/firefox has been diverted by a third party package (dpkg-divert: warning: parsing file '/var/lib/dpkg/status' near line 59458 package 'mac-3.99-u4':
  error in Version string 'b3-1': version number does not start with digit)
UpgradeStatus: Upgraded to natty on 2011-05-06 (206 days ago)
UserGroups: adm admin audio cdrom dialout dip floppy fuse lpadmin netdev plugdev powerdev scanner video voice
WpaSupplicantLog:

chromium-default: CHROMIUM_FLAGS=""
dmi.bios.date: 10/24/2007
dmi.bios.vendor: TOSHIBA
dmi.bios.version: V3.10
dmi.board.name: Satellite L35
dmi.board.vendor: TOSHIBA
dmi.board.version: Not Applicable
dmi.chassis.type: 10
dmi.chassis.vendor: TOSHIBA
dmi.chassis.version: N/A
dmi.modalias: dmi:bvnTOSHIBA:bvrV3.10:bd10/24/2007:svnTOSHIBA:pnSatelliteL35:pvrPSL33U-03W02K:rvnTOSHIBA:rnSatelliteL35:rvrNotApplicable:cvnTOSHIBA:ct10:cvrN/A:
dmi.product.name: Satellite L35
dmi.product.version: PSL33U-03W02K
dmi.sys.vendor: TOSHIBA

gene (eugenios)
description: updated
description: updated
Revision history for this message
gene (eugenios) wrote :

ON the affected machine:
:~$ lsb_release -rd
Description: Ubuntu 11.04
Release: 11.04
:~$ firefox -v
Mozilla Firefox 4.0.1
:~$ chromium-browser -v
:~$ chromium-browser --version
Chromium 11.0.696.68 Ubuntu 11.04
:~$ epiphany
epiphany epiphany-browser
:~$ epiphany
epiphany epiphany-browser
:~$ epiphany-browser -v
Failed to parse arguments: Unknown option -v
:~$ epiphany-browser --version
GNOME Web Browser 2.30.6

Revision history for this message
gene (eugenios) wrote :

On the 10.10 server with no problem present:
:~$ uname -a
Linux 2.6.35.13-mine #1 SMP Fri May 6 00:20:57 CDT 2011 x86_64 GNU/Linux
:~$ lsb_release -rd
Description: Ubuntu 10.04.2 LTS
Release: 10.04

:~$ firefox -v;epiphany-browser --version;konqueror --version
Mozilla Firefox 4.0.1
GNOME Web Browser 2.30.2
Qt: 4.6.2
KDE Development Platform: 4.4.5 (KDE 4.4.5)
Konqueror: 4.4.5 (KDE 4.4.5)

summary: - some webpages appear to take very long to load on javascript capable web
- browsers
+ js webpages take very long to load on javascript capable web browsers
+ on Ubuntu Narwhal
description: updated
gene (eugenios)
description: updated
summary: - js webpages take very long to load on javascript capable web browsers
+ js webpages take very long to load with javascript capable web browsers
on Ubuntu Narwhal
Revision history for this message
gene (eugenios) wrote : Re: js webpages take very long to load with javascript capable web browsers on Ubuntu Narwhal

Forgot to mention that on the machine in question 11.04 was upgraded from 10.10. The latter did not have these problems then.

Shimi Chen (shimi-chen)
affects: ubuntu → firefox (Ubuntu)
Revision history for this message
gene (eugenios) wrote :

Got a fix. Well, it seems to have been a dns lookup problem. Here;s what I did:
edit the /etc/nsswitch.conf file and have the following line as follows:
hosts: files dns mdsn4#mdns4_minimal [NOTFOUND=return] dns
Apparently, the "hosts: files mdns4_minimal [NOTFOUND=return] dns" prevent dns lookup of firefox and chromium from functioning properly, while all text browsers and epiphany + anything else are doing alright.
It is an interesting behavior, since my 10.04 system has the old "hosts: files mdns4_minimal [NOTFOUND=return] dns" -no issue whatsoever.
So I will have to change the bug description now.

gene (eugenios)
summary: - js webpages take very long to load with javascript capable web browsers
- on Ubuntu Narwhal
+ dns lookup issue: firefox& chromium take very long to load on Ubuntu
+ Narwhal
Revision history for this message
gene (eugenios) wrote : Re: dns lookup issue: firefox& chromium take very long to load on Ubuntu Narwhal

The fix works on (at least):
uname -a
Linux 3.0.0-rc2-mine #2 SMP Wed Jun 8 13:45:01 CDT 2011 i686 i686 i386
GNU/Linux

There must have been a collision between the dns capabilities of some browser and the upgraded system. I am not sure how to capture the culprit.

Revision history for this message
gene (eugenios) wrote :

After the last update of firefox it started to misbehave again:
firefox:i386 (4.0.1+build1+nobinonly-0ubuntu0.11.04.3, 5.0+build1+nobinonly-0ubuntu0.11.04.1), firefox-gnome-support:i386 (4.0.1+build1+nobinonly-0ubuntu0.11.04.3, 5.0+build1+nobinonly-0ubuntu0.11.04.1)

Even the google.com website takes awhile to load, actually, the google logo image. firefox constantly says "Waiting for google.com (or other websites)".

Revision history for this message
gene (eugenios) wrote :

I can now see that both chromium and epiphany are a little faster than firefox.
These do not compare to text browsers though and my lucid browsers.

Revision history for this message
Gabe Gorelick (gabegorelick) wrote :

FYI, chromium-browser is the correct package. chromium is something else.

affects: chromium (Ubuntu) → chromium-browser (Ubuntu)
Revision history for this message
gene (eugenios) wrote :

Gabe, it doesn't make it faster, thanks for the correction, though :)
What seems to be helping here is adding the "options single-request" in the /etc/resolv.conf
Wat is an enigma again, only chromium-browser, firefox, epiphany suffer from it, not text browser, nor everything else that uses dns.

Revision history for this message
gene (eugenios) wrote : tcpdumps

Well, it got a little annoying. I did a few tests with two types of configurations in /etc/nsswitch.conf
1) it is either
hosts: files mdns4_minimal [NOTFOUND=return] dns
or 2)
hosts: files dns

I also have the following in the /etc/resolv.conf :

#long lookup
options single-request
# Generated by NetworkManager
nameserver 192.168.1.1
#long lookup
options timeout:1

Sometimes even a simple google search can hang up for a while. However, one of the slowest sites I noticed is cnews.ru . I am attaching tcpdumps below.
The command "tcpdump -n -i wlan0 port 53" is used here. First with
1) hosts: files mdns4_minimal [NOTFOUND=return] dns

Revision history for this message
gene (eugenios) wrote : more tcpdumps

With the option "hosts: files dns " in /etc/nsswitch.conf things seem to get better, however as before I still cannot get cnews.ru to load as in the previous case with both firefox and epiphany-browser . As far as the chromium-browser is concerned, it mostly loads never finishing though. The dumps are given below.

The tcpdump Ubuntu 10.10 where slow lookups never occur. The freshly upgraded firefox 7 takes a fraction of a second to load the notorious cnews.ru. Amazing! The dumps are attached below as well .

Revision history for this message
gene (eugenios) wrote : Re: dns lookup issue: firefox& chromium take very long to load on Ubuntu Narwhal

"tcpdump Ubuntu 10.10 where slow lookups never occur" should be "tcpdump LTS Ubuntu 10.04 where slow lookups never occur"

Revision history for this message
Harald Sitter (apachelogger) wrote :

Yeah, this is not really an issue with the browers as all three of them use different technologies throughout the application. So I guess the candidate cause lowest in the stack would be the TCP stack in the kernel.

affects: kdebase (Ubuntu) → linux (Ubuntu)
Changed in firefox (Ubuntu):
status: New → Invalid
Changed in chromium-browser (Ubuntu):
status: New → Invalid
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 788274

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
gene (eugenios) wrote : Re: dns lookup issue: firefox& chromium take very long to load on Ubuntu Narwhal

Herald, I can't think of anything rather than the way the said browsers communicate with the dns. Since they all keep printing "waiting for..." There shouldn't be anything in the kernel, because nothing else seems to be affected.

Recently I also noticed that I am not seeing the issue when I am on the ethernet connection. From time to time it may also be working OK when on wireless with ath5k driver - go figure. If it is the driver issue, it is still very strange to me.

tags: added: apport-collected natty
description: updated
Revision history for this message
gene (eugenios) wrote :

So while on the wired connection the problem seems to go away. Most of the applications are not affected at all to be able to blame the wireless. I checked the configs for the both interfaces. They are identical.

Changed in chromium-browser (Ubuntu):
status: Invalid → Confirmed
Changed in firefox (Ubuntu):
status: Invalid → Confirmed
gene (eugenios)
description: updated
summary: - dns lookup issue: firefox& chromium take very long to load on Ubuntu
- Narwhal
+ dns lookup issue on wireless: firefox& chromium-bowser take very long
+ to load on Ubuntu Narwhal
Revision history for this message
gene (eugenios) wrote : rsync, ssh: ath5k +AR2413 (more unknowns in the equation)

I came to the conclusion that this issue is related to ath5k driver with AR2413 wireless chip communicating with the Netgear WGR614 router via WPA2 protocol. The wireless chip here does matter, since I have another notebook (ubuntu 10.10, on 2.6.35* kernel, ath5k with a different chip though) that does not have the said problems.

Discovered that ssh and rsync also suffer from the throttled traffic when run wirelessly. In fact, rsyncing both from and to the affected machine stalls, as well as sshing to it. That only happens while on the wireless connection. We are talking about the aforementioned Netgear's LAN in all the cases.

I downloaded a 1 year old 2.6.35 kernel. It seemed to be better, however, sshing to the machine would also freeze in the middle of the session.

This is very weird taking good numbers from the connection speed test ( testmy.net ) into account makes it more weird.

Not sure what to do next. My nest suspicion would the combination the wireless card, router and the WAP2 authentication protocol. I will try turning the latter off and or trying other ones.

--
Sent with mutt, composed in gnu emacs
Please do not send me Microsoft Office/Apple iWork documents. Send OpenDocument instead! http://fsf.org/campaigns/opendocument

gene (eugenios)
summary: - dns lookup issue on wireless: firefox& chromium-bowser take very long
- to load on Ubuntu Narwhal
+ throttled traffic/slow dns with ath5k (AR2413 wireless card) +WAP2 with
+ netgear wgr614
Revision history for this message
gene (eugenios) wrote : lspci dump

Attaching the lspci -vv dump below.
--

Revision history for this message
gene (eugenios) wrote : Re: throttled traffic/slow dns with ath5k (AR2413 wireless card) +WAP2 with netgear wgr614

ath5k on ar2413 wireless card. Slow firefox/chromium-browser and such dns lookups. rsync/ssh sessions also get stalled ALL the time

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
gene (eugenios) wrote :

Catching up with the last comment: The versions of the kernel affected range from the last 3.1.0 custom built from Linus' git source to the 2.6.38 ubuntu generic flavor and might even go as far as up to 2.6.35.14 (where the ssh also stalled).

Revision history for this message
gene (eugenios) wrote : ath5k+ar2413 combo is unable to handle any type of authentication

Just checked my router with WAP2-aes, WAP, WEP and without any authentication. The only usable case was the latter, as far as the ssh freeze is concerned and browsing in firefox.
--

Revision history for this message
gene (eugenios) wrote : ssh direction

What is also worth pointing out is the fact that ssh problems seem only to exist when sshing TO the affected machine wirelessly with any of the protocols WPE/WAP. Sshing FROM the machine has no issues.
And yet again, only ssh (to)/rsync (through ssh), image capable web browsing seem to suffer from it. However, text browsing, mutt(through TSL and SMTP), apt, wget network speed test - all seem to NOT care at all.
--

gene (eugenios)
summary: - throttled traffic/slow dns with ath5k (AR2413 wireless card) +WAP2 with
- netgear wgr614
+ throttled traffic/slow dns with ath5k (AR2413 wireless card) +WPA(2)
+ with netgear wgr614
Revision history for this message
gene (eugenios) wrote : AcpiTables.txt

apport information

description: updated
Revision history for this message
gene (eugenios) wrote : AlsaDevices.txt

apport information

Revision history for this message
gene (eugenios) wrote : TRAMP problems

As an addition to the list of troubled apps I have also TRAMP, the Emacs remote access client. When I try using it to access to/from the affected laptop (via WPA/WEP) it hangs most of the time on both machines, until I kill the ssh process TRAMP had spawned.

--

Revision history for this message
penalvch (penalvch) wrote :

gene, thank you for reporting this and helping make Ubuntu better. This bug was reported a while ago and there hasn't been any activity in it recently. We were wondering if this is still an issue? Can you try with the latest development release of Ubuntu? ISO CD images are available from http://cdimage.ubuntu.com/releases/ .

If it remains an issue, could you run the following command from a Terminal (Applications->Accessories->Terminal). It will automatically gather and attach updated debug information to this report.

apport-collect -p linux <replace-with-bug-number>

Also, if you could test the latest upstream kernel available that would be great. It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

no longer affects: firefox (Ubuntu)
no longer affects: chromium-browser (Ubuntu)
tags: added: i386 needs-upstream-testing regression-release
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for linux (Ubuntu) because there has been no activity for 60 days.]

Changed in linux (Ubuntu):
status: Incomplete → Expired
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.