Re: hash-based requests
Justin Cormack <[email protected]> Mon, 14 Feb 2005 23:28:00 +0000 (GMT)
| Newsgroups | gmane.network.bit-torrent.general |
|---|---|
| Message-ID | <[email protected]> |
>
>
> 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:
http://groups.yahoo.com/group/BitTorrent/
<*> To unsubscribe from this group, send an email to:
[email protected]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/