[BitTorrent] hash-based requests

Justin Cormack justin at street-vision.com
Mon Feb 14 18:28:00 EST 2005

> Justin Cormack wrote:
> > 
> > Have been thinking about the idea of making all requests and have messages
> > refer to hashes rather than block offsets.
> > 
> > It all works pretty well except that at the beginning when you only have the
> > root hash, you can be sent a have message for a block you know nothing about
> > because you dont yet have the tree (you dont even know which torrent it is
> > from yet). Has anyone thought of a solution to this yet? You could store them
> Doesn't that happen more often then just the beginning?
> For example, if I don't have a subtree yet.

Yes, just was thinking of it from the start.
> > but this gives a potential DoS by just making up random numbers and saying you
> > have those pieces.
> > 
> > The other alternative is a two-phase protocol where you first obtain the Merkle
> > tree before you can do anything else.
> > 
> > Or is there some better way?

Yahoo! Groups Links

<*> To visit your group on the web, go to:

<*> To unsubscribe from this group, send an email to:
    BitTorrent-unsubscribe at yahoogroups.com

<*> Your use of Yahoo! Groups is subject to:

More information about the BitTorrent mailing list