Re: [Lsr] AD Review of draft-ietf-isis-reverse-metric-11

Uma Chunduri <uma.chunduri@huawei.com> Fri, 28 September 2018 23:20 UTC

Return-Path: <uma.chunduri@huawei.com>
X-Original-To: lsr@ietfa.amsl.com
Delivered-To: lsr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 330FB129C6B; Fri, 28 Sep 2018 16:20:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 Hx_3aVC1EZdJ; Fri, 28 Sep 2018 16:20:00 -0700 (PDT)
Received: from huawei.com (lhrrgout.huawei.com [185.176.76.210]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E2697127148; Fri, 28 Sep 2018 16:19:59 -0700 (PDT)
Received: from LHREML711-CAH.china.huawei.com (unknown [172.18.7.108]) by Forcepoint Email with ESMTP id BAACA14698A31; Sat, 29 Sep 2018 00:19:54 +0100 (IST)
Received: from SJCEML703-CHM.china.huawei.com (10.208.112.39) by LHREML711-CAH.china.huawei.com (10.201.108.34) with Microsoft SMTP Server (TLS) id 14.3.399.0; Sat, 29 Sep 2018 00:19:56 +0100
Received: from SJCEML521-MBS.china.huawei.com ([169.254.2.77]) by SJCEML703-CHM.china.huawei.com ([169.254.5.77]) with mapi id 14.03.0415.000; Fri, 28 Sep 2018 16:19:52 -0700
From: Uma Chunduri <uma.chunduri@huawei.com>
To: Alvaro Retana <aretana.ietf@gmail.com>, "Naiming Shen (naiming)" <naiming@cisco.com>
CC: "lsr@ietf.org" <lsr@ietf.org>, "Les Ginsberg (ginsberg)" <ginsberg@cisco.com>, "draft-ietf-isis-reverse-metric@ietf.org" <draft-ietf-isis-reverse-metric@ietf.org>, Christian Hopps <chopps@chopps.org>, "lsr-chairs@ietf.org" <lsr-chairs@ietf.org>
Thread-Topic: [Lsr] AD Review of draft-ietf-isis-reverse-metric-11
Thread-Index: AQHUVHAnhIMPgJQJTEaxzNE1pPCKSqUDdn8AgALJ0OWAABUYQA==
Date: Fri, 28 Sep 2018 23:19:52 +0000
Message-ID: <25B4902B1192E84696414485F57268541367202C@sjceml521-mbs.china.huawei.com>
References: <CAMMESswPKPEGsr6zM4wD7oWgdVUcDF-RHeBEu_vfaxZWjJEh_w@mail.gmail.com> <C8C56405-379A-4164-B964-A1F1AC6FF68A@cisco.com> <CAMMESszFhenCN_A+L_9EPT6NHNoDxzijfGEy6jDfC+-+kmd7+A@mail.gmail.com> <572EDAC4-5A76-49BA-9602-0A7F09A4863A@cisco.com> <CAMMESswCnBURFk_XAmnO7kLWQwE0ha+qG14mpOf0E3pVjBr24g@mail.gmail.com>
In-Reply-To: <CAMMESswCnBURFk_XAmnO7kLWQwE0ha+qG14mpOf0E3pVjBr24g@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.209.217.54]
Content-Type: multipart/alternative; boundary="_000_25B4902B1192E84696414485F57268541367202Csjceml521mbschi_"
MIME-Version: 1.0
X-CFilter-Loop: Reflected
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/sEVPC2xxh5PZGL7weBAXC__Gwww>
Subject: Re: [Lsr] AD Review of draft-ietf-isis-reverse-metric-11
X-BeenThere: lsr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Link State Routing Working Group <lsr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/lsr>, <mailto:lsr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/lsr/>
List-Post: <mailto:lsr@ietf.org>
List-Help: <mailto:lsr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/lsr>, <mailto:lsr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 28 Sep 2018 23:20:05 -0000

Hi Naiming & Co-authors


Thanks for excellent work. Though, I reviewed the early versions of this draft could not follow all latest discussions/updates.

But just want to chime-in on part of the text posted here and the subsequent AD’s comment.

In-line [Uma]:
--
Uma C.

From: Lsr [mailto:lsr-bounces@ietf.org] On Behalf Of Alvaro Retana
Sent: Friday, September 28, 2018 2:45 PM
To: Naiming Shen (naiming) <naiming@cisco.com>;
Cc: lsr@ietf.org; Les Ginsberg (ginsberg) <ginsberg@cisco.com>;; draft-ietf-isis-reverse-metric@ietf.org; Christian Hopps <chopps@chopps.org>;; lsr-chairs@ietf.org
Subject: Re: [Lsr] AD Review of draft-ietf-isis-reverse-metric-11

On September 27, 2018 at 6:36:29 PM, Naiming Shen (naiming) (naiming@cisco.com<mailto:naiming@cisco.com>) wrote:

Naiming:

Hi!

Some answers below.  Please take a look and publish an update.

Thanks!

Alvaro.

...
Note that I read -11, but -12 was published in the interim -- so I'm
putting this comment up here.  The only change in -12 is the addition (in
the IANA Considerations section) of "a new registry for sub-TLVs of the
Reverse Metric TLV".  Why do we need this new registry?  The description
(in §2) of the use of this sub-TLV already references rfc5305 (where a TE
Default Metric sub-TLV is already defined), so it seemed somewhat natural
to me to simply reuse that sub-TLV here.  From the discussion on the list,
I understand the intent to "future proof", even if no other applications
come to mind.  If that is the path we want to go, then we'll need a
complete description of the new sub-TLV as well. [Some of my comments
bellow assume the existing sub-TLV from rfc5305.]

<NS> With the email exchange from you and Les, I assume I keep the same
as in the version 12 on this sub-TLV registry.
Yes.
However, I need you to add a description of the sub-TLV in this document.  Right now there is a reference to rfc5305, but as Les explained, even though these sub-TLVs look the same, they are really different.  When doing so, the references to rfc5305 (for the sub-TLV) would not be needed.

<NS> ok, modified. see diff.

The first MUST (below) sounds as if there must always be one of these sub-TLVs.  However, if other sub-TLVs are defined in the future, and this one is not needed, the MUST would make it mandatory.

OLD>

"This sub-TLV is optional, and MUST appear once at most in the Reverse Metric TLV, otherwise the entire Reverse Metric TLV MUST be ignore on the receive."

NEW>

This sub-TLV is optional, if it appears more than once then the entire Reverse Metric TLV MUST be ignored.



...


178   The Reverse Metric TLV is optional.  The Reverse Metric TLV may be
179   present in any IS-IS Hello PDU.  A sender MUST only transmit a single
180   Reverse Metric TLV in a IS-IS Hello PDU.  If a received IS-IS Hello
181   PDU contains more than one Reverse Metric TLV, an implementation
182   SHOULD ignore all the Reverse Metric TLVs and treat it as an error
183   condition..

[nit] The first two sentences sound redundant to me.

<NS> OK.



[major] The text above is not specific about which PDUs can include the
Reverse Metric TLV.  The text does say that it is optional and that it may
be in an IIH once...but it doesn't say anything about other PDUs.  The IANA
Considerations section contains the attributes to be included in the
registry, but those are not Normative.

<NS> Added other PDU MUST ignore it.
I saw the new text.  Thanks for being explicit about the TLV being used in an IIH.
Les also pointed to the following in ISO 10589: “TLVs received in a non-permitted PDU MUST be ignored.”  That means that the last sentence in the new text ("If an IS-IS node received of IS-IS Reverse Metric TLV in the PDU other than the IS-IS Hello PDU, this TLV MUST be ignored.”) is redundant.

<NS> ok, removed:-) but it used to be “.. may be optional present in …”,
changed to ".. MAY be optional present in …”, the formally define into
Hello PDU.

The text now reads:

   The Reverse Metric TLV MAY be optionally present in any IS-IS Hello

   PDU. A sender MUST only transmit a single Reverse Metric TLV in a

   IS-IS Hello PDU. If a received IS-IS Hello PDU contains more than

   one Reverse Metric TLV, an implementation MUST ignore all the Reverse

   Metric TLVs.



MAY and optional are the same thing, so the first sentence is redundant.

s/MAY be optionally/MAY





...


...
 418     4.  Security Considerations

420       The enhancement in this document makes it possible for one IS-IS
421       router to manipulate the IS-IS default metric and, optionally,
422       Traffic Engineering parameters of adjacent IS-IS neighbors.  Although
423       IS-IS routers within a single Autonomous System nearly always are
424       under the control of a single administrative authority, it is highly
425       RECOMMENDED that operators configure authentication of IS-IS PDUs to
426       mitigate use of the Reverse Metric TLV as a potential attack vector,
427       particularly on multi-access LANs.

[Uma]:  1. It’s good to refer IS-IS auth drafts 5304 and 5310 and analysis of both of these for  various deployment/operational security consideration with the karp document 7645
                 2. Also would suggest to remove “particularly on multi-access LANs” at the end. As metric change on (either side) can potentially impact routing decisions of the entire network.

[major] Authentication doesn't prevent a subverted router from using the reverse metric.

<NS> Right. But authentication is all IS-IS has.
:-(

[minor] I would love to see more text on what the threat really is.  I think that includes being able to divert traffic, sent traffic over less preferred paths, etc. -- in short, this extension can have a significant effect on routing decisions.

<NS> Right. But this is no different from any other IS-IS operations, such as changing local interface metric. reverse-metric
is no worse than those. all of them can change the routing behavior in the network.
True.  However, this is a new mechanism being defined in this document.  At least recognizing the potential effect and that it “is no worse” is important.
Note that the difference between, for example, locally changing the metric and the reverse-metric is that the local change is like shooting yourself on the foot.  The reverse-metric allows someone else to influence you.  That’s the reason form my comment below:


<NS> Make sense, but I think one of the main reason of this draft is to simplify
the operation of maintenance. If an operator (within the same local domain) not
only needs to raise a ‘reverse metric’ on the local device, but also to hunt down
all the other devices on the same LAN and to enable this feature one by one, that
would defeats the purpose of this important usage.

Even though this is sent over to neighbor to act, but most provider network those
devices are under the same admin domain.

Yeah…that’s the ongoing discussion with the Sec ADs/SecDir: what security guarantees are provided by the “same admin domain”?

Even in the same domain, a router could be subverted and cause problems.  Yes, if that happens then maybe the operators have bigger problems — which probably means that the “same domain” assumptions are not met.

In any case, we can wait for the SecDir/Sec AD to bring up the point before adding text...



 [major] Is there anything (besides authenticating) that can be done to mitigate the threat?  The text talks about local configuration having the ability to override a reverse metric -- but it seems like the intent is for the default to be "accept the reverse metric"..  Making the default be "don't accept reverse metrics" (i.e. having to explicitly configure the willingness to accept the new TLV) would help by only allowing the reverse metric where the operator knows it wants it.  Was there any discussion about this in the WG?

<NS> I don’t recall there is such a discussion. This document does not specify which is the default
behavior. An implemetation can use either opt-in or opt-out, which does not break the
inter-operability.
It would be great if the document took a stance on that.

<NS> although I would certainly want this mechanism to be enabled by default,
but I don’t want to express this in this document since there may generate some
security concern.

added in the “operational consideration” section that:

It is RECOMMENDED that the network operators disable the capability

when this Reverse Metric feature or mechanism is not being used in


the network where in the case an IS-IS implementation has this


mechanism enabled by default.


to see if you are ok with that.

NEW>

If an implementation enables this mechanism by default, it is RECOMMENDED that it be disabled by the operators when not explicitly using it.