Re: [Geopriv] Web-based DHCP location encoder

Richard Barnes <rbarnes@bbn.com> Wed, 15 April 2009 15:41 UTC

Return-Path: <rbarnes@bbn.com>
X-Original-To: geopriv@core3.amsl.com
Delivered-To: geopriv@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id A85A63A6B05 for <geopriv@core3.amsl.com>; Wed, 15 Apr 2009 08:41:45 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.582
X-Spam-Level:
X-Spam-Status: No, score=-2.582 tagged_above=-999 required=5 tests=[AWL=0.017, 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 ntN2hPQnlmzh for <geopriv@core3.amsl.com>; Wed, 15 Apr 2009 08:41:38 -0700 (PDT)
Received: from mx3.bbn.com (mx3.bbn.com [128.33.1.81]) by core3.amsl.com (Postfix) with ESMTP id 859A43A68DA for <geopriv@ietf.org>; Wed, 15 Apr 2009 08:41:38 -0700 (PDT)
Received: from dhcp89-089-090.bbn.com ([128.89.89.90] helo=Richard-Barnes-Laptop.local) by mx3.bbn.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from <rbarnes@bbn.com>) id 1Lu7GE-0004Lh-A6; Wed, 15 Apr 2009 11:42:50 -0400
Message-ID: <49E6007A.3000008@bbn.com>
Date: Wed, 15 Apr 2009 11:42:50 -0400
From: Richard Barnes <rbarnes@bbn.com>
User-Agent: Thunderbird 2.0.0.21 (Macintosh/20090302)
MIME-Version: 1.0
To: "Thomson, Martin" <Martin.Thomson@andrew.com>
References: <49E51510.4030409@bbn.com> <E51D5B15BFDEFD448F90BDD17D41CFF105A0C876@AHQEX1.andrew.com>
In-Reply-To: <E51D5B15BFDEFD448F90BDD17D41CFF105A0C876@AHQEX1.andrew.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: GEOPRIV <geopriv@ietf.org>
Subject: Re: [Geopriv] Web-based DHCP location encoder
X-BeenThere: geopriv@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Geographic Location/Privacy <geopriv.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/geopriv>, <mailto:geopriv-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/geopriv>
List-Post: <mailto:geopriv@ietf.org>
List-Help: <mailto:geopriv-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/geopriv>, <mailto:geopriv-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Apr 2009 15:41:45 -0000

Count me in with the folks who think there needs to be some sort of 
indicator as to which interpretation is being communicated.  Attaching 
two different semantics to the exactly the same set of bits is the 
definition of non-interoperability.

Looking at the 3825 format, it seems that the "datum" field is the only 
one where there's any chance of accommodating this indicator.  Defining 
a single new datum is one way of doing it.  Another way might be to 
split the field half: A 4-bit datum field (do we need more than 31 
data?) and 4 bits of flags (one for this, and three for later use).

+-+-+-+-+-+-+-+-+       +-+-+-+-+-+-+-+-+
|     Datum     |  ---> | Flags | Datum |
+-+-+-+-+-+-+-+-+       +-+-+-+-+-+-+-+-+

If you add the caveat that all flags being zero indicates the use of the 
3825 encoding, this remains bitwise backward-compatible with 3825 (since 
a 3825 server will set all flags to zero).

--Richard



Thomson, Martin wrote:
> You'll note that the page clearly shows the two interpretations of RFC 3825.  If you zoom to show the area described by the option and toggle the 3825bis checkbox, you'll see how these differ.  In particular, note the difference when the point is near the edge of the box drawn using the (not bis) 3825 interpretation.
> 
> Richard: The encodings are the same, only the interpretation differs.
>  s/Alternate encoding/Alternative interpretation/
> 
>> -----Original Message-----
>> From: geopriv-bounces@ietf.org [mailto:geopriv-bounces@ietf.org] On
>> Behalf Of Richard Barnes
>> Sent: Wednesday, 15 April 2009 8:58 AM
>> To: 'GEOPRIV'
>> Subject: [Geopriv] Web-based DHCP location encoder
>>
>> Hey all,
>>
>> FYI: The daunting thing about the DHCP location options (for me at
>> least) has always been figuring out how to encode and decode them, so
>> with some help from the loc-imp list, I've written a web-based encoder
>> for the DHCP location options (RFC 3825 and 4776):
>>
>> <http://geopriv.dreamhosters.com/dhcloc/>
>>
>> (Actually, the decoding logic is there too, in the Javascript objects,
>> but there's no GUI for it now.)
>>
>> Hopefully, this can be at least a basic tool to ease people into
>> deploying this stuff.  Please forward to anyone who might find this
>> useful.
>>
>> Cheers,
>> --Richard
>> _______________________________________________
>> Geopriv mailing list
>> Geopriv@ietf.org
>> https://www.ietf.org/mailman/listinfo/geopriv
> 
> ------------------------------------------------------------------------------------------------
> This message is for the designated recipient only and may
> contain privileged, proprietary, or otherwise private information.  
> If you have received it in error, please notify the sender
> immediately and delete the original.  Any unauthorized use of
> this email is prohibited.
> ------------------------------------------------------------------------------------------------
> [mf2]