Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Decide on router hardware - Supernode #15

Closed
1 task done
darkdrgn2k opened this issue Jun 14, 2020 · 6 comments
Closed
1 task done

Decide on router hardware - Supernode #15

darkdrgn2k opened this issue Jun 14, 2020 · 6 comments
Assignees
Labels
network Network Planning, Design and Operations

Comments

@darkdrgn2k
Copy link
Contributor

darkdrgn2k commented Jun 14, 2020

This initial comment is collaborative and open to modification by all.

Task Summary

🎟️ Re-ticketed from: #
πŸ“… Due date: N/A
🎯 Success criteria: Selection on router hardware

To Do

  • Select and test router

Bench Marks

P2P Device directly connected to a computer
Routed Device between two computers routing across subnets
WG P2P Device WG to another Device
WG Routed Device GW to another device and an PC Routed across that link

Devices P2P Routed WG P2P WG Routed L2TP P2P L2TP Routed
EspressoBin βœ”οΈ 931 ❌ 335/403 ❌ 213/335 -- --
AtomicPi βœ”οΈ 923 βœ”οΈ 837 βœ”οΈ 895 🟨 665 βœ”οΈ 767/863 βœ”οΈ 798/705
WRT1900ACV1 βœ”οΈ 920 βœ”οΈ 879 🟨 350/450 ❌ 280/338 -- --
EdgerouteX 356/533 750/510 -- -- -- --
EdgerouteX HW OFFLOAD 913/927 217/180 180/211 -- --
OmniTik POE 900
@darkdrgn2k
Copy link
Contributor Author

darkdrgn2k commented Jun 15, 2020

BABELD on Debian
#12 (comment)

BABELD on OpenWRT

opkg update
opkg install babeld

cat  <<"EOF">  /etc/config/babeld
package babeld  
config general
    option 'local_port' '999'

config interface 'eth0'
    option 'ifname' 'eth0'
EOF


cat <<"EOF"> /etc/babeld.conf
echo redistribute if eth0
redistribute deny
EOF

@darkdrgn2k
Copy link
Contributor Author

Espresso Bin Benchmark

[iperf PC]--gige---[iperf espressobin]
βœ”οΈ 931/Mbits/sec Mbits/sec

[iperf PC]--gige---[espressobin bridged]----[iperf PC]
βœ”οΈ 936/947 Mbits/sec

[iperf PC]--gige---[espressobin routed]----[iperf PC]
❌ 335/403 Mbits/sec

[iperf exitnode]--gige wan---[iperf espressobin]
❌ 199/199 Mbits/sec MAX drops to 20

@ASoTNetworks
Copy link
Member

ASoTNetworks commented Jun 15, 2020

Doing some testing on the Atomic Pi which is an Atom x5-Z8350 SoC

[iperf PC]--gige---[iperf atomic pi USB3 dongle]
βœ”οΈ 923/Mbits/sec

[iperf VM over babled]--gige---[iperf atomic pi onboard]
βœ”οΈ 800/Mbits/sec

[iperf VM over babled]--gige---[atomic pi onboard routed over USB3 dongle]---[iperf PC]
βœ”οΈ 837/Mbits/sec

[atomic pi wg0 over USB3 dongle]--gige---[WireGuard server with iperf]
βœ”οΈ 895/Mbits/sec

[iperf VM over babled]--gige---[atomic pi onboard routed over wg0 encapsulated to physical USB3 dongle]--gige---[VM running WireGuard server with iperf]
🟨 665/Mbits/sec

CPU usage when routing over wireguard
Screenshot_2020-06-15_16-19-02

@darkdrgn2k
Copy link
Contributor Author

darkdrgn2k commented Jun 16, 2020

Wire guard Test

Client

  • ip address 192.168.1.x

cat <<"EOF"> wg0.conf

[Interface]
PrivateKey = cFP6gBOZrvqlt/XkdT7Cp6HOLuNMYa6yVNcCR+e9IEw=
ListenPort = 1000

[Peer]
PublicKey = 1510YjIH8EfQtJ2zxEEUb5+1B4HqmIv86pwpkJwNOW4=
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0
Endpoint = 192.168.1.2:1000
EOF
ifconfig wg0 down
ip link del dev wg0
ip link add dev wg0 type wireguard
wg setconf wg0 wg0.conf
ip addr add 10.254.254.2/24 dev wg0
ifconfig wg0 up

Server

ip address 192.168.1.2


#### SERVER
cat <<"EOF"> wg0.conf
[Interface]
PrivateKey = 4LMdS6DPRe5gHcmMWYhZqlM9PzFTEeDz0kz0YIMCPm0=
ListenPort = 1000

[Peer]
PublicKey = //C9KkNgCgT/0+bIb6YMS558xNx6wJOwAuGbqO8CGlI=
AllowedIPs = 0.0.0.0/0
AllowedIPs = ::/0

EOF

ifconfig wg0 down
ip link del dev wg0
ip link add dev wg0 type wireguard
wg setconf wg0 wg0.conf
ip addr add 10.254.254.1/24 dev wg0
ifconfig wg0 up

@darkdrgn2k
Copy link
Contributor Author

darkdrgn2k commented Jul 2, 2020

Router X with Hardware Offloading
Seepds of ~ 217/180 VPN over WG
If we drop encryption 800-900
Comes as a weather proof version (edge point)
Babeld can be side loaded onto stock - https://github.com/darkdrgn2k/RouterX-Babeld-Package

Toronto Community Network: Main Project Board automation moved this from Doing to Completed Jul 19, 2020
@darkdrgn2k darkdrgn2k added the network Network Planning, Design and Operations label Jul 19, 2020
@darkdrgn2k
Copy link
Contributor Author

Edge Router does not HW Accelerate over tunnels leaving speeds at ~300Mbps

@darkdrgn2k darkdrgn2k reopened this Jul 31, 2020
Toronto Community Network: Main Project Board automation moved this from Completed to Todo Jul 31, 2020
@makew0rld makew0rld mentioned this issue Aug 3, 2020
3 tasks
@darkdrgn2k darkdrgn2k changed the title Decide on router hardware Decide on router hardware - Supernode Aug 3, 2020
Toronto Community Network: Main Project Board automation moved this from Todo to Completed Aug 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
network Network Planning, Design and Operations
Development

No branches or pull requests

2 participants