RPI-B as router
Alexey V. Panfilov
lehis2000 at mail.ru
Thu Mar 21 15:04:59 UTC 2013
Hi
I decide to test RRI-B as simple router (without NAT): [Host A] ---
[RPI-B] --- [Host B]
I've created two vlans on RPI (if_vlan.ko was load as module) and run
iperf between Host A and Host B:
[Host A~]# iperf -c 192.168.0.249 -P 5 -i 5 -t 300 | grep SUM
[SUM] 0.0- 5.0 sec 4.62 MBytes 7.76 Mbits/sec
[SUM] 5.0-10.0 sec 4.75 MBytes 7.97 Mbits/sec
[SUM] 10.0-15.0 sec 4.25 MBytes 7.13 Mbits/sec
So RPI-B network's throughput was around 20Mbit/sec of full-duplex traffic:
root at raspberry-pi:~ # netstat -hw 1
input (Total) output
packets errs idrops bytes packets errs bytes colls
2.8k 0 0 2.3M 2.8k 0 2.3M 0
2.3k 0 0 1.9M 2.3k 0 1.9M 0
2.1k 0 0 1.7M 2.1k 0 1.7M 0
2.3k 0 0 1.9M 2.3k 0 1.9M 0
2.7k 0 0 2.2M 2.7k 0 2.2M 0
Is this maximum for RPI-B by it's hardware limitation or it possible to
tune something?
P.S. some info about my setup of RPI-B:
gpu_mem=8Mb
FreeBSD 10.0-CURRENT r248554
Kernel's config (original RPI-B) was modified by commented out
#makeoptions MODULES_OVERRIDE=""
and added
options LIBALIAS
options IPFIREWALL
options IPFIREWALL_VERBOSE
options IPFIREWALL_VERBOSE_LIMIT=100
options IPFIREWALL_DEFAULT_TO_ACCEPT
options IPFIREWALL_NAT
options IPDIVERT
options IPSTEALTH
options DUMMYNET
options ROUTETABLES=2
Ipfw has one rule - allow ip from any to any
Top shows during the test:
63 processes: 2 running, 38 sleeping, 23 waiting
CPU: 0.8% user, 0.0% nice, 26.0% system, 18.6% interrupt, 54.7% idle
Mem: 6580K Active, 8460K Inact, 22M Wired, 19M Buf, 445M Free
Swap:
PID USERNAME PRI NICE SIZE RES STATE TIME WCPU COMMAND
10 root 155 ki31 0K 6968K RUN 133:59 59.33% idle
14 root -72 - 0K 7000K - 1:26 19.87% usb{usbus0}
11 root -88 - 0K 7144K WAIT 2:29 13.09%
intr{intr17: dwcotg0}
11 root -60 - 0K 7144K WAIT 1:21 0.29% intr{swi4:
clock}
13 root -16 - 0K 6968K - 0:08 0.10% yarrow
Thanks.
--
Best regards,
Alexey V. Panfilov
More information about the freebsd-arm
mailing list