Received: from oss.sgi.com (localhost.localdomain [127.0.0.1]) by oss.sgi.com (8.12.3/8.12.3) with ESMTP id g38C4MVK009602 for ; Mon, 8 Apr 2002 05:04:22 -0700 Received: (from mail@localhost) by oss.sgi.com (8.12.3/8.12.3/Submit) id g38C4MIp009601 for netdev-outgoing; Mon, 8 Apr 2002 05:04:22 -0700 X-Authentication-Warning: oss.sgi.com: mail set sender to owner-netdev@oss.sgi.com using -f Received: from cyberus.ca (mail.cyberus.ca [216.191.240.111]) by oss.sgi.com (8.12.3/8.12.3) with SMTP id g38C4EVK009597 for ; Mon, 8 Apr 2002 05:04:15 -0700 Received: from shell.cyberus.ca (shell [216.191.240.114]) by cyberus.ca (8.9.3/8.9.3/Cyberus Online Inc.) with ESMTP id IAA25494; Mon, 8 Apr 2002 08:04:34 -0400 (EDT) Received: from localhost (hadi@localhost) by shell.cyberus.ca (8.11.6+Sun/8.11.6) with ESMTP id g38BxT714899; Mon, 8 Apr 2002 07:59:29 -0400 (EDT) X-Authentication-Warning: shell.cyberus.ca: hadi owned process doing -bs Date: Mon, 8 Apr 2002 07:59:29 -0400 (EDT) From: jamal To: Michael Richardson cc: Subject: Re: Patch: Device operative state notification against 2.5.7 In-Reply-To: <200204072211.g37MB3v06124@marajade.sandelman.ottawa.on.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-netdev@oss.sgi.com Precedence: bulk On Sun, 7 Apr 2002, Michael Richardson wrote: > -----BEGIN PGP SIGNED MESSAGE----- > > > >>>>> "jamal" == jamal writes: > >> -IFOP_DOWN_LOWERLAYER > >> Lower layer is down, f.e. ethernet interfaces below a VLAN > >> -IFOP_DOWN_NOCARRIER > >> Interface link beat/framing is missing (current netif_carrier_o* maps > >> here) > > Are there docs on these interfaces somewhere? > I guess this discussion will result in some documentation... > jamal> Good naming convention for the above two. > > >> -IFOP_DOWN_KEEPALIVE > >> Another form of keepalive is missing > > jamal> Not clear on this one. > > PPP, for instance, does keepalives. > An IPsec tunnel might also use such a mechanism (we have plans). > Well, in that case the device is actually IFOP_UP. And the keepalives could be looked at as "carrier/link level diagnostics". Should the heartbeats disappear, it would be fair to transition the device to IFOP_DOWN_NOCARRIER. Should the device underneath have its carrier dissapear (eg a cable removed on an ethernet which ipsec0 uses), then the transition is very quickly to IFOP_DOWN_LOWERLAYER.... I guess the device(ipsec0) may also transition to IFOP_DOWN_NOCARRIER since its carrier path is doewn etc. > jamal> Also the only time IFOP_DOWN_LOWERLAYER makes sense is when the top > jamal> stacked device is actually admin up (but none of the lower devices are > jamal> operationally UP) > > There are very good operational reasons why this is often done... > It would be nice to see this kind of stuff in diagnostics. I think they should be accessible; whether you send netlink advertisements everytime there is some state transition is the question. In my opinion the only interesting things are the a transition from a case where a carrier (ethernet cable) is connected to where it is disconnected. The other direction is also important. For example, i think these are the only two route daemons need to know about. cheers, jamal