Bananian

[Release] Bananian 14.11 for BPI-R1 (Router)

45 23340
dreamer  
I have been playing with the image the past few days.
With some hackery I now have dowse running as well.

Only thing missing for me so far is a working WLAN. I haven't gotten far, but it seems the current version in the kernel is outdated?
When this is working I will make a hostapd module for dowse so this can be integrated as well.

Anyway, thanks a lot for the effort, hopefully an official image can be released soon.

Later today I will do some network tests between gbit devices and see how well the r1 performs.

tkaiser  
Edited by tkaiser at Tue Dec 23, 2014 04:48
dreamer replied at Tue Dec 23, 2014 04:22
Later today I will do some network tests between gbit devices and see how well the r1 performs.


Wonderful. Please keep in mind that everything that has to be done by the SoC itself (I would assume that's everything except of letting the BCM53125 bridge between its internal ports) heavily relies on some tunables. Most importantly the CPU frequency stuff: http://forum.lemaker.org/thread-7102-1-1.html

Would be also great if you've an eye on CPU utilisation while you're running tests since from my limited test experiences this is the main bottleneck on the 'normal' BPi with the combination of internal GMAC+RTL8211 PHY.

dreamer  
Edited by dreamer at Tue Dec 23, 2014 15:39

Well, it seems that I'm barely able to get 100mbit on this. Also looked at the tcp/ip settings you describe in that topic, but that doesn't improve much.
Looking at htop while transferring, the load doesn't seem to get that high though.
So I'm really not sure where the bottleneck here is.

Definitely not getting anything above 10MB/s

mattrix  
Edited by mattrix at Tue Dec 23, 2014 14:24

I got hostapd working using the instructions here:

  1. apt-get install -y hostapd unzip
  2. wget ftp://WebUser:AxPL9s3k@23.251.207.30/cn/wlan/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911.zip
  3. unzip RTL8188C_8192C_USB_linux_*.zip
  4. tar zxvf RTL8188C_8192C_USB_linux_*/wpa_supplicant_hostapd/wpa_supplicant_hostapd-0.8_rtw_*.tar.gz
  5. cd wpa_supplicant_hostapd-0.8_*/hostapd/
  6. make
  7. cp hostapd hostapd_cli /usr/sbin/
Copy the Code
then use
  1. driver=rtl871xdrv
Copy the Code
in the hostapd.conf


Does give 1 IO error when starts up, but still seems to work..

tkaiser  
Edited by tkaiser at Tue Dec 23, 2014 16:23
dreamer replied at Tue Dec 23, 2014 13:37
Well, it seems that I'm barely able to get 100mbit on this.


In which mode (NAT, routing, switch/bridge, host to host)? IIRC some people reported here to be able to get more than 500 Mb/sec between BPi/R1 and another GBit capable host... With the OpenWRT image provided by Lamobo.

dreamer  
That's when routing from LAN to WAN.

tkaiser  
Edited by tkaiser at Wed Dec 24, 2014 03:20
dreamer replied at Wed Dec 24, 2014 01:34
That's when routing from LAN to WAN.


Has anyone else done some benchmarking so far and can confirm this poor performance?

mattrix  
I can get at least 50 Mb/s (my ISP speed)

nektor  
Edited by nektor at Wed Dec 24, 2014 19:37
mattrix replied at Wed Dec 24, 2014 12:00
I can get at least 50 Mb/s (my ISP speed)


Hello, I'm a fresh owner of a bpi-r1.

I've just managed to set forwarding from eth0.102 to eth0.101 and using http://www.passmark.com/products/pt_advnet.htm mesured following:
ntb1 -> rpi_b1 eth0.102 -> rpi_b1 eth0.101 -> ntb2 - 48Mbps

bpi_rpi

bpi_rpi

ntb1 -> rpi_b1 eth0.102 -> rpi_b1 eth0102 -> ntb2 - 70Mbps
ntb1 -> ntb2 - 70Mbps

From the image can be seen that bpi cannot keep up after a while and speed jitters.

I've used following commands on a fresh install of bananian:

ifconfig eth0.102 up
ifconfig eth0.102 192.168.1.1
sysctl -w net.ipv4.ip_forward=1
iptables -t nat -A POSTROUTING -i eth0.102 -s 192.168.1.0/24 -j SNAT --to-source 192.168.178.52

Local network uses 192.168.178.0/24 subnet.

I'm just learning, so feel free to correct me if i'm doing something wrong.

Have a nice day

Nektor

tkaiser  
Edited by tkaiser at Thu Dec 25, 2014 03:27
nektor replied at Wed Dec 24, 2014 18:31
I'm just learning, so feel free to correct me if i'm doing something wrong


Well, normally I would start to check boundary conditions and then do some structured tests.

You would need 2 GBit capable devices that you first interconnect directly and measure the throughput with eg. iperf. If this results in 930 Mb/sec or above these devices can be used for further tests. Otherwise not.

Then I would make the following tests:

  • run iperf directly on the BPi-R1 as a server and as a client and measure throughput between it and one of the other machines
  • set up simple forwarding (as you did) and measure throughput in both directions between the two clients
  • measure the same in bridging/switching mode (using two 'LAN ports' in the same VLAN)
  • measure the throughput from one Client to the other in NAT mode


Monitor CPU utilisation during all tests to get a clue where's the bottleneck if throughput is low and jitter occurs.

I would've done this myself if the test results published so far and the support situation with SinoVoip/Lamobo wouldn't be so horrible. And while it seems like a nice idea to combine a few Ethernet ports with a more powerful SoC and a SATA port the performance sucks. Every Mikrotik RouterBOARD just using Fast Ethernet seems to outperform the BPi-R1 easily...

You have to log in before you can reply Login | Sign Up

Points Rules