LARTC
[Top] [All Lists]

Re: [LARTC] DGD patch not detecting dead gateway

To: "Mail List - Linux Advanced Routing and Traffic Control" <lartc@mailman.ds9a.nl>
Subject: Re: [LARTC] DGD patch not detecting dead gateway
From: "Manish Kathuria" <mkathuria@tuxtechnologies.co.in>
Date: Sat, 27 Jan 2007 20:10:49 +0530
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <45B196D2.3040802@riverviewtech.net>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <7fe14e000701182100l5b1474eai853a0077c821a835@mail.gmail.com> <1df4abe60701191045q32c78d97h1ebee0846b5181f@mail.gmail.com> <45B196D2.3040802@riverviewtech.net>
Sender: lartc-bounces@mailman.ds9a.nl
On 1/20/07, Grant Taylor <gtaylor@riverviewtech.net> wrote:
On 01/19/07 12:45, Manish Kathuria wrote:
> My experience has been mixed. The patch worked very well in many cases
> but in some it worked only if the first hop gateway was down and not
> any of the subsequent hops. So as you mentioned its happening since it
> can ping the switch / modem, it thinks the link is good. You can make
> a script which will keep on running in the background and check it the
> links are up or not and if any of the links is down, it can change the
> default route and provide a failover.

I have been tasked with writing such a script.  In my scenario, I'm
taking it a bit further though.  I am planing on having my script test
the actual service that I'm trying to connect to.  I.e. connect to port
80 and request a page.  I'm having to go this route because I've had
sporadic MTU issues in one of our (primary) paths.  The provider is
suppose to be repairing the problem, however I need a solution before
that can happen.

The method I have adopted is to use a shell script which pings a
popular remote site 's IP (for example www.yahoo.com or
www.google.com) through each of the interfaces every 10 seconds. The
default multipath route is replaced by a single default gateway if
reply is not received for 4 consecutive tries from one of the links.
This is to avoid very frequent failovers. However, the link is treated
as live as soon as a  ping reply is received and the multipath route
is activated.

--
Manish Kathuria
Tux Technologies
http://www.tuxtechnologies.co.in/
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>