BitTorrent & Magnets: How Do They Work? [Technology Explained]

intro icp miracles   BitTorrent & Magnets: How Do They Work? [Technology Explained]As we recently reported, The Pirate Bay has switched from using .torrent file downloads to magnet links with no opt-out policy. The tracker has offered magnet downloads for a good while now, but this is the first time we’ve seen such a large public tracker use embedded links exclusively.

So what does it mean for the army of BitTorrent junkies out there? Not an awful lot, it turns out. Magnets don’t operate in precisely the same way as standard .torrent files but it won’t take long for you to get your head around the new standard.

Magnets Explained

Magnets are not a particularly recent addition to the arsenal of filesharing technologies out there. Those of you who remember Freenet and eDonkey 2000 will recall similar methods being used as long ago as 2002. While the standard is still evolving, magnets use largely the same technology that these old P2P networks relied on.

linux mint tpb   BitTorrent & Magnets: How Do They Work? [Technology Explained]

Unlike .torrent files, magnets can be embedded directly into a webpage as nothing more than a link. This link is made up of several parts and prefixed with the magnet: identifier. These links comprise of several identifiers (like the “exact topic” (xt) ?xt=urn:btih:<hash> prefixing the BitTorrent info hash), a hash value of the torrent file and sometimes other information like trackers (tr) and file name data (dn). The parts that make up a magnet link do not need to be presented in any particular order.

Here is the magnet link for Linux Mint listed on The Pirate Bay:

magnet:?xt=urn:btih:2e99d97f1768644a86a8e99bfd80c816490f959b&dn=Linux+Mint+Debian+%5B201101%5D+%5BISO%5D+%5B32-Bit%5D+%5Bgeno7744%5D+&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.ccc.de%3A80

These links contain all necessary information to begin downloading files from other peers directly, either using tracker information stored in the link or distributed hash tables (DHT) and peer exchange (PEX).

DHT & PEX

These two aren’t particularly new either, and you’ve probably been using both for years without realising it. DHT was first demoed in 2005 and works by searching for peers who are downloading the same file without contacting any trackers. This essentially creates a “trackerless torrent” and is something TPB have been pushing for a while now.

dht pex   BitTorrent & Magnets: How Do They Work? [Technology Explained]

If you click a magnet link that does not specify a tracker (tr) the first peer will be found using DHT. Once you’ve got a peer, peer exchange kicks in too.

PEX is a similar concept to DHT except there is no way of introducing a new peer to the swarm (users sharing a particular torrent) without first communicating via tracker or DHT. The method used in PEX involves your client asking all peers that you are connected to for the peers that they are connected to. PEX is no good from a cold start, but often provides better results than querying a tracker or swarm via DHT.

How Does This Affect Me?

Your world won’t be rocked by the switch from downloadable .torrent files to magnet links, though there are a few key differences. First up you’re going to need a magnet-compatible client, and there’s a very good chance you’re already using one. uTorrent, Vuze, BitComet, Transmission, Deluge and qBitTorrent all support magnet links, and most clients that are still being actively developed will probably add the functionality at some point.

The main complaint I see come up time and time again is the inability to select which files to download when adding a magnet link to your BitTorrent client. While this is true, it’s easy to change this once the torrent is on its way down.

dont download   BitTorrent & Magnets: How Do They Work? [Technology Explained]

Perhaps the question should be “how does it affect the tracker?” then, as it makes quite a difference on that end. For starters the lack of downloadable .torrent files saves on bandwidth, as all magnet links are embedded directly into the webpage. From the tracker’s perspective this removes much of the paper trail – after all, magnet links can be shared anyway you see fit. Find them on trackers, stick them in an email, IM or print them and send them as postcards – it makes very little difference as no “download” took place between you and (in this instance) The Pirate Bay.

tpb blog quote   BitTorrent & Magnets: How Do They Work? [Technology Explained]

A blog post from The Pirate Bay

Mirrors are also now a lot easier to organize, as the need to host downloadable files has been completely removed. This would in effect make it harder for copyright enforcers to curb piracy, even if the original web page with the magnet links is taken offline another is bound to spring up with the exact same content. Throw DHT into the mix and even if the tracking server is down people will still be able to share files.

What did we learn?

Magnet links mean more of a change for the trackers and index sites than they do for end users. The switch towards trackerless technology using existing foundations like DHT and PEX protects the trackers by eliminating that initial .torrent file download, being able to discover peers in a completely decentralised manner and of course making it very difficult to keep a site distributing magnet links down for long thanks to the easy mirroring procedure.

It seems that the cat-and-mouse game played between filesharing advocates and the copyright enforcers is far from over.

Have you switched to magnet links? Do you now avoid .torrent downloads? Any favorite trackers or clients? Have a shout about it in the comments, below.

The comments were closed because the article is more than 180 days old.

If you have any questions related to what's mentioned in the article or need help with any computer issue, ask it on MakeUseOf Answers—We and our community will be more than happy to help.

23 Comments -

0 votes

wyrwolf

The only gripe I have against magnet links (and it may just be due to my own ignorance) is I can’t save them to my PC as links to use later instead of right away.

0 votes

klyntone

Right click th magnet link, copy link location, paste to notepad for latter use. Open torrent client, file menu, choose open torrent from url, paste in url, works with utorrent should work with others.

0 votes

darkfast

you can also right click on a magnet link, and choose “bookmark this link”, save it to a folder of magnet links. when you open the folder in your book marks and select one of the links it will open in your torrent program

0 votes

wyrwolf

I could also bookmark or save the page with the link, but just saving the torrent file is way more simple.

0 votes

d0vr

Yes wyrwolf, you could just save .torrent files in the past, but as I encountered numerous times when doing that in the past, I might have come back to download a file using a .torrent and all the trackers had disappeared.

That is less likely to happen with magnets. And saving one text file is pretty easy. You can even backup bookmarks to a text file and take them to a different computer.

0 votes

Mulder

“uTorrent, Vuze, BitComet, Transmission, Deluge and qBitTorrent all support magnet links”

This is not true. Certain versions of these support magnet links, but if your computer or OS can’t run that version, then magnet links are useless to you.

You cannot make such broad statements unless you’re willing to do the research to find out which versions of each OS support these torrent clients that use magnet links, and clearly state that in the article. That’s just sloppy writing.

0 votes

VC Nickels

It is an accurate statement.

With the staggering array of OS’s that most people that engage in torrenting use it would be impossible for MakeUseOf to account for every fork, splinter, and custom version of every OS, let alone the homegrown versions of the clients themselves.

If the version you use doesn’t support Magent links, take it up with the people that make your client or switch clients.

0 votes

Anthony

I think I might have to compile Transmission for CLI to take BitTornado’s place within TorrentFlux-b4rt.. The only tracker I use actively that uses magnets itself begins with a D and ends with a D, with a little green guy as their logo ;)

0 votes

Thomas

TPB hasn’t been a tracker for years.

0 votes

Chuck

You forgot to mention the best client that handles magnet links, Tixati. It hasn’t been out as long as some of the others but it’s way better then them and improving with every new release. It’s even got chat channels that allow you to chat, search and share with others.

0 votes

Tim Brookes

Thanks for letting us know, I will have a look at Tixati.

0 votes

bill

couldn’t believe you missed it. Tixati Rules.

0 votes

Modestus

Glad to hear it…

0 votes

marge

Those chat channels just got even better by the way because you can now stream audio and video into those channels. Go to http://www.tixati.com to check them out.

0 votes

Modestus

Chuck, sorry, you’re wrong. Tixati is not the best client to handle magnet links…IT’S SIMPLY THE BEST CLIENT! They really keep up with all that’s happening in the world of torrent & yes, are very responsive with improving every version… there’s even an option to “append a magnet link to a (specified) text file when a new transfer starts” as well as allowing deselection of unwanted files… TIXATI is fast, smart, user friendly & veteran torrentors will not be disappointed..

0 votes

Tulisa

I have just been banned by virgin from using bit torrent and pirate bay, when i go to the site it says, i am resticted die to a court order aimed at the pirate bay

0 votes

Tim Brookes

Is that because Virgin are barring access to the website or you have received a nasty letter about downloading something you shouldn’t?

I assume this is Virgin UK?

0 votes

James

Get a VPN. I use ivacy and it’s awesome.

0 votes

shaurya boogie

So what ‘s better. magnet vs torrent.

0 votes

Tim Brookes

Neither, they’re virtually the same thing. Torrent files leave a trace, require uploading and use more bandwidth (for the host) but allow you to download what you want from the get go.

Magnet files require no additional bandwidth, can be embedded into a page but you’ll need to start the download to acquire torrent metadata before you can pick your files.

Magnets are probably better from a tracker/indexer’s point of view.

0 votes

Maryline Latorre

What about Tixati??

0 votes

Modestus

Tixati is a fabulous client. I’ve tried several, and Tixati is by far the best, IMO… Whether you’re new to all this torrent stuff or been around for ages, Tixati will not disappoint…

0 votes

magnet2torrent.me

There is also our free online magnet link to torrent file converter which will let you download the .torrent file to your PC or seedbox if anyone here is using a client that doesn’t support magnet links.