From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tom Lobato Date: Mon, 12 Feb 2007 11:34:26 +0000 Subject: Re: [LARTC] DGD patch not detecting dead gateway Message-Id: <45D050C2.80904@gmail.com> List-Id: References: <7fe14e000701182100l5b1474eai853a0077c821a835@mail.gmail.com> In-Reply-To: <7fe14e000701182100l5b1474eai853a0077c821a835@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Manish Kathuria escreveu: > On 2/8/07, Tom Lobato wrote: > >> Thank you for the script. I'm trying it. >> >> Well, I made a simple modification and would like to hear opnions. >> Until now, I just added one more TESTIP, so I'm pinging one IP for >> each link. >> Also I'm using the IP instead name address, and used the DNS IP of >> each provider >> for the ping. I made this because the ping to external sites (yahoo, >> google) is too slow >> here, mainly when the link is under heavy load. So I'm afraid it can >> try ping >> without success and "think" the link is down. > > I just used a popular external site because it may happen that > connectivity from your location to the provider's DNS is there but the > provider's link with the rest of the internet is down so even if you > get a successful ping reply, the link isn't working in the real sense. ok, I noted here my DNS server block pings (!) so I'm also using a site now. > Also, I preferred using a name instead of IP address because there > could be multiple IP addresses associated with the site name and they > can change too. But I don't see anything wrong in your approach. What > do you mean by slow ? I don't think ping reply time should be an > issue. We are more concerned with the success. Obviously, it should > not time out. I agree, but here "slow = timeout" =) I'm suspecting the adsl modem is the problem. I have two dynamic IP links, adsl/pppoe 400kbps and cable-modem/dhcp 4Mbps. Anyway, I changed my mind and will connect links directly to linux (no routers), with the drawback of not have fixed IP/GW/MASK/NET's, but with advantages of need no routers, need no port forwarding in routers, a more auto-sufficient solution. So, I'm using your script as base (although I had made another, I liked yours), making scripts for dhcp and pppoe create files with connection info, from where it reads data for set LB. If someone more wants it, tell me and I send a mail. I know I could apply the patchs and these scripts would too more simple, but the patch does not detect fail if it is beyond the gateway. > > The ping reply times I get here for sites like www.yahoo.com and > www.google.com are to the tune of 300 ms. Here, without any internet use from localnet, i get ~150ms for both. So, really, it appears I have another problem, not ping delay. Maybe too load on adsl link, although I set weights 10 for cable link and 1 for adsl. Tom Lobato _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc