NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[9.1 i386] Slow domain name resolution on some wifi networks



I'm running my home wifi network on a linux box with some recent version of hostapd.

On a laptop (asus eeepc900) running NetBSD, when it is connected to that network, there is exceptionally slow domain name resolution like the following:

eeepc:~$ ping google.com
[here is the long, ~5..6 seconds pause!]
PING google.com (64.233.163.113): 56 data bytes
64 bytes from 64.233.163.113: icmp_seq=0 ttl=105 time=18.402060 ms
[normal ping follows]

or:

eeepc:~$ ping 1.1.1.1
[the same long pause here]
PING one.one.one.one (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=54 time=28.983572 ms

The pause is there every time, i.e. it is irrelevant to caching recent resolutions.
The same pause affects virtually everything starting from wget and ending with firefox.

When no resolution is involved:

eeepc:~$ ping -n 1.1.1.1
[no pause here at all!]
PING 1.1.1.1 (1.1.1.1): 56 data bytes
64 bytes from 1.1.1.1: icmp_seq=0 ttl=54 time=29.882010 ms

I suspect that it has something to do with ipv6:

eeepc:~$ ping6 google.com
[the same long pause]
ping6: UDP connect: No route to host

I use no ipv6 networks nor do I want to.
btw, the kernel in my linux box is compiled WITHOUT the support of IPv6.



All other my wifi machines (linux and windows laptops, some arm boards) do not experience pauses like that in the same wifi network.

If I instead connect to the temporary wifi tethering network from my mobile, the pause is NOT there anymore.

How can I trace down and fix this problem? Or maybe a fast patch to some configuration would fix it?




ps: here are some configs and logs:
my wpa_supplicant.conf ('good_network' is from my mobile, 'bad_network' is my home network from my linuxbox) attached,
my dhcpcd.conf attached.

dhcpcd log:
Jan 14 15:55:38 eeepc dhcpcd[40]: forked to background, child pid 41
Jan 14 15:55:38 eeepc dhcpcd[41]: ath0: waiting for carrier
Jan 14 15:55:40 eeepc dhcpcd[41]: ath0: carrier acquired
Jan 14 15:55:40 eeepc dhcpcd[41]: ath0: connected to Access Point `bad_network'
Jan 14 15:55:40 eeepc dhcpcd[41]: DUID 00:04:01:71:e3:80:48:e3:81:dd:21:21:00:22:15:40:48:5f
Jan 14 15:55:40 eeepc dhcpcd[41]: ath0: IAID af:c6:2a:7e
Jan 14 15:55:40 eeepc dhcpcd[41]: ath0: rebinding lease of 192.168.2.4
Jan 14 15:55:46 eeepc dhcpcd[41]: ath0: leased 192.168.2.4 for 65536 seconds
Jan 14 15:55:46 eeepc dhcpcd[41]: ath0: adding route to 192.168.2.0/24
Jan 14 15:55:46 eeepc dhcpcd[41]: ath0: adding default route via 192.168.2.1

wpa_supplicant invocation:
wpa_supplicant -D bsd -i ath0 -c /etc/wpa_supplicant.conf -B

dhcpcd invocation:
dhcpcd -4 -b ath0

Attachment: wpa_supplicant.conf
Description: Binary data

Attachment: dhcpcd.conf
Description: Binary data



Home | Main Index | Thread Index | Old Index