From: Laurent Deniel <deniel@worldnet.fr>
To: Mark Hahn <hahn@physics.mcmaster.ca>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Ethernet NIC dual homing
Date: Sun, 28 Oct 2001 23:42:48 +0100 [thread overview]
Message-ID: <3BDC89E8.FF8446C@worldnet.fr> (raw)
In-Reply-To: <Pine.LNX.4.10.10110281727070.5138-100000@coffee.psychology.mcmaster.ca>
Mark Hahn wrote:
>
> > > > the kernel switches to the second NIC. Such a similar feature exists in
> > >
> > > why not user-space?
> >
> > Good question. The switch could be initiated by a user-space daemon but
> > the switch itself should be implemented at kernel level for performance
> > and atomicity reasons (to avoid too many loss of packets) ?
>
> nets are lossy; no protocol can't tolerate losing a few packets.
> in any event, there's no way the kernel is going to contain elaborate
> heuristics that try to diagnose a failing NIC. this sort of thing
> really has to be done by user-land.
Yes. NetRAIN (Tru64 Unix) for instance has a daemon in user space that
monitor the device input & output statistics and try to generate some
traffic (e.g. by pinging some multicast groups) in case rx & tx packet counts
are not increased in some period of time. Then a switch is initiated if they
remain stable. But some failure conditions with some cards can be detected at
driver level (e.g. Ethernet link down).
> note that afaik, the switch
> could probably be done atomically simply by changing a route metric,
> and might even happen from the kernel's builtin load-balancing.
> it does depend on the failure mode you're expecting. frankly, I've
> never had a NIC fail - what are you expecting, lightning damage or
> something?
> do you model that the device would give some sign that it's not working,
> or even some kind of warning?
The device could give the Ethernet link down indication. But most failures
would be detected at user-space level with the lack of rx/tx packets in
some period of time. Such a feature would not only allow to have a working
redundant NIC but would also allow to have a fully redundant ethernet
connection (i.e. two Ethernet NIC could be connected to different switches
in the same IP network), in case of failure of one NIC or switch, the other
route would be used by switching the NIC.
Laurent
next parent reply other threads:[~2001-10-28 22:42 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Pine.LNX.4.10.10110281727070.5138-100000@coffee.psychology.mcmaster.ca>
2001-10-28 22:42 ` Laurent Deniel [this message]
2001-10-30 11:14 Ethernet NIC dual homing Chemolli Francesco (USI)
-- strict thread matches above, loose matches on Subject: below --
2001-10-30 11:05 Chemolli Francesco (USI)
2001-10-30 11:33 ` Alan Cox
2001-10-29 13:39 willy tarreau
2001-10-29 19:59 ` Laurent Deniel
2001-10-29 22:17 ` Laurent Deniel
2001-10-29 22:32 ` willy tarreau
2001-10-29 22:26 ` willy tarreau
2001-10-29 22:59 ` Christopher Friesen
2001-10-29 23:07 ` willy tarreau
2001-10-30 2:33 ` Dan Hollis
2001-10-30 2:55 ` Jonathan Lundell
2001-10-30 3:15 ` H. Peter Anvin
2001-10-30 3:30 ` Jonathan Lundell
2001-10-30 4:57 ` Dan Hollis
2001-10-30 15:33 ` Christopher Friesen
2001-10-30 4:55 ` Dan Hollis
[not found] <Pine.LNX.4.10.10110281248320.5138-100000@coffee.psychology.mcmaster.ca>
2001-10-28 22:23 ` Laurent Deniel
2001-10-28 17:23 Laurent Deniel
2001-10-29 13:24 ` Martin Eriksson
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=3BDC89E8.FF8446C@worldnet.fr \
--to=deniel@worldnet.fr \
--cc=hahn@physics.mcmaster.ca \
--cc=linux-kernel@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox