BitTorrent Protocal

2018-01-18  本文已影响0人  理想今年我20岁

Abstract

When I was downloading a file using BT, I wondered why it was that fast. So in this essay, I try to figure out mechanism of BitTorrent Protocal.

Introduciton

BitTorrent is a communication protocol for peer-to-peer (P2P) file sharing which is used to distribute data and electronic files over the Internet. In a P2P system, all the people participating in the download are servers and also clients together.

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 to/download from each other simultaneously. The protocol is an alternative to the older single source, multiple mirror sources technique for distributing data, and can work effectively over networks with lower bandwidth.

Terminology

Steps

  1. Creation: A user creates a torrent file associated with the data he wants to share with the help of a torrent client software. The torrent client software will include tracker address provided by the user and the cryptographic hashes (usually SHA-1) of all the pieces(small chunks) of the data.
  2. Share: The user share the torrent file he just created online.
  3. Download: Another user download the torrent file and open it using a torrent client software, The client will query the tracker server, which he got from the torrent file for the download location (clients who are downloading the file or completed downloading the file). One chunk is downloaded at a time from others at a time. On completion of download of each chunk the client informs the tracker, so that other people who want that chunk can download it. When all the chunks are downloaded, then this user will become a torrent seed for that data.

Others

Reference

上一篇下一篇

猜你喜欢

热点阅读