Page MenuHomeVyOS Platform

Allow bonding non-ethernet interfaces
Open, WishlistPublicFEATURE REQUEST

Description

Basically, the idea is to allow doing this:

set interfaces openvpn vtun0 bond-group bond0.

Use case: bonding multiple OpenVPN TAP tunnels over different WANs to aggregate the bandwidth and get faster internet access when MLPPP is not possible.

This is already possible in ZeroShell ("VPN bonding") and most likely in pfSense too (haven't tested it but I can bond ovpncX interfaces in a LAGG).

Under the hood, this would have to be done:
ip link set dev vtun0 master bond0.

Details

Difficulty level
Hard (possibly days)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible
Issue type
Unspecified (please specify)

Event Timeline

sebastianm updated the task description. (Show Details)
sebastianm updated the task description. (Show Details)

If you have a lab to try - may be you can just copy

/opt/vyatta/share/vyatta-cfg/templates/interfaces/ethernet/node.tag/bond-group

into

/opt/vyatta/share/vyatta-cfg/templates/interfaces/tunnel/node.tag/bond-group

and check, whether the corresponding config mode commands will just work. If they do, it will be much easier to write a patch.

There should also be some dependency issue - such bonding interface can be brought up AFTER underlying vtun's, I think. And it should be somehow explicitly specified.

I've copied it and I can set bond-group on the OpenVPN interface. I'll check if it actually works in a minute. (you need to replace "tunnel" in the second string with openvpn).

Looks like it doesn't work. I can't see any traffic on bond0 although it's configured in round-robin mode.

When I commit the openvpn interface, I get the following:
Warning: priority inversion [interfaces openvpn vtun1 bond-group](319) <= [interfaces openvpn vtun1](460)

changing [interfaces openvpn vtun1 bond-group] to (461)

I've tried to attain this holy grail of combining VPNs to gain a faster more reliable link. Although my environment where multiple consumer WAN links with different specs. Yours seem to be more uniform to account for so you might get away with easier.

Bonding tunnels is a bad idea when latency differences arise on your paths. The problem can be exacerbated by using TCP over TCP with it's own set of problems (running out of your TCP window). I was able to overcome latency differences by using a lot of sticky-interface glue to ensure a TCP stream would use the same link regardless of which side initiated and then again you want to make source-dest tupples sticky to keep the internet workable.

I think the ultimate solution is VPN over multi-path TCP.

The only remotely sensible use case I can see is active/standby bonding of L2 VPNs to provide redundant paths. But then again, the real answer to this is distributed switches such as openvswitch.

Well, I'd like to use bonding with round-robin load balancing over two VDSL2 uplinks to same provider with the same latency (my ISP wants a business account for MLPPP).

Also, it doesn't seem to work because vtun0 is not coming up -- but that seems to be related to my specific config.

I'll check it again and try to get it working.

I tried to get this working on a good known OpenVPN TAP configuration. I can confirm that it's flaky and will require additional debugging.

syncer triaged this task as Wishlist priority.Dec 21 2017, 9:40 PM
dmbaturin set Is it a breaking change? to Perfectly compatible.
dmbaturin changed Difficulty level from Unknown (require assessment) to Hard (possibly days).Jan 27 2021, 6:39 PM

+1

like with Mikrotik you can bond almost any interface, like vlans even

dmbaturin set Issue type to Unspecified (please specify).