Tech Magazine

Ever Wondered How Torrent Works ?

Posted on the 05 April 2017 by Configcrazy @configcrazy

Many people use services of Torrent websites but they usually are unaware of its working. So, we come up with this idea to let our users educate about this great technology and the working mechanism of torrent.

What is BitTorrent ?

BitTorrent is a protocol that enables fast downloading of large files using minimum Internet bandwidth. It costs nothing to use and includes no spyware or pop-up advertising.
Unlike other download methods, BitTorrent maximizes transfer speed by gathering pieces of the file you want and downloading these pieces simultaneously from people who already have them. This process makes popular and very large files, such as videos and television programs, download much faster than is possible with other protocols.

A representative animation of P2P or Torrent Data Transmission.

Traditional Client-Server Downloading

Let's understand how BitTorrent works and why it is different from other file-serving methods. We will examine what happens when you download a file from a Web site. It works something like this:

  • You open a Web page and click a link to download a file to your computer.
  • The Web browser software on your computer (the client) tells the server (a central computer that holds the Web page and the file you want to download) to transfer a copy of the file to your computer.
  • The transfer is handled by a protocol (a set of rules), such as FTP (File Transfer Protocol) or HTTP (HyperText Transfer Protocol).

Client-server download process
The transfer speed gets affected by a number of variables, including the type of protocol, the amount of traffic on the server and the number of other computers that are downloading the file. If the file is both large and popular, the demands on the server are great, and the download will be slow.

Peer-to-peer File Sharing
Peer-to-peer file sharing is different from traditional file downloading. In peer-to-peer sharing, you use a software program (rather than your Web browser) to locate computers that have the file you want. Because these are ordinary computers like yours, as opposed to servers, they are called peers. The process works like this:

  • You run peer-to-peer file-sharing software on your computer and send out a request for the file you want to download.
  • To locate the file, the software queries other computers that are connected to the Internet and running the file-sharing software.
  • When the software finds a computer that has the file you want on its hard drive, the download begins.
  • Others using the file-sharing software can obtain files they want from your computer's hard drive.

The file-transfer load is distributed between the computers exchanging files, but file searches and transfers from your computer to others can cause bottlenecks. Some people download files and immediately disconnect without allowing others to obtain files from their system, which is called leeching. This limits the number of computers the software can search for the requested file.

How BitTorrent Works?
BitTorrent's peer-to-peer download process
What BitTorrent Does
Unlike some other peer-to-peer downloading methods, BitTorrent is a protocol. A protocol that offloads some of the file tracking work to a central server (called a tracker). Another difference is that it uses a principal called tit-for-tat. This means that in order to receive files, you have to give them. With BitTorrent, the more files you share with others, the faster your downloads are. Finally, to make better use of the available Internet bandwidth (the pipeline for data transmission), BitTorrent downloads different pieces of the file you want simultaneously from multiple computers.
Here's how it works:

  • You open a Web page and click on a link for the file you want.
  • BitTorrent client software communicates with a tracker to find other computers running BitTorrent that have the complete file (seed computers) and those with some portion of the file (peers that are usually in the process of downloading the file).
  • The tracker identifies the swarm, which is then connected to computers that have all or some portion the file. This is all done in the process of sending or receiving it.
  • The tracker helps the client software trade pieces of the file you want with other computers in the swarm. Your computer receives multiple pieces of the file simultaneously.
  • If you continue to run the BitTorrent client software after your download is complete, others can receive .torrent files from your computer; your future download rates improve because you are ranked higher in the "tit-for-tat" system.
  • Downloading pieces of the file at the same time helps solve a common problem with other peer-to-peer download methods: Peers upload at a much slower rate than they download. By downloading multiple pieces at the same time, the overall speed is greatly improved. The more number of computers involved in the swarm, the faster the file transfer. This is because there are more sources of each piece of the file. For this reason, BitTorrent is especially useful for large, popular files.

You Might Also Like :

Back to Featured Articles on Logo Paperblog

These articles might interest you :

  • How to Make Packing and Moving Easier

    Moving is definitely a hectic task, but with some proven ways, it can be an easier job. Moving needs organization and proper planning. With some simple steps,... Read more

    9 hours, 6 minutes ago by   Meet Rv
  • Unique Ways to Back-Up Your Data

    Imagine how you would feel having burnt the midnight oil preparing your work presentation, only to wake up the next morning to find your computer has crashed.... Read more

    9 hours, 17 minutes ago by   Meet Rv
  • A Rare Mutation: The Answer to Obesity?

    Rare Mutation: Answer Obesity?

    Would you believe it if I told you that there are people who are genetically incapable of getting obese? Well, it's apparently true! Researchers have found... Read more

    9 hours, 30 minutes ago by   Dietdoctor
    DIET & WEIGHT, HEALTH, HEALTHY LIVING, MEDICINE
  • Star Citizen - Roadmap Update - Wot No Multi-system?

    Star Citizen Roadmap Update Multi-system?

    after someone in the dev team accidentally uploaded a 3.3-3.6 Roadmap a couple of weeks ago that was all sortsa wrong, RSI aka CIG aka makers of both the Star... Read more

    10 hours, 56 minutes ago by   Freeplanet
    DEBATE, SOCIETY
  • A Gay with a Bun in Bungay

    with Bungay

    Last month’s prolonged heatwave, reminiscent of our Turkey days, drove us from the sticky city to the cute little towns of Bungay and Beccles, just across the... Read more

    11 hours, 32 minutes ago by   Jackscott
    DIARIES, EXPAT, SELF EXPRESSION
  • Josie Entertains the Old Folks

    Josie Entertains Folks

    Read more

    14 hours, 32 minutes ago by   Vickilane
    CREATIVITY, PHOTOGRAPHY
  • An Everyday Thing by Nancy Richardson BLOG TOUR

    Nancy Richardson's poems concern coming of age in the rust-belt of Ohio during a period of decay of the physical and political structures that made the region... Read more

    16 hours, 1 minute ago by   Pamelascott
    BOOKS, CULTURE

Magazine