Slashdot Mirror


Working With 2 ISPs For Home Networking?

An anonymous reader writes "This is, I think, a simple question — but one which I can't get the answer to. As a typical, but perhaps high-demand home user I would like to use 2 separate ISPs. ADSL is pretty cheap nowadays, and 2 x ADSL seems a better value than one fast one — especially in terms of reliability. If one breaks, at least the other will work. Using an old box as a router/firewall, how can I configure a system to use two completely separate ISPs in a sensible manner? Ideally, I'd like the load of my browsing to be balanced, but at the minimum, I'd want some kind of 'fail-over.' If I leave torrents running over night, I'd like the router to use whichever connection doesn't block the traffic — and preferably for it to reset the errant connection. Ideas?"

64 of 356 comments (clear)

  1. Point of failure by tepples · · Score: 5, Insightful

    ADSL is pretty cheap nowadays, and 2 x ADSL seems a better value than one fast one â" especially in terms of reliability. If one breaks, at least the other will work.

    When your DSL is down, it's likely that your neighbor's DSL is down too. Consider cable + DSL, not cable + cable or DSL + DSL.

    1. Re:Point of failure by trolltalk.com · · Score: 4, Informative

      Even if they're from different providers, they're running over the same phone network (esp. since smaller providers are just resellers). A backhoe, lightning storm, or major power blackout doesn't give a sh*t that you went through two different providers.

    2. Re:Point of failure by Etylowy · · Score: 2, Informative

      The last mile is expensive. It is almost sure that even with DSL from 2 different providers if one fails so does the other.

      just as tepples wrote: you need 2 internet connections using different infrastructure for the last mile, or preferably more. DSL+Cable should be the right solution.

      As for load balancing etc, you've got two options:
      1. router with 2 WAN ports
      2. any pc with 3 network cards + linux + googled up howto for 2 internet connections

    3. Re:Point of failure by Bandman · · Score: 3, Informative

      That's true, but you can only do so much to prevent outages. In the enterprise, if you want to avoid fiber-seeking backhoes, you get a failover location. That's difficult to do in a home network.

      I'd say cable+DSL ( or maybe throw in something like the AT&T USB Connect 881.

      I'd see if it's possible to get FiOS in your area, too. That would give you the best speed, for sure.

    4. Re:Point of failure by mikael_j · · Score: 2, Insightful
      The last mile is expensive. It is almost sure that even with DSL from 2 different providers if one fails so does the other.

      In my experience from working for ADSL ISPs in Sweden only very rarely is an actual outage caused by the "last mile", with newly installed DSL it is not unusual for people living fram from the DSLAM to have problems with unstable sync but this is generally easily adjusted.

      So with two different phone lines connected to two different DSLAMS belonging to two different ISPs using two different backbones you'd actually have pretty good redundancy as far as failures from the ISPs side.

      /Mikael

      --
      Greylisting is to SMTP as NAT is to IPv4
    5. Re:Point of failure by isj · · Score: 3, Informative

      I use a failover setup where the primary connection is an xDSL connection and the backup connection is cable.

      Some details make failover non-trivial to do. The ADSL occasionally gets the DSL line up but no IP connectivity. The cable modem is very stable but slow. I ended up configuring linux on a small embedded computer (soekris net4801). I have a script running from crontab that pings the next-hop. If the primary connection fails, the default route is changed to the backup interface. One interesting complication is that I also use bandwith shaping with tc/htb, so iptables is configured to mark packets based on which interface they come from, which tc then can pick up and shape. I don't think there is any box/product that can fulfill all my needs, but I would have saved me much time if there were.

    6. Re:Point of failure by yyttrrre · · Score: 3, Informative

      If cable isn't available you can always go with cellular as a backup. With the right setup you can see 300kbps down and the cell phone towers are more likely to survive power outages and disasters and the like.

    7. Re:Point of failure by mikkelm · · Score: 5, Insightful

      That's because you're in Sweden, and the infrastructure there, especially urban infrastructure, is typically much less vulnerable than here in the southeastern US, for example. We frequently have last mile outages due to storms, flooding and lightning, and when a tree hits a phone mast, you lose your DSL, no matter how many different providers you have.

      It all depends on the local conditions, so suggesting separate last-mine access technologies as a way to optimise your redundancy is not such a bad idea.

    8. Re:Point of failure by profplump · · Score: 4, Informative

      You can use more than one default route. For reliability you'll want keep some sort of connection-specific check script and reset to a dedicated route if one of the connections goes do. But while both of them are up you can use both connections together so long as you have multiple data streams:

      ip route add default table "${MULTI_TABLE}" \
              nexthop via "${T1_GW}" dev "${T1_DEV}" weight 1 \
              nexthop via "${DSL_GW}" dev "${DSL_DEV}" weight 3

      There's a bit more to it than that, but the above example is the heart of a routing policy that splits traffic 3:1 between the DSL and T1. Google should be able to show you the rest.

    9. Re:Point of failure by mccabem · · Score: 2, Interesting

      I don't mean to dog cellular/wireless as a backup, but anything based on the POTS network is going to be more reliable in terms of being strong against blackouts and disaster. Latter day technologies are less likely so because generally the legal requirements for that strength are not there or are significantly less.

      High-speed cable and DSL aren't that cheap (~$100/month and up) and T1's are cheap as hell nowadays (~$400/month is not uncommon, can be less) and you've got a 4 hour repair guarantee - if you're CO is online (they are built like bunkers), you'll be back up in 4 hours from almost any outage. Check with Speakeasy.net first as I think they have about the best service going, but there are other providers as well.

      So, if your goal is primarily to gain additional uptime, go with a T1 - back that up with some kind of "unregulated" connection (cable/DSL) or wireless.

      Another tack to pursue if cost-efficiency has a higher priority is using wi-fi to link to a neighbor. Using some simple technology expands the range of potential connectees considerably. Find someone with a different ISP than you (different Layer 1, that is) and get them to share with you - share both ways and you both get a reliable backup (as long as your network gear is on a nice big battery) for $0/month. Make sure neither of you scrimps on that battery equipment though! (Speakeasy encourages connection sharing and would even facilitate billing if desired even on their lower-end DSL connections if that becomes a problem/need.)

      -Matt

      P.S. Both of those links are step-by-steps, not theoretical articles.
      P.P.S. I'm not connected to Speakeasy in any way other than as a very satisfied former (for now) customer. :-)

    10. Re:Point of failure by isj · · Score: 3, Informative

      There's a bit more to it than that [...]

      That is the understatement of the year :-)

      The 'weight' feature is quite nice. It evens keeps the route selection sticky per-flow.

    11. Re:Point of failure by Toam · · Score: 2, Funny

      Your life probably will not end if you're not online 24x7x365.

      But why risk it?

    12. Re:Point of failure by br549777 · · Score: 5, Informative

      Get DSL and Cable then buy a Xincom dual wan router. This will support 2 different internet connections or 2 of the same. You can have static ips or DHCP or PPoe on one or both wan ports. It does load balancing etc and its relativly cheap. It works great in a business enviroment or for home use. The router is less than $200 and work good if you set it up correctly. It will work with ADSL DSL Cable T1 Satalite etc.

    13. Re:Point of failure by jettoblack · · Score: 5, Interesting

      You know, this is something I haven't been able to figure out. I live in Japan where we are hit by strong earthquakes at least a month, and typhoons (like hurricanes), thunderstorms, minor flooding, etc. almost every day during the rainy season. And no I don't live in central Tokyo, I live in the middle of a farming town and have to walk through flooded rice paddies to get from my apartment to the station. But my power and internet have NEVER gone out once in the 6 years I've lived here. We don't have anything special... the power and phone run on overhead lines on metal poles just like most places in the US.

      Meanwhile, at my mom's house in the DC Metro area, USA, the power & internet go out every time there is anything more than a gentle breeze. What's going on?

    14. Re:Point of failure by pushf+popf · · Score: 2, Interesting

      Meanwhile, at my mom's house in the DC Metro area, USA, the power & internet go out every time there is anything more than a gentle breeze. What's going on?

      In the US, the utility companies find "break and fix" to be less expensive than continuous maintenance.

      We used to have tree-trimming crews come around every year. Now they wait for a big storm to knock over the trees, then bring in crews to clear the damage and fix the lines.

    15. Re:Point of failure by farnsaw · · Score: 3, Insightful

      Well, the main reason is that Japan has a total area of about 375,000 sq km.

      https://www.cia.gov/library/publications/the-world-factbook/geos/ja.html

      The USA has about 9,200,000 sq km, or about 30 times the area. Now we (the USA) have covered this out to supply power, telephone, cable tv, and internet but have not been able to cover every single residence with redundancy on these services.

      Japan is slightly smaller than California, a large state, but still only one of 50.

      --
      "Computer Scientists can count to 1024 on their fingers" (non-mutant, non-mutilatated, human computer scientists)
    16. Re:Point of failure by zerocool^ · · Score: 2, Interesting


      You can probably do some sort of ghetto load balancing with ipvs/keepalived and iproute2.

      I'm just thinking out loud... all in all, you can probably do this without a whole lot of difficulty, but it really is probably going to require a linux router and 3 network interfaces... unless you want to plug both internet connections into a switch with all your other computers and use a bunch of static IPs and routes and whatnot...

      Probably [the internet x 2] --$gt; [linux router] --- switch ==== other pc's.

      Set it up with iproute two such that assuming 1.2.3.4 is your link to ISP1 and 4.3.2.1 is your link to ISP2:
      up both these IP's on eth0 and eth1.
      set your default gateway to one or the other, i guess
      edit /etc/iproute2/rt_tables such that there's a table called ISP1 and ISP2 /sbin/ip rule add from 1.2.3.4/32 table ISP1 /sbin/ip rule add from 4.3.2.1/32 table ISP2 /sbin/ip route add default via 1.2.3.4 dev eth0 table ISP1 /sbin/ip route add default via 4.3.2.1 dev eth1 table ISP2
      then ip route flush cache for good measure
      up your 192.168.1.1 address on eth2
      set up a DHCP server that serves out 192.168.1.0/24 addresses...

      Then I guess you can set up ipvs on the linux router in some sort of NAT mode (i think it can do this)...
      so you can make 192.168.1.1 your "virtual server", and set up... see this is where I'm not really sure about it, but i guess the remote gateway of both your ISP's to be the "real servers", set it up either weighted least connections or something, add persistence if you want, adjust the weights. Add keepalived to that, and tell it to ping the remote gateway and if it's not responsive to ping, to fail over to the other link (it'll insert and remove stuff out of the ipvsadm -L -n table).

      Yeah, something like that. That's a metric asston of work, though, and i'm not sure it'd all work. You probably should just buy one of these:
      http://tinyurl.com/5v5b8g
      I mean, they're a couple hundred bucks on froogle:
      http://www.google.com/products?q=RV042&btnG=Search+Products
      and they've got 2 internet ports, four switchports (i mean, gigabit plox, but whatever), and a fancy web interface.

      Meh.

      ~W

      --
      sig?
    17. Re:Point of failure by ek_adam · · Score: 2, Interesting

      And your system was totally rebuilt after WWII. Ours has just been "maintained" by the "if it's not broken don't touch it" scheme since Edison.

    18. Re:Point of failure by KPU · · Score: 2, Informative

      Systems are engineered for typical weather conditions. In California, heavy rain is sufficiently infrequent that utilities that utilities figure it's cheaper to fix lines after a storm. Similarly, new buildings in California almost always leak. If you're hit by earthquakes every month, it makes a lot of sense to invest in stronger infrastructure.

    19. Re:Point of failure by meadowsoft · · Score: 4, Informative

      Another alternative would be the Linksys/Cisco RV082 VPN router. THat too has dual-WAN support, and makes a nice home VPN endpoint as well.

  2. DSL+Cable by certain+death · · Score: 5, Informative

    You can get a "Firebox" VPN/Firewall/Router pretty cheap on ebay. They are running about $75.00US for the Firebox 1200/2. The "/2" part means it has 2 WAN ports and you can load balance across both, it is setup to be redundant, so if one goes down, it moves all traffic to the other automagically. I use one and it works like a champ. There are more expensive solutions, and probably "Roll your own" solutions, but as most of us know, that can provide months and months of aggravation!

    --
    "My immediate reaction is "WTF? What kind of moron doesn't make things 64-bit safe to begin with?" Linus
    1. Re:DSL+Cable by HalAtWork · · Score: 4, Insightful

      probably "Roll your own" solutions, but as most of us know, that can provide months and months of aggravation!

      Ah, but also fun and learning. "You must be new here" ;)

    2. Re:DSL+Cable by kesuki · · Score: 5, Informative

      " SmoothFirewall 4.0 - Update 3

      Download Update 3 Update 3
      516 KB (528,827 bytes)
      MD5: 85ac7940504a0fe7eef2b91016cf80f6

      This update adds Load Balancing abilities to Advanced Firewall systems. It also corrects a problem with IP address sorting on some pages and updates the DHCP client to fix a theoretical vulnerability. Problems with PPTP and PPPoE clients have also been corrected.

      Please install core Update 2 prior to installing this update.

      Detail:

              * Load Balancing
                  It is now possible to load balance outbound proxy requests and other network traffic in Advanced Firewall. Primary and secondary external connections are 'pooled' using the Firewall / connectivity and Firewall / secondary addresses pages."

      smoothwall4 supports load balancing out of the box, no hassle, no mess, no fuss, but then, smoothwall is only free as in beer, but i find it works well enough.

    3. Re:DSL+Cable by wolf12886 · · Score: 5, Funny

      and even if you have ups's for both, your house could be destroyed, better have a back up house,

      but make sure its not in the same neihborhood as your primary...

    4. Re:DSL+Cable by brusk · · Score: 2, Funny

      Hence the need for two power systems, preferably from two different utilities.

      --
      .sig withheld by request
    5. Re:DSL+Cable by Bandman · · Score: 2, Insightful

      That's really getting into the enterprise level of redundancy. Rare indeed would be the home network which would necessitate two power companies. I could see a generator for auxiliary power, but I can think of a lot of things higher in priority than my home network.

    6. Re:DSL+Cable by Zymergy · · Score: 3, Informative

      I am not sure which of these (if any including the above listed Firebox) just roll-over to the second connection if the first goes down or if they truly load-balance all the time?
      D-Link made a (now discontinued) 4-port router that load-balanced: http://support.dlink.com/products/view.asp?productid=DI-LB604
      Edimax Technology currently makes a couple of lower-priced load-balancing routers: http://www.edimax.com/en/produce_list.php?pl1_id=3&pl2_id=18

      It appears that software firewall solutions (mostly linix-based) have the best support and the most features, for example: http://www.smoothwall.com/products/advancedfirewall2008/?loadbalance

    7. Re:DSL+Cable by ahfoo · · Score: 4, Informative

      Well in my ventures into traffic shaping I've seen lots of data on load balancing as well. Most traffic shaping on GNU-Linux starts off with iptables.

      A good backgrounder on iptables is at the Linux Documentation Project. (TLDP.org) You might start off with a short introduction to a simple NAT. Setting up a basic NAT is a good start before you get too far into it so you feel like you've at least got some success before you get into the deep end.

      Once you feel like you've got a simple NAT down, then look for the Linux Advance Routing Howto or something of that nature. I forgot the exact title but it's close to that. That's a good one. It's dense reading, but look at the cookbook section. It has a script called wondershaper that is interesting and might give you some ideas about traffic shaping and load balancing.

      Gentoo also does some nice documentation on load balancing and traffic shaping. Once you have some of the lingo down you can google around for some of the tutorials the Gentoo users have posted. Most of those tutorials can be used with the kernel that comes with Knoppix 5.0 without needing any modifications.

      Personally, I think Knoppix is a good starting point for a router because it gives you a level of security in that most of your OS is read-only and the default security is pretty tight. Working with Live CDs can be a challenge if you're new to it, but a key tip is that you can quite easily modify the isolinux.cfg file on the CD to create custom boot commands burnt into a CD such as how to automatically load up your iptables scripts upon reboot. This makes a nice home-brewed embedded style device using all generic second-hand components.

      Anyway, that's mostly stuff I use for traffic shaping, but it's a good start towards doing failover stuff too.

      The Knoppix part may be too much of my personal preference but the part about going to TLDP and looking for the Linux Advanced Routing Howto should certainly be a good start in any case.

    8. Re:DSL+Cable by Anonymous Coward · · Score: 2, Funny

      And if the continent sinks, you're still fucked.

      Get 2 houses with 2 power lines and 2 ADSL providers each on 3 different continents.

      Of course, if aliens destroy the planet...

      And don't forget the solar system...

      And wasn't Milky Way about to collide with an another galaxy anyway?

    9. Re:DSL+Cable by certain+death · · Score: 2, Interesting

      Yeah...my bad, that should have been a HotBrick. And yes, it does both.

      --
      "My immediate reaction is "WTF? What kind of moron doesn't make things 64-bit safe to begin with?" Linus
    10. Re:DSL+Cable by dotancohen · · Score: 5, Funny

      and even if you have ups's for both, your house could be destroyed, better have a back up house

      Or, you know, a laptop.

      --
      It is dangerous to be right when the government is wrong.
  3. Linux distros by santix · · Score: 5, Informative

    There are little Linux distributions like Brazilfw which run on old hardware and work out of the box with features like QOS, load-balancing, port forwarding, etc. Maybe that's what you need.

  4. pfSense + two independant ISPs by Anonymous Coward · · Score: 4, Informative

    pfSense can handle the load balance and failover for you. Then you just need to get two ISPs. Preferably one cable + one DSL but if you can get the two DSL lines on separate circuits, that would work well.

    1. Re:pfSense + two independant ISPs by nauseum_dot · · Score: 2, Informative

      pfSense or M0n0wall would work great for this. I would be weary of buying DSL from two different providers because often times it is the same provider just the local ILEC has entered into an agreement to allow reselling services in the area so that they can sell services in the area that they service. If you buy DSL from two different DSL providers it is likely fed out of the same Central Office and therefore fed into the same router that is your gateway to the Internet. So, if there is a hiccup in the routing table, both links will feel it. I think cable + DSL is the best way to go.

      --
      Crap! I just kissed my karma good-bye.
    2. Re:pfSense + two independant ISPs by shitzu · · Score: 2, Informative
      pfSense or M0n0wall would work

      m0n0wall does not support two WANs. So only pfsense qualifies.

  5. Dual WAN router by ribit · · Score: 5, Informative

    Isn't a dual-WAN router the simplest/cheapest method, whatever you are planning to put downstream of it? http://www.networkworld.com/reviews/2004/0913rev.html

    1. Re:Dual WAN Router by cobaltnova · · Score: 2, Informative

      I was under the impression that bonding happens at the link-layer. That would mean that bonding is good for getting to another MAC address, not to a target IP.

      But, you do raise another possibility: maybe the DSL company has some parallel telephone structure (OK, almost certainly not) on which they might offer bonding. That use scenario is explicitly mentioned in the linked Wikipedia article. This would be precisely the Article Poster's DSL/DSL idea, unlike many of the other, earlier, responses.

  6. what I use is a nice distro... by da5idnetlimit.com · · Score: 4, Informative

    called Clarkconncect (http://www.clarkconnect.com/)

    It's basically a CentOs (aka free Red Hat) wich can do multi-Wan. It has a nice web interface fir Firewall, ftp, web and mail server, shell..

    No idea if it can reset errant connections, but it can do anything you can on redhat, including using two Wans simultaneously. (chek Clarkconnects forums for multi wan)

    up and running within 30 minutes, mine has reached 165 days uptime (Bi-P3 GHz, 2 Go Ram, 4*500Go HDD, 3*Eth 100 (upgraded from a faithfull Compaq Deskpro 400 Mhz "server")- web, mail, and bittorrent dowvnloader (torrentflux-bart) as well as "media server" connected to the xbox with XBMC)

    --
    It takes 40+ muscles to frown, but only four to extend your arm and bitchslap the motherfucker
  7. LARTC by chrispatch · · Score: 2, Informative
  8. Those ISPs may not be redundant by guanxi · · Score: 4, Informative

    Most DSL circuits, even sold by different vendors, go through the same facilities and sometimes the same equipment. For example, the local loop is usually the local telco's, no matter who your DSL vendor is. And many DSL vendors resell one of a few wholesale providers (e.g., Covad), so your data on both DSL lines could be going through the same wholesale provider's equipment/facilities. The same may be true of other technologies (e.g., fiber).

    In trying to setup something similar, we finally settled on using cable for one circuit and fiber for the other. We know the cable company has its own local loop, and they assured us (FWIW) that they have their own facilities out to their upstream provider (e.g., AT&T, Sprint, etc.). Fiber would be Verizon. We would use DSL, but I'm concerned that it would end up in the same Verizon facilities.

    Good luck. There are also routers that do fail-over, but I know that's not what you asked about.

  9. HotBrick by Anti_Climax · · Score: 4, Informative

    Hotbrick makes a very good load-balancing soho router. They're a bit pricey but they seem to work quite well for exactly what you're describing. Take a look on ebay for their LB series.

    I do have to second the suggestion of using Cable+DSL rather than DSL+DSL. Most places where there are multiple DSL providers, they're both operating from the same physical infrastructure with one reselling the service of the other. It's certainly better than one by itself, though.

    --
    Even people that believe in pre-destiny look both ways before crossing the street.
  10. 2 ISPs? Single provider. by Zephiris · · Score: 4, Informative

    Honestly, I think that's not understanding how DSL works very well. In virtually all markets, there's one physical DSL provider, and a few dozen 'ISPs' which cost a little bit more to provide potentially 'unique' services on top. One monopoly for phone (and hence DSL), one monopoly for cable.

    Er, the cheapest DSL is what, around $25, $30, for 256k? Double that, and you've got a price for very fast (8mbit or more) cable, including 256-512kbit upstream. Even if you have 2x256k, and the equipment to use it in a decently efficient manner, that's still some 512kbit, and two different IPs.

    Only in a few situations can you use the bandwidth of both cooperatively for a single task, and the most common failure is based on when the physical link/line conditions deteriorate, in which case having two ports to the same network isn't going to make any difference at all.

    Cable/DSL will provide the potential reliability you'd be looking for, I think. But, as a home user, some 98-99% (even if not 99.97%) uptime isn't good enough? For the additional cost, it's not worth the extra -average- hour per month of downtime you gain 'back'.

    If your ISPs downtime is any more than that, you have every right to complain, twist their arm to fix whatever might be causing the problem.

    --

    "A Goddess rarely smiles for she is forced by others to be an island unto herself." - Zephiris
    1. Re:2 ISPs? Single provider. by daoine_sidhe · · Score: 2, Informative

      I think your pricing on DSL is drastically off. Around here, the cable is Timewarner at $50/month for 5 megabit. My DSL service is $60/month for 20 down/1 up. $30/month gets you 3 down/1 up. I haven't even SEEN 256k advertised since I had to use Suscom (which is cable, BTW) in 2003/2004. I am not in a major metro area, there are less then 20,000 people in my 'city.' That having been said, I agree wholeheartedly with the rest of your post. As a heavy net user I still find my ISP uptime to be perfectly sufficient for my needs, and can't really foresee a situation where I would need that kind of redundancy, unless I had a terrible ISP to start with.

    2. Re:2 ISPs? Single provider. by aclarke · · Score: 2, Interesting

      Cable/DSL will provide the potential reliability you'd be looking for, I think. But, as a home user, some 98-99% (even if not 99.97%) uptime isn't good enough? For the additional cost, it's not worth the extra -average- hour per month of downtime you gain 'back'.


      Umm, who are you to tell someone else what's worth it and what isn't? I can see a lot of situations where one would feel the extra $50 or so per month is worth it. For instance, if you're day trading from home, a 20 minute outage at the wrong time can cost a LOT more than $50. Additionally, being able to automatically choose the connection with the lowest ping time could be a benefit.

      This is just one of many many examples of why somebody might want to have redundant home connections. Just because YOU don't have a use for it, that doesn't mean there aren't many many other people who would find this useful.

      I think I'll be looking into exactly this in the next year or so, so this topic is very interesting to me.

  11. Simple, not cheap by Anonymous Coward · · Score: 2, Informative

    A dual-WAN router is the easiest way to go, but I wouldn't call it cheap. A decent dual-WAN router will cost you about twice what it would cost to build a cheap, but decent linux box.

  12. Why bother, seriously? Why? by vux984 · · Score: 4, Informative

    Seriously? Is your network infrastructure -that- unreliable that its actually worth *doubling* your costs for redundancy?

    I have had maybe 10-15 hours of internet-only downtime in the last 8 years. Of that, maybe 4 hours affected me (ie I was awake and wanted to use the internet). I've had another 10-15 hours of power fail in the last 8 years, and even with backup power the internet was still down (routers, switches, etc in the upstream path weren't on backup power so keeping my 'modem' up isn't worth beans.

    In any case, I can see a lot of situations where it would be worth another $2500 over that period to have had internet access for those couple hours.

    If I were running servers (and I am), it might be worth it, but in practice its not worth the trouble. round-robin DNS just means every odd connection attempt fails if one of the links is down, and dynamic dns updates to take the downed link out of rotation would be great except most internet outages are over before dns updates are likely to propogate. So its just not effective.

    If I wanted -faster- downloads, that might be worth 2 connections, but that's not what you claimed your objective was. And even then, it usually won't make a specific download faster, but will rather let you do 2 at once at full speed (in the case of a large http or download for example which only uses one connection) which may or may not be what you need. Torrents, using multiple connections, will of course benefit from the extra bandwidth capacity.

    If you SERIOUSLY want redundancy, you might want to look at a router that can fail-over to dialup. That will actually stand of chance of being available during a power failure, and might not cost you extra in terms of service, since many ISPs give you some free dialup hours as part of your broadband. And the dialup infrastructure is often separate enough from the adsl/cable infrastructure that you'll be able to connect on dialup while adsl/cable is down.

  13. It's easy by Slashcrap · · Score: 4, Funny

    You just get a Linux box with 2 NICs and start adding static routes :

    route add 1.1.1.1 255.255.255.255 eth0
    route add 1.1.1.2 255.255.255.255 eth1
    route add 1.1.1.3 255.255.255.255 eth0

    Etc, etc....

    It might seem like a big job, but there's huge ranges of reserved addresses you can skip. Let us know how you get on.

  14. Dual WAN Router by Doc+Ruby · · Score: 4, Informative

    What you want is a "dual wan" router. Which will give you two ways out, by default putting each connection between your local host and a remote host over a single WAN's route, but pool the two WANs so the less-full one gets the whole next connection.

    Then you want to look into "bonding", or whatever the router vendor calls their version of it. It usually doesn't work, because the two different WANs usually take very different routes most of the way to the remote host, and the bonding has to accommodate all the hops between on each of the two WAN routes. But sometimes it does work, especially if the routers at both ends of the routes share the same bonding technique.

    But you will indeed get immediate uptime benefits. Because if one WAN gives you, say, 99.9% uptime, that's 0.1% downtime, which is still over 31,000 seconds down a year, which is still almost 9 hours. But if you can get connections over either one WAN or the other (each at 99.9%), you can get 99.9999% uptime, which is only about 32 seconds a year, which is unattainable at reasonable prices for a home user.

    --

    --
    make install -not war

  15. From the "I am not giving a useful answer dept" by fliptout · · Score: 4, Insightful

    Great, so you googled some shit. Maybe he wants to get some people's experiences with them? What is good or bad?

    --
    A witty saying proves you are wittier than the next guy.
  16. Multihomed routing by Majik+Sheff · · Score: 3, Informative

    It sounds like multihomed routing is what you're looking for. there's a decent intro here:

    http://www.oreillynet.com/pub/a/network/2002/08/12/multihoming.html

    --
    Women are like electronics: you don't know how damaged they are until you try to turn them on.
  17. Multihoming by not_hylas(+) · · Score: 3, Informative
    --
    ~hylas
  18. It's actually pretty limited by Craig+Ringer · · Score: 4, Informative

    I have quite a bit of experience with this, as I use two consumer ADSL circuits to provide very reliable 'net services at my office.

    To an extent you either get to use two different services (for reliability) or combine them into one service for improved performance. Not both.

    If you're going for reliability, you'll be using two different providers. That eliminates the use of multilink PPPoE to bond the two services into a single logical service with a single public IP address. It also eliminates ATM channel bonding, which is the other way to achieve the same end. This isn't such a great loss as you might think since I've *NEVER* found a provider (at least here in Australia) that knows what either is, let alone supports even one of them.

    So, you're stuck with two ADSL circuits, each with separate PPPoE connections (or direct IP over ATM links; either way) and separate public IP addresses.

    This sucks. You can't even load balance across them properly without the cooperation of a router/proxy on the other side of your ADSL links.

    Load balancing your transmissions on a per-packet basis is obviously hopeless because any sane ISP has egress filtering based on source IP address, and even if they don't you'll still get replies back on the official source IP (so you won't gain much). SNAT won't help because if you SNAT some packets in a connection the recipient will have no idea they're part of the same connection as the unmodified packets leaving on the other connection. The only way that packet-level load balancing across multiple links with different IPs will work is if you're only talking to an endpoint (probably a VPN termination point) that is aware that you're using multiple connections and can combine them. You can use tricks like multilinked PPTP for this, or iptables trickery on each end. In any case, you're going to need access to a server with enough bandwidth to service both connections that's willing to route traffic for you. You probably don't have this.

    So, packet-level load balancing is out. What's left? Connection-level, and per-protocol.

    Connection level load balancing works well for some services. Outgoing SMTP, for instance, is well suited to being randomly allocated between multiple ADSL links (if you're unfortunate enough to have users who think that 100MB attachments are a good idea). Unfortunately most home user services like HTTP web browsing are not. You'll find that websites like to store session data with your IP address, so if you do connection load balancing with HTTP you'll find that websites keep on forgetting your login. To work around this you need to use "sticky" load balancing that remembers which connection was used to talk to a given host - but that, of course, reduces the benefits of the load balancing.

    In the end, all you can really do is a bit of sticky connection-level load balancing when establishing new outgoing connections for some protocol types. If you want more than that, you need to do ugly things like say "all FTP connections go out ADSL1, and all SIP and other VoIP connections go out ADSL2" etc.

    Personally, I don't bother even with that. I have both ADSL services listed as MXes for the company's DNS, so if one is down we still get mail. The A record points at a colocated server elsewhere on the Internet, so that's not a worry, but if it didn't I'd have to use some sort of ISP-level or colo load balancing to reroute traffic down whichever link was currently available.

    Outgoing connections just all use the primary link when it's up, and fail back to the secondary link if/when the fast one is down. The secondary link is the primary MX, so when both links are up mail will tend to come in one link and everything else in the other.

    If I wanted more than this, I'd probably have to route everything through another server colocated at an ISP or peering point. Unless I could get free traffic between it and both my ADSL circuits this would get expensive fast - and it'd also reduce the benefits of the redundant ADSL links

  19. Re:From the "I don't use google" Department. by kannibal_klown · · Score: 5, Insightful

    God, not another person saying this.

    Slashdot articles aren't just posted for the question, but for the discussion. Yes, anyone can find an answer to anything they want with Google+Wikipedia+etc.

    The point here is that maybe someone will take an interest in it that never thought of it before or cared enough to dig around Google.

    Obviously from the author's point of view, multiple viewpoints by the readers would be helpful. However from the Slashdot mods (and community in general) it's an interesting enough topic to read on their own.

  20. Re:Why bother, seriously? Why? BECAUSE... by fdrebin · · Score: 2, Interesting
    Seriously? Is your network infrastructure -that- unreliable that its actually worth *doubling* your costs for redundancy?

    YES

    I live in the Rockies on the western edge of a mountain ridge at 10k ft elevation - in other words a lightning magnet. I'm a full-time telecommuter for a multinational, & I work daily with people from 5 different time zones. Teleconferences, webex's etc. are my daily work life. Loss of connectivity to our source code repository can be a serious problem.

    EVERY time there's lightning with 1/2 mile of here my phone & DSL go out. Last year I was out 7 different times for more than 24 hours. I lose track of the number of times I'm out for just a few hours.

    I have a secondary ISP - WisperTel, a wireless WISP - that's a lot less reliable than DSL. Latency is bad, it's down a couple times a day at least, although usually for short periods.

    To top it all off, I'm outside of cell phone coverage... and I have 3 DIFFERENT carriers. I'm only 1/2 mile to the nearest coverage, so I can drive or walk to make the necessary calls when both ISPs are down. This is fun when there's 3 ft of fresh snow on the ground, and it's -10F. Thank goodness for snowshoes... (Last year alone both were down at the same time 3 different times).

    If I could also get cable here I probably would... although I do hate Comcast with a passion.

    --
    Stupidity... has a habit of getting its way.
  21. Re:That's not the usual Point of failure here by billstewart · · Score: 2, Interesting

    There are four main reasons that DSL goes down

    • Your DSL modem/router.
    • Backhoe takes out a cable.
    • Card fails in a router/switch/DSLAM.
    • Technician misconfigures something, either in a phone connector box or router/switch/DSLAM or billing system.

    I've had DSL fail four times in the last 10 years. One was my DSL router. Two were when phone company installers working on boxes down the street disconnected me by accident. One was a billing problem (but that was when my ISP was providing beta service, and they mixed up things between my home account and work lab, and I was customers #1 and #2 in the western half of the country :-) Some of these can cause both circuits to fail, some can't - and backhoe events are pretty rare. On the other hand, cable's more likely to have common failures than DSL is, unless you're one of those rare people with two cable providers, because there's more shared infrastructure between the two circuits.

    Even so, I'd recommend going with two different providers because they're going to have different performance issues and probably different policies. If it won't interfere with your cable TV service, I'd recommend cable and DSL - cable's usually faster, though more likely to be flaky, and more likely to have obnoxious limitations on your service like not letting you run a web server at home or giving you 20 Mbps of download speed with a monthly download cap that limits you to an average of 50kbps if you use it 7x24. DSL is more likely to be reliable (because infrastructure gets fixed along with lifely telephone service as opposed to television), probably slower depending on your distance from the telco, and you usually have a choice of dozens or hundreds of ISPs if you don't like the policies or pricing your telco offers.


    One obvious way to mix the two services is to have a DSL with a static IP address, and do most of your own downloading from the cable modem. You'll need some kind of router to deal with keeping track of the two services, and some kind of firewalling, so you probably want to use an OpenBSD to do that and whatever your favorite Linux, Mac, Windows, or game boxes behind it. (I'm picking OpenBSD because it's usually the best at security and firewalling and at least OK at routing, and you probably won't be putting anything requiring fancy hardware drivers on your firewall.)

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  22. Here's what DSL typically shares by billstewart · · Score: 2, Informative

    Let's start at the bottom of the OSI stack - physical layer. The wires from your house to the telco office are usually physically separate until they hit the first active device, which might be a Subscriber Loop Carrier in a big green box down the road, but is more likely to be copper all the way to the telco office. They're bundled into bigger and bigger cables (e.g. 24-pair, 50-pair, etc.) There are common-mode failures here - backhoes, wet cables, cars crashing into the telco box - but one of the most common failure modes is "technician mistakes", which usually only take out one wire pair at a time.


    At the telco office, your wires get connected to a DSLAM which provides Layer 2 service (DSL is usually ATM underneath.) If both ISPs are using telco DSLAMs, then it'll probably be the same DSLAM box, but if one of your ISPs is using Covad and the other one's using telco, then you're on different DSLAMs. Some DSLAMs have integrated routers, but back when I was working more directly with this stuff there'd typically be an ATM network connecting the DSLAM to some regional concentrator network. The ATM network might have common-mode failures such as port cards, but it's mostly carrier-grade equipment with diverse physical routing.


    Eventually you get to a router for Layer 3 service. If your DSL provider uses a telco DSLAM and forces you to use PPPoE, there's a good chance that you're tunneled through a telco router, but eventually you'll hit a router actually managed by your DSL provider. And from there on out to the Internet backbone, everything's basically diverse.


    I don't know how Verizon does FIOS - the fiber system's obviously diverse from the copper+DSLAM system, but there might be more common infrastructure upstream or they may use different tools to concentrate it (e.g. FIOS might be using routers while DSL might be on ATM.) If you're using Verizon DSL as opposed to a third-party ISP or an ISP using Covad, you'll probably hit the same Internet peering points, so you could be susceptible to problems like "Cogent decides to have a peering fight with Verizon this time", but on the other hand your ISP might have Verizon as their upstream provider so it's a bit hard to tell. That layer's certainly much more reliable than 10 years ago.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  23. *nix on old hardware by clarkn0va · · Score: 4, Informative

    look for the Linux Advance Routing Howto

    :^D

    Somewhere in that site it talks about some of the problems of having 2 IP addresses, like confusing game servers and the like, but with a bit of tweaking you could get it functional. I don't think this solution explicitly provides failover functionality, but I suppose that could be scripted in somehow.

    pfsense is a nice turnkey solution for this too, if you're not into spending a couple weeks solid trying to make your debian or lfs distro act like a router.

    db

    --
    I am literally 3000 tokens away from the chaotic crossbow --Stephen
  24. LISP is intended to do this. by mbone · · Score: 2, Interesting

    To do this properly with load sharing and immediate failover, at the moment the professional solution would be that you should

    - get business class connections and
    - run BGP over both links.

    If you don't already know what BGP is, this solution is probably too complicated for you. Worse, the global BGP routing table is a shared expense, and your extra route would impose a (slight) extra cost on literally every other ISP running BGP. (The business class connections are because you will need several static fully routable IP addresses to do this, plus run BGP, and that requires more than a consumer class connection.)

    There is a lot of discussion at the moment about this at the IETF, and people are working on something called LISP (no relation to the computer language), which would provide true multi-homing without the bother of running BGP and adding to the global routing tables. Things like immediate failover and load balancing should follow more or less automatically.

    There is a lot more information available at Lisp4.net. I have heard of some initial testing, but in my opinion this is still a ways from commercial use.

  25. Your load balancing "problems" have been solved by upside · · Score: 3, Informative

    Can't load balance hosted services without a remote router? Round robin DNS with short TTLs, with a script to remove an IP if a link goes down.

    Outgoing TCP connections are OK when using Linux:

    http://lartc.org/lartc.html#LARTC.RPDB.MULTIPLE-LINKS

    If you buy an off the shelf solution from the likes of F5 there's even more control.

    --
    I'm sorry if I haven't offended anyone
  26. Aggrate routeing is a bad idea - here's why by buss_error · · Score: 2, Interesting

    OK, so you have two routes to the internet. One packet departs, but is returned by the other route. How to glue those together is a very non-trivial problem.

    Sprint tried that in 1997-2001 time frame with bonded T1 & T3 services. The bonding never worked for persistant connections, and only slightly better for transiant connections. UDP worked best. And that was using a routing system that understood it was bonded, not one completely unaware of another route.

    These days $DAYJOB uses OC3's and SONET rings for Internet, so there may have been advances I'm unaware of, but back then, it really, really sucked. Off the cuff, I'd say use Linux and the Zebra package on a old computer, and try that, but no promises. Personally, I don't think it will work well.

    --
    Necessity is the plea for every infringement of human freedom. It is the argument of tyrants; it is the creed of slaves.
  27. Broadbond by Will+Sowerbutts · · Score: 4, Interesting

    I produce a system that can do this. It's called Broadbond.

    You can bond several ADSL lines, even from independent providers, and it will deliver the combined upstream and downstream bandwidth of the two. All traffic is load balanced across the two lines and can also be transparently compressed. The throughput of the lines is automatically measured to determine the optimal load balancing. Differences in latency on the two lines are compensated for.

    The catch (there's always a catch!) is that you need to have a partnering system co-located with an ISP to handle the far end of the tunnel -- although I can also provide this if you would prefer.

    The system is available as a software package that you can license to run on Linux or OpenBSD and also pre-installed and pre-configured on a couple of small embedded Linux boxes -- very low power (under 5W), no moving parts, good for up to 90Mbit/sec.

    I bond two ADSL lines to my office, 4.4Mbit and 9.6Mbit, and I get around 13.5Mbit on file transfers.

    If you're interested, contact me (details on the broadbond.org web page).

  28. Dynamic routing idea by oldzoot · · Score: 2, Interesting

    I have DSL and cable. I also have a D-Link DL604 load balancing router. It sucks.

    The router seems to think that as long as the physical ethernet connection is up, the provider is up. It tends not to detect network failure. There are ways to set up a periodic monitor of some host to detect if the network is up, but it does not seem to work properly.

    What I want from this thing is:
    Lock SMTP to one port and thus one provider. My AT&T DSL SMTP server will not accept mail from my Comcast account. (this is correct behavior for anti-spam). The DL 604 does this correctly.

    I want the router to send any new connection for a naive (not currently in routing table) external network to both providers. I want it to measure the response time ( over a number of packets ) and then lock the route to the network which provides the best performance. It can periodically re-test the routes - perhaps every 5 minutes or so. This should address the problem of non-neutral peering between various providers. It is not always true that the higher bandwidth cable connection is the best connection to where I want to go. If I am accessing a client's machine who is on AT&T DSL, my DSL connection may be faster than my cable connection. I want the router to deeply inspect the traffic and be able to detect if a session breaks on a particular WAN port, and try the other. I also want it to quickly recognize when all sessions on a particular WAN port break and switch to the alternate port, while testing the original port.

    I want built-in diagnostics that can show me how often a provider drops the ball, shiny graphs of bandwidth and latency etc. It would be cool if the router would allow me to see what the instant connection graph between my LAN and external networks looks like. ( which of my hosts connect to which external domains at the moment ).

    I would like to be able to see graphics of IP address / port scans.

    I want the router to be able to do some intrusion prevention, particularly if no one is using my network at the moment - someone tries to scan - shut the thing off for a while. ( do I care if I DOS myself if I am not using the net? NO! )

    There is a hardware provider http://www.routerboard.com/ that can provide multi-wan multi-lan and wireless router hardware for cheap. They also have software but nothing that does all the tricks I want...

    Coders, here's a base spec, send some bits!

    OZ

    --
    enough is too much
  29. There's always Cisco. by sr8outtalotech · · Score: 2, Interesting

    IOS supports unequal cost load balancing with various routing protocols like RIP. You can do per packet or per destination. You can get a used 3640 for fairly cheap and throw in a 4 port ethernet network module and use it as a WAN router. If you needed rendundancy, get a 2nd one and use HSRP. You'd also need at least 2 switches and have a trunk going from switch to switch as well as to both routers. Sounds complex but is really easy to implement with a little bit of networking and IOS knowledge. All the people recommending DSL + Cable are right, DSL + DSL = not redundant.

  30. You're ignoring a key fact here: by default+luser · · Score: 3, Informative

    The Japanese definition of "rural" is nowhere near the definition of rural here in the US. this is because they have an ungodly amount of people for the land they inhabit.

    Basically, what I am saying is the Japanese idea of rural is, at best, like a marginally populated suburban neighborhood in the US.

    Here are some raw numbers to better illustrate my point (from this study, year 2000 numbers):

    Japan total rural area (sq km): 273,646
    Japan total rural population: 13,498,527
    Japan rural population density (people/sq km): 49.32

    US total rural area (sq km): 8,423,867
    US total rural population: 54,936,968
    US rural population density (people/sq km): 6.52

    SEE THE DIFFERENCE? It's almost an order of magnitude! And the urban numebrs show a 3x difference between the US and Japan; closer, but still nowhere near each other.

    Of course we have infrastructure problesm here in then US, and they largely don't; it just comes with the territory.

    --

    Man is the animal that laughs.
    And occasionally whores for Karma.