All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Gáspár Lajos" <swifty@freemail.hu>
To: Lloyd Standish <lloyd@crnatural.net>
Cc: "Andrew Beverley" <andy@andybev.com>,
	"Usuário do Sistema" <maiconlp@ig.com.br>,
	"Mail List - Netfilter" <netfilter@vger.kernel.org>
Subject: Re: redundancy with Adsl modem
Date: Wed, 04 Jan 2012 19:00:53 +0100	[thread overview]
Message-ID: <4F0493D5.3040001@freemail.hu> (raw)
In-Reply-To: <op.v7kb75oyx1lyi3@debiandesk2.net>

Hi Lloyd,

Thank you for your comment ! :D
I have never used this monitor, but I am going to try it... :D

2012-01-04 15:08 keltezéssel, Lloyd Standish írta:
> I'm sure your iface match is very useful in many circumstances.  
> However I would like to point out that link status monitor 
> (http://lsm.foobar.fi/) actually evaluates the link quality by pinging 
> an IP (perhaps several hops past the gateway IP), keeping track of the 
> number of lost and late-arriving packets over the last 60 seconds.  If 
> the number of late or dropped packets exceeds a certain (configurable) 
> number, then the link is reported as "down".  The main advantage to 
> this (and the fact that it happens outside of netfilter) is that the 
> firewall can be automatically reconfigured to exclude the failed link 
> from routing.  When the link quality is seen to have improved, the 
> failed link can be included again in the routing decision.

I think that both of these approaches has pros and cons.

Maybe you also know that (in Linux) the kernel chooses the output 
interface depending on the routing table and not the source IP...
So if the ping is not bound to a specific interface then it is "useless"...
(There is an oping utility that can be set up to use a specific interface.)
I do not know LSM but I hope that it is also aware of this.

Besides this, pinging is not always accurate and may lead the 
application think that link quality is dropping down...
Just imagine that the pinged host(s) can be under a DOS attack and the 
reply times can go high...
(Not to mention that the pinging generates traffic and that requires 
resources. Probably not too much resources at all :D)

Other question is that how often/rarely do you ping? If often then it is 
too much traffic. If rarely then do you REALLY KNOW that the interface 
was all the time up?

To repeat myself: I do not know LSM :D

It seems to me that LSM is some kind of line quality checking software...

OTOH my match checks the interface state when the packet is in the queue...
With that info you can mark the packets and let the kernel decide about 
the routing depending on the mark..

But my match does not know anything about the "quality" of the 
connection just about the state of the interface...

Returning to the main question:
If an interface goes down then the associated connections will most 
likely break down...
Without knowing the required "high-availability" services, for example 
you can use "fallback_relay" in postfix; multiple remote lines in 
openvpn, etc. etc. etc.
So maybe the redundancy is not the right word for the main requirement...
I would ask myself: Do I really need redundancy or do I need alternativity?


Swifty

  reply	other threads:[~2012-01-04 18:00 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-03  1:54 redundancy with Adsl modem Usuário do Sistema
2012-01-03  7:14 ` Andrew Beverley
2012-01-03 15:18   ` Usuário do Sistema
2012-01-03 23:58     ` Andrew Beverley
2012-01-04  0:17       ` Usuário do Sistema
2012-01-04  1:58     ` Lloyd Standish
2012-01-04  9:09       ` Gáspár Lajos
2012-01-04 11:16         ` Usuário do Sistema
2012-01-04 14:08         ` Lloyd Standish
2012-01-04 18:00           ` Gáspár Lajos [this message]
2012-01-04 20:15             ` Usuário do Sistema
2012-01-04 20:55               ` Lloyd Standish
2012-01-06 17:12               ` Gáspár Lajos
2012-01-06 18:16                 ` Lloyd Standish
2012-01-10  0:20                 ` Usuário do Sistema
2012-01-17 16:09                   ` Gáspár Lajos
2012-01-17 17:08                     ` Usuário do Sistema
2012-01-04 20:55             ` Lloyd Standish
2012-01-04 21:01             ` Lloyd Standish

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=4F0493D5.3040001@freemail.hu \
    --to=swifty@freemail.hu \
    --cc=andy@andybev.com \
    --cc=lloyd@crnatural.net \
    --cc=maiconlp@ig.com.br \
    --cc=netfilter@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.