Re: [dtn-interest] Re(2): [dtn-dev] discussion draft

Scott Burleigh <Scott.Burleigh@jpl.nasa.gov> Mon, 02 April 2007 14:55 UTC

Received: from nmta3.jpl.nasa.gov (nmta.jpl.nasa.gov [137.78.160.108]) by webbie.berkeley.intel-research.net (8.11.6/8.11.6) with ESMTP id l32Et3Y04083 for <dtn-interest@mailman.dtnrg.org>; Mon, 2 Apr 2007 07:55:03 -0700
Received: from xmta1.jpl.nasa.gov (xmta1.jpl.nasa.gov [137.78.160.144]) by nmta3.jpl.nasa.gov (Switch-3.1.9/Switch-3.1.9) with ESMTP id l32EsvcF004525 for <dtn-interest@mailman.dtnrg.org>; Mon, 2 Apr 2007 07:54:58 -0700
Received: from [127.0.0.1] (dhcp-79-22-247.jpl.nasa.gov [137.79.22.247]) by xmta1.jpl.nasa.gov (Switch-3.1.9/Switch-3.1.9) with ESMTP id l32EsqTC010936 for <dtn-interest@mailman.dtnrg.org>; Mon, 2 Apr 2007 07:54:57 -0700
Message-ID: <4611193D.70501@jpl.nasa.gov>
Date: Mon, 02 Apr 2007 07:54:53 -0700
From: Scott Burleigh <Scott.Burleigh@jpl.nasa.gov>
User-Agent: Thunderbird 1.5.0.10 (Windows/20070221)
MIME-Version: 1.0
To: dtn interest <dtn-interest@mailman.dtnrg.org>
Subject: Re: [dtn-interest] Re(2): [dtn-dev] discussion draft
References: <20070328174140.299881629@127.0.0.1> <460D6779.5090408@jpl.nasa.gov> <20070330203409.1848455294@127.0.0.1> <20070330205621.GE23819@grc.nasa.gov> <460D7EA0.9080705@jpl.nasa.gov> <20070331164326.GA360@grc.nasa.gov>
In-Reply-To: <20070331164326.GA360@grc.nasa.gov>
Content-Type: multipart/alternative; boundary="------------080603080007020209040105"
X-Source-IP: dhcp-79-22-247.jpl.nasa.gov [137.79.22.247]
X-Source-Sender: Scott.Burleigh@jpl.nasa.gov
X-AUTH: Authorized
Sender: dtn-interest-admin@mailman.dtnrg.org
Errors-To: dtn-interest-admin@mailman.dtnrg.org
X-BeenThere: dtn-interest@mailman.dtnrg.org
X-Mailman-Version: 2.0.13
Precedence: bulk
List-Unsubscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-interest>, <mailto:dtn-interest-request@mailman.dtnrg.org?subject=unsubscribe>
List-Id: Delay Tolerant Networking Interest List <dtn-interest.mailman.dtnrg.org>
List-Post: <mailto:dtn-interest@mailman.dtnrg.org>
List-Help: <mailto:dtn-interest-request@mailman.dtnrg.org?subject=help>
List-Subscribe: <http://mailman.dtnrg.org/mailman/listinfo/dtn-interest>, <mailto:dtn-interest-request@mailman.dtnrg.org?subject=subscribe>
List-Archive: <http://mailman.dtnrg.org/pipermail/dtn-interest/>

Wesley Eddy wrote:
> On Fri, Mar 30, 2007 at 02:18:24PM -0700, Scott Burleigh wrote:
>   
>> [Practically speaking, your 9-byte limit is fine.  Technically, though, 
>> the limit in the BP spec means "any number that can be encoded in 64 
>> bits", and in order to encode a 64-bit integer in an SDNV I think you 
>> actually need 10 bytes.  You can put up to 7 significant bits in each 
>> octet, which means you can get a 63-bit integer into (63 / 7) = 9 
>> octets, but for a 64-bit integer you need the low-order bit of one 
>> additional octet.]
>>     
> Ah, right, thanks for the correction; it's the old SDNV-8/16 scheme
> where 9 bytes gets you exactly 64 value bits.  I guess code that only
> supports 9-byte encodings doesn't have to be as careful when parsing,
> but code that supports 10-byte encodings have to do a little extra
> checking to make sure the value is in-bounds.
>
> I guess the point I wanted to make was not related to the specific
> length, but rather that we just have to be very careful with language
> because making statements about "64-bit SDNVs", when we really mean
> "64-bit SDNV values" could lead to mis-communication and difficult to
> find interop problems.  I think the docs are alright with regards to
> this, but we should also be precise about this in emails, papers, and
> other communication since implementations often draw on a lot more (or
> less) than just the specs alone ...
>   
You're right, Wes, it's easy to lapse into a verbal shorthand that 
introduces ambiguity.  We do need to be careful when we use these terms.
> 64-bit values are right in the area where new-style SDNVs start to get
> less efficient, but this has been discussed a few times here and is
> summed up pretty well in the table in:
> http://www.ietf.org/internet-drafts/draft-eddy-dtn-sdnv-02.txt
>   
Yes, this was the (small) downside to moving from the old SDNV-8/16 
scheme to what we're using now.  There are cases that are less 
bit-efficient, but that has seemed a reasonable price to pay for the new 
system's simplicity and flexibility.

Scott