Least-Cost Routing and ADSL

Charlie.

Well-Known Member
Joined
Oct 17, 2007
Messages
369
Reaction score
0
Location
"We've got mountains, we've got sea..."
The story: International bandwidth costs ~~ R 70.00 per GB. Local costs ~~ R 19.00. If your router is configured to connect to an international account, traffic to local IPs wastes expensive bandwidth.

Hypothetical Situation: you want to download a whole bunch of Linux-related files from a local mirror. Instead of wasting int'l bandwidth, you temporarily configure your router to connect to a local account. This saves you money but prevents you from browsing, internationally, for the duration of the download.

Enter the requirement for a home-network that sports "Least-Cost Routing".

Basic idea: some piece of routing software uses knowledge of the South African IP ranges (196.0.0.0/8 and some others, I believe) to route traffic to South African servers through the cheaper connection.

Known Facts: Most ADSL routers support multiple simultaneous PPPoE connections. Some ADSL routers (like my old D-Link G604T) have advanced routing capabilities that might allow you to do the routing on the device itself. (I haven't really investigated these on-device features.)

In my mind, there are two ways to achieve least-cost routing: configure the router to host and maintain two PPPoE connections (one for int'l, one local) and use advanced routing features of the device to route packets correctly or configure the router to run in Bridge-Mode and set up a "Gentoo-pimping home server" between it and the rest of the network, let the Linux box maintain the PPPoE connections, routing daemon and other network infrastructure daemons.

You could implement a really fancy solution using the second proposal. Set up real IP-address geolocation and throw some Imba HTTP caching, firewalling, proxying nonsense into the mix and you're cooking with gass.

This is a theory that I kicked around in my head while driving to Cape Town a few months back. I was moving in to a flat in Rondebosch (where I now live) and leaving my old ADSL line and D-Link router far behind. I don't actually have ADSL in the flat, yet, so I can't try this out in practice.

Has anyone tried either of these ideas? Has anyone achieved "Least-Cost Routing" on ADSL?
 
Yup, people have tried, and succeeded.
From WRT54GL's, to IPCop - all the way down to RouteSentry. All full operational.
 
Some threads relating to this:

Splitting international and local traffic on a Linksys WRT54G
http://mybroadband.co.za/vb/showthread.php?t=81315

RouteSentry: Manage 2 ADSL account connections on 1 pc, 1 line, 1 modem (local/intnl)
http://mybroadband.co.za/vb/showthread.php?t=39234

Splitting International and Local Bandwidth with IPcop
http://mybroadband.co.za/vb/showthread.php?t=64649

Dual PPPoE connections with static routing on Kubuntu
http://mybroadband.co.za/vb/showthread.php?t=71477

Options for splitting local and international bandwidth
http://mybroadband.co.za/vb/showthread.php?t=71150
 
Basic idea: some piece of routing software uses knowledge of the South African IP ranges (196.0.0.0/8 and some others, I believe) to route traffic to South African servers through the cheaper connection.
There is a huge thread somewhere about Routesentry that does exactly what you describe. Should be easy to find with google.

There is a similar thread for doing the same thing on linux.

btw Axxess local only is R12.
 
Top
Sign up to the MyBroadband newsletter
X