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

Jeff Wheeler <jsw@inconcepts.biz> Thu, 20 December 2012 17:50 UTC

Return-Path: <jsw@inconcepts.biz>
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 3EEE821F8A71 for <idr@ietfa.amsl.com>; Thu, 20 Dec 2012 09:50:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.411
X-Spam-Level:
X-Spam-Status: No, score=-2.411 tagged_above=-999 required=5 tests=[AWL=-0.320, BAYES_00=-2.599, FM_FORGED_GMAIL=0.622, HTML_FONT_FACE_BAD=0.884, HTML_MESSAGE=0.001, NORMAL_HTTP_TO_IP=0.001, RCVD_IN_DNSWL_LOW=-1]
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 DaCpGtyHtwN2 for <idr@ietfa.amsl.com>; Thu, 20 Dec 2012 09:50:47 -0800 (PST)
Received: from mail-ie0-f175.google.com (mail-ie0-f175.google.com [209.85.223.175]) by ietfa.amsl.com (Postfix) with ESMTP id 6CFEC21F8931 for <idr@ietf.org>; Thu, 20 Dec 2012 09:50:47 -0800 (PST)
Received: by mail-ie0-f175.google.com with SMTP id qd14so4902318ieb.20 for <idr@ietf.org>; Thu, 20 Dec 2012 09:50:47 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=KGx68BP2XCrUUOrxhTNjkxabuNzGCeSflUarzU1A5Vw=; b=ZZHNPn9KevxE60yGUNiYG2nQLI2fX0zIW5HqaYGRum5/etOkx0jweXzjRF4+sPQYd5 nBhpjKGoeozN5PRAo9Wqoc1Y99uWwaM1OsW/p30jnMBg4ROxJLANNC2fXVC/1DEls/GT PGRGDVrbYB9aA7zAdb7NW/7ONbPFoyRH3ZHT9FbuxO6U4nCnIkc+MtKl2jGZDS1BAllN M7dYyHKdEUGgFUUrFYvmy+CEzAysfGb1+YME7oSf9sgXvuDSkRRw7PbUAVx2gYdRZBdX 512uCYhemh/1AEhNVsuoqWRWadyJqtiKW9WSZ6syQnqpTQwDAeB24DiLrVDjFk8aw1B1 NN1Q==
MIME-Version: 1.0
Received: by 10.50.152.240 with SMTP id vb16mr10905370igb.45.1356025846396; Thu, 20 Dec 2012 09:50:46 -0800 (PST)
Received: by 10.64.132.33 with HTTP; Thu, 20 Dec 2012 09:50:46 -0800 (PST)
X-Originating-IP: [74.134.22.105]
In-Reply-To: <20121220170437.GB28958@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>
Date: Thu, 20 Dec 2012 12:50:46 -0500
Message-ID: <CAPWAtb++B+9+Sb393x=qWHTD7dSDD080ZHzvMwy=kFsYOJ0J4g@mail.gmail.com>
From: Jeff Wheeler <jsw@inconcepts.biz>
To: Jared Mauch <jared@puck.nether.net>
Content-Type: multipart/alternative; boundary="e89a8f3ba01be178b304d14c5e4d"
X-Gm-Message-State: ALoCoQlHpIYb04q+tsSyPZl1LFF+qTTj9pqIExtJY7T32K7agQjb6oiVti7RCRTDrpjsSV4gLjAc
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 17:50:48 -0000

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.

-- 
Jeff S Wheeler <jsw@inconcepts.biz>
Sr Network Operator  /  Innovative Network Concepts