{"id":1942,"date":"2012-02-04T16:01:13","date_gmt":"2012-02-04T20:01:13","guid":{"rendered":"http:\/\/www.paleotechnologist.net\/?p=1942"},"modified":"2012-02-04T16:01:13","modified_gmt":"2012-02-04T20:01:13","slug":"bittorrent-explained","status":"publish","type":"post","link":"https:\/\/www.paleotechnologist.net\/?p=1942","title":{"rendered":"BitTorrent explained"},"content":{"rendered":"<p>The <a href=\"http:\/\/www.bittorrent.com\/\" target=\"_blank\">BitTorrent<\/a> <a href=\"http:\/\/en.wikipedia.org\/wiki\/BitTorrent_(protocol)\" target=\"_blank\">peer-to-peer file sharing protocol<\/a> takes advantage of the fact that clients can upload as well as download. With both the clients and the server contributing to distribution of files, information can be shared much more quickly than would be possible with the clients downloading from the server alone. In addition, with BitTorrent, files can remain available on the network even if the original hosting server is taken offline, as long as the nodes which are still connected collectively have all of the pieces of the file.<\/p>\n<p>Here is an example of how a file could be distributed from a single server to six, and then eight, client nodes. The assumptions made here are that the server has enough bandwidth to upload two pieces of the file at a time; clients can download two pieces and\/or upload one piece. Although the file in the example is shown as broken into five pieces, in reality, large files would be broken into hundreds of small pieces.<\/p>\n<p><div id=\"attachment_1943\" style=\"width: 653px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim01.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1943\" class=\"size-full wp-image-1943\" title=\"The quiet before the torrent...\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim01.png\" alt=\"\" width=\"643\" height=\"594\" \/><\/a><p id=\"caption-attachment-1943\" class=\"wp-caption-text\">At the start, the server has all five pieces of the file;<br \/> the clients don&#039;t yet have any.<\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1944\" style=\"width: 653px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim02.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1944\" class=\"size-full wp-image-1944\" title=\"Just like a normal download, so far...\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim02.png\" alt=\"\" width=\"643\" height=\"586\" \/><\/a><p id=\"caption-attachment-1944\" class=\"wp-caption-text\">The server uploads two (different) pieces to first two requesting clients. <br \/>These clients now each have one piece and can upload them to others.<\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1945\" style=\"width: 653px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim03.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1945\" class=\"size-full wp-image-1945\" title=\"With the clients helping, sharing speed is now twice as fast.\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim03.png\" alt=\"\" width=\"643\" height=\"586\" \/><\/a><p id=\"caption-attachment-1945\" class=\"wp-caption-text\">The server uploads two more, different pieces to two other clients. The first two clients which received pieces start sharing them, speeding up sharing. <\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1946\" style=\"width: 653px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim04.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1946\" class=\"size-full wp-image-1946\" title=\"All clients are now sharing file pieces. Sharing is 4x faster!\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim04.png\" alt=\"\" width=\"643\" height=\"591\" \/><\/a><p id=\"caption-attachment-1946\" class=\"wp-caption-text\">The server uploads two more pieces, including the only piece not yet shared. All six clients also share pieces they already have; the \u201ctorrent\u201d is in full swing! <br \/>(At this point, all pieces would be available even if the server disconnects.) <\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1947\" style=\"width: 657px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim05.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1947\" class=\"size-full wp-image-1947\" title=\"Still going at 4x traditional server\/client speed...\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim05.png\" alt=\"\" width=\"647\" height=\"586\" \/><\/a><p id=\"caption-attachment-1947\" class=\"wp-caption-text\">The server continues to upload pieces, and the clients continue to share pieces among themselves. <\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1948\" style=\"width: 657px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim06.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1948\" class=\"size-full wp-image-1948\" title=\"Almost done -- in a fraction of the time!\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim06.png\" alt=\"\" width=\"647\" height=\"586\" \/><\/a><p id=\"caption-attachment-1948\" class=\"wp-caption-text\">The sharing continues, filling in the pieces that clients don\u2019t have yet\u2026 <\/p><\/div><br \/>\n&nbsp;<\/p>\n<hr \/>\n<p>&nbsp;<br \/>\n<div id=\"attachment_1949\" style=\"width: 705px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim07.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-1949\" class=\"size-full wp-image-1949\" title=\"Three leeches disconnect once they have what they came for, but some others stay connected to &quot;seed.&quot; (Nobody likes a leech.)\" src=\"https:\/\/www.paleotechnologist.net\/wp-content\/uploads\/2012\/02\/anim07.png\" alt=\"\" width=\"695\" height=\"611\" \/><\/a><p id=\"caption-attachment-1949\" class=\"wp-caption-text\">Three \u201cleecher\u201d clients (shown with X) disconnect once they have all the pieces. The remaining client (purple) downloads the last piece it needs. Two new clients (green outline) come online; they receive from the server as well as \u201cseeding\u201d peers (blue outline) still in the network. <\/p><\/div><\/p>\n","protected":false},"excerpt":{"rendered":"<p>BitTorrent is a file-sharing protocol that takes advantage of clients&#8217; upload capability to speed up file distribution. Here is a brief explanation and graphical example of how it works. <a href=\"https:\/\/www.paleotechnologist.net\/?p=1942\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"footnotes":""},"categories":[210,223,214],"tags":[],"class_list":["post-1942","post","type-post","status-publish","format-standard","hentry","category-digital","category-internet","category-sysadmin"],"_links":{"self":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/1942","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1942"}],"version-history":[{"count":14,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/1942\/revisions"}],"predecessor-version":[{"id":1963,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=\/wp\/v2\/posts\/1942\/revisions\/1963"}],"wp:attachment":[{"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1942"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1942"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.paleotechnologist.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1942"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}