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

Wesley Eddy <weddy@grc.nasa.gov> Sun, 01 April 2007 09:50 UTC

Received: from mx2.grc.nasa.gov (mx2.grc.nasa.gov [128.156.11.69]) by webbie.berkeley.intel-research.net (8.11.6/8.11.6) with ESMTP id l319oDY07715 for <dtn-interest@mailman.dtnrg.org>; Sun, 1 Apr 2007 01:50:13 -0800
Received: from lombok-fi.grc.nasa.gov (seraph.grc.nasa.gov [128.156.10.10]) by mx2.grc.nasa.gov (Postfix) with ESMTP id D5C51C214 for <dtn-interest@mailman.dtnrg.org>; Sun, 1 Apr 2007 05:50:07 -0400 (EDT)
Received: from apataki.grc.nasa.gov (apataki.grc.nasa.gov [139.88.112.35]) by lombok-fi.grc.nasa.gov (NASA GRC TCPD 8.13.7/8.13.7) with ESMTP id l319nStA011048; Sun, 1 Apr 2007 05:49:49 -0400 (EDT)
Received: from localhost (localhost [127.0.0.1]) by apataki.grc.nasa.gov (NASA GRC TCPD 8.13.7/8.13.7) with ESMTP id l319nSxv001165; Sun, 1 Apr 2007 05:49:28 -0400 (EDT)
Received: from apataki.grc.nasa.gov ([127.0.0.1])by localhost (apataki.grc.nasa.gov [127.0.0.1]) (amavisd-new, port 10024)with ESMTP id 15aX1Iss5TJF; Sun, 1 Apr 2007 05:49:25 -0400 (EDT)
Received: from drpepper.grc.nasa.gov (gr2134391.grc.nasa.gov [139.88.44.123])by apataki.grc.nasa.gov (NASA GRC TCPD 8.13.7/8.13.7) with ESMTP id l2VGlMst003052; Sat, 31 Mar 2007 12:47:22 -0400 (EDT)
Received: by drpepper.grc.nasa.gov (Postfix, from userid 501)id 7AB9F4FE21; Sat, 31 Mar 2007 12:43:26 -0400 (EDT)
Date: Sat, 31 Mar 2007 12:43:26 -0400
From: Wesley Eddy <weddy@grc.nasa.gov>
To: Scott Burleigh <Scott.Burleigh@jpl.nasa.gov>
Cc: dtn interest <dtn-interest@mailman.dtnrg.org>
Subject: Re: [dtn-interest] Re(2): [dtn-dev] discussion draft
Message-ID: <20070331164326.GA360@grc.nasa.gov>
Reply-To: weddy@grc.nasa.gov
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>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Disposition: inline
In-Reply-To: <460D7EA0.9080705@jpl.nasa.gov>
User-Agent: Mutt/1.5.5.1i
X-imss-version: 2.046
X-imss-result: Passed
X-imss-scores: Clean:99.90000 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000)
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/>

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 ...

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

-- 
Wesley M. Eddy
Verizon Federal Network Systems