Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #23712

Re: Remote "watchdog"s

From Don Y <blockedofcourse@foo.invalid>
Newsgroups comp.arch.embedded
Subject Re: Remote "watchdog"s
Date 2016-04-20 15:30 -0700
Organization A noiseless patient Spider
Message-ID <nf8vnt$r2v$1@dont-email.me> (permalink)
References <nf8moq$khq$1@dont-email.me> <l96dnVNe8u9ubIrKnZ2dnUU7-b_NnZ2d@giganews.com>

Show all headers | View raw


On 4/20/2016 2:17 PM, Tim Wescott wrote:
> On Wed, 20 Apr 2016 12:57:06 -0700, Don Y wrote:
>
>> I have a distributed system.  As such, it is possible for parts of it to
>> crash, become unresponsive, suffer hardware failures, etc.
>>
>> The "system" as a whole needs a way of coping with these.
>>
>> In the normal course of operation, traffic between nodes gives some
>> reassurance that the nodes involved are "sane".
>>
>> OTOH, if a node starts acting wonky, I can invoke recovery protocols
>> that (in an ideal world) will reset/restart the portions of the node
>> that appear to be misbehaving (e.g., if traffic to/from one particular
>> task is "odd", then perhaps that task has gone south;
>> but, the remainder of the node may be intact.  Or, some I/O that the
>> wacky task handles is misbehaving and the task is doing its best to make
>> sense of a broken environment).
>
> I would be more inclined to insist that each node has good built-in-test,
> and that it do it's own fault recovery -- i.e., to the extent possible it
> should recognize it's own problems, and at worst it should respond to
> requests for information with "I'm sorry, I'm sick right now and can't
> come to work."

Nodes are up "forever".  So, the POST only happens occasionally.
I have some run-time diagnostics (e.g., testing RAM as I scrub it;
sanity tests on I/O values, etc.).  But, if the node is already
"compromised" in some way, I can't rely on *it* being able to
adequately vouch for itself.

OTOH, if a *process* goes wonky, I can shut it down (the assumption
being that the rest of the node is intact).  But, if the node doesn't
(or can't!) listen, then I can't "tell" it to do anything!

> Then if it goes _totally_ wonky, cut it off at the knees.

By pulling the plug (?)

>> If the node itself gets hosed, then a hardware watchdog on that node
>> *might* bring it back to nominal operating condition.
>>
>> But, I still need a reliable way of making a (remote) node "safe",
>> "secure", etc.
>>
>> I presently deliver PoE to each node and many of them live off that.
>> So, as a last ditch effort, I can command the switch to remove that and
>> unceremoniously bring the node down.
>>
>> Except for the nodes that *aren't* dependent on that!
>>
>> Rather than concoct some other mechanism that might work (less
>> effectively), perhaps it is easiest to codify this behavior in the
>> hardware interface spec?
>> I.e., even if you don't RELY on PoE, you must still *honor* it AS IF you
>> did!
>>
>> In the simplest case, that means treating !PoE as a RESET state.  And,
>> ensuring that the hardware will remain safe/secure in perpetual reset
>> (i.e., not expecting RESET to be a *transient* state).
>>
>> Of course, the downside is that I now must be able to deliver something
>> akin to a PoE signal on every port (though I could possibly skimp on the
>> load carrying capability for many ports?)
>>
>> Any holes in this?  Or, better alternatives?
>
> Sounds good.  For the pseudo-PoE idea, if you're worried about babbling
> nodes consuming all the bandwidth, you could insist that the Ethernet phy
> layer be powered by the PoE, even if nothing else is.  Or insist on a set
> of analog switches that effectively disconnect Ethernet at some point.

A process control system I worked on many years ago had a locally controlled
relay to allow a node to isolate it from the network.  And, fuses in-line.
If the network got compromised (a node chattering endlessly), "normal"
nodes would detect this and take themselves offline.  The network controller
(Master-Slave) would then apply a high voltage to the network blowing the
fuses of any node that had "lost its marbles".  After a prescribed delay,
the "sane" nodes would reconnect to the network.

But, here, each node is on its own segment.  So, I can simply choose to
block all traffic coming into the switch from that segment.  (a node can't
decide who it wants to talk to but, rather, the switch has to be configured
to explicitly pass *desired* traffic to/from the other nodes as the
fabric configuration is dynamically updated).

[The point was to ensure that an adversary having access to a node
or its drop can't flood the switch with bogus (or even forged) traffic
and compromise the operation of other nodes]

> And -- keep in mind that you can't protect from EVERY fault.  You have to
> make a risk/reward tradeoff.

Yes.  If it was a monolithic design, a single hardware "reset" circuit would
ensure EVERYTHING was held in a safe/secure state (by explicitly choosing
reset conditions to be such).  The distributed nature prevents me from
"distributing" that reset signal.

[Ages ago, I'd accomplished this with serially (EIA232) connected nodes
by driving TxD to a LONG SPACE condition... then, letting hardware
detect this (one shot) and drive the "local" RESET accordingly.  Not
quite as easy to do/detect with ethernet interfaces (without relying on
the interface itself being operational) -- for an EIA232 link, you could
just look at the incoming RxD signal coming out of the level translator]

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 12:57 -0700
  Re: Remote "watchdog"s Tim Wescott <seemywebsite@myfooter.really> - 2016-04-20 16:17 -0500
    Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 15:30 -0700
      Re: Remote "watchdog"s Tim Wescott <tim@seemywebsite.com> - 2016-04-20 19:27 -0500
        Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 17:42 -0700
  Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-20 23:19 -0500
    Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-20 22:10 -0700
      Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-21 22:34 -0500
        Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-21 22:53 -0500
          Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-22 04:23 -0700
            Re: Remote "watchdog"s Robert Wessel <robertwessel2@yahoo.com> - 2016-04-22 18:47 -0500
              Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 17:48 -0700
                Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-22 18:22 -0700
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 19:11 -0700
          Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-22 13:35 -0700
            Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 09:29 +0300
              Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 00:54 -0700
                Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 13:46 +0300
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 04:08 -0700
                Re: Remote "watchdog"s upsidedown@downunder.com - 2016-04-23 17:26 +0300
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-23 12:59 -0700
                Re: Remote "watchdog"s lasselangwadtchristensen@gmail.com - 2016-04-27 15:25 -0700
                Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-27 15:49 -0700
        Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-21 22:08 -0700
    Re: Remote "watchdog"s Tim Wescott <seemywebsite@myfooter.really> - 2016-04-21 11:25 -0500
      Re: Remote "watchdog"s Don Y <blockedofcourse@foo.invalid> - 2016-04-21 09:33 -0700

csiph-web