Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-03-2008, 12:11 PM
Tom
 
Posts: n/a
Link failover with ping

Hello all!

I`m finding docs/examples about this subject. After some googling,
I only found basic scripts. For me, these simple scripts available
only works with excellent links (dedicated ones).

The load balancing part of the problem already was solved with
LARTC howto. DGD patch for linux was not a good experience
because it only detects the first hop fail and 90% of these fails
happens after the first hop (e.g. local router as gateway
connected to remote ISP).

I searched for some linux distro with this feature (good failover)
bult-in, but didnt found anything interesting.

I would appreciate pointers to docs, distros (for use as starting
point), examples or even academic research about the topic.


Thank you,
Tom Lobato

Reply With Quote
  #2 (permalink)  
Old 07-04-2008, 01:55 PM
Tom
 
Posts: n/a
Re: Link failover with ping

On 3 jul, 09:11, Tom <tomlob...@gmail.com> wrote:
> Hello all!
>
> I`m finding docs/examples about this subject. After some googling,
> I only found basic scripts. For me, these simple scripts available
> only works with excellent links (dedicated ones).
>
> The load balancing part of the problem already was solved with
> LARTC howto. DGD patch for linux was not a good experience
> because it only detects the first hop fail and 90% of these fails
> happens after the first hop (e.g. local router as gateway
> connected to remote ISP).
>
> I searched for some linux distro with this feature (good failover)
> bult-in, but didnt found anything interesting.
>
> I would appreciate pointers to docs, distros (for use as starting
> point), examples or even academic research about the topic.
>
> Thank you,
> Tom Lobato


From: Dana Harding <dharding@nucleus.com>:

Would Heartbeat work for your application? http://www.linux-ha.org/Heartbeat

You should be able to configure that to do some scripting magic (read:
bring up or reconfigure a secondary link) when a ping fails over the
primary link. I haven't used it myself - so I can't comment on how
well it works.

Dana Harding
dharding@nucleus.com
Reply With Quote
  #3 (permalink)  
Old 07-04-2008, 02:00 PM
Tom
 
Posts: n/a
Re: Link failover with ping

From: Dana Harding <dhard...@nucleus.com>:
>
> Would Heartbeat work for your application?http://www.linux-ha.org/Heartbeat
>
> You should be able to configure that to do some scripting magic (read:
> bring up or reconfigure a secondary link) when a ping fails over the
> primary link. I haven't used it myself - so I can't comment on how
> well it works.
>
> Dana Harding
> dhard...@nucleus.com


Hi Dana!

Well, I haven't used heartbeat, but I think It is not designed for
failover of ISP links, as it works testing servers on LAN (I think),so
it expects very low latencies comparing to ISPs.

If someone knows if heartbeat know how to work with ISP failover,
please tell me. Anyway I'll look its doc.


Tom Lobato
Reply With Quote
  #4 (permalink)  
Old 07-06-2008, 01:53 PM
Andrew Gideon
 
Posts: n/a
Re: Link failover with ping

On Fri, 04 Jul 2008 07:00:57 -0700, Tom wrote:


> If someone knows if heartbeat know how to work with ISP failover, please
> tell me. Anyway I'll look its doc.


I'm not sure what you're trying to achieve. If you've two separate
upstreams, and want to route around failure of one, then the proper
solution is to admit (or "brag" {8^) that you're multihomed and step into
the BGP world. While it's missing a few features as compared to Cisco
IOS, Quagga is a nice BGP routing daemon. I've it in use on a couple of
boxes right now (neither of which gets heavy use yet, admittedly), and a
full feed of routes from a few different upstreams isn't a problem.

There's "paperwork" involved. You'll need to get a block of addresses
from one of your ISPs (unless you're larger than I suspect) that it is
willing to have announced via the other ISP. You'll have to register
this block with the appropriate route registry. But none of this is a
big deal, and one or the other of your ISPs can likely help you.

- Andrew
Reply With Quote
  #5 (permalink)  
Old 07-12-2008, 02:11 PM
Tom
 
Posts: n/a
Re: Link failover with ping


Hi Andrew!
Sorry for the delay.


On 6 jul, 10:53, Andrew Gideon <c172driv...@gideon.org> wrote:
> On Fri, 04 Jul 2008 07:00:57 -0700, Tom wrote:
> > If someone knows if heartbeat know how to work with ISP failover, please
> > tell me. Anyway I'll look its doc.

>
> I'm not sure what you're trying to achieve.



I have two ISP to access the internet, and want to load balancing and
link
failover on a Linux server.


> If you've two separate
> upstreams, and want to route around failure of one, then the proper
> solution is to admit (or "brag" {8^) that you're multihomed and step into
> the BGP world. While it's missing a few features as compared to Cisco
> IOS, Quagga is a nice BGP routing daemon. I've it in use on a couple of
> boxes right now (neither of which gets heavy use yet, admittedly), and a
> full feed of routes from a few different upstreams isn't a problem.
>
> There's "paperwork" involved. You'll need to get a block of addresses
> from one of your ISPs (unless you're larger than I suspect) that it is
> willing to have announced via the other ISP. You'll have to register
> this block with the appropriate route registry. But none of this is a
> big deal, and one or the other of your ISPs can likely help you.
>
> - Andrew



Well, I`ve read about BGP, but it appears this protocol needs ISP
support
(I don`t know exactly which support).
I`m not sure if they can provide me.
One of them gave me 4 static IP address, another gave me one dynamic
IP
with DHCP, both via cable modem.

Is this enough to implement BGP or the ISP has to give me explicit BGP
support?



Tom Lobato
Reply With Quote
  #6 (permalink)  
Old 07-12-2008, 02:19 PM
Tom
 
Posts: n/a
Re: Link failover with ping

On 12 jul, 11:11, Tom <tomlob...@gmail.com> wrote:
>
> On 6 jul, 10:53, Andrew Gideon <c172driv...@gideon.org> wrote:
> >
> > I'm not sure what you're trying to achieve.

>
> I have two ISP to access the internet, and want to load balancing and
> link failover on a Linux server.


complementing...
load balancing is not a problem, linux is great!
failover is giving me a hard time :)
ping showed to be a hard way to achieve reliable ISP link failover

I`m playing with ping + qos + icmp priority base on iproute
but not found a reliable final solution.


Tom Lobato

Reply With Quote
  #7 (permalink)  
Old 07-12-2008, 05:51 PM
Andrew Gideon
 
Posts: n/a
Re: Link failover with ping

On Sat, 12 Jul 2008 07:19:46 -0700, Tom wrote:

> load balancing is not a problem


W/o BGP, how are you making the determination of which egress path should
be taken by a given packet?

- Andrew
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 10:31 PM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Unsecured Loans | Hummer Dealership | Vanquis credit card | Secured Loans | Mobile Phone



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109