slow and delayed connection

Pelusa Vali pelusitavali
Mon Mar 27 08:25:31 PST 2006


>hi list, well, finally my ap works with wpa-eap, i use debian etch, madwifi-ng-r1475, freeradius 1.1.0 and hostapd 0.5.2. my ap can authenticate users and they can connect to wlan, everything ok.  but now result they cann't surf internet because connection is very slow, they cann't inclusive access google or yahoo, connection is too slow and requests are never completed or delays among 35-120 seconds.  i'm just performing tests, so ap and clients are in same room.
and when clients authenticating get lots of messages like this:

IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 BE_AUTH entering state IDLE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
IEEE 802.1X: 00:0f:66:11:c1:96 REAUTH_TIMER entering state INITIALIZE
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state INITPMK
WPA: PMK from EAPOL state machine (len=32)
WPA: 00:0f:66:11:c1:96 WPA_PTK entering state PTKSTART
ath0: STA 00:0f:66:11:c1:96 WPA: sending 1/4 msg of 4-Way Handshake
WPA: Send EAPOL(secure=0 mic=0 ack=1 install=0 pairwise=1 ie_len=0 gtk_len=0 key idx=0 encr=0)
TX EAPOL - hexdump(len=113): 00 0f 66 11 c1 96 00 0f 66 11 c1 97 88 8e 02 03 00 5f fe 00 89 00 20 00 00 00 00 00 00 00 01 bb a5 40 06 72 ff 43 57 37 d3 d3 67 f1  5c 13 3f 6c 48 d1 fb 14 5a 31 ce b2 ce 47 a9 96 20 a5 20 00 00 00 00 00 00 00 0 0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00

and authentication delays 2 minutes, is it normal??

>using ethereal to monitor wlan get a lot (but really many) of messages like this:
>
>SOURCE             DESTINATION           PROTOCOL                  INFO
>Cisco-Li_11:c1:96  192.168.50.1          MDS HEADER                [Malformed Packet]
>
>where 192.168.50.1 is ap's ip direction.
>these are my configuration files:
>
>MADWIFI:
>
>rmmod ath_pci
>modprobe ath_pci autocreate=ap
>ifconfig ath0 up
>iwpriv ath0 mode 3
>iwconfig ath0 essid MYWLAN
>iwconfig ath0 channel auto
>iwconfig ath0 bitrate 54M
>echo 1 > /proc/sys/net/ipv4/ip_forward
>/etc/init.d/networking restart
>IPTABLES=/sbin/iptables
>$IPTABLES -F -t nat
>$IPTABLES -A POSTROUTING -t nat -o eth0 -j MASQUERADE
>/etc/init.d/dhcp restart
>
>HOSTAPD:
>
>interface=ath0
>driver=madwifi
>logger_syslog=-1
>logger_syslog_level=2
>logger_stdout=-1
>logger_stdout_level=1
>debug=4
>dump_file=/tmp/hostapd.dump
>ctrl_interface=/var/run/hostapd
>ctrl_interface_group=0
>ssid=MYWLAN
>macaddr_acl=0
>auth_algs=1
>ieee8021x=1
>eap_server=0
>own_ip_addr=127.0.0.1
>nas_identifier=www.srvw1.com
>auth_server_addr=127.0.0.1
>auth_server_port=1812
>auth_server_shared_secret=mywlan
>acct_server_addr=127.0.0.1
>acct_server_port=1813
>acct_server_shared_secret=mywlan
>wpa=1
>wpa_key_mgmt=WPA-EAP
>wpa_pairwise=TKIP
>wpa_group_rekey=300
>wpa_gmk_rekey=640
>
>typing 8011debug 0xffffffff get this:
>
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] power save mode on, 1 sta's in ps mode
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] save frame, 1 now queued
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] power save mode off, 0 sta's in ps mode
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] flush ps queue, 1 packets queued
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:97] ieee80211_beacon_update: TIM updated, pending 0, off 0, len 1
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] power save mode on, 1 sta's in ps mode
>Mar 26 05:49:48 www kernel: ath0: [00:0f:66:11:c1:96] power save mode off, 0 sta's in ps mode
>Mar 26 05:49:50 www kernel: ath0: received probe_req from 00:0f:66:11:c1:96 rssi 20
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] recv probe req
>Mar 26 05:49:50 www kernel: ath0: ieee80211_ref_node (ieee80211_send_mgmt:1765) cd739000<00:0f:66:11:c1:96> refcnt 5
>Mar 26 05:49:50 www kernel: [00:0f:66:11:c1:96] send probe_resp on channel 1
>Mar 26 05:49:50 www kernel: ath0: received probe_req from 00:0f:66:11:c1:96 rssi 21
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] recv probe req
>Mar 26 05:49:50 www kernel: ath0: ieee80211_ref_node (ieee80211_send_mgmt:1765) cd739000<00:0f:66:11:c1:96> refcnt 5
>Mar 26 05:49:50 www kernel: [00:0f:66:11:c1:96] send probe_resp on channel 1
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] power save mode off, 0 sta's in ps mode
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] power save mode on, 1 sta's in ps mode
>Mar 26 05:49:50 www kernel: ath0: received probe_req from 00:0f:66:11:c1:96 rssi 12
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] recv probe req
>Mar 26 05:49:50 www kernel: ath0: ieee80211_ref_node (ieee80211_send_mgmt:1765) cd739000<00:0f:66:11:c1:96> refcnt 5
>Mar 26 05:49:50 www kernel: [00:0f:66:11:c1:96] send probe_resp on channel 1
>Mar 26 05:49:50 www kernel: ath0: [00:0f:66:11:c1:96] power save mode off, 0 sta's in ps mode
>
>and athdebug 0xffffffff this:
>
>Mar 26 05:55:08 www kernel: ath_intr: status 0x10000
>Mar 26 05:55:08 www kernel: ath_beacon_setup: m c363a5c0 len 148
>Mar 26 05:55:08 www kernel: ath_intr: status 0x9
>Mar 26 05:55:08 www kernel: ath_rx_tasklet
>Mar 26 05:55:08 www kernel: R (c1a53060 1a53060) 01a53090 03342020 00000000 00000c60 1164001c 598e0b03 *
>Mar 26 05:55:08 www kernel: TODS 00:0f:66:11:c1:96->00:0f:66:11:c1:97(00:0f:66:11:c1:97) data 48M +22
>Mar 26 05:55:08 www kernel:  
>Mar 26 05:55:08 www kernel: 48 09 2c 00 00 0f 66 11  c1 97 00 0f 66 11 c1 96  
>Mar 26 05:55:08 www kernel: 00 0f 66 11 c1 97 a0 41  d6 49 f6 9b 
>Mar 26 05:55:08 www kernel: 
>Mar 26 05:55:08 www kernel: ath_intr: status 0x4009
>Mar 26 05:55:08 www kernel: ath_rx_tasklet
>Mar 26 05:55:08 www kernel: R (c1a53090 1a53090) 01a530c0 0d0c8020 00000000 00000c60 10d40000 69f41111 !
>Mar 26 05:55:08 www kernel: ath_intr: status 0x4009
>Mar 26 05:55:08 www kernel: ath_rx_tasklet
>Mar 26 05:55:08 www kernel: R (c1a530c0 1a530c0) 01a530f0 0d0e0020 00000000 00000c60 10240000 1dcc1911 !
>Mar 26 05:55:08 www kernel: ath_intr: status 0x4009
>Mar 26 05:55:08 www kernel: ath_rx_tasklet
>Mar 26 05:55:08 www kernel: R (c1a530f0 1a530f0) 01a53120 0037a020 00000000 00000c60 10940000 1f4c1911 !
>
>so please could you help??? why clients connection is so slow?? by the way, my speed connection to internet in ap is very good. is there any parameter i should set to get clients could use internet without problems?? and why authentication delays to much too??.
i almost forget, if i turn off my ap and after turn it on, client cann't connect any more, it must be restarted to get connection again.
do you have any idea why this behavior??
>
>thanks for your help
>
>
>
>
>
>_______________________________________________________________ 
>Who was the first boxer to beat Muhammad Ali in the professional ring?
>
>postmaster.co.uk
>http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=219



_______________________________________________________________ 
Which animal has a heart the size of a small car?

postmaster.co.uk
http://www.postmaster.co.uk/cgi-bin/meme/quiz.pl?id=4





More information about the Hostap mailing list