Re: [Idr] WGLC on draft-ietf-idr-as-private-reservation-00 concluded, extended to consider ASN range

Jared Mauch <jared@puck.nether.net> Thu, 20 December 2012 18:08 UTC

Return-Path: <jared@puck.nether.net>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 34DC721F8A88 for <idr@ietfa.amsl.com>; Thu, 20 Dec 2012 10:08:19 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.599
X-Spam-Level:
X-Spam-Status: No, score=-6.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, RCVD_IN_DNSWL_MED=-4]
Received: from mail.ietf.org ([64.170.98.30]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VvtMLJ-UePkR for <idr@ietfa.amsl.com>; Thu, 20 Dec 2012 10:08:18 -0800 (PST)
Received: from puck.nether.net (puck.nether.net [IPv6:2001:418:3f4::5]) by ietfa.amsl.com (Postfix) with ESMTP id 2343E21F8920 for <idr@ietf.org>; Thu, 20 Dec 2012 10:07:22 -0800 (PST)
Received: from puck.nether.net (puck.nether.net [204.42.254.5]) by puck.nether.net (8.14.4/8.14.4) with ESMTP id qBKI7JBM009070 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 20 Dec 2012 13:07:19 -0500
Received: (from jared@localhost) by puck.nether.net (8.14.4/8.14.4/Submit) id qBKI7Jsq009069; Thu, 20 Dec 2012 13:07:19 -0500
Date: Thu, 20 Dec 2012 13:07:19 -0500
From: Jared Mauch <jared@puck.nether.net>
To: Jeff Wheeler <jsw@inconcepts.biz>
Message-ID: <20121220180719.GE28958@puck.nether.net>
References: <B6B72499-E9D0-4281-84EB-6CA53694866E@juniper.net> <B9358F0B-6AFC-4971-94E9-2C7E44F405AA@juniper.net> <50D1C7F5.6030406@umn.edu> <20121219145706.GA3846@puck.nether.net> <50D3413A.8030904@umn.edu> <20121220170437.GB28958@puck.nether.net> <CAPWAtb++B+9+Sb393x=qWHTD7dSDD080ZHzvMwy=kFsYOJ0J4g@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <CAPWAtb++B+9+Sb393x=qWHTD7dSDD080ZHzvMwy=kFsYOJ0J4g@mail.gmail.com>
User-Agent: Mutt/1.5.21 (2010-09-15)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.6 (puck.nether.net [204.42.254.5]); Thu, 20 Dec 2012 13:07:20 -0500 (EST)
Cc: "idr@ietf. org" <idr@ietf.org>
Subject: Re: [Idr] WGLC on draft-ietf-idr-as-private-reservation-00 concluded, extended to consider ASN range
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.12
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/idr>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 20 Dec 2012 18:08:19 -0000

On Thu, Dec 20, 2012 at 12:50:46PM -0500, Jeff Wheeler wrote:
> On Thu, Dec 20, 2012 at 12:04 PM, Jared Mauch <jared@puck.nether.net> wrote:
> >         I think this poses the need to have vendors replace regex
> > with something where you can specify a list or range of the integers
> > you wish to match.
> 
> This already exists in major implementations.  Most of us are so used to
> how regexps work in other environments, we don't realize there is more than
> one way.  For example, on a Juniper box, do this:
> root@Juniper> show route aspath-regex ".* [3000-3999] .*" terse
>  ... matches plenty of routes like you'd hope ...
> 
> Similar thing works on Cisco.  Unfortunately the regexp engines used for
> offline processing (Perl, grep, whatever) are usually not customized for
> dealing with AS_PATH expressions.
> $ perl -wne 'print if / [6000-6999] /;' routes-from-tinet.txt |head -3
> inet.0: 423540 destinations, 1806800 routes (423540 active, 0 holddown, 0
> hidden)
>   5.144.136.0/21          A.B.C.D         0                  3257 22652
> 22652 8304 I
>   18.0.0.0/8              A.B.C.D         90                 3257 174 3 I
> 
> Obviously, the above won't "do what you mean" in Perl.  But with the
> proposed extended Private ASN range 4.2B+, you will be able to match that
> using any common regexp engine.

	Not likely:

RP/0/RSP0/CPU0:r07.dllstx09.us.bb#sh bgp regexp [65000-1024000]
BGP router identifier x.x.x.x, local AS number 65000
BGP generic scan interval 60 secs
BGP table state: Active
Table ID: 0xe0000000   RD version: 70417360
BGP main routing table version 70417360
BGP scan interval 60 secs

Status codes: s suppressed, d damped, h history, * valid, > best
              i - internal, r RIB-failure, S stale
Origin codes: i - IGP, e - EGP, ? - incomplete
   Network            Next Hop            Metric LocPrf Weight Path
*> 1.0.0.0/24         x.x.x.x             0             0 3356 15169 i
* i                   x.x.x.x         4294967294    100      0 1299 15169 i
* i                   x.x.x.x         4294967294    100      0 1299 15169 i
* i                   x.x.x.x         4294967294    100      0 3356 15169 i
* i                   x.x.x.x         4294967294    100      0 3356 15169 i
* i                   x.x.x.x         4294967294    100      0 1299 15169 i
...

This is on modern code built and released in the past 6 months.

	- Jared


-- 
Jared Mauch  | pgp key available via finger from jared@puck.nether.net
clue++;      | http://puck.nether.net/~jared/  My statements are only mine.