Wifi Client Bridging to Lan is Slow

Hi,

I have a TL-WDR4300 running the latest OpenWRT stable release (18.06.5)

I've replicated this configuration: https://openwrt.org/docs/guide-user/network/wifi/connect_client_wifi, mu goal is to connect to Wi-Fi and distribute the signal with LAN.

However, it's showing slow transfer rates.

I've checked wifi bitrate (client wifi):

root@OpenWrt:~# iwinfo | grep Bit
          Bit Rate: 450.0 MBit/s

And the LAN speed (client receiving internet) is 1Gbps.

Then I do iperf3 between the client connected to the LAN port in the TL-WDR4300 and a client in the network it's connecting to (via the wi-fi client) and the results are:

iperf3 -c 192.168.0.101 -p 5201 -P 1
Connecting to host 192.168.0.101, port 5201
[  5] local 192.168.1.157 port 56138 connected to 192.168.0.101 port 5201
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-1.00   sec  20.1 MBytes   168 Mbits/sec
[  5]   1.00-2.00   sec  20.0 MBytes   168 Mbits/sec
[  5]   2.00-3.00   sec  20.0 MBytes   168 Mbits/sec
[  5]   3.00-4.00   sec  20.0 MBytes   167 Mbits/sec
[  5]   4.00-5.00   sec  19.8 MBytes   166 Mbits/sec
[  5]   5.00-6.00   sec  20.4 MBytes   171 Mbits/sec
[  5]   6.00-7.00   sec  20.5 MBytes   172 Mbits/sec
[  5]   7.00-8.00   sec  20.3 MBytes   170 Mbits/sec
[  5]   8.00-9.00   sec  20.2 MBytes   169 Mbits/sec
[  5]   9.00-10.00  sec  20.3 MBytes   170 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate
[  5]   0.00-10.00  sec   201 MBytes   169 Mbits/sec                  sender
[  5]   0.00-10.02  sec   201 MBytes   168 Mbits/sec                  receiver

iperf Done.

If I connect directly to the other network I can get 1gbps transfer rate.

Any idea why I can't achieve at least 450mbps (wifi advertised bit rate)?

Best

450 MBit/s is the theoretical speed of WiFi. In the best case you will get half the speed in the real world. Edto happens because WiFi is a unidirectional link and not bidirectional as Ethernet.

At least is good :laughing:

Your speed result is not that bad.
My iperf test with the freshly ported wdr4300 to ath79 was 190 Mbit/s directly in front of the device.

As mentioned, 802.11 is only Half-Duplex and you are using iperf in the tcp mode.
Unlike in udp mode, there has to be sent back a ack for every received package.

2 Likes

Got it! Thanks Guys

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.

170 Mbit/s is excellent in real world conditions over WiFi n :slight_smile: