~cosmicrose/bittorrent

caec7154b8fad04ffe020bda9da05a29d168a046 — Rosa Richter 7 months ago 770f930 main
Add Glossary
2 files changed, 59 insertions(+), 0 deletions(-)

A glossary.md
M index.md
A glossary.md => glossary.md +55 -0
@@ 0,0 1,55 @@
---
title: Glossary
---

#Glossary

## Announce

When a [peer](#peer) makes a request to a [tracker](#tracker) to either state that they have started to download,
are still downloading, or have finished downloading a [torrent](#torrent).

## Block

A chunk of data that is exchanged by peers, usually 16 KiB in size.
Many blocks make up a [Piece](#piece).

## Info Hash

A twenty-byte cryptographic hash of the `info` section of a [metadata file](#metadata-file).
It is used to uniquely identify a [torrent](#torrent).

## Metainfo file

A bencoded data structure containing information about a [torrent](#torrent),
like its name, its length, and the hash of every [Piece](#piece).

## Peer

A peer is any entity participating in a BitTorrent file transfer, either uploading or downloading.
A client can find peers by announcing to a [tracker](#tracker).
Peers communicate using the Peer Wire Protocol (PWP).

## Peer ID

The self-assigned, twenty-byte string that a [peer](#peer) uses to identify themselves.

## Piece

A chunk of data described by a [metainfo file](#metainfo-file).
Can range in size from 16 KiB to 32 MiB.

## Swarm

The collective of [peers](#peer) transferring a certain [torrent](#torrent).

## Torrent

A file or collection of files transfered by the BitTorrent protocol.
A torrent is described by a [metainfo file](#metainfo-file) and is identified by its [info hash](#info-hash).

## Tracker

A tracker is a server that implements either the Tracker HTTP Protocol or the Tracker UDP Protocol, or both.
[Peers](#peer) [announce](#announce) to [trackers](#tracker) that they want to download,
and the tracker responds with a list of other peers they can download from.

M index.md => index.md +4 -0
@@ 24,6 24,10 @@ Overall, the protocol works like this:
   which returns the addresses of peers it can obtain the file from.
1. the client contacts these peers and downloads the files from them.

## Glossary

The [Glossary](glossary.md) is a good place to start to learn about the BitTorrent protocol.

## Copyright

The contents of this wiki are placed in the public domain, under a CC0-1.0 license.