wlan0/wlan1 routing/performance issue - Raspberry Pi Forums


dear raspberry experts,

struggling problem quite on month now. after testing (i possibly think of) hope here has clue wrong in setup.

want build portable hotspot/repeater. purpose bought 2 usb wifi dongles (ralink rt5372) external antennas, plugged in raspberry (pi1 rev. b, tested new pi2). setup looks this:

code: select all

public/hotel wifi (192.168.178.x) <--a--> [pi/wifi1 (192.168.178.70), pi/wifi0(10.0.0.1)] <--b--> clients (10.0.0.x)
set following many of repeater tutorials , tested raspbian wheezy , jessie. using jessie raspbian-ua-netinst, nothing should interrupt.
configured interfaces follows:

code: select all

allow-hotplug wlan0 auto wlan0 iface wlan0 inet static address 10.0.0.1 netmask 255.255.255.0  allow-hotplug wlan1 auto wlan1 iface wlan1 inet dhcp wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf 
hostapd configured:

code: select all

# 1. device act ap interface=wlan0 driver=nl80211 # 2. parameters daemon runs ctrl_interface=/var/run/hostapd ctrl_interface_group=0 # 3. wifi configuration ssid=wifipi_nomap channel=2 hw_mode=g ieee80211n=1 # 4. security of wifi connection wpa=2 wpa_passphrase=mysecretpw wpa_key_mgmt=wpa-psk wpa_pairwise=ccmp rsn_pairwise=ccmp # 5. other settings beacon_int=100 auth_algs=3 wmm_enabled=1 
routing enabled

code: select all

net.ipv4.ip_forward=1 iptables --table nat --append postrouting --out-interface wlan1 -j masquerade iptables --append forward --in-interface wlan0 -j accept 
dnsmasq configured wlan0.

comes mysterious part , problem: every time client downloads (passing connection b, pi, a) connection speed drops kbit/s.
more specific tried iperf on connection (dual test, sending , receiving) have 15 mbit/s, that's fine. additionally tried iperf connection b (dual test, sending , receiving) , 15 mbits/s too. when perform tests simultaneously on , b drops few kbit/s.
seems problem, when both adapters sending/receiving @ same time bad hotspot scenario. top not load, pi in idle.

have idea of whats going wrong setup?

in advance!

a short update: managed 2 edimax usb dongles (realtek rtl8188cus). compiled hostapd use realtek driver , setup worked, speaking of dhcp , routing but:
other adapters cannot have both adapters sending/receiving. speed drops few kbit/s.
out of ideas ...


raspberrypi



Comments

Popular posts from this blog

invalid use of void expresion in FlexiTimer2 library

error: a function-definition is not allowed here before '{' token

LED Strip Code