Ysurac / openmptcprouter

OpenMPTCProuter is an open source solution to aggregate multiple internet connections using Multipath TCP (MPTCP) on OpenWrt
https://www.openmptcprouter.com/
GNU General Public License v3.0
1.86k stars 269 forks source link

Hardware setup help #2586

Closed realgpp closed 1 year ago

realgpp commented 2 years ago

In case of pi4 or any other x86 board with only one Ethernet port how is it possible to use an Ethernet AP to make other devices connect to leverage aggregated speed by OMR? Is it possible to use a USB-RJ45 adapter to link AP and OMR? Or is it mandatory to have a switch (with power supply)? In the latter case, is it possible to configure OMR to use one external connection (DSL or 4g) for each port of the switch?

Is it true it's better to have eth ports with Intel chipset?

Ysurac commented 2 years ago

Better not to use any USB-RJ45 adapters. You need an ethernet switch (they always have power supply or they use PoE), and with a RPI you can aggregate up to 8 connection. For an AP, it only need to use OpenMPTCProuter IP as gateway (it's the case when it use DHCP).

Not really true for Intel chipset, for example I22x have some problems for now with OpenMPTCProuter.

ahayes commented 2 years ago

@realgpp I just recently set up OMR. I had the same concerns about using a Raspberry Pi 4 with single ethernet adapter because my aggregated bandwidth would theoretically be higher than a single gigabit port could handle.

In my case, I bought a small Intel box with four separate Intel I226-V adapter ports and have had to use a test build of OMR to have them recognized at all, and I and others have also had to find some workarounds due to DHCP issues with the Intel I22x adapters. It seems like maybe the issues have been resolved upstream in more recent Linux kernels but it may take a while for the fix to appear in OpenWRT and OMR.

But since working around the DHCP issue, things have been working great and my combined DSL and cable internet connection is solid and all appears from a single fixed VPS IP so even Plex is happy! @Ysurac is my new hero.

ioogithub commented 2 years ago

I have a similar box with 4x I226-V NICs (2.5Gb/s per NIC). The issue is here: https://github.com/Ysurac/openmptcprouter/issues/2584 however since I checked the "force link" setting it has been stable ever since. This "force link" settings is default for static but not for DHCP so being aware of this check seems to be the solution.

This type of device simplifies things considerably without needing a switch or VLANs. There are users in the servethehome forums that are using these boxes to sustain bandwidth of multiple Gb/s so the hardware is not the bottleneck.

I should mention that after purchasing an x86 box with 4 dedicated NICs has not fixed the bandwidth issues I was seeing with my rpi 4b with USB adpaters. My aggregate bandwidth is still much slower than the slowest connection alone and the bandwidth degrades substantially over time until I manually reset the interfaces.

I am still evaluating this hardware purchase but so far it hasn't been a success with OMR.

iambenmitchell commented 2 years ago

I use a raspberry pi 4 and I get about 130mbps down / 30mbps up. (2x 80/20 VDSL connections).

I might make a YouTube tutorial on how to setup the Vlans and stuff for this configuration if anyone is interested.

My switch is a TL-SG108E

vinceducat commented 2 years ago

@ahayes i m interrest in witch type of small pc box do you use do you have brand and model ?

ahayes commented 2 years ago

@vinceducat Sorry for the delay. The vendor I picked was CWWK (changwang.com) on Ali Express. They were recommended by someone else in the comments section of a Serve The Home video because they provide firmware updates. They were also very quick to respond to my questions in the AliExpress chat system. They even asked me which colour I wanted as soon as I ordered. Basic postal shipping was fast enough. Note that as we've been finding in this and other issues, there are currently issues with the Intel I225-V and I226-V adapters. It looks like more recent linux kernels might have a driver that works well but if your goal is OMR then just be aware of the issue above and related issues.

github-actions[bot] commented 1 year ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days