NetBSD Problem Report #50045
From www@NetBSD.org Sun Jul 12 12:53:51 2015
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [149.20.53.66])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
(Client CN "mail.netbsd.org", Issuer "Postmaster NetBSD.org" (verified OK))
by mollari.NetBSD.org (Postfix) with ESMTPS id 2CA19A654F
for <gnats-bugs@gnats.NetBSD.org>; Sun, 12 Jul 2015 12:53:51 +0000 (UTC)
Message-Id: <20150712125349.A257AA6555@mollari.NetBSD.org>
Date: Sun, 12 Jul 2015 12:53:49 +0000 (UTC)
From: pbraun@nethence.com
Reply-To: pbraun@nethence.com
To: gnats-bugs@NetBSD.org
Subject: wpa_supplicant unreliable, dropping connections
X-Send-Pr-Version: www-1.0
>Number: 50045
>Category: bin
>Synopsis: wpa_supplicant unreliable, dropping connections
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 12 12:55:00 +0000 2015
>Last-Modified: Tue Jul 14 01:25:00 +0000 2015
>Originator: pierre-philipp
>Release: 7.0_RC1 and current
>Organization:
Nethence
>Environment:
tested with 7.0_RC1 kernel & user land
tested with current (2015 07 10) kernel & user land
probably with older releases also
>Description:
Very similar to problem report 32536
http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=32536
Using wpa supplicant, the connection drops when I download something, i.e. pkg_add some package remotely with PKG_PATH pointing to my nearest mirror in my country. It seems to happens when ever there is high traffic as mentionned in the other problem report. I do not do any ssl tunnel and I get the same trouble.
I use the wpi driver. If you want I will try with some atheros card eventually to see if it also happens with it. I don't know if it is related to the driver, wpa_supplicant or something else. Nothing appears in the logs, just no network when it's heavily sollicitated.
I tried wpa supplicant on FreeBSD 10.1 release and there is no issue with it, it holds the load just fine. Too bad I would like to use NetBSD on that laptop. Thank you.
>How-To-Repeat:
wpa_supplicant.conf:
ctrl_interface=/var/run/wpa_supplicant
ctrl_interface_group=wheel
network={
ssid="MYWLAN"
scan_ssid=1
key_mgmt=WPA-PSK
psk="MySecretPassphrase"
}
called with:
wpa_supplicant -B -i wpi0 -c /etc/wpa_supplicant.conf
dhclient wpi0
The AP provides WPA/WPA2 AES-TKIP.
>Fix:
>Audit-Trail:
From: David Young <dyoung@pobox.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/50045: wpa_supplicant unreliable, dropping connections
Date: Sun, 12 Jul 2015 14:38:13 -0500
On Sun, Jul 12, 2015 at 12:55:00PM +0000, pbraun@nethence.com wrote:
> >Number: 50045
> >Category: bin
> >Synopsis: wpa_supplicant unreliable, dropping connections
> >Confidential: no
> >Severity: serious
> >Priority: medium
> >Responsible: bin-bug-people
> >State: open
> >Class: sw-bug
> >Submitter-Id: net
> >Arrival-Date: Sun Jul 12 12:55:00 +0000 2015
> >Originator: pierre-philipp
> >Release: 7.0_RC1 and current
> >Organization:
> Nethence
> >Environment:
> tested with 7.0_RC1 kernel & user land
> tested with current (2015 07 10) kernel & user land
> probably with older releases also
> >Description:
> Very similar to problem report 32536
> http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=32536
>
> Using wpa supplicant, the connection drops when I download something, i.e. pkg_add some package remotely with PKG_PATH pointing to my nearest mirror in my country. It seems to happens when ever there is high traffic as mentionned in the other problem report. I do not do any ssl tunnel and I get the same trouble.
Perhaps renewal of security associations is timing out because of delays
caused by buffer bloat in the driver? That might be worth a look. Does
latency (measured by a ping) get very high?
Dave
--
David Young
dyoung@pobox.com Urbana, IL (217) 721-9981
From: pierre-philipp braun <pbraun@nethence.com>
To: gnats-bugs@NetBSD.org
Cc: gnats-admin@netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: bin/50045: wpa_supplicant unreliable, dropping connections
Date: Tue, 14 Jul 2015 03:23:12 +0200
> Perhaps renewal of security associations is timing out because of delays
> caused by buffer bloat in the driver? That might be worth a look. Does
> latency (measured by a ping) get very high?
Yes it used to happen, I remember seeing ping responses up to 1900ms
instead of usual ~22ms. However, today, what I get is just a *skip* of
ping sequences until I break (^C) the process requesting to much
traffic. For example skipping ping probes from 510 to 523:
64 bytes from x.x.x.x: icmp_seq=509 ttl=56 time=22.900188 ms
64 bytes from x.x.x.x: icmp_seq=524 ttl=56 time=22.311495 ms
uname -a:
NetBSD Host-001 7.99.19 NetBSD 7.99.19 (GENERIC.201507090800Z) #0: Thu
Jul 9 08:50:21 UTC 2015
builds@b45.netbsd.org:/home/builds/ab/HEAD/amd64/201507090800Z-obj/home/source/ab/HEAD/src/sys/arch/amd64/compile/GENERIC
amd64
When I break the pkg_add process fetching the binary from a near mirror,
the ping probes now resume! So the WPA supplicant seems to be rather
more self-healing in -current. Are there actually changes since 7.0_RC1
and current 2015-07-09? As far as I can remember this didn't happen
before so I can only assume it's related to my userland upgrade. For
the pings being skipped instead of getting high response time, however,
I don't know.
Thanks
(Contact us)
$NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2014
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.