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

Robert Raszuk <robert@raszuk.net> Sat, 19 November 2016 14:27 UTC

Return-Path: <rraszuk@gmail.com>
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 DDA2412995C for <idr@ietfa.amsl.com>; Sat, 19 Nov 2016 06:27:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.399
X-Spam-Level:
X-Spam-Status: No, score=-2.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.199, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 oclOxwENZEMI for <idr@ietfa.amsl.com>; Sat, 19 Nov 2016 06:27:12 -0800 (PST)
Received: from mail-qk0-x22a.google.com (mail-qk0-x22a.google.com [IPv6:2607:f8b0:400d:c09::22a]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 15F9812995B for <idr@ietf.org>; Sat, 19 Nov 2016 06:27:12 -0800 (PST)
Received: by mail-qk0-x22a.google.com with SMTP id n21so300315044qka.3 for <idr@ietf.org>; Sat, 19 Nov 2016 06:27:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date:message-id :subject:to:cc; bh=IHabg6sFR72ixaDC8/h4OITkW0I9C0N8vzYql2JpZbw=; b=xw9AbEdFZwB/2ZcsCAsyD1QNguyekFlMruTnhu/0r1zqorFmADpwJmmNjY9MdhGC17 dLIRefEj2TT4NIRSsT4CTHAMCnOWx/Vj6hwf+vItA7Ssuk5G2unzk7tVxOlmqpuCuq2c gBrtzIZrHlAZfvajI1GwQUYhAZ5djPkvTBFhZ2NwaEtQD1dWODPJaNNObJSiGc0ZRAHz wuTvbQC5fhNeX5edtXr5y6bDqIgkfXB70U0/IhXDxko0c5H6osaVqWwznU5KxR/vFeq+ 41P4hEfquPwygbx3DHWBX5Av7Sh/pMUd1Zk9csYQazjllIsvJsKPTUBzlBCUZ4BmlJm+ EIqw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:cc; bh=IHabg6sFR72ixaDC8/h4OITkW0I9C0N8vzYql2JpZbw=; b=bufwupr6zu0vD5AkAEXWFYaz1IJMtXOQeYKVYGZF40uKCd06c+d0EVk02/SrfViZnD VnSQnIHJOVIF0Xr7c+QCzzAS81h8r2muOJ+J7OeP7xn0bz9MFe7wtzW6grcu5v2S6ZOe 2rV914WgLKjVnCKyGZEhmrqAopBdyfIaFVwpglhIWueSudO5W1OHccXpeKPS1HdlEjam m9Z21FaRX/wKTw5BgtgLrtd+WwtF538SIXbI3Wrilgs6bUfsdIuDhZoyZh91sGHXHTqx fYGeIpRneIQ/z79x7d/G+brq0I25UOi3alp+WC+KcREockaMmvpSIE24n5Fo7aJ6N7jW LL7g==
X-Gm-Message-State: AKaTC03FvUnTG/p386BgmGkTF6ByB9myKm5NtdVXjCCk4UxxuKwnCQWc+KTL/TR51HV4v2oJ6xyXzLMdlk6Kvg==
X-Received: by 10.55.174.135 with SMTP id x129mr6473903qke.133.1479565631068; Sat, 19 Nov 2016 06:27:11 -0800 (PST)
MIME-Version: 1.0
Sender: rraszuk@gmail.com
Received: by 10.140.16.50 with HTTP; Sat, 19 Nov 2016 06:27:09 -0800 (PST)
In-Reply-To: <20161119103226.GN1072@dhcp-9341.meeting.ietf.org>
References: <20161116061556.GG1073@dhcp-9341.meeting.ietf.org> <20161117013640.GB6217@pfrc.org> <16426_1479400131_582DDAC3_16426_1669_1_53C29892C857584299CBF5D05346208A1EC87201@OPEXCNORM2F.corporate.adroot.infra.ftgroup> <20161118004548.GK1072@dhcp-9341.meeting.ietf.org> <16418_1479457940_582EBC93_16418_290_1_53C29892C857584299CBF5D05346208A1EC8DEA5@OPEXCLILM21.corporate.adroot.infra.ftgroup> <CACWOCC8ENYuX2LeJKWP0tmMoCPJ4J-qxJjOXiHHLaP8Fqe4USg@mail.gmail.com> <13357_1479459134_582EC13E_13357_5786_1_53C29892C857584299CBF5D05346208A1EC8FF18@OPEXCLILM21.corporate.adroot.infra.ftgroup> <37224750-4065-40E3-B6F4-571DED698563@cisco.com> <20161119103226.GN1072@dhcp-9341.meeting.ietf.org>
From: Robert Raszuk <robert@raszuk.net>
Date: Sat, 19 Nov 2016 15:27:09 +0100
X-Google-Sender-Auth: Yf4gSZ81H9sJaFW2wJa3HCkpiPU
Message-ID: <CA+b+ERk3_F0QbGquUmW2P59DCmnMYGQsg2aqwPOLFs2ZE5xYCA@mail.gmail.com>
To: Job Snijders <job@instituut.net>
Content-Type: multipart/alternative; boundary="94eb2c070d62dcbe7a0541a8376b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/1QvOylsmY86XeI8QtXhmoMSLknM>
Cc: idr wg <idr@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: Sat, 19 Nov 2016 14:27:15 -0000

Job,

To recap ...

RFC4271 says:

      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
      | Error code    | Error subcode |   Data (variable)             |
      +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+


...


Note that the length of the Data field can be determined from
         the message Length field by the formula:

                  Message Length = 21 + Data Length


RFC4486 says:

   If a BGP speaker decides to administratively shut down its peering
   with a neighbor, then the speaker SHOULD send a NOTIFICATION message
   with the Error Code Cease and the Error Subcode "Administrative
   Shutdown".



That all means there is no guarantee that if you insert length some CPEs

will not crush even if the length value will be all 0.


That means that in my network where there is 15000 CEs if at least one

crashes I can not upgrade any longer any PE OS which may be needed for

other reasons.


That would be pretty bad effect of the proposed enhancement.


If we are to continue to use subcode 2 let's stay with current 4271 format

and not update 4271 RFC with this proposal.


Or let's define new cease subcode say "INFO" which will be injected only when

operator types in a string. That way existing deployments are safe and you can

enjoy new communication channel (hopefully with some well defined keywords :).


Cheers,

R.



On Sat, Nov 19, 2016 at 11:32 AM, Job Snijders <job@instituut.net> wrote:

> Hi Jakob, Working group,
>
> It is for "defensive" purposes: what if utf8 turns out to be terrible,
> then cease subcode 2 can still be used but we can put something else in
> the datafield trailing the subcode.
>
> the advantage of using a length field is that we avoid discussing types
> and semantics, but future protocol developers have an option to use the
> trailing data in the NOTIFICATION message for some purpose.
>
> It would look like this:
>
> -----
>
>     0                   1                   2                   3
>     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    | Error code 6  |   Subcode 2   |    Length     |     ...       |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |                   ... Shutdown Communication ...              |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>    |                              ...                              |
>    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
>
>    Length:
>         The Length value can range from 0 to 128 and indicates how many
>         bytes of UTF-8 for the Shutdown Communication follow. If the
>         length field is set to 0, no UTF-8 bytes follow.
>
> -----
>
> This is an very lightweight approach to leave the door somewhat open ,
> should the need to do something else with the trailing data arise, and
> it only costs 1 byte.
>
> Kind regards,
>
> Job
>
>
> On Fri, Nov 18, 2016 at 08:01:30PM +0000, Jakob Heitz (jheitz) wrote:
> > Not necessary. You can already send whatever you want. In iOS-XR, it
> > just hexdumps it all. The only thing that will change is that it will
> > print it in UTF8 as well. It will still hexdump. If you want no
> > hexdump, then we need a new subcode.
> >
> > Thanks,
> > Jakob.
> >
> > On Nov 18, 2016, at 12:52 AM,
> > <bruno.decraene@orange.com<mailto:bruno.decraene@orange.com>> wrote:
> >
> > Thanks.
> > --Bruno
> >
> > From: Job Snijders [mailto:job@instituut.net]
> > Sent: Friday, November 18, 2016 9:46 AM
> > To: DECRAENE Bruno IMT/OLN
> > Cc: Jeffrey Haas; Job Snijders; grow@ietf.org<mailto:grow@ietf.org>;
> idr@ietf.org<mailto:idr@ietf.org>
> > Subject: Re: [GROW] [Idr] draft-snijders-idr-shutdown-00: Drop a line
> in the peer's syslog at shutdown
> >
> > Hi Bruno,
> >
> > John Scudder was kind enough to provide extensive argumentation
> > offlist on why something along these lines should be done. We'll work
> > on a proposal. The length indicator is a neat idea, thanks for
> > sharing.
> >
> > Job
> >
> > On Fri, 18 Nov 2016 at 17:32, <bruno.decraene@orange.com<mailto:
> bruno.decraene@orange.com>> wrote:
> >
> >
> > > From: Job Snijders [mailto:job@instituut.net<mailto:job@instituut.net>]
> > Sent: Friday, November 18, 2016 1:46 AM
> > >
> >  > On Thu, Nov 17, 2016 at 04:28:50PM +0000, bruno.decraene@orange.com<
> mailto:bruno.decraene@orange.com> wrote:
> >  > > I support the draft.
> >  > > I also support Jeff's idea to re-use existing sub-code(s).
> >  >
> >  > Thanks for your support. Based on the feedback received so far the
> next
> >  > version of this draft will recycle Cease subcode 2.
> >  >
> >  > > 1 possible comment: the length of the "Shutdown Communication" field
> >  > > seems implied from the length of the data field, rather than being
> >  > > explicitly indicated.
> >  >
> >  > The text is explicit about the length:
> >  >
> >  >     "followed by a freeform UTF-8 encoded string with a REQUIRED
> maximum
> >  >     length of 128 octets. "
> >  >
> >  > and further:
> >  >
> >  >     "This document tries to minimize the effects of visual spoofing by
> >  >     allowing UNICODE only where local script is expected and needed,
> and
> >  >     by limiting the length of the Shutdown Communication."
> >  >
> >  > > If so, it seems that we are closing the possibility to advertise
> >  > > additional data/usage, in some future. What about adding a TLV
> format?
> >  >
> >  > I object to using a TLV. Don't forget this is already at a TLV level:
> >  > Cease NOTIFICATION. If one would want to define a TLV inside this
> TLV, a
> >  > new Cease subcode can be requested from IANA.
> >
> > What if someone needs to advertise additional info to an existing
> > cease subcode? cf Jeff's email regarding the pain of changing
> > subcodes.  So let's forget about the TLV. What about just adding the
> > length of the string? This would still allow adding fields after the
> > string, while having a negligible/null cost?
> >
> > Kind regards,
> > -- Bruno
>
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr
>