Re: [Idr] WGLC on draft-ietf-idr-as-private-reservation-00

Brian Dickson <brian.peter.dickson@gmail.com> Thu, 13 December 2012 21:18 UTC

Return-Path: <brian.peter.dickson@gmail.com>
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 D4E6721F8810 for <idr@ietfa.amsl.com>; Thu, 13 Dec 2012 13:18:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -3.32
X-Spam-Level:
X-Spam-Status: No, score=-3.32 tagged_above=-999 required=5 tests=[AWL=0.278, BAYES_00=-2.599, HTML_MESSAGE=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 BsD3net-6jwQ for <idr@ietfa.amsl.com>; Thu, 13 Dec 2012 13:18:27 -0800 (PST)
Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com [74.125.83.44]) by ietfa.amsl.com (Postfix) with ESMTP id 1238321F86FD for <idr@ietf.org>; Thu, 13 Dec 2012 13:18:26 -0800 (PST)
Received: by mail-ee0-f44.google.com with SMTP id b47so1588534eek.31 for <idr@ietf.org>; Thu, 13 Dec 2012 13:18:26 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=fzvvChVDAERSlw//ivll0ouVu2BqR1gBpPi8EgwUWY8=; b=jg6NgTSa8UtXfgxqROza4cIzxoPo/MRQ2aza+oNZJKi0xTulRrdkZN/CnOWK0qCiM2 gnbDT//Aip0F86t/S4CGgZ+96d9cS6gEh7G0a/CDezzWdEFz78bi+xf0HQ+0/dVV3ZIE 3UemDhct7LctHyL0VQ3WYpV/MsE8HF//ueevrzdKa7koODt84vQux7anXRTZVUNBooLE xo0oNY1USjiPAnc5lt5SCRltMWn3xti86bLlNT6g9O6VYqOLXTsg3epWzWjD+IGqZkei gUPsZR/f0cUfD8SXeNI0xb8R5MCsBoMzeBgnxKPKtH2d19qOMfbMLkK7Gu7s0d8KK5xq XTKg==
MIME-Version: 1.0
Received: by 10.14.184.134 with SMTP id s6mr8512920eem.43.1355433506188; Thu, 13 Dec 2012 13:18:26 -0800 (PST)
Received: by 10.223.173.199 with HTTP; Thu, 13 Dec 2012 13:18:26 -0800 (PST)
In-Reply-To: <50C90126.3010104@umn.edu>
References: <CA+b+ERnuWZ+r2O-eFhe3hU00uoU4UKnRcbhLNVXU7p5+DjoWbQ@mail.gmail.com> <C6C16AE3B7961044B04A1BCEC6E2F93603D12A0C@xmb-rcd-x14.cisco.com> <20121210225858.GC24937@puck.nether.net> <m2d2yh32cw.wl%randy@psg.com> <CA+b+ERnSVvewSpftXs3FhW12-S+sgnB1SwD4L+xqFW+hhbQayw@mail.gmail.com> <7120600D-71BD-4E61-8F06-25B7C2BAE6A8@riw.us> <20121211185917.GA21813@puck.nether.net> <CA+b+ERnzo2BLWjE1J_dMfYuExbG9WYJroPE4ZAWg++KK2_jy1g@mail.gmail.com> <CA+b+ERm=Agr7b6JXcXOwiP4wBjnEFmnVNt5fAJrn18R0hGtSzg@mail.gmail.com> <50C78C29.3070406@foobar.org> <50C8B8D9.4090903@umn.edu> <50C8C491.4040705@foobar.org> <CAH1iCio8Sh_ASLAa8DOcVXa5n19LgCAnSwTQV9edn2On1KPJbw@mail.gmail.com> <50C90126.3010104@umn.edu>
Date: Thu, 13 Dec 2012 16:18:26 -0500
Message-ID: <CAH1iCio=Xj4umJtr+dXKzNu2-eFOZRbJRCVnYt3rgpXhcyt6LQ@mail.gmail.com>
From: Brian Dickson <brian.peter.dickson@gmail.com>
To: David Farmer <farmer@umn.edu>
Content-Type: multipart/alternative; boundary="047d7b3a7ff8a72c4704d0c274fe"
Cc: IETF IDR Working Group <idr@ietf.org>
Subject: Re: [Idr] WGLC on draft-ietf-idr-as-private-reservation-00
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, 13 Dec 2012 21:18:31 -0000

On Wed, Dec 12, 2012 at 5:11 PM, David Farmer <farmer@umn.edu> wrote:

> On 12/12/12 12:52 , Brian Dickson wrote:
>
>> Okay, in as-plain, here goes:
>>
>> 42781900[8-9]? | \
>> 4278190[1-9]?? | \
>> 427819[1-9]??? | \
>> 4278[2-9]????? | \
>> 4279?????? | \
>> 428??????? | \
>>
>
> Just a thought, couldn't you eliminate the rest with the following
> shortcut;
>
> 429???????
>
>
Doh! (<facepalm>).

Good point, good catch, and yes, you are right.

It also makes the one-liner regexp that has the form "42(something)" a lot
simpler (and easier to debug).

Brian



> Yes, it would match 4294967295 which is not part of the range, but it is
> reserved for other reasons, and shouldn't be seen in the wild at all, Big I
> or little i.  And, would match ASNs bigger than 2^32 which can't exist.  So
> unless some implemented there regexp library in a vary weird way, you are
> down to 7 lines.  Yes, its cheating a little, but so what.
>
>
>  429[0-3]?????? | \
>> 4294[0-8]????? | \
>> 42949[0-5]???? | \
>> 429496[0-6]??? | \
>> 4294967[0-1]?? | \
>> 42949672[0-8]? | \
>> 429496729[0-4]
>>
>> In fix-width, and wrapped so one-per-line, and using "hyphen" even for
>> consecutive digits, it lines up nicely (so you can easily verify
>> correctness).
>>
>> Feel free to use the above (and if you like, credit me :-)).
>>
>> Again, not too horrible - 13 terms instead of 5 for as-dot, or 7-8 for
>> current 16-bit.
>>
>
> So with the shortcut above, you are back to more or less the same length
> as the regexp for the original private ASN block.
>
> Throwing some some version of this discussion is as an appendix might not
> be a bad idea, including a regexp for the original private ASN block too.
>  And, just maybe that could help cut down on some of the leaking. I can't
> see how it could possibly make leaking any worse.
>
>
> --
> ==============================**==================
> David Farmer               Email: farmer@umn.edu
> Office of Information Technology
> University of Minnesota
> 2218 University Ave SE     Phone: 1-612-626-0815
> Minneapolis, MN 55414-3029  Cell: 1-612-812-9952
> ==============================**==================
>