Worse than expected throughput on an 802.11n wireless network, with a WLE600VX/hostapd/Slackware-14.2 based access point
I'm trying to set up a wireless access point on a Slackware 14.2 based system. After much fiddling, all clients in my house can now connect.
However throughput is substantially worse than I would expect. A quick test with iperf is indicative of the performance: Code:
------------------------------------------------------------ Code:
$ iperf -c 192.168.1.1 -P 5 Throughput over UDP is larger. I saw 100Mbits/sec with 100 parallel connections with iperf, though I cannot reproduce that now. Using speedtest.net while connected to the wireless network yields a speed of ~60Mbits/sec. I guess that is using UDP also. In any case, I'm pretty sure that the NIC is capable of 300Mbits/sec theoretical throughput on 2.4GHz, I'm not sure why that is not being achieved either. Some additional info: Code:
$ uname -a Code:
hostapd -v Code:
lspci -vnn Code:
03:00.0 Network controller [0280]: Qualcomm Atheros QCA986x/988x 802.11ac Wireless Network Adapter [168c:003c] Code:
$ cat /etc/hostapd/hostapd.conf My suspicion is that interference from neighboring access points (there are around 7 of them) is causing this, however I don't know how to test that. I don't control the other access points, so shutting them off is not an option. Any help would be greatly appreciated. Max |
I tried speed tests with my wifi and found that positioning was everything. Just beside the router I get nearly 40 MB/S, but with a bit of space and a partition wall in the way, the speed is less than half. Quality is key, and it was the one thing you didn't give us.
As for channels, do a scan with iwlist some evening and note what your neighbours use. Then get off those channels and specify a quiet one. It's the best you can do. Another useful exercise is to make a wired connection to the router, and benchmark your connection to those sites with that. Most network connections are good for at least 100Mbit/S these days. Even my bargain basement laptop has a 1 Gb nic in it. That's also dependent on wire length & quality, as is even 100Mbit. Long cat5/cat6 cables exist, but short ones are better. |
Well that's fair enough. Playing around with antenna positioning, I can change throughput by an order of magnitude (for the worse mind you but at least it's something).
At the moment the antennae are behind two desktop towers. I will get an extension or something to position them well clear and then try again. Still it puzzles me that throughput is so much better when using multiple connections. If the limiting factor were the signal quality/SN ratio then I would expect multiple connections not to help. |
You've a chain of links there: Each link in the chain is capable of being slow or misconfigured, and you need to check which.
* Going better with multiple connections to the same host implies something (router or pc) is limiting the max speed of any connection. Are we on the fastest protocol? * Going better with multiple connections to different hosts implies wireless reception is throttling the speed. Go to cat 5 or cat 6 and benchmark a wired test to your benchmarking sites. Then check each link until your interest dries up. A great indicator is quality. Try Code:
iwlist wlan0 scanning |grep -e 'Channel' -e 'Quality' -e 'ESSID' |less |
I've positioned the antennae well clear of the tower. Signal quality is now 70/70 and signal strength is -24dbm.
The throughput however is unchanged, it is still hovering around 15Mb/sec. I'm pretty convinced at this point that signal strength/quality is not the limiting factor here. Could this be some limitation of the NIC? Perhaps it is optimized for traffic in the outgoing 'direction' only? |
As you are anxious to get to the bottom of this test stages logically.
an you set up a high bandwidth wired connection to the router? Plug in and test throughput that way, taking the internet out of it. ISPs normally throttle upload, so I presume this is download. Is is it saving spare capacity for other connections that are never made? You're not going to solve it imho without some recourse to wired connections. |
With a wired connection (1Gbit ethernet) directly between the router and the same test machine I can achieve throughput of ~750Mbits/sec in iperf.
The internet was never a consideration here. The stated speeds are all between the router and test machine. |
Router to cable 750G/S is good. But you're leaving out the interesting bit.
cable --> router --> wifi is what I want to know about. |
Firstly upgrade to iperf3, it's results are more accurate than the older version.
Run iperf tests with '-t 30'. Number of Retries should be close to zero and Cwnd should generally increase with time, otherwise you've got problems somewhere. Is there anything else using the wireless network. A slow device can adversely affect the whole wireless network. You list an a/c WNIC at the laptop but state it's a 802.11n network so I assume the WNIC on the other end is an n type. Does it support 5GHz? How many antennas are there at both ends? By the way that reported 150Mbits/sec link speed is purely theoretical. Protocol overheads and the unique problems of wireless networking means don't expect anywhere near that in throughput. |
Quote:
Both ends have two antennas as far as I am aware. I know that the stated link speeds are theoretical only. I have however seen throughput in excess of 80Mbits/sec on a similarly rated network in the same location using a different AP. I have tried temporarily running in 5GHz mode. That did not help. |
Quote:
|
All times are GMT -5. The time now is 01:55 PM. |