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

"Reshad Rahman (rrahman)" <rrahman@cisco.com> Tue, 24 November 2020 02:46 UTC

Return-Path: <rrahman@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 8706E3A09FC; Mon, 23 Nov 2020 18:46:14 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.719
X-Spam-Level:
X-Spam-Status: No, score=-7.719 tagged_above=-999 required=5 tests=[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_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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=Fx8o8Ke+; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=IcZCAjee
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 D-Q9ne0GqHaj; Mon, 23 Nov 2020 18:46:12 -0800 (PST)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 1CB403A09FF; Mon, 23 Nov 2020 18:46:12 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=28783; q=dns/txt; s=iport; t=1606185972; x=1607395572; h=from:to:cc:subject:date:message-id:references: in-reply-to:mime-version; bh=Hnn5dojHqSFC7aalXVAUc6eLalkuihMALCoWrY8Y7C4=; b=Fx8o8Ke+A+ysyx6BWt5/Wte+WyWVZ7lwX5e+u0UG3FTUkn9hoF4auug1 aBpIcltYh9MkLCqLhu8PsPg6086Zmd3YHS6er4TLfmJfk9cSPeN5DA5pf xqf08Ru0QY8kEQEl982Mge+lJwWSKK/RPgmW3fSoCc58VFsGKx0EOzseg k=;
X-IPAS-Result: A0DBAQCdcbxf/5pdJa1iHAEBAQEBAQcBARIBAQQEAQGBfgQBAQsBgSIvUQd0WS8uCoQzg0kDjTQmmQSCUwNUCwEBAQ0BASUIAgQBAYRKAheCFAIlNwYOAgMBAQEDAgMBAQEBBQEBAQIBBgRxhWEMhXIBAQEEEhEdAQE3AQ8CAQYCEQMBAhkICgICAjAdCAIEAQ0FHwODBAGBflcDLgEOkj2QawKBPIhodoEygwQBAQWBR0GDHRiCEAMGgTgBgnKDdoQMgksbgUE/gREnDBCCTz6CXQICAQGBew0igkgzgiyTcYchjBSRJAqCbokTkgsDH4MaihmFT48Dk1yLBJVcAgQCBAUCDgEBBYFqJCqBLXAVGksBgj5QFwINjh8LAhaDToUUhUR0AjUCBgEJAQEDCXyMboEPAYEQAQE
IronPort-PHdr: 9a23:Y+Zjsh02ArPuC5l4smDT+zVfbzU7u7jyIg8e44YmjLQLaKm44pD+JxWGv6dsgUPHG4LB5KEMh+nXtvXmXmoNqdaEvWsZeZNBHxkClY0NngMmDcLEbC+zLPPjYyEgWsgXUlhj8iK6PFRbXsHkaA6arni79zVHHBL5OEJ8Lfj0HYiHicOx2qiy9pTfbh8OiiC6ZOZ5LQ69qkPascxFjA==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-AV: E=Sophos;i="5.78,364,1599523200"; d="scan'208,217";a="591344977"
Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 24 Nov 2020 02:46:11 +0000
Received: from XCH-RCD-003.cisco.com (xch-rcd-003.cisco.com [173.37.102.13]) by rcdn-core-3.cisco.com (8.15.2/8.15.2) with ESMTPS id 0AO2kBfG026807 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Tue, 24 Nov 2020 02:46:11 GMT
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by XCH-RCD-003.cisco.com (173.37.102.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 23 Nov 2020 20:46:10 -0600
Received: from xhs-rtp-002.cisco.com (64.101.210.229) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 23 Nov 2020 21:46:10 -0500
Received: from NAM04-DM6-obe.outbound.protection.outlook.com (64.101.32.56) by xhs-rtp-002.cisco.com (64.101.210.229) with Microsoft SMTP Server (TLS) id 15.0.1497.2 via Frontend Transport; Mon, 23 Nov 2020 21:46:09 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=AcR2DrT6d9OC53ih9YUBl101ic9xQr3oa0iGiEL0pBM/bwzgSJSL0Lb2vntuLQkSHbvfEMWl8hHWS8JmlRpZx7SHNTapr+B2rTfbJp83abjA41MCbse1jbh/elBAnI50oK0Pts5SaoJbPXLGix0UoqWxpth8PY4NroKiIKVNedesEwmTCgoJZHqX1JYPDpPse/SjYjtKEAf9+sZM8pENMAobLOFgnD/qH3IaYU9fQb6qdXT0jnPk3OQP235F/IAs46WQhMifxgCBN42NX9F4zSeUzPee/N2qwoSNi4S9MzBgKylbdO55r0Q8XH1pNxxfimAhCZQUf2xOw5iS6hjUQg==
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=Hnn5dojHqSFC7aalXVAUc6eLalkuihMALCoWrY8Y7C4=; b=IM6aUSsfuCoPim0oabitP0z+d07cDsvopBSjzGdRXU7ZBbovQaoWqW4QGHvyMOEEP46YdojIpgdK8E2uOCMPvOdIy15ta9nCeZnvnwEiJz4hoHzHi0F6rntByw/1vHl0NqHMmc2xoEItU8o5UhUQoDvxwFkF/eWeKr/TTBq7Kpk81S/Dd8BVH7wAH+h9rWkslE/mt3sMhdDEjPbdfYtDEpvJ3HbMzjSmkAWq5+xGOpw7Kiw7moDMU2zESg+QjJKDY8Qm3WxwMWT3DD4XVfUr7mAfcN5nNKCiTWF9Ei+BJ8/tOKgBipqUAyek9xCczFMu3TUjtWGhvSM56X9YccLylA==
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=Hnn5dojHqSFC7aalXVAUc6eLalkuihMALCoWrY8Y7C4=; b=IcZCAjeea//qgJLiUSSRgCEU4hK6UBVW+RyVPUr+sIjevZ/xhGEOsGQeEOxRWnzv6pQm3/NW28gbxuRLq2XjYUQbJVk258xA4zeO7fKlQGhgSaJY8nkiZE9a9o8a5sOuPGywDqz01W+PrVuuq5zdkwlQxAbzxgBi4BhKVEaTT+o=
Received: from BN6PR11MB3875.namprd11.prod.outlook.com (2603:10b6:405:80::37) by BN6PR11MB1345.namprd11.prod.outlook.com (2603:10b6:404:49::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3589.20; Tue, 24 Nov 2020 02:46:08 +0000
Received: from BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::b847:4271:42ce:636b]) by BN6PR11MB3875.namprd11.prod.outlook.com ([fe80::b847:4271:42ce:636b%6]) with mapi id 15.20.3589.024; Tue, 24 Nov 2020 02:46:08 +0000
From: "Reshad Rahman (rrahman)" <rrahman@cisco.com>
To: "rtg-bfd@ietf.org" <rtg-bfd@ietf.org>, "draft-ietf-bfd-optimizing-authentication@ietf.org" <draft-ietf-bfd-optimizing-authentication@ietf.org>
CC: "'reshad@yahoo. com'" <reshad@yahoo.com>
Subject: Re: Shepherd writeup for draft-ietf-bfd-optimizing-authentication
Thread-Topic: Shepherd writeup for draft-ietf-bfd-optimizing-authentication
Thread-Index: AQHWQnykt4YmkJxKckmHBhtY2tCNm6nXPx4A
Date: Tue, 24 Nov 2020 02:46:08 +0000
Message-ID: <B75BBD48-4422-4798-89E0-8203FC3B231C@cisco.com>
References: <86B2BDA3-B8BC-4ABF-A073-30844E7254FD@cisco.com>
In-Reply-To: <86B2BDA3-B8BC-4ABF-A073-30844E7254FD@cisco.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
user-agent: Microsoft-MacOutlook/16.42.20101102
authentication-results: ietf.org; dkim=none (message not signed) header.d=none;ietf.org; dmarc=none action=none header.from=cisco.com;
x-originating-ip: [174.115.14.72]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 460ccf77-12ca-4c5c-6303-08d8902318d7
x-ms-traffictypediagnostic: BN6PR11MB1345:
x-microsoft-antispam-prvs: <BN6PR11MB1345C8829B024123627DF0D8ABFB0@BN6PR11MB1345.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:3968;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: mW1D/1vQZq6c7qYDwF5cuKPVyqj8slh6/9s/QjU9q1qKiKLLtnM6Mza1mhH30mNTcZ1DKE9Qr/hOojRTpO4nLsorKJOJYU4UboSwsWeTEF+jaVDKKuU+048okPTv12bBodf6g/vNtWeGUTPy1j0IanYEO6jjs7i71zWfxRNo7tXxAftg+A4W6323PIAQdoAumo4Amb+EebFtxgOtUI3E9WmIbeWHDfUiIM20NmUPJFltTx1hztl5MqV0lE4UkctQNWWaN4A7OAbIUx/CFJ+GKcgHg9s8+rUFUAwky5n5wgzaQ6JxvlgnllZLh2Cg6GKEp41KSa02N/p97ylpL7vy5eXUVjotXJc3TJrT99MK6ExurG66ohxlL3ciVrUfC6JofN7DRlR0enzKP5STNj6aww==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BN6PR11MB3875.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFS:(136003)(39860400002)(376002)(346002)(396003)(366004)(66476007)(8936002)(83380400001)(5660300002)(71200400001)(6512007)(166002)(64756008)(66446008)(86362001)(110136005)(26005)(66556008)(316002)(9326002)(4326008)(2906002)(33656002)(186003)(478600001)(6486002)(6506007)(8676002)(53546011)(2616005)(91956017)(966005)(36756003)(76116006)(66946007); DIR:OUT; SFP:1101;
x-ms-exchange-antispam-messagedata: dJTgfP3SYzWbTFnOqW05fCG2OKyNrCMHfOmrJ4KZhPESECkdcsJntoK7LCSwoL/0el77/mimrc4JqJedvzFCnmnOxHi1AwR22wZEZ/KQNEXH3nM6kyUtZWl2xTnR/k+akz1R7R8fZvLsxlkTyVTluSiHFJSA5VO3cGmfom/HKf2Rc/BkAcyv+9fhq9yc9uozQxoT/NicD9XA8hj7/2gVn4FUb7wg10loD9yQNo7YB58gv3vxahOfkJQO1edh8zpXuDjEaC8TLlNW5JuRh2rRkT9U18kjNFHVPpMIuWYBo65AVSMiyv3qnO4ZP3IBIqVmpS9pQFnoBF6wwpGtQ4HKD6XFF3RC3otAYNaaJBZ32EfsWMhsoPKXM1rwdPtVBQieqdijtimsrsgFnLa2T47WuDwAauvuFxTmHezAjfM1NFqlO6D8PmGKTqyzKEu2NrXuQDtyc+BsyNiudk3qqO97aerDTf9GyNJ+mlDGG/9G17cXeGVDFLrOMQe+SlYKdXAX4on8h5+3FS7kwTbItNgLckwwxnADZh51Do3XyNOyRNzcWSP/wmKNUWSPdzQJAnAgpn2E0Wc4HlL1NhG5WDtlg4IueZC7R5PxgGr+KzyIR3CgDE0safHduiioHauNqG50WpLT7J3pY1hl8MYpSg3k4nvCUwJW7hz1vrOk00bbNy9Qk0XxjTvqIhm2b3VfePAPhlnXhINdbQYtOV9Ntk+T7Ec8zPyis7EGxPo9rB885ikwsiwAf7RTnOskgFn1fVksRx9ePqHew0iuvTIfsOWtO/qKseR6qXiOs2ZQfFMILu+cgY7ZjEZh+2SUiVc6bLytqDiGZBST4I/Yp99kFkYS2chwNbCj77xGRCEWXl+gTXsAvRkNbk/+VsnXmLAbjM+QukRe/3vH+mRsu1mDZQeV8o4Sm2epg+/NhyLYEAlCWsxl72yoAe6uq34g3aLWZawYOI5HjYxTMWmcnJKXaKo2sEcEKc4wobazgPaPkbvt7fBAxLBY3/0pAeylhUvUaiYb
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_B75BBD484422479889E08203FC3B231Cciscocom_"
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: BN6PR11MB3875.namprd11.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 460ccf77-12ca-4c5c-6303-08d8902318d7
X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Nov 2020 02:46:08.6140 (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: q+WkkYpMm5D493T17E1lNTkSLOpK+ZB21Zw60O9HO4Qzdmq4VDsVodyp/6weQEQ0W1aCv8IDeqBjiVLYK8alpQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR11MB1345
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.13, xch-rcd-003.cisco.com
X-Outbound-Node: rcdn-core-3.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/UYwo0et27xwHUIbmwxtsns5dvQg>
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: Tue, 24 Nov 2020 02:46:15 -0000

Hi,

I have gone through rev-11 and my comments have been addressed. Thank you.

Regards,
Reshad.

From: Rtg-bfd <rtg-bfd-bounces@ietf.org> on behalf of "Reshad Rahman (rrahman)" <rrahman=40cisco.com@dmarc.ietf.org>
Date: Sunday, June 14, 2020 at 2:51 PM
To: "rtg-bfd@ietf.org" <rtg-bfd@ietf.org>, "draft-ietf-bfd-optimizing-authentication@ietf.org" <draft-ietf-bfd-optimizing-authentication@ietf.org>
Subject: Shepherd writeup for draft-ietf-bfd-optimizing-authentication

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
  *   Replace BFD frames by BFD packets or BFD control packets. Don’t use frames since RFC5880 uses packets.
  *   Use of term Null-authentication TLV. RFC5880 uses authentication section, doesn’t mention auth TLV.



Abstract:

Mention that this document updates RFC5880.



Requirements Language

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



Introduction

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

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.



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.

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…”



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



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.



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



Section 3

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



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.



Section 6.2

RFC5880 should be a normative reference.