ath hostap - No buffer space available

From: Johann Hugo <jhugo_at_icomtek.csir.co.za>
Date: Thu, 7 Jul 2005 15:27:02 +0200
Hi

I'm having problems the following setup:
ath client 1 - ath hostap - ath client 2

If I do a flood ping from client 2 to client 1 (ping -s 1450 -i 0.01 
192.168.10.2), all coms to and via ath hostap stops for several minutes 
before it recovers again. Both clients are still associated and tcpdump on 
ath hostap shows incoming trafic. Ping from ath hostap to any of the clients 
gives - No buffer space available.

Johann

----------------------------------------
Client 1:

lab2# uname -a
FreeBSD lab2 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul  7 06:51:10 UTC 2005     
jhay_at_dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL  i386

lab2# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.2 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21ce%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:ce
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/36Mbps)
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100
lab2# athstats
21 tx management frames
46 tx frames discarded prior to association
15 tx stopped 'cuz no xmit buffer
670 tx failed 'cuz too many retries
5615 long on-chip tx retries
19 tx frames with no ack marked
46 tx frames with an alternate rate
666 rx failed 'cuz of bad CRC
288 rx failed 'cuz of PHY err
    288 OFDM timing
124 periodic calibrations
rssi of last ack: 25
avg recv rssi: 22
Antenna profile:
[1] tx     2800 rx    38746
[2] tx        1 rx        0

lab2# ping 192.168.10.1
PING 192.168.10.1 (192.168.10.1): 56 data bytes
64 bytes from 192.168.10.1: icmp_seq=132 ttl=64 time=2.140 ms
64 bytes from 192.168.10.1: icmp_seq=133 ttl=64 time=2.546 ms
64 bytes from 192.168.10.1: icmp_seq=134 ttl=64 time=2.089 ms
64 bytes from 192.168.10.1: icmp_seq=135 ttl=64 time=2.136 ms
64 bytes from 192.168.10.1: icmp_seq=136 ttl=64 time=2.088 ms
64 bytes from 192.168.10.1: icmp_seq=137 ttl=64 time=2.133 ms
64 bytes from 192.168.10.1: icmp_seq=138 ttl=64 time=2.082 ms
64 bytes from 192.168.10.1: icmp_seq=139 ttl=64 time=2.132 ms
64 bytes from 192.168.10.1: icmp_seq=140 ttl=64 time=2.084 ms
64 bytes from 192.168.10.1: icmp_seq=141 ttl=64 time=2.123 ms
64 bytes from 192.168.10.1: icmp_seq=142 ttl=64 time=2.085 ms
64 bytes from 192.168.10.1: icmp_seq=143 ttl=64 time=2.075 ms
64 bytes from 192.168.10.1: icmp_seq=144 ttl=64 time=2.122 ms
64 bytes from 192.168.10.1: icmp_seq=145 ttl=64 time=2.077 ms
64 bytes from 192.168.10.1: icmp_seq=146 ttl=64 time=2.105 ms
64 bytes from 192.168.10.1: icmp_seq=147 ttl=64 time=2.085 ms
64 bytes from 192.168.10.1: icmp_seq=148 ttl=64 time=2.084 ms
64 bytes from 192.168.10.1: icmp_seq=149 ttl=64 time=2.098 ms
64 bytes from 192.168.10.1: icmp_seq=150 ttl=64 time=2.092 ms
64 bytes from 192.168.10.1: icmp_seq=151 ttl=64 time=2.096 ms
64 bytes from 192.168.10.1: icmp_seq=152 ttl=64 time=2.084 ms
64 bytes from 192.168.10.1: icmp_seq=153 ttl=64 time=2.085 ms
64 bytes from 192.168.10.1: icmp_seq=154 ttl=64 time=2.134 ms
64 bytes from 192.168.10.1: icmp_seq=155 ttl=64 time=2.089 ms
64 bytes from 192.168.10.1: icmp_seq=156 ttl=64 time=2.252 ms

64 bytes from 192.168.10.1: icmp_seq=609 ttl=64 time=2.334 ms
64 bytes from 192.168.10.1: icmp_seq=610 ttl=64 time=2.843 ms
64 bytes from 192.168.10.1: icmp_seq=611 ttl=64 time=2.420 ms
64 bytes from 192.168.10.1: icmp_seq=612 ttl=64 time=2.176 ms
64 bytes from 192.168.10.1: icmp_seq=613 ttl=64 time=2.175 ms

lab2# 80211debug +debug +assoc +xrate +power +scan +wme
net.wlan.0.debug: 0x0 => 0x44a40400<debug,xrate,assoc,scan,power,wme>
lab2# 80211debug scan
net.wlan.0.debug: 0x44a40400 => 0x200000<scan>

lab2# ifconfig ath0 up
begin active scan in 11a mode, scangen 5
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 40
ieee80211_next_scan: chan 40->42
lab2# ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
[00:02:6f:34:21:cc] new beacon on chan 36 (bss chan 36) "ath101"
[00:02:6f:34:21:cc] caps 0x401 bintval 100 erp 0x0
ieee80211_next_scan: chan 36->40
ieee80211_cancel_scan: end active scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
 + 00:02:6f:34:21:cc 00:02:6f:34:21:cc   36    28 54M   ess   no  "ath101"

---------------------------------------------------
Clent 2:
lab3# uname -a
FreeBSD lab3 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul  7 06:51:10 UTC 2005     
jhay_at_dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL  i386

lab3# ifconfig ath0
ath0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
        inet 192.168.10.3 netmask 0xffffff00 broadcast 192.168.10.255
        inet6 fe80::202:6fff:fe34:21cd%ath0 prefixlen 64 scopeid 0x1
        ether 00:02:6f:34:21:cd
        media: IEEE 802.11 Wireless Ethernet autoselect mode 11a (OFDM/36Mbps)
        status: associated
        ssid ath101 channel 36 bssid 00:02:6f:34:21:cc
        authmode OPEN privacy OFF txpowmax 28 bintval 100

lab3# ping -s 1450 -i 0.01 192.168.10.2
PING 192.168.10.2 (192.168.10.2): 1450 data bytes
^C

------------------------------------------------
ath hostap:
lab1# uname -a
FreeBSD lab1 6.0-CURRENT FreeBSD 6.0-CURRENT #25: Thu Jul  7 06:51:10 UTC 2005     
jhay_at_dolphin.icomtek.csir.co.za:/usr/src/sys/i386/compile/SMALL  i386

lab1# ping 192.168.10.2
PING 192.168.10.2 (192.168.10.2): 56 data bytes
ping: sendto: No buffer space available
ping: sendto: No buffer space available
^C

lab1# tcpdump -i ath0 -n -e -y IEEE802_11_RADIO
tcpdump: data link type IEEE802_11_RADIO
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio 
information header), capture size 96 bytes
03:37:47.859853 short preamble 36.0 Mb/s 5180 MHz (0x0140) antenna 1 24dB 
signal BSSID:00:02:6f:34:21:cc SA:00:02:6f:34:21:ce DA:00:02:6f:34:21:cc LLC, 
dsap SNAP (0xaa), ssap SNAP (0xaa), cmd 0x03: oui Ethernet (0x000000), 
ethertype IPv4 (0x0800): 192.168.10.2 > 192.168.10.1: ICMP echo request seq 
21, length 64
03:37:48.853929 short preamble 36.0 Mb/s 5180 MHz (0x0140) antenna 1 25dB 
signal BSSID:00:02:6f:34:21:cc SA:00:02:6f:34:21:ce DA:00:02:6f:34:21:cc LLC, 
dsap SNAP (0xaa), ssap SNAP (0xaa), cmd 0x03: oui Ethernet (0x000000), 
ethertype IPv4 (0x0800): 192.168.10.2 > 192.168.10.1: ICMP echo request seq 
22, length 64
03:37:49.848028 short preamble 36.0 Mb/s 5180 MHz (0x0140) antenna 1 25dB 
signal BSSID:00:02:6f:34:21:cc SA:00:02:6f:34:21:ce DA:00:02:6f:34:21:cc LLC, 
dsap SNAP (0xaa), ssap SNAP (0xaa), cmd 0x03: oui Ethernet (0x000000), 
ethertype IPv4 (0x0800): 192.168.10.2 > 192.168.10.1: ICMP echo request seq 
23, length 64
03:37:50.842127 short preamble 36.0 Mb/s 5180 MHz (0x0140) antenna 1 25dB 
signal BSSID:00:02:6f:34:21:cc SA:00:02:6f:34:21:ce DA:00:02:6f:34:21:cc LLC, 
dsap SNAP (0xaa), ssap SNAP (0xaa), cmd 0x03: oui Ethernet (0x000000), 
ethertype IPv4 (0x0800): 192.168.10.2 > 192.168.10.1: ICMP echo request seq 
24, length 64
lab1# athstats
25 tx management frames
6 tx frames discarded prior to association
274 tx stopped 'cuz no xmit buffer
1 tx failed 'cuz too many retries
1377 long on-chip tx retries
1208 tx frames with no ack marked
318 tx frames with an alternate rate
236 rx failed 'cuz of bad CRC
967 rx failed 'cuz of PHY err
    967 OFDM timing
54600 beacons transmitted
186 periodic calibrations
rssi of last ack: 26
avg recv rssi: 26
81 switched default/rx antenna
Antenna profile:
[1] tx     3926 rx     4850
[2] tx      654 rx        0

lab1# 80211debug +debug +assoc +xrate +power +scan +wme
net.wlan.0.debug: 0x0 => 0x44a40400<debug,xrate,assoc,scan,power,wme>
lab1# 80211debug scan
net.wlan.0.debug: 0x44a40400 => 0x200000<scan>
lab1# ifconfig ath0 down
lab1# ifconfig ath0 up
begin passive scan in 11a mode, scangen 4
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
lab1# ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
ieee80211_cancel_scan: end passive scan
ath0: notify scan done
ieee80211_create_ibss: creating ibss
----------------------------


IF I ifconfig down/up on client 1 (while in this state) it does not associate 
with hostap any more.

Hostap: 
lab1# ath0: stuck beacon; resetting (bmiss count 4)

tcpdump -i ath0 -n -e -y IEEE802_11_RADIO
tcpdump: data link type IEEE802_11_RADIO
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on ath0, link-type IEEE802_11_RADIO (802.11 plus BSD radio 
information header), capture size 96 bytes
04:03:55.392574 short preamble 6.0 Mb/s 5180 MHz (0x0140) antenna 1 21dB 
signal BSSID:00:02:6f:34:21:cc DA:00:02:6f:34:21:cc SA:00:02:6f:34:21:ce 
Authentication (Open System)-1: Succesful

--
Client 1:
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
ieee80211_cancel_scan: end passive scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 45
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
ieee80211_cancel_scan: end passive scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 46
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
ieee80211_next_scan: chan 64->149
ieee80211_next_scan: chan 149->152
ieee80211_next_scan: chan 152->153
ieee80211_next_scan: chan 153->157
ieee80211_next_scan: chan 157->160
ieee80211_next_scan: chan 160->161
ieee80211_next_scan: chan 161->165
ieee80211_next_scan: chan 165->36
ieee80211_cancel_scan: end passive scan
ath0: notify scan done
        macaddr          bssid         chan  rssi rate flag  wep  essid
ieee80211_end_scan: skip scan candidate 00:02:6f:34:21:cc, fails 47
ieee80211_reset_scan: scan set: 36, 40, 42, 44, 48, 50, 52, 56, 58, 60, 64, 
149, 152, 153, 157, 160, 161, 165 start chan 36
ieee80211_next_scan: chan 36->40
ieee80211_next_scan: chan 40->42
ieee80211_next_scan: chan 42->44
ieee80211_next_scan: chan 44->48
ieee80211_next_scan: chan 48->50
ieee80211_next_scan: chan 50->52
ieee80211_next_scan: chan 52->56
ieee80211_next_scan: chan 56->58
ieee80211_next_scan: chan 58->60
ieee80211_next_scan: chan 60->64
Received on Thu Jul 07 2005 - 11:29:32 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:38 UTC