Re: [OPSEC] Benjamin Kaduk's No Objection on draft-ietf-opsec-urpf-improvements-03: (with COMMENT)

"Sriram, Kotikalapudi (Fed)" <kotikalapudi.sriram@nist.gov> Sat, 31 August 2019 00:23 UTC

Return-Path: <kotikalapudi.sriram@nist.gov>
X-Original-To: opsec@ietfa.amsl.com
Delivered-To: opsec@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 9F8D9120089; Fri, 30 Aug 2019 17:23:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=nist.gov
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 Jh8XjMZ_RLHh; Fri, 30 Aug 2019 17:23:27 -0700 (PDT)
Received: from GCC02-DM3-obe.outbound.protection.outlook.com (mail-dm3gcc02on2127.outbound.protection.outlook.com [40.107.91.127]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 989C4120077; Fri, 30 Aug 2019 17:23:27 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=XkjBbYuhzPFocUOkA15376b56f19Y99F3nBsE8SNFcTsnPBZBHKpN18MxmOHLTC/zbOzbE8I6y1xvYg8vu18aXC+X2CZcl2Wd4i8Dnpmnn5VdckB78TsjHW/0TdJsZT8NuWpk+HKU6OlZK/VCsrehzvth7Bx6+B8LClV8rGUWHVZN+BLzClrve4zcb3op7PBdM09Uuyh9f/4OpYAWWWef30NgvwzkR/jhZymwaIofXpakiqVGiHYkBzjBnD4t4is45vkDJhRE6f34pwmTHGyLMA6JnfLba9WGsyjlbDIJcN1SZw1zo7ul5ret45eO4yij9qDpYzfsSMh1yKIHZdq/g==
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=FI6HrNm/WuZyPvXudasy2L6asQnomm4BCeGF+OZKj8c=; b=OFqjfcar2X96UuHxVd57vZeWs8Qm7xuY6xi6aCglXNlqPF8Oyud9rQlHHLSA1fpT9mE5DcgOe5J0Pc3fdhZDWYlAsh3C9IPKvDFFvlZ9IzCa4gGLJGyjCfnB1trKG+xtSFjuX2oVPrXHRsWzZHmqJAWfNbkLyJqN5aXRmNtyIlaWqnXjD3NqTY9uRCAtItk38zA4IIRUrSxAmnUnb72odobHPvcc8MUkP7mMddq3Qmx2wcAhbHIMKcjp7UGnVW1syXXBNROSw4SH1WuHUxVsgwN1UExVCIi6Dh6QnkwdCUT/jIs9PFSrj6gbMYiXvyE9whZAJgVg2duss0GeGCoWzQ==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nist.gov; dmarc=pass action=none header.from=nist.gov; dkim=pass header.d=nist.gov; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nist.gov; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FI6HrNm/WuZyPvXudasy2L6asQnomm4BCeGF+OZKj8c=; b=BhI6IeR6yNgA3BbGULzZG/Inc3YtYduck6DALYM2K19GTT0gJbwYrZc10GHI498VQG1zlg0dLs9WCRwtndGeRLpR5CNJebXJk8ynXG4YtZowCrk6Zv4mZbJeZUX5il/vY3jfiwV3tkPJAbhEH6D1XDhxrf5T8Qyce8klm/I6kQE=
Received: from BL0PR0901MB4563.namprd09.prod.outlook.com (52.135.47.206) by BL0PR0901MB3089.namprd09.prod.outlook.com (20.177.243.88) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2199.20; Sat, 31 Aug 2019 00:23:25 +0000
Received: from BL0PR0901MB4563.namprd09.prod.outlook.com ([fe80::b532:35b9:abd0:ee7e]) by BL0PR0901MB4563.namprd09.prod.outlook.com ([fe80::b532:35b9:abd0:ee7e%4]) with mapi id 15.20.2220.013; Sat, 31 Aug 2019 00:23:25 +0000
From: "Sriram, Kotikalapudi (Fed)" <kotikalapudi.sriram@nist.gov>
To: The IESG <iesg@ietf.org>, Benjamin Kaduk <kaduk@mit.edu>
CC: "draft-ietf-opsec-urpf-improvements@ietf.org" <draft-ietf-opsec-urpf-improvements@ietf.org>, Sandra Murphy <sandy@tislabs.com>, "opsec-chairs@ietf.org" <opsec-chairs@ietf.org>, Sandra Murphy <sandy@tislabs.com>, "opsec@ietf.org" <opsec@ietf.org>
Thread-Topic: Benjamin Kaduk's No Objection on draft-ietf-opsec-urpf-improvements-03: (with COMMENT)
Thread-Index: AQHVWHIsB4ZVbuMqYUKEVO70JjT76qcUZ2WK
Date: Sat, 31 Aug 2019 00:23:24 +0000
Message-ID: <BL0PR0901MB456306D79EAEEF2F0C670C7C84BD0@BL0PR0901MB4563.namprd09.prod.outlook.com>
References: <156642754067.25756.14564875013672898583.idtracker@ietfa.amsl.com>
In-Reply-To: <156642754067.25756.14564875013672898583.idtracker@ietfa.amsl.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=kotikalapudi.sriram@nist.gov;
x-originating-ip: [129.6.223.86]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: f680726a-d46c-408d-b9f2-08d72da97035
x-ms-office365-filtering-ht: Tenant
x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600166)(711020)(4605104)(1401327)(4618075)(2017052603328)(7193020); SRVR:BL0PR0901MB3089;
x-ms-traffictypediagnostic: BL0PR0901MB3089:
x-ms-exchange-purlcount: 2
x-microsoft-antispam-prvs: <BL0PR0901MB3089AC5C570AED740CE486AF84BC0@BL0PR0901MB3089.namprd09.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 014617085B
x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(39850400004)(136003)(376002)(346002)(366004)(189003)(199004)(53936002)(76116006)(14454004)(2906002)(6116002)(478600001)(3846002)(71200400001)(81156014)(66066001)(86362001)(966005)(81166006)(4326008)(110136005)(66476007)(66446008)(64756008)(6506007)(8676002)(8936002)(71190400001)(9686003)(55016002)(186003)(6306002)(229853002)(66556008)(5660300002)(99286004)(316002)(486006)(6246003)(102836004)(76176011)(26005)(25786009)(33656002)(7696005)(7736002)(446003)(52536014)(305945005)(66574012)(11346002)(14444005)(54906003)(6436002)(476003)(2171002)(256004)(74316002)(66946007); DIR:OUT; SFP:1102; SCL:1; SRVR:BL0PR0901MB3089; H:BL0PR0901MB4563.namprd09.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: nist.gov does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam-message-info: ySgsfjLT+KHCVEn3fxgF33TuG25puSKezTTDTo73uTJ8wdSUSyJwuVnv6ZQU5MwiifjIYobRXVdyX73RKjs0tUWZ4DuC9t0Aedwgrl6gKUj4kXGwT3ahdjZEYpfbR/wImApSjkgY8SwPuH8Ih3byrISqSLSpC8ewgx1Jz+rjeqV677kG0GBeR8N3wzQLevNiVez9rHQ/vtEJ6HjS49KMLAYVGQ5K40bCiTgC05Q3Yw1cIQmYgF73JnjSJ8Bzf155atPQPH/MOTmQc2qwRIvlBcSSYIpXNHQmZi+6P+Fsf0O8wG51ZIvrfBuFbFIWWg0hOqPgDLAV+C8wPWWjhnUcndKNQIuWxsgX2I7+NgND3Y6oIcj4/LhXJnxa3gMxiVt8DsLnnzQiwzPGxC2bFEwyN2PabC2N+vDT/TytxTqvvGo=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: nist.gov
X-MS-Exchange-CrossTenant-Network-Message-Id: f680726a-d46c-408d-b9f2-08d72da97035
X-MS-Exchange-CrossTenant-originalarrivaltime: 31 Aug 2019 00:23:24.9575 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 2ab5d82f-d8fa-4797-a93e-054655c61dec
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: ZbF0eptIuaZmokV8uZGpjgrvJlL6yz36I01CvwVfpV8RjybAEix7eOFeDptA7ipG/WjXGyND5/KyfCUJNuOzeQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL0PR0901MB3089
Archived-At: <https://mailarchive.ietf.org/arch/msg/opsec/rQt9mmDHIu5cRx_qNmn05EHOoWU>
Subject: Re: [OPSEC] Benjamin Kaduk's No Objection on draft-ietf-opsec-urpf-improvements-03: (with COMMENT)
X-BeenThere: opsec@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: opsec wg mailing list <opsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/opsec>, <mailto:opsec-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/opsec/>
List-Post: <mailto:opsec@ietf.org>
List-Help: <mailto:opsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/opsec>, <mailto:opsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 31 Aug 2019 00:23:31 -0000

Hi Benjamin,

Thank you for your comments. Sorry about the delay in replying.
We have uploaded a new version and have included changes
reflecting your comments. Please see:
https://tools.ietf.org/rfcdiff?url2=draft-ietf-opsec-urpf-improvements-04.txt  
Please also see responses to your comments inline below. 

>Thank you for this well-written document!  It will be beneficial to the
>security of the internet as a whole to have effective BCP38 protections
>applied more widely.
>
>I'm happy to see the discussion about Algorithm A vs. B as recommended
>default, prompted by Alvaro's ballot position.  On the face of things I
>do share his concern, as having "safe defaults" in the sense of not
>dropping legitimate traffic seems pretty compelling, but I do recognize
>that Algorithm A produces a stricter check, and that is in a different
>sense "more safe".  I don't think I have much to add to the discussion,
>though, so I'll continue to watch it play out.  (Perhaps some of the
>discussion could make it into the security considerations of this
>document once things get settled, though.)
>

Yes, what you are saying is true as well … “Algorithm A produces a stricter check, 
and that is in a different sense "more safe".”  
Please see if Section 3.7.1 is sufficient for now from your perspective.
For an AS operator who is confident of their scenario, 
or willing to make a possible trade-off, I think the document 
is not stopping them from using Algorithm A.  
 
>Section 2.1
>
>   dropped.  The ACLs for the ingress/egress filters need to be
>   maintained to keep them up to date.  Updating the ACLs is an operator
>   driven manual process, and hence operationally difficult or
>   infeasible.
>
>nit: hyphenate "operator-driven"
>

Done.

>Section 2.2
>
>In Figure 1, I'm having a hard time understanding why feasible-path uRPF
>fails for case (2).  Or is the intent of the caption and terminology
>note from above only to say that it fails for at least one of the
>enumerated cases?  (On the other hand, there's a decent chance that the
>lack of comprehension is entirely on my end...)
>

Actually, both enumerated cases fail at AS2.
Feasible-path uRPF is applied per interface; it does not matter
what other prefixes were received on other interfaces
(the same origin AS or not). AS2 rejects IP packet with SA in P2 on the
interface with AS1. Further, AS2 also rejects SA in P1 on
on the interface with AS3 (for IP packets received from AS1 via AS3). 
Note that AS2 has not heard a BGP update for prefix P1 
on the AS2-AS3 BGP session. 


>Section 2.3
>
>   can be described as follows.  In Scenario 2 (described above,
>   illustrated in Figure 2), it is possible that the second transit
>   provider (ISP-b or AS3) does not propagate the prepended route for
>   prefix P1 to the first transit provider (ISP-a or AS2).  This is
>   because AS3's decision policy permits giving priority to a shorter
>   route to prefix P1 via a lateral peer (AS2) over a longer route
>   learned directly from the customer (AS1).  In such a scenario, AS3
>   would not send any route announcement for prefix P1 to AS2 (over the
>
>I expect this is just my lack of familiarity here, but does the decision
>policy "giving priority" to shorter routes vs customer routes mean that
>it won't propagate the customer advertisement at all or just that it
>won't route traffic that way?
>

Yes, under this policy ("giving priority" to shorter routes), 
AS3 won’t propagate the customer advertisement for P1 towards AS2
since it selects the “shorter” route via AS2.
It will route traffic with destination address in P1 towards AS2,
and the traffic will reach AS1 via AS2. 
That is how depref with AS prepends is supposed to work
(except when AS2's policy is to prefer customer route).


>Section 3.2
>
>   o  Additionally, from the routes it has learned from customers, a
>      non-stub AS SHOULD announce at least one route per origin AS to
>      each of its transit provider ASes.
>
>What are the security consequences of this?  If, say, an AS only get
>very specific prefixes with very short paths from a customer and is now
>"forced" to advertise at least one of them by these practices, can that
>have a negative impact on routing?  Would prepending itself in the path
>be a usable mitigation?
>

If you are thinking that the path length for the more specific route 
will be shorter, that is not the case. The AS follows the normal BGP
protocol process and adds its own ASN in the path.
Please let me know if I misunderstood the question.

>Section 3.4
>
>nit: there's perhaps room for harmonization of language between step (3)
>here and step (1) of Algorithm A.

I think I understand what you are thinking.  I did a little harmonizing (please see the diff). 
I feel that full harmonizing is not worth the effort.  

>
>   4.  Create the set of all unique prefixes for which routes exist in
>       Adj-RIB-Ins of all lateral peer and transit provider interfaces
>
>Is the intention that "lateral peer and transiti provider interfaces" is
>equivalent to "all interfaces that are not directly-connected customer
>interfaces"?

Yes.

>Section 3.6.1
>
>   The techniques described in this document require that there should
>   be additional memory (i.e., TCAM) available to store the RPF lists in
>
>nit: TCAM isn't listed as "well-known" at
>https://www.rfc-editor.org/materials/abbrev.expansion.txt , so we
>probably have to expand it.

Done.

>
>   The following table shows the measured customer cone sizes for
>   various types of ISPs [sriram-ripe63]:
>
>The table contents make it seem like these are not "per-type" data, but
>rather specific data from hopefully representative samples.  In
>particular...
>
>   +---------------------------------+---------------------------------+
>   | Type of ISP                     | Measured Customer Cone Size in  |
>   |                                 | # Prefixes (in turn this is an  |
>   |                                 | estimate for RPF list size on   |
>   |                                 | line card)                      |
>   +---------------------------------+---------------------------------+
>   | Very Large Global ISP           | 32392                           |
>   | ------------------------------- | ------------------------------- |
>   | Very Large Global ISP           | 29528                           |
>
>... perhaps these should be #1 and #2 to disambiguate.
>

Done.

>Section 3.7
>
>       *  In general, loose uRPF method for SAV SHOULD be applied on
>          lateral peer and transit provider interfaces.  However, for
>          lateral peer interfaces, in some cases an operator MAY apply
>          EFP-uRPF method with Algorithm A if they deem it suitable.
>
>Since step (1) of Algorithm A explicitly says "of customer interfaces",
>we probably need a little bit more text here to say what it means to use
>Algorithm A for lateral peer and/or transit provider interfaces.  (Or,
>perhaps, some reworking of the text describing Algorithm A, but that
>seems like a more invasive change.

The recommendation now read as follows in the updated draft:
       *  Loose uRPF method SHOULD be applied on lateral peer and
          transit provider interfaces.
The mention of Algorithm A for lateral peer is moved to Section 3.7.1
where is says:
   On a lateral peer interface, an ISP may choose to apply the EFP-uRPF
   method with Algorithm A (with appropriate modification of the
   algorithm).  This is because stricter forms of uRPF (than the loose
   uRPF) may be considered applicable by some ISPs on interfaces with
   lateral peers.

>
>Section 4
>
>This is rather related to Alvaro's Discuss, but how is an AS operator to
>know what type of peer and the nature of customer cone scenario that
>applies to a given case?

The paragraph now reads:

   The security considerations in BCP 38 [RFC2827] and BCP 84 [RFC3704]
   apply for this document as well.  In addition, if considering using
   EFP-uRPF method with Algorithm A, an ISP or AS operator should be
   aware of the applicability considerations and potential
   vulnerabilities discussed in Section 3.7.1.

Section 3.7.1 is new and talks about applicability details regarding Algorithm A.

>
>Also, is there a way to know what the probability of dropping legitimate
>data packets is other than experimenting and waiting for customer
>complaints?

Such modeling is tricky. If the ISP knows that a customer prefix is missing 
in their RPF list, they would simply add it rather than estimate that it is 
x% of the overall traffic. We tried to measure the frequency of
use of NO_EXPORT from Routeviews data. Only one Routeviews collector (out of 
40 overall) located at Oregon showed some updates with NO_EXPORT. 
NO_EXPORT is hard to measure because it naturally does not propagate 
beyond the first ISP. The collector has to be peering with ASes
closer to the edges of the Internet which is rare it appears.  

>
>(I guess it's probably okay, given the references, to not bother
>explicitly saying "erroneously dropping legitimate packets is bad".)
>

Thanks again for your very helpful comments.

Sriram