190 likes | 290 Views
GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent. Weishuai Yang Nael Abu-Ghazaleh {wyang,nael}@cs.binghamton.edu. Peer-to-Peer. 1. 2. 6. 5. 3. 4. P2P Simulation Emphases. Looking up Downloading. 1. 2. 6. 5. 3. 4. BitTorrent (BT) Scenario. Tracker.
E N D
GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent Weishuai Yang Nael Abu-Ghazaleh {wyang,nael}@cs.binghamton.edu
Peer-to-Peer GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
1 2 6 5 3 4 P2P Simulation Emphases • Looking up • Downloading 1 2 6 5 3 4 GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BitTorrent (BT) Scenario Tracker HTTP GET Peer 1(Leecher) Peer 3(Seed) Peer 2(Leecher) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BitTorrent (BT) Scenario Tracker .torrent file Peer 1(Leecher) Peer 3(Seed) Peer 2(Leecher) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BitTorrent (BT) Scenario Tracker Announce Tracker Peer 1(Leecher) Peer 3(Seed) Peer 2(Leecher) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BitTorrent (BT) Scenario Tracker Peer List Peer 1(Leecher) Peer 3(Seed) Peer 2(Leecher) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BitTorrent (BT) Scenario Tracker Hand Shaking Peer 1(Leecher) Peer 3(Seed) Peer 2(Leecher) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BT Algorithms • Piece Selection • Strict Priority • Rarest First • Random First • End Game Mode • Peer Selection (server side and peer side) • Rechoking, optimistic unchoking, and anti-snubbing • Pipeline request GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
GPS: General P2P Simulator • Modeling downloading process • Message level simulation • Graphical http://www.cs.binghamton.edu/~wyang/gps GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
GPS Architecture GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Framework Components • Core Components • Simulation Engine • Topology • Protocols • Agents (includes Peers & Servers) • Documents • Keywords • Special Components • GUI • Asynchronous Logging GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
BTSim Components • BTProtocol • BTTrackers and BTPeers • BTDocuments • BTSessions, BTSockets and BTConnections • BTAlgorithms GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Accounting for Network & Protocol Effect • Peer Based Bandwidth(PBB) Flow Model • Peer End Allocation • Dynamic Link-Level Network Bandwidth (DLNB) Flow Model • Bandwidth Allocation Algorithm • TCP Based Flow (TBF) Model • Macro Formula: BW=MSS*C/(RTT*P^(1/2)) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Macro Model Simulation Validation MSS=536 bytes RTT=1.7msC=1.22p=0.1% GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Link Based Flow Model Simulation Validation GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Scalability Study • Peers randomly attached to non-transit nodes • Documents with rankings are randomly stored at Peers • User actions are randomly initiated every 50 seconds GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Scalability Study cont. (DLNB based) GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent
Questions? Thank You! Weishuai Yang wyang@cs.binghamton.edu GPS: A General Peer-to-Peer Simulator and its Use for Modeling BitTorrent