Re: [sidr] Route Leaks and BGP Security

Terry Manderson <terry@terrym.net> Tue, 22 November 2011 05:52 UTC

Return-Path: <terry@terrym.net>
X-Original-To: sidr@ietfa.amsl.com
Delivered-To: sidr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A510A1F0C9B for <sidr@ietfa.amsl.com>; Mon, 21 Nov 2011 21:52:25 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.599
X-Spam-Level:
X-Spam-Status: No, score=-3.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_LOW=-1]
Received: from mail.ietf.org ([12.22.58.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id MrTpIzOh8OYy for <sidr@ietfa.amsl.com>; Mon, 21 Nov 2011 21:52:24 -0800 (PST)
Received: from mail-gx0-f172.google.com (mail-gx0-f172.google.com [209.85.161.172]) by ietfa.amsl.com (Postfix) with ESMTP id 85D1A1F0C7E for <sidr@ietf.org>; Mon, 21 Nov 2011 21:52:24 -0800 (PST)
Received: by ggnp4 with SMTP id p4so915307ggn.31 for <sidr@ietf.org>; Mon, 21 Nov 2011 21:52:23 -0800 (PST)
Received: by 10.236.128.167 with SMTP id f27mr10432248yhi.125.1321941142980; Mon, 21 Nov 2011 21:52:22 -0800 (PST)
Received: from [192.168.1.105] (c114-77-161-74.fitzg3.qld.optusnet.com.au. [114.77.161.74]) by mx.google.com with ESMTPS id q5sm18042287yhm.7.2011.11.21.21.52.19 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 21 Nov 2011 21:52:22 -0800 (PST)
Mime-Version: 1.0 (Apple Message framework v1084)
Content-Type: text/plain; charset="us-ascii"
From: Terry Manderson <terry@terrym.net>
In-Reply-To: <CAL9jLaYNWge-tEo9XQeLqgOid72C2osdTHZdEZJzRHD8+M-Gnw@mail.gmail.com>
Date: Tue, 22 Nov 2011 15:52:16 +1000
Content-Transfer-Encoding: quoted-printable
Message-Id: <C629001C-E424-4484-8081-6A4542CB120F@terrym.net>
References: <20111117040124.18551.47190.idtracker@ietfa.amsl.com> <0863194F-7564-40A9-BB73-ABF8BB97C3AB@tcb.net> <CAL9jLaZvCe2U6Y=BbZxsfF+BDOqQuV18Ac6N_6Fxxc=Cpms1jg@mail.gmail.com> <7D344AD5-B101-4BC1-8522-2259DB9853E4@castlepoint.net> <CAL9jLaY9rNCuLqozgbD7r03U8ZHB_n6MLmFrpVziPM2NNAuqnw@mail.gmail.com> <C054161F-43D5-4292-8A0F-7B386C76BABF@terrym.net> <CAL9jLaYNWge-tEo9XQeLqgOid72C2osdTHZdEZJzRHD8+M-Gnw@mail.gmail.com>
To: Christopher Morrow <morrowc.lists@gmail.com>
X-Mailer: Apple Mail (2.1084)
Cc: sidr wg list <sidr@ietf.org>
Subject: Re: [sidr] Route Leaks and BGP Security
X-BeenThere: sidr@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Secure Interdomain Routing <sidr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sidr>, <mailto:sidr-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/sidr>
List-Post: <mailto:sidr@ietf.org>
List-Help: <mailto:sidr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sidr>, <mailto:sidr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 22 Nov 2011 05:52:25 -0000

On 22/11/2011, at 3:13 PM, Christopher Morrow wrote:

> 
> 'if it is intended' ... means:
>  a) "is intended to be seen at the vantage point it was observed at"
> (3 as-hops away)
>  b) "with the as-path it shows up with" (isp1 - as1 - isp2 - me)
>  c) something else?
> 
> it's not clear what you meant, I'll assume b though...
> 

to be specific, "it was intended to be seen at the vantage point it was observed at, and in the form presented".

So something showing up 3 hops away might be fine provided the 3 hops are intended to be isp1 - as1 - isp2.

> 
> err, this didn't parse for me :(
> You mean you don't see the possibility of adding a transitive
> attribute to BGP, which some AS adds to a path (and signs into the
> announcement, so it has to be kept along the path) and is replicated
> with each as-hop?
> 

yes. (and sorry for being terse)


> Something like:
>  isp1      -      as1      -      isp2     -   me
>   out:is-cust  in:is-transit out:is-transit in:is-cust  out:is-cust
> in:is-transit
> 
> So, isp1 signs toward as1 "is-customer"
>      as1 signs from isp1 "is-transit"
> 
>      as1 signs to isp2 "is-transit"
>      isp2 signs from as1 "is-customer"
> 

the problem is that as1 can validly say "i don't do BGPSEC, but i'm still a valid on path actor" and you have to trust that at face value even though as1 is maleficent. You need isp1 to say that isp1 & as1 have a valid transit arrangement.

>      isp2 signs to me "is-customer"
>      me signs from isp2 "is-transit"
> 
> Given that you'd have to configure (I suspect) each peering as
> 'peering' or 'transit' or 'customer' ...I don't see this flying
> either. :( I also don't see how to compute this on the local-router
> level either, given the information in the session, without an
> operator having to designate "this is a X" :(
> 

right.

>> 
>> History tells us we are (for the most part) inept at doing so, even with tools available.
> 
> I had thought that RIPE had this licked in their region, no? they have
> policy-foo encoded in RPSL-stuff in the DB no? Is that NOT working for
> the cases in region?
> 

Probably they are the closest it gets, but a line from the ENISA paper sticks with me:

"Unfortunately, the quality of the IRRs varies, which makes it difficult to rely on them"


>> But what we do know is that when policy is implemented, the results are transparent and can be seen
>> (ris, routeviews, et al) by anyone who cares to look.
>> 
> 
> sure... but the data isn't exactly always 'accurate' there, and it's
> not accessible to the 'user' (router in the field) really, and I think
> the data includes lots of helter-skelter cruft that's not very helpful
> for this case :(

I was simply using it to demonstrate that since transit routing relationships end up in the RIS and routeviews as observable artefacts (cruft included), advertising who you have a transit relationship in something like the AAO isn't making any huge declarations of "I peer with company X" that can't be found by other investigations.

Although in hindsight the AAO might not be fine grained enough. In some cases an autonomous system may want to optionally list a set of prefixes that are subject to a transit/peer relationship with an adjacent AS.. (and of course, in some cases not)

> 
> oh, I think danny's draft has a link between isp1/isp2 :(
> you probably meant here: "ISP1 and ISP2 directly connect, the path via
> AS1 is invalid/improper/a-leak" right?

That was my understanding.

>> 
>> 
>> The killer problem here is that partial deployments will create path islands, where only a number of the ASN hops have created AAO objects and thus a path validity exercise will still fall into a potential leak trap until all ASNs get there. The question then could then be, "is it o.k. for the answer to route leaks to be near unusable until we have a significant deployment"
>> 
> 
> note sure, is that time also when we'd have full
> resource-certification and the tools mostly available to just filter
> people reliably/properly/everywhere? ('everywhere' for some value of
> all-customers-of-all-isps, and maybe including
> settlement-free-interconnects as well?)
> 

That I don't know - crystal ball cracked when I tried to beat this year's NHL results out of it.

T.