/ English

An overview of how torrents work

Torrents are since years a very convenient way of sharing large files to a wide audience in an inexpensive way. Used and abused, they even made it in Facebook server deployment system for deploying updates.

Disclosure this blog post is unfinished and will likely stay this way for a long while. It doesn't have the tags to be readable for blind people or anything and I don't want to work on it anymore.

First, what does a Torrent file contains? Well, digital signatures of multiple slices of files, as well as their size and the way the reconstruct into a file. It also contains the tracker information, providing data on what tracker manages the transfers.

A tracker is a server that keeps track of connections in order to apply a fair sharing algorithm between all downloaders given that they upload too.

When a user wants to share a file, it happens that way:

Torrent1

The user creates a Torrent document from a file. Then the file is sent to the users, possibly using some features from the tracker (magnet links for example), or as a simple file.

Torrent2

A downloading user then connects to the tracker to get access to a list of peers working with the same torrent file.

Torrent3

Torrent4

They then initiate a direct connection to download the file part by part, parts are associated with their digital signatures to ensure the file is intact and unmodified.

Torrent5

Torrent6

Torrent7

Torrent8

If you like my content and want more, please donate. If everyone that finds my content useful paid $1 every week, I would be able to produce content for 1 week a month without relying on other sources of income for that week.

An overview of how torrents work
Share this