I have a raspberry pi that I use as a router, the configuration is basically as follows :
- Raspberry Pi Zero with raspbian (latest 4.4 kernel)
- USB 3.0 HUB with 4 ports connected to the main micro USB port
- WiFi Network Adapter (wlan0) configured as AP (hostapd) (chip RT5572N)
- WiFi Network Adapter (wlan1) client of another AP (ISP router) to get internet connection
The problem is that while the connection to the internet on the Pi is very fast and I can get 30 Mbps, same as the internet connection uplink, so that I can download a file at roughly 3.0 MB/s; the internal network is not so fast and when I try to download a file from the wifi network created by the Pi I basically get only 1.0 MB/s downloading the same file from the internet(it is actually the maximum speed I can get) .
I've performed some test on the internal Wi-Fi network created by the Pi and the average speed downloading or uploading a file from a PC to the Pi through SSH is around 2.5 MB/s therefore slow. The chip inside the AP wifi adapter is RT5572N.
Is the speed that I'm getting on the internal network acceptable or should I get more ? Is there a way (some kernel or hostapd configuration) to increase the performance of the internal network ?
Note
Since the USB 2 is potentially 480 MBt/s, even in the case we say that we have just half the speed and we go to 240 MB/s, since I have connected only two adapters to the usb hub, each adapter should have a potential bandwidth of 120 MBs, while here I'm not even getting 60 MB/s of bandwidth to each adapter ... Should we define this normal ? Why ?