M
M
mariofag2012-02-12 21:20:22
bittorrent
mariofag, 2012-02-12 21:20:22

Where does BitTorrent get the list of peers when using a magnet link?

Here is the magnet link:

magnet:?xt=urn:btih:a380ef335f44b2dae1faf28f2b9322a41f31ef5f&dn=My+Little+Pony%3A+Friendship+is+Magic+S02E17+%5BHD+720p+AC3+5.1%5Dwin

As you can see, it contains only the BitTorrent Info Hash (roughly speaking, the torrent identifier) ​​and the name of the distribution (used, it seems, only for the convenience of the user). There is obviously no information about peers or trackers in this link.
Now try to open it with a torrent client. I checked in µTorrent, in less than a minute it found about a dozen peers and began to successfully download the distribution.
Explain how this is even possible? I understand that when there is at least one peer, you can start using Peer Exchange, but where can I get at least one peer for an arbitrary torrent? A cursory analysis of the traffic in Wireshark showed nothing, and it was not possible to find the source of these peers.
UPD: turns out DHT is responsible for this .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
avalak, 2012-02-12
@mariofag

If my memory serves me, then Thank you is to say DHT (principle of operation) .

Z
Zelgadis, 2012-02-12
@Zelgadis

DHT and PEX. However, not all magnets are like uvas, for example:
magnet:?xt=urn:btih:47B9E41B44FB4A1626BEA0A843ECA15872B6A5A3&dn=BBC.Seven.Ages.of.Rock.6of7.Left.Of.The.Dial.American.Alternative.Rock.XviD. AC3-MVGroup&tr=http://www.mvgroup.org:2710/announce
Carries information about trackers. And the fact that you don’t have a tracker in the magnet has nothing to do with the magnet, it’s a feature of the protocol.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question