Re: [Idr] [GROW] draft-snijders-idr-shutdown-00: Drop a line in the peer's syslog at shutdown

Jeffrey Haas <jhaas@pfrc.org> Thu, 17 November 2016 01:33 UTC

Return-Path: <jhaas@slice.pfrc.org>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id C73881294EC; Wed, 16 Nov 2016 17:33:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.399
X-Spam-Level:
X-Spam-Status: No, score=-3.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RP_MATCHES_RCVD=-1.497, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TEBljad5Czvc; Wed, 16 Nov 2016 17:33:46 -0800 (PST)
Received: from slice.pfrc.org (slice.pfrc.org [67.207.130.108]) by ietfa.amsl.com (Postfix) with ESMTP id 9BD0112961E; Wed, 16 Nov 2016 17:33:44 -0800 (PST)
Received: by slice.pfrc.org (Postfix, from userid 1001) id E1AA21E369; Wed, 16 Nov 2016 20:36:40 -0500 (EST)
Date: Wed, 16 Nov 2016 20:36:40 -0500
From: Jeffrey Haas <jhaas@pfrc.org>
To: Job Snijders <job@ntt.net>
Message-ID: <20161117013640.GB6217@pfrc.org>
References: <20161116061556.GG1073@dhcp-9341.meeting.ietf.org>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <20161116061556.GG1073@dhcp-9341.meeting.ietf.org>
User-Agent: Mutt/1.5.21 (2010-09-15)
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/8HKDcXjLQiMSc1cTXtUDLG8cXGs>
Cc: idr@ietf.org, grow@ietf.org
Subject: Re: [Idr] [GROW] draft-snijders-idr-shutdown-00: Drop a line in the peer's syslog at shutdown
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 17 Nov 2016 01:33:48 -0000

On Wed, Nov 16, 2016 at 03:15:56PM +0900, Job Snijders wrote:
> Some might wonder, why "Cease"?
> 
> The beauty of using a new Cease subcode, is that the NOTIFICATION
> message type already allows extra data to be attached, so for most
> implementations it will be very simple to bolt what is specified in
> draft-snijders-idr-shutdown-00 on top of their existing code. In some
> cases we are looking at just a handful of lines.

As I commented elsewhere, changing subcodes ends up being painful from a
conformance standpoint.  I would honestly not recommend a new subcode.

BGP implementations usually deal with the notification data section that may
not have information in a format they recognize by simply ignoring or making
the contents available in something like hexadecimal prints.

What I would suggest is simply take the RFC 4486 subcodes that don't already
return additional information (e.g. max prefix) and simply add this shutdown
reason as the data.  From the list of code points, here's the ones I would
suggest updating:

:         2        Administrative Shutdown
:         3        Peer De-configured
:         6        Other Configuration Change

Ones that possibly shouldn't be changed:


:         1        Maximum Number of Prefixes Reached

This one is fully specified.

:         4        Administrative Reset

I'm not sure returning something here makes sense.  This seems to be more
the "clear bgp neighbor" case.  Unless you think adding information about
why the user did the clear makes sense.

:         5        Connection Rejected

Here's where things get a little odd.  You should get one of the other
subcodes on clear.  If you're preventing it from coming back up, this code
may be returned.  This means that even if you're storing the last received
string, it might be overwritten by this.

:         7        Connection Collision Resolution
:         8        Out of Resources

I suspect these shouldn't return anything.

> Previous attempts such as draft-ietf-idr-advisory-00 and
> draft-ietf-idr-operational-message-00 failed to deliver for various
> reasons (feature creep comes to mind), therefore we are trying to do
> this as simple as possible. 

IMO, they more likely failed as low priority features that couldn't get past
product managers.

If, especially the existing code points are re-used and don't alter existing
implementation conformance, I suspect this draft would be closer to a
trivial modification that has a better chance of getting shipped quickly.

I also have to ask about:

:    As of today these vendors have produced an implementation of the
:    Shutdown Communication:
: 
:    o  ExaBGP

And exactly which code point did you squat on to do the prototype? ;-)

(I'm not exactly concerned about this since it's local in impact but you'd
think after the discussions this week...)

-- Jeff