brektrou / rtl8821CU

Realtek RTL8811CU/RTL8821CU USB Wi-Fi adapter driver for Linux
GNU General Public License v2.0
1.58k stars 458 forks source link

Extremely low RX Rate #139

Open waddisdis opened 3 years ago

waddisdis commented 3 years ago

Kernel 4.19.91

Generally speaking the driver is working but compared to the TX rate I got extremely poor RX rate. With UDP I see a packet loss of about 90%. WiFi sniffer detects dropped packets. I have ruled out hardware and network issues. USB Mass storage TX/RX rates are within parameters as well. CPU is mostly idling Maybe someone here can make sense of this and point me to the right direction.

When receiving data I keep getting these messages:

RTW: check_indicate_seq(wlan0) tid:0 indicate_seq:1908 > seq_num:1904 RTW: DBG_RX_DROP_FRAME recv_indicatepkt_reorder(wlan0) check_indicate_seq fail RTW: check_indicate_seq(wlan0) tid:0 indicate_seq:1908 > seq_num:1905 RTW: DBG_RX_DROP_FRAME recv_indicatepkt_reorder(wlan0) check_indicate_seq fail RTW: check_indicate_seq(wlan0) tid:0 indicate_seq:1908 > seq_num:1906 RTW: DBG_RX_DROP_FRAME recv_indicatepkt_reorder(wlan0) check_indicate_seq fail RTW: check_indicate_seq(wlan0) tid:0 indicate_seq:1948 > seq_num:1946 RTW: DBG_RX_DROP_FRAME recv_indicatepkt_reorder(wlan0) check_indicate_seq fail RTW: check_indicate_seq(wlan0) tid:0 indicate_seq:1990 > seq_num:1988 RTW: DBG_RX_DROP_FRAME recv_indicatepkt_reorder(wlan0) check_indicate_seq fail RTW: DBG_RX_DROP_FRAME recv_decache(wlan0) recv_decache _FAIL for sta=7c:ff:4d:ec:30:75 RTW: DBG_RX_DROP_FRAME recv_decache(wlan0) recv_decache _FAIL for sta=7c:ff:4d:ec:30:75

TX rate test:

iperf3 -Vc 192.168.2.70 iperf 3.0.12 Linux 4.19.91 #1 SMP PREEMPT Wed Jun 30 10:27:01 UTC 2021 armv7l GNU/Linux Time: Wed, 07 Jan 1970 06:16:51 GMT Connecting to host 192.168.2.70, port 5201 Cookie: 541011.454669.660fc2bf5575710 TCP MSS: 1448 (default) [ 4] local 192.168.2.35 port 49536 connected to 192.168.2.70 port 5201 Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test [ ID] Interval Transfer Bandwidth Retr Cwnd [ 4] 0.00-1.01 sec 4.40 MBytes 36.5 Mbits/sec 0 397 KBytes
[ 4] 1.01-2.01 sec 9.51 MBytes 79.8 Mbits/sec 0 823 KBytes
[ 4] 2.01-3.01 sec 8.02 MBytes 67.2 Mbits/sec 40 676 KBytes
[ 4] 3.01-4.01 sec 8.51 MBytes 71.5 Mbits/sec 0 742 KBytes
[ 4] 4.01-5.01 sec 9.13 MBytes 76.5 Mbits/sec 30 563 KBytes
[ 4] 5.01-6.01 sec 8.45 MBytes 71.1 Mbits/sec 0 607 KBytes
[ 4] 6.01-7.01 sec 7.89 MBytes 66.1 Mbits/sec 0 635 KBytes
[ 4] 7.01-8.01 sec 7.95 MBytes 66.8 Mbits/sec 0 652 KBytes
[ 4] 8.01-9.01 sec 8.26 MBytes 69.2 Mbits/sec 0 659 KBytes
[ 4] 9.01-10.01 sec 9.38 MBytes 78.8 Mbits/sec 0 660 KBytes

Test Complete. Summary Results: [ ID] Interval Transfer Bandwidth Retr [ 4] 0.00-10.01 sec 81.5 MBytes 68.3 Mbits/sec 70 sender [ 4] 0.00-10.01 sec 79.9 MBytes 67.0 Mbits/sec receiver CPU Utilization: local/sender 5.1% (0.2%u/4.9%s), remote/receiver 1.8% (0.1%u/1.7%s)

RX rate test:

iperf3 -RVc 192.168.2.70 iperf 3.0.12 Linux 4.19.91 #1 SMP PREEMPT Wed Jun 30 10:27:01 UTC 2021 armv7l GNU/Linux Time: Wed, 07 Jan 1970 06:17:12 GMT Connecting to host 192.168.2.70, port 5201 Reverse mode, remote host 192.168.2.70 is sending Cookie: 541031.810115.252a7f1d6376840 TCP MSS: 1448 (default) [ 4] local 192.168.2.35 port 49540 connected to 192.168.2.70 port 5201 Starting Test: protocol: TCP, 1 streams, 131072 byte blocks, omitting 0 seconds, 10 second test [ ID] Interval Transfer Bandwidth [ 4] 0.00-1.01 sec 109 KBytes 887 Kbits/sec
[ 4] 1.01-2.01 sec 218 KBytes 1.78 Mbits/sec
[ 4] 2.01-3.01 sec 104 KBytes 852 Kbits/sec
[ 4] 3.01-4.01 sec 503 KBytes 4.13 Mbits/sec
[ 4] 4.01-5.01 sec 407 KBytes 3.34 Mbits/sec
[ 4] 5.01-6.01 sec 314 KBytes 2.57 Mbits/sec
[ 4] 6.01-7.01 sec 311 KBytes 2.55 Mbits/sec
[ 4] 7.01-8.01 sec 315 KBytes 2.58 Mbits/sec
[ 4] 8.01-9.01 sec 235 KBytes 1.92 Mbits/sec
[ 4] 9.01-10.01 sec 226 KBytes 1.85 Mbits/sec

Test Complete. Summary Results: [ ID] Interval Transfer Bandwidth [ 4] 0.00-10.01 sec 2.80 MBytes 2.35 Mbits/sec sender [ 4] 0.00-10.01 sec 2.80 MBytes 2.35 Mbits/sec receiver CPU Utilization: local/receiver 3.7% (0.2%u/3.4%s), remote/sender 0.0% (0.0%u/0.0%s)

birdofprey commented 2 years ago

you have try install haveged