Re: Shepherd writeup for draft-ietf-bfd-optimizing-authentication

"Acee Lindem (acee)" <acee@cisco.com> Thu, 02 July 2020 09:45 UTC

Return-Path: <acee@cisco.com>
X-Original-To: rtg-bfd@ietfa.amsl.com
Delivered-To: rtg-bfd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 922753A088A; Thu, 2 Jul 2020 02:45:22 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.597
X-Spam-Level:
X-Spam-Status: No, score=-9.597 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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 header.b=a/yXN0Eu; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=uBYSF/iO
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 Qfi9TI3iuETl; Thu, 2 Jul 2020 02:45:19 -0700 (PDT)
Received: from rcdn-iport-1.cisco.com (rcdn-iport-1.cisco.com [173.37.86.72]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8456B3A0883; Thu, 2 Jul 2020 02:45:19 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=70077; q=dns/txt; s=iport; t=1593683119; x=1594892719; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=LEx1nYkQ7OT4kI0gtgshT+Ft57FQ0MpGB9IGLPN9bzg=; b=a/yXN0EuLev44rGg4BMCpXKGC7BnPhNCeQeQgcMXcr1O3K/UkH2/xh5S EeVB4ghAi+LVYXI53JWAbC/6fHfL3xoqRlHLF6CKuCyg38ESXVvbO2iV4 6ah0eCf1JaqMhnuypVzOmmiStYmTWfgX1EDyFGRPXvfB0PvMCcAfjx3C0 k=;
IronPort-PHdr: 9a23:1vMvHRUyQg9XSqfMLDY16TLYU5XV8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSBNyHuf1BguvS9avnXD9I7ZWAtSUEd5pBH18AhN4NlgMtSMiCFQXgLfHsYiB7eaYKVFJs83yhd0QAHsH4ag7dp3Sz6XgZHRCsfQZwL/7+T4jVicn/3uuu+prVNgNPgjf1Yb57IBis6wvLscxDiop5IaF3wRzM8XY=
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0AeAAD+q/1e/5RdJa1gGQEBAQEBAQEBAQEBAQEBAQEBARIBAQEBAQEBAQEBAQGBeQEBAQEBAQsBgSIvUQdvWC8sCoQng0YDjUuKAY5ZglIDVQsBAQEMAQElCAIEAQGERwIXggQCJDcGDQECAwEBCwEBBQEBAQIBBgRthVsMhW4BAQEBAxIRChMBASQTAQ8CAQYCDgMDAQIZCAEGAwICAh8RFAkIAgQBDQUfA4MEAYF+TQMuAQ6SKpBoAoE5iGF2gTKDAQEBBYFGQYMoDQuCDgMGgTgBgmiHNIJLGoIAgREnHIJNPoIaQgIDAYF7DQkZgkczgi2PJ4MThkOLO5AJTQqCXIhLjBCEbwMdgnOJMIUijViRWYocglmRawIEAgQFAg4BAQWBaSOBVnAVGksBgj5QFwINjh4LAhaDToUUhUEBdDcCBgEHAQEDCXyMQoEPAYEQAQE
X-IronPort-AV: E=Sophos;i="5.75,304,1589241600"; d="scan'208,217";a="783505484"
Received: from rcdn-core-12.cisco.com ([173.37.93.148]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 02 Jul 2020 09:45:17 +0000
Received: from XCH-RCD-002.cisco.com (xch-rcd-002.cisco.com [173.37.102.12]) by rcdn-core-12.cisco.com (8.15.2/8.15.2) with ESMTPS id 0629j1YK009737 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 2 Jul 2020 09:45:17 GMT
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by XCH-RCD-002.cisco.com (173.37.102.12) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Jul 2020 04:45:08 -0500
Received: from xhs-rtp-001.cisco.com (64.101.210.228) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 2 Jul 2020 05:45:07 -0400
Received: from NAM11-CO1-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-001.cisco.com (64.101.210.228) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Thu, 2 Jul 2020 05:45:07 -0400
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=levJ1yxZ5Aq1hqTfuRLckzbvmohM84N7ge+THnSbwRSobHXLa9fS6KnBldygm6j8GsxdOHdMpwSj5lSKcPccQO3nfrXbhO8RqL9KXbdyhyOuivBEVudxU0iSWMWbG5GM2Jwuj1Zu1AdleQu+K/KssSCjADBvRpzWPsJ0mmVbjT9/rAlEwVmXH1W7vZLaMlJK2zyMH4iLIRDExhSURM86GDcGuT1tNXuNlJmsnBvfM3X22PMI7aZ4MtHfVXNEOvuKdMrznetVU4KHXfB58XfQNaeq80B3h9ooTVLObyeAhf6l4vy6LAopkuPGPzNfEsOrqaBWE5edtXEAoX6Ew/LmbQ==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LEx1nYkQ7OT4kI0gtgshT+Ft57FQ0MpGB9IGLPN9bzg=; b=HFtXcU+QYxVRrZezAyKPyaNhPAsAc2fQgFpcenIC7N/IqWQgVzIwMUi7EukVmmnfF7lJ5L7js2rBXd5GCW4lL0goU0AdmU1sAx+d64ZprWRsHcM6xm9E3zU5O51qalR7dGiYdkkrCE5movGOZtZj0IOVV+grONWi3Nqf96ICbeM2X1F73tb0Mww2sX5M6tuwKbOFbS7ACqbaSfhoNdGtpbde/dHEOI0RNixYmT6fnNb7mKzaFs8Y60NpOxNNW23RI3ixYqACpOXkhRp0DBm8KimPf1U6ERslnrotm1SsNtB3HI10u+pDKazzHct3Cvyr70hTmyJbW3kN8HRABlOVWg==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=LEx1nYkQ7OT4kI0gtgshT+Ft57FQ0MpGB9IGLPN9bzg=; b=uBYSF/iOW5zwC39SWbqgqQgSD60rp6I6pSKoGWx+Ge/mo5M1vIUhdbl8YYnPtVPfLotZDXrlqOwFyZyyo0Jf+lOKtmBbwJEVPiR/lEEUZP3rvwz6r0Rj47ukxU4uYmofWGFlaAvCHNhn1E0QKuvH+j0BTSz/VnCINvpEKl/bMHM=
Received: from BYAPR11MB2887.namprd11.prod.outlook.com (2603:10b6:a03:89::27) by BYAPR11MB3096.namprd11.prod.outlook.com (2603:10b6:a03:8f::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3153.20; Thu, 2 Jul 2020 09:45:05 +0000
Received: from BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b]) by BYAPR11MB2887.namprd11.prod.outlook.com ([fe80::70a6:bb5b:16b:4f9b%7]) with mapi id 15.20.3153.022; Thu, 2 Jul 2020 09:45:04 +0000
From: "Acee Lindem (acee)" <acee@cisco.com>
To: Mahesh Jethanandani <mjethanandani@gmail.com>, "Reshad Rahman (rrahman)" <rrahman@cisco.com>
CC: "rtg-bfd@ietf. org" <rtg-bfd@ietf.org>, "draft-ietf-bfd-optimizing-authentication@ietf.org" <draft-ietf-bfd-optimizing-authentication@ietf.org>
Subject: Re: Shepherd writeup for draft-ietf-bfd-optimizing-authentication
Thread-Topic: Shepherd writeup for draft-ietf-bfd-optimizing-authentication
Thread-Index: AQHWQnykt4YmkJxKckmHBhtY2tCNm6jzyViAgAAZi4A=
Date: Thu, 02 Jul 2020 09:45:04 +0000
Message-ID: <572C0671-D48E-44E8-87E4-BE1130A6CC3E@cisco.com>
References: <86B2BDA3-B8BC-4ABF-A073-30844E7254FD@cisco.com> <8C54F0A2-0D11-4C50-B94F-19E6381365AE@gmail.com>
In-Reply-To: <8C54F0A2-0D11-4C50-B94F-19E6381365AE@gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.38.20061401
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [136.56.133.70]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 62206304-16ab-4c79-a3b4-08d81e6c991c
x-ms-traffictypediagnostic: BYAPR11MB3096:
x-ms-exchange-transport-forked: True
x-microsoft-antispam-prvs: <BYAPR11MB3096C6FE8BA97F6EDC5EFC85C26D0@BYAPR11MB3096.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:2512;
x-forefront-prvs: 0452022BE1
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: X7O5VhWHUZNkDFhKdpXebJ50DHvvYEyg/ATSLNfDqUMKcKOi2Mq+eh8bX2yKOEqz2RYKekS6h6HiIpCktVAHaWo+tLHF354PbKUfjDXxUliiBi8HsujKNLWaQ65zc1CKd98cMZ4ATKdz5J+v0kfILqKBNWpRcOAeBOxBkwujE9l8HMo5QvO03S8DDQn/7s09owNMH9gJiFZLD4Xi8yqZrmnrP84O0etQqZ9AwjTqNlhb+WFST04s5eRTxKuATRld4jOCiv2lA2jDwMN70nl4ZSK9hqDUMzqEB/NxCI8/rYpI980TLsjxneGF695YExUykHVT0bUQSNsPibOuDASy7jQ5SUTAmL4gZrGmM5HmRufP9zKUj8recDjsbKJy2ZHdJgzT50DxsZdgxdsV0TrVAw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB2887.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(39860400002)(396003)(366004)(346002)(376002)(136003)(186003)(9326002)(36756003)(26005)(53546011)(2616005)(6506007)(6512007)(166002)(86362001)(4326008)(966005)(478600001)(8936002)(33656002)(6636002)(83380400001)(54906003)(110136005)(316002)(8676002)(6486002)(66556008)(66946007)(76116006)(2906002)(66476007)(66446008)(5660300002)(71200400001)(64756008)(579004); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: XBM0Kw87cFDtF8MZzKecbmfs4pKRIkDA73yMhSQTKkXofm+5qhVClrOjaEv8QtsljMIBjiminc7LTFkHMpKl0HSuyACtlzeAukXDiR0qS1N6YnwaMKvgOn27Wkr1RJgRU8QbTOAcDmbbuwBuyTqUuht/yqD0J23scgu6d+T11WCCBwLQK0awFK3Y8cXJz1H4z8LQ7/6L3xMRK8XE5ANAt5PFz33lnInEAEO5rED4IIfQD16tyJxBLvY7ji6L4xMK0ZxCSsxaxhgWZsZfiVJVuyMIPkFxfWgPP83PVl6RMY/8pd7kj8inLOSDey/qEJGh2X82iYc/3hMByYVCOMEMcv4oa6zxBWXDAj8YSbcrqL1xFYhNUqx5OBg6QqNKGU3f7sL6TMz3XzL3IH+9gY6XxkknhM3lUP2hb17VX9A8Aiuxg03m2gz1VlbLb/QzODQ+sqxH399YTBz42lf1PRsMenW1OVYsZ56qsyPx9Mu/wA8=
Content-Type: multipart/alternative; boundary="_000_572C0671D48E44E887E4BE1130A6CC3Eciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BYAPR11MB2887.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 62206304-16ab-4c79-a3b4-08d81e6c991c
X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Jul 2020 09:45:04.4998 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ybLNZFC90djHDCPYMtZJwc5EAwuQoZ2QBlhih9Y9FYENfLiyTSrFtHhu8eYr2I1W
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3096
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.12, xch-rcd-002.cisco.com
X-Outbound-Node: rcdn-core-12.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/eNdVmb58gDQY6YSHslqS3o_3up4>
X-Mailman-Approved-At: Thu, 02 Jul 2020 02:46:08 -0700
X-BeenThere: rtg-bfd@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "RTG Area: Bidirectional Forwarding Detection DT" <rtg-bfd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-bfd/>
List-Post: <mailto:rtg-bfd@ietf.org>
List-Help: <mailto:rtg-bfd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 02 Jul 2020 09:45:23 -0000

Hi Mahesh,

From: Rtg-bfd <rtg-bfd-bounces@ietf.org> on behalf of Mahesh Jethanandani <mjethanandani@gmail.com>
Date: Thursday, July 2, 2020 at 12:14 AM
To: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
Cc: "rtg-bfd@ietf. org" <rtg-bfd@ietf.org>, "draft-ietf-bfd-optimizing-authentication@ietf.org" <draft-ietf-bfd-optimizing-authentication@ietf.org>
Subject: Re: Shepherd writeup for draft-ietf-bfd-optimizing-authentication

Hi Reshad,

Happy Canada day!

Thanks first of all for the shepherd writeup. Please see my comments/questions inline.

@Ashesh, please comment on the change to the table.


On Jun 14, 2020, at 11:50 AM, Reshad Rahman (rrahman) <rrahman@cisco.com<mailto:rrahman@cisco.com>> wrote:

Authors, WG,

The writeup is available at https://datatracker.ietf.org/doc/draft-ietf-bfd-optimizing-authentication/

For convenience I’ve copied the comments on the document below.

Regards,
Reshad.

General:

·         Updates RFC5880 missing from title page

Hmm. How does one add the “Updates” tag?

In xml2rfc, here is an example:

<rfc category="std" ipr="trust200902" docName="draft-ietf-ospf-ospfv3-lsa-extend-20.txt" updates="5340, 5838">

Thanks,
Acee




·

·         Replace BFD frames by BFD packets or BFD control packets. Don’t use frames since RFC5880 uses packets.

Done.



·

·         Use of term Null-authentication TLV. RFC5880 uses authentication section, doesn’t mention auth TLV.

Ok. Have changed all references of “NULL Auth TLV” to “NULL Auth Type”.



·

Abstract:
Mention that this document updates RFC5880.

Done.



Requirements Language
Please put this is a separate (sub)section later, e.g. after introduction.

Done.



Introduction
First paragraph: s/is computationally intensive process/is a computationally intensive process/

Done.


Split first sentence into 2, e.g.
   Authenticating every BFD [RFC5880] packet with a Simple Password, or
   with a MD5 Message-Digest Algorithm [RFC1321], or Secure Hash
   Algorithm (SHA-1) algorithms is a computationally intensive process.
   This makes it difficult, if not impossible, to authenticate every packet,
   particularly at faster rates.

Done.



2nd paragraph: “… only BFD frames that signal a state change in BFD be authenticated.” State change is not 100% correct since P/F/D bit changes aren’t state changes (as mentioned in more detail below in section 2 comments). What about this instead: “State change, a demand mode change (to D bit) or a poll sequence change (P or F bit change) in a BFD packet are categorized as a significant BFD change. This document proposes that all BFD control packets which signal a significant BFD change MUST be authenticated if the session’s bfd.AuthType is non-zero. Other BFD control packets MAY be transmitted and received without the A bit set.” If you do use “significant BFD change”, add it to terminology section.

Done.


s/non-state change frame/BFD control packets without state or D/F/P bit change/, e.g.
“To detect a Man In the Middle (MITM) attack, it is also proposed that BFD control packets without a significant change be authenticated occasionally.  The interval of these control packets…”

Done.



Section 2
POLL and DEMAND are NOT strictly states. POLL refers to “Poll sequence” as specified in section 6.5 of RFC5880. DEMAND refers to “Demand mode” as specified in section 6.6 of RFC5880. In the table, the POLL entry refers to polling sequence enabled and in any BFD state. Likewise, the DEMAND entry refers to Demand mode. This means that a session in UP state, in demand mode and polling sequence enabled will match 3 entries in that table. It’s a bit confusing. Here’s what I suggest instead:

1.     Take POLL out of the table. Add a paragraph mentioning that if P or F bit changes value, the packet MUST be authenticated

2.     Take DEMAND out of the table. Add a paragraph mentioning that if D bit changes value, the packet MUST be authenticated

Have made the change as follows. I am hoping Ashesh can comment on it.

The significant changes for which authentication is being suggested
   include:

          Read   : On state change from <column> to <row>
          Auth   : Authenticate frame
          NULL   : No Authentication. Use NULL AUTH Type.
          n/a    : Invalid state transition.
          Select : Most packets NULL AUTH. Selective (periodic)
                   packets authenticated.
         +--------+-----------+---------+---------+
         |            | DOWN   | INIT   | UP     |
         +--------+--------+--------+--------+
         | DOWN   |  NULL  |  Auth  |  Auth  |
         +--------+--------+--------+--------+
         | INIT   |  Auth  |  NULL  |  n/a   |
         +--------+--------+--------+--------+
         | UP     |  Auth  |  Auth  | Select |
         +--------+--------+--------+--------+

                       Optimized Authentication Map

   If P or F bit changes value, the packet MUST be authenticated.  If
   the D bit changes value, the packet MUST be authenticated.




2.

Another comment on the table. The text says it should be read as state change from column to row. Column INIT to row UP is n/a whereas column UP to row INIT is Auth. INIT to UP is a valid transition, UP to INIT is not (has to go through DOWN first). So I think those entries should be reversed in the table.

Done.



Last paragraph: CC frames is not defined in BFD, use “control packets” instead?

Done.



Section 3
Sequence number mentions “as defined in [RFC5880]”. Suggest mentioning bfd.XmitAuthSeq

Done.



Security Considerations.
I believe this needs to be beefed up:

1.     Use of sequence number for non-authenticated frames. Secure sequence numbers even better.

2.     Mention (again) that non-authenticated BFD packets which have a significant change (state, D/F/P) are dropped. So if someone injects a non-authenticated packet with Down state to take down the session, that won’t work.

The Security Considerations section now reads as follows:

  The approach described in this document enhances the ability to
   authentication a BFD session by taking away the onerous requirement
   that every frame be authenticated.  By authenticating packets that
   affect the state of the session, the security of the BFD session is
   maintained.  In this mode, packets that are a significant change but
   are not authenticated, are dropped by the system.  Therefore, a
   malicious user that tries to inject a non-authenticated packet, e.g.
   with a Down state to take a session down will fail.  That combined
   with the proposal of using sequence number defined in Secure BFD
   Sequence Numbers [I-D.ietf-bfd-secure-sequence-numbers] further
   enhances the security of BFD sessions.




2.

Section 6.2
RFC5880 should be a normative reference.

Done.

Mahesh Jethanandani
mjethanandani@gmail.com<mailto:mjethanandani@gmail.com>