Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How bittorrent tracker works?

Tags:

bittorrent

I read official documetation here and wikipedia article about bittorrent client here but couldn't find how tracker exactly work. As per my understanding tracker should know which peer have which piece of some file. For example client 1 have 5 pieces of file 1 and 10 pieces of file 2. In official documentation I see tracker have fields like peer_id ip port uploaded downloaded left and event but I don't see where is the information about which file we are tracking. For example if I ask tracker hey I need pieces for linux.torrent file, how tracker would answer me?

like image 658
Spasoje Petronijević Avatar asked Nov 16 '17 13:11

Spasoje Petronijević


People also ask

Can BitTorrent be tracked?

It's simple, every torrent file you download is connected to a tracker. This tracker stores information related to the torrent file, such as the IP address of each user (peer) that has this file. It also stores which parts of that file each peer owns.

How do I use BitTorrent without being tracked?

Using a reliable and trusted VPN is the best way to torrent safely and anonymously. It works by redirecting your data through one of its private servers, making it look anonymous to other users. If you don't use a VPN, your personal data, online identity, and activity will be exposed to unwanted third parties.

How is BitTorrent protocol used?

The BitTorrent protocol can be used to reduce the server and network impact of distributing large files. Rather than downloading a file from a single source server, the BitTorrent protocol allows users to join a "swarm" of hosts to upload and download from each other simultaneously.

What does tracker mean in Torrenting?

If you aren't familiar with BitTorrent jargon, a tracker is a server that coordinates the peer-to-peer connections in a swarm. It doesn't host any files but connects you to the other users sharing the files you want.


1 Answers

A trackers job is, when a peer announces to a specific swarm (identified by the info_hash),to register that peer as active on that swarm and then send that peer a peer list with other peers active on that swarm.

A tracker does NOT keep track on which pieces or files a peer has.

I recommend you to read the inoffical protocol specification: https://wiki.theory.org/index.php/BitTorrentSpecification
it's bit easier do comprehend than the terse and dense BEP-3.

like image 165
Encombe Avatar answered Sep 21 '22 23:09

Encombe