Quantcast
Channel: linuxadmin: Expanding Linux SysAdmin knowledge
Viewing all articles
Browse latest Browse all 17781

load balancing between eight 3g connections usin ip route

$
0
0

Here's what I'm trying to do:

  1. Use eight 3g connections and load balance between each connection on a per packet basis

Here's what I have so far

a. generic load balancer

Now I only use 3 of the 3G usb sticks:

Here's the output of ip route show

Everything is configured properly and works with the load balancer script Output

Okay, now everything is okay but... the load balancing works on only one connection when low traffic is involved. iptraf

I want it to load balance on all of them not just one even in low traffic conditions. Here's what happens when I try to download multple files at once.

iptraf and downloads

As you can see it works quite well, but alas not so when there's low traffic.

My hunch is that ip route needs the equalize command to be set to each ip route command since equalize allows packet by packet randomization on multipath routes

When I want to modify the script at line #76 from:

routecmd="ip route replace default scope global"

to

routecmd="ip route replace default scope global equalize"

to support the equalize option it screams at me with the following error:

Error: either "to" is duplicate, or "equalize" is a garbage.pastebin

What am I missing here ?

submitted by ovidiucs
[link] [3 comments]

Viewing all articles
Browse latest Browse all 17781

Trending Articles