All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jose Luis Domingo Lopez <lartc@24x7linux.com>
To: lartc@vger.kernel.org
Subject: Re: [LARTC] Dual Redundant Network routing [Question]
Date: Tue, 18 May 2004 21:04:19 +0000	[thread overview]
Message-ID: <20040518210419.GA22597@localhost> (raw)
In-Reply-To: <8EDE97BDB92BF34D851B329483A661B7022B762B@mail.edocsd.edocombat.com>

On Tuesday, 18 May 2004, at 13:36:21 -0700,
Daniel Chemko wrote:

> If you're rolling your own, the most well used technique to detect a
> dead link is pinging static hosts located on each network segment. Since
> you are dual-redundant of the same network, you'll need top do a little
> source routing. If you have a ping with the -j or the -I options, you
> can cheat and socket bind ping to each physical network segement to test
> the common IP's.
> 
In the past I have implemented a Linux policy router with link failure
detection, but instead of "pinging" a remote host I use "hping" to make
a TCP connection request to a remote IP at port 80. If this remote IP
address is known to be always up (for example, www.google.com's IP) this
can be a good level-7 health check.

Yo can do this from the router itself on any number of links. Just make
sure you understand Linux policy routing, and just before sendind the
probe packets make them go trhough the link you are trying to test.

Couple the above with a "state machine" to prevent considering a link
down when just one probe fails, and to make a link up again when it has
been so for long enough.

> Once you detect a failure, you need to handle the outage. This can be
> done with marking a route dead or changing the default route to the
> other interface. This shouldn't be too hard.
> 
In my setup I have a routing table for each link to the Internet, each
table with just a default route to the Internet through this link. So
when I detect the link has gone down, I just make a "ip route change
table linkX default via ..." to reroute all traffic to another link.

Hope this helps.

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.6.6)
_______________________________________________
LARTC mailing list / LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

      parent reply	other threads:[~2004-05-18 21:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-18 13:58 [LARTC] Dual Redundant Network routing [Question] Chris Litchfield
2004-05-18 20:36 ` Daniel Chemko
2004-05-18 21:04 ` Jose Luis Domingo Lopez [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20040518210419.GA22597@localhost \
    --to=lartc@24x7linux.com \
    --cc=lartc@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.