Re: [Uri-review] [Fwd: [BEHAVE] Last Call: draft-ietf-behave-turn-uri (Traversal Using Relays around NAT (TURN) Uniform Resource Identifiers) to Proposed Standard]

Andrew Newton <andy@hxr.us> Thu, 22 October 2009 20:01 UTC

Return-Path: <andy@hxr.us>
X-Original-To: uri-review@core3.amsl.com
Delivered-To: uri-review@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id D211B3A6899; Thu, 22 Oct 2009 13:01:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bdMTDY1i6nJk; Thu, 22 Oct 2009 13:01:13 -0700 (PDT)
Received: from zeke.ecotroph.net (zeke.ecotroph.net [70.164.19.155]) by core3.amsl.com (Postfix) with ESMTP id DD2AB3A67B2; Thu, 22 Oct 2009 13:01:12 -0700 (PDT)
Received: from basil.dhcp.nanog.merit.net ([::ffff:192.35.167.88]) (AUTH: PLAIN anewton, SSL: TLSv1/SSLv3,128bits,AES128-SHA) by zeke.ecotroph.net with esmtp; Thu, 22 Oct 2009 16:01:20 -0400 id 015ACA43.4AE0BA10.0000058B
Message-Id: <277C1D22-695A-4D2A-A7A4-9CC96439AFEA@hxr.us>
From: Andrew Newton <andy@hxr.us>
To: Marc Petit-Huguenin <petithug@acm.org>
In-Reply-To: <4AE0AD11.3080307@acm.org>
Content-Type: text/plain; charset="US-ASCII"; format="flowed"; delsp="yes"
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v936)
Date: Thu, 22 Oct 2009 16:01:20 -0400
References: <4AD7387A.7060901@ericsson.com> <6e04e83a0910151433y2007a015ia77a407e702a3841@mail.gmail.com> <4AD7AE35.7030701@petit-huguenin.org> <6e04e83a0910151809x522b1547ya48bcf6a2093ea01@mail.gmail.com> <4AD81911.4080809@acm.org> <6e04e83a0910161009r4ae93cd6j8063f117521d939f@mail.gmail.com> <E470E3F9-E3DE-414A-8A4B-6D0ABE589797@hxr.us> <4AE0AD11.3080307@acm.org>
X-Mailer: Apple Mail (2.936)
X-Mailman-Approved-At: Thu, 22 Oct 2009 20:28:46 -0700
Cc: Ted Hardie <ted.ietf@gmail.com>, app-ads@tools.ietf.org, uri-review@ietf.org, ietf@ietf.org
Subject: Re: [Uri-review] [Fwd: [BEHAVE] Last Call: draft-ietf-behave-turn-uri (Traversal Using Relays around NAT (TURN) Uniform Resource Identifiers) to Proposed Standard]
X-BeenThere: uri-review@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Proposed URI Schemes <uri-review.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/uri-review>
List-Post: <mailto:uri-review@ietf.org>
List-Help: <mailto:uri-review-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/uri-review>, <mailto:uri-review-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Oct 2009 20:01:13 -0000

On Oct 22, 2009, at 3:05 PM, Marc Petit-Huguenin wrote:

>> ...
>> With regard to complexity, that is most likely in the eye of the
>> beholder.  I would think this is more complex than other uses of
>> S-NAPTR.  I don't know how one goes about judging these sort of  
>> things.
>> Perhaps it would be helpful to look at an S-NAPTR implementation.
>> VeriSign's SVN repository still hosts pysnaptr, which you can find  
>> here:
>> http://svn.verisignlabs.com/main/snaptr/pysnaptr/tags/RELEASE_0_1/pysnaptr
>>
> ...
> For comparison my own reference implementation in Java of the TURN  
> URI parser
> and resolver is 364 lines long.  This is without the RFC 3958  
> implementation,
> 255 lines long, and the RFC 2782 implementation which is 141 lines  
> long. The URL
> to this reference implementation is in Annex A.10 in the I-D.

Marc,

I suppose if I had been a little more caffeinated this morning, I  
would have also provided links to VeriSign's Java and Perl  
implementations of 3958:

http://svn.verisignlabs.com/main/snaptr/net_dns_snaptr/trunk/lib/Net/DNS/SNAPTR.pm
http://svn.verisignlabs.com/main/snaptr/jsnaptr/trunk/src/com/verisignlabs/jsnatpr/JSNaptr.java

Lines of code is certainly one measure of complexity, but that can be  
heavily influenced by the programming style and language used.  Again,  
this is all subjective, but in my opinion it is complex.  I think most  
of that is due to the nature of NAPTR and DNS itself and perhaps  
cannot be avoided.  I hope this is helpful.

-andy