SlideShare a Scribd company logo
1 of 22
Dr.-Ing. Kalman Graffi
Email: graffi@mail.upb.de
Fachgruppe Theorie verteilter Systeme
Fakultät für Elektrotechnik, Informatik und Mathematik
Universität Paderborn
Fürstenallee 11, D-33102 Paderborn, Deutschland
Tel.+49 5251 606730, Fax. +49 5251 606697
http://www.cs.uni-paderborn.de/fachgebiete/fg-ti.html
4. Juli 2013
Sharing large files through Bit Torrent in Peer-
Peer social networks
Kailaash Balachandran
Project Group - A Peer-to-Peer Framework for Social Networks
Kailaash Balachandran
kailaash@mail.upb.de
PG – A Peer-to-Peer Framework for Social Networks 2
Overview
Written by Bram Cohen in 2001.
Designed to transfer large files over the network.
More than 160 million bit torrent clients with 100 million active users.
Installed on 28.20% of computers worldwide in 2007.
Hundreds of Index sites.
Torrentz has alone indexed has 11.70 million torrents with 33.58 million
connected peers.
The average download speed is about 30 KB/s.
Responsible for 25-35% of all internet traffic and 78% of P2P traffic.
PG – A Peer-to-Peer Framework for Social Networks 3
Client – Server Downloading
The browser requests the server for a
file.
The server sends back the requested
file.
Download speed affected by a number
of factors such as
 amount of traffic on the server
the number of computers downloading
the file.
the demands of the server.
Client
Server
Handling
multiple requests
PG – A Peer-to-Peer Framework for Social Networks 4
What is Bit-Torrent ?
Bit-Torrent is a peer to peer (P2P) protocol used for sharing files over the
network.
A P2P client is used on every participating nodes.
No central resource allocation.
A single data is accessed effectively by hundreds of peers.
The data is chopped into pieces and further into sub pieces.
Every peer acts as both, client and server.
One of Bit Torrent's most powerful idea is the choking mechanism.
PG – A Peer-to-Peer Framework for Social Networks 5
Bit-Torrent Terminologies (1)
Peer
Active node in the network.
Seeder
Peer that has the complete file.
Leecher
Peer that still downloads pieces of the content.
Swarm
Group of peers active in the network.
Includes both seeder and leecher.
PG – A Peer-to-Peer Framework for Social Networks 6
Bit-Torrent Terminologies (2)
Tracker
A server that keeps track of leechers and seeds in the network.
The tracker is centralized.
.Torrent file :
A small meta info file that has information about the content.
Doesn‘t contain the content itself.
Index sites :
Also referred to as a torrent search engine.
Contains .torrent files for download.
PG – A Peer-to-Peer Framework for Social Networks 7
The Working
PG – A Peer-to-Peer Framework for Social Networks 8
Piece Selection Stratergy (1)
Strict Priority
A piece is divided into many sub pieces.
When a sub piece is requested, all remaining sub pieces are requested
ASAP.
Rarest First
The peer selects the piece which is found in rare in its connected network.
Makes sure that all pieces are available on the network.
PG – A Peer-to-Peer Framework for Social Networks 9
Piece Selection Stratergy (2)
Random piece first
Initial leecher has got nothing to upload.
Finding rarest piece may take long time.
The peer selects a random piece to download.
End Game Mode
The peer sends requests to all connected piece for the missing piece.
Piece gets downloaded from peer that has higher transfer rates.
Cancel messages are sent to all appending peers.
PG – A Peer-to-Peer Framework for Social Networks 10
Piece Selection Strategy (3)
Piece selection strategy of a peer from download start to end.
PG – A Peer-to-Peer Framework for Social Networks 11
Peer Selection Strategy (1)
Every peer is responsible to maximize its download rate.
Selecting a peer with good transfer rates is critical.
The Choking Algorithm
Choking = Refusal to Upload
A peer A chokes peer B if it decides not to upload to B but download from
B continues to happen.
Follows Tit for tat mechanism.
Prevents Free riding peers.
PG – A Peer-to-Peer Framework for Social Networks 12
Peer Selection Strategy (2)
A peer unchokes a number of connected peers (4 peers) to exchange
pieces.
3 peers with fastest upload rate and 1 peer chosen randomly (optimistic
unchoke).
A peer purely based on their transfer rate.
Calculated for every 10 seconds.
Optimistic Unchoking
A random peer is unchoked at every 30 seconds.
PG – A Peer-to-Peer Framework for Social Networks 13
Peer Selection Strategy (3)
Why ?
Regular unchoking method may miss out some unused connections.
New peers with good transfer rates are more likely to appear.
Allows the system to evaluate the download capacity of new peers.
Anti Snubbing
A peer will get choked for longer duration.
Such peer is assumed to be snubbed.
Only a optimistic unchoke can release the peer from being snubbed.
PG – A Peer-to-Peer Framework for Social Networks 14
Challenges Faced
The Availability problem.
System Integrity.
Free riding still exists.
Bit-Torrent is not completely de-centralized.
Decentralized search.
Improve social collaboration.
PG – A Peer-to-Peer Framework for Social Networks 15
Bit-Torrent in LifeSocial (1)
Guaranteeing the availability of the file
Less than 4 percent of the peers have an uptime of over 10 hours.
Solution = Provide more incentives such as social recognition and awards.
Maintaining System Integrity
All peers cannot be trusted.
Solution = Achieve trust among peers.
Friend to Friend network (F2F) paradigm.
PG – A Peer-to-Peer Framework for Social Networks 16
Bit-Torrent in LifeSocial (2)
Social trust becomes P2P trust.
In F2F, connections are only possible among friends.
Treat Before Trick
The file to be shared is encrypted with a key k.
Each piece of the file has a sub key.
These sub keys have no dependence on the piece they have been sent.
Initial seeder uploads both pieces and sub keys.
PG – A Peer-to-Peer Framework for Social Networks 17
Bit-Torrent in LifeSocial (3)
Leechers follows the rule ‘ Data First Key Later’ for bartering.
Every peer in the network to exchange data to receive the key.
Decentralized Trackers
Modern Bit Torrent clients can exchange their neighbourhood sets through
Peer Exchange (PEX).
Track peers in the swarm by RePex(Reconnect to peers encountered
before).
A Repex peer includes swarm peers in the response.
.
PG – A Peer-to-Peer Framework for Social Networks 18
Bit-Torrent in LifeSocial (4)
The 2-Hop TorrentSmell Algorithm.
Hop 1 :
PG – A Peer-to-Peer Framework for Social Networks 19
Bit-Torrent in LifeSocial (5)
Hop 2 :
PG – A Peer-to-Peer Framework for Social Networks 20
Bit-Torrent in LifeSocial (6)
BuddyCast Algorithm
Uses Gossip Protocol.
A user’s file sharing history is shared with its connected peers.
By exchanging these histories with others, the user builds a collection of a
few hundred or more of such histories.
If they are similar, they become taste buddies.
Peers that become taste buddies can recommend files to each other.
PG – A Peer-to-Peer Framework for Social Networks 21
Bit-Torrent in LifeSocial (7)
Collaborative Downloads
Each peer has to take one of two roles; either a Collector or a helper.
The collector selects the best source from the helpers thus optimizing
its download performance.
PG – A Peer-to-Peer Framework for Social Networks 22
Conclusion
Bit-torrent is a great technology for file sharing in a P2P network.
A paradigm of bit torrent implementation has been presented.
Listed a few challenges with possible solutions in context to LifeSocial.
Future work.

More Related Content

What's hot

Dynamic Layer Management in Super-Peer Architectures
Dynamic Layer Management in Super-Peer ArchitecturesDynamic Layer Management in Super-Peer Architectures
Dynamic Layer Management in Super-Peer ArchitecturesZhenyun Zhuang
 
A Distributed Approach to Solving Overlay Mismatching Problem
A Distributed Approach to Solving Overlay Mismatching ProblemA Distributed Approach to Solving Overlay Mismatching Problem
A Distributed Approach to Solving Overlay Mismatching ProblemZhenyun Zhuang
 
Hybrid Periodical Flooding in Unstructured Peer-to-Peer Networks
Hybrid Periodical Flooding in Unstructured Peer-to-Peer NetworksHybrid Periodical Flooding in Unstructured Peer-to-Peer Networks
Hybrid Periodical Flooding in Unstructured Peer-to-Peer NetworksZhenyun Zhuang
 
Socio Media Connect: A Social Profile based P2P Network
Socio Media Connect: A Social Profile based P2P NetworkSocio Media Connect: A Social Profile based P2P Network
Socio Media Connect: A Social Profile based P2P Networkiosrjce
 
Anon p2p slides
Anon p2p slidesAnon p2p slides
Anon p2p slideschintaan
 
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTING
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTINGFUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTING
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTINGijp2p
 
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...2014.7.9 detecting p2 p botnets through network behavior analysis and machine...
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...ericsuboy
 
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...Kalman Graffi
 
Final Project Report - Real-Time Media Apps
Final Project Report - Real-Time Media AppsFinal Project Report - Real-Time Media Apps
Final Project Report - Real-Time Media AppsJigisha Aryya
 
The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)theijes
 
Topology ppt
Topology pptTopology ppt
Topology pptboocse11
 
Study of the topology mismatch problem in peer to-peer networks
Study of the topology mismatch problem in peer to-peer networksStudy of the topology mismatch problem in peer to-peer networks
Study of the topology mismatch problem in peer to-peer networksAlexander Decker
 

What's hot (16)

Dynamic Layer Management in Super-Peer Architectures
Dynamic Layer Management in Super-Peer ArchitecturesDynamic Layer Management in Super-Peer Architectures
Dynamic Layer Management in Super-Peer Architectures
 
A Distributed Approach to Solving Overlay Mismatching Problem
A Distributed Approach to Solving Overlay Mismatching ProblemA Distributed Approach to Solving Overlay Mismatching Problem
A Distributed Approach to Solving Overlay Mismatching Problem
 
Hybrid Periodical Flooding in Unstructured Peer-to-Peer Networks
Hybrid Periodical Flooding in Unstructured Peer-to-Peer NetworksHybrid Periodical Flooding in Unstructured Peer-to-Peer Networks
Hybrid Periodical Flooding in Unstructured Peer-to-Peer Networks
 
Network Forensics: Packet Analysis Using Wireshark
Network Forensics: Packet Analysis Using WiresharkNetwork Forensics: Packet Analysis Using Wireshark
Network Forensics: Packet Analysis Using Wireshark
 
Socio Media Connect: A Social Profile based P2P Network
Socio Media Connect: A Social Profile based P2P NetworkSocio Media Connect: A Social Profile based P2P Network
Socio Media Connect: A Social Profile based P2P Network
 
Anon p2p slides
Anon p2p slidesAnon p2p slides
Anon p2p slides
 
Peer Sim & P2P
Peer Sim & P2PPeer Sim & P2P
Peer Sim & P2P
 
Final peersimp pt
Final peersimp ptFinal peersimp pt
Final peersimp pt
 
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTING
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTINGFUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTING
FUTURE OF PEER-TO-PEER TECHNOLOGY WITH THE RISE OF CLOUD COMPUTING
 
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...2014.7.9 detecting p2 p botnets through network behavior analysis and machine...
2014.7.9 detecting p2 p botnets through network behavior analysis and machine...
 
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...
Kalman Graffi - IEEE ICC 2013 - Symbiotic Coupling of Peer-to-Peer and Cloud ...
 
Final Project Report - Real-Time Media Apps
Final Project Report - Real-Time Media AppsFinal Project Report - Real-Time Media Apps
Final Project Report - Real-Time Media Apps
 
The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)The International Journal of Engineering and Science (IJES)
The International Journal of Engineering and Science (IJES)
 
Topology ppt
Topology pptTopology ppt
Topology ppt
 
Topology ppt
Topology pptTopology ppt
Topology ppt
 
Study of the topology mismatch problem in peer to-peer networks
Study of the topology mismatch problem in peer to-peer networksStudy of the topology mismatch problem in peer to-peer networks
Study of the topology mismatch problem in peer to-peer networks
 

Viewers also liked

Change detection in xml documents using Semantic Identifiers
Change detection in xml documents using Semantic IdentifiersChange detection in xml documents using Semantic Identifiers
Change detection in xml documents using Semantic IdentifiersKailaash Balachandran
 
Implementation of a Web-Based Card Sorting Application with Responsive Design
Implementation of  a Web-Based Card Sorting Application with  Responsive DesignImplementation of  a Web-Based Card Sorting Application with  Responsive Design
Implementation of a Web-Based Card Sorting Application with Responsive DesignKailaash Balachandran
 
Schemaless Change detection in XML Documents using Semantic Identifiers
Schemaless Change detection in XML Documents using Semantic IdentifiersSchemaless Change detection in XML Documents using Semantic Identifiers
Schemaless Change detection in XML Documents using Semantic IdentifiersKailaash Balachandran
 
Testing Taxonomies: Beyond Card Sorting
Testing Taxonomies: Beyond Card SortingTesting Taxonomies: Beyond Card Sorting
Testing Taxonomies: Beyond Card SortingAlberta Soranzo
 
Information Architecture. Card Sorting
Information Architecture. Card SortingInformation Architecture. Card Sorting
Information Architecture. Card SortingDCU_MPIUA
 

Viewers also liked (6)

Change detection in xml documents using Semantic Identifiers
Change detection in xml documents using Semantic IdentifiersChange detection in xml documents using Semantic Identifiers
Change detection in xml documents using Semantic Identifiers
 
Implementation of a Web-Based Card Sorting Application with Responsive Design
Implementation of  a Web-Based Card Sorting Application with  Responsive DesignImplementation of  a Web-Based Card Sorting Application with  Responsive Design
Implementation of a Web-Based Card Sorting Application with Responsive Design
 
Schemaless Change detection in XML Documents using Semantic Identifiers
Schemaless Change detection in XML Documents using Semantic IdentifiersSchemaless Change detection in XML Documents using Semantic Identifiers
Schemaless Change detection in XML Documents using Semantic Identifiers
 
Introduction to Web Designing
Introduction to Web DesigningIntroduction to Web Designing
Introduction to Web Designing
 
Testing Taxonomies: Beyond Card Sorting
Testing Taxonomies: Beyond Card SortingTesting Taxonomies: Beyond Card Sorting
Testing Taxonomies: Beyond Card Sorting
 
Information Architecture. Card Sorting
Information Architecture. Card SortingInformation Architecture. Card Sorting
Information Architecture. Card Sorting
 

Similar to Bittorrent in a P2P social network

UNRAVEILING BIT-TORRENT
UNRAVEILING BIT-TORRENTUNRAVEILING BIT-TORRENT
UNRAVEILING BIT-TORRENTSudhansu Dash
 
Adaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent SystemsAdaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent SystemsWaqas Tariq
 
Insights on On-demand Media Streaming Progress
Insights on On-demand Media Streaming ProgressInsights on On-demand Media Streaming Progress
Insights on On-demand Media Streaming ProgressSovan Kundu
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSEFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSijp2p
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSEFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSijp2p
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS ijp2p
 
BitTorrent Protocol
BitTorrent ProtocolBitTorrent Protocol
BitTorrent ProtocolSridharBR
 
Bit Torrent Technology
Bit Torrent TechnologyBit Torrent Technology
Bit Torrent Technologyguestc67adeb
 
Bittorrent final seminar
Bittorrent final seminarBittorrent final seminar
Bittorrent final seminarChirodeep Das
 
Project_report_BitTorrent
Project_report_BitTorrentProject_report_BitTorrent
Project_report_BitTorrentSrikanth Vanama
 
(130316) #fitalk bit torrent protocol
(130316) #fitalk   bit torrent protocol(130316) #fitalk   bit torrent protocol
(130316) #fitalk bit torrent protocolINSIGHT FORENSIC
 
Bit torrent protocol by milan varia
Bit torrent protocol by milan variaBit torrent protocol by milan varia
Bit torrent protocol by milan variaMilan Varia
 
Bit torrent-technology
Bit torrent-technologyBit torrent-technology
Bit torrent-technologyabhipesit
 
P2P Seminar
P2P SeminarP2P Seminar
P2P SeminarCoRehab
 
Bit torrent protocol seminar by Sanjay R
Bit torrent protocol seminar by Sanjay RBit torrent protocol seminar by Sanjay R
Bit torrent protocol seminar by Sanjay RSanjay Ravishankar
 

Similar to Bittorrent in a P2P social network (20)

UNRAVEILING BIT-TORRENT
UNRAVEILING BIT-TORRENTUNRAVEILING BIT-TORRENT
UNRAVEILING BIT-TORRENT
 
Adaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent SystemsAdaptive Sliding Piece Selection Window for BitTorrent Systems
Adaptive Sliding Piece Selection Window for BitTorrent Systems
 
Bit Torrent
Bit Torrent Bit Torrent
Bit Torrent
 
Insights on On-demand Media Streaming Progress
Insights on On-demand Media Streaming ProgressInsights on On-demand Media Streaming Progress
Insights on On-demand Media Streaming Progress
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSEFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMSEFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
 
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
EFFECTIVE TOPOLOGY-AWARE PEER SELECTION IN UNSTRUCTURED PEER-TO-PEER SYSTEMS
 
P2p cdn
P2p cdnP2p cdn
P2p cdn
 
BitTorrent Protocol
BitTorrent ProtocolBitTorrent Protocol
BitTorrent Protocol
 
Bit Torrent Technology
Bit Torrent TechnologyBit Torrent Technology
Bit Torrent Technology
 
Bittorrent final seminar
Bittorrent final seminarBittorrent final seminar
Bittorrent final seminar
 
Project_report_BitTorrent
Project_report_BitTorrentProject_report_BitTorrent
Project_report_BitTorrent
 
(130316) #fitalk bit torrent protocol
(130316) #fitalk   bit torrent protocol(130316) #fitalk   bit torrent protocol
(130316) #fitalk bit torrent protocol
 
Bit torrent protocol by milan varia
Bit torrent protocol by milan variaBit torrent protocol by milan varia
Bit torrent protocol by milan varia
 
Bit torrent-technology
Bit torrent-technologyBit torrent-technology
Bit torrent-technology
 
Bit torrent and tracker
Bit torrent and trackerBit torrent and tracker
Bit torrent and tracker
 
P2p Peer To Peer Introduction
P2p Peer To Peer IntroductionP2p Peer To Peer Introduction
P2p Peer To Peer Introduction
 
P2P Seminar
P2P SeminarP2P Seminar
P2P Seminar
 
Bittorrent
BittorrentBittorrent
Bittorrent
 
Bit torrent protocol seminar by Sanjay R
Bit torrent protocol seminar by Sanjay RBit torrent protocol seminar by Sanjay R
Bit torrent protocol seminar by Sanjay R
 

Recently uploaded

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfVanessa Camilleri
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Developmentchesterberbo7
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptxJonalynLegaspi2
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfPrerana Jadhav
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17Celine George
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxVanesaIglesias10
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleCeline George
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseCeline George
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...Nguyen Thanh Tu Collection
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfJemuel Francisco
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfPatidar M
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptxmary850239
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmStan Meyer
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptxmary850239
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1GloryAnnCastre1
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operationalssuser3e220a
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDhatriParmar
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQuiz Club NITW
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management systemChristalin Nelson
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataBabyAnnMotar
 

Recently uploaded (20)

ICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdfICS2208 Lecture6 Notes for SL spaces.pdf
ICS2208 Lecture6 Notes for SL spaces.pdf
 
Using Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea DevelopmentUsing Grammatical Signals Suitable to Patterns of Idea Development
Using Grammatical Signals Suitable to Patterns of Idea Development
 
week 1 cookery 8 fourth - quarter .pptx
week 1 cookery 8  fourth  -  quarter .pptxweek 1 cookery 8  fourth  -  quarter .pptx
week 1 cookery 8 fourth - quarter .pptx
 
Narcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdfNarcotic and Non Narcotic Analgesic..pdf
Narcotic and Non Narcotic Analgesic..pdf
 
How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17How to Fix XML SyntaxError in Odoo the 17
How to Fix XML SyntaxError in Odoo the 17
 
ROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptxROLES IN A STAGE PRODUCTION in arts.pptx
ROLES IN A STAGE PRODUCTION in arts.pptx
 
Multi Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP ModuleMulti Domain Alias In the Odoo 17 ERP Module
Multi Domain Alias In the Odoo 17 ERP Module
 
How to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 DatabaseHow to Make a Duplicate of Your Odoo 17 Database
How to Make a Duplicate of Your Odoo 17 Database
 
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
31 ĐỀ THI THỬ VÀO LỚP 10 - TIẾNG ANH - FORM MỚI 2025 - 40 CÂU HỎI - BÙI VĂN V...
 
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdfGrade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
Grade 9 Quarter 4 Dll Grade 9 Quarter 4 DLL.pdf
 
Active Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdfActive Learning Strategies (in short ALS).pdf
Active Learning Strategies (in short ALS).pdf
 
4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx4.16.24 21st Century Movements for Black Lives.pptx
4.16.24 21st Century Movements for Black Lives.pptx
 
Oppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and FilmOppenheimer Film Discussion for Philosophy and Film
Oppenheimer Film Discussion for Philosophy and Film
 
4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx4.16.24 Poverty and Precarity--Desmond.pptx
4.16.24 Poverty and Precarity--Desmond.pptx
 
Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1Reading and Writing Skills 11 quarter 4 melc 1
Reading and Writing Skills 11 quarter 4 melc 1
 
Expanded definition: technical and operational
Expanded definition: technical and operationalExpanded definition: technical and operational
Expanded definition: technical and operational
 
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptxDecoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
Decoding the Tweet _ Practical Criticism in the Age of Hashtag.pptx
 
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITWQ-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
Q-Factor HISPOL Quiz-6th April 2024, Quiz Club NITW
 
Concurrency Control in Database Management system
Concurrency Control in Database Management systemConcurrency Control in Database Management system
Concurrency Control in Database Management system
 
Measures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped dataMeasures of Position DECILES for ungrouped data
Measures of Position DECILES for ungrouped data
 

Bittorrent in a P2P social network

  • 1. Dr.-Ing. Kalman Graffi Email: graffi@mail.upb.de Fachgruppe Theorie verteilter Systeme Fakultät für Elektrotechnik, Informatik und Mathematik Universität Paderborn Fürstenallee 11, D-33102 Paderborn, Deutschland Tel.+49 5251 606730, Fax. +49 5251 606697 http://www.cs.uni-paderborn.de/fachgebiete/fg-ti.html 4. Juli 2013 Sharing large files through Bit Torrent in Peer- Peer social networks Kailaash Balachandran Project Group - A Peer-to-Peer Framework for Social Networks Kailaash Balachandran kailaash@mail.upb.de
  • 2. PG – A Peer-to-Peer Framework for Social Networks 2 Overview Written by Bram Cohen in 2001. Designed to transfer large files over the network. More than 160 million bit torrent clients with 100 million active users. Installed on 28.20% of computers worldwide in 2007. Hundreds of Index sites. Torrentz has alone indexed has 11.70 million torrents with 33.58 million connected peers. The average download speed is about 30 KB/s. Responsible for 25-35% of all internet traffic and 78% of P2P traffic.
  • 3. PG – A Peer-to-Peer Framework for Social Networks 3 Client – Server Downloading The browser requests the server for a file. The server sends back the requested file. Download speed affected by a number of factors such as  amount of traffic on the server the number of computers downloading the file. the demands of the server. Client Server Handling multiple requests
  • 4. PG – A Peer-to-Peer Framework for Social Networks 4 What is Bit-Torrent ? Bit-Torrent is a peer to peer (P2P) protocol used for sharing files over the network. A P2P client is used on every participating nodes. No central resource allocation. A single data is accessed effectively by hundreds of peers. The data is chopped into pieces and further into sub pieces. Every peer acts as both, client and server. One of Bit Torrent's most powerful idea is the choking mechanism.
  • 5. PG – A Peer-to-Peer Framework for Social Networks 5 Bit-Torrent Terminologies (1) Peer Active node in the network. Seeder Peer that has the complete file. Leecher Peer that still downloads pieces of the content. Swarm Group of peers active in the network. Includes both seeder and leecher.
  • 6. PG – A Peer-to-Peer Framework for Social Networks 6 Bit-Torrent Terminologies (2) Tracker A server that keeps track of leechers and seeds in the network. The tracker is centralized. .Torrent file : A small meta info file that has information about the content. Doesn‘t contain the content itself. Index sites : Also referred to as a torrent search engine. Contains .torrent files for download.
  • 7. PG – A Peer-to-Peer Framework for Social Networks 7 The Working
  • 8. PG – A Peer-to-Peer Framework for Social Networks 8 Piece Selection Stratergy (1) Strict Priority A piece is divided into many sub pieces. When a sub piece is requested, all remaining sub pieces are requested ASAP. Rarest First The peer selects the piece which is found in rare in its connected network. Makes sure that all pieces are available on the network.
  • 9. PG – A Peer-to-Peer Framework for Social Networks 9 Piece Selection Stratergy (2) Random piece first Initial leecher has got nothing to upload. Finding rarest piece may take long time. The peer selects a random piece to download. End Game Mode The peer sends requests to all connected piece for the missing piece. Piece gets downloaded from peer that has higher transfer rates. Cancel messages are sent to all appending peers.
  • 10. PG – A Peer-to-Peer Framework for Social Networks 10 Piece Selection Strategy (3) Piece selection strategy of a peer from download start to end.
  • 11. PG – A Peer-to-Peer Framework for Social Networks 11 Peer Selection Strategy (1) Every peer is responsible to maximize its download rate. Selecting a peer with good transfer rates is critical. The Choking Algorithm Choking = Refusal to Upload A peer A chokes peer B if it decides not to upload to B but download from B continues to happen. Follows Tit for tat mechanism. Prevents Free riding peers.
  • 12. PG – A Peer-to-Peer Framework for Social Networks 12 Peer Selection Strategy (2) A peer unchokes a number of connected peers (4 peers) to exchange pieces. 3 peers with fastest upload rate and 1 peer chosen randomly (optimistic unchoke). A peer purely based on their transfer rate. Calculated for every 10 seconds. Optimistic Unchoking A random peer is unchoked at every 30 seconds.
  • 13. PG – A Peer-to-Peer Framework for Social Networks 13 Peer Selection Strategy (3) Why ? Regular unchoking method may miss out some unused connections. New peers with good transfer rates are more likely to appear. Allows the system to evaluate the download capacity of new peers. Anti Snubbing A peer will get choked for longer duration. Such peer is assumed to be snubbed. Only a optimistic unchoke can release the peer from being snubbed.
  • 14. PG – A Peer-to-Peer Framework for Social Networks 14 Challenges Faced The Availability problem. System Integrity. Free riding still exists. Bit-Torrent is not completely de-centralized. Decentralized search. Improve social collaboration.
  • 15. PG – A Peer-to-Peer Framework for Social Networks 15 Bit-Torrent in LifeSocial (1) Guaranteeing the availability of the file Less than 4 percent of the peers have an uptime of over 10 hours. Solution = Provide more incentives such as social recognition and awards. Maintaining System Integrity All peers cannot be trusted. Solution = Achieve trust among peers. Friend to Friend network (F2F) paradigm.
  • 16. PG – A Peer-to-Peer Framework for Social Networks 16 Bit-Torrent in LifeSocial (2) Social trust becomes P2P trust. In F2F, connections are only possible among friends. Treat Before Trick The file to be shared is encrypted with a key k. Each piece of the file has a sub key. These sub keys have no dependence on the piece they have been sent. Initial seeder uploads both pieces and sub keys.
  • 17. PG – A Peer-to-Peer Framework for Social Networks 17 Bit-Torrent in LifeSocial (3) Leechers follows the rule ‘ Data First Key Later’ for bartering. Every peer in the network to exchange data to receive the key. Decentralized Trackers Modern Bit Torrent clients can exchange their neighbourhood sets through Peer Exchange (PEX). Track peers in the swarm by RePex(Reconnect to peers encountered before). A Repex peer includes swarm peers in the response. .
  • 18. PG – A Peer-to-Peer Framework for Social Networks 18 Bit-Torrent in LifeSocial (4) The 2-Hop TorrentSmell Algorithm. Hop 1 :
  • 19. PG – A Peer-to-Peer Framework for Social Networks 19 Bit-Torrent in LifeSocial (5) Hop 2 :
  • 20. PG – A Peer-to-Peer Framework for Social Networks 20 Bit-Torrent in LifeSocial (6) BuddyCast Algorithm Uses Gossip Protocol. A user’s file sharing history is shared with its connected peers. By exchanging these histories with others, the user builds a collection of a few hundred or more of such histories. If they are similar, they become taste buddies. Peers that become taste buddies can recommend files to each other.
  • 21. PG – A Peer-to-Peer Framework for Social Networks 21 Bit-Torrent in LifeSocial (7) Collaborative Downloads Each peer has to take one of two roles; either a Collector or a helper. The collector selects the best source from the helpers thus optimizing its download performance.
  • 22. PG – A Peer-to-Peer Framework for Social Networks 22 Conclusion Bit-torrent is a great technology for file sharing in a P2P network. A paradigm of bit torrent implementation has been presented. Listed a few challenges with possible solutions in context to LifeSocial. Future work.