*BSD News Article 97227


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!cam-news-hub1.bbnplanet.com!news.bbnplanet.com!news.mathworks.com!rill.news.pipex.net!pipex!tank.news.pipex.net!pipex!news.utell.co.uk!usenet
From: brian@shift.utell.net (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Multiple PPP connections
Date: 6 Jun 1997 10:47:25 GMT
Organization: Awfulhak Ltd.
Lines: 79
Message-ID: <5n8prt$20d@ui-gate.utell.co.uk>
References: <5n28qi$792@nntp.interaccess.com>
    <5n3cav$dpq@ui-gate.utell.co.uk> <5n46v8$mbs@nntp.interaccess.com>
Reply-To: brian@awfulhak.org, brian@utell.co.uk
NNTP-Posting-Host: shift.utell.net
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:42502

In article <5n46v8$mbs@nntp.interaccess.com>,
	jcook@interaccess.com (Jeffrey J. Cook) writes:
> Brian Somers (brian@shift.utell.net) wrote:
>: In article <5n28qi$792@nntp.interaccess.com>,
>: 	jcook@interaccess.com (Jeffrey J. Cook) writes:
>: > Does anyone know of an easy way of connecting to an ISP via multiple PPP
>: > modem connections, and have the bandwidth shared among them, not
>: > multilinking as my ISP doesn't support that, but just multiple data
>: > channels?  Will the user PPP I will be using with masquerading work
>: > natively with this or will special configs need to be done?
>: 
>: Can't be done without multilink ppp.  Both the local and remote side 
>: need to decide which physical line to send packets down based on
>: load.  This is a little tricky, so multilink ppp was created :)
>: 
> 
> So it is not possible for the two different modems to be running off
> different IP's and say each downloading a seperate file.   What I am
> seeing as the situation for me would be this: two PPP connections
> oblivious to eachother running seperate sessions, or maybe the connections
> be known to eachother just for load handling between the two sessions
> using TCP/IP clients.
> Again, my ISP doesn't support multilinking on their side so whatever needs
> to be done must be done on my side.  There has got to be something out
> there that will do this.

Ah, this is different.

Given that you have two ISPs (or two connections w/ 1 ISP),
you could have two ppps running, one to each.

Instead of having "add 0 0 x.x.x.x" and "add 0 0 y.y.y.y"
in your host.conf, you could have (say)
"add 1.0.0.0 128.0.0.0 x.x.x.x" and
"add 128.0.0.0 128.0.0.0 y.y.y.y" instead.  This would
tell your side to route address ranges 0.0.0.0 -> 127.255.255.255
through x.x.x.x and 128.0.0.0 -> 255.255.255.255 through
y.y.y.y.

This isn't dynamic in any way.  If you want to talk to two
machines that are both on the same one of the above ranges,
they'll both talk down the same modem while the other one's
idle.  You'd need some smart software that could multiplex
things on a per connection basis.

One way you could do this is two write a "connection splitter".
You'd have no default routes - but maybe a couple of static
routes where you know one particular line is faster.
Your program would sit on a divert socket reading *all* IP
packets.  When it sees an initial TCP connection to the ouside
world (something *not* in the routing table), it makes a route
on the fly down the least used line.  It then just dumps the
packet back into the IP stream and the regular forwarding
code says "oh look, I'll send it that way".

You could even make this program smart and "weight" the
interfaces based on knowledge that ISP 'a' is faster to
the US than ISP 'b'.

If you want to write this, I'll make sure it gets into
the FreeBSD distribution (at least as a port).

> 					Jeffrey J. Cook
> 
> 
> 
>: > 						Jeffrey J. Cook
>: > 						jcook@interaccess.com
>: > 
>: 
>: -- 
>: Brian <brian@awfulhak.org> <brian@freebsd.org>
>:       <http://www.awfulhak.org>
>: Don't _EVER_ lose your sense of humour !

-- 
Brian <brian@awfulhak.org> <brian@freebsd.org>
      <http://www.awfulhak.org>
Don't _EVER_ lose your sense of humour !