On Wed, 12 Apr 2000, Theodore Hong wrote:
> Mike Glover <mpg4 at duluoz.net> wrote:
> > Better question: if the route back gets messed up for some reason, how
> is
> > a "Depth" header going to help us find our way back?  Either we have a
> > specific route back to the source of the request, or we need to
> broadcast
> > our reply to every node to be sure it gets where it belongs.
> 
> It's not supposed to help you find your way back, it just kills you off
> so
> you don't wander around forever.  But yeah, it seems like you could just
> (arbitrarily) set HTL to e.g. 50 on replies, although that would place a
> hard limit on HTL for requests.  That is, you could never specify -htl >
> 50, which isn't so hot.
>

   That makes (more) sense, but I'm still not sure why it's necessary. 
Here's my understanding of how this works:

   Node A creates a new Request.Data with UniqueID=1, and passes
   it along to B.  

   B passes it to C, and puts an entry into a table saying that ID 1
   came from A and was passed along to C.

   C passes the message to D and makes a similar entry into it's table.

   D has the data and sends the reply to C.  

   C looks up the ID in it's table, finds B, and passes the reply to it.

   B passes the reply to A.

Is that right?  I understand where HTL comes in -- you don't want to be
passing each request to millions of nodes.  But what does Depth do?  From
what's been said, it comes into play when, for example, B crashes before
receiving the reply from C.  Yes?  But in that case, C would notice that
it couldn't pass along the Reply and either queue it for later delivery
or just give up.  If B comes back, but has lost it's state tables, it
should notice that it doesn't have an entry for the reply from C and drop 
it.  It shouldn't be possible to have a reply wandering around without
being expected anywhere.

Or am I misunderstanding something?

-mike

> theo
> 
> 
> _______________________________________________
> Freenet-dev mailing list
> Freenet-dev at lists.sourceforge.net
> http://lists.sourceforge.net/mailman/listinfo/freenet-dev
> 
-- 

"Modern electronic-rock music, inaugurated in the early 1960s, is, and
 always has been, a joint enterprise of British military intelligence
 and Satanic cults."
    -- "The Satanic Roots of Rock"
        http://www.av1611.org/othpubls/roots.html

GnuPG key available at http://devel.duluoz.net/pubkey.asc
Key ID = 1024D/9A256AE5 1999-11-13 Mike Glover <mpg4 at duluoz.net>
Key fingerprint = EF6E 8BCB 4810 E98C F0FD  4596 367A 32B7 9A25 6AE5



_______________________________________________
Freenet-dev mailing list
Freenet-dev at lists.sourceforge.net
http://lists.sourceforge.net/mailman/listinfo/freenet-dev

Reply via email to