Netgear WG111v2 RTL8187

Hi,

I have recently installed OpenSuse 11.1 and decided to bite the bullet and try to get the native RTL8187 driver to work rather than resorting to Ndiswrapper.

I can get a connection ok but the performance soon falls off to the point where I receive data at b/s rather than kb/s or mb/s. When I try to download a 12 Mb file, I get up to 9Mb fairly rapidly then the download freezes.

I get the following outputs:

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
Bus 001 Device 002: ID 0846:6a00 NetGear, Inc. WG111v2 54 Mbps Wireless [RealTek RTL8187L]
Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub

linux-68an:/home/alex # iwconfig
lo no wireless extensions.

eth0 no wireless extensions.
wmaster0 no wireless extensions.
wlan0 IEEE 802.11bg ESSID:“HomeNet”
Mode:Managed Frequency:2.462 GHz Access Point: 00:14:6C:68:EB:96
Bit Rate=54 Mb/s Tx-Power=27 dBm
Retry min limit:7 RTS thr:off Fragment thr=2352 B
Encryption key:F701-7433-F87B-F7CC-2CB9-A787-1E15-237A-54FA-7C01-A21A-777A-2A31-D8FF-D3C0-E948 [3] Security mode:open
Power Management:off
Link Quality=63/100 Signal level:32/65
Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
Tx excessive retries:0 Invalid misc:0 Missed beacon:0

linux-68an:/home/alex # iwlist scan
lo Interface doesn’t support scanning.
eth0 Interface doesn’t support scanning.
wmaster0 Interface doesn’t support scanning.
wlan0 Scan completed :
Cell 01 - Address: 00:14:6C:68:EB:96
ESSID:“HomeNet”
Mode:Master
Channel:11
Frequency:2.462 GHz (Channel 11)
Quality=58/100 Signal level:37/65
Encryption key:on
IE: WPA Version 1
Group Cipher : TKIP
Pairwise Ciphers (1) : TKIP

                   Authentication Suites (1) : PSK
                Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22 Mb/s
                          6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24 Mb/s
                          36 Mb/s; 48 Mb/s; 54 Mb/s
                Extra:tsf=0000000294abc564
                Extra: Last beacon: 72ms ago

Any suggestions would be appreciated.

Thanks,

Alex

Versys wrote:
> Hi,
>
> I have recently installed OpenSuse 11.1 and decided to bite the bullet
> and try to get the native RTL8187 driver to work rather than resorting
> to Ndiswrapper.
>
> I can get a connection ok but the performance soon falls off to the
> point where I receive data at b/s rather than kb/s or mb/s. When I try
> to download a 12 Mb file, I get up to 9Mb fairly rapidly then the
> download freezes.
>
> I get the following outputs:
>
> 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
> Bus 001 Device 002: ID 0846:6a00 NetGear, Inc. WG111v2 54 Mbps Wireless
> [RealTek RTL8187L]
> Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
>
> linux-68an:/home/alex # iwconfig
> lo no wireless extensions.
>
>
> eth0 no wireless extensions.
> wmaster0 no wireless extensions.
> wlan0 IEEE 802.11bg ESSID:“HomeNet”
> Mode:Managed Frequency:2.462 GHz Access Point:
> 00:14:6C:68:EB:96
> Bit Rate=54 Mb/s Tx-Power=27 dBm
>
> Retry min limit:7 RTS thr:off Fragment thr=2352 B
>
> Encryption
> key:F701-7433-F87B-F7CC-2CB9-A787-1E15-237A-54FA-7C01-A21A-777A-2A31-D8FF-D3C0-E948
> [3] Security mode:open
> Power Management:off
>
> Link Quality=63/100 Signal level:32/65
>
> Rx invalid nwid:0 Rx invalid crypt:0 Rx invalid frag:0
>
> Tx excessive retries:0 Invalid misc:0 Missed beacon:0
>
> linux-68an:/home/alex # iwlist scan
> lo Interface doesn’t support scanning.
> eth0 Interface doesn’t support scanning.
> wmaster0 Interface doesn’t support scanning.
> wlan0 Scan completed :
> Cell 01 - Address: 00:14:6C:68:EB:96
> ESSID:“HomeNet”
> Mode:Master
> Channel:11
> Frequency:2.462 GHz (Channel 11)
> Quality=58/100 Signal level:37/65
> Encryption key:on
> IE: WPA Version 1
> Group Cipher : TKIP
> Pairwise Ciphers (1) : TKIP
>
> Authentication Suites (1) : PSK
> Bit Rates:1 Mb/s; 2 Mb/s; 5.5 Mb/s; 11 Mb/s; 22
> Mb/s
> 6 Mb/s; 9 Mb/s; 12 Mb/s; 18 Mb/s; 24
> Mb/s
> 36 Mb/s; 48 Mb/s; 54 Mb/s
> Extra:tsf=0000000294abc564
> Extra: Last beacon: 72ms ago

Good job. You just publicly posted your WPA key. No need to try to break it the
hard way.

This behavior is new to me. What does the output of 'dmesg | egrep “rtl|wlan”
show? Did you force the rate to be 54 Mbs, or was it set that way by the system?

Larry

Hi Larry,

I get the following result:

linux-68an:/home/alex # dmesg | egrep “rtl|wan”
phy0: hwaddr 00:0f:b5:cf:dc:a3, RTL8187vB (default) V1 + rtl8225
usbcore: registered new interface driver rtl8187

Interesting that this says RTL8187vB and it was RTL8187L according to lsusb.

The 54 Mbs was the default.

BTW - the WPA key has been randomly edited just on the off chance that anyone can work out where my router is and just happens to be close enough to use it.

Regards,

Alex

Versys wrote:
> Hi Larry,
>
> I get the following result:
>
> linux-68an:/home/alex # dmesg | egrep “rtl|wan”

That should have been wlan. not wan.

Larry

Oops!

linux-68an:~ # dmesg | egrep “rtl|wlan”
phy0: hwaddr 00:0f:b5:cf:dc:a3, RTL8187vB (default) V1 + rtl8225
usbcore: registered new interface driver rtl8187
wlan0: authenticate with AP 00:14:6c:68:eb:96
wlan0: authenticated
wlan0: associate with AP 00:14:6c:68:eb:96
wlan0: RX AssocResp from 00:14:6c:68:eb:96 (capab=0x471 status=0 aid=2)
wlan0: associated
SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3 DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=350
SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3 DST=224.0.0.251 LEN=260 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=240
SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3 DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=350
SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3 DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=350
SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3 DST=224.0.0.251 LEN=340 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP SPT=5353 DPT=5353 LEN=320

Thanks,

Alex

Versys wrote:
> Oops!
>
> linux-68an:~ # dmesg | egrep “rtl|wlan”
> phy0: hwaddr 00:0f:b5:cf:dc:a3, RTL8187vB (default) V1 + rtl8225
> usbcore: registered new interface driver rtl8187
> wlan0: authenticate with AP 00:14:6c:68:eb:96
> wlan0: authenticated
> wlan0: associate with AP 00:14:6c:68:eb:96
> wlan0: RX AssocResp from 00:14:6c:68:eb:96 (capab=0x471 status=0
> aid=2)
> wlan0: associated
> SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3
> DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP
> SPT=5353 DPT=5353 LEN=350
> SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3
> DST=224.0.0.251 LEN=260 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP
> SPT=5353 DPT=5353 LEN=240
> SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3
> DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP
> SPT=5353 DPT=5353 LEN=350
> SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3
> DST=224.0.0.251 LEN=370 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP
> SPT=5353 DPT=5353 LEN=350
> SFW2-INext-DROP-DEFLT IN=wlan0 OUT= MAC= SRC=192.168.0.3
> DST=224.0.0.251 LEN=340 TOS=0x00 PREC=0x00 TTL=255 ID=0 DF PROTO=UDP
> SPT=5353 DPT=5353 LEN=320

This doesn’t show anything.

When you bring it up next time, issue the command ‘sudo /sbin/iwconfig wlan0
rate 24M’ and see if that helps your throughput. I’m guessing that 54 Mb is too
fast and that you are getting many retransmits. If that is the case, I don’t
know why the rate-control mechanism isn’t slowing it down.

What does ‘dmesg | grep rate’ show?

Larry

I changed the rate to 24 and it made no difference.

linux-68an:~ # dmesg | grep rate

gives

phy0: Selected rate control algorithm ‘pid’

FYI, the Network Manager log for the session was as follows:

13:49:35 linux-68an NetworkManager: <info> starting…
13:49:35 linux-68an NetworkManager: <info> Trying to start the modem-manager…
13:49:35 linux-68an NetworkManager: <WARN> nm_generic_enable_loopback(): error -17 returned from rtnl_addr_add(): Sucess
13:49:35 linux-68an NetworkManager: <info> Found new Ethernet device ‘eth0’.
13:49:35 linux-68an NetworkManager: <info> wlan0: driver is ‘rtl8187’.
13:49:35 linux-68an NetworkManager: <info> wlan0: driver supports SSID scans (scan_capa 0x01).
13:49:35 linux-68an NetworkManager: <info> Found new 802.11 WiFi device ‘wlan0’.
13:49:35 linux-68an NetworkManager: <info> (wlan0): exported as /org/freedesktop/Hal/devices/net_00_0f_b5_cf_dc_a3
13:49:35 linux-68an NetworkManager: <info> Trying to start the supplicant…
13:49:35 linux-68an NetworkManager: <info> Trying to start the system settings daemon…
13:49:36 linux-68an NetworkManager: <info> modem manager appeared
13:49:36 linux-68an NetworkManager: <info> (wlan0): supplicant manager state: down → idle
13:49:39 linux-68an NetworkManager: <info> (wlan0): device state change: 1 → 2
13:49:39 linux-68an NetworkManager: <info> (wlan0): bringing up device.
13:49:51 linux-68an NetworkManager: <info> (wlan0): preparing device.
13:49:51 linux-68an NetworkManager: <info> (wlan0): deactivating device (reason: 2).
13:49:51 linux-68an NetworkManager: <info> (wlan0): device state change: 2 → 3
13:49:51 linux-68an NetworkManager: <info> (wlan0): supplicant interface state: starting → ready
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) starting connection ‘HomeNet’
13:50:49 linux-68an NetworkManager: <info> (wlan0): device state change: 3 → 4
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled…
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started…
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled…
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting…
13:50:49 linux-68an NetworkManager: <info> (wlan0): device state change: 4 → 5
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0/wireless): access point ‘HomeNet’ has security, but secrets are required.
13:50:49 linux-68an NetworkManager: <info> (wlan0): device state change: 5 → 6
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) scheduled…
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) started…
13:50:49 linux-68an NetworkManager: <info> (wlan0): device state change: 6 → 4
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) scheduled…
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 1 of 5 (Device Prepare) complete.
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) starting…
13:50:49 linux-68an NetworkManager: <info> (wlan0): device state change: 4 → 5
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0/wireless): connection ‘HomeNet’ has security, and secrets exist. No new secrets needed.
13:50:49 linux-68an NetworkManager: <info> Config: added ‘ssid’ value ‘HomeNet’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘scan_ssid’ value ‘1’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘key_mgmt’ value ‘WPA-PSK’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘psk’ value ‘<omitted>’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘proto’ value ‘WPA’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘pairwise’ value ‘TKIP CCMP’
13:50:49 linux-68an NetworkManager: <info> Config: added ‘group’ value ‘TKIP CCMP’
13:50:49 linux-68an NetworkManager: <info> Activation (wlan0) Stage 2 of 5 (Device Configure) complete.
13:50:49 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: scanning → disconnected
13:50:49 linux-68an NetworkManager: <info> Config: set interface ap_scan to 1
13:50:49 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: disconnected → scanning
13:50:53 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: scanning → associating
13:50:53 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: associating → associated
13:50:53 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: associated → 4-way handshake
13:50:55 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: 4-way handshake → group handshake
13:50:55 linux-68an NetworkManager: <info> (wlan0): supplicant connection state: group handshake → completed
13:50:55 linux-68an NetworkManager: <info> Activation (wlan0/wireless) Stage 2 of 5 (Device Configure) successful. Connected to wireless network ‘HomeNet’.
13:50:55 linux-68an NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) scheduled.
13:50:55 linux-68an NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) started…
13:50:55 linux-68an NetworkManager: <info> (wlan0): device state change: 5 → 7
13:50:55 linux-68an NetworkManager: <info> Activation (wlan0) Beginning DHCP transaction.
13:50:55 linux-68an NetworkManager: <info> dhclient started with pid 3207
13:50:55 linux-68an NetworkManager: <info> Activation (wlan0) Stage 3 of 5 (IP Configure Start) complete.
13:50:56 linux-68an NetworkManager: <info> DHCP: device wlan0 state changed (null) → preinit
13:51:02 linux-68an NetworkManager: <info> DHCP: device wlan0 state changed preinit → bound
13:51:02 linux-68an NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) scheduled…
13:51:02 linux-68an NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) started…
13:51:02 linux-68an NetworkManager: <info> address 192.168.0.3
13:51:02 linux-68an NetworkManager: <info> prefix 24 (255.255.255.0)
13:51:02 linux-68an NetworkManager: <info> gateway 192.168.0.1
13:51:02 linux-68an NetworkManager: <info> nameserver ‘192.168.0.1’
13:51:02 linux-68an NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) scheduled…
13:51:02 linux-68an NetworkManager: <info> Activation (wlan0) Stage 4 of 5 (IP Configure Get) complete.
13:51:02 linux-68an NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) started…
13:51:03 linux-68an NetworkManager: <debug> [1230126663.035107] run_netconfig(): Spawning ‘/sbin/netconfig modify --service NetworkManager’
13:51:03 linux-68an NetworkManager: <debug> [1230126663.050197] write_to_netconfig(): Writing to netconfig: INTERFACE=‘wlan0’
13:51:03 linux-68an NetworkManager: <debug> [1230126663.050667] write_to_netconfig(): Writing to netconfig: DNSSERVERS=‘192.168.0.1’
13:51:03 linux-68an NetworkManager: <info> Clearing nscd hosts cache.
13:51:03 linux-68an NetworkManager: <info> (wlan0): device state change: 7 → 8
13:51:03 linux-68an NetworkManager: <debug> [1230126663.081214] run_netconfig(): Spawning ‘/sbin/netconfig modify --service NetworkManager’
13:51:03 linux-68an NetworkManager: <debug> [1230126663.108263] write_to_netconfig(): Writing to netconfig: INTERFACE=‘wlan0’
13:51:03 linux-68an NetworkManager: <debug> [1230126663.108804] write_to_netconfig(): Writing to netconfig: DNSSERVERS=‘192.168.0.1’
13:51:03 linux-68an NetworkManager: <info> Clearing nscd hosts cache.
13:51:03 linux-68an NetworkManager: <info> Policy set ‘HomeNet’ (wlan0) as default for routing and DNS.
13:51:03 linux-68an NetworkManager: <info> Activation (wlan0) successful, device activated.
13:51:03 linux-68an NetworkManager: <info> Activation (wlan0) Stage 5 of 5 (IP Configure Commit) complete.
13:52:03 linux-68an NetworkManager: <debug> [1230126723.653907] periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to (none) ((none))
13:52:09 linux-68an NetworkManager: <debug> [1230126729.658016] periodic_update(): Roamed from BSSID (none) ((none)) to 00:14:6C:68:EB:96 (HomeNet)
13:53:03 linux-68an NetworkManager: <debug> [1230126783.685899] periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to (none) ((none))
13:53:09 linux-68an NetworkManager: <debug> [1230126789.690009] periodic_update(): Roamed from BSSID (none) ((none)) to 00:14:6C:68:EB:96 (HomeNet)
13:56:03 linux-68an NetworkManager: <debug> [1230126963.797865] periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to (none) ((none))
13:56:09 linux-68an NetworkManager: <debug> [1230126969.801888] periodic_update(): Roamed from BSSID (none) ((none)) to 00:14:6C:68:EB:96 (HomeNet)
13:58:03 linux-68an NetworkManager: <debug> [1230127083.877866] periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to (none) ((none))
13:58:09 linux-68an NetworkManager: <debug> [1230127089.881952] periodic_update(): Roamed from BSSID (none) ((none)) to 00:14:6C:68:EB:96 (HomeNet)
14:00:03 linux-68an NetworkManager: <debug> [1230127203.957844] periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to (none) ((none))
14:00:09 linux-68an NetworkManager: <debug> [1230127209.961959] periodic_update(): Roamed from BSSID (none) ((none)) to 00:14:6C:68:EB:96 (HomeNet)

Regards,

Alex

Versys wrote:
> I changed the rate to 24 and it made no difference.
>
> linux-68an:~ # dmesg | grep rate
>
> gives
>
> phy0: Selected rate control algorithm ‘pid’

The ‘pid’ algorithm works pretty well. A better one called ‘minstrel’ is in the
pipeline, but ‘pid’ should be OK.

> 14:00:03 linux-68an NetworkManager: <debug> [1230127203.957844]
> periodic_update(): Roamed from BSSID 00:14:6C:68:EB:96 (HomeNet) to
> (none) ((none))
> 14:00:09 linux-68an NetworkManager: <debug> [1230127209.961959]
> periodic_update(): Roamed from BSSID (none) ((none)) to
> 00:14:6C:68:EB:96 (HomeNet)

The roaming from Homenet to none and back is “normal”. At least that happens
here too.

If you run a ping test to your AP, do you see an increase in the times? Use the
command

ping -c 10 -s 1300 <your_AP’s_IP>

Note the statistics, which will look like

— 192.168.1.1 ping statistics —
10 packets transmitted, 10 received, 0% packet loss, time 9013ms
rtt min/avg/max/mdev = 2.740/3.371/4.056/0.411 ms

Then run the command

ping -c 1200 -s 1300 <your_AP’s_IP>

That will be a 20 minute test. What we want to see is if there are a lot of
packets lost, or if the time is a lot longer at the end than we saw at the
beginning.

Perhaps we can isolate the problem.

Larry

Hi Larry,

the results of these tests were:

— 192.168.0.1 ping statistics —
10 packets transmitted, 10 received, 0% packet loss, time 9041ms
rtt min/avg/max/mdev = 6.205/6.686/7.380/0.377 ms

— 192.168.0.1 ping statistics —
1200 packets transmitted, 1089 received, 9% packet loss, time 1203267ms
rtt min/avg/max/mdev = 5.700/59.753/3082.309/310.690 ms, pipe 4

I plotted the results of the second test on graph and it shows spikes up to 3000ms roughly every 100 pings. Also, there is a general increase in average time after 500 pings and particularly between 600 & 800 and 850 to the end.

Hope this is useful.

Regards,

Alex

Versys wrote:
> Hi Larry,
>
> the results of these tests were:
>
> — 192.168.0.1 ping statistics —
> 10 packets transmitted, 10 received, 0% packet loss, time 9041ms
> rtt min/avg/max/mdev = 6.205/6.686/7.380/0.377 ms
>
> — 192.168.0.1 ping statistics —
> 1200 packets transmitted, 1089 received, 9% packet loss, time
> 1203267ms
> rtt min/avg/max/mdev = 5.700/59.753/3082.309/310.690 ms, pipe 4
>
> I plotted the results of the second test on graph and it shows spikes
> up to 3000ms roughly every 100 pings. Also, there is a general increase
> in average time after 500 pings and particularly between 600 & 800 and
> 850 to the end.

That loss of 9% looks bad. Is your device external? How hot does it get? If
possible, retry the second ping with a fan on the device, or some other means of
cooling.

FYI, this is what the long test looks like here:

— 192.168.1.1 ping statistics —
1000 packets transmitted, 1000 received, 0% packet loss, time 1001166ms
rtt min/avg/max/mdev = 2.549/29.388/2437.030/202.249 ms, pipe 3

Larry

Hi Larry,

Hope you had a nice Xmas.

In answer to your question, the device in question is an external USB dongle,

Some further information:

When I use this on another machine I get the following:

[root@localhost alex]# iwlist rate
lo no bit-rate information.

wlan0 1 available bit-rates :
500 kb/s
Current Bit Rate=54 Mb/s

When I tried

iwconfig wlan0 rate 24M

per your previous suggesting and then iwconfig, the bitrate still showed as 54 Mb/s.

Re the dropped packets, is it possible to change a configuration somewhere to reduce/avoid this behaviour?

Regards,

Alex

Versys wrote:
> Hi Larry,
>
> Hope you had a nice Xmas.
>
> In answer to your question, the device in question is an external USB
> dongle,
>
> Some further information:
>
> When I use this on another machine I get the following:
>
> [root@localhost alex]# iwlist rate
> lo no bit-rate information.
>
> wlan0 1 available bit-rates :
> 500 kb/s
> Current Bit Rate=54 Mb/s

That essentially matches what I see.

> When I tried
>
> iwconfig wlan0 rate 24M

Was this done as root?

> per your previous suggesting and then iwconfig, the bitrate still
> showed as 54 Mb/s.
>
> Re the dropped packets, is it possible to change a configuration
> somewhere to reduce/avoid this behaviour?

I think that is due to trying to use 54M on a link that cannot quite support
that rate. I don’t understand why iwconfig doesn’t change the rate. That code
was fixed in mac80211 a long time ago.

Larry

Hi Larry,

yes, I have done all of this as root. The only time I can see the bitrate changing is when I use a machine much further away from the AP - even then it sometimes goes to 54 Mbs, as if it is being changed dynamically according to various factors.

Regards,

Alex

Versys wrote:
> Hi Larry,
>
> yes, I have done all of this as root. The only time I can see the
> bitrate changing is when I use a machine much further away from the AP -
> even then it sometimes goes to 54 Mbs, as if it is being changed
> dynamically according to various factors.

That is normal and it seems that rate adjustment is working; however, I would
expect the rate to be downgraded with a 9% packet loss with ping. That loss is
certainly your problem.

The only other thing to try is to force rates of 11, 5.5, 2, or 1 Mbs. These
rates use a different encoding scheme than the other possible rates. See what
losses you get for the 20 minute ping at each of those rates.

Larry

Hi Larry,

results were:

1M
— 192.168.0.1 ping statistics —
1200 packets transmitted, 1199 received, 0% packet loss, time 1203701ms
rtt min/avg/max/mdev = 16.891/62.277/3250.740/304.839 ms, pipe 4

2M
— 192.168.0.1 ping statistics —
1200 packets transmitted, 1199 received, 0% packet loss, time 1203752ms
rtt min/avg/max/mdev = 11.406/53.765/2969.629/288.305 ms, pipe 3

5.5M
— 192.168.0.1 ping statistics —
1200 packets transmitted, 1200 received, 0% packet loss, time 1203702ms
rtt min/avg/max/mdev = 7.908/50.791/3159.593/292.770 ms, pipe 4

11M
— 192.168.0.1 ping statistics —
1200 packets transmitted, 1200 received, 0% packet loss, time 1203797ms
rtt min/avg/max/mdev = 6.926/51.229/3223.697/300.645 ms, pipe 4

I tried downloading some stuff earlier:

  • plug in adapter
  • when connection was completed, check rate via iwconfig - this usually started off at around 11
  • start download
  • periodically recheck rate - this showed an increase over time

The download timed out regularly and when I checked the rate it was always at 54.

Looks like something is causing (or allowing) the rate to increase even when I set it at a low figure.

Regards,

Alex

Versys wrote:
> Hi Larry,
>
> results were:
>
> 1M
> — 192.168.0.1 ping statistics —
> 1200 packets transmitted, 1199 received, 0% packet loss, time
> 1203701ms
> rtt min/avg/max/mdev = 16.891/62.277/3250.740/304.839 ms, pipe 4
>
> 2M
> — 192.168.0.1 ping statistics —
> 1200 packets transmitted, 1199 received, 0% packet loss, time
> 1203752ms
> rtt min/avg/max/mdev = 11.406/53.765/2969.629/288.305 ms, pipe 3
>
> 5.5M
> — 192.168.0.1 ping statistics —
> 1200 packets transmitted, 1200 received, 0% packet loss, time
> 1203702ms
> rtt min/avg/max/mdev = 7.908/50.791/3159.593/292.770 ms, pipe 4
>
> 11M
> — 192.168.0.1 ping statistics —
> 1200 packets transmitted, 1200 received, 0% packet loss, time
> 1203797ms
> rtt min/avg/max/mdev = 6.926/51.229/3223.697/300.645 ms, pipe 4
>
> I tried downloading some stuff earlier:
>
> - plug in adapter
> - when connection was completed, check rate via iwconfig - this usually
> started off at around 11
> - start download
> - periodically recheck rate - this showed an increase over time
>
> The download timed out regularly and when I checked the rate it was
> always at 54.
>
> Looks like something is causing (or allowing) the rate to increase even
> when I set it at a low figure.

To check that, open a terminal window and enter the following command while
downloading, or even pinging:

while 1 ] ; do iwconfig wlan0 | grep Mb ; sleep 1; done

If your device is not known as wlan0, change that part. This will print the rate
every second.

I’ll boot the standard kernel and see what happens with my RTL8187B.

Larry

Larry Finger wrote:
>
> To check that, open a terminal window and enter the following command while
> downloading, or even pinging:
>
> while 1 ] ; do iwconfig wlan0 | grep Mb ; sleep 1; done
>
> If your device is not known as wlan0, change that part. This will print the rate
> every second.
>
> I’ll boot the standard kernel and see what happens with my RTL8187B.

I have tried the 11.1 kernel (2.6.27.7-9-default) and found the same results.
When I issue a command

sudo iwconfig wlan0 rate 11M

The interface goes to 11M and stays there just as I expected. The rate-changing
behavior is part of mac80211 and it shouldn’t matter that I’m using an RTL8187B,
not an RTL8187.

Larry

Hi I use the same card, and received a tip in another forum to delete networkmanager and install WicD for Wifi. I haven’t tried this yet, but according to other users this works.

bjarte k wrote:
> Hi I use the same card, and received a tip in another forum to delete
> networkmanager and install WicD for Wifi. I haven’t tried this yet, but
> according to other users this works.

Using something other than NetworkManager would make sense if you were having
problems making a connection; however that is not the problem here. The OP has
no problem making the connection, but the rate-control mechanism is setting the
rate too high and he gets an unacceptable retry rate. That is a kernel problem,
not something in userland, like NM.

Larry

Hi Larry,

this has been working more or less ok with the bitrate set to 11.

Is it possible to change a configuration file somewhere so that the rate is automatically set to 11 on boot or hotplug?

Regards,

Alex