P2P_BitTorrent _overview

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

TheBitTorrentprotocolApeer-to-peerfilesharingprotocol.ProblemAddressed•Howdowetransferapieceofdataquicklytoagroupofpeopleinterestedinit.–Webserver–Distributors–Redhatpatches•Soln:BitTorrentbasedfileswarmingPhilosophy•Author:BramCohen•BasedonTit-for-tat•Incentive-Uploadingwhiledownloading•PiecesoffilesOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerOverallArchitectureABCPeer[Leech]Downloader“US”Peer[Seed]Peer[Leech]TrackerWebServerMessages•Peer–Peermessages–TCPSockets•Peer–Trackermessages–HTTPRequest/Response•B-encoding.torrent•urlofthetracker•Pieceshash1,hash2,….hashn•Piecelength•Name•Length•Files–Path–lengthTracker•Peercache–IP,port,peerid•Stateinformation–Completed–Downloading•ReturnsrandomlistPeerOperation•Chokingalgorithm–Choke/Unchoke–Preferredpeers–Optimisticunchoke–Snubbingbehavior•PreventedbyAnti-snubbing.•Uploadtointerestedpeerswhoarenotchoking.PeerOperation•Verifyonreceivingcompletepiece•EndgameBehavior–CancelExperimentalClientStrengths•Betterbandwidthutilization–Neverbeforespeeds.•Upto7MB/sfromtheInternet.•Limitfreeriding–tit-for-tat•Limitleechattack–couplingupload&download•Spuriousfilesnotpropagated•AbilitytoresumeadownloadDrawbacks•Smallfiles–latency,overhead•Randomlistofpeers-naive•Scalability–Millionsofpeers–Trackerbehavior(uses1/1000ofbandwidth)–Singlepointoffailure•Robustness–Systemprogressdependentonaltruisticnatureofseeds(andpeers)–Maliciousattacksandleeches.MNL’sInterest•Robustness–Devisepossibleattacksandfindloopholes–Secureagainstattacks•Scalability–Sharingacrossfiles–Millionsofusers•Possibleextensions–Peeroptimization•Uploadjustenoughtomaximizeyourdownload.–Intelligenttracker•Peerselectionpolicy–Deadsites•SharehtmlcontentOptimism-hack•Connecttoasmanypeersaspossible•Benefit–Optimisticunchoking–ProbabilityoffreedownloadincreasesPeeruploadoptimization•Uploadenoughtostaywithinthepreferredlistofasmanypeersaspossible•GetthebestdownloaddealwithminimumrequireduploaddownloaduploadSmartertracker•Classifypeers•Pickatrandomfromeachofthesesubsets•Nocompromiseonrandomchoice•Willleadtoamoreprogressivepeernetwork.PeersFastSlowCompletedInterestinglinks•Officialsite:•BitTorrentFAQ:•Torrentsites––––leaveyourdownloadwindowsopen–Bigbrotheriswatching!

1 / 25
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功