[bittorrent] BT protocol Q
justin at street-vision.com
Fri Apr 29 08:41:00 EDT 2005
On Fri, 2005-04-29 at 14:05 +0200, Olaf van der Spek wrote:
> On 4/29/05, Justin Cormack <justin at street-vision.com> wrote:
> > On Fri, 2005-04-29 at 13:07 +0200, Olaf van der Spek wrote:
> > > On 4/28/05, Justin Cormack <justin at street-vision.com> wrote:
> > > >
> > > > Does anyone know if all BT clients that allow multiple downloads from
> > > > the same session use different peer ids for each download? The
> > > > implication in the BT spec is that they should, but like many things it
> > > > is a bit vague. It just makes a difference to whether you need a hash
> > > > table of peers to each torrent or a single global one.
> > >
> > > Isn't the only safe way to not assume anything about peer IDs?
> > Why do you say that?
> > They are going to have to be unique as you need to identify peers you
> > are already connected to (otherwise you tend to end up with a pair of
> > connections to each peer, one initiated from each end).
> Yes, you can use it for that.
> Although I simply use IP address myself.
There are some corner cases where hash seems easier - multihomed
machines (or multihomed nat gateways), ipv6 and ipv4 addresses, seems
easier to me to just use the hash.
More information about the BitTorrent