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

"Acee Lindem (acee)" <acee@cisco.com> Fri, 28 September 2018 21:51 UTC

Return-Path: <acee@cisco.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 D7793130E66; Fri, 28 Sep 2018 14:51:03 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.956
X-Spam-Level:
X-Spam-Status: No, score=-14.956 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.456, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.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 48nwRqvSXvTu; Fri, 28 Sep 2018 14:51:00 -0700 (PDT)
Received: from rcdn-iport-4.cisco.com (rcdn-iport-4.cisco.com [173.37.86.75]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E22BC12DD85; Fri, 28 Sep 2018 14:50:59 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=66824; q=dns/txt; s=iport; t=1538171459; x=1539381059; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=ParIX5Bt36ukCxppxqtgndYtVkVS+boWCrqwW1v8UR0=; b=kZVZWfDIYweYPNtyXzDf79jxWs/y5RciRJD4fSrTfQxAKvz7VW6UYMWK 0R8lCeuEhv7NmAq0TV4svAggkT4Q7pFg1Hx8f2nwwZnCle5Y/viFGWvi9 YvuYwPJP/fDeC4im7D1/NUlkLE6kfV5QgyC1oTniEFVsbE7psx3iKu69r U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0AbAACAoa5b/40NJK1bGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAQGBVIEUd2Z/KAqDapRGgWgliGCOCoFmC4RsAheDZCE3FQE?= =?us-ascii?q?DAQECAQECbSiFOAEBAQQjVhACAQYCDgMDAQIhAQYDAgICHxEUCQgCBAENBYM?= =?us-ascii?q?hAYEdTAMViQybTYEuhzANglGIN4JHF4IAgREBJwwTgkyCVoF1ARIBBzgGEIJ?= =?us-ascii?q?LMYImAolAhDSFeYhhIywJAo0TgxsXgUeEWoMJhHaBKIh3g36IBwIRFIElMyJ?= =?us-ascii?q?kcXAVOyoBgkEJkEtvixqBH4EfAQE?=
X-IronPort-AV: E=Sophos;i="5.54,316,1534809600"; d="scan'208,217";a="458808782"
Received: from alln-core-8.cisco.com ([173.36.13.141]) by rcdn-iport-4.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Sep 2018 21:50:58 +0000
Received: from XCH-RTP-003.cisco.com (xch-rtp-003.cisco.com [64.101.220.143]) by alln-core-8.cisco.com (8.15.2/8.15.2) with ESMTPS id w8SLovkS005920 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Fri, 28 Sep 2018 21:50:58 GMT
Received: from xch-rtp-015.cisco.com (64.101.220.155) by XCH-RTP-003.cisco.com (64.101.220.143) with Microsoft SMTP Server (TLS) id 15.0.1395.4; Fri, 28 Sep 2018 17:50:57 -0400
Received: from xch-rtp-015.cisco.com ([64.101.220.155]) by XCH-RTP-015.cisco.com ([64.101.220.155]) with mapi id 15.00.1395.000; Fri, 28 Sep 2018 17:50:57 -0400
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Alvaro Retana <aretana.ietf@gmail.com>, "Naiming Shen (naiming)" <naiming@cisco.com>
CC: "Les Ginsberg (ginsberg)" <ginsberg@cisco.com>, "draft-ietf-isis-reverse-metric@ietf.org" <draft-ietf-isis-reverse-metric@ietf.org>, "lsr-chairs@ietf.org" <lsr-chairs@ietf.org>, "lsr@ietf.org" <lsr@ietf.org>, Christian Hopps <chopps@chopps.org>
Thread-Topic: AD Review of draft-ietf-isis-reverse-metric-11
Thread-Index: AQHUV3SMwJrdCFlyLE6QJDjZi0Kdl6UGO8CA
Date: Fri, 28 Sep 2018 21:50:57 +0000
Message-ID: <CD8BCB12-5675-462C-AF2F-10C311212E48@cisco.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-ms-exchange-messagesentrepresentingtype: 1
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.24.18.72]
Content-Type: multipart/alternative; boundary="_000_CD8BCB125675462CAF2F10C311212E48ciscocom_"
MIME-Version: 1.0
X-Outbound-SMTP-Client: 64.101.220.143, xch-rtp-003.cisco.com
X-Outbound-Node: alln-core-8.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/lsr/msVmWdEzWN3oX0XD3ZaUwm-sbDM>
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 21:51:04 -0000

Alvaro, Naiming,

Changes sound good. See one inline.

From: Alvaro Retana <aretana.ietf@gmail.com>;
Date: Friday, September 28, 2018 at 5:45 PM
To: "Naiming Shen (naiming)" <naiming@cisco.com>;
Cc: "Les Ginsberg (ginsberg)" <ginsberg@cisco.com>;, "draft-ietf-isis-reverse-metric@ietf.org"; <draft-ietf-isis-reverse-metric@ietf.org>;, "lsr-chairs@ietf.org"; <lsr-chairs@ietf.org>;, "lsr@ietf.org"; <lsr@ietf.org>;, Christian Hopps <chopps@chopps.org>;
Subject: Re: AD Review of draft-ietf-isis-reverse-metric-11
Resent-From: <alias-bounces@ietf.org>;
Resent-To: Yingzhen Qu <yingzhen.ietf@gmail.com>;, Christian Hopps <chopps@chopps.org>;, Acee Lindem <acee@cisco.com>;
Resent-Date: Friday, September 28, 2018 at 5:45 PM

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

You mean:

            s/MAY be optionally/May be

Thanks,

Acee





...


...
 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.

[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.