3 ms·
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 so
by anoncow16 13y ago
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 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.
- shocks 13y ago> just spend more money Mmmhmm, that's the true hacker spirit right there...
- toomuchtodo 13y agoTime > Money I can always make more of one of those.
- anujanpan 13y agoIt costs one to make the other.
- toomuchtodo 13y agoI guess it depends on how you want to spend your time.
- kvinnako 13y agoIf 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.