News for hackers. Stuff that matters.
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by jervisfm on Saturday November 30, 2013 @12:21PM (#6823725)
This is a neat idea. Does anyone know if it's possible to achieve a similar effect natively on Linux ? i.e. make the linux network stack load-balance all outgoing connections to all available interfaces ?
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by dgquintas on Saturday November 30, 2013 @01:00PM (#6823858)
"Bonding" at the kernel level:

The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical "bonded" interface. The behavior of the bonded interfaces depends on the mode. Generally speaking, modes provide either hot standby or load balancing services. Additionally, link integrity monitoring may be performed.

https://www.kernel.org/doc/Documentation/networking/bonding....

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by cdcarter on Saturday November 30, 2013 @02:35PM (#6824263)
People who are downvoting dgquintas, can you explain why? Or explain why this doesn't work? It seems to fulfill the problem?
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by vxxzy on Saturday November 30, 2013 @04:43PM (#6824748)
Bonded Interfaces operate at a lower level. There are many different "bonding modes" in the Linux Kernel. None of them would allow you to present a single "bonded" interface across multiple independent network interfaces where each interface belongs to a separate network. Case in point: You cannot "bond" two interfaces where one is connected to a cable modem and the other a DSL modem. Typically (in most configurations) a bonded interface receives one IP.
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by drdaeman on Sunday December 01, 2013 @09:08AM (#6827307)
You can, but you need to make two tunnels (GRE, IPIP or whatever you fancy) over those two uplinks, then create a bond over those - if that's technically possible (I believe interfaces must at least have equal MTUs, can't remember what other requirements are). Obviously, this requires configuration on both sides of the bond.

And, ahem, correct load balancing over bonded interfaces is not trivial as it may seem (although, usually it's more likely you'll be able to distribute approximately evenly than not)

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by Gonzih on Sunday December 01, 2013 @12:48PM (#6828274)
sarcasm They hate fact that such cool feature can be implemented without node.js sacrasm
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by mike-cardwell on Saturday November 30, 2013 @12:38PM (#6823783)
I'm pretty sure you can do this sort of load balancing on Linux without having to install any extra software, at the IP level, with the "ip rule" and "iptables" commands.

EDIT: Yep: https://home.regit.org/netfilter-en/links-load-balancing/

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by anoncow16 on Saturday November 30, 2013 @01:34PM (#6823990)
TL;DR just buy a faster internet connection.

It is possible to do per-packet load sharing in Linux as the link above suggests. Both links need to be able to source traffic using the same IP address, i.e. you can't mix comcast and dsl. The way to get around this is to have an upstream router that will source your traffic from the same IP address:

client - routerD --upstream1---routerU -- the internets |-------upstream2-----|

The iptables statistic module with random mode seems to work better than nth packet.

Keep in mind PPS load sharing is not the most effective way to utilize links as retransmissions will slow things down. Now if you have two links to the same provider it's probably OK. You can even buy a bonded connection from most providers where they do all of this for you.

You are much better off doing flow based ECMP routing: http://lkml.indiana.edu/hypermail/linux/net/0207.2/0047.html

ECMP is only useful if you have a large number of clients. So you can do PPS load sharing, knowing full well that it's going to be slower than a single link some percentage of the time or just buy a faster connection.

TL;DR again, just buy a faster connection.

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by shocks on Saturday November 30, 2013 @02:11PM (#6824151)
> just spend more money

Mmmhmm, that's the true hacker spirit right there...

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by toomuchtodo on Saturday November 30, 2013 @08:21PM (#6825585)
Time > Money

I can always make more of one of those.

Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by anujanpan on Saturday November 30, 2013 @08:38PM (#6825628)
It costs one to make the other.
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by toomuchtodo on Saturday November 30, 2013 @08:45PM (#6825652)
I guess it depends on how you want to spend your time.
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by kvinnako on Monday December 02, 2013 @04:56PM (#6836848)
If everybody follows this advice, then the isp has to/will be increasing the price of the faster connection. And this is especially true in US, since there is virtually no real competition for isp.
Re:Combine your Wi-Fi, Ethernet and 3G connections to increa... by TallGuyShort on Saturday November 30, 2013 @01:00PM (#6823859)
There's been work in this direction: http://multipath-tcp.org/